/* L'Atelier des Souvenirs • feuille de style unique
   Thème : le cahier d'écolier, en version soignée.
   Papier crème, encre vert sapin comme le tableau, marge rouge. */

@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/bodoni-moda-normal.woff2?v=c032219ef6') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/bodoni-moda-italic.woff2?v=b737328c13') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-normal.woff2?v=8b74e9bc6e') format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playwrite FR Moderne';
  src: url('../fonts/playwrite-fr-moderne-normal.woff2?v=db33687ce0') format('woff2');
  font-weight: 100 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --papier: #f6f1e7;
  --papier-clair: #fbf8f1;
  --papier-fonce: #ede4d1;
  --kraft: #e3d5b8;
  --encre: #0f3a2c;
  --encre-2: #1e5442;
  --texte: #1f2a25;
  --texte-doux: #56625b;
  --marge: #c8443c;
  --marge-pale: #e7a49c;
  --seyes: #b3cbbd;
  --seyes-fort: #96b4a3;
  --sapin: #0f3a2c;
  --sapin-fonce: #0a281f;
  --craie: #f1ede2;
  --craie-douce: #c9d2c8;
  --laiton: #b4883c;
  --laiton-clair: #d9b56a;
  --bois: #7a4b28;
  --blanc: #fffdf8;

  --f-titre: 'Bodoni Moda', 'Didot', 'Bodoni 72', 'Times New Roman', serif;
  --f-texte: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-main: 'Playwrite FR Moderne', 'Segoe Script', 'Bradley Hand', cursive;

  --largeur: 1240px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --marge-col: clamp(0px, 7vw, 104px);
  --rayon: 4px;
  --ombre-papier: 0 1px 0 rgba(10, 40, 31, 0.06), 0 10px 30px -12px rgba(10, 40, 31, 0.25);
  --ombre-tirage: 0 2px 3px rgba(10, 40, 31, 0.12), 0 18px 40px -14px rgba(10, 40, 31, 0.45);
  --transition: 220ms cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background-color: var(--papier);
  /* grain de papier très léger */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--encre);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--marge);
}

:focus-visible {
  outline: 2px solid var(--marge);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-titre);
  font-weight: 500;
  color: var(--encre);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

[hidden] {
  display: none !important;
}

.evitement {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--encre);
  color: var(--blanc);
  padding: 10px 16px;
  border-radius: var(--rayon);
  text-decoration: none;
}

.evitement:focus {
  top: 12px;
  color: var(--blanc);
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

/* ---------- Le cahier : colonne de marge et trait rouge ---------- */

.cahier {
  display: grid;
  grid-template-columns: var(--marge-col) minmax(0, 1fr);
}

.marge {
  position: relative;
  border-right: 1.5px solid var(--marge-pale);
}

.marge::after {
  /* le double trait rouge des cahiers Seyès */
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 3px;
  border-right: 1px solid var(--marge-pale);
  opacity: 0.55;
}

.marge-num {
  position: sticky;
  top: 110px;
  display: block;
  margin-top: 0.35rem;
  padding-right: 18px;
  text-align: right;
  font-family: var(--f-main);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--marge);
}

.marge-num::after {
  content: '.';
}

.section-corps,
.hero-grille,
.document,
.introuvable {
  padding-left: clamp(0px, 4vw, 56px);
  min-width: 0;
}

/* ---------- Éléments typographiques ---------- */

.annotation {
  font-family: var(--f-main);
  font-size: 1.05rem;
  color: var(--marge);
  margin: 0 0 0.9rem;
  line-height: 1.5;
}

.annotation-craie {
  color: var(--laiton-clair);
}

.souligne {
  font-style: italic;
  text-decoration-line: underline;
  text-decoration-style: double;
  text-decoration-color: var(--marge);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: none;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 450;
}

.chapeau {
  font-size: 1.125rem;
  color: var(--texte-doux);
  max-width: 62ch;
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}

.section-tete {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-tete h2 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  max-width: 20ch;
  margin-bottom: 1.1rem;
}

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

