/* La Fabrique des Merveilles — vitrine
   Planches crème posées sur la toile vert profond de l'armoire à herbier.
   Palette mesurée sur le logo. Sauge et or : jamais en texte courant. */

/* Polices harmonisées avec les visuels officiels (bandeau Facebook, appel à
   candidatures) : capitales romaines comme le logo (Cinzel), sans-serif
   géométrique (Montserrat), écriture manuscrite (Sacramento). Auto-hébergées. */
@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Sacramento";
  src: url("fonts/sacramento.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --toile: #424d3a;          /* vert profond du lettrage : la toile de l'armoire */
  --toile-sombre: #364030;
  --papier: #fbf6f2;         /* crème du fond du logo : la planche */
  --etiquette: #f1ebe0;      /* l'étiquette de récolte, papier plus chaud */
  --bandelette: #e6dfcf;     /* bandelettes de montage gommées */
  --sauge: #a9ae9a;
  --sauge-pale: #c9c8b4;
  --or: #a6833d;             /* étoile, cœur, tampon — décor uniquement */
  --or-texte: #7a5f2a;       /* seul or admis en texte (5,6:1 sur crème) */
  --encre: #242b20;          /* texte courant (14:1 sur crème) */
  --encre-douce: #4a5441;    /* texte secondaire (7,9:1 sur crème) */
  --sur-toile: #fbf6f2;      /* texte sur la toile (8,9:1) */
  --sur-toile-douce: #d9dacb;/* secondaire sur la toile (6,2:1) */
  --erreur: #9b2d20;         /* erreurs de formulaire (7,4:1 sur crème) */
  --a-completer: #f4e9c9;    /* surligne les informations manquantes */

  --texte: "Montserrat", "Verdana", sans-serif;
  --titre: "Cinzel", "Georgia", serif;
  --capitales: "Montserrat", "Verdana", sans-serif;   /* toujours en majuscules espacées */
  --script: "Sacramento", "Brush Script MT", cursive;  /* phrases courtes, grand corps */

  --marge: clamp(12px, 3.2vw, 48px);
  --lent: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  background: var(--toile);
  color-scheme: light;
  scrollbar-color: var(--sauge) var(--toile-sombre);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--toile);
  color: var(--encre);
  font-family: var(--texte);
  font-weight: 450;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}

::selection { background: var(--sauge-pale); color: var(--encre); }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  letter-spacing: 0.01em;
}

p { margin: 0; }
p + p { margin-top: 0.8em; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--or-texte);
  outline-offset: 3px;
}
.tiroir :focus-visible,
.lisiere :focus-visible,
.pied :focus-visible,
.semaine :focus-visible { outline-color: var(--papier); }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.evitement {
  position: absolute;
  left: var(--marge);
  top: -100px;
  z-index: 10;
  background: var(--papier);
  color: var(--encre);
  padding: 0.6rem 1rem;
}
.evitement:focus { top: 0.5rem; }

/* ───────── Liens et actions ───────── */

.lien {
  color: var(--toile);
  text-decoration: underline;
  text-decoration-color: var(--or);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  font-weight: 600;
}
.lien:hover { text-decoration-thickness: 3px; color: var(--encre); }

/* L'action : une languette de toile verte cousue sur la planche. */
.action {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.7rem 1.3rem 0.75rem;
  background: var(--toile);
  color: var(--papier);
  font: 600 1.125rem/1.1 var(--texte);
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s var(--lent);
}
.action svg {
  width: 1.1em; height: 1.1em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square;
  transition: transform 0.3s var(--lent);
}
.action:hover { background: var(--toile-sombre); }
.action:hover svg { transform: translateX(4px); }
.action[disabled] { opacity: 0.6; cursor: progress; }

.action--papier { background: var(--papier); color: var(--toile); }
.action--papier:hover { background: var(--etiquette); }

/* ───────── L'annonce d'ouverture : une bande de sauge au bord de l'armoire ───────── */

