/* ==========================================================================
   CROQ ENGLISH — feuille de styles globale
   Palette, typographie, composants. Mobile-first.
   ========================================================================== */

/* --- Variables --- */
:root {
    /* Palette (cf. spec §8.2) */
    --c-cream:        #FAF6EE;
    --c-cream-soft:  #FDFAF3;
    --c-teal:        #2D5F6E;
    --c-teal-dark:   #1F4753;
    --c-terracotta:  #D97149;
    --c-terracotta-dark: #B85A36;
    --c-sage:        #8BA888;
    --c-text:        #3A2B1F;
    --c-text-soft:   #5C4A3C;
    --c-border:      #E8DECB;

    /* Typo */
    --font-titre: 'Nunito', system-ui, sans-serif;
    --font-text:  'Inter', system-ui, sans-serif;

    /* Échelle typographique */
    --fs-xs:   0.875rem;
    --fs-base: 1rem;
    --fs-md:   1.125rem;
    --fs-lg:   1.25rem;
    --fs-xl:   1.5rem;
    --fs-2xl:  2rem;
    --fs-3xl:  2.5rem;
    --fs-4xl:  3.25rem;

    /* Espacements (multiples de 4px) */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-24: 6rem;

    /* Radius et ombres */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-soft: 0 4px 16px rgba(58, 43, 31, 0.06);
    --shadow-card: 0 6px 24px rgba(58, 43, 31, 0.08);

    /* Largeurs de contenu */
    --w-text:   720px;
    --w-wide: 1100px;
}

/* --- Reset léger --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--c-cream);
    color: var(--c-text);
    font-family: var(--font-text);
    font-size: var(--fs-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--c-terracotta-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 120ms ease;
}
a:hover { color: var(--c-terracotta); }
a:focus-visible {
    outline: 2px solid var(--c-teal);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Skip link accessibilité */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--c-teal);
    color: white;
    padding: var(--sp-3) var(--sp-4);
    z-index: 1000;
}
.skip-link:focus {
    top: 0;
}

/* --- Typographie --- */
h1, h2, h3, h4 {
    font-family: var(--font-titre);
    color: var(--c-teal);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--sp-4);
}
h1 { font-size: var(--fs-4xl); letter-spacing: -0.015em; font-weight: 800; }
h2 { font-size: var(--fs-3xl); font-weight: 800; }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

.eyebrow {
    font-family: var(--font-titre);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: var(--fs-xs);
    color: var(--c-terracotta);
    margin: 0 0 var(--sp-2);
}

.lead {
    font-size: var(--fs-md);
    color: var(--c-text-soft);
    max-width: 56ch;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--w-wide);
    margin: 0 auto;
    padding: 0 var(--sp-4);
}