.bouton {
  --fond: var(--encre);
  --texte-b: var(--blanc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75em 1.35em;
  border: 1.5px solid var(--fond);
  border-radius: 999px;
  background: var(--fond);
  color: var(--texte-b);
  font-family: var(--f-texte);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.bouton:hover {
  color: var(--texte-b);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(10, 40, 31, 0.6);
}

.bouton:active {
  transform: translateY(0);
}

.bouton-sapin {
  --fond: var(--sapin);
}

.bouton-sapin:hover {
  background: var(--sapin-fonce);
}

.bouton-encre:hover {
  background: var(--encre-2);
}

.bouton-contour {
  --texte-b: var(--encre);
  background: transparent;
  border-color: var(--encre);
}

.bouton-contour:hover {
  background: var(--encre);
  color: var(--blanc);
}

.bouton-petit {
  min-height: 40px;
  padding: 0.5em 1.1em;
  font-size: 0.94rem;
}

.ico-fleche {
  width: 1.2em;
  height: 0.75em;
  flex: none;
  transition: transform var(--transition);
}

a:hover .ico-fleche,
button:hover .ico-fleche {
  transform: translateX(3px);
}

.ico-sortie {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  vertical-align: 0.05em;
}

/* ---------- Bandeau parents ---------- */

/* Trois fois plus haut que l'en-tête d'origine, à la demande d'Erwan (04/11/2026) :
   c'est la porte d'entrée des parents. */
.bandeau-parents {
  background: var(--sapin-fonce);
  color: var(--craie);
  font-size: 1.6rem;
  line-height: 1.3;
}

.bandeau-parents-int {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.bandeau-parents p {
  margin: 0;
}

.bandeau-etiquette {
  display: inline-block;
  margin-right: 0.6em;
  padding: 0.05em 0.6em;
  border: 1.5px solid rgba(241, 237, 226, 0.45);
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.12em;
}

.bandeau-lien {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 0.5em;
  padding: 0.55em 1.1em;
  border: 1.5px solid var(--laiton-clair);
  border-radius: 999px;
  color: var(--laiton-clair);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
}

.bandeau-lien:hover {
  background: var(--laiton-clair);
  color: var(--sapin-fonce);
}

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

.entete {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 231, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.entete.est-defile {
  border-bottom-color: rgba(10, 40, 31, 0.1);
  box-shadow: 0 6px 20px -16px rgba(10, 40, 31, 0.5);
}

.entete-int {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  transition: min-height var(--transition);
}

.entete.est-defile .entete-int {
  min-height: 72px;
}

.logo {
  display: inline-block;
  color: var(--encre);
  flex: none;
}

.logo-trace {
  display: block;
  width: 112px;
  aspect-ratio: 720 / 515;
  background-color: currentColor;
  -webkit-mask: url('../img/logo.webp?v=590f73fa0a') center / contain no-repeat;
  mask: url('../img/logo.webp?v=590f73fa0a') center / contain no-repeat;
  transition: width var(--transition);
}

.entete.est-defile .logo-trace {
  width: 86px;
}

.logo:hover {
  color: var(--encre-2);
}

.nav-liste {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-liste a:not(.bouton) {
  position: relative;
  color: var(--encre);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 6px 0;
}

.nav-liste a:not(.bouton)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--marge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-liste a:not(.bouton):hover::after,
.nav-liste a.est-actif::after {
  transform: scaleX(1);
}

.nav-bouton {
  display: none;
}

/* ---------- Héros ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(36px, 6vw, 84px) 0 clamp(56px, 8vw, 110px);
}

.hero::before {
  /* réglure Seyès discrète, qui s'efface vers le bas */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to bottom, transparent 31px, rgba(150, 180, 163, 0.32) 31px, rgba(150, 180, 163, 0.32) 32px),
    linear-gradient(to bottom, transparent 7px, rgba(179, 203, 189, 0.14) 7px, rgba(179, 203, 189, 0.14) 8px);
  background-size: 100% 32px, 100% 8px;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
  pointer-events: none;
}

.hero .marge {
  border-right-color: var(--marge-pale);
}

.hero-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

.date-cursive {
  font-family: var(--f-main);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  color: var(--encre-2);
  margin-bottom: 1.4rem;
  min-height: 1.6em;
}

.hero h1 {
  font-size: clamp(2.3rem, 1.1rem + 3.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
  max-width: 17ch;
}

.hero h1 em {
  display: inline-block;
}

.hero-chapeau {
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  color: var(--texte-doux);
  max-width: 54ch;
  margin-bottom: 2.2rem;
}

.portes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 540px;
}

.porte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 64px 16px 22px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  min-height: 100%;
}

.porte-parents {
  background: var(--encre);
  color: var(--blanc);
}

.porte-ecoles {
  background: var(--blanc);
  color: var(--encre);
  box-shadow: inset 0 0 0 1.5px rgba(10, 40, 31, 0.18);
}

.porte:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -16px rgba(10, 40, 31, 0.6);
}

.porte-parents:hover {
  color: var(--blanc);
  background: var(--encre-2);
}

.porte-ecoles:hover {
  color: var(--encre);
  box-shadow: inset 0 0 0 1.5px var(--encre), 0 14px 30px -16px rgba(10, 40, 31, 0.5);
}

.porte-sur {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.porte-titre {
  font-family: var(--f-titre);
  font-size: 1.32rem;
  line-height: 1.25;
}

.porte-fleche {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.porte-fleche .ico-fleche {
  width: 22px;
  height: 14px;
}

/* La scène : tirages, ardoise, gommette */

.hero-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1 / 1.12;
  justify-self: center;
  container-type: inline-size;
}

.tirage {
  position: absolute;
  margin: 0;
  padding: 3.2% 3.2% 0;
  background: var(--blanc);
  box-shadow: var(--ombre-tirage);
  border-radius: 2px;
}

.tirage img {
  width: 100%;
  aspect-ratio: 2 / 2.6;
  object-fit: cover;
  object-position: center 20%;
  background: var(--papier-fonce);
}

.tirage figcaption {
  font-family: var(--f-main);
  font-size: clamp(0.62rem, 0.5rem + 0.6vw, 0.9rem);
  color: var(--encre-2);
  text-align: center;
  padding: 0.8em 0 1em;
  line-height: 1.3;
}

.tirage-a {
  width: 50%;
  left: 6%;
  top: 2%;
  transform: rotate(-4.5deg);
  z-index: 2;
  animation: poser-a 900ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.tirage-b {
  width: 42%;
  right: 3%;
  top: 13%;
  transform: rotate(5deg);
  z-index: 1;
  animation: poser-b 900ms 260ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.trombone {
  position: absolute;
  top: -5%;
  left: 14%;
  width: 7%;
  height: auto;
  color: #9aa3ad;
  transform: rotate(8deg);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.ardoise {
  position: absolute;
  left: 19%;
  bottom: 6%;
  width: 62%;
  z-index: 3;
  padding: 3.4%;
  border-radius: 6px;
  background:
    linear-gradient(135deg, #9a6638 0%, #7a4b28 40%, #a5703f 70%, #6d4122 100%);
  box-shadow: var(--ombre-tirage), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: rotate(-2deg);
  animation: poser-ardoise 900ms 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ardoise-int {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  padding: 7% 6%;
  border-radius: 3px;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.07), transparent 60%),
    radial-gradient(80% 60% at 80% 90%, rgba(255, 255, 255, 0.05), transparent 70%),
    #23302b;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.55);
  color: var(--craie);
  text-align: center;
  font-family: var(--f-main);
  text-shadow: 0 0 1px rgba(241, 237, 226, 0.65), 0 0 6px rgba(241, 237, 226, 0.18);
}

.ardoise-l1 {
  font-size: clamp(0.85rem, 0.55rem + 1.1vw, 1.3rem);
}

.ardoise-l2 {
  font-size: clamp(0.72rem, 0.5rem + 0.8vw, 1.02rem);
  opacity: 0.88;
}

.ardoise-l3 {
  margin-top: 0.2em;
  font-family: var(--f-titre);
  font-size: clamp(0.9rem, 0.6rem + 1vw, 1.3rem);
  letter-spacing: 0.12em;
  opacity: 0.92;
}

.gommette {
  position: absolute;
  right: 4%;
  top: 4%;
  z-index: 4;
  display: grid;
  place-content: center;
  width: 19%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #f1d48f, var(--laiton) 62%, #8e6526);
  box-shadow: 0 6px 14px -6px rgba(60, 40, 10, 0.6), inset 0 0 0 3px rgba(255, 245, 220, 0.35), inset 0 0 0 5px rgba(120, 85, 30, 0.25);
  color: #3f2b0b;
  font-family: var(--f-titre);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(0.62rem, 0.4rem + 0.8vw, 0.95rem);
  line-height: 1.05;
  text-align: center;
  transform: rotate(12deg);
  animation: poser-gommette 700ms 760ms cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

.gommette span {
  display: block;
}

@keyframes poser-a {
  from { opacity: 0; transform: translateY(18px) rotate(-9deg); }
}
@keyframes poser-b {
  from { opacity: 0; transform: translateY(18px) rotate(10deg); }
}
@keyframes poser-ardoise {
  from { opacity: 0; transform: translateY(24px) rotate(2deg); }
}
@keyframes poser-gommette {
  from { opacity: 0; transform: scale(0.4) rotate(-30deg); }
}

/* ---------- Parents : carte murale et choix de région ---------- */

.section-parents {
  background: var(--papier-fonce);
  box-shadow: inset 0 1px 0 rgba(10, 40, 31, 0.06), inset 0 -1px 0 rgba(10, 40, 31, 0.06);
}

.parents-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.carte-murale {
  position: relative;
  padding: 0 8px;
  filter: drop-shadow(0 18px 24px rgba(10, 40, 31, 0.18));
}

.carte-baguette {
  display: block;
  position: relative;
  z-index: 2;
  height: 14px;
  margin: 0 -8px;
  border-radius: 7px;
  background: linear-gradient(to bottom, #a26c3c, #6e4222 70%, #5a361b);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.carte-baguette-haut::before {
  /* la cordelette */
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 46%;
  height: 34px;
  transform: translateX(-50%);
  border: 1.5px solid #6e4222;
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.carte-toile {
  position: relative;
  background: #f4ecda;
  background-image:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(to right, rgba(122, 75, 40, 0.06), transparent 6%, transparent 94%, rgba(122, 75, 40, 0.06));
  padding: 10px 6px 6px;
}

.carte-cartouche {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 14px 10px;
  border: 1px solid rgba(10, 40, 31, 0.55);
  outline: 1px solid rgba(10, 40, 31, 0.55);
  outline-offset: 3px;
  background: rgba(244, 236, 218, 0.92);
}

.cartouche-sur {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.cartouche-titre {
  font-family: var(--f-titre);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--encre);
  line-height: 1.2;
}

.carte {
  width: 100%;
  height: auto;
  overflow: visible;
}

.carte .vague {
  stroke: var(--seyes-fort);
  stroke-opacity: 0.75;
  fill: none;
}

.carte .vague-papier {
  stroke: #f4ecda;
  fill: none;
}

.carte .terre {
  fill: #e9dcbf;
}

.carte .cote {
  fill: none;
  stroke: var(--encre);
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.carte .frontiere {
  fill: none;
  stroke: var(--encre-2);
  stroke-width: 1.1;
  stroke-dasharray: 7 3 1.5 3;
  stroke-linejoin: round;
  opacity: 0.8;
}

.carte .zone {
  fill: var(--sapin);
  fill-opacity: 0.08;
  stroke: var(--sapin);
  stroke-opacity: 0.35;
  stroke-width: 1;
  stroke-dasharray: 2 4;
  transition: fill-opacity var(--transition), stroke-opacity var(--transition);
}

.carte .zone.est-choisie {
  fill: var(--marge);
  fill-opacity: 0.14;
  stroke: var(--marge);
  stroke-opacity: 0.7;
}

.carte .punaise {
  cursor: pointer;
  outline: none;
}

.carte .punaise-halo {
  fill: transparent;
}

.carte .punaise-ombre {
  fill: rgba(10, 40, 31, 0.28);
}

.carte .punaise-tete {
  fill: var(--sapin);
  stroke: var(--blanc);
  stroke-width: 1.5;
  transition: fill var(--transition), r var(--transition);
}

.carte .punaise-reflet {
  fill: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.carte .punaise-nom {
  font-family: var(--f-titre);
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
  fill: var(--encre);
  paint-order: stroke;
  stroke: #f4ecda;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.carte .punaise:hover .punaise-tete,
.carte .punaise:focus-visible .punaise-tete,
.carte .punaise.est-choisie .punaise-tete {
  fill: var(--marge);
}

.carte .punaise:focus-visible .punaise-halo {
  fill: none;
  stroke: var(--marge);
  stroke-width: 2;
}

.carte .punaise.est-choisie .punaise-nom {
  fill: var(--marge);
}

.carte .rose-cercle {
  fill: none;
  stroke: var(--encre-2);
  stroke-width: 0.8;
  opacity: 0.6;
}

.carte .rose-aiguille {
  fill: #f4ecda;
  stroke: var(--encre-2);
  stroke-width: 0.8;
}

.carte .rose-nord {
  fill: var(--encre);
}

.carte .rose-n,
.carte .echelle-txt {
  font-family: var(--f-titre);
  font-size: 12px;
  fill: var(--encre);
}

.carte .echelle-plein {
  fill: var(--encre);
}

.carte .echelle-vide {
  fill: #f4ecda;
  stroke: var(--encre);
  stroke-width: 0.8;
}

.parents-choix {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.onglets-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.onglet-region {
  appearance: none;
  min-height: 44px;
  padding: 0.5em 1.05em;
  border: 1.5px solid rgba(10, 40, 31, 0.25);
  border-radius: 999px;
  background: var(--papier-clair);
  color: var(--encre);
  font: 600 0.95rem/1.2 var(--f-texte);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.onglet-region:hover {
  border-color: var(--encre);
}

.onglet-region[aria-pressed='true'] {
  background: var(--encre);
  border-color: var(--encre);
  color: var(--blanc);
}

.recherche-cp label {
  display: block;
  font-size: 0.95rem;
  color: var(--texte-doux);
  margin-bottom: 8px;
}

.recherche-cp-ligne {
  display: flex;
  gap: 8px;
}

.recherche-cp input {
  flex: 1;
  min-width: 0;
  max-width: 200px;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid rgba(10, 40, 31, 0.25);
  border-radius: 6px;
  background: var(--papier-clair);
  color: var(--encre);
  font: 500 1.1rem var(--f-texte);
  letter-spacing: 0.12em;
}

.recherche-cp input:focus {
  outline: none;
  border-color: var(--encre);
  box-shadow: 0 0 0 3px rgba(10, 40, 31, 0.12);
}

.recherche-cp-resultat {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--encre);
}

.recherche-cp-resultat.est-hors-zone {
  color: var(--marge);
}

.regions-panneaux {
  display: grid;
  gap: 14px;
}

.region-panneau {
  position: relative;
  padding: 26px 26px 24px;
  border-radius: 6px;
  background: var(--papier-clair);
  box-shadow: var(--ombre-papier);
  /* petit carreau Seyès sur la fiche */
  background-image:
    linear-gradient(to right, transparent 31px, rgba(200, 68, 60, 0.35) 31px, rgba(200, 68, 60, 0.35) 32px, transparent 32px),
    linear-gradient(to bottom, transparent 23px, rgba(179, 203, 189, 0.25) 23px, rgba(179, 203, 189, 0.25) 24px);
  background-size: 100% 100%, 100% 24px;
  background-position: 0 0, 0 4px;
  padding-left: 52px;
}

.js .region-panneau {
  animation: apparaitre 360ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.region-numero {
  position: absolute;
  left: 6px;
  top: 26px;
  width: 22px;
  margin: 0;
  font-family: var(--f-main);
  font-size: 0.8rem;
  color: var(--marge);
  text-align: center;
}

.region-titre {
  font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.2rem);
  margin-bottom: 0.3rem;
}

.region-atelier {
  font-weight: 600;
  color: var(--encre-2);
  margin-bottom: 1.2rem;
}

.region-atelier span {
  font-weight: 400;
  color: var(--texte-doux);
}

.bouton-commande {
  width: 100%;
  justify-content: space-between;
  border-radius: 8px;
  padding: 0.85em 1.2em;
  text-align: left;
}

.bouton-commande-txt {
  display: flex;
  flex-direction: column;
}

.bouton-commande-lib {
  font-size: 1.05rem;
}

.bouton-commande-dom {
  font-weight: 400;
  font-size: 0.86rem;
  opacity: 0.78;
  letter-spacing: 0.02em;
}

.region-autres {
  margin: 14px 0 0;
}

.lien-secondaire {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35em;
  font-weight: 600;
  font-size: 0.97rem;
}

.domaine {
  font-weight: 400;
  color: var(--texte-doux);
}

.parents-note {
  margin: 0;
  font-size: 0.93rem;
  color: var(--texte-doux);
}

@keyframes apparaitre {
  from { opacity: 0; transform: translateY(8px); }
}

/* ---------- Établissements : emploi du temps ---------- */

.emploi-du-temps {
  list-style: none;
  margin: 0 0 clamp(56px, 8vw, 96px);
  padding: 0;
  border-top: 2px solid var(--encre);
}

.edt-ligne {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: 8px 32px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(10, 40, 31, 0.16);
}

.edt-moment {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--f-titre);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--texte-doux);
}

.edt-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1.5px solid var(--marge);
  border-radius: 50%;
  font-family: var(--f-texte);
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--marge);
  transform: translateY(-2px);
}

.edt-contenu h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem);
  margin-bottom: 0.4rem;
}

.edt-contenu p {
  margin: 0;
  max-width: 66ch;
  color: var(--texte-doux);
}

.engagements-titre {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  margin-bottom: 28px;
}

.engagements-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.engagement {
  position: relative;
  padding: 26px 24px 22px;
  border-radius: 6px;
  background: var(--papier-clair);
  box-shadow: var(--ombre-papier);
}

.engagement h3 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  padding-right: 34px;
}

.engagement p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--texte-doux);
}

.bon-point {
  position: absolute;
  right: 18px;
  top: 20px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f1d48f, var(--laiton) 62%, #8e6526);
  box-shadow: inset 0 0 0 2px rgba(255, 245, 220, 0.4);
}

.bon-point::after {
  /* petite étoile du bon point */
  content: '';
  position: absolute;
  inset: 6px;
  background: #fff6dc;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.9;
}

/* ---------- Décors : le tableau noir ---------- */

.section-decors {
  background-color: var(--sapin);
  background-image:
    radial-gradient(90% 70% at 20% 10%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(70% 60% at 85% 85%, rgba(255, 255, 255, 0.04), transparent 70%);
  color: var(--craie);
}

.section-decors .marge {
  border-right-color: rgba(241, 237, 226, 0.22);
}

.section-decors .marge::after {
  border-right-color: rgba(241, 237, 226, 0.22);
}

.section-decors .marge-num {
  color: var(--laiton-clair);
}

.section-decors h2 {
  color: var(--craie);
}

.section-decors h2 em {
  text-decoration: underline;
  text-decoration-color: var(--laiton-clair);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.section-decors .chapeau {
  color: var(--craie-douce);
}

.decors-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

.decors-grille .section-tete {
  margin-bottom: 0;
}

.decors-choix {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.decor-bouton {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0.45em 1.1em 0.45em 0.5em;
  border: 1.5px dashed rgba(241, 237, 226, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--craie);
  font: 500 0.98rem/1.2 var(--f-texte);
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}

.decor-bouton:hover {
  border-color: var(--craie);
}

.decor-bouton[aria-pressed='true'] {
  border-style: solid;
  border-color: var(--craie);
  background: var(--craie);
  color: var(--sapin);
}

.decor-pastille {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
  flex: none;
}

.decor-pastille-classe { background: linear-gradient(135deg, #e8c48a, #8a6b4a 55%, #3d6a9a); }
.decor-pastille-studio { background: radial-gradient(circle at 40% 35%, #3f7a59, #133826); }
.decor-pastille-noel { background: radial-gradient(circle at 30% 30%, #ffd98a, #a3402e 45%, #2b2016); }
.decor-pastille-palmes { background: linear-gradient(135deg, #ededed, #6d6d6d 50%, #1b1b1b); }

.decors-note {
  margin: 18px 0 0;
  font-family: var(--f-main);
  font-size: 0.95rem;
  color: var(--laiton-clair);
}

.decors-tirage {
  margin: 0;
  justify-self: center;
  width: min(100%, 400px);
  padding: 14px 14px 0;
  background: var(--blanc);
  border-radius: 2px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  transform: rotate(2deg);
}

.decors-cadre {
  position: relative;
  aspect-ratio: 560 / 838;
  overflow: hidden;
  background: #1a1a1a;
}

.decors-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms ease;
}

.decors-img.est-visible {
  opacity: 1;
}

.decors-tirage figcaption {
  padding: 12px 0 16px;
  text-align: center;
  font-family: var(--f-main);
  font-size: 0.92rem;
  color: var(--encre-2);
}

/* ---------- Ateliers : fiches bristol ---------- */

.fiches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.fiche {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 0 22px;
  border-radius: 3px;
  background-color: var(--blanc);
  background-image: linear-gradient(to bottom, transparent 33px, rgba(150, 180, 163, 0.4) 33px, rgba(150, 180, 163, 0.4) 34px);
  background-size: 100% 34px;
  background-position: 0 92px;
  background-repeat: repeat-y;
  box-shadow: var(--ombre-papier);
  scroll-margin-top: 110px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.fiche:nth-child(odd) {
  transform: rotate(-0.6deg);
}

.fiche:nth-child(even) {
  transform: rotate(0.5deg);
}

.fiche:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 2px 3px rgba(10, 40, 31, 0.08), 0 22px 40px -18px rgba(10, 40, 31, 0.4);
}

.fiche:target {
  box-shadow: 0 0 0 2px var(--marge), var(--ombre-papier);
}

.fiche-tete {
  padding: 22px 26px 14px;
  border-bottom: 2px solid var(--marge);
  background: var(--blanc);
}

.fiche-region {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marge);
}

.fiche-titre {
  font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.8rem);
}

.fiche-lignes {
  list-style: none;
  margin: 0;
  padding: 6px 26px 0;
  flex: 1;
}

.fiche-lignes li {
  display: flex;
  gap: 14px;
  min-height: 34px;
  align-items: baseline;
  padding-top: 6px;
  line-height: 1.4;
  font-size: 0.98rem;
}

.fiche-cle {
  flex: none;
  min-width: 82px;
  font-family: var(--f-main);
  font-size: 0.78rem;
  color: var(--marge);
}

.fiche-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 18px 26px 0;
}

.fiche-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  align-self: flex-start;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--marge);
  padding-bottom: 2px;
}

/* ---------- Questions ---------- */

.section-questions {
  background: var(--papier-fonce);
}

.questions-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px clamp(28px, 4vw, 56px);
}

.questions-public {
  font-family: var(--f-main);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--marge);
  margin-bottom: 10px;
}

.question {
  border-bottom: 1px solid rgba(10, 40, 31, 0.18);
}

.question summary {
  position: relative;
  list-style: none;
  padding: 18px 44px 18px 0;
  font-family: var(--f-titre);
  font-size: 1.22rem;
  line-height: 1.3;
  color: var(--encre);
  cursor: pointer;
}

.question summary::-webkit-details-marker {
  display: none;
}

.question summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background:
    linear-gradient(var(--marge), var(--marge)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--marge), var(--marge)) center / 1.5px 100% no-repeat;
  transition: transform var(--transition);
}

.question[open] summary::after {
  transform: rotate(45deg);
}

.question summary:hover {
  color: var(--marge);
}

.question p {
  margin: -4px 0 20px;
  color: var(--texte-doux);
  max-width: 60ch;
}

/* ---------- Contact : fiche de liaison ---------- */

.contact-grille {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-tete {
  position: sticky;
  top: 110px;
}

.contact-direct {
  list-style: none;
  margin: 28px 0;
  padding: 0;
}

.contact-direct li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(10, 40, 31, 0.14);
  font-size: 1.05rem;
}

.contact-direct a {
  font-weight: 600;
  text-decoration: none;
}

.contact-parents {
  padding: 16px 18px;
  border-left: 3px solid var(--marge);
  background: var(--papier-clair);
  font-size: 0.97rem;
}

.fiche-liaison {
  position: relative;
  border-radius: 4px;
  background-color: var(--blanc);
  box-shadow: var(--ombre-papier);
  overflow: hidden;
}

.liaison-tete {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 22px 28px 16px;
  background: var(--encre);
  color: var(--craie);
}

.liaison-titre {
  margin: 0;
  font-family: var(--f-titre);
  font-style: italic;
  font-size: 1.6rem;
}

.liaison-sous {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.liaison-champs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  padding: 26px 28px 8px;
}

.champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.champ-large {
  grid-column: 1 / -1;
}

.champ label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--encre-2);
}

.facultatif {
  font-weight: 400;
  color: var(--texte-doux);
  font-size: 0.8rem;
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1.5px solid var(--seyes-fort);
  border-radius: 0;
  background: transparent;
  color: var(--texte);
  font: 400 1rem/1.4 var(--f-texte);
  transition: border-color var(--transition), background-color var(--transition);
}

.champ textarea {
  resize: vertical;
  min-height: 136px;
  border: 1.5px solid var(--seyes);
  border-radius: 4px;
  background-image: linear-gradient(to bottom, transparent 27px, rgba(179, 203, 189, 0.35) 27px, rgba(179, 203, 189, 0.35) 28px);
  background-size: 100% 28px;
  background-attachment: local;
  line-height: 28px;
  padding: 0 12px;
}

.champ select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230f3a2c' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--encre);
  background-color: rgba(179, 203, 189, 0.12);
}

.champ.est-en-erreur input,
.champ.est-en-erreur textarea,
.champ.est-en-erreur select {
  border-color: var(--marge);
}

.champ-erreur {
  margin: 0;
  font-size: 0.85rem;
  color: var(--marge);
}

.champ-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.champ-case {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.champ-case input {
  width: 22px;
  min-height: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  accent-color: var(--sapin);
}

.champ-case label {
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--texte-doux);
}

.liaison-pied {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 18px 28px 28px;
}

.formulaire-etat {
  margin: 0;
  font-size: 0.95rem;
  color: var(--texte-doux);
}

.formulaire-etat.est-erreur {
  color: var(--marge);
}

.formulaire-etat a {
  font-weight: 600;
}

.tampon {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
  background: rgba(255, 253, 248, 0.96);
  text-align: center;
  animation: apparaitre 300ms ease both;
}

.tampon-marque {
  display: grid;
  place-content: center;
  width: 170px;
  aspect-ratio: 1;
  margin: 0;
  border: 4px double var(--marge);
  border-radius: 50%;
  color: var(--marge);
  font-family: var(--f-titre);
  font-size: 2rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  transform: rotate(-12deg);
  animation: tamponner 520ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.tampon-marque span {
  display: block;
}

.tampon-texte {
  max-width: 34ch;
  font-size: 1.1rem;
  color: var(--encre);
}

@keyframes tamponner {
  from { opacity: 0; transform: scale(1.8) rotate(-24deg); }
}

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

.pied {
  background: var(--sapin-fonce);
  background-image: radial-gradient(80% 60% at 10% 0%, rgba(255, 255, 255, 0.05), transparent 60%);
  color: var(--craie-douce);
  padding: clamp(56px, 7vw, 88px) 0 28px;
  font-size: 0.96rem;
}

.pied a {
  color: var(--craie);
  text-decoration: none;
}

.pied a:hover {
  color: var(--laiton-clair);
}

.pied-haut {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(241, 237, 226, 0.16);
}

.logo-craie {
  color: var(--craie);
}

.logo-craie .logo-trace {
  width: 168px;
}

.pied-devise {
  margin: 18px 0 14px;
  font-family: var(--f-titre);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--craie);
}

.pied-titre {
  margin-bottom: 14px;
  font-family: var(--f-texte);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--laiton-clair);
}

