/* ==================================================================
   CLARIFY — version app
   ------------------------------------------------------------------
   Écrit pour le téléphone d'abord : chaque règle de base vise un écran
   de 360 px tenu droit. Les écrans plus larges sont des ajouts, en bas
   de chaque bloc (@media min-width).

   LA LIGNE :
   - du noir, du blanc, un crème léger. C'est le fond de tout.
   - le JAUNE est un surligneur, jamais un fond : il ne marque que ce
     qui s'actionne (boutons, liens, lecture) et quelques repères
     (le trait sous les titres, l'onglet en cours).
   - pas de contours épais : les blocs se détachent par une ombre douce
     et des coins arrondis. Le caractère vient du bandeau d'entrée, des
     doodles et de la typo, pas des cadres.
   ================================================================== */

:root {
    --noir: #000;
    --encre: #111;
    --jaune: #FFDC00;
    --jaune-fonce: #F0CE00;
    --fond: #F5F3EF;          /* le crème léger du site */
    --creme: #E4E2DD;         /* le crème de la marque, pour les aplats */
    --creme-clair: #FFF8DB;
    --blanc: #fff;
    --texte: #262626;
    --discret: #77726a;
    --ligne: rgba(0, 0, 0, .08);

    --rayon: 18px;
    --rayon-s: 12px;
    --ombre: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -14px rgba(0, 0, 0, .16);
    --ombre-haute: 0 2px 6px rgba(0, 0, 0, .05), 0 22px 44px -16px rgba(0, 0, 0, .24);

    --barre-h: 58px;
    --onglets-h: 64px;
    --bas-sur: env(safe-area-inset-bottom, 0px);

    --ressort: cubic-bezier(.3, 1.4, .5, 1);
    --doux: cubic-bezier(.22, .61, .36, 1);

    --police: 'League Spartan', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--barre-h) + 8px);
    -webkit-text-size-adjust: 100%;
    /* le dépliage des dates anime sa hauteur jusqu'à « auto »
       (navigateurs récents ; les autres déplient sans animation) */
    interpolate-size: allow-keywords;
}

body {
    margin: 0;
    font-family: var(--police);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--texte);
    background: var(--fond);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    -webkit-tap-highlight-color: transparent;
}
/* Le fond de la fenêtre elle-même est noir : quand on tire la page
   au-delà de ses bords (le rebond du téléphone), on voit du noir —
   celui du bandeau en haut, celui du pied de page en bas. */
html { background: var(--noir); }

img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--jaune); color: var(--noir); }

:focus-visible {
    outline: 2px solid var(--noir);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px var(--jaune);
    border-radius: 8px;
}

.hors-ecran {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.lien-evitement {
    position: fixed;
    top: -100px; left: 12px;
    z-index: 5000;
    padding: 10px 16px;
    background: var(--jaune);
    color: var(--noir);
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
}
.lien-evitement:focus { top: 12px; }

[hidden] { display: none !important; }

/* les liens dans les textes : le surligneur jaune */
.post-texte-in a,
.depliable-in a,
.ecoute-lecteur a {
    color: var(--noir);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--jaune);
    text-decoration-thickness: .35em;
    text-underline-offset: -.15em;
    text-decoration-skip-ink: none;
    transition: text-decoration-thickness 200ms, text-underline-offset 200ms;
}
.post-texte-in a:hover,
.depliable-in a:hover { text-decoration-thickness: 1.1em; text-underline-offset: -.9em; }
.section-noir .ecoute-lecteur a { color: var(--blanc); text-decoration-color: rgba(255, 220, 0, .6); }

/* ==================================================================
   LES BRIQUES COMMUNES
   ================================================================== */

.conteneur {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    position: relative;
    padding: 56px 0 64px;
}
.section-creme { background: var(--fond); }
.section-blanc { background: var(--blanc); }
.section-noir  { background: var(--noir); color: #e9e6df; }

/* --- les titres de section ---------------------------------------- */
.titre-section {
    position: relative;
    margin-bottom: 26px;
    padding-right: 64px;   /* la place du doodle */
}
.titre-section h2 {
    margin: 0;
    font-size: clamp(2.1rem, 9vw, 3.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--noir);
}
.section-noir .titre-section h2 { color: var(--blanc); }

/* le trait sous le titre : fin, jaune, qui s'allonge à l'arrivée */
.souligne {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.souligne::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 28px; height: 5px;
    border-radius: 3px;
    background: var(--jaune);
    transition: width 700ms var(--doux);
}
.titre-section.is-in .souligne::after { width: 56px; }

.titre-sous {
    margin: 8px 0 0;
    font-size: .95rem;
    font-style: italic;
    color: var(--discret);
}
.section-noir .titre-sous { color: #9d988e; }

.titre-doodle {
    position: absolute;
    top: -6px; right: 0;
    width: 54px;
}
.titre-doodle .doodle { width: 48px; }

/* --- la carte ------------------------------------------------------- */
.carte {
    position: relative;
    background: var(--blanc);
    color: var(--texte);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    overflow: hidden;
}

/* --- les boutons ---------------------------------------------------- */
.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    min-height: 48px;           /* une cible qu'on touche du pouce */
    padding: 13px 22px 11px;
    border: 0;
    border-radius: 999px;
    background: var(--noir);
    color: var(--blanc);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.1;
    text-decoration: none;
    box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .5);
    cursor: pointer;
    transition: transform 180ms var(--doux), box-shadow 180ms var(--doux), background-color 200ms;
}
.bouton:hover { background: #262626; transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55); }
.bouton:active { transform: scale(.97); box-shadow: none; }

/* Le jaune est réservé à trois boutons : celui de « À la une »,
   « Me contacter » dans la bio, et ceux de la partie contact. C'est
   ce qui leur donne leur poids — partout ailleurs, noir ou blanc. */
.bouton.bouton-jaune,
.section-noir .bouton.bouton-jaune {
    background: var(--jaune);
    color: var(--noir);
    box-shadow: 0 6px 18px -8px rgba(160, 130, 0, .55);
}
.bouton.bouton-jaune:hover,
.section-noir .bouton.bouton-jaune:hover { background: var(--jaune-fonce); }
.section-noir .bouton { background: var(--blanc); color: var(--noir); }
.section-noir .bouton:hover { background: #e9e6df; }

.bouton-clair {
    background: var(--blanc);
    color: var(--noir);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
}
.bouton-clair:hover { background: var(--blanc); box-shadow: inset 0 0 0 1px var(--noir); }
.section-noir .bouton-clair { background: transparent; color: var(--blanc); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
/* au survol, il garde son fond transparent : sans cette ligne, il
   prenait le fond clair des boutons blancs et son texte disparaissait */
.section-noir .bouton.bouton-clair:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--blanc); }

.bouton-plus {
    display: flex;
    margin: 32px auto 0;
}
.bouton-plus-reste { opacity: .55; font-weight: 500; }

/* le petit repère au point jaune : « À la une », « Prochaine date »... */
.pastille {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    margin: 0;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--discret);
}
.pastille::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--jaune);
    box-shadow: 0 0 0 3px rgba(255, 220, 0, .25);
}
.pastille i { display: none; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: 3px 9px 1px;
    border-radius: 999px;
    background: var(--fond);
    color: var(--texte);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* --- l'apparition au défilement ------------------------------------
   Discrète : 14 px et un fondu. Sans JavaScript, tout est visible. */
.js .revele {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms var(--doux), transform 600ms var(--doux);
    transition-delay: calc(var(--i, 0) * 60ms);
}
.js .revele.is-in { opacity: 1; transform: none; }

/* ==================================================================
   LA BARRE DU HAUT
   ================================================================== */
.barre {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    height: calc(var(--barre-h) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 16px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, .82);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    color: var(--blanc);
    transform: translateY(-110%);
    transition: transform 400ms var(--doux);
}
.apres-splash .barre { transform: none; }

.barre-logo { display: block; line-height: 0; }
.barre-logo img { width: 100px; height: auto; }

.barre-nav { display: none; }

@media (min-width: 900px) {
    .barre { padding-left: 28px; padding-right: 28px; justify-content: space-between; }
    .barre-nav { display: flex; gap: 6px; }
    .barre-nav a {
        position: relative;
        padding: 8px 14px 6px;
        font-weight: 500;
        text-decoration: none;
        color: rgba(255, 255, 255, .72);
        transition: color 200ms;
    }
    .barre-nav a::after {
        content: "";
        position: absolute;
        left: 50%; bottom: 0;
        width: 5px; height: 5px;
        border-radius: 50%;
        background: var(--jaune);
        transform: translateX(-50%) scale(0);
        transition: transform 300ms var(--ressort);
    }
    .barre-nav a:hover { color: var(--blanc); }
    .barre-nav a.is-actif { color: var(--blanc); }
    .barre-nav a.is-actif::after { transform: translateX(-50%) scale(1); }
}

/* ==================================================================
   LE MENU DU POUCE (téléphone)
   ================================================================== */
.onglets {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(10px + var(--bas-sur));
    z-index: 900;
    height: var(--onglets-h);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px;
    background: rgba(10, 10, 10, .9);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border-radius: 22px;
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .45);
    transform: translateY(calc(100% + 30px));
    transition: transform 450ms var(--ressort);
}
.apres-splash .onglets { transform: none; }