.annonce {
  margin: 0;
  padding: 0.55rem var(--marge);
  background: var(--sauge-pale);
  color: var(--encre);
  font-size: 1.125rem;
  line-height: 1.35;
  text-align: center;
}
.annonce strong { font-weight: 700; }
.annonce .etoile { display: inline-block; width: 14px; height: 14px; margin-right: 0.45rem; vertical-align: -1px; }
.annonce .insecable { white-space: nowrap; }
.annonce[hidden] { display: none; }

/* ───────── Lisière : le haut de l'armoire ───────── */

.lisiere {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding: 0.6rem var(--marge) 0.5rem;
  color: var(--sur-toile);
}
.lisiere__nom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 500 1.2rem/1 var(--titre);
  text-decoration: none;
}
/* Le nom en une ligne : le lettrage du logo, teinté en crème par masque. */
.nom-graphique {
  display: inline-block;
  width: 220px;
  aspect-ratio: 644 / 64;
  background: currentColor;
  -webkit-mask: url("img/wordmark.png") center / contain no-repeat;
  mask: url("img/wordmark.png") center / contain no-repeat;
}
.pied__nom .nom-graphique { width: min(320px, 100%); }
.etoile { width: 16px; height: 16px; fill: var(--or); flex: none; }
.lisiere ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.95rem;
  margin: 0; padding: 0;
  list-style: none;
}
.lisiere nav a {
  display: inline-block;
  padding: 0.45rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--sur-toile-douce);
  text-decoration: none;
}
.lisiere nav a:hover { color: var(--sur-toile); text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 0.3em; }

/* ───────── La planche ───────── */

.planche {
  position: relative;
  background: var(--papier);
  margin: 0 var(--marge);
  padding: clamp(1.5rem, 1rem + 3vw, 4rem) clamp(1.1rem, 0.6rem + 3vw, 4.5rem);
}
.planche__numero {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  font: 600 0.8125rem/1 var(--capitales); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--encre-douce);
}

/* Les bandelettes de montage, posées une à une. */
.bandelette {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(42px, 22%, 76px);
  height: 11px;
  background: var(--bandelette);
  outline: 1px solid rgb(169 174 154 / 0.55);
  opacity: 0.96;
  transform: translate(-50%, -50%) rotate(var(--r));
  transform-origin: left center;
}
.js .planche .bandelette { transform: translate(-50%, -50%) rotate(var(--r)) scaleX(0); }
.js .est-montee .bandelette {
  transform: translate(-50%, -50%) rotate(var(--r)) scaleX(1);
  transition: transform 0.55s var(--lent);
}
.js .est-montee .bandelette:nth-of-type(2) { transition-delay: 0.18s; }
.js .est-montee .bandelette:nth-of-type(3) { transition-delay: 0.36s; }

/* ───────── Accueil : planche n° 1 et semaine ───────── */

.accueil { display: grid; gap: 0; }

.planche--une {
  display: grid;
  grid-template-columns: 33% minmax(0, 1fr);
  grid-template-areas:
    "titre titre"
    "baseline baseline"
    "specimen etiquette";
  padding-top: 0.8rem;
  padding-bottom: 0;
  transform: rotate(-0.6deg);
  transform-origin: 50% 0;
}

.specimen--branche {
  grid-area: specimen;
  position: relative;
  margin: 0 0 0 -0.6rem;
  align-self: start;
  width: 100%;
  max-width: 360px;
}
.specimen__monture { position: relative; }
.specimen--branche img { width: 100%; }

.accueil__titre {
  grid-area: titre;
  align-self: end;
  position: relative;
  z-index: 1;
  text-align: right;
  padding: 0.6rem 0 0;
}
.accueil h1 { line-height: 0; }
/* Le lettrage du logo, vectorisé depuis l'original : c'est le nom, pas une police. */
.lettrage { width: min(100%, 236px); max-width: 560px; margin: 0 auto; }
.baseline {
  grid-area: baseline;
  margin: 0.4rem 0 0.8rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--encre-douce);
}

