/* Fixes et styles pour la page RGPD */

/* Section Hero sans conteneur - Surcharge des styles simple-hero.css */
section.hero.simple-hero {
    padding: 40px 20px 40px 20px !important;
    text-align: center;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px !important;
    height: auto !important;
    max-height: none !important;
    background: var(--background-color) !important;
    position: relative;
}

/* Les badges utilisent maintenant les styles unifiés de hero-badges-unified.css */


section.hero.simple-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    max-width: 800px;
    line-height: 1.2;
    white-space: normal;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

section.hero.simple-hero .hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Conteneur pour les boutons en une ligne */
section.hero.simple-hero .buttons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Styles pour les boutons individuels */
section.hero.simple-hero .btn {
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

section.hero.simple-hero .btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

section.hero.simple-hero .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

section.hero.simple-hero .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

section.hero.simple-hero .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive pour la section hero */
@media (max-width: 768px) {
    section.hero.simple-hero {
        padding: 30px 20px 30px 20px !important;
        min-height: 350px !important;
        height: auto !important;
        max-height: none !important;
    }
    
    section.hero.simple-hero h1 {
        font-size: 2.5rem;
    }
    
    section.hero.simple-hero .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    section.hero.simple-hero .buttons-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    section.hero.simple-hero .btn {
        width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    section.hero.simple-hero {
        padding: 25px 15px 25px 15px !important;
        min-height: 300px !important;
        height: auto !important;
        max-height: none !important;
    }
    
    
    section.hero.simple-hero h1 {
        font-size: 2rem;
    }
    
    section.hero.simple-hero .buttons-row {
        flex-direction: column;
        gap: 12px;
    }
    
    section.hero.simple-hero .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Corrections générales */
.content {
    padding: 0;
    background: var(--background-color);
}

/* Section Notre Engagement RGPD */
#engagement.content-section {
    padding: 80px 0;
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    margin: 40px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#engagement .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#engagement .section-header {
    text-align: center;
    margin-bottom: 60px;
}

#engagement .section-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 700;
}

#engagement .section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grille des 3 cartes sur la même ligne */
#engagement .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

#engagement .feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

#engagement .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

#engagement .feature-header {
    margin-bottom: 20px;
}

#engagement .feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

#engagement .feature-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

#engagement .feature-header h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
}

#engagement .feature-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Responsive pour la section engagement */
@media (max-width: 968px) {
    #engagement .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #engagement.content-section {
        margin: 20px 10px;
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    #engagement .section-header h2 {
        font-size: 2rem;
    }
    
    #engagement .feature-card {
        padding: 20px;
    }
}

/* Sections RGPD */
.gdpr-section {
    padding: 80px 0;
    background: var(--background-color);
}

.gdpr-section:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

/* Section Vos Droits RGPD - Design amélioré */
.gdpr-section:has(.rights-grid) {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    position: relative;
    overflow: hidden;
}

.gdpr-section:has(.rights-grid)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.gdpr-section:has(.rights-grid) .gdpr-section-header,
.gdpr-section:has(.rights-grid) .gdpr-section-content {
    position: relative;
    z-index: 2;
}

.gdpr-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.gdpr-section-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.gdpr-section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
}

.gdpr-section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grilles de droits RGPD - Design amélioré */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 50px;
    padding: 0 20px;
}

.right-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.right-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.right-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.12),
        0 16px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(var(--primary-color), 0.2);
}

.right-card:hover::before {
    opacity: 1;
}

.right-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.right-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), rgba(59, 130, 246, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.right-card:hover .right-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.right-icon-svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.right-card:hover .right-icon-svg {
    color: var(--primary-dark);
}

.right-card-header h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.right-card-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 1rem;
}

.right-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.8));
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.right-card:hover .right-details {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));
    border-color: rgba(var(--primary-color), 0.1);
}

.detail-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.detail-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 4px 12px;
    background: rgba(var(--primary-color), 0.1);
    border-radius: 20px;
}

.right-action {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, transparent, rgba(var(--primary-color), 0.02));
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.right-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.right-action:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(var(--primary-color), 0.3);
    border-color: var(--primary-dark);
}

.right-action:hover::before {
    left: 100%;
}

