/* ---- tokens ---- */
/* Doogether DA v12 · tokens
   Couleurs, espacements, courbes : la seule source des valeurs de la DA. Aucun sélecteur ici. */
:root {
  color-scheme: light;
  --papier: #f7f2e8;
  --papier-2: #ece4d2;
  --encre: #061a3a;                /* bleu nuit : texte et fonds sombres */
  --bleu: #003287;                 /* bleu Doogether : hero et contact */
  --bleu-vif: #003287;             /* même bleu (nom historique) */
  --accent: #2be3a8; /* menthe */
  --gris: #5c5646;
  --filet: #3a2c1428;
  --filet-clair: #f6f4ef45;
  --marge: clamp(1.25rem, 5vw, 4rem);
  --haut: 4.25rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --rebond: cubic-bezier(.3, 1.6, .5, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Rayons : boutons et champs / cartes de contenu / grandes cartes et modale */
  --rayon-s: 12px;
  --rayon-m: 18px;
  --rayon-l: 28px;
  /* Polices */
  --police: "Google Sans Flex", "Helvetica Neue", Arial, system-ui, sans-serif;
  --police-main: "Zeyada", "Segoe Script", "Bradley Hand", cursive;
  /* Erreurs de saisie (texte sur clair / sur bleu) */
  --rouge: #b3261e;
  --rouge-clair: #ffb4ab;
  /* Repère de chantier : à retirer avant la mise en ligne */
  --repere: #ffe9a8;
}

/* ---- base ---- */
/* Doogether DA v12 · base
   Polices, remise à zéro, typographie de base, accessibilité (focus, lien d'évitement), classes utilitaires. */
@font-face { font-family: "Google Sans Flex"; src: url("../fonts/google-sans-flex.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Zeyada"; src: url("../fonts/zeyada.woff2") format("woff2"); font-weight: 400; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
/* le ruban incliné dépasse de l'écran : sans ceci, le mobile réduit toute la page pour tout faire tenir */
html { overflow-x: clip; }
body { margin: 0; background: var(--papier) var(--grain); color: var(--encre); font-family: "Google Sans Flex", "Helvetica Neue", Arial, system-ui, sans-serif; font-size: 1.125rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; font-variant-numeric: tabular-nums; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
ul, ol { list-style: none; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--encre); }
:focus-visible { outline: 3px solid var(--bleu-vif); outline-offset: 4px; border-radius: 6px; }
.bloc--hero :focus-visible, .bloc--encre :focus-visible, .bloc--bleu :focus-visible { outline-color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 1rem; top: -4rem; background: var(--encre); color: var(--papier); padding: 0.75rem 1.25rem; border-radius: 10px; z-index: 300; }
.evitement:focus { top: 0.75rem; }
.main { font-family: "Zeyada", "Segoe Script", "Bradley Hand", cursive; font-weight: 400; -webkit-text-stroke: 0.025em currentColor; }

.a-completer { background: #ffe9a8; padding: 0.05em 0.3em; border-radius: 4px; color: var(--encre); }

/* ---- composants ---- */
/* Doogether DA v12 · composants
   Éléments réutilisables sur toutes les pages : boutons, liens, plages de couleur, ruban, carte formule, pied de page, curseur, mouvement. */
/* ---------- Boutons : francs, qui rebondissent ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0.7rem 1.5rem; border-radius: 12px; background: var(--encre); color: var(--papier); font-weight: 600; text-decoration: none; transition: transform 0.3s var(--rebond), background 0.2s ease; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); background: var(--bleu-vif); }
.btn span { transition: transform 0.3s var(--rebond); }
.btn:hover span { transform: translateX(5px); }
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; } /* le même bouton, en <button> */
.btn--petit { min-height: 2.75rem; padding: 0.4rem 1.1rem; font-size: 0.9375rem; }
.btn--gros { min-height: 4rem; padding: 0.8rem 2rem; font-size: 1.25rem; border-radius: 14px; }
.bloc--hero .btn, .bloc--bleu .btn { background: var(--accent); color: var(--encre); }
.bloc--hero .btn:hover, .bloc--bleu .btn:hover { background: #fff; }
.bloc--encre .btn { background: var(--accent); color: var(--encre); }
.bloc--encre .btn:hover { background: #fff; }
.lien { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 0.2em; font-weight: 500; transition: background-size 0.4s var(--ease); }
.lien:hover { background-size: 0 2px; background-position: 100% 100%; }

/* ---------- Plages ---------- */
.bloc { padding: clamp(4rem, 9vw, 8rem) var(--marge); position: relative; }
.bloc--encre { background: var(--encre) var(--grain); color: var(--papier); }
.bloc--bleu { background: var(--bleu) var(--grain); color: var(--papier); }
.bloc--accent { background: var(--accent) var(--grain); color: var(--encre); }
.bloc--chaud { background: var(--papier-2) var(--grain); }
.dedans { max-width: 80rem; margin-inline: auto; }

/* ---------- Ruban : les formules, en mouvement ---------- */
.ticker { position: relative; z-index: 5; overflow: hidden; background: var(--accent); color: var(--encre); transform: rotate(-1.6deg); margin: -3.2rem -2rem -2.5rem; padding: 0.95rem 0; top: 20px; }
.ticker:not(.ticker--resume)::before, .ticker:not(.ticker--resume)::after { content: ""; position: absolute; top: 0; bottom: 0; width: 14%; z-index: 2; pointer-events: none; }
.ticker:not(.ticker--resume)::before { left: 0; background: linear-gradient(90deg, var(--accent), transparent); }
.ticker:not(.ticker--resume)::after { right: 0; background: linear-gradient(270deg, var(--accent), transparent); }
.ticker__piste { display: flex; width: max-content; }
.ticker__piste span { font-size: clamp(1.3rem, 0.9rem + 1.7vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.ticker__piste span::after { content: "●"; margin: 0 clamp(1.25rem, 3vw, 2.5rem); font-size: 0.55em; vertical-align: 0.2em; color: var(--bleu-vif); }
@keyframes defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) { .ticker__piste { animation: defile 34s linear 3 forwards; } .ticker:hover .ticker__piste { animation-play-state: paused; } }

.formules { display: grid; gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }
@media (min-width: 64rem) { .formules { grid-template-columns: repeat(3, 1fr); } }
.formule { position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.5rem, 2.4vw, 2.25rem); background: #fff; border: 1px solid #061a3a14; border-radius: 28px; box-shadow: 0 1px 2px #061a3a08, 0 24px 48px -28px #061a3a33; transition: transform 0.35s var(--rebond), background 0.2s ease, box-shadow 0.3s ease; }
.formule h3 { font-size: clamp(2.1rem, 1rem + 1.9vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -0.055em; }
.formule__pour { color: var(--gris); font-size: 1.1875rem; font-weight: 500; line-height: 1.35; min-height: 2.7em; }
.formule__prix { display: grid; gap: 0.4rem; padding-top: 1.1rem; border-top: 1px solid var(--filet); }
.lib { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris); }
.formule__prix .val { font-size: clamp(2rem, 1rem + 1.8vw, 2.9rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; width: fit-content; }
.formule__prix .val small { font-size: 0.875rem; font-weight: 600; letter-spacing: 0; vertical-align: 0.5em; }
.formule__delai { font-size: 1.125rem; font-weight: 500; }
.formule__delai b { font-weight: 800; }
.inclus { display: grid; gap: 0.7rem; flex: 1; align-content: start; padding-top: 1.1rem; border-top: 1px solid var(--filet); font-size: 1.0625rem; font-weight: 500; }
.inclus li { position: relative; padding-left: 2.1rem; line-height: 1.35; }
.inclus li::before { content: ""; position: absolute; left: 0; top: 0.12em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36' fill='none' stroke='%23000633' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19 15 29 35 7'/%3E%3C/svg%3E") center / 58% no-repeat; transition: background-color 0.2s ease; }
.btn--bloc { width: 100%; justify-content: center; margin-top: 0.5rem; min-height: 3.5rem; font-size: 1.0625rem; }
.btn--bloc { background: var(--accent); color: var(--encre); }
.btn--bloc:hover { background: var(--encre); color: var(--accent); }
@media (hover: hover) {
  .formule:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px #061a3a44; }
}
/* Variante « recommandée » : ajouter la classe formule--reco à un bloc */
.formule--reco { background: var(--accent); }
.formule--reco::before { content: "Recommandé"; position: absolute; top: -0.9rem; left: 1.5rem; padding: 0.25rem 0.8rem; background: var(--encre); color: var(--papier); border-radius: 8px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.titre-section { font-size: clamp(2.4rem, 1rem + 3.6vw, 4.2rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.05em; margin-bottom: clamp(2rem, 4vw, 3.25rem); text-wrap: balance; }
.titre-section em { font-style: normal; color: var(--bleu-vif); }

.inclus li b { font-weight: 800; }

.bloc--accent { padding-block: clamp(5rem, 11vw, 10rem); }

.pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: clamp(4rem, 9vw, 8rem); padding-top: 1.25rem; border-top: 1px solid var(--filet-clair); font-size: 0.9375rem; opacity: 0.85; }
.pied a { display: inline-block; padding: 0.4rem 0; }

/* ---------- Curseur ---------- */
.curseur { position: fixed; left: 0; top: 0; z-index: 400; width: 2.5rem; height: 2.5rem; margin: -1.25rem 0 0 -1.25rem; border: 1.5px solid #fff; border-radius: 50%; mix-blend-mode: difference; pointer-events: none; opacity: 0; display: grid; place-items: center; color: #fff; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; transition: opacity 0.3s ease, width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease); }
.curseur.visible { opacity: 1; }
.curseur.actif { width: 5rem; height: 5rem; margin: -2.5rem 0 0 -2.5rem; }
.curseur.actif::after { content: attr(data-mot); }

/* ---------- Mouvement au service de l'action (progressif) ---------- */
@keyframes ecrit { from { clip-path: inset(-120% 100% -120% -10%); } to { clip-path: inset(-120% -10% -120% -10%); } }
@keyframes lever { from { opacity: 0; transform: translateY(1.75rem); } to { opacity: 1; transform: none; } }
@keyframes surgit { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes monte { from { opacity: 0; transform: translateY(0.4em); } to { opacity: 1; transform: none; } }
@keyframes trace { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes iris { from { clip-path: circle(0% at 50% 0%); } to { clip-path: circle(125% at 50% 0%); } }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .apparait { animation: lever linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .etapes li::before { animation: trace linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  }
  .js-vu .apparait { opacity: 0; transform: translateY(1.75rem); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); animation: none; }
  .js-vu .apparait.vu { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) { .curseur { display: none; } }


/* ---------- Flou progressif collé en bas de l'écran : le contenu s'estompe en défilant sous le bord ---------- */
.flou-bas { position: fixed; left: 0; right: 0; bottom: 0; height: clamp(4.5rem, 12vh, 7.5rem); z-index: 40; pointer-events: none; }
.flou-bas, .flou-bas::before, .flou-bas::after { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%); mask-image: linear-gradient(to top, #000 0%, transparent 100%); }
.flou-bas::before, .flou-bas::after { content: ""; position: absolute; inset: 0; }
.flou-bas::before { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 65%); mask-image: linear-gradient(to top, #000 0%, transparent 65%); }
.flou-bas::after { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 35%); mask-image: linear-gradient(to top, #000 0%, transparent 35%); }
@media print { .flou-bas { display: none; } }

/* Le flou du bas n'apparaît qu'une fois la page quittée : le ruban du 1er écran reste net */
@keyframes flou-entre { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) { @supports (animation-timeline: scroll()) {
  .flou-bas { animation: flou-entre linear both; animation-timeline: scroll(root); animation-range: 150px 450px; }
} }

/* ---------- Bouton final : c'est la fête (formes plates, couleurs de la page, CSS pur) ---------- */
.fete { position: relative; display: inline-block; }
.fete .btn { position: relative; z-index: 2; }
/* paillettes : petits losanges qui scintillent autour */
.paillettes i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); background: var(--accent); rotate: 45deg; pointer-events: none; opacity: 0.85; }
.paillettes i:nth-child(3n) { background: var(--papier); }
.paillettes i:nth-child(5n) { background: #7aa7ff; }
/* confettis : jaillissent du bouton au survol */
.confettis { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.confettis i { position: absolute; left: 0; top: 0; width: var(--w); height: calc(var(--w) * 0.55); background: var(--accent); border-radius: 2px; opacity: 0; }
.confettis i:nth-child(3n) { background: var(--papier); }
.confettis i:nth-child(4n) { background: #7aa7ff; }
@media (prefers-reduced-motion: no-preference) {
  .paillettes i { animation: scintille 2.4s ease-in-out var(--d) infinite; }
  .fete:hover .confettis i, .fete:focus-within .confettis i { animation: jaillit 1.1s cubic-bezier(.15,.8,.3,1) both; }
}
@keyframes scintille { 0%, 100% { transform: scale(0.2); opacity: 0; } 50% { transform: scale(1); opacity: 1; } }
@keyframes jaillit { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 60px)) rotate(var(--r)); opacity: 0; } }

.bord { position: absolute; left: 0; top: 0; width: 100%; height: var(--bord); display: block; pointer-events: none; z-index: 0; overflow: visible; }
.bord__trait { fill: none; stroke: var(--accent); stroke-width: var(--trait, 4px); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* ---------- Carte d'offre : plus de caractère (prix en très grand, délai manuscrit, cartes légèrement penchées, survol menthe) ---------- */
.formules .formule { rotate: var(--r, 0deg); box-shadow: none; border-color: #061a3a1f; transition: transform 0.35s var(--rebond), background 0.25s ease, rotate 0.35s var(--rebond); }
.formules .formule:nth-child(3n+1) { --r: -0.5deg; }
.formules .formule:nth-child(3n+2) { --r: 0.4deg; }
.formules .formule:nth-child(3n) { --r: -0.3deg; }
.formules .formule__prix { border-top: 0; padding-top: 0.2rem; }
.formules .formule__prix .val { font-size: clamp(3rem, 1rem + 4vw, 5rem); letter-spacing: -0.06em; line-height: 0.95; color: var(--bleu-vif); }
.formules .formule__prix .val small { font-size: 1rem; letter-spacing: 0; color: var(--encre); }
.formules .formule__delai { font-family: "Zeyada", "Segoe Script", "Bradley Hand", cursive; -webkit-text-stroke: 0.025em currentColor; font-weight: 400; font-size: clamp(2rem, 1.4rem + 1.2vw, 2.6rem); line-height: 1; color: var(--bleu-vif); rotate: -2deg; transform-origin: left center; width: fit-content; }
.formules .formule__delai b { font-weight: 400; }
@media (hover: hover) {
  .formules .formule:hover { background: var(--accent); rotate: 0deg; transform: translateY(-6px); box-shadow: none; }
  .formules .formule:hover .formule__prix .val, .formules .formule:hover .formule__delai { color: var(--encre); }
  .formules .formule:hover .formule__pour { color: var(--encre); }
  .formules .formule:hover .inclus li::before { background-color: #fff; }
  .formules .formule:hover .btn--bloc { background: var(--encre); color: var(--accent); }
}

/* ---------- Carte cliquable (formations, articles) : toute la carte est le lien du titre ; étiquette de type, état, date ---------- */
.formule--lien h3 a { text-decoration: none; }
.formule--lien h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* toute la carte est cliquable */
.formule--lien:focus-within { outline: 3px solid var(--bleu-vif); outline-offset: 4px; }
.formule--lien h3 a:focus-visible { outline: none; }
.formule__type { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.formule__etat { padding: 0.15rem 0.6rem; border-radius: 8px; background: var(--encre); color: var(--papier); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.formule__date { font-size: 1rem; font-weight: 500; }
.formule__date b { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }
.formules .formule--lien:hover .formule__date b { color: var(--encre); }
.formule--complet .btn--bloc { background: transparent; box-shadow: inset 0 0 0 2px var(--encre); color: var(--encre); }

/* TEST typographie des boutons : la même que celle des rubans défilants (majuscules, gras 800, approche serrée).
   Pour revenir en arrière, supprimer ce bloc puis relancer bin/build-css.sh. */
.btn, button.btn, .form .wpcf7-submit { font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }

/* ---- formulaire ---- */
/* Doogether DA v12 · formulaire de contact (validé).
   Cible le HTML que génère Contact Form 7 (.wpcf7-form, .wpcf7-form-control-wrap, .wpcf7-not-valid-tip,
   .wpcf7-response-output), pour que le même style serve en modale et en bloc de page.
   Les couleurs passent par des variables : clair par défaut, inversées sur fond bleu ou encre. */

.form {
  --champ-fond: #fff;
  --champ-texte: var(--encre);
  --champ-bord: #061a3a40;
  --champ-bord-actif: var(--bleu-vif);
  --lib-couleur: var(--encre);
  --aide-couleur: var(--gris);
  --erreur: var(--rouge);
  --anneau: var(--bleu-vif);
  display: grid; gap: 1.25rem; max-width: 40rem;
}
.bloc--bleu .form, .bloc--encre .form {
  --champ-bord: #ffffff55;
  --champ-bord-actif: var(--accent);
  --lib-couleur: var(--papier);
  --aide-couleur: #f7f2e8bf;
  --erreur: var(--rouge-clair);
  --anneau: var(--accent);
}

.form p { margin: 0; }
.form label, .form .lib-champ { display: grid; gap: 0.45rem; font-weight: 600; font-size: 1rem; color: var(--lib-couleur); }
.form .aide { font-weight: 500; font-size: 0.9375rem; color: var(--aide-couleur); }
.form .wpcf7-form-control-wrap { display: block; }
.form .wpcf7-list-item { display: block; margin: 0; }

.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 1rem;
  font: inherit; font-weight: 500; color: var(--champ-texte);
  background: var(--champ-fond); border: 1.5px solid var(--champ-bord); border-radius: var(--rayon-s);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.form select { appearance: none; padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23061a3a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 7 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem; }
.form ::placeholder { color: var(--gris); opacity: 1; } /* 7,3:1 sur blanc (l'ancienne valeur à 70 % ne faisait que 3,5:1) */
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--champ-bord-actif); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: none; border-color: var(--champ-bord-actif); box-shadow: 0 0 0 4px color-mix(in srgb, var(--anneau) 28%, transparent);
}

/* Case de consentement */
.form .wpcf7-acceptance label, .form .consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem; font-weight: 500; font-size: 0.9375rem; line-height: 1.4; }
.form input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; width: 1.5rem; height: 1.5rem; margin: 0; flex: none; cursor: pointer;
  background: var(--champ-fond) no-repeat center / 0 0; border: 1.5px solid var(--champ-bord); border-radius: 7px;
  transition: background-color 0.2s ease, border-color 0.2s ease, background-size 0.25s var(--rebond);
}
/* La coche est l'image de fond de la case elle-même (centrée par construction) : un ::after sur un <input> n'est pas fiable partout. */
.form input[type="checkbox"]:checked {
  background-color: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36' fill='none' stroke='%23000633' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19 15 29 35 7'/%3E%3C/svg%3E");
  background-size: 0.9rem 0.81rem;
}
.form input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--anneau) 28%, transparent); border-color: var(--champ-bord-actif); }
.form .consent a, .form .wpcf7-acceptance a { text-underline-offset: 0.2em; }

/* Envoi */
.form .envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 0.5rem; }
.form .wpcf7-submit { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 1.125rem; }
.form .wpcf7-submit { background: var(--encre); color: var(--papier); }
.bloc--bleu .form .wpcf7-submit, .bloc--encre .form .wpcf7-submit { background: var(--accent); color: var(--encre); }
.bloc--bleu .form .wpcf7-submit:hover, .bloc--encre .form .wpcf7-submit:hover { background: #fff; }
.form .wpcf7-submit:hover { transform: translateY(-3px) rotate(-1deg); }
.form .wpcf7-spinner { display: none; }
.form.is-envoi .wpcf7-submit { opacity: 0.65; cursor: progress; }
/* Contact Form 7 désactive « Envoyer » tant que la case de consentement n'est pas cochée (sauf acceptance_as_validation: on) :
   l'état doit se voir, sinon le bouton paraît actif et le clic « ne fait rien ». */
.form .wpcf7-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Erreurs : jamais la couleur seule, un texte et un trait */
/* Plus spécifique que « .form input[type="text"] » : sans cela, seule la zone de texte prenait la bordure rouge. */
.form .wpcf7-not-valid, .form input.wpcf7-not-valid, .form select.wpcf7-not-valid, .form textarea.wpcf7-not-valid,
.form input[aria-invalid="true"], .form select[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--erreur); border-width: 2px; }
.form input[type="checkbox"][aria-invalid="true"] { border-color: var(--erreur); border-width: 2px; }
.form .wpcf7-not-valid-tip { display: flex; gap: 0.4rem; align-items: baseline; margin-top: 0.1rem; color: var(--erreur); font-size: 0.9375rem; font-weight: 600; }
.form .wpcf7-not-valid-tip::before { content: "!"; flex: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--erreur); color: var(--champ-fond); font-size: 0.8rem; line-height: 1.15rem; text-align: center; font-weight: 800; }
.bloc--bleu .form .wpcf7-not-valid-tip::before { color: var(--bleu); }

/* Messages de retour de CF7 */
.form .wpcf7-response-output { margin: 0; padding: 1rem 1.25rem; border-radius: var(--rayon-s); border: 1.5px solid currentColor; font-weight: 600; }
.form .wpcf7-response-output:empty { display: none; }

/* Ce que la feuille de style de Contact Form 7 masquait (elle est désactivée par le thème) :
   les champs techniques cachés, et le message pour lecteurs d'écran, qui reste lisible par eux. */
.wpcf7 .hidden-fields-container, .form .hidden-fields-container { display: none; }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form.sent .wpcf7-response-output, .form .wpcf7-mail-sent-ok { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); color: var(--lib-couleur); }
.form.invalid .wpcf7-response-output { color: var(--erreur); }

/* Piège à robots de CF7 : hors écran, jamais display:none */
.form .piege { position: absolute; left: -9999px; }

/* ---------- Modale ---------- */
.modale { width: min(44rem, calc(100% - 2rem)); max-height: calc(100svh - 2rem); padding: 0; border: 1px solid #061a3a14; border-radius: var(--rayon-l); background: var(--papier) var(--grain); color: var(--encre); box-shadow: 0 40px 80px -30px #061a3acc; overflow: auto; }
.modale::backdrop { background: #061a3ab8; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modale__dans { padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1.5rem; }
.modale__titre { font-size: clamp(2rem, 1rem + 2.4vw, 3.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.055em; padding-right: 3.5rem; }
.modale__titre em { font-style: normal; color: var(--bleu-vif); }
.modale__chapeau { color: var(--gris); font-weight: 500; font-size: 1.125rem; margin-top: -0.5rem; }
.modale__fermer { position: absolute; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; display: grid; place-content: center; border: 1.5px solid #061a3a30; border-radius: var(--rayon-s); background: transparent; color: inherit; cursor: pointer; transition: background 0.2s ease, transform 0.3s var(--rebond); }
.modale__fermer:hover { background: var(--encre); color: var(--papier); transform: rotate(90deg); }
.modale__fermer svg { width: 1.1rem; height: 1.1rem; }
@media (prefers-reduced-motion: no-preference) {
  .modale[open] { animation: modale-entree 0.45s var(--rebond); }
  .modale[open]::backdrop { animation: modale-fond 0.3s ease; }
}
@keyframes modale-entree { from { opacity: 0; transform: translateY(2rem) scale(0.96); } }
@keyframes modale-fond { from { opacity: 0; } }
@media (max-width: 40rem) {
  .modale { width: 100%; max-width: none; height: 100svh; max-height: none; border-radius: 0; border: 0; }
}

/* ---- contenu ---- */
/* Doogether DA v12 · gabarit « page de contenu » (mentions légales, confidentialité, CGV, pages simples).
   Bandeau bleu (la barre de navigation transparente reste lisible), colonne de lecture d'environ 65 caractères,
   sommaire collant à gauche sur grand écran. Le contenu de .lecture vient de l'éditeur WordPress (the_content). */

/* ---------- Bandeau de titre ---------- */
.bandeau { padding: 8.5rem var(--marge) clamp(2.5rem, 5vw, 4rem); background-image: var(--grain), linear-gradient(to bottom, color-mix(in srgb, var(--bleu-vif) 25%, var(--encre)) 0%, var(--bleu-vif) 35%); } /* même dégradé que le hero de l'accueil */
.fil { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); font-size: 0.9375rem; font-weight: 500; }
.fil li + li::before { content: "/"; margin-right: 0.6rem; opacity: 0.6; }
.fil a { padding: 0.5rem 0; }
.fil [aria-current] { opacity: 0.8; }
.bandeau h1 { font-size: clamp(2.6rem, 1rem + 5vw, 5.2rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.055em; text-wrap: balance; max-width: 18ch; }
.bandeau h1 em { font-style: normal; color: var(--accent); }
.bandeau__visuel { margin: 0; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: #ffffff1a; }
.bandeau__visuel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bandeau--image .dedans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(2rem, 5vw, 4.5rem); }
.bandeau--image .bandeau__visuel { margin-top: 2rem; }
@media (min-width: 62em) {
  .bandeau--image .dedans { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); }
  .bandeau--image .dedans > * { grid-column: 1; }
  .bandeau--image .dedans > nav { grid-column: 1 / -1; }
  .bandeau--image .bandeau__visuel { grid-column: 2; grid-row: 2 / span 8; align-self: center; margin-top: 0; }
}
/* ---------- bandeau des pages intérieures, accordé au hero de l'accueil : bleu uni, capitales centrées, point de la marque ---------- */
.bandeau--page { --ivoire: #f4efe4; overflow: hidden; background: var(--bleu); color: var(--ivoire); text-align: center; padding-block: 8.25rem clamp(3rem, 8vh, 5rem); }
.bandeau--page h1 { max-width: 18ch; margin: 0 auto; rotate: -1.5deg; font-size: clamp(2.5rem, 1rem + 5.6vw, 6.5rem); font-weight: 900; line-height: .98; letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance; }
.bandeau--page.bandeau--long h1 { max-width: 26ch; font-size: clamp(1.85rem, 1rem + 2.9vw, 4rem); line-height: 1.02; letter-spacing: -.025em; }
.bandeau__point { display: inline-block; width: .19em; height: .19em; margin-left: .05em; border-radius: 50%; background: var(--accent); }
.bandeau__main { width: fit-content; margin: 0 auto .1em; rotate: -4deg; color: var(--accent); font: 400 clamp(2.25rem, 1.2rem + 3.2vw, 4rem)/1 var(--police-main); -webkit-text-stroke: .018em currentColor; }
.bandeau--page .bandeau__chapeau { margin-inline: auto; }
.bandeau--page .bandeau__maj, .bandeau--page .bandeau__meta, .bandeau--page .bandeau__chapeau, .bandeau--page .bandeau__actions { margin-top: 1.75rem; }
.bandeau--page .bandeau__meta { justify-content: center; }
.bandeau--page .bandeau__visuel { width: min(100%, 40rem); margin: 2.5rem auto 0; }
/* retour vers la rubrique : capitales espacées comme le menu, la flèche recule au survol */
.bandeau__retour { display: flex; align-items: center; gap: .75rem; width: fit-content; min-height: 2.75rem; margin: 0 auto 1.25rem; font-size: .875rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; }
.bandeau__retour svg { width: 1.7rem; height: .8rem; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: translate .2s; }
.bandeau__retour:hover svg, .bandeau__retour:focus-visible svg { translate: -4px 0; }

/* « affiche » : le corps est calé sur la plus longue ligne (--n caractères) pour qu'elle tienne dans l'écran */
.bandeau--page.bandeau--affiche h1 { max-width: none; margin-inline: calc(50% - 50vw); font-size: min(calc(70vw / (var(--n) * .68)), 17vh, 10.625rem); line-height: 1; }
.affiche__rang { display: flex; justify-content: center; white-space: nowrap; }
.affiche__piste { display: flex; gap: .28em; }
.affiche__piste > span[data-t] { color: var(--bleu); -webkit-text-stroke: 3px #627fb0; paint-order: stroke fill; }
.affiche__piste > span[data-t]::before { content: attr(data-t); content: attr(data-t) / ""; }
@media (max-width: 60rem) {
  .bandeau--page { padding-block: 6.5rem 3rem; }
  .bandeau--page.bandeau--affiche h1 { font-size: min(calc(88vw / (var(--n) * .68)), 17vh); }
  .affiche__piste > span[data-t] { -webkit-text-stroke-width: 2px; }
}
/* entrée : les lignes arrivent par les côtés, la phrase s'écrit. Tout est fini en moins de 2 s (WCAG 2.2.2). */
@media (prefers-reduced-motion: no-preference) {
  .affiche__piste { animation: affiche-glisse 1.1s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * .07s) both; }
  .bandeau--long h1 { animation: affiche-claque .45s cubic-bezier(.2, 1.3, .4, 1) both; }
  .bandeau__main { animation: affiche-ecrit .6s cubic-bezier(.5, 0, .3, 1) .55s backwards; }
}
@keyframes affiche-glisse { from { transform: translateX(calc(var(--sens) * 55vw)); } to { transform: none; } }
@keyframes affiche-claque { from { opacity: 0; translate: 0 1.5rem; } to { opacity: 1; translate: 0 0; } }
@keyframes affiche-ecrit { from { clip-path: inset(-40% 100% -40% -10%); } to { clip-path: inset(-40% -10% -40% -10%); } }

/* fil d'Ariane : à la fin du contenu, sur le fond clair, juste au-dessus de la zone bleu nuit */
.fil-bas { padding: 0 var(--marge); font-size: .875rem; }
.fil-bas .dedans { padding-block: .9rem; border-top: 1px solid #061a3a26; }
.fil-bas .fil { margin: 0; }
@media (max-width: 60rem) {
  .fil-bas .fil { justify-content: center; text-align: center; }
  .fil-bas .fil li:nth-child(3):last-child, .fil-bas .fil li.fil__long { display: none; } /* un titre long est de trop sur un petit écran */
}

.bandeau__maj { margin-top: 1.25rem; font-size: 0.9375rem; font-weight: 500; opacity: 0.85; }

/* ---------- Mise en page : sommaire + texte ---------- */
.page-contenu { padding: clamp(2.5rem, 6vw, 5rem) var(--marge) clamp(4rem, 9vw, 7rem); display: grid; gap: clamp(2rem, 4vw, 3rem); align-content: start; }
@media (min-width: 60rem) { .page-contenu { grid-template-columns: 14rem minmax(0, 44rem); justify-content: center; gap: clamp(3rem, 6vw, 6rem); } }
@media (min-width: 60rem) { .page-contenu--seul { grid-template-columns: minmax(0, 44rem); } } /* sans sommaire : le texte reste centré */
.sommaire { align-self: start; padding-top: 0.25rem; border-top: 2px solid var(--encre); }
@media (min-width: 60rem) { .sommaire { position: sticky; top: 2rem; } }
.sommaire .lib { display: block; padding: 0.9rem 0 0.4rem; }
.sommaire ol { counter-reset: s; display: grid; }
.sommaire li { counter-increment: s; }
.sommaire a { display: grid; grid-template-columns: 1.6rem 1fr; padding: 0.45rem 0; font-size: 0.9375rem; font-weight: 500; line-height: 1.35; text-decoration: none; }
.sommaire a::before { content: counter(s, decimal-leading-zero); color: var(--gris); font-weight: 600; font-size: 0.8125rem; padding-top: 0.12em; }
.sommaire a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

/* ---------- Texte long : tout ce que l'éditeur peut produire ---------- */
.lecture { font-size: 1.125rem; line-height: 1.65; max-width: 44rem; }
.lecture > * + * { margin-top: 1.1em; }
.lecture h2 { margin-top: 1.82em; font-size: clamp(1.65rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; scroll-margin-top: 6rem; text-wrap: balance; }
.lecture h2:first-child { margin-top: 0; }
.lecture h3 { margin-top: 1.9em; font-size: 1.3rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }
.lecture h2 + *, .lecture h3 + * { margin-top: 0.7em; }
.lecture a { color: var(--bleu); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; font-weight: 500; }
.lecture a:hover { text-decoration-thickness: 3px; }
.lecture a.btn { color: var(--papier); text-decoration: none; } /* un bouton dans le texte garde son style de bouton */
.lecture strong, .lecture b { font-weight: 700; }
.lecture ul, .lecture ol { display: grid; gap: 0.45em; padding-left: 0; }
.lecture ul li { position: relative; padding-left: 1.5rem; }
.lecture ul li::before { content: ""; position: absolute; left: 0.2rem; top: 0.68em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--bleu); }
.lecture ol { counter-reset: n; }
.lecture ol li { counter-increment: n; position: relative; padding-left: 2.1rem; }
.lecture ol li::before { content: counter(n) "."; position: absolute; left: 0; font-weight: 700; color: var(--bleu); }
.lecture blockquote { margin-inline: 0; padding: 0.2rem 0 0.2rem 1.25rem; border-left: 4px solid var(--accent); font-weight: 500; }
.lecture hr { border: 0; border-top: 2px solid var(--encre); margin-block: 2.5em; }
.lecture code { font-size: 0.875em; }
.lecture figure { margin-inline: 0; }
.lecture img { max-width: 100%; height: auto; border-radius: var(--rayon-m); }
.lecture figcaption { margin-top: 0.5rem; color: var(--gris); font-size: 0.9375rem; }
.lecture .note { padding: 1rem 1.25rem; background: var(--papier-2); border-radius: var(--rayon-s); border-left: 4px solid var(--bleu); font-size: 1rem; }
.lecture table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.lecture caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; }
.lecture th, .lecture td { padding: 0.7rem 0.9rem 0.7rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--filet); }
.lecture th { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); border-bottom: 2px solid var(--encre); }
.lecture .wp-block-table, .lecture .tableau { overflow-x: auto; }

/* Fiche d'identité (éditeur, hébergeur) : libellé à gauche, valeur à droite */
.lecture dl.fiche { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 0; border-top: 2px solid var(--encre); }
.lecture dl.fiche dt, .lecture dl.fiche dd { padding: 0.75rem 0; border-bottom: 1px solid var(--filet); margin: 0; }
.lecture dl.fiche dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); padding-top: 1rem; }
@media (max-width: 36rem) { .lecture dl.fiche { grid-template-columns: 1fr; } .lecture dl.fiche dt { border-bottom: 0; padding-bottom: 0; } }

/* ---------- Fin de page : un mot, un bouton, le pied de page ---------- */
.cloture { padding: clamp(3.5rem, 8vw, 6rem) var(--marge) 2rem; }
.cloture .dedans > p:first-child { font-size: clamp(2rem, 1rem + 3vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; max-width: 18ch; text-wrap: balance; }
.cloture .actions { justify-content: flex-start; margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* Étiquette de type et chapeau dans le bandeau (formations, articles) */
.bandeau__type { display: inline-block; margin-bottom: 1rem; padding: 0.2rem 0.7rem; border-radius: 8px; background: var(--accent); color: var(--encre); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.bandeau__chapeau { margin-top: 1.25rem; max-width: 40rem; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); font-weight: 500; opacity: 0.92; }

/* ---------- Page de détail : texte + fiche latérale « en pratique », puis « à découvrir aussi » (formations, réalisations) ---------- */
.page-detail { padding: clamp(2.5rem, 6vw, 5rem) var(--marge) clamp(4rem, 9vw, 7rem); display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 60rem) { .page-detail { grid-template-columns: minmax(0, 44rem) 22rem; justify-content: center; gap: clamp(3rem, 6vw, 6rem); } .pratique { order: 2; position: sticky; top: 2rem; } }

.pratique { padding: clamp(1.25rem, 2.5vw, 1.75rem); background: #fff; border: 1px solid #061a3a14; border-radius: var(--rayon-l); box-shadow: 0 24px 48px -28px #061a3a33; }
.pratique h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 0.5rem; }
.pratique dl { display: grid; }
.pratique dt { padding-top: 0.9rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }
.pratique dd { margin: 0.15rem 0 0; padding-bottom: 0.9rem; border-bottom: 1px solid var(--filet); font-weight: 600; font-size: 1.0625rem; }
.pratique dd:last-of-type { border-bottom: 0; }
.pratique ul { display: grid; gap: 0.2rem; }
.pratique .prix { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--bleu); }
.pratique .prix .a-completer { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.pratique .prix small { font-size: 0.875rem; font-weight: 600; letter-spacing: 0; color: var(--encre); }
.pratique .btn { width: 100%; justify-content: center; margin-top: 0.75rem; }
.pratique__note { margin-top: 0.9rem; color: var(--gris); font-size: 0.9375rem; text-align: center; }

.suite { padding: 0 var(--marge) clamp(3.5rem, 8vw, 6rem); }
.suite h2 { font-size: clamp(1.8rem, 1rem + 2vw, 2.8rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin-bottom: 1.25rem; }

/* ---- navigation ---- */
/* Menu et pied de page communs à toutes les pages. Le menu est en haut de page et défile avec elle : rien ne reste fixé.
   Chargés partout (doogether.css). */
/* Une seule source pour tout le site : la marge latérale du menu, de l'accueil et du pied de page, et la hauteur du menu. */
:root { --marge-site: 5vw; --menu-haut: 102px; }
@media (min-width: 60.01rem) and (max-height: 50rem) { :root { --menu-haut: 78px; } }
@media (max-width: 60rem) { :root { --marge-site: 1.25rem; --menu-haut: 5rem; } }
.ac-menu, .pied { --ivoire: #f4efe4; --menthe: var(--accent); }
.ac-menu { -webkit-font-smoothing: auto; font-size: 1.1875rem; line-height: 1.5; font-variant-numeric: normal; }
.ac-menu a:focus-visible, .pied a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.pied p { margin: 0; }
/* pied sans bloc de fin au-dessus (fiche formation) : même largeur qu'ailleurs */
.pied-seul { padding: clamp(2rem, 4vw, 3rem) var(--marge-site) 0; }
.pied-seul .pied { margin-top: 0; }

.ac-pt { display: inline-block; width: .19em; height: .19em; margin-left: .04em; border-radius: 50%; background: var(--menthe); }
.ac-menu { position: absolute; z-index: 30; top: 0; left: 0; right: 0; height: var(--menu-haut); display: flex; align-items: center; gap: 2.75rem; padding: 0 var(--marge-site); color: var(--ivoire); }
.ac-menu a { color: inherit; text-decoration: none; }
.ac-menu__logo { margin-right: auto; font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.ac-menu__liens { display: flex; gap: 2.5rem; font-size: .875rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.ac-menu__liens a { position: relative; padding: .9rem 0; }
.ac-menu__liens a::after { content: ""; position: absolute; left: 50%; bottom: .1rem; width: .5rem; height: .5rem; margin-left: -.25rem; border-radius: 50%; background: var(--menthe); scale: 0; transition: scale .22s var(--rebond); }
.ac-menu__liens a:hover::after, .ac-menu__liens a:focus-visible::after { scale: 1; }
.ac-ecrire.ac-ecrire { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: .85rem; padding: .85rem 1.2rem; color: var(--encre); font-size: .875rem; font-weight: 900; letter-spacing: .05em; line-height: 1; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.ac-ecrire__fond, .ac-ecrire__echo { position: absolute; inset: 0; border-radius: 5px; transition: transform .2s var(--ease), background-color .2s; }
.ac-ecrire__fond { z-index: -1; background: var(--menthe); }
.ac-ecrire__echo { z-index: -2; border: 1.5px solid var(--menthe); transform: translate(-.3rem, .3rem); }
.ac-ecrire svg { width: 1.7rem; height: .8rem; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.ac-ecrire:hover .ac-ecrire__fond, .ac-ecrire:focus-visible .ac-ecrire__fond { background: var(--ivoire); }
.ac-ecrire:hover .ac-ecrire__echo, .ac-ecrire:focus-visible .ac-ecrire__echo { transform: none; border-color: var(--ivoire); }
.ac-ecrire:hover svg, .ac-ecrire:focus-visible svg { transform: translateX(4px); }
.ac-menu.ac-menu .ac-ecrire:focus-visible { outline-color: var(--ivoire); }
.pied { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 1.75rem; padding: 1.75rem 0; font-size: .875rem; opacity: 1; }
.pied > p { grid-area: 1 / 1; justify-self: start; }
.pied .ac-menu__logo { grid-area: 1 / 2; margin: 0; color: var(--ivoire); line-height: 1; text-decoration: none; }
.pied nav { grid-area: 1 / 3; justify-self: end; }
.pied nav p { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 2.5rem; }
.pied__sep { display: none; }
.pied.pied nav a { position: relative; padding: .9rem 0; background: none; color: var(--ivoire); font-weight: 800; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; }
.pied nav a::after { content: ""; position: absolute; left: 50%; bottom: .1rem; width: .5rem; height: .5rem; margin-left: -.25rem; border-radius: 50%; background: var(--menthe); scale: 0; transition: scale .22s var(--rebond); }
.pied nav a:hover::after, .pied nav a:focus-visible::after { scale: 1; }
@media (max-width: 75rem) { .pied { column-gap: 1rem; } .pied nav p { column-gap: 1rem; } .pied.pied nav a { font-size: .75rem; letter-spacing: .03em; } }
@media (max-width: 60rem) {
  .ac-menu { gap: 1rem; }
  .ac-menu__liens { display: none; }
  .pied { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1rem 0 1.25rem; font-size: .8125rem; text-align: center; }
  .pied nav p { justify-content: center; column-gap: 1.125rem; }
  .pied.pied nav a { font-size: .75rem; letter-spacing: .03em; }
}
@media (max-width: 60rem) {
  @media (max-width: 22rem) {
    .ac-menu { gap: .5rem; }
    .ac-menu.ac-menu .ac-menu__logo { font-size: 1.35rem; }
    .ac-menu.ac-menu .ac-ecrire { padding: .7rem .65rem; gap: .4rem; font-size: .75rem; }
    .ac-menu.ac-menu .ac-ecrire svg { width: 1.2rem; }
}
}

/* ordinateur étroit : on resserre pour que les liens tiennent sur la ligne */
@media (max-width: 64rem) and (min-width: 60.01rem) { .ac-menu, .ac-menu__liens { gap: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { .ac-menu *, .ac-menu *::after, .pied *, .pied *::after { transition: none !important; } }

/* ---------- petits écrans : bouton « Menu » (défile avec la page) et panneau plein écran ---------- */
.ac-menu__bouton { display: none; }
.ac-panneau { --ivoire: #f4efe4; --menthe: var(--accent); }
@media (max-width: 60rem) {
  .ac-menu-pret .ac-menu__bouton { display: inline-flex; flex: none; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 .75rem; border: 2px solid var(--ivoire); border-radius: 6px; background: transparent; color: var(--ivoire); font: 900 .75rem/1 var(--police); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
  .ac-menu__bouton i { width: .9rem; height: .65rem; background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; }
  /* à trois dans la barre : « Nous écrire » se resserre, sans sa flèche */
  .ac-menu-pret .ac-menu.ac-menu { gap: .75rem; }
  .ac-menu-pret .ac-menu .ac-menu__logo { font-size: 1.35rem; }
  .ac-menu-pret .ac-menu .ac-ecrire { padding: .8rem .75rem; font-size: .75rem; }
  .ac-menu-pret .ac-menu .ac-ecrire svg { display: none; }
}
/* très petits écrans : « Nous écrire » n'est plus que dans le panneau */
@media (max-width: 22.5rem) { .ac-menu-pret .ac-menu .ac-ecrire { display: none; } }

.ac-panneau { width: 100%; max-width: 100%; height: 100%; height: 100dvh; max-height: 100%; margin: 0; padding: 0 1.25rem 2rem; border: 0; overflow: auto; background: var(--encre); color: var(--ivoire); }
.ac-panneau[open] { display: flex; flex-direction: column; gap: 1.5rem; }
html:has(.ac-panneau[open]) { overflow: hidden; }
.ac-panneau__haut { display: flex; flex: none; align-items: center; justify-content: space-between; min-height: 5rem; }
.ac-panneau__logo { font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; }
.ac-panneau__fermer { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 .75rem; border: 2px solid var(--ivoire); border-radius: 6px; background: transparent; color: inherit; font: 900 .75rem/1 var(--police); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.ac-panneau__liens { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ac-panneau__liens a { display: block; padding: .5rem 0; color: inherit; font-size: min(8.4vw, 7.5vh); white-space: nowrap; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; text-decoration: none; }
.ac-panneau__liens a:active { color: var(--menthe); }
.ac-panneau .ac-ecrire.ac-panneau__ecrire { align-self: center; flex: none; padding: 1.1rem 1.75rem; }
.ac-panneau .ac-ecrire__echo { background: var(--encre); }
.ac-panneau :focus-visible { outline: 3px solid var(--menthe); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) { .ac-panneau[open] { animation: ac-panneau-ouvre .2s ease-out; } }
@keyframes ac-panneau-ouvre { from { opacity: 0; } }