.pied ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pied li {
  margin-bottom: 9px;
  line-height: 1.35;
}

.pied-domaine {
  display: block;
  font-size: 0.82rem;
  color: var(--craie-douce);
  opacity: 0.75;
}

.pied-bas {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 24px;
  font-size: 0.86rem;
}

.pied-bas p {
  margin: 0;
}

.pied-craie {
  font-family: var(--f-main);
  color: var(--craie);
  opacity: 0.7;
}

/* ---------- Pages de texte (mentions, confidentialité) ---------- */

.page-document main,
.page-404 main {
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px);
}

.document {
  max-width: 820px;
}

.document h1 {
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem);
  margin-bottom: 1.6rem;
}

.document h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.7rem);
  margin: 2.4rem 0 0.8rem;
}

.document p,
.document li {
  color: var(--texte);
  max-width: 70ch;
}

.document-chapeau {
  font-size: 1.15rem;
  padding: 18px 20px;
  border-left: 3px solid var(--marge);
  background: var(--papier-clair);
}

.tableau-infos {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid rgba(10, 40, 31, 0.14);
}

.tableau-infos dt,
.tableau-infos dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(10, 40, 31, 0.14);
}

.tableau-infos dt {
  font-family: var(--f-main);
  font-size: 0.8rem;
  color: var(--marge);
  padding-right: 16px;
  line-height: 1.9;
}

