/*
 * PEYRIA — feuille de style du site.
 * Charte : 02_MARQUE/02_Identite_visuelle/CHARTE_LOGO.md
 * Parti pris : la page se lit comme une feuille de plan (papier quadrillé, cotes et annotations
 * terre cuite, cartouche en pied de page), avec la typographie de la marque.
 */

/* ------------------------------------------------------------------ polices (hébergées sur le site) */

@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------------ jetons */

:root {
  --anthracite: #2a2d2f;
  --texte-doux: #45494c;
  --gris: #5f6367;
  --terre: #b4552d;
  --terre-fonce: #9c4623;
  --terre-claire: #d0693f;
  --blanc-casse: #f5f2ed;
  --papier: #fdfbf8;
  --pierre: #e9e4da;
  --trait: #dbd4c7;
  --trait-fort: #c4bbab;
  --erreur: #b3261e;
  --succes: #2e6b3f;
  --grille: rgba(42, 45, 47, 0.045);
  --grille-sombre: rgba(245, 242, 237, 0.04);

  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --largeur: 1180px;
  --marge: clamp(20px, 5vw, 48px);
  --rayon: 18px;
  --ombre: 0 1px 2px rgba(42, 45, 47, 0.06), 0 18px 40px -18px rgba(42, 45, 47, 0.28);
  --courbe: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duree: 200ms;
}

/* ------------------------------------------------------------------ base */

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--anthracite);
  background-color: var(--blanc-casse);
  background-image:
    linear-gradient(var(--grille) 1px, transparent 1px),
    linear-gradient(90deg, var(--grille) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--terre); color: #fff; }
:focus-visible { outline: 2px solid var(--terre); outline-offset: 3px; border-radius: 4px; }

.conteneur { width: min(100% - 2 * var(--marge), var(--largeur)); margin-inline: auto; }

.aller-contenu {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 8px;
  background: var(--anthracite); color: #fff; text-decoration: none;
  transition: top var(--duree) var(--courbe);
}
.aller-contenu:focus { top: 12px; }

/* ------------------------------------------------------------------ typographie */

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.028em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.07; }
h3 { font-size: 1.2rem; letter-spacing: -0.012em; line-height: 1.3; }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: -0.01em;
  color: var(--terre);
}

.etiquette {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font: 500 0.78rem/1.2 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gris);
}
.etiquette::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.etiquette-mini, .mini {
  font: 500 0.68rem/1.3 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gris);
}

.intro { font-size: 1.12rem; color: var(--texte-doux); max-width: 38em; }
.intro a { color: var(--terre); }

/* ------------------------------------------------------------------ boutons */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.8rem 1.35rem;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--duree) var(--courbe), color var(--duree) var(--courbe),
    border-color var(--duree) var(--courbe), transform var(--duree) var(--courbe);
}
.bouton-plein { background: var(--terre); color: #fff; box-shadow: 0 10px 24px -14px rgba(180, 85, 45, 0.9); }
.bouton-plein:hover { background: var(--terre-fonce); transform: translateY(-1px); }
.bouton-plein:active { transform: scale(0.98); }
.bouton-trait { border-color: var(--anthracite); color: var(--anthracite); background: transparent; }
.bouton-trait:hover { background: var(--anthracite); color: var(--blanc-casse); }
.bouton-petit { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.bouton[disabled] { opacity: 0.55; cursor: progress; transform: none; }
.fleche { transition: transform var(--duree) var(--courbe); }
.bouton:hover .fleche { transform: translateX(3px); }

/* ------------------------------------------------------------------ en-tête */

.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 237, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--trait);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.marque img { height: 30px; width: auto; }
.navigation { display: flex; align-items: center; gap: 28px; }
.navigation a:not(.bouton) { font-size: 0.95rem; font-weight: 500; text-decoration: none; opacity: 0.78; transition: opacity var(--duree) var(--courbe); }
.navigation a:not(.bouton):hover { opacity: 1; }

@media (max-width: 860px) {
  .navigation a:not(.bouton) { display: none; }
}

/* ------------------------------------------------------------------ accroche */

.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-grille {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 88px);
}
.hero-texte .etiquette { margin-bottom: 28px; }
.hero h1 { margin-bottom: 28px; }
.chapeau { font-size: clamp(1.08rem, 1.6vw, 1.24rem); line-height: 1.55; color: var(--texte-doux); max-width: 34em; margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.public { font-size: 0.95rem; color: var(--gris); max-width: 32em; }
.public strong { color: var(--anthracite); font-weight: 500; }

@media (max-width: 960px) {
  .hero-grille { grid-template-columns: minmax(0, 1fr); }
}

/* La fiche d'analyse, dessinée comme une feuille de plan */
.hero-visuel { position: relative; margin: 0; padding: 56px 0 36px; }
.feuille { position: absolute; inset: 56px 0 36px; border: 1px solid var(--trait); border-radius: 14px; }
.feuille-arriere { background: var(--pierre); transform: rotate(-5deg) translate(-16px, 16px); opacity: 0.7; }
.feuille-milieu { background: #efebe3; transform: rotate(-2.4deg) translate(-7px, 7px); }

.fiche { position: relative; background: var(--papier); border: 1px solid var(--trait-fort); border-radius: 14px; box-shadow: var(--ombre); overflow: hidden; }
.fiche-entete {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--trait);
  font: 500 0.72rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris);
}
.fiche-titre { padding: 20px 20px 18px; border-bottom: 1px solid var(--trait); }
.fiche-objet { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 6px; }
.fiche-meta { font: 0.78rem/1.45 var(--mono); color: var(--gris); }
.fiche-lignes { margin: 0; }
.fiche-lignes div { display: grid; grid-template-columns: 36% 1fr; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--trait); }
.fiche-lignes dt { font: 500 0.72rem/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gris); }
.fiche-lignes dd { margin: 0; font-size: 0.95rem; line-height: 1.45; }
.alerte { color: var(--terre); font-weight: 500; }
.sep { margin: 0 0.4em; color: var(--trait-fort); }

