/*
 * Thème public « Ensemble pour Esteban » (0.5.0, corrigé en 0.5.1).
 *
 * Aligné sur le système de design « Ensemble pour Esteban » (extrait du thème
 * WordPress ensemblepouresteban_v3 1.2.1) : jetons de tokens.json et styles de
 * bundle.css, avec les corrections de contraste AA de la maquette.
 * Style carnet de famille : papier crème, polaroids, ruban adhésif, coutures,
 * notes manuscrites. Aucune ressource externe : polices hébergées dans /fonts/epe.
 */

/* ---------- Polices (SIL Open Font License, voir /fonts/epe/OFL-*.txt) ---------- */

@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/epe/lora-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/epe/lora-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Lora";
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/epe/lora-latin-wght-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Lora";
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/epe/lora-latin-ext-wght-italic.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/epe/caveat-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/epe/caveat-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Nunito : proposée dans Site > Apparence (0.14.0) ; téléchargée seulement si elle est choisie. */
@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/epe/nunito-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/epe/nunito-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons (système de design « Ensemble pour Esteban », tokens.json) ---------- */

:root {
    /* Couleurs */
    --paper: #fffaf3;
    --card: #ffffff;
    --ink: #3a3128;
    --ink-soft: #6b5f4f;
    --sky-deep: #1f6f9c;
    --sky: #4fb3e8;
    --red: #c62f27;
    --red-hover: #a8261f;
    /* Erreurs des formulaires : toujours rouges, quel que soit le style choisi
       dans Site > Apparence, qui ne change que --red (#97, 0.16.0). */
    --error: #c62f27;
    --green: #2f9e56;
    --sun: #ffc93c;
    --sun-deep: #f2ab00;
    --coral: #ff6f61;
    --hairline: rgba(58, 49, 40, 0.18);
    --hairline-list: rgba(58, 49, 40, 0.2);
    --dash-card: rgba(58, 49, 40, 0.14);
    --dash-event: rgba(58, 49, 40, 0.16);
    --stitch: rgba(58, 49, 40, 0.28);
    --tape-sky: rgba(79, 179, 232, 0.55);
    --tape-sun: rgba(255, 201, 60, 0.6);
    --highlight-sky: rgba(79, 179, 232, 0.4);
    --blob-sky: rgba(63, 169, 224, 0.22);
    --blob-sun: rgba(255, 201, 60, 0.28);
    --blob-sun-light: rgba(255, 201, 60, 0.18);
    --blob-coral: rgba(255, 111, 97, 0.16);
    --blob-coral-light: rgba(255, 111, 97, 0.14);
    --blob-green: rgba(47, 158, 86, 0.12);
    --blob-white: rgba(255, 255, 255, 0.08);

    /* Polices */
    --font-serif: "Lora", Georgia, "Times New Roman", serif;
    --font-script: "Caveat", "Comic Sans MS", cursive;

    /* Espacements et mise en page */
    --block-gap: 1.5rem;
    --section-pad: 5rem;
    --gutter: clamp(1.25rem, 5vw, 2rem);
    --card-pad: 2.4rem;
    --content: 800px;
    --wide: 1280px;
    --logo-height: 78px;
    --logo-height-small: 44px;
    --touch-target: 44px;
    --stat-icon-size: 68px;

    /* Arrondis */
    --radius-pill: 999px;
    --radius-field: 70px;
    --radius-stat: 28px 22px 30px 24px;
    --radius-story: 26px;
    --radius-event: 24px;
    --radius-notice: 18px;
    --radius-news: 4px;
    --radius-frame: 3px;

    /* Ombres (chaudes, teintées encre) */
    --shadow-polaroid: 0 18px 30px -12px rgba(58, 49, 40, 0.35), 0 4px 10px rgba(58, 49, 40, 0.12);
    --shadow-gallery: 0 16px 28px -16px rgba(58, 49, 40, 0.38), 0 3px 8px rgba(58, 49, 40, 0.1);
    --shadow-gallery-hover: 0 22px 34px -16px rgba(58, 49, 40, 0.42), 0 4px 10px rgba(58, 49, 40, 0.12);
    --shadow-news: 0 14px 24px -14px rgba(58, 49, 40, 0.3), 0 3px 8px rgba(58, 49, 40, 0.1);
    --shadow-story: 0 14px 28px -16px rgba(58, 49, 40, 0.3);
    --shadow-stat: 0 12px 26px -14px rgba(58, 49, 40, 0.28);
    --shadow-event: 0 18px 34px -16px rgba(0, 0, 0, 0.35);
    --shadow-tape: 0 2px 4px rgba(58, 49, 40, 0.15);
    --shadow-header: 0 6px 18px -12px rgba(58, 49, 40, 0.45);

    /* Rotations (air « collé dans un carnet », jamais plus de 4 degrés) */
    --tilt-polaroid: -4deg;
    --tilt-tape: -3deg;
    --tilt-eyebrow: -2deg;
    --tilt-brand: -1.5deg;
    --tilt-gallery-odd: -1.4deg;
    --tilt-news-1: -1.2deg;
    --tilt-gallery-even: 1.1deg;
    --tilt-news-2: 0.8deg;
    --tilt-news-3: -0.6deg;
    --tilt-note: 1deg;
    --tilt-label: -1deg;

    --ease-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

/* 1.2.0 : blocage dissuasif de l'enregistrement des images (avec js/epe.js) :
   pas de menu de l'appui long sur iPhone/iPad, pas de sélection ni de
   glisser-déposer de l'image seule. Le clic et le toucher restent actifs. */
img {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

a {
    color: var(--sky-deep);
    text-underline-offset: 0.18em;
    transition: color 0.2s ease;
}
a:hover { color: var(--red); }

:focus-visible {
    outline: 3px solid var(--sky-deep);
    outline-offset: 3px;
    border-radius: var(--radius-news);
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    margin: 1.6em 0 0.6em;
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1.1em; }

/* Écriture manuscrite : une ligne, jamais un paragraphe. */
.handwritten {
    font-family: var(--font-script);
    font-weight: 600;
    line-height: 1.3;
}

/* Surtitre manuscrit (eyebrow) : rouge par défaut, bleu ou vert en variante. */
.kicker {
    display: inline-block;
    font-family: var(--font-script);
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 1.3;
    color: var(--red);
    margin: 0 0 0.3em;
    transform: rotate(var(--tilt-eyebrow));
}
.kicker--sky { color: var(--sky-deep); }
.kicker--green { color: var(--green); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 1000;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 0 0 var(--radius-news) var(--radius-news);
}
.skip-link:focus { top: 0; color: var(--paper); }

.wrap { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

.site-main { display: block; min-height: 50vh; }
.site-main:focus { outline: none; }

/* ---------- Boutons pilule ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.9rem;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--pill { border-radius: var(--radius-pill); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--card); }
.btn--red:hover { background: var(--red-hover); border-color: var(--red-hover); color: var(--card); }
.btn--red:focus-visible { border-radius: var(--radius-pill); }
.btn--outline { background: transparent; border-color: var(--sky); color: var(--sky-deep); }
.btn--outline:hover { background: var(--sky-deep); border-color: var(--sky-deep); color: var(--card); }
.btn--outline:focus-visible { border-radius: var(--radius-pill); }
.btn--small { font-size: 0.95rem; padding: 0.7rem 1.4rem; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.buttons, .hero__buttons, .not-found__buttons { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; }

/* ---------- Couture (points ronds) et fleuron ---------- */

.stitch-divider {
    display: block;
    width: 100%;
    max-width: 420px;
    height: 3px;
    margin: 0 auto 2rem;
    border: 0;
    background-image: radial-gradient(circle, var(--stitch) 1.4px, transparent 1.6px);
    background-size: 14px 3px;
    background-repeat: repeat-x;
    background-position: left center;
}
hr.stitch-divider { margin: 2.5em auto; }

.flourish { display: flex; gap: 0.5rem; margin: 1.6rem 0 0; }
.flourish span { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.flourish span:nth-child(1) { background: var(--sky); }
.flourish span:nth-child(2) { background: var(--red); }
.flourish span:nth-child(3) { background: var(--green); }

/* Coup de surligneur sous un mot du titre principal (un seul par page). */
.accent-underline { position: relative; white-space: nowrap; z-index: 0; }
.accent-underline::after {
    content: "";
    position: absolute;
    left: -2%; right: -2%;
    bottom: 0.02em;
    height: 0.34em;
    background: var(--highlight-sky);
    border-radius: 4px 8px 4px 8px;
    z-index: -1;
}

/* Taches de fond : seules surfaces translucides, coupées par leur section. */
.has-blobs { position: relative; overflow: hidden; isolation: isolate; }
.blob {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
}
.blob--b { border-radius: 55% 45% 40% 60% / 50% 60% 40% 50%; }
.blob--c { border-radius: 60% 40% 55% 45% / 40% 55% 45% 60%; }
.blob--hero-sky { top: -12%; left: -14%; width: min(560px, 70vw); height: min(520px, 65vw); background: var(--blob-sky); }
.blob--hero-sun { bottom: -10%; right: 6%; width: 320px; height: 300px; background: var(--blob-sun); }
.blob--hero-coral { top: 18%; right: -6%; width: 220px; height: 210px; background: var(--blob-coral); }
.blob--stats-sun { top: -18%; right: -8%; width: 380px; height: 360px; background: var(--blob-sun-light); }
.blob--story-coral { bottom: -14%; left: -10%; width: 420px; height: 400px; background: var(--blob-coral-light); }
.blob--event-white { top: -30%; left: -8%; width: 360px; height: 360px; background: var(--blob-white); }
.blob--event-sun { bottom: -30%; right: -6%; width: 320px; height: 320px; background: var(--blob-sun-light); }
.blob--useful-green { top: -16%; right: -10%; width: 380px; height: 360px; background: var(--blob-green); }

/* ---------- En-tête collant ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px dashed var(--hairline);
    transition: box-shadow 0.25s ease;
}
/* Voile dépoli porté par un pseudo-élément : un backdrop-filter sur l'en-tête lui-même
   ferait de lui le bloc conteneur du menu mobile (position: fixed), limité à sa hauteur (0.5.1, A1). */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.97), rgba(255, 250, 243, 0.88));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    pointer-events: none;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 1.1rem;
    transition: padding 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }
.site-header.is-scrolled .site-header__inner { padding-block: 0.5rem; }

.site-logo { flex: none; border-radius: var(--radius-news); }
.site-logo img {
    width: auto;
    height: var(--logo-height);
    filter: drop-shadow(0 2px 3px rgba(58, 49, 40, 0.12));
    transition: height 0.25s ease;
}
.site-header.is-scrolled .site-logo img { height: var(--logo-height-small); }

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 2.1rem;
}
.site-nav__link {
    position: relative;
    display: inline-block;
    padding: 0.3rem 0.05rem;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease;
}
.site-nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%;
    height: 3px;
    background: var(--sky);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-overshoot);
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: var(--sky-deep); }
.site-nav__link:hover::after, .site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Entre 860 et 1100 px : menu resserré pour tenir sur une ligne avec les menus par défaut (0.5.1, A2). */
.site-nav__item--button .btn { white-space: nowrap; }
@media (min-width: 860px) and (max-width: 1099.98px) {
    .site-header__inner { gap: 1.2rem; }
    /* Le retour à la ligne reste possible : un menu plus long passe sur deux lignes au
       lieu de sortir de l'écran (revue 0.5.1, B1). */
    .site-nav__list { gap: 0.4rem 1.1rem; justify-content: flex-end; }
    .site-nav__link { font-size: 0.95rem; white-space: nowrap; }
    .site-nav__item--button .btn { padding: 0.7rem 1.2rem; font-size: 0.95rem; }
    .site-logo img { height: 64px; }
}

