/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e8d528;
    --primary-dark: #c9b820;
    --accent: #1ecfc9;
    --green: #00bf63;
    --dark: #1a1a2e;
    --dark-light: #222240;
    --dark-card: #1e1e36;
    --text: #d3d3d3;
    --text-light: #a0a0a0;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #e8d528 0%, #c9b820 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-green: 0 8px 30px rgba(232, 213, 40, 0.25);
    --radius: 12px;
    --transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    /* Gris du texte courant sur fonds clairs : 4,64:1 sur #f2f4f3, 4,70:1 sur #f5f5f5, 5,12:1 sur blanc
       (l'ancien #6b7280 ne donnait que 4,38:1 sur #f2f4f3) */
    --text-dark: #676e7c;
    /* Messages du formulaire : 6,05:1 (erreur sur #fef3f2) et 5,40:1 (succès sur #ecfdf3) */
    --error: #b42318;
    --success: #067647;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
    overflow-x: clip;
}

/* Menu mobile ouvert : bloque le défilement de la page.
   Posé sur html (et non body), car html a overflow-x: clip */
html.menu-open {
    overflow: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: clip;
    width: 100%;
    overscroll-behavior-x: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-accent { color: var(--accent); }

/* Screen-reader only (accessible labels) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Champ piège anti-robot (honeypot) : toujours masqué, même sans l'attribut style */
.hidden { display: none !important; }

/* Lien d'évitement « Aller au contenu » : invisible jusqu'au focus clavier,
   puis affiché en haut à gauche (texte #1a1a2e sur blanc = 17,06:1) */
.skip-link {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10001;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    transition: none; /* apparaît d'un coup, sans la transition de couleur des liens */
}

.skip-link:focus {
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 16px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    background: var(--white);
    color: var(--dark);
    font-weight: 600;
    text-decoration: underline;
    border-radius: 8px;
    outline: 3px solid var(--dark);
    outline-offset: 2px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Cible du lien d'évitement : pas de contour autour de toute la page */
#main:focus {
    outline: none;
    box-shadow: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #34e89e 0%, #00bf63 50%, #0f9b4f 100%);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 191, 99, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 191, 99, 0.4);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #4af0ae 0%, #00bf63 50%, #0a8a42 100%);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-full { width: 100%; justify-content: center; }

/* ========== HEADER ========== */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    padding: 12px 20px;
}


.header-container {
    max-width: 1300px;
    margin: 0 auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 10px 15px 10px 20px;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-highlight { color: #9ca3af; }
.logo-text { color: #9ca3af; }
.logo-a { font-weight: 800; }
.logo-a.yellow { color: #e8d528; }
.logo-a.magenta { color: #1ecfc9; }
.logo-a.green { color: #00bf63; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.82rem;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    display: none;
}

.nav-item.active .nav-dot {
    display: inline-block;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    /* Toujours au-dessus du panneau du menu ouvert (sinon le X est recouvert) */
    position: relative;
    z-index: 2;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    min-height: 100svh; /* mobile : hauteur visible réelle, barre d'adresse comprise */
    display: flex;
    align-items: center;
    position: relative;
    background: var(--dark) url('../images/slider-03.jpg') center 0%/cover no-repeat;
    /* WebP (-51 %) sur les navigateurs récents ; la ligne ci-dessus reste le repli JPEG */
    background-image: image-set(url('../images/slider-03.webp') type('image/webp'), url('../images/slider-03.jpg') type('image/jpeg'));
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26,26,46,0.92) 0%, rgba(26,26,46,0.85) 40%, rgba(26,26,46,0.4) 70%, rgba(26,26,46,0.2) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 40px;
}

.hero-content {
    max-width: 580px;
    padding: 40px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.badge-line {
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.badge-text {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ========== SECTION COMMON ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header-left {
    margin-bottom: 60px;
}

.section-title-left {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin: 15px 0 15px;
}

.section-desc-left {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Titres : un mot trop long pour l'écran passe à la ligne au lieu de déborder */
.hero-title,
.section-title,
.section-title-left,
.why-title,
.steps-title,
.sol-panel h3 {
    overflow-wrap: anywhere;
}

/* ========== ADVANTAGES ========== */
.advantages {
    padding: 100px 0;
    background: var(--dark);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.advantage-card {
    background: var(--dark-light);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(232,213,40,0.2);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: rgba(232,213,40,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    background: var(--gradient);
    color: var(--dark);
}

.advantage-card h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.advantage-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ========== WHY SECTION ========== */
.why-section {
    padding: 100px 0;
    background: #f2f4f3;
    overflow: hidden;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-badge .badge-line {
    background: var(--dark);
}

.why-badge .badge-text {
    color: var(--dark);
    font-weight: 600;
}

.why-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin: 15px 0 20px;
}

.why-desc {
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 35px;
}

.why-feature {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.why-feature-icon {
    width: 55px;
    height: 55px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.why-feature-text h4 {
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.why-feature-text p {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.6;
}

.why-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    overflow: hidden;
}

.why-circles {
    position: relative;
    width: 100%;
    height: 450px;
}

.circle-green {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5ef8a 0%, #e8d528 50%, #c9b820 100%);
}

.circle-lg {
    width: 320px;
    height: 320px;
    bottom: 20px;
    left: 0;
    clip-path: inset(0 50% 0 0);
}

.circle-md {
    width: 250px;
    height: 250px;
    bottom: 55px;
    left: 120px;
    clip-path: inset(0 50% 0 0);
}

.circle-photo {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    top: 20px;
    right: 0;
    border: 6px solid #e5e7eb;
}

.circle-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== SOLUTIONS (TABBED) ========== */
.solutions {
    padding: 100px 0;
    background: var(--dark);
}

.solutions-badge .badge-line {
    background: var(--primary);
}
.solutions-badge .badge-text {
    color: var(--primary);
}

.solutions-tabbed {
    display: grid;
    grid-template-columns: 260px 1fr 1fr;
    gap: 35px;
    align-items: stretch;
    min-height: 480px;
}

.solutions-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sol-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: var(--dark-light);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.35s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.sol-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f5ef8a 0%, #e8d528 50%, #c9b820 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.sol-tab > * {
    position: relative;
    z-index: 1;
}

.sol-tab:hover {
    border-color: rgba(232,213,40,0.3);
}

.sol-tab.active::before {
    opacity: 1;
}

.sol-tab.active {
    color: var(--dark);
    font-weight: 600;
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(232,213,40,0.25);
}

.sol-tab-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.sol-tab.active .sol-tab-icon {
    background: rgba(26,26,46,0.15);
    color: var(--dark);
}

.sol-tab-text {
    line-height: 1.3;
}

.solutions-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 420px;
}

.sol-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.sol-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    border-radius: 20px;
    opacity: 0;
}

.sol-img.active {
    opacity: 1;
}

/* <picture> (repli JPEG des images WebP) ne doit créer aucune boîte :
   sans ça, .sol-img perd son positionnement et .circle-photo img sa hauteur */
.sol-img-wrap picture,
.circle-photo picture {
    display: contents;
}

/* ========== BANNIÈRE DE CONSENTEMENT (LOI 25) ========== */
/* Créée par js/analytics.js à la première visite seulement */
.consentement {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    padding: 20px 24px;
    background: var(--dark, #1a1a2e);
    border-top: 3px solid var(--primary, #e8d528);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
}

.consentement-texte {
    flex: 1 1 420px;
    margin: 0;
    color: var(--text, #d3d3d3);
    font-size: 0.92rem;
    line-height: 1.6;
}

.consentement-texte a {
    color: var(--primary, #e8d528);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.consentement-texte a:hover,
.consentement-texte a:focus-visible {
    color: var(--white, #fff);
}

.consentement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Le bouton « haut de page » est fixé en bas à droite (z-index 9999) et
   apparaît après 400 px de défilement : sans cette règle, il se superpose
   aux boutons Accepter / Refuser. La classe est posée sur <body> par
   js/analytics.js, et retirée dès que le visiteur a répondu. */
.consentement-ouvert .back-to-top {
    display: none;
}

.consentement-actions .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .consentement {
        padding: 16px;
        gap: 14px;
    }
    .consentement-actions {
        width: 100%;
    }
    .consentement-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* Solutions title on dark bg */
.solutions-title {
    color: var(--white);
}

.solutions-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
    position: relative;
}

.sol-panel {
    display: none;
    animation: solFadeIn 0.4s ease;
}

.sol-panel.active {
    display: block;
}

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

.sol-panel h3 {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.sol-panel > p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

.sol-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sol-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 400;
}

.sol-checklist li i {
    color: var(--green);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ========== STEPS ========== */
.steps {
    padding: 100px 0;
    background: #f2f4f3;
}

.steps-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 60px;
}

.steps-header .hero-badge .badge-line {
    background: var(--dark);
}

.steps-header .hero-badge .badge-text {
    color: var(--dark);
    font-weight: 600;
}

.steps-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    max-width: 450px;
    margin-top: 15px;
}

.steps-timeline {
    position: relative;
}

.steps-line {
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary) 0,
        var(--primary) 8px,
        transparent 10px,
        transparent 20px
    );
    background-size: 200% 100%;
    animation: dashFlow 40s linear infinite;
    z-index: 1;
}

.steps-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,191,99,0.5);
    z-index: 2;
    animation: ballTravel 6s ease-in-out infinite;
}

@keyframes ballTravel {
    0% { left: 0%; }
    100% { left: calc(100% - 14px); }
}

/* Ball-triggered hover effect on step items */
.step-item.ball-active .step-icon {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(232,213,40,0.2);
}
.step-item.ball-active .step-icon::before {
    opacity: 1;
}

@keyframes dashFlow {
    0% { background-position: 0% 0; }
    100% { background-position: -200% 0; }
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-icon-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.step-icon {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.step-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232,213,40,0.15) 0%, rgba(232,213,40,0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step-item:hover .step-icon {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(232,213,40,0.2);
}

.step-item:hover .step-icon::before {
    opacity: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--green);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 12px;
}

.step-item h3 {
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-item p {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 240px;
    margin: 0 auto;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    position: relative;
    padding: 100px 0;
    background: var(--dark);
    overflow: hidden;
}

.testimonials-bg-shape {
    position: absolute;
    top: -100px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232,213,40,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials .section-header {
    text-align: left;
}
.testimonials .section-desc {
    margin: 0;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    /* Glissement horizontal du doigt géré par main.js ; le défilement vertical et le zoom
       à deux doigts restent natifs */
    touch-action: pan-y pinch-zoom;
}

.testimonials-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 calc((100% - 50px) / 3);
    background: var(--dark-light);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 35px 30px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: rgba(232,213,40,0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 18px;
    line-height: 1;
}

.testimonial-card h4 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.testimonial-card > p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 22px;
}

.testimonial-stars i {
    color: #f5b731;
    font-size: 0.9rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(232,213,40,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial-author h5 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.82rem;
}

/* Bouton pause + pastilles */
.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

/* Masqué par main.js (attribut hidden) quand tous les témoignages tiennent à l'écran */
.testimonials-controls[hidden] {
    display: none;
}

.testimonials-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

/* Pastilles = vrais boutons générés par main.js : zone cliquable de 24 × 24 px minimum,
   pastille visuelle dessinée en ::before (inactive 4,43:1, active 11,36:1 sur #1a1a2e) */
.t-dot {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin: 0;
    padding: 0 7px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.t-dot::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: rgba(255,255,255,0.45);
    transition: width 0.3s ease, background 0.3s ease;
}

.t-dot:hover::before {
    background: rgba(255,255,255,0.75);
}

.t-dot.active::before,
.t-dot[aria-current]:not([aria-current="false"])::before {
    width: 30px;
    background: var(--primary);
}

/* Bouton pause du défilement automatique (bordure 4,43:1, icône 12,58:1 sur #1a1a2e) */
.t-pause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 50%;
    background: transparent;
    color: rgba(255,255,255,0.85);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.t-pause:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.t-pause[aria-pressed="true"] {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(232,213,40,0.12);
}

/* ========== FAQ ========== */
.faq {
    padding: 100px 0;
    background: var(--dark);
}

.faq .section-title {
    color: var(--white);
}

.faq .section-desc {
    color: var(--text);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--dark-light);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(232,213,40,0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 22px 25px;
    background: none;
    border: none;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    font-size: 0.8rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Réponse fermée : visibility:hidden pour que les lecteurs d'écran ne la lisent pas.
   À la fermeture, visibility attend la fin de l'animation (délai de 0,4 s) ;
   à l'ouverture, elle devient visible immédiatement */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    visibility: hidden;
    transition: grid-template-rows 0.4s ease, visibility 0s linear 0.4s;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.4s ease, visibility 0s linear 0s;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer p {
    padding: 0 25px 22px;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* ========== CONTACT ========== */
.contact {
    padding: 100px 0;
    background: #f2f4f3;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info .section-title {
    text-align: left;
    font-size: 2.2rem;
    color: var(--dark);
}

.contact .hero-badge .badge-line {
    background: var(--dark);
}

.contact .hero-badge .badge-text {
    color: var(--dark);
    font-weight: 600;
}

.contact-info > p {
    color: var(--text-dark);
    margin-bottom: 35px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: rgba(26,26,46,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    flex-shrink: 0;
    font-size: 1rem;
}

.contact-item h4 {
    color: var(--dark);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Téléphone et courriel cliquables (tel: / mailto:) : même couleur que le texte,
   soulignement discret, plus marqué au survol */
.contact-item a,
.footer-contact a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.contact-item a {
    text-decoration-color: rgba(26,26,46,0.35);
}

.contact-item a:hover {
    color: var(--dark);
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(26,26,46,0.05);
    border: 1px solid rgba(26,26,46,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient);
    color: var(--dark);
    border-color: var(--primary);
}

.footer .social-link {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
}

.footer .social-link:hover {
    background: var(--gradient);
    color: var(--dark);
    border-color: var(--primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: #fff;
    border: 1px solid rgba(26,26,46,0.1);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Cible des boutons « Faire une demande » : un peu d'air au-dessus du formulaire */
#demande {
    scroll-margin-top: 20px;
}

.contact-form h3 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: #f2f4f3;
    border: 1px solid rgba(26,26,46,0.12);
    border-radius: 10px;
    color: var(--dark);
    font-family: inherit;
    font-size: 1rem; /* 16 px minimum : évite le zoom automatique de Safari iOS au toucher */
    transition: var(--transition);
}

/* Placeholders : 4,64:1 sur #f2f4f3 (l'ancien #9ca3af ne donnait que 2,30:1) */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dark);
    opacity: 1; /* Firefox pâlit les placeholders par défaut */
}

/* Valeur choisie en foncé (15,44:1) ; tant que rien n'est choisi, même gris que les placeholders */
.form-group select {
    color: var(--dark);
    cursor: pointer;
}

.form-group select:has(option[value=""]:checked) {
    color: var(--text-dark);
}

.form-group select option {
    background: var(--white);
    color: var(--dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--dark);
    background: rgba(232,213,40,0.05);
}

/* Champ en erreur (aria-invalid posé par main.js) : bordure rouge renforcée,
   toujours accompagnée d'un message texte dans #formStatus (5,95:1 sur #f2f4f3) */
.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: var(--error);
    box-shadow: inset 0 0 0 1px var(--error);
}

.form-group textarea { resize: vertical; }

/* Question anti-robot : vrai <label> relié au champ réponse */
.captcha-label {
    display: block;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    user-select: none;
}

.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-row input {
    flex: 1;
    min-width: 0;
}

.captcha-refresh {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: var(--dark);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

/* Icône foncée au survol : 7,01:1 sur le vert (le blanc ne donnait que 2,43:1) */
.captcha-refresh:hover {
    background: var(--green);
    color: var(--dark);
}

/* Message d'état du formulaire (role="status") : erreurs et succès écrits en toutes lettres.
   Vide, il ne prend aucune place mais reste dans l'arbre d'accessibilité */
.form-status {
    margin: 0 0 15px;
    padding: 12px 16px;
    border-left: 4px solid transparent;
    border-radius: 10px;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.6;
}

.form-status:empty {
    margin: 0;
    padding: 0;
    border: 0;
}

.form-status.is-error {
    color: var(--error);
    background: #fef3f2;
    border-left-color: var(--error);
}

.form-status.is-success {
    color: var(--success);
    background: #ecfdf3;
    border-left-color: var(--success);
}

.form-status a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Numéro de téléphone jamais coupé en fin de ligne */
.form-status a[href^="tel:"] {
    white-space: nowrap;
}

/* Avis de collecte (Loi 25) sous le bouton Envoyer : 5,12:1 sur blanc, lien 17,06:1 */
.form-notice {
    margin-top: 14px;
    color: var(--text-dark);
    font-size: 0.8rem;
    line-height: 1.6;
}

.form-notice a {
    color: var(--dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-notice a:hover {
    text-decoration-thickness: 2px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark-light);
    padding: 60px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-about p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 15px 0 20px;
    line-height: 1.7;
}

.footer-logo { margin-bottom: 5px; }

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact p i {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

/* Liens tel: / mailto: du pied de page : 5,86:1 sur #222240, survol jaune 10,20:1 */
.footer-contact a {
    min-width: 0;
    text-decoration-color: rgba(255,255,255,0.35);
}

.footer-contact a:hover {
    color: var(--primary);
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-legal-link {
    color: var(--text-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal-link:hover {
    color: var(--primary);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--dark);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 20px rgba(232, 213, 40, 0.3);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(232, 213, 40, 0.4);
}

/* ========== FOCUS CLAVIER ========== */
/* Anneau double, lisible sur fonds sombres ET clairs :
   - sections sombres (par défaut) : contour jaune (11,36:1 sur #1a1a2e, 10,20:1 sur #222240),
     séparé de l'élément par un liseré foncé (utile sur les éléments jaunes : onglet actif, bouton haut de page) ;
   - sections claires : contour foncé (17,06:1 sur blanc, 15,44:1 sur #f2f4f3) avec liseré blanc.
   L'ancien contour jaune seul ne donnait que 1,50:1 sur blanc et 1,36:1 sur #f2f4f3. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--dark);
}

/* Éléments qui ont leur propre ombre (survol, onglet actif) : l'anneau passe devant */
.btn:focus-visible,
.sol-tab:focus-visible,
.back-to-top:focus-visible {
    box-shadow: 0 0 0 2px var(--dark);
}

/* FAQ : .faq-item coupe ce qui dépasse (overflow:hidden), l'anneau est donc tracé à l'intérieur */
.faq-question:focus-visible {
    outline-offset: -4px;
    box-shadow: none;
    border-radius: var(--radius);
}

/* Sections à fond clair */
.why-section :focus-visible,
.steps :focus-visible,
.contact :focus-visible,
.modal :focus-visible,
.legal-page :focus-visible {
    outline-color: var(--dark);
    box-shadow: 0 0 0 2px var(--white);
}

/* Champs du formulaire (toujours sur fond blanc) : bordure foncée + contour foncé */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--dark);
    outline-offset: 2px;
    box-shadow: none;
}

.form-group [aria-invalid="true"]:focus-visible {
    border-color: var(--error);
    box-shadow: inset 0 0 0 1px var(--error);
}

/* ========== SUCCESS MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-icon {
    font-size: 3.5rem;
    color: var(--green);
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.modal-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.modal-close {
    padding: 12px 40px;
}

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* Formulaire (#demande, cible des boutons « Faire une demande ») : fondu seulement.
   Un décalage vertical fausserait la position d'arrivée du défilement vers l'ancre. */
#demande.fade-in {
    transform: none;
}

/* Cartes avec effets de survol : l'apparition garde leurs propres transitions
   (ombre, bordure, couleurs), au lieu de les remplacer */
.advantage-card.fade-in,
.faq-item.fade-in {
    transition: var(--transition), opacity 0.6s ease, transform 0.6s ease;
}

/* Le soulèvement au survol l'emporte sur .fade-in.visible, sans le délai d'apparition en cascade
   (transitionDelay posé en ligne par main.js, d'où !important) */
.advantage-card.fade-in.visible:hover {
    transform: translateY(-8px);
    transition-delay: 0s !important;
}

/* ========== SANS JAVASCRIPT ========== */
/* La classe no-js de <html> est retirée par main.js dès son chargement */

/* FAQ : réponses affichées d'office */
.no-js .faq-answer {
    grid-template-rows: 1fr;
    visibility: visible;
}

.no-js .faq-question {
    cursor: default;
}

.no-js .faq-question i {
    display: none;
}

/* Solutions : tous les textes affichés l'un sous l'autre */
.no-js .sol-panel {
    display: block;
}

.no-js .sol-panel + .sol-panel {
    margin-top: 40px;
}

/* Témoignages : défilement horizontal natif (glisser ou barre de défilement) */
.no-js .testimonials-slider {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    touch-action: auto;
    padding-bottom: 12px;
}

.no-js .testimonial-card {
    scroll-snap-align: start;
}

.no-js .testimonials-controls {
    display: none;
}

/* CAPTCHA : la question ne peut pas être générée sans script */
.no-js .captcha-group {
    display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero .container { padding: 0 30px; }
    .hero-title { font-size: 3rem; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .solutions-tabbed { grid-template-columns: 1fr; gap: 25px; min-height: auto; }
    .solutions-tabs { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .sol-tab { padding: 14px 16px; font-size: 0.85rem; }
    /* Une seule colonne : le texte de l'onglet juste sous les onglets, l'image ensuite */
    .solutions-content { order: 2; }
    .solutions-image { order: 3; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .circle-photo { width: 300px; height: 300px; }
    .circle-lg { width: 280px; height: 280px; }
    .circle-md { width: 220px; height: 220px; }

    /* Pas de flou ici : backdrop-filter fait de .nav le repère du panneau position:fixed
       (panneau décalé de 11 px, qui défile avec la page et élargit le document à 659 px).
       Fond sombre presque opaque à la place */
    .nav {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(26, 26, 46, 0.85);
    }

    /* Mobile menu at 1024px */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--dark-light);
        flex-direction: column;
        padding: 80px 0 0 0;
        gap: 0;
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
        border-radius: 0;
        align-items: center;
        text-align: center;
        text-transform: uppercase;
        /* Hidden by default — display:none prevents scrollWidth inflation */
        display: none;
        transform: translateX(100%);
        transition: transform 0.3s ease, display 0.3s ease allow-discrete;
    }

    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }

    /* Entry animation: start from off-screen when transitioning from display:none */
    @starting-style {
        .nav-menu.active {
            transform: translateX(100%);
        }
    }

    .nav-menu .nav-item {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-menu .nav-link {
        font-size: 0.95rem;
        letter-spacing: 1px;
        font-weight: 600;
        justify-content: center;
    }

    .nav-menu .nav-dot {
        display: none;
    }

    .hamburger { display: flex; }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Sans JavaScript : pas de hamburger, les liens s'affichent sous le logo */
    .no-js .hamburger,
    .no-js .nav-actions { display: none; }
    .no-js .nav { flex-wrap: wrap; }
    .no-js .nav-menu {
        display: flex;
        position: static;
        width: 100%;
        height: auto;
        overflow: visible;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 14px;
        padding: 10px 0 0;
        background: none;
        box-shadow: none;
        transform: none;
    }
    .no-js .nav-menu .nav-item { width: auto; padding: 4px 0; border-bottom: 0; }
    .no-js .nav-menu .nav-link { font-size: 0.8rem; letter-spacing: 0; }
}

@media (max-width: 768px) {
    .header { padding: 12px 15px; }

    .nav { padding: 10px 15px; }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(26,26,46,0.9) 0%, rgba(26,26,46,0.75) 100%);
    }
    .hero .container { padding: 0 20px; }
    .hero-title { font-size: 2.2rem; }
    .hero-content { max-width: 100%; }
    .hero-desc { font-size: 0.9rem; }

    .advantages { padding: 60px 0; }
    .advantages-grid { gap: 15px; }

    .why-section { padding: 60px 0; }
    .why-grid { grid-template-columns: 1fr; gap: 40px; }
    .why-title { font-size: 2rem; }
    .why-image { min-height: 300px; }
    .why-circles { height: 300px; }
    .circle-photo { width: 250px; height: 250px; top: 10px; }
    .circle-lg { width: 220px; height: 220px; }
    .circle-md { width: 170px; height: 170px; left: 80px; }

    .solutions { padding: 60px 0; }
    .sol-tab-icon { width: 34px; height: 34px; font-size: 0.9rem; }
    .solutions-image { min-height: 300px; }

    .steps { padding: 60px 0; }
    .steps-top { flex-direction: column; gap: 20px; }
    .steps-title { font-size: 2rem; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
    .steps-line { display: none; }
    .step-icon { width: 100px; height: 100px; font-size: 2rem; }

    .contact-grid { grid-template-columns: 1fr; }

    .testimonials { padding: 60px 0; }
    .testimonial-card { flex: 0 0 100%; }
    .section-title { font-size: 2rem; }
    /* Titres H2 : plus petits que le H1 et sans débordement (44,8 px auparavant) */
    .section-title-left { font-size: 2rem; }
    .contact-info .section-title { font-size: 1.8rem; }

    .footer { padding: 60px 0 20px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .header { padding: 10px 10px; }
    .nav { padding: 8px 12px; }
    .logo { font-size: 1.2rem; }

    .hero { min-height: 90vh; min-height: 90svh; }
    .hero .container { padding: 0 15px; }
    .hero-title { font-size: 1.8rem; }
    .hero-desc { font-size: 0.85rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; text-align: center; }

    .advantages-grid { grid-template-columns: 1fr; }

    .why-title { font-size: 1.6rem; }
    .why-image { min-height: 250px; }
    .why-circles { height: 250px; }
    .circle-photo { width: 200px; height: 200px; }
    .circle-lg { width: 180px; height: 180px; }
    .circle-md { width: 140px; height: 140px; left: 60px; }
    .why-feature-icon { width: 45px; height: 45px; font-size: 1.1rem; }

    .solutions-tabs { flex-direction: column; }
    .solutions-image { min-height: 250px; }

    .steps-title { font-size: 1.6rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-icon { width: 90px; height: 90px; font-size: 1.8rem; }

    .section-title { font-size: 1.6rem; }
    .section-title-left,
    .contact-info .section-title { font-size: 1.6rem; }
    .form-row { grid-template-columns: 1fr; }

    .back-to-top { bottom: 15px; right: 15px; width: 40px; height: 40px; font-size: 0.9rem; }
}

/* Extra small devices (iPhone SE, etc.) */
@media (max-width: 360px) {
    .hero-title { font-size: 1.5rem; }
    .btn { padding: 14px 24px; font-size: 0.85rem; }
    .section-title,
    .section-title-left,
    .contact-info .section-title { font-size: 1.4rem; }
    .why-title { font-size: 1.4rem; }
    .steps-title { font-size: 1.4rem; }
}

/* ========== RÉDUCTION DES ANIMATIONS ========== */
/* Réglage système « Réduire les animations » : plus de boucles, de glissements ni de défilement doux.
   Durées de 0,01 ms (et non 0) pour que main.js reçoive encore ses événements transitionend / animationend */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }

    /* Ligne des étapes : ni tirets qui défilent ni bille qui voyage */
    .steps-line,
    .steps-line::after {
        animation: none !important;
    }

    /* Apparitions au défilement : contenu affiché d'emblée, sans glissement */
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* ========== IMPRESSION ========== */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #111 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        transition: none !important;
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }

    .skip-link,
    .header,
    .back-to-top,
    .modal-overlay,
    .testimonials-controls,
    .hero-overlay,
    .testimonials-bg-shape,
    .steps-line,
    .why-image,
    .solutions-image {
        display: none !important;
    }

    /* Tout le contenu visible : blocs pas encore apparus, réponses de la FAQ, 5 panneaux Solutions */
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }

    .faq-answer {
        grid-template-rows: 1fr !important;
        visibility: visible !important;
    }

    .faq-question i {
        display: none;
    }

    .sol-panel {
        display: block !important;
        animation: none !important;
    }

    .sol-panel + .sol-panel {
        margin-top: 24px;
    }

    .hero {
        min-height: 0;
        padding: 0 0 24px;
    }

    .advantages,
    .why-section,
    .solutions,
    .steps,
    .testimonials,
    .faq,
    .contact {
        padding: 24px 0;
    }

    /* Témoignages : les 5 cartes, deux par ligne */
    .testimonials-slider {
        overflow: visible;
    }

    .testimonials-track {
        flex-wrap: wrap;
        transform: none !important;
    }

    .testimonial-card {
        flex: 1 1 45%;
    }

    .advantage-card,
    .testimonial-card,
    .faq-item,
    .step-item,
    .sol-panel {
        break-inside: avoid;
    }

    h1, h2, h3, h4 {
        break-after: avoid;
    }
}
