/* ===============================================
   AURORA TECH - Design System Terre & Nature
   Version 3.4 - Palette optimisée Contrastes AAA
   =============================================== */

/* ===============================================
   VARIABLES CSS - Palette Terre & Nature
   =============================================== */
:root {
    /* Couleurs principales - Terre & Nature */
    --primary-gradient-start: #5A6650;  /* Vert sauge */
    --primary-gradient-end: #6B4540;    /* Terre de Sienne */
    --accent-color: #B85450;            /* Terre cuite */
    --accent-secondary: #8B7355;        /* Camel */
    
    /* Couleurs de texte */
    --text-dark: #2C2416;               /* Marron très foncé */
    --text-light: #5C4E3C;              /* Marron moyen */
    --text-muted: #94a3b8;
    
    /* Backgrounds - IMPORTANT pour le fond beige */
    --bg-primary: #FAF7F0;              /* Beige clair (fond principal) */
    --bg-white: #FFFFFF;                /* Blanc pur */
    --bg-glass: rgba(255, 255, 255, 0.95);
    --bg-dark: #2C2416;
    
    /* Couleur dorée supplémentaire */
    --gold-accent: #C17735;             /* Or antique */
    
    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.12);
    
    /* Espacements */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s ease;
}

/* ===============================================
   ANIMATIONS (non critiques)
   =============================================== */
@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideUp {
    from { 
        opacity: 1; 
        transform: translateY(0); 
    }
    to { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
}

/* ===============================================
   EFFETS HOVER (non critiques)
   =============================================== */
.top-choice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.12);
}

.rating i:hover {
    transform: scale(1.1);
}

.photo-container:hover img {
    transform: scale(1.03);
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #4A5640;
}

.btn-site:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #A84440, #7B6345);
}

.opening-hours .day:hover {
    background: rgba(90, 102, 80, 0.04);
}

/* ===============================================
   FINANCEMENT SECTION (après scroll)
   =============================================== */
.text-section.financement-section {
    margin-top: 35px;
    margin-bottom: 35px;
}

/* ===============================================
   SECTION GMB (après scroll)
   =============================================== */
.gmb-section {
    margin: 50px 0;
    padding-bottom: 80px;
    clear: both;
    overflow: hidden;
}

.gmb-section .section-title {
    margin-bottom: 40px;
    font-size: clamp(22px, 3.5vw, 32px);
    color: var(--text-dark);
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: -0.5px;
}

.gmb-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    border-radius: 2px;
}

/* ===============================================
   GRILLE DES ENTREPRISES GMB - PAGES VILLES
   =============================================== */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin: 30px 0;
    padding-bottom: 20px;
}

.company-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(90, 102, 80, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    contain: layout style;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: rgba(90, 102, 80, 0.15);
}

.company-card .photo-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.company-card .photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.company-card:hover .photo-container img {
    transform: scale(1.05);
}

.company-card .info {
    padding: 25px;
}