/* 0.5.3 (A2-bis) : au-delà de 1100 px, le JavaScript pose « is-compact » quand le menu
   ne tient pas sur une ligne (mêmes réglages qu'entre 860 et 1100 px), puis
   « is-collapsed » (bouton « Menu », voir plus bas) s'il ne tient toujours pas. */
.site-header.is-measuring, .site-header.is-measuring * { transition: none !important; }
.site-header.is-compact .site-header__inner { gap: 1.2rem; }
.site-header.is-compact .site-nav__list { gap: 0.4rem 1.1rem; justify-content: flex-end; }
.site-header.is-compact .site-nav__link { font-size: 0.95rem; white-space: nowrap; }
.site-header.is-compact .site-nav__item--button .btn { padding: 0.7rem 1.2rem; font-size: 0.95rem; }
.site-header.is-compact:not(.is-scrolled) .site-logo img { height: 64px; }

/* Bouton du menu mobile (affiché par le JavaScript sous 860 px) */
.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--touch-target);
    min-width: var(--touch-target);
    padding: 0.4rem 1rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sky-deep);
    background: var(--card);
    border: 2px solid var(--sky);
    border-radius: var(--radius-pill);
    cursor: pointer;
    position: relative;
    z-index: 120;
}
.nav-toggle:focus-visible { border-radius: var(--radius-pill); }
.nav-toggle[hidden] { display: none; }
.nav-toggle__bars { display: inline-grid; gap: 4px; }
.nav-toggle__bars span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 859.98px) {
    .site-header__inner { gap: 1rem; padding-block: 0.7rem; }
    .site-logo img { height: 54px; }
    .site-header.is-scrolled .site-logo img { height: 36px; }

    /* Sans JavaScript, le menu reste visible sous le logo. */
    .no-js .site-header__inner { flex-wrap: wrap; }
    .no-js .site-nav__list { gap: 0.4rem 1.2rem; }

    /* Avec JavaScript : surcouche plein écran. */
    .js .site-nav__panel {
        position: fixed;
        inset: 0;
        z-index: 110;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6rem var(--gutter) 2rem;
        background: var(--paper);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    }
    .js .site-nav__panel.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .js .site-nav__list { flex-direction: column; gap: 1.2rem; text-align: center; }
    .js .site-nav__link { font-size: 1.5rem; }
    .js .site-nav__item--button .btn { font-size: 1.2rem; }
    body.nav-open { overflow: hidden; }
}