.section {
    padding: var(--sp-16) 0;
}
.section--narrow { padding: var(--sp-12) 0; }
.section--alt {
    background: var(--c-cream-soft);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

@media (min-width: 768px) {
    .section { padding: var(--sp-24) 0; }
}

/* --- Boutons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-6);
    border-radius: var(--radius-sm);
    font-family: var(--font-titre);
    font-weight: 700;
    font-size: var(--fs-base);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}
.btn--primary {
    background: var(--c-terracotta);
    color: white;
}
.btn--primary:hover {
    background: var(--c-terracotta-dark);
    color: white;
    transform: translateY(-1px);
}
.btn--ghost {
    background: transparent;
    color: var(--c-teal);
    border-color: var(--c-teal);
}
.btn--ghost:hover {
    background: var(--c-teal);
    color: white;
}

/* --- Cards --- */
.card {
    background: var(--c-cream-soft);
    border-radius: var(--radius-md);
    padding: var(--sp-6);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--c-border);
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(250, 246, 238, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-border);
    z-index: 100;
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: 0 var(--sp-4);
    min-height: 64px;
}
.site-header__brand {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
/* Le renard est plus grand que la barre et déborde sous le header (effet mascotte). */
.brand-renard {
    height: 104px;
    width: auto;
    margin-bottom: -40px;
    display: block;
}
/* Version 1 ligne (grand écran, ≥ 1100px) */
.brand-texte--1l {
    height: 45px;          /* hauteur d'image du wordmark (lettres ~40px) */
    width: auto;
    display: block;
}
/* Version 2 lignes : masquée par défaut */
.brand-texte--2l {
    display: none;
}

/* Sous 1100px (largeur max du container), le wordmark 1 ligne mordrait sur la nav :
   on bascule sur la version 2 lignes, calée sur la hauteur du renard et son débordement. */
@media (max-width: 1100px) {
    .brand-texte--1l { display: none; }
    .brand-texte--2l {
        display: block;
        height: 104px;          /* = hauteur du renard */
        width: auto;
        margin-bottom: -40px;   /* = même débordement que le renard */
    }
}

@media (max-width: 600px) {
    .brand-renard { height: 80px; margin-bottom: -30px; }
    .brand-texte--2l { height: 80px; margin-bottom: -30px; }
}
.site-nav {
    display: none;
    gap: var(--sp-6);
}
.site-nav a {
    color: var(--c-teal);
    text-decoration: none;
    font-family: var(--font-titre);
    font-weight: 500;
}
.site-nav a[aria-current="page"] {
    color: var(--c-terracotta);
}
.site-header__cta {
    padding: var(--sp-2) var(--sp-4);
    font-size: var(--fs-xs);
}

/* Bouton hamburger : masqué sur desktop, visible sous 900px */
.site-nav-toggle {
    display: none;
}

@media (min-width: 900px) {
    .site-nav { display: flex; }
    .site-header__cta { font-size: var(--fs-base); }
}

/* Menu mobile (< 900px) : la nav devient un panneau déroulant ouvert par le hamburger */
@media (max-width: 899px) {
    .site-header__inner { position: relative; }

    .site-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: none;
        color: var(--c-teal);
        cursor: pointer;
    }
    .site-nav-toggle__bars,
    .site-nav-toggle__bars::before,
    .site-nav-toggle__bars::after {
        content: "";
        display: block;
        width: 24px;
        height: 3px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .site-nav-toggle__bars { position: relative; }
    .site-nav-toggle__bars::before { position: absolute; top: -7px; left: 0; }
    .site-nav-toggle__bars::after  { position: absolute; top: 7px;  left: 0; }

    .site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bars { background: transparent; }
    .site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
    .site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        background: var(--c-cream);
        border-bottom: 1px solid var(--c-border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.10);
        padding: var(--sp-2) var(--sp-4) var(--sp-4);
        z-index: 99;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a {
        padding: var(--sp-3) var(--sp-2);
        font-size: var(--fs-md);
        border-bottom: 1px solid var(--c-border);
    }
    .site-nav a:last-child { border-bottom: none; }
}

/* --- Footer --- */
.site-footer {
    background: var(--c-teal);
    color: var(--c-cream);
    padding: var(--sp-12) 0;
    margin-top: var(--sp-16);
}
.site-footer__inner {
    display: grid;
    gap: var(--sp-6);
    text-align: center;
}
.site-footer__brand p {
    margin-top: var(--sp-2);
    color: var(--c-cream-soft);
}
.site-footer__brand img {
    margin: 0 auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-4);
}
.site-footer__nav a {
    color: var(--c-cream);
    text-decoration: none;
}
.site-footer__nav a:hover {
    color: white;
    text-decoration: underline;
}
.site-footer__admin {
    opacity: 0.6;
    font-size: var(--fs-xs);
}
.site-footer__copyright {
    color: var(--c-cream-soft);
    font-size: var(--fs-xs);
    opacity: 0.7;
    margin-top: var(--sp-4);
}

/* --- Page 404 --- */
.page-404 {
    text-align: center;
}
.page-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    justify-content: center;
    margin-top: var(--sp-6);
}

/* --- Page styleguide (interne) --- */
.styleguide__swatch {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--sp-4);
    margin: var(--sp-4) 0 var(--sp-8);
}
.styleguide__color {
    border-radius: var(--radius-md);
    padding: var(--sp-4);
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow-soft);
    color: white;
    font-family: var(--font-titre);
}
.styleguide__color code {
    display: block;
    font-family: ui-monospace, monospace;
    font-size: var(--fs-xs);
    opacity: 0.9;
    margin-top: var(--sp-1);
}
.styleguide__color--text-dark { color: var(--c-text); }
.styleguide__row {
    display: grid;
    gap: var(--sp-4);
    margin: var(--sp-6) 0;
}
@media (min-width: 700px) {
    .styleguide__row {
        grid-template-columns: 1fr 1fr;
    }
}

