/* ==========================================================================
   École de La Grande Ourse · direction « Atelier »
   Lumineuse et vivante : cahiers, affiches, tirages photo scotchés.
   Couleurs du logo (bleu, ciel, rouge) + jaune crayon.
   Typo : Archivo semi-condensé (titres) + Atkinson Hyperlegible Next (texte) + Pacifico (slogan,
   comme sur la bannière Facebook et l'affiche des portes ouvertes).
   Formes : cartes 22px, boutons en pilule, photos 10px avec marge blanche.
   ========================================================================== */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2) format("woff2"); }
@font-face { font-family: "Pacifico"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/pacifico-latin-400-normal.woff2) format("woff2"); }

:root {
  --papier: #fbf9f4;
  --blanc: #ffffff;
  --encre: #14183a;
  --encre-2: #4b5070;
  --bleu: #1f3c9c;
  --bleu-fonce: #142a73;
  --marine: #001a5f;
  --ciel: #cfe0fa;
  --ciel-clair: #e6effc;
  --rouge: #d73a29; /* 4,6:1 avec du texte blanc (AA) */
  --rouge-texte: #c2311f;
  --rouge-clair: #fde3dc;
  --jaune: #ffc83d;
  --jaune-clair: #fff1c7;
  --ligne: rgba(20, 24, 58, .14);
  --titre: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --texte: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --script: "Pacifico", "Brush Script MT", cursive;
  --max: 1280px;
  --gout: clamp(16px, 4vw, 48px);
  --r: 22px;
  --ressort: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --entete: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 16px); }
body { margin: 0; background: var(--papier); color: var(--encre); font: 450 1.0625rem/1.6 var(--texte); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.sans-defilement { overflow: hidden; }
/* Grain de papier, fixe et sans interaction */
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--titre); font-stretch: 88%; font-weight: 800; letter-spacing: -.012em; line-height: 1.02; text-wrap: balance; font-optical-sizing: auto; }
strong { font-weight: 750; }
p { text-wrap: pretty; }
::selection { background: var(--jaune); color: var(--encre); }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 6px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--jaune); color: var(--encre); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.evitement:focus { top: 12px; }
.ico { width: 1.2em; height: 1.2em; flex: none; }

/* --- Formes du logo ------------------------------------------------------- */
.forme { position: absolute; pointer-events: none; fill: currentColor; }