/* 0.5.3 (A2-bis) : menu trop long pour une ligne sur un écran large : même surcouche
   que sur mobile, ouverte par le bouton « Menu ». */
.js .site-header.is-collapsed .site-nav__panel {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem var(--gutter) 2rem;
    background: var(--paper);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.js .site-header.is-collapsed .site-nav__panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.js .site-header.is-collapsed .site-nav__list { flex-direction: column; gap: 1.2rem; text-align: center; }
.js .site-header.is-collapsed .site-nav__link { font-size: 1.5rem; }
.js .site-header.is-collapsed .site-nav__item--button .btn { font-size: 1.2rem; }
body.nav-open { overflow: hidden; }

/* ---------- Bande de titre des pages ---------- */

.page-hero {
    padding: clamp(2.5rem, 6vw, 4rem) 0 0.5rem;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
}
.page-hero__title { margin: 0 0 1.4rem; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero .stitch-divider { margin-bottom: 0; }

/* ---------- Contenu riche (pages, actualités, événements) ---------- */

.entry-content { padding-bottom: clamp(2rem, 6vw, 4rem); }
.entry-content > :first-child { margin-top: 0; }
.entry-content .lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.75; color: var(--ink-soft); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content ul li::marker { color: var(--red); }
.entry-content ol li::marker { color: var(--sky-deep); font-weight: 700; }
.entry-content img { border-radius: var(--radius-news); }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { text-align: center; color: var(--ink-soft); font-size: 0.9em; }
.entry-content blockquote {
    margin: 2em 0;
    padding: 1.6rem 2rem;
    background: var(--card);
    border-radius: var(--radius-story);
    box-shadow: var(--shadow-story);
    font-style: italic;
}
.entry-content blockquote > :last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.95em; }
.entry-content th, .entry-content td { padding: 0.6em 0.8em; border-bottom: 1px dashed var(--hairline-list); text-align: left; }
.entry-content .buttons { margin: 1.8em 0; }

.columns { display: grid; gap: 2rem; margin: 2em 0; align-items: start; }
@media (min-width: 720px) {
    .columns { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
    .columns > .column { min-width: 0; }
}
.columns .column > :first-child { margin-top: 0; }

/* ---------- Polaroids et galerie ---------- */

.polaroid {
    position: relative;
    display: block;
    margin: 0;
    padding: 0.85rem 0.85rem 2.2rem;
    background: var(--card);
    border-radius: var(--radius-frame);
    box-shadow: var(--shadow-gallery);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.polaroid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; background: var(--paper); }
.polaroid figcaption {
    padding: 0.5rem 0.2rem 0;
    margin-bottom: -1.2rem;
    text-align: center;
    font-family: var(--font-script);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--sky-deep);
}
.polaroid--tilt { transform: rotate(var(--tilt-gallery-odd)); }
.polaroid--tilt-right { transform: rotate(var(--tilt-gallery-even)); }
.polaroid--small { padding: 0.5rem 0.5rem 1.2rem; max-width: 180px; }

.gallery {
    list-style: none;
    margin: 2em 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 2rem 1.6rem;
}
.entry-content .gallery { padding: 0; }
.gallery li { margin: 0; }
.gallery li:nth-child(odd) .polaroid { transform: rotate(var(--tilt-gallery-odd)); }
.gallery li:nth-child(even) .polaroid { transform: rotate(var(--tilt-gallery-even)); }
.gallery li .polaroid:hover { transform: translateY(-6px); box-shadow: var(--shadow-gallery-hover); }

/* ---------- Accueil : héros ---------- */

.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) 5.5rem; }
.hero__inner {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
@media (min-width: 900px) {
    .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
}
.hero__text > .stitch-divider { margin: 0 0 1.6rem; }
.hero__title { margin: 0 0 0.3em; font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1.12; }
/* Un titre court tient sur une ligne ; un titre long revient à la ligne (0.5.1, A3). */
.hero__title { text-wrap: balance; overflow-wrap: break-word; }
.hero__inner > * { min-width: 0; }
.hero__note {
    display: inline-block;
    margin: 0 0 1rem;
    font-size: 1.55rem;
    color: var(--red);
    transform: rotate(var(--tilt-note));
}
.hero__lede { max-width: 560px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.75; color: var(--ink-soft); }
.hero__lede > :last-child { margin-bottom: 1.6rem; }
.hero__media { position: relative; justify-self: center; text-align: center; padding-top: 1.5rem; }
.hero__photo-note { font-size: 1.55rem; color: var(--ink-soft); margin: 1.6rem 0 0; transform: rotate(var(--tilt-label)); }

/* Polaroid du héros : carré, ruban bleu, légende manuscrite. */
.polaroid--hero {
    display: inline-block;
    padding: 0.85rem 0.85rem 3.2rem;
    border-radius: 0;
    box-shadow: var(--shadow-polaroid);
    transform: rotate(var(--tilt-polaroid));
}
.polaroid--hero img { width: min(360px, 78vw); height: min(360px, 78vw); aspect-ratio: auto; }
.polaroid--hero::before {
    content: "";
    position: absolute;
    top: -16px; left: 50%;
    width: 90px; height: 32px;
    background: var(--tape-sky);
    box-shadow: var(--shadow-tape);
    transform: translateX(-50%) rotate(var(--tilt-tape));
    z-index: 1;
}
.polaroid--hero figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0.55rem;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
}