.styleguide__pictos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-8);
    margin: var(--sp-4) 0;
    align-items: flex-start;
}
.styleguide__picto {
    text-align: center;
    max-width: 140px;
}
.styleguide__picto svg {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--sp-2);
    color: var(--c-terracotta);
}
.styleguide__picto span {
    font-family: var(--font-titre);
    font-weight: 500;
    color: var(--c-teal);
    font-size: var(--fs-xs);
    display: block;
}

/* ==========================================================================
   Plan 3 — Pages publiques (accueil, approche, cecilia, tarifs, faq, contact)
   ========================================================================== */

/* Variante container étroit pour les pages texte */
.container--narrow {
    max-width: var(--w-text);
}

/* Wrappers de section : titres, intros, outros */
.section__title {
    margin-bottom: var(--sp-4);
}
.section__intro,
.section__outro {
    color: var(--c-text-soft);
    max-width: 56ch;
    margin-bottom: var(--sp-8);
}
.section__outro {
    margin-top: var(--sp-8);
    margin-bottom: 0;
}

/* Placeholder visible pour les contenus à valider par Cécilia */
.todo-cecilia {
    background: #FFF59D;
    color: var(--c-text);
    padding: 0.1em 0.35em;
    border-radius: 3px;
    font-style: italic;
    font-size: 0.95em;
    box-shadow: inset 0 -1px 0 rgba(58, 43, 31, 0.15);
}

/* --- Accueil : hero --- */
.section--hero {
    padding-top: var(--sp-12);
}
.hero {
    display: grid;
    gap: var(--sp-8);
}
.hero__content {
    max-width: 38rem;
}

/* --- Accueil : parcours en 4 pictos --- */
.parcours {
    list-style: none;
    padding: 0;
    margin: var(--sp-8) 0;
    display: grid;
    gap: var(--sp-8);
}
@media (min-width: 700px) {
    .parcours {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 980px) {
    .parcours {
        grid-template-columns: repeat(4, 1fr);
    }
}
.parcours__step {
    text-align: center;
    padding: var(--sp-4);
}
.parcours__picto {
    margin-bottom: var(--sp-4);
}
.parcours__picto svg {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    color: var(--c-terracotta);
}
.parcours__step h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-2);
}
.parcours__step p {
    color: var(--c-text-soft);
    font-size: var(--fs-base);
}

/* --- Accueil : 3 piliers (cards en grid) --- */
.piliers {
    display: grid;
    gap: var(--sp-6);
    margin-top: var(--sp-8);
}
@media (min-width: 768px) {
    .piliers {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Accueil : tarifs résumés --- */
.tarifs-list {
    list-style: none;
    padding: 0;
    margin: var(--sp-6) 0;
    display: grid;
    gap: var(--sp-2);
}
.tarifs-list li {
    padding: var(--sp-3) var(--sp-4);
    background: var(--c-cream-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
}
.tarifs-list strong {
    color: var(--c-teal);
}

/* --- FAQ : accordéons natifs --- */
.faq-list {
    margin: var(--sp-6) 0 var(--sp-12);
    display: grid;
    gap: var(--sp-3);
}
.faq-list details {
    background: var(--c-cream-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--sp-4) var(--sp-6);
    transition: background 120ms ease;
}
.faq-list details[open] {
    background: white;
    box-shadow: var(--shadow-soft);
}
.faq-list summary {
    cursor: pointer;
    font-family: var(--font-titre);
    font-weight: 700;
    color: var(--c-teal);
    font-size: var(--fs-md);
    list-style: none;
    position: relative;
    padding-right: var(--sp-8);
}
.faq-list summary::-webkit-details-marker {
    display: none;
}
.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--fs-xl);
    color: var(--c-terracotta);
    transition: transform 150ms ease;
    line-height: 1;
}
.faq-list details[open] summary::after {
    content: "−";
}
.faq-list details > p {
    margin-top: var(--sp-3);
    color: var(--c-text-soft);
}
.faq-cat {
    margin-top: var(--sp-12);
    border-bottom: 1px solid var(--c-border);
    padding-bottom: var(--sp-2);
}
.faq-cat:first-of-type {
    margin-top: var(--sp-4);
}
.faq-outro {
    margin-top: var(--sp-8);
    color: var(--c-text-soft);
}

/* --- Page hero (toutes pages secondaires) --- */
.section--page-hero {
    padding-bottom: var(--sp-8);
}
@media (min-width: 768px) {
    .section--page-hero {
        padding-bottom: var(--sp-12);
    }
}

/* --- Approche : timeline d'une après-midi --- */
.timeline {
    margin: var(--sp-6) 0;
    display: grid;
    gap: var(--sp-6);
}
.timeline__step {
    position: relative;
    padding-left: var(--sp-16);
    padding-bottom: var(--sp-2);
    border-left: 2px solid var(--c-sage);
    margin-left: var(--sp-4);
}
.timeline__step:last-child {
    border-left-color: transparent;
}
.timeline__hour {
    position: absolute;
    left: calc(-1 * var(--sp-4) - 2px);
    top: 0;
    background: var(--c-terracotta);
    color: white;
    font-family: var(--font-titre);
    font-weight: 700;
    font-size: var(--fs-xs);
    padding: var(--sp-1) var(--sp-3);
    border-radius: 999px;
    transform: translateX(-50%);
}
.timeline__step h3 {
    margin-top: 0;
    margin-bottom: var(--sp-2);
    font-size: var(--fs-lg);
}
.timeline__step p {
    color: var(--c-text-soft);
}

/* --- Listes à puces stylées (checklist) --- */
.checklist {
    list-style: none;
    padding: 0;
    margin: var(--sp-4) 0 var(--sp-6);
    display: grid;
    gap: var(--sp-3);
}
.checklist li {
    position: relative;
    padding-left: var(--sp-8);
}
.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.1em;
    color: var(--c-sage);
    font-weight: 700;
    font-size: var(--fs-md);
}