.baseline__item { white-space: nowrap; }
.baseline__point { color: var(--or); }

/* L'étiquette de récolte déborde la planche. */
.etiquette {
  grid-area: etiquette;
  position: relative;
  z-index: 2;
  background: var(--etiquette);
  align-self: start;
  margin: 0 -0.5rem -1.25rem 0.4rem;
  padding: 0.9rem 0.9rem 1.3rem;
  transform: rotate(1.1deg);
}
.etiquette__champs { margin: 0; }
.etiquette__champs div {
  display: grid;
  gap: 0.15rem;
  align-items: baseline;
  padding: 0.45rem 0 0.3rem;
  border-bottom: 1px solid var(--sauge);
}
.etiquette__champs dt {
  font: 600 0.875rem/1 var(--capitales);
  text-transform: uppercase;
  color: var(--encre-douce);
  letter-spacing: 0.1em;
}
.etiquette__champs dd {
  margin: 0;
  font: 500 1rem/1.3 var(--texte);
  color: var(--encre);
}
.etiquette__vivant {
  margin-top: 0.7rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--toile);
  font-variant-numeric: tabular-nums;
}
.etiquette__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1.4rem;
  margin-top: 0.7rem;
}
.etiquette__actions .lien { padding: 0.8rem 0; }

.tampon {
  position: absolute;
  width: 104px;
  height: 104px;
  right: -1.1rem;
  bottom: -4.2rem;
  transform: rotate(-14deg);
  fill: none;
  stroke: var(--or);
  stroke-width: 1.6;
  pointer-events: none;
}
.tampon text {
  fill: var(--or);
  stroke: none;
  font: 600 8.2px/1 var(--capitales);
  letter-spacing: 0.9px;
}
.tampon .tampon__date { font: 600 15px/1 var(--titre); letter-spacing: 0; }

/* La semaine tissée, sur la toile. */
.semaine {
  color: var(--sur-toile);
  padding: 3.5rem var(--marge) 3rem;
}
.semaine h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  margin-bottom: 1.5rem;
}
.trame {
  width: 100%;
  max-width: 34rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.trame th {
  width: 6.5rem;
  padding: 0.45rem 0.8rem 0.45rem 0;
  text-align: left;
  font: 500 1.05rem/1 var(--titre);
  color: var(--sur-toile);
}
.trame td { padding: 0.45rem 0; }
.trame__heures {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--sur-toile-douce);
}
.trame__heures span { width: 0; white-space: nowrap; display: flex; justify-content: center; }
.trame__heures span:first-child { justify-content: flex-start; }
.trame__heures span:last-child { justify-content: flex-end; }
/* Le fil : 8 heures (10 h → 18 h), chaque plage ouverte est une bande pleine. */
.fil {
  position: relative;
  display: block;
  height: 18px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgb(217 218 203 / 0.35) calc(25% - 1px) 25%);
  border-bottom: 1px solid rgb(217 218 203 / 0.35);
}
.fil i {
  position: absolute;
  top: 2px; bottom: 2px;
  left: calc(var(--de) / 8 * 100%);
  width: calc((var(--a) - var(--de)) / 8 * 100%);
  background: var(--sauge-pale);
}
.semaine__texte {
  margin-top: 1.6rem;
  max-width: 34rem;
  font-size: 1.125rem;
}
.semaine__texte strong { font-weight: 700; white-space: nowrap; }
.semaine__paiement {
  margin-top: 1rem;
  color: var(--sur-toile-douce);
}

/* ───────── Planche n° 2 : ce qu'on y trouve ───────── */

.planche--deux {
  transform: rotate(0.45deg);
  display: grid;
  gap: 2rem;
}
.planche--deux h2,
.planche--trois h2 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem);
  color: var(--toile);
  max-width: 12ch;
}
.presentation { max-width: 38rem; }
.presentation p:first-child { font-size: 1.25em; line-height: 1.45; }