/* Soleil dessiné (décor) */
.hero__sun {
    position: absolute;
    top: -2.2rem; right: -1.5rem;
    width: 96px; height: 96px;
    z-index: -1;
}
.hero__sun-disc { fill: var(--sun); stroke: var(--sun-deep); stroke-width: 6; }
.hero__sun-rays { stroke: var(--sun-deep); stroke-width: 6.5; stroke-linecap: round; }

@media (max-width: 899.98px) {
    .hero__text { text-align: center; }
    .hero__media { order: -1; }
    .hero__text > .stitch-divider { margin-inline: auto; }
    .hero__lede { margin-inline: auto; }
    .hero__buttons, .hero .flourish { justify-content: center; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-pad); }
.section__head { text-align: center; }
.section__title { margin-top: 0; font-size: clamp(2rem, 4vw, 3rem); }
.section__more { margin: 2.5rem 0 0; text-align: center; }
.section__more a, .more-link {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 4px;
}
.section--stats { padding-block: 4rem; }

/* ---------- Cartes chiffres clés ---------- */

.stats-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 30px;
}
.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.2rem 1.6rem;
    text-align: center;
    background: var(--card);
    border: 2px dashed var(--dash-card);
    border-radius: var(--radius-stat);
    box-shadow: var(--shadow-stat);
}
.stat-card__icon { width: var(--stat-icon-size); height: var(--stat-icon-size); margin: 0 auto 0.9rem; object-fit: contain; }
.stat-card__number {
    margin: 0 0 0.3rem;
    font-size: clamp(2rem, 3.4vw, 2.6rem);
    line-height: 1.1;
    color: var(--sky-deep);
}
.stat-card--red .stat-card__number { color: var(--red); }
.stat-card--green .stat-card__number { color: var(--green); }
.stat-card__number a { color: inherit; text-decoration: none; }
.stat-card__number a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@supports selector(:has(*)) {
    .stat-card__number a:focus-visible { outline: none; }
    .stat-card:has(.stat-card__number a:focus-visible) { outline: 3px solid var(--sky-deep); outline-offset: 3px; }
}
.stat-card__label {
    display: inline-block;
    margin: 0;
    font-family: var(--font-script);
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.4;
    color: var(--ink-soft);
    transform: rotate(var(--tilt-label));
}
.stat-card__cta { margin: auto 0 0; padding-top: 1.2rem; }