.company-card h3 {
    color: var(--text-dark);
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.company-card h3 small {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 5px;
}

.company-card .category {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 12px;
    display: inline-block;
    background: rgba(90, 102, 80, 0.08);
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
}

.company-card .rating-line {
    justify-content: flex-start;
    margin: 12px 0;
}

.company-card .address {
    justify-content: flex-start;
    font-size: 13px;
    margin: 12px 0;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.btn-action {
    padding: 10px 18px;
    background: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px;
    transition: all 0.3s ease;
    border: 1px solid rgba(90, 102, 80, 0.15);
}

.btn-action:hover {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: white;
    transform: translateY(-1px);
    border-color: transparent;
}

.opening-hours-toggle {
    cursor: pointer;
}

.opening-hours-details {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(90, 102, 80, 0.03);
    border-radius: 12px;
}

.opening-hours-details.show {
    display: block;
}

/* ===============================================
   CARDS HORIZONTALES GMB - Pages Département & Home
   Style compact avec photo 100x100 à gauche
   =============================================== */

/* Grille spécifique pour cards horizontales */
.company-grid-horizontal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
    padding-bottom: 20px;
}

/* Card horizontale */
.company-card-horizontal {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
    border: 1px solid rgba(90, 102, 80, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.company-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: rgba(90, 102, 80, 0.15);
}

/* Photo container compact */
.company-card-horizontal .photo-container {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.company-card-horizontal .photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.company-card-horizontal:hover .photo-container img {
    transform: scale(1.05);
}

/* Placeholder pour photo manquante */
.company-card-horizontal .photo-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(90, 102, 80, 0.05);
    color: var(--text-light);
    font-size: 11px;
    text-align: center;
    padding: 5px;
}

.company-card-horizontal .photo-placeholder i {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--primary-gradient-start);
}

/* Section info */
.company-card-horizontal .info {
    flex-grow: 1;
    padding: 0;
}

.company-card-horizontal h3 {
    color: var(--text-dark);
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 700;
    line-height: 1.3;
}

.company-card-horizontal .category {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 10px;
    display: inline-block;
    background: rgba(90, 102, 80, 0.08);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.company-card-horizontal .rating-line {
    display: flex;
    align-items: center;
    margin: 8px 0;
    gap: 8px;
}

.company-card-horizontal .rating {
    color: var(--gold-accent);
    font-size: 14px;
    display: flex;
    gap: 2px;
}

.company-card-horizontal .reviews-count {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
}

.company-card-horizontal .address {
    font-size: 13px;
    color: var(--text-light);
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.company-card-horizontal .address .icon {
    font-size: 12px;
    color: var(--primary-gradient-start);
}

/* Actions buttons compact */
.company-card-horizontal .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.company-card-horizontal .btn-action {
    padding: 7px 14px;
    background: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(90, 102, 80, 0.15);
}

.company-card-horizontal .btn-action:hover {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: white;
    transform: translateY(-1px);
    border-color: transparent;
}

.company-card-horizontal .btn-action .icon {
    font-size: 11px;
}

/* Horaires dans card horizontale */
.company-card-horizontal .opening-hours-details {
    display: none;
    margin-top: 12px;
    padding: 12px;
    background: rgba(90, 102, 80, 0.03);
    border-radius: 10px;
    font-size: 12px;
}

.company-card-horizontal .opening-hours-details.show {
    display: block;
}

.company-card-horizontal .opening-hours-details .day {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 11px;
}

.company-card-horizontal .opening-hours-details .day.today {
    font-weight: 700;
    color: var(--accent-color);
}

/* ===============================================
   SECTION SEO CONTENT (bas de page)
   =============================================== */
.text-section.seo-content {
    margin-top: 120px;
    margin-bottom: 80px;
    clear: both;
}

.text-section.seo-content h3 {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.text-section.seo-content ul,
.text-section.seo-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.text-section.seo-content li {
    margin-bottom: 10px;
    color: var(--text-light);
    line-height: 1.7;
}

.text-section.seo-content dl {
    margin: 25px 0;
}

.text-section.seo-content dt {
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 20px;
    margin-bottom: 8px;
}

.text-section.seo-content dd {
    margin-left: 0;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===============================================
   SECTION VILLES (footer area)
   =============================================== */
.cities-section {
    background: linear-gradient(135deg, #2C2416 0%, #3D332A 100%);
    color: white;
    padding: 80px 0;
    margin-top: 100px;
    position: relative;
    clear: both;
    width: 100%;
}

.cities-section .section-title {
    color: white;
    text-align: center;
    margin-bottom: 50px;
    font-size: clamp(28px, 4vw, 36px);
}

.cities-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--accent-color), var(--gold-accent));
}

.container-wide {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.cities-column {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-width: 0;
}

.cities-column:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.column-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #E8A865;
}

.cities-list {
    list-style: none;
}

.cities-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.cities-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #E8A865;
    font-weight: bold;
    font-size: 18px;
}

.cities-list a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.cities-list a:hover {
    color: #E8A865;
    padding-left: 3px;
}

/* ===============================================
   FOOTER
   =============================================== */
footer {
    background: linear-gradient(135deg, #2C2416 0%, #3D332A 100%);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 50px 0;
}

footer p {
    margin: 12px 0;
    font-size: 14px;
}

footer .fa-heart {
    color: var(--accent-color);
}

footer a {
    color: #E8A865;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
}

/* ===============================================
   WIDGET WHATSAPP
   =============================================== */
.whatsapp-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #5A6650, #8B7355);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(90, 102, 80, 0.3);
    max-width: 350px;
    will-change: transform;
}

.whatsapp-widget:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 25px rgba(90, 102, 80, 0.4);
}

.whatsapp-widget img:first-child {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.whatsapp-widget img:last-child {
    width: 22px;
    height: 22px;
}

.whatsapp-widget > div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.whatsapp-status {
    display: flex;
    align-items: center;
    font-weight: 700;
    margin-bottom: 3px;
}

.whatsapp-status span {
    margin-right: 6px;
}

.online-indicator {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    border: 2px solid white;
}

.whatsapp-message {
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

.whatsapp-subtitle {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.9;
}

/* ===============================================
   UTILITAIRES & HELPERS
   =============================================== */
.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: var(--text-light);
    font-size: 13px;
}

.photo-placeholder i {
    font-size: 40px;
    margin-bottom: 10px;
    color: var(--primary-gradient-start);
}

/* ===============================================
   ACCESSIBILITÉ
   =============================================== */
:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-gradient-start);
    color: white;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
}