.document-maj {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--texte-doux);
}

/* ---------- 404 ---------- */

.introuvable {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 46vh;
}

.introuvable h1 {
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.2rem);
  margin-bottom: 1.2rem;
}

.ardoise-404 {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  max-width: 340px;
  animation: none;
}

.ardoise-404 .ardoise-l1 {
  font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem);
}

.ardoise-404 .ardoise-l2 {
  font-size: 1rem;
}

.introuvable-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.6rem;
}

/* ---------- Apparition au défilement ----------
   Animation pilotée par le défilement, sans JavaScript : les navigateurs qui ne
   la connaissent pas affichent simplement le contenu, sans effet. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-tete,
    .edt-ligne,
    .engagement,
    .fiche,
    .question,
    .carte-murale,
    .decors-tirage,
    .fiche-liaison {
      animation: monter linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@keyframes monter {
  from {
    opacity: 0;
    translate: 0 26px;
  }
}

/* ---------- Écrans moyens ---------- */

@media (max-width: 1080px) {
  .engagements-liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pied-haut {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pied-marque {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  :root {
    --marge-col: 0px;
  }

  .cahier {
    grid-template-columns: minmax(0, 1fr);
  }

  .marge {
    display: none;
  }

  .section-corps,
  .hero-grille,
  .document,
  .introuvable {
    padding-left: 0;
  }

  .entete-int,
  .entete.est-defile .entete-int {
    min-height: 74px;
  }

  .logo-trace,
  .entete.est-defile .logo-trace {
    width: 86px;
  }

  .nav-bouton {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1.5px solid rgba(10, 40, 31, 0.25);
    border-radius: 999px;
    background: transparent;
    color: var(--encre);
    font: 600 0.95rem var(--f-texte);
    cursor: pointer;
  }

  .nav-bouton-traits {
    position: relative;
    width: 18px;
    height: 12px;
    border-top: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transition: border-color var(--transition);
  }

  .nav-bouton-traits::before,
  .nav-bouton-traits::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1.5px;
    margin-top: -0.75px;
    background: currentColor;
    transition: transform var(--transition);
  }

  .nav-bouton[aria-expanded='true'] .nav-bouton-traits {
    border-color: transparent;
  }

  .nav-bouton[aria-expanded='true'] .nav-bouton-traits::before {
    transform: rotate(45deg);
  }

  .nav-bouton[aria-expanded='true'] .nav-bouton-traits::after {
    transform: rotate(-45deg);
  }

  .js .nav-liste {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gouttiere) 22px;
    background: var(--papier);
    border-bottom: 1px solid rgba(10, 40, 31, 0.12);
    box-shadow: 0 18px 30px -20px rgba(10, 40, 31, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition), visibility 0s linear 220ms;
  }

  .js .nav-liste.est-ouverte {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--transition), transform var(--transition), visibility 0s;
  }

  .nav-liste li {
    border-bottom: 1px solid rgba(10, 40, 31, 0.1);
  }

  .nav-liste li.nav-cta {
    border: 0;
    padding-top: 16px;
  }

  .nav-liste a:not(.bouton) {
    display: block;
    padding: 14px 0;
    font-size: 1.08rem;
  }

  .nav-liste a:not(.bouton)::after {
    display: none;
  }

  .nav-cta .bouton {
    width: 100%;
    min-height: 48px;
  }

  html:not(.js) .nav-bouton {
    display: none;
  }

  html:not(.js) .nav-liste {
    flex-wrap: wrap;
    gap: 6px 16px;
  }

  .hero-grille {
    grid-template-columns: 1fr;
  }

  .hero-scene {
    max-width: 460px;
    margin-top: 12px;
  }

  .hero h1 {
    max-width: 16ch;
  }

  .parents-grille,
  .decors-grille,
  .contact-grille {
    grid-template-columns: 1fr;
  }

  .carte-murale {
    max-width: 560px;
    width: 100%;
    justify-self: center;
    order: 2;
    margin-top: 12px;
  }

  .contact-tete {
    position: static;
  }

  .introuvable {
    grid-template-columns: 1fr;
  }
}