/* ---------- Compte à rebours (lot 10) ---------- */

.section--countdown { padding-block: 3rem 1rem; }
.section--countdown .countdown { margin: 0; }
.countdown { margin: 2rem 0; text-align: center; }
.countdown [hidden] { display: none; }
.countdown__title,
.countdown__today { overflow-wrap: anywhere; } /* 0.6.1 (tests 0.6.0, R1) : mot très long, adresse web collée */
.countdown__title {
    margin: 0 0 1.4rem;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.25;
    color: var(--ink);
}
.countdown__grid {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 960px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.countdown__card { padding: 1.5rem 0.75rem; }
.entry-content .countdown__grid { padding-left: 0; margin: 0 auto; }
.entry-content .countdown__card { margin-bottom: 0; }
.countdown__number { font-variant-numeric: tabular-nums; font-weight: 700; }
.countdown__label { transform: none; font-size: 1.2rem; }
.countdown__today {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.3;
    color: var(--red);
}
@media (max-width: 599.98px) {
    .countdown__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .countdown__card { padding: 1.1rem 0.5rem; }
}

/* ---------- Présentation et cartes Histoire ---------- */

.presentation { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.75; }
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}
.story-card {
    padding: var(--card-pad);
    background: var(--card);
    border-radius: var(--radius-story);
    box-shadow: var(--shadow-story);
    border-left: 6px solid var(--sky);
}
.story-card + .story-card { border-left-color: var(--red); }
.story-card__title { margin: 0 0 0.6rem; font-size: 1.125rem; }
.story-card > :last-child { margin-bottom: 0; }
.section--stories .story-grid { margin-top: 0; } /* tâche 21 : cartes histoires seules */