.onglets a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .02em;
    transition: color 200ms;
}
.onglets a i { font-size: 1.12rem; transition: transform 300ms var(--ressort); }
.onglets a.is-actif { color: var(--blanc); }
.onglets a.is-actif i { color: var(--jaune); transform: translateY(-1px); }
.onglets a:active i { transform: scale(.85); }

@media (min-width: 900px) {
    .onglets { display: none; }
}

/* ==================================================================
   1. LE BANDEAU D'ENTRÉE
   ================================================================== */
.splash {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: calc(9svh + env(safe-area-inset-top, 0px)) 16px 0;
    background: var(--noir);
    color: var(--creme-clair);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    transition: background-color 600ms ease;
}
.splash.is-allume { background: var(--creme); }

.splash-fonds,
.splash-fonds picture { position: absolute; inset: 0; z-index: -1; }
.splash-fond {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    /* sur téléphone : la voiture, en bas à droite de l'image, reste
       dans le cadre quand on rogne les côtés */
    object-position: 68% 100%;
    opacity: 0;
    transition: opacity 700ms ease;
}
.splash-fond.is-visible { opacity: 1; }

.splash-centre {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
}

/* --- l'interrupteur (le logo de la marque : il garde son dessin) --- */
.interrupteur {
    position: relative;
    display: inline-block;
    width: 92px;
    height: 50px;
    margin-top: 44px;   /* la place de « clic ! », en haut à droite */
    cursor: pointer;
}
.interrupteur input {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.interrupteur-rail {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--creme-clair);
    overflow: hidden;
    transition: background-color 400ms ease;
}
.interrupteur-rail::before {
    content: "";
    position: absolute;
    top: 6px; left: 6px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--noir);
    transition: transform 450ms var(--ressort), background-color 400ms, width 200ms;
}
/* le reflet qui invite à cliquer, toutes les cinq secondes */
.interrupteur-rail::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: -60%;
    width: 45%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.6), rgba(255,255,255,0));
    animation: reflet 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes reflet {
    0%   { transform: translateX(0) skewX(-18deg); }
    18%, 100% { transform: translateX(340%) skewX(-18deg); }
}
.splash.a-ete-touche .interrupteur-rail::after { animation: none; opacity: 0; }

.interrupteur input:checked + .interrupteur-rail { background: var(--noir); }
.interrupteur input:checked + .interrupteur-rail::before {
    transform: translateX(42px);
    background: var(--creme-clair);
}
.interrupteur input:focus-visible + .interrupteur-rail {
    outline: 2px solid var(--jaune);
    outline-offset: 4px;
}

/* --- « clic ! » et sa flèche ---------------------------------------
   À droite de l'interrupteur, un peu au-dessus : la flèche part du mot
   et vient se poser à côté du bouton. Elle se trace, reste un instant,
   s'efface, et recommence — assez lent pour ne pas clignoter. */
.invite {
    position: absolute;
    left: calc(100% - 6px);
    bottom: 38%;
    width: 104px;
    overflow: visible;
    pointer-events: none;
    transition: opacity 500ms ease;
}
.splash.is-allume .invite,
.splash.a-ete-touche .invite { opacity: 0; }