.determinations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.4rem;
}
.determination {
  position: relative;
  padding-top: 1rem;
  border-top: 1px solid var(--sauge);
  max-width: 34rem;
}
.determination h3 {
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem);
  color: var(--encre);
  margin-bottom: 0.7rem;
}
.determination--bientot h3 { color: var(--encre-douce); }

/* ───────── Le tiroir des exposants, sur la toile ───────── */

.tiroir {
  color: var(--sur-toile);
  padding: 4.5rem var(--marge) 4rem;
  display: grid;
  gap: 2.5rem;
}
.tiroir h2 {
  font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem);
  line-height: 1;
  max-width: 12ch;
}
.tiroir__tete p { margin-top: 1.4rem; max-width: 34rem; }

/* Le registre : une fiche d'index posée de biais. */
.registre {
  background: var(--papier);
  color: var(--encre);
  padding: 1.8rem 1.25rem 2rem;
  transform: rotate(-0.8deg);
  max-width: 40rem;
}
.registre__titre {
  font: 500 1.7rem/1.1 var(--titre);
  color: var(--encre);
  margin-bottom: 0.3rem;
}
.registre__lignes { margin: 0 0 1.8rem; }
.registre__lignes div {
  padding: 0.75rem 0 0.6rem;
  border-bottom: 1px solid var(--sauge);
}
.registre__lignes dt {
  font: 500 1.3rem/1.15 var(--titre);
  color: var(--toile);
}
.registre__lignes dd { margin: 0.2rem 0 0; color: var(--encre-douce); }
.registre__note {
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.registre .action { background: var(--toile); color: var(--papier); }

/* ───────── Planche n° 3 : la fiche de contact ───────── */

.planche--trois {
  transform: rotate(-0.35deg);
  display: grid;
  gap: 2rem;
}

.contact__tete { display: grid; gap: 1.1rem; max-width: 26rem; }
.contact__tete p + p { margin-top: 0; }
.contact__tete h2 { margin-bottom: 0.4rem; }
.fiche { display: grid; gap: 1.6rem; max-width: 40rem; }
.fiche fieldset { border: 0; margin: 0; padding: 0; }
.fiche legend {
  padding: 0;
  margin-bottom: 0.8rem;
  font: 500 1.3rem/1.25 var(--titre);
  color: var(--encre);
}
.fiche__motif { display: grid; gap: 0.35rem; }
.fiche__motif label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 48px;
  padding: 0.4rem 0.2rem;
  cursor: pointer;
  border-bottom: 1px solid var(--sauge);
}
.fiche__motif input {
  appearance: none;
  flex: none;
  width: 22px; height: 22px;
  margin: 0;
  border: 2px solid var(--toile);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.fiche__motif input::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--toile);
  transform: scale(0);
  transition: transform 0.2s var(--lent);
}
.fiche__motif input:checked::after { transform: scale(1); }
.fiche__motif label:has(input:checked) { font-weight: 700; color: var(--toile); }

.fiche__champ { display: grid; gap: 0.2rem; }
.fiche__champ[hidden] { display: none; }
.fiche__champ > label {
  font: 600 0.875rem/1.2 var(--capitales); text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--encre-douce);
}
.fiche__champ > label span { font-family: var(--texte); font-size: 1rem; letter-spacing: 0; }
.fiche input[type="text"],
.fiche input[type="email"],
.fiche input[type="tel"],
.fiche select,
.fiche textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.1rem;
  font: 1.15rem/1.4 var(--texte);
  color: var(--encre);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--encre-douce);
  border-radius: 0;
  caret-color: var(--or-texte);
}
.fiche textarea {
  resize: vertical;
  background-image: repeating-linear-gradient(transparent 0 calc(1.61rem - 1px), var(--sauge-pale) calc(1.61rem - 1px) 1.61rem);
  background-position: 0 0.5rem;
  line-height: 1.61rem;
}
.fiche select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23424d3a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  background-size: 20px;
  padding-right: 2rem;
}
.fiche input:focus-visible,
.fiche select:focus-visible,
.fiche textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--or-texte);
  box-shadow: 0 2px 0 var(--or-texte);
}
.fiche [aria-invalid="true"] { border-bottom-color: var(--erreur); }
.fiche__aide { font-size: 1.125rem; color: var(--encre-douce); }
.fiche__erreur { font-size: 1.125rem; font-weight: 700; color: var(--erreur); }