/* 0.12.0 (D1, D8) : titre de la présentation ; texte et cartes histoires en 2 colonnes */
.presentation__title { margin: 0 0 1rem; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.presentation-grid { display: grid; gap: 2.5rem 3rem; align-items: start; }
.presentation-grid .story-grid { margin-top: 0; grid-template-columns: 1fr; }
@media (min-width: 900px) {
    .presentation-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}
/* Tests 0.11.0, A2 : Texte seul, section plus basse → forme plus petite, jamais coupée. */
.section--presentation-alone .blob--story-coral { width: 280px; height: 220px; bottom: -70px; left: -90px; }

/* ---------- Cartes d'actualité (fiche de papier + ruban adhésif) ---------- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem 2rem;
    margin-top: 1rem;
    padding-top: 14px;
}
@media (max-width: 859.98px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
    position: relative;
    padding: 1.6rem 1.5rem 1.8rem;
    background: var(--card);
    border-radius: var(--radius-news);
    box-shadow: var(--shadow-news);
    transform: rotate(var(--tilt-news-1));
    transition: transform 0.2s ease, translate 0.2s ease;
}
.news-card:nth-child(3n + 2) { transform: rotate(var(--tilt-news-2)); }
.news-card:nth-child(3n + 3) { transform: rotate(var(--tilt-news-3)); }
.news-card:hover { translate: 0 -6px; }
.news-card::before {
    content: "";
    position: absolute;
    top: -14px; left: 50%;
    width: 70px; height: 26px;
    background: var(--tape-sun);
    box-shadow: var(--shadow-tape);
    transform: translateX(-50%) rotate(-2deg);
    z-index: 1;
}
.news-card__image { margin: -0.4rem -0.4rem 1rem; width: calc(100% + 0.8rem); max-width: none; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; }
.news-card__date { margin: 0; font-family: var(--font-script); font-weight: 600; font-size: 1.3rem; line-height: 1.4; color: var(--red); }
.news-card__title { margin: 0.2rem 0 0.6rem; font-size: 1.125rem; }
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; }
@supports selector(:has(*)) {
    .news-card__title a:focus-visible { outline: none; }
    .news-card:has(.news-card__title a:focus-visible) { outline: 3px solid var(--sky-deep); outline-offset: 3px; }
}
.news-card__excerpt { margin: 0 0 0.8rem; }
.news-card__more {
    margin: 0;
    font-weight: 600;
    color: var(--sky-deep);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 4px;
}
.news-card:hover .news-card__more { color: var(--red); }

/* ---------- Événements ---------- */

/* Bande bleue « Prochain événement » de l'accueil */
.event-band { background: var(--sky-deep); padding-block: 4.5rem; color: var(--paper); text-align: center; }
.event-band .section__title { color: var(--paper); }
.event-band .section__more a { color: var(--paper); }
.event-band .section__more a:hover { color: var(--paper); text-decoration-style: solid; text-decoration-thickness: 2px; }
.event-band :focus-visible { outline-color: var(--paper); }
/* La carte de la bande est en papier : l'anneau y redevient bleu foncé (revue 0.5.0, R1). */
.event-band .event :focus-visible { outline-color: var(--sky-deep); }

/* Carte événement (accueil et liste) */
.event {
    position: relative;
    max-width: 640px;
    margin: 0 auto 2rem;
    padding: var(--card-pad);
    background: var(--paper);
    color: var(--ink);
    text-align: center;
    border: 2px dashed var(--dash-event);
    border-radius: var(--radius-event);
    box-shadow: var(--shadow-news);
}
.event-band .event { box-shadow: var(--shadow-event); }
.event__date { margin: 0 0 1rem; }
.event__date time {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--red);
    color: var(--card);
    font-family: var(--font-script);
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.4;
    border-radius: var(--radius-pill);
    transform: rotate(var(--tilt-eyebrow));
}
.event__title { margin: 0 0 0.6rem; font-size: 1.5rem; }
.event__title a { color: var(--ink); text-decoration: none; }
.event__title a:hover { color: var(--red); }
.event__excerpt { margin: 0 0 1.3rem; color: var(--ink-soft); line-height: 1.75; }
.event__more { margin: 0; }
.event > :last-child { margin-bottom: 0; }
.page-events-list .section__title { font-size: 2rem; text-align: center; margin: 2.5rem 0 1.5rem; }
.page-events-list .section__title:first-child { margin-top: 0; }
.event__image { margin: 1.5rem auto 0; max-width: 320px; }
.event--past { background: var(--card); }
.event--past .event__date time { background: var(--ink-soft); }