.invite-mot {
    font-family: var(--police);
    font-size: 23px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: .02em;
    fill: var(--creme-clair);
    animation: invite-mot 3.2s var(--doux) infinite;
    transform-box: fill-box;
    transform-origin: center;
}
.invite-fleche,
.invite-pointe {
    fill: none;
    stroke: var(--creme-clair);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.invite-fleche {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: invite-trace 3.2s var(--doux) infinite;
}
.invite-pointe {
    stroke-dasharray: 26;
    stroke-dashoffset: 26;
    animation: invite-pointe 3.2s var(--doux) infinite;
}
@keyframes invite-trace {
    0%        { stroke-dashoffset: 80; opacity: 1; }
    35%, 75%  { stroke-dashoffset: 0;  opacity: 1; }
    92%, 100% { stroke-dashoffset: 0;  opacity: 0; }
}
@keyframes invite-pointe {
    0%, 32%   { stroke-dashoffset: 26; opacity: 1; }
    45%, 75%  { stroke-dashoffset: 0;  opacity: 1; }
    92%, 100% { stroke-dashoffset: 0;  opacity: 0; }
}
@keyframes invite-mot {
    0%, 100% { transform: translateY(0) rotate(-9deg); }
    40%      { transform: translateY(-3px) rotate(-13deg); }
}
@media (prefers-reduced-motion: reduce) {
    /* la flèche reste simplement dessinée, sans boucle */
    .invite-fleche, .invite-pointe { animation: none !important; stroke-dashoffset: 0; }
}

/* --- le mot CLARIFY ------------------------------------------------ */
.splash-titre { margin: 26px 0 0; font-size: 1rem; }
.mot {
    position: relative;
    display: block;
    width: min(88vw, 560px);
    margin: 0 auto;
    line-height: 0;
}
.mot-img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 500ms ease;
}
.mot-img.is-visible { opacity: 1; }
.mot-on { position: absolute; inset: 0; }

/* --- la signature qui s'écrit -------------------------------------- */
.signature {
    max-width: 34em;
    min-height: 2.8em;   /* deux lignes réservées : rien ne saute */
    margin: 6px auto 0;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .3em;
    text-indent: .3em;
    color: var(--creme-clair);
    transition: color 500ms ease, opacity 320ms ease;
}
.splash.is-allume .signature { color: var(--noir); }
.signature.is-fondu { opacity: 0; }
.signature.is-citation { letter-spacing: .12em; text-indent: .12em; }
.signature.is-ecrit::after { content: "_"; animation: curseur .7s steps(1) infinite; }
@keyframes curseur { 50% { opacity: 0; } }
/* sur la photo, la citation a son coup de surligneur */
.splash.avec-fonds.is-allume .signature-texte {
    background: rgba(255, 248, 219, .9);
    padding: .1em .45em;
    border-radius: .3em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* --- « Entrer » ------------------------------------------------------ */
.splash-entrer {
    position: absolute;
    left: 50%;
    bottom: calc(24px + var(--bas-sur));
    z-index: 3;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    transform: translateX(-50%);
    color: var(--creme-clair);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    text-decoration: none;
    opacity: .7;
    transition: opacity 300ms, color 400ms;
}
.splash-entrer i { animation: rebond 1.8s var(--doux) infinite; }
@keyframes rebond { 0%, 100% { transform: none; } 50% { transform: translateY(6px); } }
/* Sur téléphone, tout remonte : le bas de l'image, c'est la voiture, et
   « Entrer » s'y perdait. Il vient donc se ranger juste sous la phrase,
   sur le mur jaune, au lieu d'être collé au bas de l'écran. */
@media (max-width: 768px) {
    .splash { padding-top: calc(4svh + env(safe-area-inset-top, 0px)); }
    .interrupteur { margin-top: 40px; }
    .splash-titre { margin-top: 18px; }
    .mot { width: min(78vw, 480px); }
    .splash-entrer {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        margin-top: 1.5svh;
        z-index: 3;
    }
}

/* allumé, un simple lien noir sur le mur jaune, la flèche qui rebondit */
.splash.is-allume .splash-entrer { opacity: 1; color: var(--noir); }
.splash-entrer:hover { opacity: 1; }
.splash-entrer:hover span { text-decoration: underline; text-decoration-color: var(--jaune); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.splash.is-allume .splash-entrer:hover span { text-decoration-color: var(--noir); }

/* --- « Plutôt pop, un peu désinvolte » ------------------------------
   En haut à gauche, comme sur la grande image. Sur téléphone il reste
   assez petit pour ne pas toucher « clic » au-dessus de l'interrupteur.
   Il arrive en se collant, comme un autocollant. */
/* Ordinateur seulement : sur téléphone, il chargeait trop un écran déjà
   bien rempli (interrupteur, logo, phrase, voiture). */
.splash-sticker { display: none !important; }
@media (min-width: 769px) {
    .splash-sticker { display: block !important; }
}
.splash-sticker {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 12px;
    z-index: 2;
    display: block;
    width: min(36vw, 170px);
    margin: 0;
    opacity: 0;
    transform: rotate(-4deg) scale(.7);
    transition: opacity 400ms ease, transform 600ms var(--ressort);
    pointer-events: none;
}
.splash.is-allume .splash-sticker {
    opacity: 1;
    transform: rotate(-4deg);
    transition-delay: 250ms;
}

@media (min-width: 769px) {
    /* sur grand écran aussi, le bandeau prend toute la hauteur. L'image,
       plus large que l'écran, est calée à droite : la voiture et les
       doodles restent, le côté gauche (où étaient peints les mots) est
       rogné — d'où l'autocollant posé par-dessus. */
    .splash.avec-fonds {
        justify-content: center;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: 60px;
    }
}
/* Le mur remplit l'écran, recadré au besoin, la voiture gardée à droite.
   Le fond utilisé ici n'a plus « Plutôt pop… » peint sur le côté
   (nouveau-fond-CLARIFY.jpg) : le recadrage ne coupe plus rien. Une
   tablette tenue droite reçoit l'image verticale du téléphone (voir les
   <source> dans app.php). */
@media (min-width: 769px) {
    .splash-fond { object-position: 85% center; }
    .mot { width: min(38vw, 560px); }
    .interrupteur { margin-top: 44px; transform: scale(1.1); }
    .signature { font-size: 1rem; }

    .splash-sticker {
        top: 9vh;
        left: 5vw;
        width: clamp(200px, 17vw, 300px);
    }
}

/* ==================================================================
   LA PLUIE DE DOODLES (premier clic, puis tous les cinq clics)
   ================================================================== */
.pluie {
    position: fixed;
    inset: 0;
    z-index: 3000;
    pointer-events: none;
    overflow: hidden;
}
.pluie .doodle {
    position: absolute !important;
    top: -15vh;
    animation: chute linear forwards;
}
@keyframes chute {
    from { transform: translateY(0) rotate(var(--r-depart)); }
    to   { transform: translateY(125vh) rotate(var(--r-fin)); }
}

/* ==================================================================
   2. EN CE MOMENT
   ================================================================== */
.section-une { padding-top: 32px; padding-bottom: 24px; }

.une-grille { display: grid; gap: 16px; }

.une { display: flex; flex-direction: column; }
.une-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.une-texte { padding: 20px 20px 22px; }
.une-titre {
    margin: 10px 0 18px;
    font-size: clamp(2.1rem, 10vw, 3.4rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -0.025em;
    color: var(--noir);
}
.une-boutons { display: flex; flex-wrap: wrap; gap: 10px; }

.prochaine {
    display: block;
    padding: 18px 18px 16px;
    text-decoration: none;
    transition: transform 200ms var(--doux), box-shadow 200ms var(--doux);
}
.prochaine:hover { transform: translateY(-2px); box-shadow: var(--ombre-haute); }
.prochaine:active { transform: scale(.99); }
.prochaine-label {
    display: flex;
    align-items: center;
    gap: .55em;
    margin-bottom: 14px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--discret);
}
.prochaine-label::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--jaune);
    box-shadow: 0 0 0 3px rgba(255, 220, 0, .25);
}
.prochaine-label i { display: none; }
.prochaine-ligne { display: flex; align-items: center; gap: 14px; }
.prochaine-infos { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prochaine-infos strong { font-size: 1.15rem; line-height: 1.2; color: var(--noir); }
.prochaine-infos span { font-size: .92rem; color: var(--discret); }
.prochaine-fleche { color: var(--noir); transition: transform 300ms var(--ressort); }
.prochaine:hover .prochaine-fleche { transform: translateX(4px); }

/* --- le bloc date, le même partout ---------------------------------- */
.jour-bloc {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 58px;
    min-height: 62px;
    padding: 6px 4px 4px;
    border-radius: 14px;
    background: var(--noir);
    color: var(--blanc);
    line-height: 1;
}
.jour-j { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; }
.jour-m { margin-top: 4px; font-size: .7rem; font-weight: 500; color: rgba(255, 255, 255, .7); text-transform: uppercase; letter-spacing: .08em; }
.jour-a { margin-top: 2px; font-size: .62rem; color: rgba(255, 255, 255, .45); }

@media (min-width: 900px) {
    .une-grille { grid-template-columns: 1.7fr 1fr; align-items: start; }
    .une { flex-direction: row; }
    .une-img { width: 56%; aspect-ratio: auto; min-height: 300px; }
    .une-texte { align-self: center; padding: 30px; }
}

/* ==================================================================
   3. BIO
   ================================================================== */
.bio-grille { display: grid; gap: 16px; }

/* la vidéo de la bio n'est pas posée dans une carte blanche : c'est
   elle qui porte les coins arrondis et l'ombre. Une vidéo verticale
   ne flotte donc pas au milieu d'un grand fond blanc. */
.bio-media.carte { background: none; box-shadow: none; overflow: visible; }
.bio-media .media { border-radius: var(--rayon); box-shadow: var(--ombre); }

.bio-texte { padding: 22px 20px; }
.bio-accroche {
    margin: 0 0 12px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--noir);
}
.bio-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* le texte qui se replie : les premières lignes, un fondu, et
   « Lire toute la bio ». Le bouton n'apparaît que si le texte dépasse
   vraiment (app.js le mesure). */