.fiche-cartouche { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 1px; background: var(--trait); }
.fiche-cartouche > div { background: var(--papier); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.fiche-cartouche span { font: 500 0.64rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }
.fiche-cartouche strong { font-size: 0.9rem; font-weight: 600; }
.fiche-cartouche .avis { flex-direction: row; align-items: center; gap: 10px; background: #f8ede6; }
.fiche-cartouche .avis img { height: 22px; width: auto; flex: none; }
.fiche-cartouche .avis div { display: flex; flex-direction: column; gap: 2px; }
.fiche-cartouche .avis strong { color: var(--terre); }

/* Cote : ligne de cotation terre cuite au-dessus de la fiche */
.cote { position: absolute; top: 18px; left: 0; right: 0; height: 14px; display: flex; align-items: center; justify-content: center; }
.cote::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--terre); transform-origin: left center; }
.cote span {
  position: relative; padding: 0 10px; background: var(--blanc-casse);
  font: 500 0.7rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--terre);
}
.cote-bout { position: absolute; top: 0; width: 1px; height: 14px; background: var(--terre); }
.cote-bout::after { content: ""; position: absolute; top: 6px; left: -4px; width: 9px; height: 1px; background: var(--terre); transform: rotate(-45deg); }
.cote-bout.gauche { left: 0; }
.cote-bout.droite { right: 0; }

.legende { position: absolute; right: 0; bottom: 6px; font: 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }

/* ------------------------------------------------------------------ sections */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-serree { padding: clamp(32px, 5vw, 56px) 0; }
.section-bord { border-top: 1px solid var(--trait); }
.section-tete { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 64px); max-width: 880px; }
.numero { display: block; font: 500 0.78rem/1.2 var(--mono); letter-spacing: 0.06em; color: var(--terre); margin-bottom: 14px; text-transform: uppercase; }

/* Le constat */
.declaration { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.colonne { border-top: 1px solid var(--anthracite); padding-top: 20px; }
.colonne h3 { margin-bottom: 10px; }
.colonne p { color: var(--texte-doux); }
.conclusion { margin-top: clamp(40px, 5vw, 56px); padding-left: 20px; border-left: 2px solid var(--terre); font-size: 1.15rem; max-width: 40em; }

@media (max-width: 800px) {
  .trois { grid-template-columns: minmax(0, 1fr); }
}

/* La méthode : quatre étapes le long d'un trait, comme une coupe cotée */
.etapes { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); }
.etapes::before { content: ""; position: absolute; top: 8px; left: 8px; right: 8px; height: 1px; background: var(--anthracite); }
.etape { position: relative; padding-top: 44px; }
.noeud { position: absolute; top: 0; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--blanc-casse); border: 1px solid var(--anthracite); }
.etape:last-child .noeud { background: var(--terre); border-color: var(--terre); }
.etape h3 { margin-bottom: 10px; }
.etape p { color: var(--texte-doux); font-size: 0.98rem; }
.note { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; font-size: 0.95rem; color: var(--texte-doux); max-width: 46em; }
.note .etiquette-mini { color: var(--terre); }