.empty-message { font-style: italic; color: var(--ink-soft); }
.event-band .empty-message { color: var(--paper); }

/* ---------- Pagination ---------- */

.pagination ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0 0;
    padding: 0;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    padding: 0 0.9rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
}
.pagination a { background: transparent; color: var(--sky-deep); border: 2px solid var(--sky); }
.pagination a:hover { background: var(--sky-deep); border-color: var(--sky-deep); color: var(--card); }
.pagination a:focus-visible { border-radius: var(--radius-pill); }
.pagination__current { background: var(--red); color: var(--card); }

/* ---------- Infos utiles / liens de la 404 ---------- */

.useful-links { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.entry-content .useful-links { padding: 0; }
.useful-links li { margin: 0; padding: 0.6rem 0; border-bottom: 1px dashed var(--hairline-list); }
.useful-links a { display: inline-block; padding: 0.2rem 0; font-weight: 600; text-decoration: none; }
.useful-links a:hover { color: var(--red); }
.useful-links li:has(a.btn) { border-bottom: 0; padding-top: 1rem; }
.useful-links a.btn { padding: 0.85rem 1.9rem; }

/* 0.12.0 (D2, D3) : Infos utiles à gauche, carte « merci » à droite */
.useful-grid { display: grid; gap: 2.5rem 3rem; align-items: center; }
@media (min-width: 900px) {
    .useful-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}
.useful-grid .section__title { margin-bottom: 0; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.thanks-card {
    padding: var(--card-pad);
    background: var(--card);
    border-radius: var(--radius-story);
    box-shadow: var(--shadow-story);
    border-left: 6px solid var(--sky);
}
.thanks-card__title { margin: 0 0 1rem; font-size: 1.5rem; line-height: 1.3; color: var(--green); }
.thanks-card__text { margin: 0 0 1.5rem; color: var(--ink-soft); line-height: 1.75; }
.thanks-card__buttons { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; margin: 0; }

/* 0.12.0 (D6) : bande Événements sans événement à venir */
.event--empty p { margin: 0 0 0.8rem; color: var(--ink-soft); }
.event--empty p:last-child { margin-bottom: 0; }

.not-found__text { font-size: 1.15em; }
.not-found__buttons { margin: 2rem 0 3rem; }

/* ---------- Pied de page ---------- */

.site-footer {
    margin-top: 0;
    padding-top: 3.5rem;
    padding-bottom: 1.5rem;
    background: var(--paper);
    border-top: 1px dashed var(--hairline);
    font-size: 0.95rem;
}
.site-footer__thanks {
    display: block;
    margin: 0 auto 2.5rem;
    text-align: center;
    font-size: 1.8rem;
    color: var(--sky-deep);
    transform: rotate(var(--tilt-brand));
}
.site-footer__grid { display: grid; gap: 2rem; padding-bottom: 2rem; }
@media (min-width: 760px) {
    .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer__about p { color: var(--ink-soft); max-width: 38ch; }
.site-footer__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
}
.site-footer__links ul { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { padding: 0.25rem 0; }
.site-footer__links a { color: var(--ink-soft); text-decoration: none; display: inline-block; padding: 0.15rem 0; }
.site-footer__links a:hover { color: var(--red); }
.site-footer__links a.btn { color: var(--card); padding: 0.6rem 1.4rem; margin-top: 0.3rem; }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--hairline);
    color: var(--ink-soft);
    font-size: 0.9rem;
}
.site-footer__bottom a { color: var(--ink-soft); }
.site-footer__bottom a:hover { color: var(--red); }
.heart { color: var(--red); }

/* ---------- Formulaires (champs pilule) ---------- */

.epe-form { display: grid; gap: 1.2rem; margin: 2rem 0; }
.epe-form label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.epe-form .required { color: var(--error); }
.epe-form input[type="text"], .epe-form input[type="email"], .epe-form input[type="tel"],
.epe-form input[type="number"], .epe-form select, .epe-form textarea {
    width: 100%;
    padding: 18px 28px;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--sky-deep);
    border-radius: var(--radius-field);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.epe-form select { appearance: auto; }
.epe-form textarea { min-height: 170px; padding: 22px 28px; border-radius: var(--radius-story); resize: vertical; }
.epe-form ::placeholder { color: var(--ink-soft); opacity: 1; }
.epe-form input:focus-visible, .epe-form select:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; border-radius: var(--radius-field); }
.epe-form textarea:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; border-radius: var(--radius-story); }
.epe-form .field-error { color: var(--error); font-size: 0.9rem; margin: 0.4rem 0 0; padding-left: 1.6rem; }
.epe-form .form-message { margin: 0; }
@media (max-width: 600px) {
    .epe-form input[type="text"], .epe-form input[type="email"], .epe-form input[type="tel"],
    .epe-form input[type="number"], .epe-form select { padding: 15px 22px; }
    .epe-form textarea { padding: 18px 22px; }
}