.depliable {
    position: relative;
    max-height: 13.5em;
    overflow: hidden;
    transition: max-height 600ms var(--doux);
}
.depliable::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4em;
    background: linear-gradient(rgba(255, 255, 255, 0), var(--blanc));
    pointer-events: none;
    transition: opacity 300ms;
}
.depliable.is-court::after,
.depliable.is-ouvert::after { opacity: 0; }
.depliable.is-court { max-height: none; }
.depliable-in > :first-child { margin-top: 0; }
.depliable-in h2 { font-size: 1.1rem; }
.depliable-in img { border-radius: 10px; }

.depliable-bouton,
.post-plus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 6px 0;
    border: 0;
    background: none;
    font-weight: 700;
    color: var(--noir);
    cursor: pointer;
}
.depliable-bouton span,
.post-plus {
    text-decoration: underline;
    text-decoration-color: var(--jaune);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}
.depliable-bouton i { font-size: .8em; transition: transform 300ms var(--doux); }
.depliable-bouton[aria-expanded="true"] i { transform: rotate(180deg); }

@media (min-width: 900px) {
    .bio-grille { grid-template-columns: 1fr 1fr; align-items: start; gap: 22px; }
    .bio-texte { padding: 30px; }
}

/* ==================================================================
   LES MÉDIAS : photo, vidéo qui attend le tap
   ================================================================== */
.media {
    position: relative;
    display: block;
    width: 100%;
    background: #0d0d0d;
    overflow: hidden;
}
.media-image { background: var(--fond); }
.media-image img { display: block; width: 100%; transition: transform 600ms var(--doux); }
.media-image:hover img { transform: scale(1.02); }

.media-video { aspect-ratio: var(--ratio, 1.7778); }
.media-video.is-portrait {
    width: min(100%, calc(70svh * var(--ratio)));
    margin: 0 auto;
}
.media-poster {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--doux);
}
.media-video:hover .media-poster { transform: scale(1.03); }
video.media-poster { pointer-events: none; }

.media-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    padding: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, .28));
    cursor: pointer;
}
.media-play-rond {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    padding-left: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--noir);
    font-size: 1.3rem;
    box-shadow: 0 10px 26px -6px rgba(0, 0, 0, .45);
    transition: transform 300ms var(--ressort);
}
.media-play:hover .media-play-rond { transform: scale(1.08); }
.media-play:active .media-play-rond { transform: scale(.92); }

/* en lecture : le lecteur prend la place */
.media-lecteur { position: absolute; inset: 0; }
.media-lecteur iframe,
.media-lecteur video {
    display: block;
    width: 100%; height: 100%;
    border: 0;
    background: var(--noir);
}
/* Un mp4 garde exactement le cadre de sa couverture : le format est lu
   dans le fichier (rendu.php) ou mesuré par app.js. Si jamais il
   différait encore un peu, la vidéo se loge dedans sans le déformer. */
.media-lecteur video { object-fit: contain; }
/* un code collé (Instagram, TikTok…) a sa propre hauteur, on le laisse faire */
.media-video.media-raw.is-lecture { aspect-ratio: auto; }
.media-raw .media-lecteur { position: static; background: var(--blanc); }

/* ==================================================================
   4. ÉCOUTER
   ================================================================== */
.carrousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    margin: 0;
    padding: 6px 16px 24px;
    list-style: none;
    scrollbar-width: none;
}
.carrousel::-webkit-scrollbar { display: none; }
.carrousel > li { scroll-snap-align: start; display: flex; }