/* ===============================================
   OPTIMISATIONS PERFORMANCE
   =============================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .company-card,
    .company-card-horizontal,
    .top-choice-card,
    .cities-column,
    .whatsapp-widget {
        transform: none !important;
        transition: opacity 0.2s ease !important;
    }
    
    .company-card:active,
    .company-card-horizontal:active,
    .top-choice-card:active {
        opacity: 0.9;
    }
}

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 1200px) {
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .gmb-section {
        margin: 35px 0;
        padding-bottom: 15px;
    }
    
    .company-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Cards horizontales en mobile */
    .company-grid-horizontal {
        gap: 15px;
    }
    
    .company-card-horizontal {
        padding: 15px;
        gap: 15px;
    }
    
    .cities-section {
        padding: 20px 0;
        margin-top: 20px;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .company-card .photo-container {
        height: 180px;
    }
    
    .company-card .info {
        padding: 20px;
    }
    
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .whatsapp-widget img:first-child {
        width: 35px;
        height: 35px;
    }
    
    .whatsapp-subtitle {
        font-size: 11px;
    }
    
    .text-section.seo-content {
        margin-top: 35px;
        margin-bottom: 35px;
    }
}

@media (max-width: 500px) {
    /* Cards horizontales en très petit mobile */
    .company-card-horizontal {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .company-card-horizontal .photo-container,
    .company-card-horizontal .photo-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .company-card-horizontal .info {
        width: 100%;
    }
    
    .company-card-horizontal h3 {
        font-size: 16px;
    }
    
    .company-card-horizontal .actions {
        width: 100%;
    }
    
    .company-card-horizontal .btn-action {
        flex: 1;
        justify-content: center;
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .company-card h3 {
        font-size: 18px;
    }
    
    .company-card .photo-container {
        height: 160px;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .container-wide {
        padding: 0 20px;
    }
}

/* ===============================================
   PRINT
   =============================================== */
@media print {
    header, 
    footer, 
    .whatsapp-widget, 
    .cities-section {
        display: none;
    }
    
    .company-card,
    .company-card-horizontal {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn,
    .btn-action {
        display: none;
    }
    
    body {
        background: white;
    }
}

/* ===============================================
   MODE SOMBRE (optionnel)
   =============================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1612;
        --bg-white: #2C2416;
        --text-dark: #FAF7F0;
        --text-light: #D4C4B0;
    }
    
    .company-card,
    .company-card-horizontal,
    .text-section {
        background: #2C2416;
        border-color: rgba(250, 247, 240, 0.1);
    }
    
    .photo-placeholder {
        background: #1a1612;
    }
}

.local-expertise-section {
    margin: 60px 0 40px 0;  /* Changé de 40px 0 */
    padding: 0 20px;
    position: relative;      /* Ajouté */
    z-index: 10;            /* Ajouté */
    clear: both;            /* Ajouté */
    display: block !important; /* Ajouté */
}

.local-stat-banner {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid var(--accent-color);
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

.local-stat-banner i {
    color: var(--accent-color);
    margin-right: 10px;
}

.local-stat-banner strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Horaires accordéon dans top-choice-card */
.top-choice-card .opening-hours {
    display: none;  /* Caché par défaut SANS !important */
    margin-top: 20px;
    padding: 20px;
    background: rgba(90, 102, 80, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(90, 102, 80, 0.08);
}

.top-choice-card .opening-hours.show {
    display: block;  /* SANS !important */
    animation: slideDown 0.3s ease-out;
}

/* Bouton toggle pour horaires */
.top-choice-card .opening-hours-toggle {
    padding: 10px 18px;
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 1px solid rgba(90, 102, 80, 0.15);
    text-decoration: none;
    margin: 4px;
    transition: all 0.3s ease;
}

.top-choice-card .opening-hours-toggle:hover {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: white;
    transform: translateY(-1px);
    border-color: transparent;
}

/* Aligner avec les autres boutons */
.top-choice-card .top-choice-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 20px 0;
}

/* ===============================================
   SECTION FAQ - Optimisée SEO 2025
   Accordéon avec Schema Markup Support
   =============================================== */

.faq-section {
    margin: 80px 0;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(90, 102, 80, 0.02), rgba(107, 69, 64, 0.02));
    border-radius: var(--border-radius-lg);
    position: relative;
    clear: both;
}

.faq-section .section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 36px);
    color: var(--text-dark);
    margin-bottom: 50px;
    font-weight: 800;
    position: relative;
    padding-bottom: 20px;
}

.faq-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-accent));
    border-radius: 2px;
}