.fiche__pot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.fiche__rgpd { font-size: 1.125rem; color: var(--encre-douce); max-width: 36rem; }
.fiche__retour:empty { display: none; }
.fiche__retour {
  padding: 1rem 1.1rem;
  background: var(--etiquette);
  font-weight: 700;
}
.fiche__retour[data-etat="ok"] { color: var(--toile); }
.fiche__retour[data-etat="erreur"] { color: var(--erreur); }

/* ───────── Pied : la plaque de l'armoire ───────── */

.pied {
  color: var(--sur-toile-douce);
  padding: 3.5rem var(--marge) 2.5rem;
  display: grid;
  gap: 1.6rem;
  font-size: 1.125rem;
}
.pied__nom { font: 1.6rem/1.1 var(--titre); color: var(--sur-toile); margin-bottom: 0.5rem; }
.pied__devise { font: 600 1rem/1.2 var(--capitales); text-transform: uppercase; letter-spacing: 0.16em; color: var(--sur-toile); }
.pied__devise span { color: var(--or); }
.pied__liens { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.pied__liens a { display: inline-block; padding: 0.6rem 0; color: var(--sur-toile); text-underline-offset: 0.25em; text-decoration-color: var(--or); }

/* Les planches se suivent, séparées par la toile. */
.accueil + .planche,
.planche + .tiroir,
.tiroir + .planche { margin-top: 0; }
.planche--deux, .planche--trois { margin-top: 1rem; }

/* ───────── Tablette et bureau ───────── */

@media (min-width: 760px) {
  .planche--une {
    grid-template-columns: minmax(200px, 34%) minmax(0, 1fr);
    grid-template-areas:
      "specimen titre"
      "specimen baseline"
      "specimen etiquette";
    grid-template-rows: 1fr auto auto;
    padding-bottom: 0;
  }
  .specimen--branche { width: 112%; max-width: 400px; align-self: center; margin-left: -1rem; }
  .accueil__titre { grid-area: titre; }
  .baseline { text-align: right; margin: 1rem 0 1.6rem; font-size: 0.9375rem; letter-spacing: 0.08em; }
  .lettrage { width: 100%; margin: 0 0 0 auto; }
  .planche--une { padding-top: clamp(1.5rem, 1rem + 3vw, 4rem); min-height: min(760px, calc(100svh - 70px)); }
  .accueil__titre { padding-top: 2rem; }
  .tampon { right: 0.4rem; bottom: -2.4rem; }
  .etiquette { align-self: auto; padding: 1.25rem 1.25rem 1.5rem; }
  .etiquette__champs div { grid-template-columns: 8.2rem 1fr; gap: 0; }
  .accueil h1 { margin-left: 0; }
  .etiquette { margin: 0 calc(-1 * clamp(1.1rem, 0.6rem + 3vw, 4.5rem) - 2rem) 3rem 10%; }
  .determinations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3.5rem; }
  .determination--bientot { grid-column: 2; }
  .registre { padding: 2.4rem 2.6rem 2.6rem; }
}