.sortie {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--blanc);
    text-align: left;
    cursor: pointer;
}
.sortie-visuel {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .9);
    transition: transform 300ms var(--doux);
}
.sortie-visuel img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--doux); }
.sortie:hover .sortie-visuel { transform: translateY(-3px); }
.sortie:hover .sortie-visuel img { transform: scale(1.04); }
.sortie:active .sortie-visuel { transform: scale(.98); }
.sortie-play {
    position: absolute;
    right: 10px; bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    padding-left: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--noir);
    font-size: .9rem;
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .5);
}
.sortie-titre { font-weight: 600; font-size: 1.08rem; line-height: 1.2; }
.sortie-date { font-size: .85rem; color: #8f8a80; text-transform: capitalize; }

/* --- Reels & shorts -------------------------------------------------
   Section à part, après l'agenda, sur le crème léger. Le même carrousel
   que les sorties, en cartes verticales (9:16, le format du téléphone).
   Le petit logo dans le coin dit d'où vient la vidéo ; la légende mène
   au reel ou au Short d'origine. */
.reels-suivre { display: flex; justify-content: center; margin-top: 18px; }

.carrousel.carrousel-reels { grid-auto-columns: 46%; gap: 12px; }
.reel { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.reel .media { border-radius: 16px; box-shadow: var(--ombre); }
.reel .media-video.is-portrait { width: 100%; }
.reel .media-play-rond { width: 48px; height: 48px; font-size: 1rem; }
.reel-source {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--blanc);
    font-size: .9rem;
    pointer-events: none;
}
.is-lecture .reel-source { display: none; }
.reel-legende { display: flex; flex-direction: column; gap: 3px; color: var(--noir); text-decoration: none; }
.reel-titre {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.25;
}
.reel-legende:hover .reel-titre { text-decoration: underline; text-underline-offset: 3px; }
.reel-date { font-size: .78rem; color: var(--discret); }

/* --- la section en gris foncé (à l'essai) --------------------------
   Elle porte aussi .section-noir : titres, boutons et textes prennent
   l'habillage du fond sombre. Seul le fond change, un cran plus clair
   que le noir de l'agenda et du contact qui l'entourent. */
.section-gris { background: #1c1c1c; }
.section-noir .reel-legende { color: var(--blanc); }
.section-noir .reel-date { color: #9d988e; }
.section-gris .carrousel-fleche { background: #2e2e2e; }

@media (hover: hover) and (pointer: fine) {
    .carrousel.is-attrape .reel { pointer-events: none; }
}
@media (min-width: 700px) {
    .carrousel.carrousel-reels { grid-auto-columns: 28%; }
}
@media (min-width: 900px) {
    .carrousel.carrousel-reels { grid-auto-columns: 210px; }
}

.ecoute-grille { display: grid; gap: 26px; margin-top: 16px; }
.ecoute-accroche { margin: 0 0 10px; font-weight: 600; }
.ecoute-lecteur p { margin: 0 0 10px; }
.ecoute-lecteur iframe { display: block; width: 100%; border-radius: 14px; }

.plateformes-titre {
    margin: 0 0 12px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8f8a80;
}
.plateformes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plateforme {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #151515;
    color: var(--blanc);
    font-weight: 500;
    text-decoration: none;
    transition: background-color 200ms, transform 150ms var(--doux);
}
.plateforme > i:first-child { width: 26px; font-size: 1.35rem; text-align: center; }
.plateforme-sortie { margin-left: auto; font-size: .75rem; opacity: .35; transition: opacity 200ms, color 200ms; }
.plateforme:hover { background: #1f1f1f; }
.plateforme:hover .plateforme-sortie { opacity: 1; }
.plateforme:active { transform: scale(.98); }

/* --- les flèches et le glisser à la souris --------------------------
   Sur un écran tactile, on fait défiler au doigt : les flèches n'ont
   rien à faire là. Elles n'apparaissent qu'avec une souris ou un
   pavé tactile (hover: hover). */
.carrousel-zone { position: relative; }
.carrousel-fleches { display: none; }

@media (hover: hover) and (pointer: fine) {
    .carrousel-fleches {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        max-width: 1160px;
        margin: -66px auto 22px;
        padding: 0 16px;
        position: relative;
        z-index: 2;
        pointer-events: none;
    }
    .carrousel-fleche {
        pointer-events: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px; height: 46px;
        border: 0;
        border-radius: 50%;
        background: #1a1a1a;
        color: var(--blanc);
        cursor: pointer;
        transition: background-color 200ms, color 200ms, opacity 200ms, transform 150ms var(--doux);
    }
    .carrousel-fleche:hover:not(:disabled) { background: var(--blanc); color: var(--noir); }
    .carrousel-fleche:active:not(:disabled) { transform: scale(.92); }
    .carrousel-fleche:disabled { opacity: .3; cursor: default; }

    .carrousel { cursor: grab; }
    .carrousel.is-attrape { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
    .carrousel.is-attrape .sortie { pointer-events: none; }
    .carrousel img { -webkit-user-drag: none; user-select: none; }
}

@media (min-width: 700px) {
    .carrousel { grid-auto-columns: 42%; }
}
@media (min-width: 900px) {
    .carrousel {
        grid-auto-columns: 300px;
        padding-left: max(16px, calc((100vw - 1160px) / 2 + 16px));
        scroll-padding-left: max(16px, calc((100vw - 1160px) / 2 + 16px));
    }
    .ecoute-grille { grid-template-columns: 1.4fr 1fr; align-items: start; gap: 40px; }
}

/* ==================================================================
   5. LE POST (news, et le même dans le panneau)
   ------------------------------------------------------------------
   Toutes les news au même format : aucune n'est mise en avant, et
   dans le fil chaque visuel est recadré au même rapport (4:3) pour
   une grille calme. Un tap sur la photo la montre en entier.
   ================================================================== */
.fil { display: grid; gap: 18px; }

.post-in { padding: 18px 20px 14px; }

.fil .media-image img,
.fil .media-video:not(.is-lecture) {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.fil .media-video.is-portrait:not(.is-lecture) { width: 100%; }

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: .82rem;
    color: var(--discret);
}
.post-titre {
    margin: 0;
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--noir);
}
.post-sous-titre {
    margin: 6px 0 0;
    font-size: 1rem;
    line-height: 1.4;
    color: #55514a;
}

.post-texte {
    position: relative;
    margin-top: 12px;
    max-height: 8.6em;
    overflow: hidden;
    transition: max-height 500ms var(--doux);
}
.post-texte::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3.2em;
    background: linear-gradient(rgba(255, 255, 255, 0), var(--blanc));
    pointer-events: none;
    transition: opacity 300ms;
}
.post-texte.is-court { max-height: none; }
.post-texte.is-court::after,
.post-texte.is-ouvert::after { opacity: 0; }
.post-texte-in { overflow-wrap: anywhere; }
.post-texte-in h3 { font-size: 1.05rem; }

.post-galerie {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 46%;
    gap: 8px;
    margin: 14px -20px 0;
    padding: 0 20px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.post-galerie::-webkit-scrollbar { display: none; }
.post-galerie-photo {
    scroll-snap-align: start;
    display: block;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
}
.post-galerie-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-in > .bouton { margin-top: 14px; }

.post-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--ligne);
}
.post-partage {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: none;
    font-size: .88rem;
    font-weight: 500;
    color: var(--discret);
    cursor: pointer;
    transition: background-color 200ms, color 200ms;
}
.post-partage:hover { background: var(--fond); color: var(--noir); }

/* le post qu'on vient de rejoindre depuis un lien : un léger halo */
.is-signale { animation: signale 1.6s var(--doux); }
@keyframes signale {
    0%, 100% { box-shadow: var(--ombre); }
    30% { box-shadow: 0 0 0 4px rgba(255, 220, 0, .7), var(--ombre-haute); }
}

@media (min-width: 700px) {
    .fil { grid-template-columns: repeat(2, 1fr); align-items: start; gap: 22px; }
}
@media (min-width: 1100px) {
    .fil { grid-template-columns: repeat(3, 1fr); }
}

/* ==================================================================
   6. AGENDA
   ================================================================== */
.agenda-grille { display: grid; gap: 40px; }
.agenda-groupe {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 14px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--discret);
}
.agenda-groupe i { display: none; }
.agenda-nombre {
    margin-left: auto;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: none;
    font-size: .85rem;
}

.dates { display: grid; gap: 12px; }

/* --- une date, pliée ------------------------------------------------ */
.date summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px 12px 12px;
    list-style: none;
    cursor: pointer;
}
.date summary::-webkit-details-marker { display: none; }
.date.carte { background: var(--fond); box-shadow: none; transition: background-color 200ms, box-shadow 250ms; }
.date.carte:hover,
.date.carte[open] { background: var(--blanc); box-shadow: var(--ombre); }
.date-infos { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.date-compte {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--discret);
}
.date-compte::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--jaune);
    box-shadow: 0 0 0 3px rgba(255, 220, 0, .25);
}
.date-titre { font-size: 1.08rem; font-weight: 600; line-height: 1.22; color: var(--noir); }
.date-sous { font-size: .9rem; line-height: 1.3; color: var(--discret); }
.date-chevron { font-size: .8rem; color: var(--discret); transition: transform 350ms var(--doux); }
.date[open] .date-chevron { transform: rotate(180deg); }

