:root {
    /* Mapping depuis ton ColorScheme light */
    --color-primary: #19647E;
    /* primary */
    --color-primary-soft: #C8E1E9;
    /* primaryFixed */
    --color-primary-soft-alt: #A1CBCF;
    /* primaryContainer */
    --color-secondary: #FEB716;
    /* secondary */
    --color-secondary-soft: #FFDEA5;
    /* secondaryContainer */
    --color-surface: #FCFCFC;
    /* surface */
    --color-surface-alt: #F3F3F3;
    /* surfaceContainer */
    --color-surface-high: #EDEDED;
    /* surfaceContainerHigh */
    --color-border-soft: #D1D1D1;
    /* outlineVariant */
    --color-text: #111111;
    /* onSurface */
    --color-text-muted: #555555;
    /* onSurfaceVariant-ish */
    --color-text-soft: #777777;

    --max-width: 1120px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* RESET */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-surface);
    color: var(--color-text);
}

/* CONTAINER */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: rgba(252, 252, 252, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo {
    font-family: 'Pacifico', 'Segoe Script', 'Comic Sans MS', cursive;
    font-size-adjust: 0.5;
    font-size: 1.45rem;
    display: inline-flex;
    align-items: baseline;
    gap: 0.1rem;
    text-decoration: none;
    color: inherit;
}

.logo-mark {
    color: var(--color-primary);
}

.logo-mark-alt {
    color: var(--color-primary);
}

.main-nav {
    display: none;
    align-items: center;
    gap: 1.4rem;
    font-size: 0.95rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-soft);
}

.main-nav a:hover {
    color: var(--color-primary);
}

.nav-toggle {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #FFFFFF;
    border-radius: 999px;
    color: #333333;
    font-size: 1.3rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

/* NAV mobile open : au-dessus du header ET du backdrop */
.main-nav.open {
    position: absolute;
    inset: 100% 0 auto 0;
    z-index: 310;
    /* <-- au-dessus du header (300) + backdrop (200) */
    background: rgba(252, 252, 252, 0.96);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem 1.1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
}

.main-nav.open a:focus-visible {
    background: var(--color-surface-alt);
    border-radius: 8px;
    padding: 0.2rem 0.35rem;
    outline-offset: 4px;
}

/* Backdrop du menu mobile : en-dessous du header & du menu */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 200;
    /* <-- sous le header (300) et le menu (310) */
    display: none;
    transition: opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
    /* évite toute interception quand caché */
}

.nav-backdrop.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
    /* cliquable uniquement quand visible */
}

/* Header opaque quand le menu mobile est ouvert */
body.nav-open .site-header {
    background: rgba(252, 252, 252, 0.96);
    /* même que le menu */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: transparent;
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 3.5rem;
    background: linear-gradient(135deg,
            #FFFFFF 0%,
            var(--color-primary-soft) 40%,
            #FFFFFF 100%);
}

.hero-bg {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at top left, rgba(25, 100, 126, 0.12), transparent 55%),
        radial-gradient(circle at bottom right, rgba(254, 183, 22, 0.16), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    z-index: 1;
}

.hero-text {
    max-width: 36rem;
    /* limite la largeur pour un meilleur confort de lecture */
    padding-top: 0.5rem;
    /* petit ajustement vertical si tu veux aligner avec le phone */
}

.hero-text h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 0 0 0.8rem;
    color: #102A3A;
}

.hero-subtitle {
    margin: 0 0 1.6rem;
    max-width: 32rem;
    color: var(--color-text-soft);
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.6rem;
}

.hero-highlights {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}


.hero-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.hero-highlight-bar {
    width: 4px;
    height: 2.2rem;
    border-radius: 999px;
    background: linear-gradient(180deg,
            var(--color-secondary),
            var(--color-secondary-soft));
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.hero-highlight-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #102A3A;
}

.hero-highlight-sub {
    font-size: 0.85rem;
    color: var(--color-text-soft);
}

.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.chip-light {
    background: var(--color-primary-soft);
    color: var(--color-text);
}

.chip-outline {
    border: 1px solid var(--color-border-soft);
    color: var(--color-text-soft);
    background: #FFFFFF;
}



.hero-meta {
    font-size: 0.9rem;
    color: var(--color-text-soft);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1.6rem;
}



/* HERO visuel */

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* petit offset pour mieux équilibrer avec le texte si besoin */
    margin-top: 0rem;
}


/* Conteneur du mockup */
.hero-phone-stack {
    width: 100%;
    max-width: 340px;
}

/* Le phone est maintenant un simple bloc, plus de position absolue */
.hero-phone {
    position: relative;
    width: 100%;
    max-width: 100%;

    border-radius: 22px;
    /* à ajuster ou retirer selon ton PNG */
    overflow: hidden;
    /* pour que le rayon s’applique bien si besoin */
}

/* L’image suit naturellement */
.hero-phone img {
    display: block;
    width: 100%;
    height: auto;
}