/* --- Layout deux colonnes (Approche : gagnant/gagnant) --- */
.two-col {
    display: grid;
    gap: var(--sp-8);
}
@media (min-width: 768px) {
    .two-col {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-12);
    }
}

/* --- Tarifs : tableau --- */
.table-wrap {
    overflow-x: auto;
    margin: var(--sp-4) 0 var(--sp-6);
}
.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--c-cream-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--c-border);
}
.tarifs-table th,
.tarifs-table td {
    padding: var(--sp-3) var(--sp-4);
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}
.tarifs-table thead th {
    background: var(--c-teal);
    color: white;
    font-family: var(--font-titre);
    font-weight: 700;
}
.tarifs-table tbody tr:last-child th,
.tarifs-table tbody tr:last-child td {
    border-bottom: none;
}
.tarifs-table tbody th {
    color: var(--c-teal);
    font-weight: 600;
}

/* --- Callout (encadré accent) --- */
.callout {
    background: var(--c-cream-soft);
    border-left: 4px solid var(--c-terracotta);
    border-radius: var(--radius-md);
    padding: var(--sp-6);
    margin: var(--sp-8) 0;
}
.callout__title {
    margin-top: 0;
    font-size: var(--fs-xl);
}

/* --- Contact : liste de coordonnées --- */
.contact-list {
    list-style: none;
    padding: 0;
    margin: var(--sp-4) 0 var(--sp-6);
    display: grid;
    gap: var(--sp-3);
}
.contact-list li {
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--c-border);
}
.contact-list li:last-child {
    border-bottom: none;
}
.contact-list strong {
    color: var(--c-teal);
    display: inline-block;
    min-width: 90px;
}
.contact-list em {
    color: var(--c-text-soft);
    font-style: normal;
    font-size: var(--fs-xs);
}