/* --- Boutons ------------------------------------------------------------ */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.bouton { display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px 16px 28px; border-radius: 999px; font: 700 1.05rem/1 var(--titre); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; border: 2px solid transparent; cursor: pointer; transition: transform .35s var(--ressort), background-color .25s, color .25s, box-shadow .35s var(--ease); }
.bouton .ico { width: 20px; height: 20px; transition: transform .35s var(--ressort); }
.bouton:hover { transform: translateY(-2px) rotate(-1deg); }
.bouton:hover .ico { transform: translateX(4px); }
.bouton:active { transform: translateY(1px) scale(.98); }
.bouton--bleu { background: var(--bleu); color: #fff; box-shadow: 0 4px 0 var(--marine); }
.bouton--bleu:hover { box-shadow: 0 6px 0 var(--marine); }
.bouton--rouge { background: var(--rouge); color: #fff; box-shadow: 0 4px 0 #a82a1c; }
.bouton--blanc { background: #fff; color: var(--encre); box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.bouton--contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.bouton--contour:hover { background: var(--encre); color: #fff; }

/* --- En-tête -------------------------------------------------------------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 244, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.entete.est-defile { box-shadow: 0 1px 0 var(--ligne), 0 10px 30px -20px rgba(20, 24, 58, .4); }
.entete__in { max-width: calc(var(--max) + 2 * var(--gout)); margin: 0 auto; padding: 0 var(--gout); height: var(--entete); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marque { flex: none; position: relative; z-index: 2; }
.marque img { height: 48px; width: auto; }
.menu ul { display: flex; align-items: center; gap: 4px; }
.menu a { position: relative; display: block; padding: 10px 12px; font: 650 1rem/1 var(--titre); text-decoration: none; color: var(--encre); border-radius: 999px; transition: background-color .2s; white-space: nowrap; }
.menu a:hover { background: var(--ciel-clair); }
.menu a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5c20-4 40-4 60-1 13 2 24 2 36-2' fill='none' stroke='%23e0402f' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.menu li:last-child a { background: var(--rouge); color: #fff; padding: 12px 20px; margin-left: 8px; box-shadow: 0 3px 0 #a82a1c; transition: transform .3s var(--ressort); }
.menu li:last-child a:hover { transform: translateY(-2px) rotate(-2deg); }
.menu li:last-child a[aria-current="page"]::after { display: none; }
.menu-bouton { display: none; position: relative; z-index: 2; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--jaune); color: var(--encre); cursor: pointer; align-items: center; justify-content: center; }
.menu-bouton .ico { width: 24px; height: 24px; }
.menu-bouton__fermer { display: none; }
.menu-ouvert .menu-bouton__fermer { display: flex; }
.menu-ouvert .menu-bouton__ouvrir { display: none; }

@media (max-width: 1120px) {
  .menu-bouton { display: inline-flex; }
  .menu { position: fixed; inset: 0; background: var(--papier); padding: calc(var(--entete) + 16px) var(--gout) 32px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
  .menu-ouvert .menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .4s var(--ease); }
  .entete.menu-ouvert { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--papier); }
  .menu ul { flex-direction: column; align-items: stretch; gap: 10px; }
  .menu a { font-size: clamp(1.6rem, 6.5vw, 2.4rem); font-weight: 800; padding: 18px 22px; border-radius: 18px; background: var(--ciel-clair); }
  .menu li:nth-child(2) a { background: var(--ciel); } .menu li:nth-child(3) a { background: var(--jaune-clair); }
  .menu li:nth-child(4) a { background: var(--ciel-clair); } .menu li:nth-child(5) a { background: var(--rouge-clair); }
  .menu li:nth-child(6) a { background: var(--jaune-clair); }
  .menu li:last-child a { margin: 0; padding: 18px 22px; box-shadow: none; }
  .menu a[aria-current="page"]::after { left: 22px; right: auto; width: 120px; bottom: 10px; }
  .menu-ouvert .menu li { animation: tombe .5s var(--ressort) both; }
  .menu-ouvert .menu li:nth-child(2) { animation-delay: .03s; } .menu-ouvert .menu li:nth-child(3) { animation-delay: .06s; }
  .menu-ouvert .menu li:nth-child(4) { animation-delay: .09s; } .menu-ouvert .menu li:nth-child(5) { animation-delay: .12s; }
  .menu-ouvert .menu li:nth-child(6) { animation-delay: .15s; } .menu-ouvert .menu li:nth-child(7) { animation-delay: .18s; }
}
@keyframes tombe { from { opacity: 0; transform: translateY(-14px) rotate(-2deg); } }

/* --- Apparition --------------------------------------------------------- */
.js [data-revele] { opacity: 0; transform: translateY(28px) rotate(var(--rot, 0deg)); transition: opacity .8s var(--ease), transform .9s var(--ressort); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-revele].est-visible { opacity: 1; transform: rotate(var(--rot, 0deg)); }
@media (prefers-reduced-motion: reduce) {
  .js [data-revele] { opacity: 1; transform: rotate(var(--rot, 0deg)); transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* --- Héros (accueil) ---------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 72px) var(--gout) clamp(64px, 8vw, 112px); }
.hero .forme--o { color: var(--ciel); width: clamp(260px, 34vw, 520px); right: -6vw; top: -10vw; opacity: .7; }
.hero .forme--g { color: var(--jaune-clair); width: clamp(200px, 22vw, 340px); left: -8vw; bottom: -6vw; }
.hero__in { position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__slogan { font-family: var(--script); font-weight: 400; color: var(--rouge); font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.3; letter-spacing: 0; transform: rotate(-4deg); transform-origin: left bottom; margin-bottom: 18px; padding-bottom: .1em; }
.hero__accroche { font-family: var(--titre); font-weight: 800; font-size: clamp(2.7rem, 5.6vw, 5.4rem); line-height: .98; letter-spacing: -.012em; color: var(--marine); text-wrap: balance; }
.surligne { position: relative; white-space: nowrap; }
.souligne { position: absolute; left: -2%; right: -2%; bottom: -.12em; width: 104%; height: .28em; color: var(--jaune); z-index: -1; }
.hero__actions { margin-top: 40px; display: flex; gap: 16px; align-items: center; }
.hero__collage { position: relative; aspect-ratio: 1 / .95; }
.tirage { position: absolute; margin: 0; padding: 10px 10px 12px; background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(20, 24, 58, .12), 0 22px 50px -18px rgba(20, 24, 58, .45); transform: rotate(var(--rot, 0deg)); transition: transform .6s var(--ressort); }
.tirage picture { display: contents; }
.tirage img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.tirage::before { content: ""; position: absolute; z-index: 2; width: 92px; height: 26px; top: -12px; left: 50%; margin-left: -46px; background: rgba(255, 200, 61, .78); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.tirage:hover { transform: rotate(0deg) scale(1.02); z-index: 5; }
.tirage--batiment { --rot: 3deg; width: 68%; aspect-ratio: 4 / 3.3; right: 0; top: 2%; }
.tirage--atelier { --rot: -5deg; width: 52%; aspect-ratio: 4 / 3; left: 0; top: 42%; z-index: 2; }
.tirage--atelier::before { background: rgba(207, 224, 250, .85); transform: rotate(5deg); }
.tirage--dessin { --rot: 4deg; width: 40%; aspect-ratio: 1; right: 6%; bottom: 0; z-index: 3; }
.tirage--dessin::before { background: rgba(224, 64, 47, .55); left: 20%; }
.pastille { position: absolute; z-index: 4; left: 12%; top: 4%; width: clamp(118px, 12vw, 156px); aspect-ratio: 1; border-radius: 50%; background: var(--jaune); color: var(--encre); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font: 800 clamp(.95rem, 1.2vw, 1.15rem)/1.05 var(--titre); letter-spacing: -.01em; transform: rotate(-10deg); box-shadow: 0 10px 24px -10px rgba(20, 24, 58, .5); }
.pastille span:last-child { font-size: 1.35em; color: var(--bleu); }
@media (prefers-reduced-motion: no-preference) {
  .hero__slogan { animation: ecrit 1s var(--ease) both; }
  .hero__accroche { animation: monte .9s var(--ease) .1s both; }
  .hero__actions { animation: monte .9s var(--ease) .2s both; }
  .tirage { animation: pose 1s var(--ressort) both; }
  .tirage--batiment { animation-delay: .15s; } .tirage--atelier { animation-delay: .3s; } .tirage--dessin { animation-delay: .45s; }
  .pastille { animation: tampon .7s var(--ressort) .7s both; }
  .souligne path { stroke-dasharray: 320; animation: trace 1s var(--ease) .6s both; }
}
@keyframes ecrit { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -10% 0 0); } }
@keyframes monte { from { opacity: 0; transform: translateY(24px); } }
@keyframes pose { from { opacity: 0; transform: translateY(-30px) rotate(calc(var(--rot) * -2)) scale(1.06); } }
@keyframes tampon { from { opacity: 0; transform: scale(1.8) rotate(-30deg); } }
@keyframes trace { from { stroke-dashoffset: 320; } }

/* --- Principes (accueil) ------------------------------------------------- */
.principes { padding: clamp(64px, 9vw, 120px) var(--gout); }
.principes__in { max-width: var(--max); margin: 0 auto; }
.principes__grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.principes__titre { grid-column: span 5; align-self: end; padding: 0 16px 16px 0; }
.principes__titre h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); color: var(--marine); }
.fiche { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 230px; padding: 24px 26px 26px; border-radius: var(--r); transition: transform .5s var(--ressort); }
.fiche:hover { transform: rotate(0deg) translateY(-4px) !important; }
.fiche__ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .55); }
.fiche__ico .ico { width: 30px; height: 30px; }
.fiche__num { position: absolute; top: 18px; right: 22px; font: 800 1rem/1 var(--titre); opacity: .55; }
.fiche__texte { font: 750 clamp(1.35rem, 2vw, 1.75rem)/1.12 var(--titre); letter-spacing: -.012em; }
.fiche--1 { grid-column: span 4; background: var(--bleu); color: #fff; --rot: -1.2deg; }
.fiche--1 .fiche__ico { background: rgba(255, 255, 255, .14); color: var(--jaune); }
.fiche--2 { grid-column: span 3; background: var(--ciel); --rot: 1.4deg; }
.fiche--3 { grid-column: span 3; background: var(--jaune); --rot: 1deg; }
.fiche--4 { grid-column: span 4; background: var(--rouge); color: #fff; --rot: -1.4deg; }
.fiche--4 .fiche__ico { background: rgba(255, 255, 255, .18); }
.fiche--5 { grid-column: span 5; background: #fff; box-shadow: inset 0 0 0 2px var(--encre); --rot: .8deg; }
.fiche--5 .fiche__ico { background: var(--ciel-clair); color: var(--bleu); }
.fiche--6 { grid-column: span 7; background: var(--ciel-clair); --rot: -.6deg; min-height: 180px; }
.principes__boutons { grid-column: span 5; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-start; padding: 16px; }

/* --- Citation ----------------------------------------------------------- */
.citation { padding: 0 var(--gout); }
.citation__in { position: relative; overflow: hidden; max-width: calc(var(--max) + 120px); margin: 0 auto; background: var(--rouge); color: #fff; border-radius: calc(var(--r) * 2); padding: clamp(56px, 8vw, 112px) clamp(24px, 7vw, 112px); }
.citation__in::before { content: "\201C"; position: absolute; right: clamp(16px, 4vw, 56px); top: -.12em; font: 800 clamp(12rem, 26vw, 22rem)/1 var(--titre); color: rgba(255, 255, 255, .14); pointer-events: none; }
.citation blockquote p { position: relative; font: 800 clamp(2rem, 4.6vw, 4.2rem)/1.04 var(--titre); letter-spacing: -.012em; max-width: 20ch; text-wrap: balance; }
.citation__source { margin: 28px 0 36px; font-size: 1.1rem; font-weight: 600; opacity: .9; }
.citation--jaune .citation__in { background: var(--jaune); color: var(--encre); }
.citation--jaune .citation__in::before { color: rgba(20, 24, 58, .08); }
.citation--jaune blockquote p { font-size: clamp(1.7rem, 3.4vw, 3rem); max-width: 28ch; line-height: 1.1; }

/* --- Actualités (accueil) ----------------------------------------------- */
.actus { padding: clamp(80px, 10vw, 136px) 0 clamp(64px, 8vw, 104px); }
.actus__in { max-width: calc(var(--max) + 2 * var(--gout)); margin: 0 auto; padding: 0 var(--gout); }
.actus__tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.actus h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); color: var(--marine); }
.actus__fleches { display: flex; gap: 10px; }
.rond { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--encre); background: transparent; color: var(--encre); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s, transform .3s var(--ressort); }
.rond:hover:not(:disabled) { background: var(--encre); color: #fff; transform: scale(1.06); }
.rond:disabled { opacity: .3; cursor: default; }
.rond .ico { width: 22px; height: 22px; }
.actus__piste { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 28vw, 340px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px max(var(--gout), calc((100vw - var(--max)) / 2)) 36px; scroll-padding-inline: max(var(--gout), calc((100vw - var(--max)) / 2)); scrollbar-width: none; overscroll-behavior-x: contain; }
.actus__piste::-webkit-scrollbar { display: none; }
.actus__piste:focus-visible { outline-offset: -3px; }
.actus__source { display: flex; align-items: center; gap: 10px; color: var(--encre-2); font-size: .98rem; }
.actus__source .ico { color: #1877f2; width: 22px; height: 22px; }

.post { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border-radius: 16px; padding: 12px 12px 22px; box-shadow: 0 1px 2px rgba(20, 24, 58, .1), 0 20px 40px -26px rgba(20, 24, 58, .5); transition: transform .5s var(--ressort); }
.post--piste:nth-child(odd) { transform: rotate(-1deg); }
.post--piste:nth-child(even) { transform: rotate(1.2deg) translateY(8px); }
.post:hover { transform: rotate(0deg) translateY(-6px) !important; }
.post__image { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 4.2; background: var(--ciel-clair); }
.post__image img { width: 100%; height: 100%; object-fit: cover; }
.post__plus { position: absolute; right: 10px; bottom: 10px; display: inline-flex; gap: 4px; align-items: center; padding: 5px 10px; border-radius: 999px; background: #fff; font: 700 .8rem/1 var(--titre); }
.post__plus .ico { width: 16px; height: 16px; }
.post__date { align-self: flex-start; margin: -16px 0 0 10px; position: relative; z-index: 1; padding: 7px 12px 6px; font: 750 .9rem/1 var(--titre); transform: rotate(-3deg); box-shadow: 0 2px 6px -2px rgba(20, 24, 58, .3); }
.post--jaune .post__date { background: var(--jaune); }
.post--ciel .post__date { background: var(--ciel); }
.post--rouge .post__date { background: var(--rouge); color: #fff; }
.post--bleu .post__date { background: var(--bleu); color: #fff; }
.post__message { margin: 16px 10px 0; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; flex: 1; }
.post__lien { display: inline-flex; align-items: center; gap: 8px; margin: 18px 10px 0; font: 700 .95rem/1 var(--titre); color: var(--bleu); text-decoration: none; }
.post__lien .ico { width: 20px; height: 20px; color: #1877f2; }
.post__lien:hover { text-decoration: underline; text-underline-offset: 4px; }
.post--fin { display: flex; flex-direction: column; justify-content: space-between; background: var(--bleu); color: #fff; padding: 28px; text-decoration: none; min-height: 320px; }
.post--fin__titre { font: 800 2.2rem/1 var(--titre); letter-spacing: -.012em; }
.post--fin .ico { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--jaune); color: var(--encre); transition: transform .4s var(--ressort); }
.post--fin:hover .ico { transform: translateX(8px) rotate(-10deg); }

/* --- Pied de page ------------------------------------------------------- */
.pied { position: relative; overflow: hidden; margin-top: clamp(40px, 6vw, 80px); background: var(--marine); color: #e6effc; border-radius: calc(var(--r) * 2.2) calc(var(--r) * 2.2) 0 0; padding: clamp(56px, 8vw, 96px) var(--gout) 28px; }
.pied .forme--o { color: rgba(207, 224, 250, .07); width: clamp(320px, 40vw, 620px); right: -10vw; bottom: -18vw; }
.pied__in { position: relative; max-width: var(--max); margin: 0 auto; }
.pied__slogan { font-family: var(--script); font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.3; color: var(--jaune); transform: rotate(-3deg); transform-origin: left; margin-bottom: clamp(32px, 5vw, 56px); padding-bottom: .1em; }
.pied__grille { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; gap: 32px; }
.pied__titre { font: 750 1.15rem/1.2 var(--titre); letter-spacing: -.01em; color: #fff; margin-bottom: 12px; }
.pied p { line-height: 1.75; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--jaune); }
.pied__contact a { display: inline-flex; align-items: center; gap: 10px; }
.pied__contact .ico { color: var(--jaune); }
.pied__contact + .pied__contact { margin-top: 8px; }
.pied__fb { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-weight: 700; }
.pied__fb .ico { width: 24px; height: 24px; }
.pied__nav { display: grid; gap: 6px; }
.pied__bas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(207, 224, 250, .18); font-size: .88rem; color: rgba(230, 239, 252, .7); }
.pied__bas img { width: 40px; height: auto; border-radius: 4px; }

/* --- En-tête de page intérieure ----------------------------------------- */
.tete { position: relative; overflow: hidden; margin: 8px var(--gout) 0; border-radius: calc(var(--r) * 2); padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 88px); }
.tete .forme { width: clamp(220px, 30vw, 440px); right: -4vw; top: -8vw; opacity: .5; }
.tete__in { position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: clamp(220px, 24vw, 320px); }
.tete__slogan { font-family: var(--script); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.4; transform: rotate(-3deg); transform-origin: left; margin-bottom: 8px; color: var(--rouge-texte); }
.tete h1 { font-size: clamp(3rem, 7.6vw, 7rem); line-height: .94; letter-spacing: -.012em; font-weight: 800; color: var(--marine); }
.tete--ciel { background: var(--ciel); } .tete--ciel .forme { color: #fff; }
.tete--jaune { background: var(--jaune); } .tete--jaune .forme { color: #fff; opacity: .55; }
.tete--bleu { background: var(--bleu); } .tete--bleu h1 { color: #fff; } .tete--bleu .tete__slogan { color: var(--jaune); } .tete--bleu .forme { color: var(--ciel); opacity: .25; }
.tete--rouge { background: var(--rouge); } .tete--rouge h1 { color: #fff; } .tete--rouge .tete__slogan { color: var(--jaune); } .tete--rouge .forme { color: #fff; opacity: .18; }
.tirage--tete { position: relative; --rot: 3deg; width: 100%; max-width: 380px; aspect-ratio: 4 / 3.2; justify-self: end; }
@media (prefers-reduced-motion: no-preference) {
  .tete h1 { animation: monte .9s var(--ease) both; }
  .tete__slogan { animation: ecrit 1s var(--ease) .15s both; }
  .tirage--tete { animation: pose 1s var(--ressort) .2s both; }
}

/* --- Intro --------------------------------------------------------------- */
.intro { padding: clamp(64px, 8vw, 112px) var(--gout) clamp(32px, 4vw, 56px); }
.intro__in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.intro__in--simple { grid-template-columns: minmax(0, 1fr); }
.intro__in--deux { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.intro__texte { font: 650 clamp(1.5rem, 2.7vw, 2.35rem)/1.22 var(--titre); letter-spacing: -.012em; color: var(--marine); max-width: 34ch; }
.intro__texte strong { font-weight: inherit; }
.intro__suite { margin-top: 24px; font-size: 1.2rem; line-height: 1.55; max-width: 52ch; color: var(--encre-2); }
.tampon { width: clamp(120px, 14vw, 170px); aspect-ratio: 1; border-radius: 50%; border: 3px dashed var(--rouge); color: var(--rouge); display: grid; place-items: center; transform: rotate(-12deg); font: 800 clamp(1.8rem, 3vw, 2.6rem)/1 var(--titre); letter-spacing: -.012em; }
.tampon span { padding: 10px; border-radius: 50%; }

/* --- Cartes (texte) ------------------------------------------------------ */
.cartes { padding: clamp(24px, 3vw, 40px) var(--gout) clamp(64px, 8vw, 104px); }
.cartes__in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.carte { border-radius: var(--r); padding: clamp(24px, 3vw, 36px); }
.carte p + p { margin-top: 14px; }
.carte__lead { font: 750 clamp(1.2rem, 1.7vw, 1.45rem)/1.25 var(--titre); letter-spacing: -.012em; }
.carte--ciel { background: var(--ciel); }
.carte--jaune { background: var(--jaune-clair); }
.carte--blanc { background: #fff; box-shadow: inset 0 0 0 2px var(--ligne); }
.carte--rouge-clair { background: var(--rouge-clair); }
.carte--bleu { background: var(--bleu); color: #fff; }
.cartes__in .carte:nth-child(1) { grid-column: span 7; --rot: -.4deg; }
.cartes__in .carte:nth-child(2) { grid-column: span 5; --rot: .5deg; align-self: center; }
.cartes__in .carte:nth-child(3) { grid-column: span 5; --rot: .4deg; }
.cartes__in .carte:nth-child(4) { grid-column: span 7; --rot: -.3deg; }

/* --- Cahier (lignes Seyès) ---------------------------------------------- */
.cahier { padding: 0 var(--gout) clamp(64px, 8vw, 112px); }
.cahier__in { position: relative; max-width: 1040px; margin: 0 auto; background-color: #fff; border-radius: 6px 6px var(--r) var(--r);
  background-image: linear-gradient(90deg, transparent 0 calc(clamp(44px, 7vw, 92px) - 1px), rgba(224, 64, 47, .55) calc(clamp(44px, 7vw, 92px) - 1px) clamp(44px, 7vw, 92px), transparent clamp(44px, 7vw, 92px)),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(31, 60, 156, .16) 31px 32px);
  padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 56px) clamp(36px, 5vw, 56px) calc(clamp(44px, 7vw, 92px) + clamp(20px, 3vw, 36px));
  box-shadow: 0 1px 2px rgba(20, 24, 58, .1), 0 30px 60px -36px rgba(20, 24, 58, .5); }
.cahier__in::before { content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px; background: rgba(207, 224, 250, .9); transform: rotate(-2deg); }
.cahier h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: var(--marine); margin-bottom: 28px; }
.cahier__liste { display: grid; gap: 14px; }
.cahier__liste li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; }
.coche { width: 30px; height: 30px; border: 2px solid var(--encre); border-radius: 7px; display: grid; place-items: center; color: var(--rouge); transform: rotate(-4deg); background: #fff; }
.coche .ico { width: 22px; height: 22px; }
.cahier .boutons { max-width: 1040px; margin: 40px auto 0; }
.colonnes { max-width: 1040px; margin: clamp(48px, 6vw, 72px) auto 0; display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 4vw, 56px); }
.colonnes__lead { font: 750 clamp(1.4rem, 2.2vw, 1.85rem)/1.2 var(--titre); letter-spacing: -.012em; color: var(--marine); }
.colonnes p:last-child { font-size: 1.08rem; color: var(--encre-2); }

/* --- Pile (méthodes) ---------------------------------------------------- */
.pile { padding: clamp(32px, 4vw, 48px) var(--gout) clamp(64px, 8vw, 112px); }
.pile__in { max-width: 980px; margin: 0 auto; }
.pile__titre { font-size: clamp(2.2rem, 4.4vw, 3.8rem); color: var(--marine); margin-bottom: 32px; }
.pile__liste { display: grid; gap: 18px; }
.pile__carte { position: sticky; top: calc(var(--entete) + 20px + var(--i) * 14px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; min-height: 168px; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r); box-shadow: 0 -1px 0 rgba(255, 255, 255, .4) inset, 0 18px 40px -24px rgba(20, 24, 58, .55); }
.pile__carte p { font: 650 clamp(1.15rem, 2vw, 1.6rem)/1.3 var(--titre); letter-spacing: -.012em; }
.pile__carte.est-posee { animation: rebond .45s linear; }
/* Effet « élastique » façon iOS : la carte dépasse très légèrement sa position, puis revient en douceur (un seul aller-retour, sans oscillation) */
@keyframes rebond {
  0% { transform: translateY(0); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  30% { transform: translateY(-5px); animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  100% { transform: translateY(0); }
}
.pile__num { font: 800 clamp(3.4rem, 7vw, 5.6rem)/.8 var(--titre); letter-spacing: -.012em; width: 1.2em; text-align: center; }
.pile__carte--bleu { background: var(--bleu); color: #fff; } .pile__carte--bleu .pile__num { color: var(--jaune); }
.pile__carte--ciel { background: var(--ciel); } .pile__carte--ciel .pile__num { color: var(--bleu); }
.pile__carte--jaune { background: var(--jaune); } .pile__carte--jaune .pile__num { color: var(--rouge-texte); }
.pile__carte--rouge { background: var(--rouge); color: #fff; } .pile__carte--rouge .pile__num { color: var(--jaune-clair); }
.pile__carte--blanc { background: #fff; box-shadow: inset 0 0 0 2px var(--encre), 0 18px 40px -24px rgba(20, 24, 58, .55); } .pile__carte--blanc .pile__num { color: var(--bleu); }

/* --- Programmes -------------------------------------------------------- */
.grille-prog { padding: clamp(24px, 3vw, 40px) var(--gout) clamp(64px, 8vw, 112px); }
.grille-prog__in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.grille-prog .carte { grid-column: span 4; font-size: 1.08rem; }
.grille-prog .carte:nth-child(1) { --rot: -.8deg; } .grille-prog .carte:nth-child(2) { --rot: .6deg; } .grille-prog .carte:nth-child(3) { --rot: -.4deg; }
.carte--large { grid-column: 1 / -1 !important; }
.carte--branches { background: var(--encre); color: #fff; padding: clamp(32px, 5vw, 64px); }
.carte__grand { font: 650 clamp(1.4rem, 2.8vw, 2.4rem)/1.3 var(--titre); letter-spacing: -.012em; }
.carte__grand--moyen { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.carte--branches strong { font-weight: 800; padding: .02em .38em .06em; border-radius: 999px; background: var(--jaune); color: var(--encre); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.carte--branches strong:nth-of-type(2) { background: var(--ciel); color: var(--encre); }
.carte--branches strong:nth-of-type(3) { background: var(--rouge-texte); color: #fff; }
.grille-prog .carte:nth-child(5) { grid-column: span 5; }
.carte--esperanto { grid-column: span 7 !important; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; --rot: .5deg; font-size: 1.15rem !important; }
.carte--esperanto strong { color: var(--jaune); }
.esperanto__etoile { width: 64px; height: 64px; color: var(--jaune); }
.carte--large2 { grid-column: 1 / -1 !important; }

/* --- Orientation (scolarité) ------------------------------------------ */
.orientation { padding: clamp(64px, 8vw, 112px) var(--gout); background: var(--ciel-clair); margin: 0 var(--gout); border-radius: calc(var(--r) * 2); }
.orientation__in { max-width: var(--max); margin: 0 auto; }
.orientation h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); color: var(--marine); max-width: 30ch; line-height: 1.1; }
.orientation__liste { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.panneau { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 190px; padding: 24px; border-radius: var(--r); font: 750 1.3rem/1.15 var(--titre); letter-spacing: -.012em; transition: transform .5s var(--ressort); }
.panneau .ico { width: 34px; height: 34px; }
.panneau:hover { transform: translateY(-6px) rotate(-1deg) !important; }
.panneau--ciel { background: var(--ciel); --rot: -1deg; } .panneau--jaune { background: var(--jaune); --rot: 1.2deg; }
.panneau--bleu { background: var(--bleu); color: #fff; --rot: -.8deg; } .panneau--blanc { background: #fff; box-shadow: inset 0 0 0 2px var(--encre); --rot: 1deg; }
.bilan { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.bilan__pastille { width: clamp(170px, 18vw, 230px); aspect-ratio: 1; border-radius: 50%; background: var(--rouge); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; transform: rotate(-8deg); font: 800 clamp(3rem, 5vw, 4.4rem)/1 var(--titre); letter-spacing: -.012em; box-shadow: 0 16px 30px -16px rgba(224, 64, 47, .8); }
.bilan__pastille small { font: 600 1.1rem/1 var(--texte); letter-spacing: 0; opacity: .9; }
.bilan__texte { font: 650 clamp(1.25rem, 2.1vw, 1.75rem)/1.3 var(--titre); letter-spacing: -.012em; color: var(--marine); max-width: 40ch; }

/* --- Mur (actualités) -------------------------------------------------- */
.mur { padding: clamp(48px, 6vw, 80px) var(--gout) clamp(64px, 8vw, 104px); }
.mur__in { max-width: var(--max); margin: 0 auto; }
.mur__intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 48px; color: var(--encre-2); }
.mur__intro p { display: flex; align-items: center; gap: 10px; }
.mur__intro p .ico { color: #1877f2; width: 22px; height: 22px; }
/* Grille en ordre chronologique (ligne par ligne). Avec JavaScript, chaque carte occupe le nombre
   de rangées de 4 px correspondant à sa hauteur : effet « mur d'affiches » sans trou. */
.mur__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 36px 28px; align-items: start; }
.mur__grille.est-maconnerie { grid-auto-rows: 4px; row-gap: 0; }
.mur__grille .post { display: flex; }
.mur__grille .post__image { aspect-ratio: auto; }
.mur__grille .post__image img { height: auto; }
.mur__grille .post:nth-child(3n+1) { --rot: -1deg; } .mur__grille .post:nth-child(3n+2) { --rot: .8deg; } .mur__grille .post:nth-child(3n) { --rot: -.5deg; }

/* --- Contact ------------------------------------------------------------ */
.contact { padding: clamp(48px, 6vw, 80px) var(--gout) clamp(64px, 8vw, 104px); }
.contact__in { max-width: var(--max); margin: 0 auto; }
.contact__tuiles { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: 18px; }
.tuile { display: flex; flex-direction: column; gap: 28px; padding: 28px; border-radius: var(--r); font: 750 clamp(1.25rem, 2vw, 1.6rem)/1.2 var(--titre); letter-spacing: -.012em; overflow-wrap: anywhere; }
.tuile .ico { width: 40px; height: 40px; }
.tuile a { text-decoration: none; }
.tuile a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tuile--ciel { background: var(--ciel); --rot: -1deg; } .tuile--rouge { background: var(--rouge); color: #fff; --rot: .8deg; } .tuile--bleu { background: var(--bleu); color: #fff; --rot: -.6deg; }
.contact__bas { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.formulaire { display: grid; gap: 20px; padding: clamp(24px, 4vw, 44px); background: #fff; border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--ligne); }
.formulaire__ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.champ { display: grid; gap: 8px; }
.champ label { font: 700 .98rem/1.2 var(--titre); }
.champ input, .champ textarea { width: 100%; font: inherit; color: var(--encre); background: var(--papier); border: 2px solid rgba(20, 24, 58, .28); border-radius: 14px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.champ textarea { resize: vertical; min-height: 150px; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--bleu); background: #fff; box-shadow: 0 0 0 4px rgba(31, 60, 156, .15); }
.formulaire .bouton { justify-self: start; margin-top: 4px; }
.carte-plan { position: relative; min-height: 380px; border-radius: var(--r); overflow: hidden; background-color: var(--ciel-clair);
  background-image: radial-gradient(circle at 58% 38%, var(--rouge) 0 9px, #fff 9px 13px, transparent 13px),
    repeating-linear-gradient(0deg, transparent 0 54px, #fff 54px 60px), repeating-linear-gradient(90deg, transparent 0 74px, #fff 74px 80px);
  background-position: 0 0, -12px -8px, -20px 0; }
.carte-plan__consentement { position: absolute; inset: auto 16px 16px 16px; display: grid; gap: 14px; justify-items: start; padding: 24px; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px -20px rgba(20, 24, 58, .5); }
.carte-plan__consentement > .ico { width: 40px; height: 40px; color: var(--bleu); }
.carte-plan__consentement p { font-size: .95rem; color: var(--encre-2); }
.carte-plan iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Formulaire : titre, champs facultatifs, erreurs, confirmation ------------- */
.formulaire { position: relative; }
.formulaire__titre { font: 800 clamp(1.6rem, 2.6vw, 2.1rem)/1.05 var(--titre); letter-spacing: -.012em; color: var(--marine); }
.champ__facultatif { font: 500 .88rem/1 var(--texte); color: var(--encre-2); }
.champ--erreur input, .champ--erreur textarea { border-color: var(--rouge-texte); background: #fff; }
.champ__erreur { font-size: .95rem; font-weight: 650; line-height: 1.35; color: var(--rouge-texte); }
.formulaire__message { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; line-height: 1.45; }
.formulaire__message:focus { outline: none; }
.formulaire__message:focus-visible { outline: 3px solid var(--rouge); }
.formulaire__message .ico { width: 26px; height: 26px; color: #1d7a3e; }
.formulaire__message--ok { background: #e2f3e6; color: #0f3d22; }
.formulaire__message--erreur { background: var(--rouge-clair); color: #7a1c10; }
.formulaire__piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.formulaire__note { font-size: .92rem; color: var(--encre-2); }
.formulaire__note a, .carte-plan__lien { color: var(--bleu); text-underline-offset: 4px; }
.carte-plan__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.carte-plan__lien { font: 700 .98rem/1.2 var(--titre); padding: 10px 0; }

/* --- Publications : sans image, vidéo, liens ------------------------------------ */
.post--sans-image .post__date { margin-top: 10px; }
.post__video { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(20, 24, 58, .72); color: #fff; display: grid; place-items: center; }
.post__video .ico { width: 26px; height: 26px; margin-left: 3px; }
.post__message a { color: var(--bleu); text-decoration: underline; text-underline-offset: 3px; }
.mur__vide { font-size: 1.15rem; max-width: 52ch; }
.mur__vide a { color: var(--bleu); }

/* --- Suite de page (boutons) ------------------------------------------------------ */
.suite-page { padding: 0 var(--gout) clamp(48px, 6vw, 80px); }
.suite-page .boutons { max-width: var(--max); margin: 0 auto; }

/* --- Pied : mentions légales et crédit ------------------------------------------- */
.pied__legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pied__legal a { text-decoration: underline; text-decoration-color: rgba(230, 239, 252, .35); text-underline-offset: 4px; }
/* « Site réalisé par : MIKAA.WEB » : texte et nom centrés sur la même ligne */
.credit { margin-left: auto; display: flex; align-items: center; gap: .45em; white-space: nowrap; }
.credit__nom { font: 800 1.12em/1 var(--titre); font-stretch: 100%; letter-spacing: .03em; color: #fff; }
.pied a.credit__nom:hover { color: #fff; }
/* Le point de MIKAA.WEB : un rond vert. Le « . » reste dans le HTML (copier-coller, lecteurs d'écran) mais est transparent. */
.credit__point { display: inline-block; width: .36em; height: .36em; margin-inline: .12em .1em; border-radius: 50%; background: #00ff88; color: transparent; overflow: hidden; vertical-align: baseline; }

/* --- Pages légales ------------------------------------------------------------------ */
.page-mentions-legales .tete h1, .page-protection-des-donnees .tete h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.page-mentions-legales .tete__in, .page-protection-des-donnees .tete__in { min-height: clamp(160px, 16vw, 220px); }
.legal { padding: clamp(48px, 6vw, 88px) var(--gout) clamp(48px, 6vw, 80px); }
.legal__in { max-width: 760px; margin: 0 auto; }
.legal__date { display: inline-block; margin-bottom: 28px; padding: 8px 14px 7px; border-radius: 4px; background: var(--jaune); font: 750 .92rem/1 var(--titre); transform: rotate(-2deg); }
.legal__chapeau { font: 650 clamp(1.2rem, 1.8vw, 1.45rem)/1.38 var(--titre); letter-spacing: -.01em; color: var(--marine); }
.legal h2 { margin: 44px 0 14px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.1; color: var(--marine); }
.legal p, .legal address, .legal ul { font-size: 1.06rem; line-height: 1.65; }
.legal p + p, .legal ul + p, .legal address + p { margin-top: 12px; }
.legal ul { display: grid; gap: 10px; margin-top: 12px; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--rouge); }
.legal a { color: var(--bleu); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { color: var(--rouge-texte); }
.legal .credit__nom { color: var(--marine); text-decoration: none; font-size: 1.04em; white-space: nowrap; }
.legal__voir { margin-top: 48px !important; padding-top: 20px; border-top: 1px solid var(--ligne); font-weight: 700; }

/* --- Pages d'erreur ------------------------------------------------------------------ */
.erreur { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) var(--gout) clamp(56px, 7vw, 96px); }
.erreur .forme--g { color: var(--jaune-clair); width: clamp(220px, 28vw, 400px); right: -5vw; bottom: -3vw; }
.erreur__in { position: relative; max-width: 900px; margin: 0 auto; }
.erreur__code { display: flex; align-items: center; margin-bottom: 18px; font: 800 clamp(6rem, 19vw, 13rem)/.9 var(--titre); letter-spacing: -.02em; color: var(--marine); }
.erreur__o { width: .8em; height: .8em; margin: 0 .04em; flex: none; fill: var(--bleu); }
.erreur__sphere { fill: var(--jaune); }
.erreur__etiquette { margin-bottom: 4px; font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.4 var(--script); color: var(--rouge-texte); transform: rotate(-3deg); transform-origin: left; }
.erreur h1 { max-width: 17ch; font-size: clamp(2.3rem, 6vw, 4.6rem); color: var(--marine); }
.erreur__texte { max-width: 46ch; margin: 20px 0 32px; font-size: clamp(1.12rem, 1.6vw, 1.3rem); color: var(--encre-2); }
.erreur__pages { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ligne); }
.erreur__pages ul { display: flex; flex-wrap: wrap; gap: 10px; }
.erreur__pages a { display: block; padding: 12px 16px; border-radius: 999px; background: var(--ciel-clair); font: 700 1rem/1 var(--titre); text-decoration: none; transition: transform .3s var(--ressort), background-color .2s; }
.erreur__pages li:nth-child(2) a { background: var(--jaune-clair); } .erreur__pages li:nth-child(3) a { background: var(--rouge-clair); }
.erreur__pages li:nth-child(4) a { background: var(--ciel); } .erreur__pages li:nth-child(5) a { background: var(--jaune-clair); }
.erreur__pages a:hover { transform: translateY(-2px) rotate(-1.5deg); }
.erreur--seule { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; }
.erreur__marque { position: relative; display: inline-block; margin-bottom: clamp(32px, 5vw, 56px); }
.erreur__marque img { height: 48px; width: auto; }
.erreur__contact { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 700; }
.erreur__contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--bleu); text-decoration: none; padding: 6px 0; }
.erreur__contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .erreur__code > * { animation: tampon .7s var(--ressort) both; }
  .erreur__code > :nth-child(2) { animation-delay: .08s; } .erreur__code > :nth-child(3) { animation-delay: .16s; }
  .erreur h1 { animation: monte .9s var(--ease) .2s both; }
}

/* --- Adaptations ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__collage { max-width: 600px; width: 100%; justify-self: center; }
  .principes__titre { grid-column: 1 / -1; }
  .fiche--1, .fiche--2, .fiche--3, .fiche--4, .fiche--5 { grid-column: span 6; }
  .fiche--6, .principes__boutons { grid-column: 1 / -1; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .tete__in { grid-template-columns: 1fr; }
  .tirage--tete { justify-self: start; max-width: 300px; }
  .cartes__in .carte, .grille-prog .carte, .carte--esperanto { grid-column: 1 / -1 !important; }
  .intro__in--deux { grid-template-columns: 1fr; }
  .orientation__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__tuiles { grid-template-columns: 1fr; }
  .contact__bas { grid-template-columns: 1fr; }
  .colonnes { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --entete: 72px; }
  .marque img { height: 40px; }
  .hero__accroche { font-size: clamp(2.3rem, 10.5vw, 3.2rem); }
  .hero .forme--o { opacity: .4; }
  .hero__collage { aspect-ratio: 1 / 1.05; }
  .pastille { left: 0; top: 0; }
  .fiche, .fiche--1, .fiche--2, .fiche--3, .fiche--4, .fiche--5, .fiche--6 { grid-column: 1 / -1; min-height: 0; gap: 20px; }
  .actus__tete { flex-direction: column; align-items: flex-start; }
  .actus__fleches { display: none; }
  .actus__piste { grid-auto-columns: 78vw; }
  .pied__grille { grid-template-columns: 1fr; }
  .tete { margin: 8px 12px 0; }
  .tete h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .tirage--tete { max-width: 240px; }
  .intro__in { grid-template-columns: 1fr; }
  .tampon { width: 110px; }
  .formulaire__ligne { grid-template-columns: 1fr; }
  .orientation { margin: 0 12px; }
  .orientation__liste { grid-template-columns: 1fr; }
  .panneau { min-height: 0; flex-direction: row; align-items: center; gap: 16px; }
  .bilan { grid-template-columns: 1fr; }
  .pile__carte { grid-template-columns: 1fr; gap: 8px; min-height: 0; top: calc(var(--entete) + 12px + var(--i) * 8px); }
  .pile__num { text-align: left; }
  .citation__in { border-radius: var(--r); }
  .carte--esperanto { grid-template-columns: 1fr; }
  .bouton { padding: 15px 20px 15px 24px; }
  .pied__bas { flex-direction: column; align-items: flex-start; }
  .credit { margin-left: 0; }
  .erreur__pages a { padding: 13px 16px; }
}
/* Écrans tactiles : zones de toucher d'au moins 44 px (la mise en page reste la même) */
@media (max-width: 720px), (pointer: coarse) {
  .post__lien { position: relative; }
  .post__lien::after { content: ""; position: absolute; inset: -12px -6px; }
  .pied__contact a { padding: 9px 0; }
  .pied__nav { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .pied__nav a { display: block; padding: 11px 0; }
  .pied__legal a, .pied .credit__nom, .formulaire__note a, .legal__voir a { display: inline-block; padding: 10px 0; }
}

/* --- Impression ----------------------------------------------------------------- */
@media print {
  *, *::before, *::after { color: #000 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important; }
  body { font-size: 11pt; }
  body::after, .evitement, .menu, .menu-bouton, .forme, .souligne, .actus__fleches, .post--fin, .carte-plan, .formulaire,
  .hero__collage, .tirage, .tampon, .bilan__pastille, .pied__slogan, .pied__nav, .pied__fb, .pied__bas img, .credit, .boutons, .bouton, .erreur__pages { display: none !important; }
  .entete { position: static; height: auto; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .entete__in { height: auto; padding: 0 0 12pt; }
  .js [data-revele] { opacity: 1 !important; transform: none !important; }
  .tete, .hero, .intro, .cartes, .cahier, .pile, .grille-prog, .orientation, .mur, .contact, .legal, .citation, .actus, .principes { margin: 0 !important; padding: 12pt 0 !important; }
  .tete__in { min-height: 0; }
  .hero__in, .tete__in, .principes__grille, .cartes__in, .grille-prog__in, .orientation__liste, .contact__tuiles { display: block; }
  .fiche, .carte, .panneau, .tuile, .pile__carte, .post { position: static; transform: none !important; min-height: 0; margin: 0 0 8pt; padding: 6pt 0; border-bottom: 1px solid #bbb; border-radius: 0; break-inside: avoid; }
  .pied__grille > div:nth-child(3) { display: none; }
  .cahier__in { padding: 0; background-image: none !important; }
  .actus__piste { display: block; overflow: visible; padding: 0; }
  .post__image { max-width: 50%; }
  .pied { margin: 0; padding: 12pt 0 0; border-top: 1px solid #000; border-radius: 0; }
  .pied__grille { display: block; }
  h1, h2, h3 { break-after: avoid; }
  .legal a[href^="http"]::after, .post__message a::after { content: " (" attr(href) ")"; font-size: .9em; }
}