@media (min-width: 1100px) {
  .accueil {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
    margin-right: var(--marge);
  }
  .planche--une { margin-right: 0; min-height: min(820px, calc(100vh - 80px)); }
  .semaine { padding: 7rem 0 2rem clamp(4rem, 6vw, 7rem); }

  .planche--deux {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(3rem, 6vw, 7rem);
    margin-left: calc(var(--marge) + 6vw);
  }
  .planche--deux h2 { grid-column: 1; }
  .presentation { grid-column: 1; }
  .determinations { grid-column: 2; grid-row: 1 / span 2; align-self: start; padding-top: 0.6rem; }

  .tiroir {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(3rem, 6vw, 8rem);
    padding-top: 6rem; padding-bottom: 6rem;
    align-items: start;
  }
  .tiroir__tete { grid-row: 1 / span 2; }
  .tiroir__raisons { grid-column: 2; margin-top: 1rem; }
  .tiroir { grid-template-rows: auto 1fr; }

  .planche--trois {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: clamp(3rem, 6vw, 7rem);
    margin-right: calc(var(--marge) + 8vw);
    align-items: start;
  }

  .pied { grid-template-columns: 1fr auto; align-items: end; }
  .pied__devise { grid-column: 2; grid-row: 1; justify-self: end; }
  .pied__liens { grid-column: 2; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .planche .bandelette { transform: translate(-50%, -50%) rotate(var(--r)); }
}

/* ───────── Pages de texte (mentions légales, confidentialité) ───────── */

.planche--texte {
  max-width: 52rem;
  margin: 1rem auto 0;
  transform: rotate(-0.3deg);
}
@media (min-width: 900px) { .planche--texte { margin-left: calc(var(--marge) + 6vw); } }
.planche--texte h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
  color: var(--toile);
  margin-bottom: 1.6rem;
}
.planche--texte h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
  color: var(--encre);
  margin: 2.6rem 0 0.8rem;
}
.planche--texte p, .texte__fiche { max-width: 40rem; }
.texte__chapeau { font-size: 1.2em; line-height: 1.5; }
.texte__fiche { margin: 1.2rem 0 0; }
.texte__fiche div { padding: 0.55rem 0 0.45rem; border-bottom: 1px solid var(--sauge); }
.texte__fiche dt { font: 600 0.875rem/1.2 var(--capitales); text-transform: uppercase; letter-spacing: 0.1em; color: var(--encre-douce); }
.texte__fiche dd { margin: 0.15rem 0 0; }
.texte__maj { margin-top: 2.6rem; font-size: 1rem; color: var(--encre-douce); }
.a-completer {
  background: var(--a-completer);
  color: var(--or-texte);
  font-weight: 700;
  padding: 0 0.3em;
}

/* ───────── Emplacements photo (prêts, inutilisés tant qu'il n'y a pas de photos) ─────────
   Une photo se monte comme un spécimen : papier, deux bandelettes, pas de cadre. */
.specimen--photo {
  position: relative;
  margin: 0;
  max-width: 34rem;
  transform: rotate(-0.8deg);
}
.specimen--photo img { width: 100%; height: auto; }

/* L'appel à candidatures, sur la toile. */
.tiroir__appel {
  padding-top: 1.1rem;
  border-top: 1px solid var(--sauge);
}
.tiroir__appel strong { color: var(--sur-toile); font-weight: 700; }

/* ───────── Écriture manuscrite (reprise des visuels officiels) ─────────
   Une phrase courte par écran, jamais d'information utile seule dans ce corps. */
.manuscrit {
  font: 400 clamp(2rem, 1.6rem + 1.6vw, 2.8rem)/1.15 var(--script);
  color: var(--toile);
  letter-spacing: 0;
}
.manuscrit--or { color: var(--or-texte); }
.manuscrit--toile { color: var(--sauge-pale); }
.manuscrit .coeur { width: 0.5em; height: 0.5em; fill: var(--or); vertical-align: 0.05em; margin-left: 0.2em; }

