/* VOIE POUR TOUS · feuille de style du site
   Identité « Le Point » · Atkinson Hyperlegible Next · couleurs de la charte */

@font-face { font-family: "Atkinson Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --basalte: #131313; --blanc: #FFFFFF; --gris: #595959; --brume: #EEEDE9;
  --jaune: #FFC51A; --bleu: #2B63D9; --orange: #F0641E; --vert: #18A058;
  --encre-jaune: #7A5800; --encre-orange: #B3420D; --encre-vert: #0B7A3E;
  --ink: var(--basalte); --surface: var(--blanc); --muted: var(--gris); --line: #D6D4CE;
  --focus: var(--bleu);
  --wrap: 75rem; --gutter: clamp(1.25rem, 4vw, 3rem);
  --r: 0; /* angles droits : le point est la seule forme ronde */
  --glisse: cubic-bezier(.2, 0, 0, 1);
  --t1: 200ms; --t2: 400ms; --t3: 800ms;
  --fs-body: 1.125rem;
  font-family: "Atkinson Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 100%;
  color: var(--ink); background: var(--surface);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; font-size: var(--fs-body); line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.section-noire :focus-visible, .pied :focus-visible { outline-color: var(--jaune); }
::selection { background: var(--jaune); color: var(--basalte); }
main:focus { outline: none; }

.saut { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--basalte); color: var(--blanc); padding: .75rem 1rem; font-weight: 700; transition: top var(--t1) var(--glisse); }
.saut:focus { top: 1rem; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type : interlettrage par taille ---------- */
h1, h2, h3 { font-weight: 800; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3.25rem); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.005em; }
p { margin: 0; text-wrap: pretty; }
.surtitre { font-size: .9375rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .625rem; }
.chapo { font-size: clamp(1.1875rem, 1rem + .6vw, 1.4375rem); line-height: 1.5; max-width: 40em; margin-top: 1.5rem; }
.intro { font-size: 1.1875rem; max-width: 36em; margin-top: 1rem; color: #2E2E2E; }
.section-noire .intro { color: #D9D9D9; }
.accroche { font-size: 1.5rem; font-weight: 700; margin-top: .75rem; letter-spacing: -.01em; }

/* ---------- en-tête : matière translucide ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); transition: box-shadow var(--t1) var(--glisse); }
.entete.defile { box-shadow: 0 1px 0 rgba(19,19,19,.10), 0 8px 24px -16px rgba(19,19,19,.35); }
.entete-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.marque { display: block; padding: .5rem 0; }
.logo-h { height: 1.5rem; width: auto; }
.nav-liste { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav-liste a:not(.btn) { display: block; padding: .625rem .875rem; text-decoration: none; font-weight: 700; font-size: 1rem; position: relative; }
.nav-liste a:not(.btn)::after { content: ""; position: absolute; left: .875rem; right: .875rem; bottom: .375rem; height: 2px; background: currentColor; clip-path: inset(0 100% 0 0); transition: clip-path var(--t1) var(--glisse); }
.nav-liste a:not(.btn):hover::after, .nav-liste a[aria-current="page"]::after { clip-path: inset(0 0 0 0); }
.nav-liste a[aria-current="page"]::after { background: var(--bleu); height: 3px; }
.nav-cta { margin-left: .75rem; }
.nav-bouton { display: none; }

/* ---------- boutons : appui immédiat ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .75rem 1.375rem; font: inherit; font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; border-radius: var(--r); cursor: pointer; transition: transform 100ms ease-out, background-color var(--t1) var(--glisse), color var(--t1) var(--glisse), border-color var(--t1) var(--glisse); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-noir { background: var(--basalte); color: var(--blanc); }
.btn-noir:hover { background: #333; }
.btn-jaune { background: var(--jaune); color: var(--basalte); }
.btn-jaune:hover { background: #FFD24D; }
.btn-contour { border-color: var(--basalte); color: var(--basalte); background: transparent; }
.btn-contour:hover { background: var(--basalte); color: var(--blanc); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.lien-fleche { display: inline-flex; gap: .25rem; margin-top: 1.25rem; font-weight: 700; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size var(--t1) var(--glisse); padding-bottom: 2px; }
.lien-fleche:hover { background-size: 100% 2px; }
.lien-fleche span { transition: transform var(--t1) var(--glisse); }
.lien-fleche:hover span { transform: translateX(4px); }
.lien-clair { color: var(--blanc); }

/* ---------- puce d'axe ---------- */
.puces { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.puce { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.puce-pt { width: .875rem; height: .875rem; border-radius: 50%; background: var(--axe, var(--bleu)); flex: none; }

/* ---------- héros ---------- */
.hero { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5.5rem); }
.hero-grille { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; min-height: min(68vh, 44rem); }
.hero-page { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero-page h1 { max-width: 18em; font-size: clamp(2.125rem, 1.4rem + 3vw, 4rem); }
.hero-logo { display: flex; justify-content: center; }
.logo-anime { width: 100%; max-width: 26rem; height: auto; }
.logo-anime .pt { fill: var(--basalte); }
.logo-anime .pt-v { fill: var(--bleu); }
.logo-anime .mot { fill: var(--basalte); }

/* entrée unique : les points dans l'ordre braille, puis le mot (80 ms d'écart) */
.js .logo-anime .pt, .js .logo-anime .mot { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; }
.js .logo-anime .mot { transform: translateY(12px); }
.js.pret .logo-anime .pt, .js.pret .logo-anime .mot { opacity: 1; transform: none; transition: opacity var(--t2) var(--glisse), transform var(--t2) var(--glisse); transition-delay: calc(var(--i) * 80ms + 150ms); }
.js [data-enter] > * { opacity: 0; transform: translateY(16px); }
.js.pret [data-enter] > * { opacity: 1; transform: none; transition: opacity var(--t3) var(--glisse), transform var(--t3) var(--glisse); }
.js.pret [data-enter] > *:nth-child(2) { transition-delay: 80ms; }
.js.pret [data-enter] > *:nth-child(3) { transition-delay: 160ms; }
.js.pret [data-enter] > *:nth-child(4) { transition-delay: 240ms; }
.js.pret [data-enter] > *:nth-child(n+5) { transition-delay: 320ms; }

/* ---------- trame braille ---------- */
.bande-trame { background: var(--fond); overflow: hidden; }
.bande-trame svg { width: 100%; height: 100%; }

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section-noire { background: var(--basalte); color: var(--blanc); }
.section-brume { background: var(--brume); }
.tete-section { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.duo-form { align-items: start; grid-template-columns: 1fr 1.4fr; }

/* ---------- cartes ---------- */
.carte { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 1.75rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: .75rem; transition: transform var(--t1) var(--glisse), box-shadow var(--t1) var(--glisse), border-color var(--t1) var(--glisse); }
.carte .picto { width: 4rem; height: 4rem; margin-bottom: .5rem; }
.carte p { color: #2E2E2E; font-size: 1.0625rem; }
.carte-axe { border-top: 6px solid var(--axe); }
.carte-axe .lien-fleche { margin-top: auto; padding-top: .75rem; }
.carte-axe:hover, .carte-lien:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(19,19,19,.45); border-color: #BDBAB2; }
.carte-lien h3 a { text-decoration: none; }
.carte-lien h3 a::after { content: ""; position: absolute; inset: 0; }
.carte-lien h3 a:hover { text-decoration: underline; }
.carte-sombre { background: #1F1F1F; border-color: #333; }
.carte-sombre p { color: #D9D9D9; }
.carte-sombre h3::before { content: ""; display: block; width: .875rem; height: .875rem; border-radius: 50%; background: var(--jaune); margin-bottom: 1.25rem; }

.liste-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.liste-points li { padding-left: 1.75rem; position: relative; }
.liste-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: .625rem; height: .625rem; border-radius: 50%; background: var(--bleu); }
.section-noire .liste-points li::before { background: var(--jaune); }

.symbole-grand { display: flex; justify-content: center; }
.symbole { width: 100%; max-width: 24rem; height: auto; }

.citation-statuts { border-left: 4px solid var(--basalte); padding-left: clamp(1.25rem, 3vw, 2.5rem); display: grid; gap: 1.25rem; font-size: 1.1875rem; }
.liste-axes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.liste-axes li { padding-left: 1.75rem; position: relative; }
.liste-axes li::before { content: ""; position: absolute; left: 0; top: .5em; width: .875rem; height: .875rem; border-radius: 50%; background: var(--axe); }

.contact-bande { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-bande .intro { margin-inline: auto; }
.contact-bande .btn { margin-top: 2rem; }
.mail-grand { font-size: clamp(1.5rem, 1rem + 2.4vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; margin-top: 1.75rem; overflow-wrap: anywhere; }
.mail-grand a { text-decoration-thickness: .06em; }

/* ---------- page actions ---------- */
.ancres ul { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: .625rem; }
.ancres a { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1rem; border: 2px solid var(--basalte); text-decoration: none; font-weight: 700; transition: background-color var(--t1) var(--glisse), color var(--t1) var(--glisse), transform 100ms ease-out; }
.ancres a:hover { background: var(--basalte); color: var(--blanc); }
.ancres a:active { transform: scale(.97); }
.axe-visuel { display: flex; justify-content: center; }
.axe-visuel .picto { width: min(100%, 15rem); height: auto; }
.section-axe .btn { margin-top: 2rem; }
.surtitre-axe { color: var(--ink); }
.section-axe:nth-of-type(even) .duo > :first-child { order: 2; }

/* ---------- formulaire ---------- */
.info-contact { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; font-weight: 700; }
.info-contact .picto { width: 2.5rem; height: 2.5rem; }
.formulaire { display: grid; gap: 1.375rem; }
.champ { display: grid; gap: .5rem; }
.champ-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.375rem; }
.champ label { font-weight: 700; }
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"], .champ select, .champ textarea { font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--blanc); border: 2px solid #767676; border-radius: var(--r); padding: .75rem .875rem; min-height: 3rem; width: 100%; transition: border-color var(--t1) var(--glisse), box-shadow var(--t1) var(--glisse); }
.champ select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - .875rem) 55%; background-size: .375rem .375rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.champ textarea { resize: vertical; min-height: 10rem; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(43,99,217,.3); }
.champ [aria-invalid="true"] { border-color: #B3261E; }
.erreur { color: #B3261E; font-weight: 700; font-size: 1rem; }
.champ-case { grid-template-columns: auto 1fr; align-items: start; column-gap: .875rem; }
.champ-case input { width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; accent-color: var(--basalte); }
.champ-case label { font-weight: 400; }
.champ-case .erreur { grid-column: 1 / -1; }
.pot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .btn { justify-self: start; }
.statut { font-weight: 700; }
.statut.ok { color: var(--encre-vert); }
.statut.ko { color: #B3261E; }

.texte-long { max-width: 46rem; }
.texte-long h2 { font-size: 1.75rem; margin: 2.75rem 0 .875rem; }
.texte-long h2:first-child { margin-top: 0; }
.texte-long p + p { margin-top: 1rem; }
.section-texte { padding-top: 2rem; }

/* ---------- pied ---------- */
.pied { background: var(--basalte); color: var(--blanc); padding-block: 4.5rem 2rem; }
.pied-grille { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.logo-f { height: 7rem; width: auto; }
.pied-titre { font-weight: 700; max-width: 20em; margin-bottom: 1rem; }
.pied-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pied-liens a { text-decoration: none; color: #D9D9D9; }
.pied-liens a:hover { color: var(--blanc); text-decoration: underline; }
.pied-bas { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid #333; color: #BDBDBD; font-size: 1rem; }


/* ---------- v2 : annonce, coordonnées, formulaires, actions ---------- */
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.annonce { background: var(--jaune); color: var(--basalte); font-weight: 700; font-size: 1rem; }
.annonce p { padding-block: .625rem; text-align: center; }
.annonce a { color: inherit; }
blockquote { margin: 0; }
.duo-haut { align-items: start; }
.tete-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.tete-ligne .lien-fleche { margin-top: 0; }
.tel-grand { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); font-weight: 700; margin-top: .5rem; }
.tel-grand a { text-decoration: none; }
.pied-coord p + p { margin-top: .375rem; }
.pied-adresse { color: #D9D9D9; margin-top: .75rem !important; }
.pied-reseaux { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.pied-reseaux a { color: var(--blanc); font-weight: 700; }
.texte-axe { margin-top: 1rem; max-width: 36em; }
.texte-axe p + p { margin-top: .75rem; }
.meta { color: var(--muted); font-size: 1rem; margin-top: .75rem; }

.carte-action { padding: 0; overflow: hidden; border-top: 6px solid var(--axe, var(--basalte)); }
.carte-action:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(19,19,19,.45); }
.carte-image { aspect-ratio: 3 / 2; overflow: hidden; background: var(--brume); }
.carte-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t2) var(--glisse); }
.carte-action:hover .carte-image img { transform: scale(1.03); }
.carte-action-txt { padding: 1.5rem; display: grid; gap: .5rem; }
.carte-action h3 a { text-decoration: none; }
.carte-action h3 a::after { content: ""; position: absolute; inset: 0; }
.carte-action h3 a:hover { text-decoration: underline; }
.carte-action .meta { margin-top: 0; }
.meta-action { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1.25rem; font-weight: 700; }
.meta-action span { display: inline-flex; align-items: center; gap: .5rem; }
.meta-action .picto { width: 1.75rem; height: 1.75rem; }
.action-image { margin: 0 0 2.5rem; }
.action-image img { width: 100%; height: auto; }
.retour { margin-top: 3rem; }
.hero-page .surtitre a { color: inherit; }
.hero-page .surtitre .puce-pt { display: inline-block; }

.form-cote .intro { margin-top: .75rem; }
.note { margin-top: 1.25rem; padding: 1rem 1.25rem; background: var(--brume); border-left: 4px solid var(--bleu); }
.coord-liste { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.coord-liste li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: start; }
.coord-liste .picto { width: 2.75rem; height: 2.75rem; }
.coord-titre { font-weight: 700; font-size: .9375rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.coord-liste a { overflow-wrap: anywhere; }
.champ-cases { border: 0; padding: 0; margin: 0; min-width: 0; }
.champ-cases legend { font-weight: 700; padding: 0; margin-bottom: .5rem; }
.cases { display: flex; flex-wrap: wrap; gap: .625rem; }
.case { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1rem; border: 2px solid #767676; cursor: pointer; font-weight: 700; transition: border-color var(--t1) var(--glisse), background-color var(--t1) var(--glisse); }
.case input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--basalte); }
.case:has(input:checked) { border-color: var(--basalte); background: var(--brume); }
.case:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.champ-cases[aria-invalid="true"] .case { border-color: #B3261E; }
.mention-donnees { font-size: 1rem; color: var(--muted); }
.formulaire-ferme { padding: 2rem; background: var(--brume); font-size: 1.1875rem; }
.statut:empty { display: none; }
.statut.ok, .statut.ko { padding: 1rem 1.25rem; }
.statut.ok { background: #E7F4EC; }
.statut.ko { background: #FBEAEA; }

/* ---------- tablettes ---------- */
@media (max-width: 64rem) {
  .grille-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grille { grid-template-columns: 1fr 1fr; min-height: 0; }
}
/* ---------- mobiles ---------- */
@media (max-width: 52rem) {
  .nav-bouton { display: inline-flex; align-items: center; gap: .625rem; min-height: 2.75rem; padding: .5rem .875rem; font: inherit; font-weight: 700; background: none; border: 2px solid var(--basalte); color: var(--ink); cursor: pointer; transition: transform 100ms ease-out; }
  .nav-bouton:active { transform: scale(.97); }
  .nav-bouton-ico { width: 1rem; height: 10px; position: relative; border-block: 2px solid currentColor; transition: border-color var(--t1); }
  .nav-bouton[aria-expanded="true"] .nav-bouton-ico { border-color: transparent; }
  .nav-bouton-ico::before, .nav-bouton-ico::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform var(--t1) var(--glisse); }
  .nav-bouton[aria-expanded="true"] .nav-bouton-ico::before { transform: rotate(45deg); }
  .nav-bouton[aria-expanded="true"] .nav-bouton-ico::after { transform: rotate(-45deg); }
  .nav-liste { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: var(--blanc); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(19,19,19,.35); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path var(--t2) var(--glisse), visibility 0s linear var(--t2); }
  .nav.ouverte .nav-liste { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--t2) var(--glisse), visibility 0s; }
  .nav-liste a:not(.btn) { padding: 1rem 0; font-size: 1.25rem; border-bottom: 1px solid var(--line); }
  .nav-liste a:not(.btn)::after { left: 0; right: auto; width: 2.5rem; bottom: -1px; }
  .nav-cta { margin: 1.25rem 0 0; }
  .nav-cta .btn { width: 100%; }
  .hero-grille, .duo, .duo-form, .grille-3 { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .symbole-grand { justify-content: flex-start; }
  .symbole { max-width: 14rem; }
  .axe-visuel { justify-content: flex-start; }
  .axe-visuel .picto { width: 7.5rem; }
  .section-axe:nth-of-type(even) .duo > :first-child { order: 0; }
  .pied-grille { grid-template-columns: 1fr; }
  .logo-f { height: 5.5rem; }
}
@media (max-width: 36rem) {
  .grille-4, .champ-duo { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .formulaire .btn { justify-self: stretch; }
}

/* ---------- préférences du système ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; animation: none !important; }
  .js .logo-anime .pt, .js .logo-anime .mot, .js [data-enter] > * { opacity: 1; transform: none; }
  .carte-axe:hover, .carte-lien:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .entete { background: var(--blanc); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .entete { background: var(--blanc); border-bottom: 2px solid var(--basalte); }
  .carte { border-color: var(--basalte); }
  .intro, .carte p { color: var(--ink); }
}
@media (forced-colors: active) {
  .puce-pt, .liste-points li::before, .liste-axes li::before { forced-color-adjust: none; border: 1px solid CanvasText; }
  .btn { border-color: ButtonText; }
}
@media print {
  .entete, .pied, .bande-trame, .nav, .saut { display: none !important; }
  .section-noire { background: none; color: #000; }
}

/* ---------- médiathèque ---------- */
.grille-media { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grille-media-4 { grid-template-columns: repeat(4, 1fr); }
.media { display: flex; flex-direction: column; gap: .875rem; }
.media[hidden] { display: none; }
.media-cadre { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--basalte); border-top: 6px solid var(--axe, var(--basalte)); }
.media-cadre img, .media-cadre video, .media-cadre iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; transition: transform var(--t2) var(--glisse); }
.media-cadre video { object-fit: contain; background: #000; }
a.media-cadre:hover img, .yt-facade:hover img { transform: scale(1.03); }
.media-txt { display: grid; gap: .375rem; }
.media-txt h3 { font-size: 1.1875rem; }
.media-txt p { font-size: 1rem; color: #2E2E2E; }
.media-txt .meta { margin: 0; }
.yt-facade { position: absolute; inset: 0; display: block; }
.yt-lecture { position: absolute; left: 50%; top: 50%; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; border-radius: 50%; background: var(--jaune); display: grid; place-items: center; transition: transform var(--t1) var(--glisse); box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.yt-facade:hover .yt-lecture { transform: scale(1.08); }
.yt-facade:active .yt-lecture { transform: scale(.97); }
.yt-triangle { width: 0; height: 0; border-style: solid; border-width: .75rem 0 .75rem 1.25rem; border-color: transparent transparent transparent var(--basalte); margin-left: .25rem; }
.sans-vignette { background: var(--basalte) radial-gradient(circle at 30% 30%, #2a2a2a 0 2px, transparent 3px) 0 0 / 24px 24px; }
.media-reseau { display: grid; place-items: center; text-decoration: none; color: var(--blanc); background: var(--basalte); }
.media-reseau img { position: absolute; inset: 0; }
.reseau-marque { font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; }
.reseau-bouton { position: absolute; left: 1rem; bottom: 1rem; background: var(--blanc); color: var(--basalte); font-weight: 700; padding: .5rem .875rem; font-size: 1rem; }
.media-reseau:hover .reseau-bouton { background: var(--jaune); }
.filtres-media { display: flex; flex-wrap: wrap; gap: .625rem; margin-bottom: 2rem; }
.filtres-media button { font: inherit; font-weight: 700; padding: .625rem 1.125rem; min-height: 2.75rem; border: 2px solid var(--basalte); background: var(--blanc); color: var(--basalte); cursor: pointer; transition: transform 100ms ease-out, background-color var(--t1); }
.filtres-media button:active { transform: scale(.97); }
.filtres-media button[aria-pressed="true"] { background: var(--basalte); color: var(--blanc); }
.section-media { padding-top: 1rem; }
.visionneuse { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.visionneuse::backdrop { background: rgba(19,19,19,.88); }
.visionneuse img { max-width: 94vw; max-height: 84vh; width: auto; height: auto; }
.visionneuse-fermer { display: block; margin: 0 0 .75rem auto; font: inherit; font-weight: 700; background: var(--blanc); color: var(--basalte); border: 0; padding: .5rem 1rem; min-height: 2.75rem; cursor: pointer; }
@media (max-width: 64rem) { .grille-media, .grille-media-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 36rem) { .grille-media, .grille-media-4 { grid-template-columns: 1fr; } }

/* ---------- page de maintenance ---------- */
.page-maintenance { min-height: 100vh; display: flex; flex-direction: column; }
.maintenance { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.maintenance-in { padding-block: clamp(3rem, 10vw, 8rem); }
.maintenance-logo svg { height: 2rem; width: auto; margin-bottom: clamp(2.5rem, 7vw, 5rem); }
.maintenance h1 { max-width: 16em; }
.maintenance-coord { margin-top: 2.5rem; font-size: 1.25rem; font-weight: 700; display: grid; gap: .5rem; }
.maintenance .bande-trame { height: 140px; }