/* Téléphone principal (au centre) */
.hero-phone-main {
    width: 100%;
}


/* Légende sous le téléphone */
.hero-caption {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-soft);
    text-align: center;
    max-width: 20rem;
}

/* SECTIONS GÉNÉRIQUES */

.section {
    padding: 3.5rem 0;
    background: var(--color-surface);
}

.section-alt {
    background: var(--color-primary-soft);
}

.section h2 {
    font-size: 1.7rem;
    margin: 0 0 1rem;
    color: #102A3A;
}

.section-intro {
    max-width: 36rem;
    margin: 0 0 2rem;
    font-size: 1rem;
    color: var(--color-text-soft);
}

.text-block p {
    margin-top: 0;
    color: var(--color-text-soft);
}

.emoji {
    display: inline-block;
    width: 32px;
    height: 32px;
    /* fixe la boîte pour éviter le CLS */
    vertical-align: middle;
}


/* AUDIENCE */

.audience-intro {
    max-width: 48rem;
    margin: 0 0 2rem;
}

.audience-intro p {
    margin: 0 0 0.6rem;
    color: var(--color-text-soft);
}

.audience-cards {
    display: grid;
    grid-template-columns: 1fr;
    /* mobile : 1 carte par ligne */
    gap: 1rem;
}

.audience-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-soft);
}

.audience-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    color: #102A3A;
}

/* 1) Icônes Audience : les mettre en bloc et créer un espace sous l'icône */
.audience-card .emoji {
    display: block;
    /* évite l'alignement sur la baseline */
    line-height: 0;
    /* supprime toute “hauteur” résiduelle */
    margin-bottom: 0.55rem;
    /* espace harmonieux avec le <h3> */
}


.audience-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--color-text-soft);
}

/* FEATURES */

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.feature-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-soft);
}

/* 2) Icônes Features : éviter l'effet collé au titre si besoin */
.feature-icon {
    display: inline-flex;
    /* garde la boîte de l'icône “propre” */
    align-items: center;
    margin-bottom: 0.55rem;
    /* un peu plus d’air avec le <h3> */
}

.feature-icon .emoji {
    display: block;
    /* pareil : pas de baseline-gap */
    line-height: 0;
}

.feature-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    color: #102A3A;
}

.feature-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--color-text-soft);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0;
}

.feature-list li {
    font-size: 0.88rem;
    color: var(--color-text-soft);
    margin-bottom: 0.25rem;
}

/* FAQ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

details {
    background: #FFFFFF;
    border-radius: 0.9rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: #102A3A;
    list-style: none;
    letter-spacing: .2px;
}

summary::-webkit-details-marker {
    display: none;
}

details p {
    margin: 0.55rem 0 0.2rem;
    font-size: 0.92rem;
    color: var(--color-text-soft);
}

/* CTA */

.section-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary), #0E3F52);
    color: #FFFFFF;
}

.section-cta h2 {
    color: #FFFFFF;
}

.section-cta .section-intro {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 1.7rem;
}

/* FOOTER */

.site-footer {
    background: var(--color-surface-alt);
    color: var(--color-text-soft);
    padding-top: 2.5rem;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 1.5rem;
}

.footer-logo {
    margin-bottom: 0.5rem;
}

.footer-text {
    margin: 0;
    font-size: 0.9rem;
}

.site-footer h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #111111;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.25rem;
}

.footer-links a {
    color: #19647E;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
    font-size: 0.85rem;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
}

.footer-copy,
.footer-note {
    margin: 0;
    line-height: 1.4;
}

/* BOUTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.6rem 1.35rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition:
        transform 0.1s ease-out,
        box-shadow 0.1s ease-out,
        background 0.1s ease-out,
        color 0.1s ease-out,
        border-color 0.1s ease-out;
}

.btn-primary {
    background: var(--color-secondary);
    color: #231500;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.btn-ghost {
    background: #FFFFFF;
    color: var(--color-primary);
    border-color: var(--color-border-soft);
}

.btn-ghost:hover {
    background: var(--color-secondary-soft);
    border-color: var(--color-secondary);
}

.btn-outline {
    border-color: var(--color-border-soft);
    color: var(--color-text-soft);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn.small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
}

/* LEGAL SHARED: styles communs à toutes les pages légales */

.legal {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}

.legal section+section {
    margin-top: 2rem;
}

.legal h2 {
    margin: 0 0 .6rem;
    color: #102A3A;
    font-size: 1.25rem;
}

.legal p {
    margin: .4rem 0;
    color: var(--color-text-soft);
}

.legal ul {
    margin: .4rem 0 .8rem 1.25rem;
    color: var(--color-text-soft);
}

/* Tables légales (finalités, sous-traitants, durées, ...) */
.legal .table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 12px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.legal th,
.legal td {
    padding: .7rem .8rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    vertical-align: top;
}

.legal th {
    text-align: left;
    background: var(--color-surface-alt);
    color: #102A3A;
}