/* Mesures de sécurité - Alignement avec Finalités du Traitement */
.security-measures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.security-category {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.security-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.security-category-header h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
}

.security-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-technical {
    background: var(--primary-light);
    color: var(--primary-color);
}

.security-organizational {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.security-measures-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-measure {
    padding: 20px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.security-measure-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.security-icon {
    font-size: 1.5rem;
}

.security-measure-header h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
}

.security-measure-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Contact */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon-svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact-card-header h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
}

.contact-details {
    margin: 20px 0;
}

.contact-detail {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}

.contact-label {
    font-weight: 600;
    color: var(--text-color);
    min-width: 80px;
    margin-right: 12px;
}

.contact-value {
    color: var(--text-light);
    line-height: 1.5;
}

.contact-action {
    width: 100%;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary.contact-action {
    background: var(--primary-color);
    color: white;
}

.btn-primary.contact-action:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary.contact-action {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary.contact-action:hover {
    background: var(--primary-color);
    color: white;
}

/* Timeline des mises à jour */
.update-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.update-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.update-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.update-date {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.update-version {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.update-item-content h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.update-item-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Blocs de contenu */
.content-block {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(248, 249, 250, 0.8);
}

.block-header h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-secondary {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grilles de données */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.data-category, .data-item {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid var(--primary-color);
}

.data-category-header, .data-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.data-category-header h4, .data-item-header h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
}

.data-purpose {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.data-category-content ul, .data-item-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.data-category-content li, .data-item-content li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
}

.data-category-content li::before, .data-item-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.data-legal-basis {
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin-top: 16px;
}

.legal-basis-label {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 8px;
}

.legal-basis-text {
    color: var(--primary-color);
    font-weight: 500;
}

/* Listes de fonctionnalités */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    padding: 20px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.feature-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-item-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-item-header h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
}

.feature-item-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.purpose-retention {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-size: 0.9rem;
}

.retention-label {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 8px;
}

.retention-value {
    color: var(--primary-color);
    font-weight: 500;
}

/* Responsive amélioré */
@media (max-width: 1200px) {
    .rights-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 35px;
        padding: 0 15px;
    }
}

@media (max-width: 968px) {
    .rights-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
        padding: 0 10px;
    }
    
    .right-card {
        padding: 25px;
    }
    
    .right-icon {
        width: 50px;
        height: 50px;
    }
    
    .right-icon-svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 968px) {
    .security-measures {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 20px;
    }
    
    .update-timeline {
        padding: 0 20px;
    }
    
    .update-item {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .gdpr-section {
        padding: 60px 0;
    }
    
    .gdpr-section:has(.rights-grid) {
        padding: 60px 0;
    }
    
    .gdpr-section-header h2 {
        font-size: 2rem;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }
    
    .security-measures {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .update-timeline {
        padding: 0 15px;
    }
    
    .update-item {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .update-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .update-date {
        font-size: 1.1rem;
    }
    
    .update-version {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .update-item-content h4 {
        font-size: 1.2rem;
    }
    
    .update-item-content p {
        font-size: 1rem;
    }
    
    .right-card, .contact-card, .security-category, .content-block {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .gdpr-section-header h2 {
        font-size: 1.75rem;
    }
    
    .right-card, .contact-card, .security-category {
        padding: 16px;
    }
    
    .right-card-header, .contact-card-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* ==================================================
   STYLES DE SURCHARGE SPÉCIFIQUES POUR LE CENTRAGE
   ================================================== */

/* Force le centrage du titre et sous-titre hero - Surcharge maximale */
body section.hero.simple-hero h1,
body .hero.simple-hero h1,
html body section.hero.simple-hero h1 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

body section.hero.simple-hero .hero-subtitle,
body .hero.simple-hero .hero-subtitle,
html body section.hero.simple-hero .hero-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* Responsive - Force le centrage même sur mobile */
@media (max-width: 480px) {
    body section.hero.simple-hero h1,
    body .hero.simple-hero h1,
    html body section.hero.simple-hero h1 {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
    
    body section.hero.simple-hero .hero-subtitle,
    body .hero.simple-hero .hero-subtitle,
    html body section.hero.simple-hero .hero-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
}