/* le dépliage animé (navigateurs récents) */
.date::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 450ms var(--doux), content-visibility 450ms allow-discrete;
}
.date[open]::details-content { block-size: auto; }

.date-corps { padding: 0 14px 12px; }
.date-corps .media { border-radius: var(--rayon-s); }
.date-corps .post-texte { max-height: none; }
.date-corps .post-texte::after { display: none; }

/* --- la frise du passé --------------------------------------------- */
.frise { list-style: none; margin: 0; padding: 0 0 0 20px; position: relative; }
.frise::before {
    content: "";
    position: absolute;
    left: 4px; top: 10px; bottom: 10px;
    width: 1px;
    background: var(--creme);
}
.frise-annee {
    position: relative;
    margin: 22px 0 6px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--noir);
}
.frise-annee:first-child { margin-top: 0; }
.frise-annee::before {
    content: "";
    position: absolute;
    left: -20px; top: .4em;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--noir);
}
.frise-date { margin-bottom: 2px; }
.date-passee {
    border-radius: var(--rayon-s);
    transition: background-color 200ms;
}
.date-passee[open],
.date-passee:hover { background: var(--fond); }
.date-passee summary { padding: 8px 10px; gap: 12px; }
.date-passee .jour-bloc { width: 46px; min-height: 48px; background: var(--fond); color: var(--noir); border-radius: 10px; }
.date-passee[open] .jour-bloc,
.date-passee:hover .jour-bloc { background: var(--creme); }
.date-passee .jour-j { font-size: 1.25rem; }
.date-passee .jour-m { color: var(--discret); font-size: .62rem; }
.date-passee .date-titre { font-size: .98rem; font-weight: 500; }

/* --- l'agenda sur fond noir -----------------------------------------
   Les dates à venir sont des cartes gris très foncé qui s'éclaircissent
   d'un cran au survol ou ouvertes ; le bloc date s'inverse (blanc, jour
   en noir) pour rester le repère de la ligne. Le passé reste plus
   discret, comme en clair. */