/* ---------- Téléphones ---------- */

@media (max-width: 700px) {
  body {
    font-size: 1rem;
  }

  html {
    scroll-padding-top: 76px;
  }

  .bandeau-parents {
    font-size: 1.15rem;
  }

  .bandeau-parents-int {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .bandeau-lien {
    justify-content: center;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-scene {
    max-width: 380px;
  }

  .portes {
    grid-template-columns: 1fr;
  }

  .edt-ligne {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }

  .engagements-liste,
  .fiches,
  .questions-grille {
    grid-template-columns: 1fr;
  }

  .fiche:nth-child(odd),
  .fiche:nth-child(even) {
    transform: none;
  }

  .region-panneau {
    padding: 22px 18px 20px 44px;
    background-image:
      linear-gradient(to right, transparent 27px, rgba(200, 68, 60, 0.35) 27px, rgba(200, 68, 60, 0.35) 28px, transparent 28px),
      linear-gradient(to bottom, transparent 23px, rgba(179, 203, 189, 0.25) 23px, rgba(179, 203, 189, 0.25) 24px);
  }

  .region-numero {
    left: 3px;
  }

  .liaison-champs {
    grid-template-columns: 1fr;
    padding: 22px 18px 6px;
  }

  .liaison-tete,
  .liaison-pied {
    padding-left: 18px;
    padding-right: 18px;
  }

  .liaison-pied .bouton {
    width: 100%;
  }

  .carte-cartouche {
    top: 10px;
    left: 10px;
    padding: 5px 10px 7px;
  }

  .cartouche-titre {
    font-size: 0.95rem;
  }

  .cartouche-sur {
    font-size: 0.56rem;
  }

  .pied-haut {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }

  .tableau-infos {
    grid-template-columns: 1fr;
  }

  .tableau-infos dt {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .tableau-infos dd {
    padding-top: 2px;
  }

  .decors-tirage {
    width: min(86%, 360px);
  }
}

@media (max-width: 380px) {
  .pied-haut {
    grid-template-columns: 1fr;
  }

  .bandeau-etiquette {
    display: none;
  }
}

/* ---------- Mouvements réduits ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}

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

@media print {
  .bandeau-parents,
  .entete,
  .hero-scene,
  .carte-murale,
  .section-decors,
  .fiche-liaison,
  .pied-craie {
    display: none !important;
  }

  body {
    background: #fff;
  }
}

/* Les textes de la scène suivent la taille de la scène elle-même. */
@supports (font-size: 1cqi) {
  .tirage figcaption { font-size: 2.7cqi; }
  .ardoise-l1 { font-size: 4.6cqi; white-space: nowrap; }
  .ardoise-l2 { font-size: 3.5cqi; }
  .ardoise-l3 { font-size: 4.4cqi; }
  .gommette { font-size: 3cqi; }
  .ardoise-404 .ardoise-l1 { font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); }
  .ardoise-404 .ardoise-l2 { font-size: 1rem; }
}

/* En-tête sans photo : l'ardoise seule, posée sur la page. */
.hero-scene-ardoise {
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.hero-scene-ardoise .ardoise {
  position: relative;
  left: auto;
  bottom: auto;
  width: min(100%, 420px);
}

.hero-scene-ardoise .gommette {
  top: 4px;
  right: 6%;
  width: 92px;
  font-size: 0.95rem;
}

@supports (font-size: 1cqi) {
  .hero-scene-ardoise .ardoise-l1 { font-size: clamp(1.1rem, 0.8rem + 1vw, 1.6rem); }
  .hero-scene-ardoise .ardoise-l2 { font-size: clamp(0.9rem, 0.7rem + 0.6vw, 1.2rem); }
  .hero-scene-ardoise .ardoise-l3 { font-size: clamp(1.1rem, 0.8rem + 1vw, 1.6rem); }
  .hero-scene-ardoise .gommette { font-size: 0.95rem; }
}

/* ---------- Services, engagements, ateliers ---------- */

.services-liste {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-engagements,
.section-bloc-pair {
  background: var(--papier-fonce);
}

.fiche-titre a {
  color: inherit;
  text-decoration: none;
}

.fiche-titre a:hover {
  color: var(--marge);
}

.region-atelier a {
  color: inherit;
  text-decoration-color: var(--marge-pale);
}

img.decor-pastille {
  object-fit: cover;
  background: var(--papier-fonce);
}

/* ---------- Pages des ateliers ---------- */

.fil-ariane {
  margin-bottom: 1.4rem;
  font-size: 0.88rem;
  color: var(--texte-doux);
}

.fil-ariane a {
  color: inherit;
}

.hero-atelier h1 {
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem);
  max-width: 14ch;
  margin-bottom: 0.9rem;
}

/* Sur-titre manuscrit placé dans le h1, pour que le titre complet
   (« Photographe scolaire en Île-de-France ») soit lu par les moteurs. */
.hero-atelier h1 .h1-sur {
  display: block;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
}

.hero-accroche {
  font-family: var(--f-titre);
  font-style: italic;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem);
  line-height: 1.35;
  color: var(--encre-2);
  max-width: 34ch;
  margin-bottom: 1.4rem;
}

.hero-intro p {
  max-width: 58ch;
  font-size: 1.06rem;
  color: var(--texte-doux);
}

.hero-actions {
  margin: 1.6rem 0 0;
}

.hero-scene-atelier {
  aspect-ratio: 1 / 1.12;
  max-width: 500px;
}

.hero-scene-atelier .tirage-a {
  width: 56%;
  left: 24%;
  top: 0;
}

.hero-scene-atelier .ardoise {
  left: 4%;
  bottom: 3%;
  width: 66%;
}

@supports (font-size: 1cqi) {
  .hero-scene-atelier .ardoise-l1 { font-size: 4.8cqi; white-space: normal; }
  .hero-scene-atelier .ardoise-l2 { font-size: 3.4cqi; }
  .hero-scene-atelier .ardoise-l3 { font-size: 4cqi; }
}

.encart-parents {
  background: var(--encre);
  color: var(--craie);
  padding-block: clamp(32px, 5vw, 48px);
}

.encart-parents-int {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.encart-parents .annotation {
  color: var(--laiton-clair);
  margin-bottom: 0.4rem;
}

.encart-titre {
  color: var(--craie);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
}

.encart-texte {
  margin: 0.5rem 0 0;
  color: var(--craie-douce);
  max-width: 52ch;
}

.encart-bouton {
  flex: 0 1 400px;
  min-width: 0;
}

.encart-parents .bouton-commande {
  --fond: var(--blanc);
  --texte-b: var(--encre);
}

.encart-parents .bouton-commande:hover {
  background: var(--craie);
  color: var(--encre);
}

.encart-parents .lien-secondaire,
.encart-parents .lien-secondaire:hover {
  color: var(--craie);
}

.encart-parents .domaine {
  color: var(--craie-douce);
}

.citation-atelier {
  background-color: var(--sapin);
  background-image: radial-gradient(80% 70% at 30% 20%, rgba(255, 255, 255, 0.07), transparent 60%);
  padding-block: clamp(48px, 7vw, 88px);
}

.citation-craie {
  max-width: 30ch;
  margin: 0 auto;
  font-family: var(--f-main);
  font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2.1rem);
  line-height: 1.7;
  text-align: center;
  color: var(--craie);
  text-shadow: 0 0 1px rgba(241, 237, 226, 0.65), 0 0 8px rgba(241, 237, 226, 0.18);
}

.bloc-texte p {
  max-width: 68ch;
  font-size: 1.08rem;
}

@media (max-width: 960px) {
  .hero-scene-atelier {
    max-width: 380px;
  }
}

@media (max-width: 700px) {
  .services-liste {
    grid-template-columns: 1fr;
  }

  .encart-bouton {
    flex-basis: 100%;
  }
}

/* ---------- Pages des mails de prospection (/rendez-vous/, /dossier/) ---------- */

.hero-prospection .hero-texte {
  max-width: 46rem;
}

.hero-prospection h1 {
  max-width: 20ch;
}

.insecable {
  white-space: nowrap;
}

.rdv-interlocutrice {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blanc);
  box-shadow: var(--ombre-papier);
  font-size: 0.95rem;
  color: var(--encre);
}

.dossier-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 18px;
}