.legal .note {
    font-size: .9rem;
    color: var(--color-text-muted);
}

/* LEGAL – Header spécifique aux pages légales */
.legal-header {
    background: linear-gradient(135deg, var(--color-primary-soft), #fff 70%);
    text-align: center;
    padding: 2.0rem 0 0.8rem;
    /* ajustable */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-header .legal-title {
    margin: 0;
    color: #102A3A;
    font-size: 1.8rem;
}

.legal-header .legal-meta {
    margin: .35rem 0 0;
    color: var(--color-text-soft);
    font-size: .95rem;
}

/* Densité plus compacte pour les pages légales */
.legal-page .section {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.legal-page .section:first-of-type {
    padding-top: 1rem;
}

/* Logo cliquable : pas de soulignement, même rendu visuel qu'avant */
.site-header .logo,
.site-header .logo:link,
.site-header .logo:visited {
    display: inline-flex;
    /* garde l'alignement d'origine */
    align-items: baseline;
    gap: 0.1rem;
    text-decoration: none;
    /* supprime le soulignement */
    color: inherit;
    /* évite une couleur de lien par défaut */
}

/* Optionnel : petit feedback au survol */
.site-header .logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

/* Accessibilité : focus visible propre sur le logo-lien */
.site-header .logo:focus-visible {
    outline: 3px solid color-mix(in oklab, var(--color-primary) 60%, black);
    outline-offset: 3px;
    border-radius: 10px;
}

/* FONTS */

@font-face {
    font-family: 'Pacifico';
    src: url('/fonts/Pacifico-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: optional;
}



/* RESPONSIVE */

/* mobile */
/* Gouttières mobiles + safe-areas (iOS notch) */
@media (max-width: 719px) {
    :root {
        /* gouttière horizontale responsive : 16px → 24px selon la largeur */
        --gutter-mobile: clamp(16px, 5vw, 24px);
    }

    .site-header {
        padding-top: env(safe-area-inset-top);
        /* évite que le header colle à l’encoche */
    }

    /* Le container du header gagne des marges intérieures à gauche/droite */
    .site-header .container {
        padding-left: max(var(--gutter-mobile), env(safe-area-inset-left));
        padding-right: max(var(--gutter-mobile), env(safe-area-inset-right));
    }

    /* Densité verticale un peu plus compacte mais confortable */
    .header-content {
        padding: 0.6rem 0;
    }

    /* Logo cliquable : zone tactile confortable + léger arrondi au focus */
    .site-header .logo {
        padding: 0.25rem 0.4rem;
        border-radius: 10px;
    }

    /* Burger : zone tactile généreuse, sans coller au bord visuellement */
    .nav-toggle {
        padding: 0.5rem 0.9rem;
        /* déjà ok, on confirme une zone 44x44 mini */
    }

    .hero-phone-stack {
        max-width: 320px;
    }

    .hero-phone {
        width: 100%;
    }

}

/* Harmonise la gouttière quand le menu mobile est ouvert (panneau déroulant) */
@media (max-width: 719px) {
    .main-nav.open {
        padding-left: var(--gutter-mobile);
        padding-right: var(--gutter-mobile);
    }
}


@media (max-width: 719px) {
    .audience-card .emoji {
        width: 40px;
        height: 40px;
    }
}


@media (min-width: 720px) {
    .main-nav {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }

    .section h2 {
        font-size: 1.9rem;
    }

    .hero {
        padding: 4.5rem 0 4rem;
    }

    .hero-grid {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .hero-text h1 {
        font-size: 2.7rem;
    }


    .two-columns {
        flex-direction: row;
    }

    .two-columns>* {
        flex: 1;
    }

    .audience-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        flex-direction: row;
    }

    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .footer-copy,
    .footer-note {
        display: block;
    }

    .legal-header .legal-title {
        font-size: 2rem;
    }

}

@media (min-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-text {
        max-width: 38rem;
    }

    .hero-text h1 {
        font-size: 2.7rem;
        margin-bottom: 0.9rem;
    }

    .hero-subtitle {
        margin-bottom: 1.8rem;
    }

    .hero-actions {
        margin-bottom: 1.8rem;
    }

}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Les ancres ne passent plus sous le header sticky */
#top,
#audience,
#features,
#faq {
    scroll-margin-top: 84px;
}

/* ACCESSIBILITÉ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    background: #fff;
    color: var(--color-primary);
    padding: 0.5rem 0.8rem;
    border-radius: 0.5rem;
    font-weight: 600;
    z-index: 9999;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}


/* focus clavier visible */
:focus-visible {
    outline: 3px solid color-mix(in oklab, var(--color-primary) 60%, black);
    outline-offset: 2px;
}

/* On arrondit un peu les boutons et liens quand ils sont au focus */
.main-nav a:focus-visible,
.btn:focus-visible {
    border-radius: 10px;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 1px, 1px);
    white-space: nowrap;
    border: 0;
}