/* ───────── Les disciplines de l'appel à candidatures (médaillons des visuels officiels) ───────── */
.disciplines {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 34rem;
}
.disciplines li { display: grid; justify-items: center; gap: 0.7rem; text-align: center; min-width: 0; }
.disciplines img {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  outline: 1.5px solid var(--or);
  outline-offset: 4px;
}
.disciplines span {
  font: 600 0.8125rem/1.3 var(--capitales);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sur-toile);
}

.accueil__devise { margin-top: 0.3rem; text-align: center; text-wrap: balance; font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.5rem); }
@media (min-width: 760px) { .accueil__devise { text-align: right; } }
.tiroir__tete .manuscrit { margin-top: 0.6rem; }
@media (min-width: 760px) { .etiquette__champs dd { font-size: 1.125rem; } }
@media (max-width: 459px) {
  .disciplines { gap: 0.6rem; }
  .disciplines span { text-transform: none; letter-spacing: 0; font-size: 0.875rem; }
}

/* ───────── Page Facebook : présente dans la lisière, l'étiquette et le contact ───────── */
.icone-fb { width: 1.05em; height: 1.05em; flex: none; fill: currentColor; vertical-align: -0.15em; margin-right: 0.4em; }
.lisiere__fb { color: var(--sur-toile) !important; font-weight: 600; }
.lien--fb { display: inline; }
.lien--toile { color: var(--sur-toile); }
.lien--toile:hover { color: var(--sur-toile); }
.action--fb svg.icone-fb { width: 1.2em; height: 1.2em; stroke: none; fill: currentColor; margin-right: 0; }
.action--fb:hover svg.icone-fb { transform: none; }
.lisiere__fb-mobile {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-left: auto;
  color: var(--sur-toile);
}
.lisiere__fb-mobile .icone-fb { width: 26px; height: 26px; margin: 0; }
.lisiere__fb-item { display: none; }
@media (min-width: 760px) {
  .lisiere__fb-mobile { display: none; }
  .lisiere__fb-item { display: list-item; }
}

/* ───────── Deux espaces, Cambrai, façade (visuels officiels, 22/09/2026) ───────── */
.planche__envoi { grid-column: 1 / -1; text-align: center; margin-top: 0.5rem; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); text-wrap: balance; }
.semaine__cambrai { margin-top: 1.6rem; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }
.tiroir__groupe {
  margin: 2rem 0 0.4rem;
  font: 500 1.35rem/1.2 var(--titre);
  color: var(--sur-toile);
}
.tiroir__liste { color: var(--sur-toile-douce); max-width: 34rem; }
.disciplines { margin-top: 1rem; }
.disciplines--deux { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 23rem; }
.raisons { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.raisons li { padding-left: 1.5rem; position: relative; }
.raisons li::before {
  content: "";
  position: absolute; left: 0; top: 0.45em;
  width: 0.8em; height: 0.72em;
  background: var(--or);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.5 10.3 20C4.3 14.6.5 11.2.5 6.9.5 3.4 3.2.7 6.7.7c2 0 3.9.9 5.3 2.4C13.4 1.6 15.3.7 17.3.7c3.5 0 6.2 2.7 6.2 6.2 0 4.3-3.8 7.7-9.8 13.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.5 10.3 20C4.3 14.6.5 11.2.5 6.9.5 3.4 3.2.7 6.7.7c2 0 3.9.9 5.3 2.4C13.4 1.6 15.3.7 17.3.7c3.5 0 6.2 2.7 6.2 6.2 0 4.3-3.8 7.7-9.8 13.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.facade { margin: 0.6rem 0 0.4rem; max-width: 26rem; }
.facade img { width: 100%; height: auto; }
.pied__cambrai { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.8rem; }
.pied__cambrai .manuscrit { font-size: 2.2rem; }
.pied__territoire { font: 600 0.875rem/1.2 var(--capitales); text-transform: uppercase; letter-spacing: 0.12em; color: var(--sur-toile); }
.tiroir__groupe--premier { margin-top: 0; }