.dossier-poids {
  margin-left: 4px;
  font-size: 0.82em;
  opacity: 0.8;
}

.dossier-attente {
  display: inline-block;
  padding: 12px 18px;
  border: 1px dashed rgba(10, 40, 31, 0.3);
  border-radius: 4px;
  color: var(--texte-doux);
}

.dossier-contact {
  margin: 0;
  color: var(--texte-doux);
}

/* ---------- Départements desservis (pages des ateliers) ---------- */

.departements-intro {
  max-width: 60ch;
  margin: 0 0 18px;
  color: var(--texte-doux);
}

.departements {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  max-width: 76ch;
}

.departements li {
  padding: 5px 12px;
  border: 1px solid rgba(10, 40, 31, 0.16);
  border-radius: 999px;
  background: var(--blanc);
  font-size: 0.95rem;
  color: var(--encre);
}

.departement-num {
  margin-left: 3px;
  font-size: 0.82rem;
  font-variant-numeric: lining-nums;
  color: var(--texte-doux);
}

/* ---------- Produits ---------- */

.produits-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.produits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 30px 22px;
}

.produit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.produit-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: var(--blanc);
  box-shadow: var(--ombre-papier);
  transition: transform var(--transition), box-shadow var(--transition);
}

.produit-image img {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
}

.produit-image:hover {
  transform: translateY(-3px) rotate(-0.6deg);
  box-shadow: 0 2px 3px rgba(10, 40, 31, 0.08), 0 22px 40px -18px rgba(10, 40, 31, 0.4);
}

.produit-titre {
  margin-top: 10px;
  font-size: 1.18rem;
}

.produit-texte {
  margin: 0;
  font-size: 0.94rem;
  color: var(--texte-doux);
}

.produits-note {
  margin: 30px 0 0;
  max-width: 70ch;
  font-size: 0.9rem;
  color: var(--texte-doux);
}

.visionneuse {
  width: min(92vw, 1100px);
  max-height: 92vh;
  padding: 18px 18px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--blanc);
  color: var(--texte);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.visionneuse::backdrop {
  background: rgba(10, 40, 31, 0.72);
}

.visionneuse img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
}

.visionneuse-legende {
  margin: 12px 0 0;
  font-family: var(--f-titre);
  font-size: 1.15rem;
  text-align: center;
  color: var(--encre);
}

.visionneuse-fermer {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--encre);
  color: var(--blanc);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 700px) {
  .produits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .produit-titre {
    font-size: 1.02rem;
  }

  .produit-texte {
    font-size: 0.86rem;
  }
}