/* --- Bouton « Voir le numéro » / « Voir l'email » (reveal au click) --- */
.contact-reveal {
    background: none;
    border: 1px dashed var(--c-teal);
    color: var(--c-teal);
    padding: var(--sp-1) var(--sp-3);
    border-radius: 4px;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.contact-reveal:hover,
.contact-reveal:focus-visible {
    background: var(--c-teal);
    color: #fff;
    outline: none;
}
.contact-reveal--revealed {
    border-style: solid;
}

/* --- Espaces entre boutons inline --- */
.btn + .btn {
    margin-left: var(--sp-3);
}

/* ==========================================================================
   Plan 4 — Tunnel d'inscription
   ========================================================================== */

/* --- Alertes --- */
.alert {
    padding: var(--sp-4) var(--sp-6);
    border-radius: var(--radius-md);
    margin: var(--sp-4) 0;
    border-left: 4px solid;
}
.alert--info {
    background: #E8F1F4;
    border-color: var(--c-teal);
    color: var(--c-teal-dark);
}
.alert--error {
    background: #FBE7DF;
    border-color: var(--c-terracotta);
    color: #6B2A0F;
}
.alert ul {
    margin: var(--sp-2) 0 0;
    padding-left: var(--sp-6);
}

/* --- Honeypot (invisible mais focusable pour bots) --- */
.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Stepper (caché sans JS) --- */
.stepper {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-8);
    display: flex;
    gap: var(--sp-2);
    counter-reset: step;
}
.stepper__step {
    flex: 1;
    text-align: center;
    padding: var(--sp-3) var(--sp-2);
    background: var(--c-cream-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-titre);
    font-weight: 500;
    font-size: var(--fs-xs);
    color: var(--c-text-soft);
    position: relative;
    counter-increment: step;
}
.stepper__step::before {
    content: counter(step);
    display: inline-block;
    background: var(--c-border);
    color: var(--c-text);
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    margin-right: var(--sp-2);
    font-weight: 700;
}
.stepper__step--active {
    background: white;
    border-color: var(--c-teal);
    color: var(--c-teal);
}
.stepper__step--active::before {
    background: var(--c-teal);
    color: white;
}
.stepper__step--done {
    background: var(--c-sage);
    color: white;
    border-color: var(--c-sage);
}
.stepper__step--done::before {
    background: white;
    color: var(--c-sage);
    content: "✓";
}

/* --- Formulaire --- */
.form-inscription {
    background: white;
    padding: var(--sp-6);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) {
    .form-inscription {
        padding: var(--sp-8) var(--sp-12);
    }
}

.form-step {
    border: none;
    padding: 0;
    margin: 0 0 var(--sp-4);
}
.form-step legend {
    font-family: var(--font-titre);
    font-weight: 700;
    color: var(--c-teal);
    font-size: var(--fs-xl);
    margin-bottom: var(--sp-6);
    padding: 0;
}

/* Comportement avec/sans JS pour les étapes */
body.js-on .form-step {
    display: none;
}
body.js-on .form-step--active {
    display: block;
}
body:not(.js-on) .form-step + .form-step {
    margin-top: var(--sp-12);
    padding-top: var(--sp-8);
    border-top: 1px solid var(--c-border);
}
body:not(.js-on) .form-actions--nav {
    display: none;
}

/* --- Champs --- */
.field {
    margin-bottom: var(--sp-4);
}
.field__label {
    display: block;
    font-family: var(--font-titre);
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: var(--sp-2);
    font-size: var(--fs-base);
}
.field__label abbr {
    color: var(--c-terracotta);
    text-decoration: none;
    margin-left: 2px;
}
.field__input {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-cream-soft);
    font-family: var(--font-text);
    font-size: var(--fs-base);
    color: var(--c-text);
    transition: border-color 120ms ease, background 120ms ease;
}
.field__input:focus {
    outline: none;
    border-color: var(--c-teal);
    background: white;
    box-shadow: 0 0 0 3px rgba(45, 95, 110, 0.15);
}
.field__input:invalid:not(:placeholder-shown) {
    border-color: var(--c-terracotta);
}
textarea.field__input {
    resize: vertical;
    min-height: 80px;
}
.field__hint {
    font-size: var(--fs-xs);
    color: var(--c-text-soft);
    margin-top: var(--sp-1);
}

.field-row {
    display: grid;
    gap: var(--sp-4);
}
@media (min-width: 600px) {
    .field-row {
        grid-template-columns: 1fr 1fr;
    }
}

.field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    font-size: var(--fs-base);
    cursor: pointer;
    line-height: 1.5;
}
.field--checkbox input[type="checkbox"] {
    margin-top: 0.2em;
    width: 18px;
    height: 18px;
    accent-color: var(--c-teal);
    flex-shrink: 0;
}

/* --- Cartes enfants --- */
.enfant-card {
    background: var(--c-cream-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--sp-6);
    margin-bottom: var(--sp-4);
}
.enfant-card h3 {
    margin-top: 0;
    margin-bottom: var(--sp-4);
    font-size: var(--fs-lg);
}
.enfant-card--hidden {
    display: none;
}