@media (max-width: 900px) {
  .etapes { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .etapes::before { top: 8px; bottom: 8px; left: 8px; right: auto; width: 1px; height: auto; }
  .etape { padding: 0 0 0 44px; }
}

/* Ce qui change */
.grille-deux { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.carte { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(24px, 3vw, 32px); transition: border-color var(--duree) var(--courbe), transform var(--duree) var(--courbe); }
.carte:hover { border-color: var(--trait-fort); transform: translateY(-2px); }
.carte img { height: 26px; width: auto; margin-bottom: 20px; }
.carte h3 { margin-bottom: 8px; }
.carte p { color: var(--texte-doux); }
.maxime { margin-top: clamp(56px, 8vw, 96px); text-align: center; font-size: clamp(2.1rem, 5.4vw, 3.8rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }

@media (max-width: 760px) {
  .grille-deux { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ programme pilote (fond sombre) */

.sombre {
  color: var(--blanc-casse);
  background-color: var(--anthracite);
  background-image:
    linear-gradient(var(--grille-sombre) 1px, transparent 1px),
    linear-gradient(90deg, var(--grille-sombre) 1px, transparent 1px);
  background-size: 32px 32px;
}
.sombre em { color: var(--terre-claire); }
.sombre .etiquette { color: rgba(245, 242, 237, 0.7); }
.sombre .intro { color: rgba(245, 242, 237, 0.8); margin-top: 22px; }
.sombre h2 { margin-top: 22px; }

.pilote-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.coches { list-style: none; margin: 36px 0; padding: 0; display: grid; gap: 16px; }
.coches li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; font-size: 1.05rem; }
.coches img { height: 22px; width: auto; margin-top: 2px; }
.profil { padding-top: 22px; border-top: 1px solid rgba(245, 242, 237, 0.16); font-size: 0.98rem; color: rgba(245, 242, 237, 0.78); }
.profil strong { color: var(--blanc-casse); font-weight: 600; }

.cartouche-prix { border: 1px solid rgba(245, 242, 237, 0.3); border-radius: var(--rayon); overflow: hidden; background: rgba(255, 255, 255, 0.02); }
.cartouche-prix .haut { padding: 28px; }
.prix { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 6px; }
.montant { font-size: clamp(3rem, 6vw, 4.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ht { font: 500 0.9rem/1 var(--mono); color: rgba(245, 242, 237, 0.7); }
.ancien { font-size: 0.95rem; color: rgba(245, 242, 237, 0.68); }
.ancien s { text-decoration-color: var(--terre-claire); text-decoration-thickness: 2px; }
.cartouche-prix dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(245, 242, 237, 0.16); border-block: 1px solid rgba(245, 242, 237, 0.16); }
.cartouche-prix dl div { background: var(--anthracite); padding: 16px 20px; }
.cartouche-prix dl .large { grid-column: 1 / -1; }
.cartouche-prix dt { font: 500 0.66rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245, 242, 237, 0.62); margin-bottom: 4px; }
.cartouche-prix dd { margin: 0; font-size: 0.98rem; }
.cartouche-prix .bas { padding: 22px 28px 26px; display: grid; gap: 14px; }
.cartouche-prix .bouton { width: 100%; }
.precision { font-size: 0.86rem; color: rgba(245, 242, 237, 0.66); }

@media (max-width: 960px) {
  .pilote-grille { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ questions */

.faq-grille { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 88px); align-items: start; }
.faq-grille .section-tete { margin-bottom: 0; }
.faq details { border-top: 1px solid var(--trait-fort); }
.faq details:last-child { border-bottom: 1px solid var(--trait-fort); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 44px; padding: 20px 0;
  font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em;
  list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 14px; height: 14px;
  background:
    linear-gradient(var(--terre), var(--terre)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--terre), var(--terre)) center / 1.5px 14px no-repeat;
  transition: transform var(--duree) var(--courbe);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--texte-doux); max-width: 40em; }

@media (max-width: 900px) {
  .faq-grille { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ fondateur */

.fondateur { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); }
.initiales { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--anthracite); color: var(--blanc-casse); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.titre-fondateur { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 14px 0 10px; }
.fondateur p:last-child { color: var(--texte-doux); max-width: 44em; }

/* Passages à compléter avant la mise en ligne : bien visibles exprès */
.a-completer { background: rgba(180, 85, 45, 0.12); outline: 1px dashed var(--terre); border-radius: 3px; padding: 0 4px; color: var(--terre-fonce); }

@media (max-width: 600px) {
  .fondateur { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ candidature */

.candidature-grille { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.candidature-grille h2 { margin: 22px 0; }
.suite { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: suite; display: grid; gap: 16px; }
.suite li { counter-increment: suite; display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding-top: 16px; border-top: 1px solid var(--trait); }
.suite li::before { content: counter(suite, decimal-leading-zero); font: 500 0.8rem/1.9 var(--mono); color: var(--terre); }

.formulaire {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre);
}
.champ { display: grid; gap: 7px; align-content: start; }
.champ-large { grid-column: 1 / -1; }
.champ label { font-size: 0.95rem; font-weight: 500; }
.requis { color: var(--terre); }
.facultatif { margin-left: 6px; font: 500 0.68rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gris); }

.formulaire input[type="text"],
.formulaire input[type="email"],
.formulaire select,
.formulaire textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.95rem;
  font: 400 1rem/1.4 var(--sans); color: var(--anthracite);
  background: #fff; border: 1px solid var(--trait-fort); border-radius: 12px;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--duree) var(--courbe), box-shadow var(--duree) var(--courbe);
}
.formulaire select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232a2d2f' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.formulaire textarea { min-height: 112px; resize: vertical; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: none; border-color: var(--terre); box-shadow: 0 0 0 4px rgba(180, 85, 45, 0.16); }
.champ.en-erreur input { border-color: var(--erreur); }
.erreur { font-size: 0.86rem; color: var(--erreur); }
.erreur:empty { display: none; }

.consentement { grid-template-columns: 22px 1fr; align-items: start; column-gap: 12px; }
.consentement input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--terre); cursor: pointer; }
.consentement label { font-size: 0.9rem; font-weight: 400; color: var(--texte-doux); cursor: pointer; }
.consentement label a { color: var(--terre); }
.consentement .erreur { grid-column: 2; }

.envoi { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.obligatoire { font-size: 0.85rem; color: var(--gris); }
.etat { grid-column: 1 / -1; font-size: 0.98rem; }
.etat:empty { display: none; }
.etat.succes { padding: 14px 16px; border-radius: 12px; background: #eaf2ec; color: var(--succes); }
.etat.echec { padding: 14px 16px; border-radius: 12px; background: #f9e9e7; color: var(--erreur); }

@media (max-width: 960px) {
  .candidature-grille { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .formulaire { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ pied de page : le cartouche */

.pied { padding: 48px 0 56px; }
.cartouche-pied {
  display: grid; grid-template-columns: 1.3fr 1.9fr 1fr 1fr 1fr;
  gap: 1px; background: var(--anthracite); border: 1px solid var(--anthracite);
}
.cellule { display: grid; gap: 6px; align-content: start; min-height: 84px; padding: 14px 18px; background: var(--papier); }
.cellule p { font-size: 0.92rem; }
.cellule a { text-decoration: none; }
.cellule a:hover { color: var(--terre); text-decoration: underline; }
.cellule-logo { align-content: center; }
.cellule-logo img { height: 28px; width: auto; }
.cellule-signature p { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }

@media (max-width: 900px) {
  .cartouche-pied { grid-template-columns: 1fr 1fr; }
  .cellule-logo, .cellule-signature { grid-column: 1 / -1; }
}

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

.page-texte { padding: clamp(48px, 8vw, 96px) 0; }
.page-texte .conteneur { max-width: 760px; }
.page-texte h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 22px 0 40px; }
.page-texte h2 { font-size: 1.35rem; margin: 40px 0 12px; letter-spacing: -0.015em; }
.page-texte p, .page-texte li { color: var(--texte-doux); }
.page-texte p + p { margin-top: 12px; }
.page-texte ul { padding-left: 1.2em; }
.page-texte a { color: var(--terre); }

/* ------------------------------------------------------------------ mouvements */

@media (prefers-reduced-motion: no-preference) {
  .hero-texte > * { animation: monter 0.8s var(--courbe) both; }
  .hero-texte > :nth-child(2) { animation-delay: 0.06s; }
  .hero-texte > :nth-child(3) { animation-delay: 0.12s; }
  .hero-texte > :nth-child(4) { animation-delay: 0.18s; }
  .hero-texte > :nth-child(5) { animation-delay: 0.24s; }
  .feuille { animation: apparaitre 0.8s var(--courbe) 0.15s both; }
  .fiche { animation: poser 0.9s var(--courbe) 0.25s both; }
  .cote::before { animation: tracer 0.9s cubic-bezier(0.6, 0, 0.2, 1) 0.7s both; }
  .cote span, .cote-bout, .legende { animation: apparaitre 0.4s ease-out 1.3s both; }

  .js [data-apparition] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--courbe), transform 0.7s var(--courbe); }
  .js [data-apparition].visible { opacity: 1; transform: none; }
}

@keyframes monter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes poser { from { opacity: 0; transform: translateY(24px) rotate(1.2deg); } to { opacity: 1; transform: none; } }
@keyframes tracer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes apparaitre { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