.section-noir .agenda-groupe { color: #9d988e; }
.section-noir .date.carte { background: #141414; color: #e9e6df; }
.section-noir .date.carte:hover,
.section-noir .date.carte[open] { background: #1c1c1c; box-shadow: none; }
.section-noir .date .jour-bloc { background: var(--blanc); color: var(--noir); }
.section-noir .date .jour-m { color: #55514a; }
.section-noir .date .jour-a { color: #8f8a80; }
.section-noir .date-titre { color: var(--blanc); }
.section-noir .date-sous,
.section-noir .date-compte,
.section-noir .date-chevron { color: #9d988e; }
.section-noir .date-corps .post-texte-in { color: #e9e6df; }
.section-noir .date-corps .post-texte-in a { color: var(--blanc); text-decoration-color: rgba(255, 220, 0, .6); }
.section-noir .date-corps .post-actions { border-top-color: rgba(255, 255, 255, .1); }
.section-noir .date-corps .post-partage { color: #9d988e; }
.section-noir .date-corps .post-partage:hover { background: #262626; color: var(--blanc); }

.section-noir .frise::before { background: #2a2a2a; }
.section-noir .frise-annee { color: var(--blanc); }
.section-noir .frise-annee::before { background: var(--blanc); }
.section-noir .date-passee[open],
.section-noir .date-passee:hover { background: #141414; }
.section-noir .date-passee .jour-bloc { background: var(--jaune); color: var(--noir); }
.section-noir .date-passee[open] .jour-bloc,
.section-noir .date-passee:hover .jour-bloc { background: var(--jaune-fonce); }
.section-noir .date-passee .jour-m { color: #4a4100; }

.agenda-vide { padding: 22px; background: var(--fond); box-shadow: none; }
.section-noir .agenda-vide { background: #141414; color: #e9e6df; }
.agenda-vide p { margin: 0 0 8px; }
.agenda-vide .bouton { margin-top: 8px; }

@media (min-width: 900px) {
    .agenda-grille { grid-template-columns: 1.2fr 1fr; align-items: start; gap: 56px; }
}

/* ==================================================================
   7. CONTACT
   ================================================================== */
.contact-grille { display: grid; gap: 32px; }

.contact-form { padding: 22px 20px; }
.contact-form form { display: grid; gap: 10px; }
.contact-form p { margin: 0; }
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 15px 16px 13px;
    border: 0;
    border-radius: 12px;
    background: var(--fond);
    color: var(--texte);
    font: inherit;
    font-size: 1rem;   /* 16 px : iOS ne zoome pas sur le champ */
    box-shadow: inset 0 0 0 1px transparent;
    transition: box-shadow 200ms, background-color 200ms;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9a958c; }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: var(--blanc);
    box-shadow: inset 0 0 0 1px var(--noir), 0 0 0 4px rgba(255, 220, 0, .45);
}
.contact-form button[type="submit"],
.contact-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    margin-top: 6px;
    padding: 13px 28px 11px;
    border: 0;
    border-radius: 999px;
    background: var(--jaune);
    color: var(--noir);
    font: inherit;
    font-weight: 700;
    box-shadow: 0 6px 18px -8px rgba(160, 130, 0, .55);
    cursor: pointer;
    transition: transform 180ms var(--doux), background-color 200ms;
}
.contact-form button[type="submit"]:hover,
.contact-form input[type="submit"]:hover { background: var(--jaune-fonce); }
.contact-form button[type="submit"]:active,
.contact-form input[type="submit"]:active { transform: scale(.97); }

.contact-titre {
    margin: 0;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--noir);
    line-height: 1.05;
}
.contact-boutons { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 32px; }
.contact-boutons .bouton { flex: 1 1 220px; }

.reseaux { display: grid; gap: 18px; }
.reseaux-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.reseaux-titre {
    width: 100%;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--discret);
}
.reseaux ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.reseau {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--blanc);
    color: var(--noir);
    font-size: 1.15rem;
    text-decoration: none;
    box-shadow: var(--ombre);
    transition: background-color 200ms, transform 300ms var(--ressort);
}
.reseau:hover { background: var(--jaune); transform: translateY(-2px); }

/* --- sur fond noir, comme sur l'ancien site ------------------------
   Même dessin qu'en clair, tons inversés : la carte du formulaire est
   un gris presque noir qui se détache à peine, les champs un cran plus
   clair, et le jaune reste réservé à ce qui s'actionne. */
.section-noir .contact-form { background: #141414; color: #e9e6df; box-shadow: none; }
.section-noir .contact-form input[type="text"],
.section-noir .contact-form input[type="tel"],
.section-noir .contact-form textarea { background: #1f1f1f; color: var(--blanc); }
.section-noir .contact-form input::placeholder,
.section-noir .contact-form textarea::placeholder { color: #7d786f; }
.section-noir .contact-form input:focus,
.section-noir .contact-form textarea:focus {
    background: #242424;
    box-shadow: inset 0 0 0 1px rgba(255, 220, 0, .8), 0 0 0 4px rgba(255, 220, 0, .18);
}
.section-noir .contact-form button[type="submit"],
.section-noir .contact-form input[type="submit"] { box-shadow: none; }
.section-noir .contact-titre { color: var(--blanc); }
.section-noir .reseaux-titre { color: #8f8a80; }
.section-noir .reseau { background: #1a1a1a; color: var(--blanc); box-shadow: none; }
.section-noir .reseau:hover { background: var(--jaune); color: var(--noir); }
/* pas d'ombre portée sur le noir… sauf le contour des boutons clairs,
   qui est dessiné avec la même propriété et doit rester visible */
.section-noir .bouton:not(.bouton-clair) { box-shadow: none; }

@media (min-width: 900px) {
    .contact-grille { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
    .contact-form { padding: 30px; }
}

/* ==================================================================
   LE PIED DE PAGE
   ================================================================== */
.pied {
    padding: 44px 16px 32px;
    background: var(--noir);
    color: #8f8a80;
    text-align: center;
    font-size: .88rem;
    /* le contact est noir lui aussi : un filet suffit à séparer les deux */
    border-top: 1px solid #1c1c1c;
}
/* Sur téléphone, le menu du bas flotte par-dessus la fin de la page :
   le pied de page se rallonge d'autant, en noir, pour que rien ne
   passe dessous. */
@media (max-width: 899px) {
    .pied { padding-bottom: calc(32px + var(--onglets-h) + 16px + var(--bas-sur)); }
}
.pied-logo { width: 120px; opacity: .9; }
.pied p { margin: 8px 0; }
.pied-coeur { color: var(--jaune); display: inline-block; animation: battement 1.6s ease-in-out infinite; }
@keyframes battement { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } }
.pied-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.pied-liens a { color: #d9d5cc; text-decoration: none; }
.pied-liens a:hover { color: var(--blanc); text-decoration: underline; text-decoration-color: var(--jaune); }
.pied-copy { font-size: .78rem; opacity: .7; }

/* ==================================================================
   REMONTER EN HAUT
   Une pastille sombre et translucide : elle reste lisible sur le crème
   comme sur le noir. Sur téléphone, au-dessus du menu du pouce, à
   droite ; sur ordinateur, dans le coin.
   ================================================================== */
.remonter {
    position: fixed;
    right: 14px;
    bottom: calc(var(--onglets-h) + 22px + var(--bas-sur));
    z-index: 898;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 20, .82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--blanc);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 24px -10px rgba(0, 0, 0, .5);
    text-decoration: none;
    opacity: 0;
    transform: translateY(12px) scale(.9);
    pointer-events: none;
    transition: opacity 300ms, transform 400ms var(--ressort), background-color 200ms;
}
.apres-splash .remonter { opacity: 1; transform: none; pointer-events: auto; }
.remonter:hover { background: var(--noir); }
.remonter:hover i { animation: rebond-haut .8s var(--doux) infinite; }
@keyframes rebond-haut { 50% { transform: translateY(-3px); } }

@media (min-width: 900px) {
    .remonter { right: 24px; bottom: 24px; width: 48px; height: 48px; }
}

/* ==================================================================
   LE MINI-LECTEUR
   ================================================================== */
.mini-lecteur {
    position: fixed;
    left: 50%;
    bottom: calc(var(--onglets-h) + 20px + var(--bas-sur));
    z-index: 899;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 6px 6px;
    border-radius: 999px;
    background: rgba(10, 10, 10, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--blanc);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
    font-size: .84rem;
    font-weight: 500;
    transform: translate(-50%, 0);
    animation: mini-arrive 450ms var(--ressort);
    overflow: hidden;
}
@keyframes mini-arrive { from { transform: translate(-50%, 140%); } }
.mini-lecteur-bouton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--blanc);
    color: var(--noir);
    cursor: pointer;
}
.mini-lecteur-texte { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.mini-lecteur-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.mini-lecteur-eq i { width: 3px; background: var(--blanc); border-radius: 1px; animation: eq .9s ease-in-out infinite; }
.mini-lecteur-eq i:nth-child(2) { animation-delay: -.3s; }
.mini-lecteur-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.mini-lecteur.is-pause .mini-lecteur-eq i { animation-play-state: paused; }
.mini-lecteur-barre { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .12); }
.mini-lecteur-barre span { display: block; height: 100%; width: 0; background: var(--blanc); }

@media (min-width: 900px) {
    /* à gauche du bouton « remonter », qui occupe le coin */
    .mini-lecteur { left: auto; right: 86px; bottom: 24px; transform: none; animation-name: mini-arrive-d; }
    @keyframes mini-arrive-d { from { transform: translateY(140%); } }
}

/* ==================================================================
   LE PANNEAU (une sortie, un article)
   Feuille qui monte du bas sur téléphone, fenêtre au centre sur grand
   écran.
   ================================================================== */
.panneau {
    width: 100%;
    max-width: 100%;
    max-height: 92svh;
    margin: auto 0 0;
    padding: 0;
    border: 0;
    border-radius: 24px 24px 0 0;
    background: var(--fond);
    color: var(--texte);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 420ms var(--doux), overlay 420ms allow-discrete, display 420ms allow-discrete;
}
.panneau:not([open]) { display: none; }
.panneau[open] { transform: translateY(var(--tire, 0px)); }
@starting-style { .panneau[open] { transform: translateY(100%); } }
.panneau.is-tire { transition: none; }
.panneau::backdrop {
    background: rgba(0, 0, 0, 0);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
    transition: background-color 420ms, backdrop-filter 420ms, overlay 420ms allow-discrete, display 420ms allow-discrete;
}
.panneau[open]::backdrop { background: rgba(0, 0, 0, .5); backdrop-filter: blur(4px); }
@starting-style { .panneau[open]::backdrop { background: rgba(0, 0, 0, 0); backdrop-filter: blur(0); } }

.panneau-poignee {
    flex: none;
    width: 40px; height: 5px;
    margin: 10px auto 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, .18);
    touch-action: none;
}
.panneau-fermer {
    position: absolute;
    top: 10px; right: 12px;
    z-index: 3;
    width: 40px; height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--ombre);
    cursor: pointer;
}
.panneau-contenu {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 14px calc(20px + var(--bas-sur));
}
.panneau .post-texte { max-height: none; }
.panneau .post-texte::after { display: none; }

@media (min-width: 900px) {
    .panneau {
        width: min(760px, 92vw);
        max-height: 88vh;
        margin: auto;
        border-radius: 22px;
        box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5);
        transform: scale(.96);
        opacity: 0;
        transition: transform 300ms var(--doux), opacity 300ms, overlay 300ms allow-discrete, display 300ms allow-discrete;
    }
    .panneau[open] { transform: none; opacity: 1; }
    @starting-style { .panneau[open] { transform: scale(.96); opacity: 0; } }
    .panneau-poignee { display: none; }
    .panneau-contenu { padding: 56px 22px 22px; }
}

/* --- les mentions légales : du texte à lire, posé sur blanc --------- */
.panneau-texte { background: var(--blanc); }
.mentions { padding-left: 22px; padding-right: 22px; font-size: .98rem; line-height: 1.6; }
.mentions-titre {
    margin: 10px 0 14px;
    padding-right: 48px;   /* la croix de fermeture */
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--noir);
}
.mentions-titre ~ .mentions-titre { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--ligne); }
.mentions h3 {
    margin: 24px 0 6px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--discret);
}
.mentions p, .mentions ul { margin: 0 0 10px; }
.mentions ul { padding-left: 1.2em; }
.mentions li { margin-bottom: 6px; }
.mentions a { color: var(--noir); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mentions-intro { color: #55514a; }
.mentions-note, .mentions-maj { font-size: .86rem; color: var(--discret); }
.mentions-maj { margin-top: 30px !important; }
.mentions mark { background: #ffe9e6; color: #b3261e; padding: 0 4px; border-radius: 4px; }

/* ==================================================================
   LA VISIONNEUSE
   ================================================================== */
.visionneuse {
    width: 100vw; height: 100svh;
    max-width: none; max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, .94);
    color: var(--blanc);
}
.visionneuse[open] { display: flex; align-items: center; justify-content: center; }
.visionneuse img {
    max-width: 100%;
    max-height: 86svh;
    object-fit: contain;
    touch-action: pan-y;
    user-select: none;
    animation: zoom-arrive 300ms var(--doux);
}
@keyframes zoom-arrive { from { opacity: 0; transform: scale(.97); } }
.visionneuse-fermer,
.visionneuse-nav {
    position: absolute;
    z-index: 2;
    width: 46px; height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--blanc);
    cursor: pointer;
    transition: background-color 200ms;
}
.visionneuse-fermer:hover,
.visionneuse-nav:hover { background: rgba(255, 255, 255, .22); }
.visionneuse-fermer { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
.visionneuse-prec { left: 10px; top: 50%; transform: translateY(-50%); }
.visionneuse-suiv { right: 10px; top: 50%; transform: translateY(-50%); }
.visionneuse-compte { position: absolute; bottom: calc(14px + var(--bas-sur)); left: 0; right: 0; text-align: center; margin: 0; font-size: .9rem; opacity: .75; }

/* ==================================================================
   LE PETIT MESSAGE (« Lien copié ! »)
   ================================================================== */
.toast {
    position: fixed;
    left: 50%;
    top: calc(var(--barre-h) + 14px + env(safe-area-inset-top, 0px));
    z-index: 4000;
    padding: 11px 20px 9px;
    border-radius: 999px;
    background: var(--noir);
    color: var(--blanc);
    font-weight: 500;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
    transform: translate(-50%, -30px);
    opacity: 0;
    pointer-events: none;
    transition: transform 350ms var(--ressort), opacity 250ms;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ==================================================================
   LES DOODLES
   ------------------------------------------------------------------
   Deux familles, les mêmes formes (doodles.js) :
   - à côté de chaque titre de section, sur tous les écrans ;
   - dans les marges, sur les grands écrans seulement — sur un
     téléphone il n'y a pas de marge, ils iraient dans le texte.
   ================================================================== */
.section .doodle-layer { display: none; }
@media (min-width: 1400px) {
    .section .doodle-layer { display: block; }
}

/* ==================================================================
   MOUVEMENT RÉDUIT : on garde tout, sauf ce qui bouge
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js .revele { opacity: 1; transform: none; }
    .pluie { display: none; }
}

/* tarteaucitron : le bandeau cookies au-dessus du menu du pouce */
#tarteaucitronRoot #tarteaucitronAlertBig { z-index: 5000 !important; }