/* Visible uniquement avec JS */
.js-only { display: none; }
body.js-on .js-only { display: inline; }

/* --- Boutons d'action du formulaire --- */
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    align-items: center;
    margin-top: var(--sp-6);
}
.form-actions .btn--ghost.js-prev {
    margin-right: auto;
}

.form-footnote {
    font-size: var(--fs-xs);
    color: var(--c-text-soft);
    margin-top: var(--sp-4);
}

/* --- Pages légales --- */
.legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
}
.legal-toc a {
    display: inline-block;
    padding: var(--sp-2) var(--sp-4);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-cream-soft);
    color: var(--c-teal);
    text-decoration: none;
    font-family: var(--font-titre);
    font-weight: 600;
    font-size: var(--fs-xs);
}
.legal-toc a:hover,
.legal-toc a:focus-visible {
    background: var(--c-teal);
    color: var(--c-cream);
}
.legal-content h2 {
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-3);
    border-bottom: 2px solid var(--c-border);
}
.legal-content h3 {
    margin-top: var(--sp-8);
    color: var(--c-terracotta);
}
.legal-content h4 {
    margin-top: var(--sp-6);
    color: var(--c-teal-dark);
}
.legal-content ul {
    margin: 0 0 var(--sp-4) var(--sp-6);
}
.legal-content li {
    margin-bottom: var(--sp-2);
    line-height: 1.6;
}
.legal-content p {
    line-height: 1.65;
}
.legal-meta {
    color: var(--c-text-soft);
    margin-top: calc(var(--sp-6) * -1);
    margin-bottom: var(--sp-6);
}

/* =================================================================
   Plan 5 — Espace admin (/admin/...)
   ================================================================= */

.admin-body {
    background: var(--c-cream-soft, #F4EFE4);
}

.admin-header {
    background: var(--c-canard, #2D5F6E);
    color: #fff;
    padding: var(--sp-3) 0;
}

.admin-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-4);
}

.admin-header__links {
    display: flex;
    gap: var(--sp-4);
    align-items: center;
}

.admin-brand,
.admin-back {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.admin-back {
    opacity: 0.85;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-back:hover {
    opacity: 1;
    text-decoration: underline;
}

.admin-footer {
    margin-top: var(--sp-8);
    padding: var(--sp-4) 0;
    background: var(--c-canard, #2D5F6E);
    color: rgba(255,255,255,0.75);
    text-align: center;
    font-size: 0.85rem;
}

/* --- Page de login (route secrète) --- */
.admin-login-body {
    background: var(--c-cream, #FBF6EC);
}

.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-6);
}

.admin-login__card {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 16px;
    padding: var(--sp-8) var(--sp-6);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    text-align: center;
}

.admin-login__logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--sp-4);
}

.admin-login__card h1 {
    font-size: 1.4rem;
    margin-bottom: var(--sp-5);
}

.admin-login__error {
    background: rgba(199, 75, 60, 0.12);
    color: var(--c-terracotta, #C74B3C);
    border-radius: 8px;
    padding: var(--sp-3);
    font-size: 0.9rem;
    margin-bottom: var(--sp-4);
}

.admin-login__form {
    display: grid;
    gap: var(--sp-4);
    text-align: left;
}

.admin-login__field {
    display: grid;
    gap: var(--sp-2);
}

.admin-login__field span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-text-soft, #5a5550);
}

.admin-login__field input {
    width: 100%;
    padding: var(--sp-3);
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 8px;
    font-size: 1rem;
}