/* Container FAQ */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* FAQ Item - Structure optimisée SEO */
.faq-item {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid rgba(90, 102, 80, 0.08);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: visible; /* Important pour SEO - contenu toujours dans le DOM */
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(90, 102, 80, 0.15);
    transform: translateY(-2px);
}

/* FAQ Question - H3 pour hiérarchie SEO */
.faq-question {
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 700;
    color: var(--text-dark);
    padding: 25px 30px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(90, 102, 80, 0.03), rgba(107, 69, 64, 0.03));
}

/* Indicateur visuel gauche (actif seulement) */
.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item[data-expanded="true"] .faq-question::before {
    opacity: 1;
}

/* Icône accordéon (+/-) */
.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-item[data-expanded="true"] .faq-question::after {
    transform: rotate(45deg);
}

/* FAQ Answer - Visible dans le DOM, hauteur animée */
.faq-answer {
    padding: 0 30px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    visibility: visible; /* CRITIQUE pour SEO */
    background: var(--bg-white);
}

.faq-item[data-expanded="true"] .faq-answer {
    max-height: 1000px; /* Augmenté pour contenus longs */
    padding: 0 30px 25px 30px;
}

/* Contenu de la réponse */
.faq-answer-content {
    line-height: 1.7;
    color: var(--text-light);
    font-size: 15px;
    padding-top: 5px;
}

.faq-answer-content p {
    margin: 0 0 15px 0;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.faq-answer-content li {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

.faq-answer-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.faq-answer-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.faq-answer-content a:hover {
    color: var(--primary-gradient-start);
    text-decoration: underline;
}

/* Animation d'entrée du contenu */
@keyframes fadeInFAQ {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item[data-expanded="true"] .faq-answer-content {
    animation: fadeInFAQ 0.3s ease forwards;
}

/* Focus pour accessibilité */
.faq-question:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: -3px;
}

.faq-question:focus:not(:focus-visible) {
    outline: none;
}

/* Badges optionnels (NEW, POPULAR, etc.) */
.faq-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
}

.faq-badge.popular {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* ===============================================
   RESPONSIVE FAQ
   =============================================== */
@media (max-width: 768px) {
    .faq-section {
        margin: 50px 0;
        padding: 40px 0;
    }
    
    .faq-section .section-title {
        font-size: 24px;
        margin-bottom: 35px;
        padding-bottom: 15px;
    }
    
    .faq-container {
        padding: 0 15px;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 16px;
    }
    
    .faq-question::after {
        font-size: 20px;
        margin-left: 15px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item[data-expanded="true"] .faq-answer {
        padding: 0 20px 20px 20px;
    }
    
    .faq-answer-content {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 30px 0;
        margin: 40px 0;
    }
    
    .faq-section .section-title {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .faq-question {
        padding: 18px 15px;
        font-size: 15px;
    }
    
    .faq-question::after {
        font-size: 18px;
        margin-left: 10px;
    }
    
    .faq-item {
        margin-bottom: 15px;
    }
}

/* ===============================================
   PRINT STYLES FAQ
   =============================================== */
@media print {
    .faq-section {
        background: none;
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .faq-item {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        margin-bottom: 15px;
    }
    
    .faq-question::after {
        display: none;
    }
    
    .faq-answer {
        max-height: none !important;
        padding: 15px 30px !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .faq-item[data-expanded="false"] .faq-answer {
        max-height: none !important;
        padding: 15px 30px !important;
    }
}

/* ===============================================
   MODE SOMBRE FAQ (optionnel)
   =============================================== */
@media (prefers-color-scheme: dark) {
    .faq-section {
        background: linear-gradient(135deg, rgba(90, 102, 80, 0.05), rgba(107, 69, 64, 0.05));
    }
    
    .faq-item {
        background: #2C2416;
        border-color: rgba(250, 247, 240, 0.1);
    }
    
    .faq-question {
        background: #2C2416;
        color: #FAF7F0;
    }
    
    .faq-question:hover {
        background: linear-gradient(135deg, rgba(90, 102, 80, 0.08), rgba(107, 69, 64, 0.08));
    }
    
    .faq-answer {
        background: #2C2416;
    }
    
    .faq-answer-content,
    .faq-answer-content p,
    .faq-answer-content li {
        color: #D4C4B0;
    }
    
    .faq-answer-content strong {
        color: #FAF7F0;
    }
}