/* ---------- Animations ---------- */

.js .reveal {
    opacity: 0;
    translate: 0 24px;
    transition: opacity 0.7s ease, translate 0.7s ease;
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

@keyframes epe-polaroid-drop {
    0% { opacity: 0; transform: translateY(-46px) rotate(-10deg); }
    70% { opacity: 1; transform: translateY(4px) rotate(-3deg); }
    100% { opacity: 1; transform: translateY(0) rotate(var(--tilt-polaroid)); }
}
@keyframes epe-polaroid-sway {
    0%, 100% { transform: rotate(var(--tilt-polaroid)); }
    50% { transform: rotate(-2.2deg); }
}
@keyframes epe-sun-turn { to { transform: rotate(360deg); } }

.js .polaroid--hero {
    animation: epe-polaroid-drop 0.9s var(--ease-overshoot) 0.2s both, epe-polaroid-sway 6.5s ease-in-out 1.1s infinite;
}
.hero__sun { animation: epe-sun-turn 40s linear infinite; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .js .reveal { opacity: 1; translate: none; }
    .polaroid--hero { transform: rotate(var(--tilt-polaroid)); }
}

/* ---------- Impression ---------- */

@media print {
    .site-header, .site-footer, .skip-link, .nav-toggle, .blob, .hero__sun { display: none; }
    body { background: #fff; }
    .js .reveal { opacity: 1; translate: none; }
    .event-band { background: none; color: var(--ink); }
}

/* Lot 3 : bandeau de l'aperçu (admin seulement), lien de retour, image d'une actualité. */
.preview-banner { margin: 0; padding: 0.75rem 1rem; background: #fff4c2; border-bottom: 2px dashed #c9a400; text-align: center; font-size: 0.95rem; }
.back-link { margin-top: 2.5em; }
.entry-content > .polaroid { max-width: 32rem; margin: 1.5em auto 2.5em; }
.entry-content > .polaroid img { aspect-ratio: auto; }
/* Tâche 35 : encadré qui remplace un code externe dans l'aperçu de l'admin (code non exécuté). */
.code-externe-apercu { margin: 1.5em 0; padding: 0.75rem 1rem; border: 2px dashed #c9a400; border-radius: 0.5rem; background: #fff4c2; font-size: 0.95rem; }

/* Lot 4 : formulaires du constructeur. */
.epe-form-block { margin: 2rem 0; scroll-margin-top: 5rem; }
.epe-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.epe-form__field--pleine { grid-column: 1 / -1; }
@media (max-width: 600px) { .epe-form__field--demi { grid-column: 1 / -1; } }
.epe-form fieldset { border: 0; margin: 0; padding: 0; }
.epe-form legend { font-weight: 600; margin-bottom: 0.4rem; padding: 0; }
.epe-form label.epe-form__choice { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; margin: 0.25rem 0; }
.epe-form__choice input { margin-top: 0.35em; width: 1.1rem; height: 1.1rem; accent-color: var(--sky-deep); flex: none; }
.epe-form .field-help { color: var(--ink-soft); font-size: 0.9rem; margin: 0.4rem 0 0; padding-left: 1.6rem; }
.epe-form input[aria-invalid="true"], .epe-form select[aria-invalid="true"], .epe-form textarea[aria-invalid="true"] { border-color: var(--error); }
.epe-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.epe-form__footer { color: var(--ink-soft); font-size: 0.9rem; }
.form-message { padding: 1rem 1.4rem; border-radius: var(--radius-notice); background: var(--card); border: 2px solid var(--green); }
.form-message p { margin: 0; }
.form-message--closed, .epe-form .form-message--closed { border-color: var(--sky-deep); }
.form-message--error, .epe-form .form-message--error { border-color: var(--error); }

/* ---------- Aperçu de Site > Apparence (0.14.0, administrateurs seulement) ---------- */

.apparence-apercu {
    position: fixed;
    inset: auto 1rem 1rem 1rem;
    z-index: 1000;
    margin: 0 auto;
    max-width: 40rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-notice);
    background: var(--ink);
    color: #ffffff;
    font-size: 0.95rem;
    text-align: center;
    box-shadow: var(--shadow-header);
}