.admin-login__field input:focus {
    outline: 2px solid var(--c-teal, #3E7C8A);
    outline-offset: 1px;
    border-color: transparent;
}

.admin-login__form .btn {
    margin-top: var(--sp-2);
    width: 100%;
}

.admin-section {
    padding: var(--sp-6) 0 var(--sp-8);
}

.admin-section h1 {
    margin-bottom: var(--sp-4);
}

.admin-subtitle {
    color: var(--c-text-soft);
    font-size: 0.9rem;
    margin-top: calc(var(--sp-3) * -1);
}

.admin-subtitle code {
    background: rgba(0,0,0,0.06);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.admin-breadcrumb {
    margin-bottom: var(--sp-3);
}

.admin-breadcrumb a {
    color: var(--c-canard, #2D5F6E);
    text-decoration: none;
}

.admin-breadcrumb a:hover {
    text-decoration: underline;
}

/* Filtres */
.admin-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
    padding: var(--sp-3);
    background: #fff;
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.admin-filtres a {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--c-text, #3A2B1F);
    background: rgba(0,0,0,0.04);
    transition: background 0.15s;
}

.admin-filtres a:hover {
    background: rgba(0,0,0,0.09);
}

.admin-filtres a.is-active {
    background: var(--c-canard, #2D5F6E);
    color: #fff;
}

.admin-filtres .admin-export {
    margin-left: auto;
    background: var(--c-terre, #D97149);
    color: #fff;
    font-weight: 600;
}

.admin-filtres .admin-export:hover {
    background: #b85d3b;
}

/* Table */
.admin-table-wrap {
    background: #fff;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
    padding: var(--sp-2) var(--sp-3);
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.admin-table thead th {
    background: var(--c-cream-soft, #F4EFE4);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--c-text-soft);
}

.admin-table tbody tr:hover {
    background: rgba(0,0,0,0.02);
}

.admin-table td a {
    color: var(--c-canard, #2D5F6E);
}

.admin-empty {
    background: #fff;
    padding: var(--sp-4);
    border-radius: var(--radius-md, 12px);
    text-align: center;
    color: var(--c-text-soft);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Badges statut */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge--en_attente { background: rgba(217,113,73,0.18); color: #a04a26; }
.badge--contactee  { background: rgba(45,95,110,0.18); color: #1f4452; }
.badge--validee    { background: rgba(139,168,136,0.30); color: #4a6a47; }
.badge--refusee    { background: rgba(0,0,0,0.10);     color: #555; }

/* Fiche détail */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
}

.admin-card {
    background: #fff;
    padding: var(--sp-4);
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.admin-card--full {
    grid-column: 1 / -1;
}

.admin-card h2 {
    font-size: 1.1rem;
    margin: 0 0 var(--sp-3) 0;
    color: var(--c-canard, #2D5F6E);
}

.admin-fiche {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: var(--sp-1) var(--sp-3);
    margin: 0;
    font-size: 0.92rem;
}

.admin-fiche dt {
    font-weight: 700;
    color: var(--c-text-soft);
}

.admin-fiche dd {
    margin: 0;
}

.admin-enfants {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-enfants li {
    padding: var(--sp-2) 0;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.admin-enfants li:last-child {
    border-bottom: none;
}

.admin-consents {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-consents li {
    padding: 0.25rem 0;
}

/* Formulaire admin */
.admin-form {
    background: #fff;
    padding: var(--sp-4);
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.admin-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 var(--sp-4);
}

.admin-fieldset legend {
    font-weight: 700;
    margin-bottom: var(--sp-2);
    color: var(--c-canard, #2D5F6E);
}

.admin-radios {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.admin-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.admin-radio input[type=radio] {
    margin: 0;
}

.admin-radio:has(input:checked) {
    border-color: var(--c-canard, #2D5F6E);
    background: rgba(45,95,110,0.05);
}

.admin-note {
    display: block;
    margin-bottom: var(--sp-4);
}

.admin-note span {
    display: block;
    font-weight: 700;
    margin-bottom: var(--sp-2);
    color: var(--c-canard, #2D5F6E);
}

.admin-note textarea {
    width: 100%;
    padding: var(--sp-2);
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    font: inherit;
    resize: vertical;
}

.admin-form__actions {
    display: flex;
    gap: var(--sp-2);
}

.admin-flash {
    padding: var(--sp-2) var(--sp-3);
    border-radius: 8px;
    margin-bottom: var(--sp-3);
    font-weight: 600;
}

.admin-flash--success {
    background: rgba(139,168,136,0.25);
    color: #3e5b3c;
}

.admin-flash--error {
    background: rgba(217,113,73,0.20);
    color: #9a3f1a;
}

.btn--ghost {
    background: transparent;
    color: var(--c-text);
    border: 2px solid rgba(0,0,0,0.15);
}

.btn--ghost:hover {
    background: rgba(0,0,0,0.04);
}

.btn--small {
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
}
