/* louisautomatise.ca — feuille de style unique
   Direction : une belle page imprimée qui défile. Monochrome strict.
   Fraunces (titres) + Hanken Grotesk (corps). Mobile d'abord, rien à déplier. */

/* ---------- Jetons ---------- */
:root {
  --papier: #f4f1ea;
  --papier-2: #ebe7de;
  --encre: #141414;
  --encre-2: #2b2926;
  --gris: #5b5854;
  --gris-2: #8a867f;
  --filet: #d6d1c6;
  --filet-2: #bfb9ac;

  --serif: "Fraunces", "Constantia", Georgia, serif;
  --sans: "Hanken Grotesk", "Corbel", "Segoe UI", Arial, sans-serif;

  --gout: clamp(16px, 5vw, 72px);
  --mesure: 66ch;
  --largeur: 1180px;
  --rythme: clamp(4rem, 10vw, 8rem);
  --duree: 700ms;
  --courbe: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* L'en-tête est collant : sans cette marge, une ancre dépose la section
   dessous et son étiquette (« 01 Pour qui ») reste cachée. */
:target, [id] { scroll-margin-top: 104px; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;           /* 17 px */
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
/* grain de papier, très discret */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
p, ul, ol, dl { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 600; }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--filet); margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: 1.08;
  margin: 0 0 .6em;
  text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1 { font-size: clamp(2.5rem, 7.2vw, 5rem); line-height: 1; font-weight: 450; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.2; }
h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

.mesure { max-width: var(--mesure); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* petites capitales éditoriales */
.etiquette {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 1.2rem;
}
.etiquette .num { font-family: var(--serif); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--encre); margin-right: .6em; font-size: .95rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: .95em 1.5em;
  background: var(--encre); color: var(--papier);
  border: 1px solid var(--encre); border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: background var(--duree) var(--courbe), color var(--duree) var(--courbe), transform 300ms var(--courbe);
}
.btn:hover { background: transparent; color: var(--encre); }
.btn:active { transform: translateY(1px); }
.btn .fleche { transition: transform 300ms var(--courbe); }
.btn:hover .fleche { transform: translateX(4px); }
.btn-inverse { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.btn-inverse:hover { background: transparent; color: var(--papier); }
.btn[disabled] { opacity: .55; cursor: wait; }
.lien-fleche { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--filet-2); padding-bottom: .1em; }
.lien-fleche:hover { border-color: var(--encre); }
.lien-fleche::after { content: " →"; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--filet);
}
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 84px; padding-block: .9rem;
}
/* flex-shrink 0 : le logo ne doit jamais payer pour un menu trop long —
   c'est le menu qui se replie, pas la marque qui rapetisse */
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.logo img { width: 200px; height: auto; }
.nav-liens { display: none; }
.nav-liens ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
/* nowrap : sans ça, l'élément se comprime et « Pour qui ? » se casse en deux lignes */
.nav-liens a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: .3em 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav-liens a:hover, .nav-liens a[aria-current="page"] { border-bottom-color: var(--encre); }
.nav-cta { display: none; white-space: nowrap; }
.nav-bouton {
  appearance: none; background: none; border: 1px solid var(--filet-2); border-radius: 2px;
  font: inherit; font-weight: 600; font-size: .9rem; padding: .5em .9em; cursor: pointer; color: var(--encre);
}
.nav-bouton[aria-expanded="true"] { background: var(--encre); color: var(--papier); border-color: var(--encre); }
/* le menu replié est la SEULE chose repliée du site (règle du plan) */
.nav-mobile { display: none; border-top: 1px solid var(--filet); background: var(--papier); }
.nav-mobile[data-ouvert="true"] { display: block; }
.nav-mobile ul { list-style: none; margin: 0; padding: .4rem var(--gout) 1.2rem; }
.nav-mobile li a { display: block; padding: .8em 0; text-decoration: none; font-family: var(--serif); font-size: 1.4rem; border-bottom: 1px solid var(--filet); }
.nav-mobile .btn { margin-top: 1rem; }
/* Seuil relevé de 880 à 1100 px : à six entrées, la barre complète déborde
   sous 1100 (mesuré). En dessous, tout passe par le menu groupé — tablette incluse. */
@media (min-width: 1100px) {
  .nav-liens, .nav-cta { display: block; }
  .nav-bouton, .nav-mobile { display: none !important; }
  .logo img { width: 260px; }
}

/* ---------- Sections ---------- */
.sec { padding-block: var(--rythme); border-top: 1px solid var(--filet); }
.sec-sans-filet { border-top: 0; }
.sec-sombre { background: var(--encre); color: var(--papier); border-top: 0; }
.sec-sombre .etiquette { color: var(--gris-2); }
.sec-sombre .etiquette .num { color: var(--papier); }
.sec-sombre hr, .sec-sombre .grille-3 > * { border-color: var(--encre-2); }
.sec-sombre .lien-fleche { border-color: var(--gris); }
.sec-sombre .lien-fleche:hover { border-color: var(--papier); }
.sec-papier-2 { background: var(--papier-2); }

/* grille éditoriale : numéro / contenu */
.edito { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 880px) {
  .edito { grid-template-columns: minmax(140px, 1fr) minmax(0, 3.2fr); align-items: start; }
  .edito > .etiquette { margin-bottom: 0; position: sticky; top: 92px; }
}
.edito .etiquette .num { display: block; font-size: 2.6rem; line-height: 1; margin: 0 0 .3em; font-weight: 300; }

/* trois colonnes séparées par des filets */
.grille-3 { display: grid; gap: 0; margin-top: 2.5rem; }
.grille-3 > * { padding-block: 1.6rem; border-top: 1px solid var(--filet); }
.grille-3 > *:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 880px) {
  .grille-3 { grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
  .grille-3 > * { border-top: 0; border-left: 1px solid var(--filet); padding: .2rem 0 .2rem 2rem; }
  .grille-3 > *:first-child { border-left: 0; padding-left: 0; }
  .grille-3.grille-2 { grid-template-columns: repeat(2, 1fr); }
}
.grande-num {
  font-family: var(--serif); font-weight: 300; font-size: 3.2rem; line-height: 1;
  color: var(--gris-2); margin-bottom: .7rem; font-variation-settings: "opsz" 144;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) 0; position: relative; overflow: hidden; }
.hero-grille { display: grid; gap: 2.5rem; align-items: end; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em { font-style: italic; font-weight: 400; font-variation-settings: "opsz" 144, "SOFT" 100; }
.hero .role { font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); margin: -.6rem 0 1.4rem; }
.hero .accroche { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--encre-2); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; margin-top: 2rem; }
.hero-photo { position: relative; margin-inline: calc(-1 * var(--gout)); }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  /* la photo se fond dans le papier : blancs de la neige = papier, bords estompés en ovale */
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 52% 50% at 50% 45%, #000 42%, transparent 97%);
  mask-image: radial-gradient(ellipse 52% 50% at 50% 45%, #000 42%, transparent 97%);
}
.hero-photo figcaption { position: absolute; top: .4rem; left: var(--gout); margin: 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
@media (min-width: 880px) { .hero-photo figcaption { left: .6rem; } }
@media (min-width: 880px) {
  .hero { padding-bottom: 0; }
  .hero-grille { grid-template-columns: 7fr 5fr; gap: 4rem; }
  .hero-photo { margin: 0; }
  .hero-photo img { aspect-ratio: 4 / 5; }
}
/* motif de montagnes : plans étagés qui s'assombrissent vers l'avant, brume entre les plans.
   Sur l'accueil, deux marcheurs gravissent la crête en deux minutes et s'assoient au sommet. */
.montagnes { display: block; width: 100%; height: clamp(280px, 42vw, 540px); color: var(--encre); }
/* hors du conteneur, bord à bord ; remonte derrière le texte et la photo (le contenu passe devant) */
.hero-montagnes { position: relative; z-index: 0; margin-top: clamp(-200px, -16vw, -60px); pointer-events: none; }
.montagnes-anim.hero-montagnes { margin-top: clamp(-300px, -24vw, -90px); }
.hero .conteneur { position: relative; z-index: 1; }
.montagnes .plan { fill: currentColor; }
.montagnes .plan-5 { opacity: .08; }
.montagnes .plan-4 { opacity: .14; }
.montagnes .plan-3 { opacity: .24; }
.montagnes .plan-2 { opacity: .40; }
.montagnes .plan-1 { opacity: .92; }
.montagnes .plan-0 { opacity: 1; }
.montagnes .ciel-haut { stop-color: var(--encre); stop-opacity: 0; }
.montagnes .ciel-bas { stop-color: var(--encre); stop-opacity: .07; }
.montagnes .brume-haut { stop-color: var(--papier); stop-opacity: 0; }
.montagnes .brume-bas { stop-color: var(--papier); stop-opacity: .85; }
.montagnes .grimpeur .corps { fill: currentColor; stroke: var(--papier); stroke-width: 1.6; stroke-linejoin: round; paint-order: stroke; }
.montagnes .grimpeur .halo { fill: none; stroke: var(--papier); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.montagnes .grimpeur .membre { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.montagnes .grimpeur .plein { fill: currentColor; stroke: currentColor; stroke-width: .5; stroke-linejoin: round; }
.montagnes .grimpeur .halo-plein { fill: var(--papier); stroke: var(--papier); stroke-width: 2.4; stroke-linejoin: round; }
.montagnes .grimpeur .cuisse, .montagnes .grimpeur .tibia, .montagnes .grimpeur .chaussure, .montagnes .grimpeur .bras, .montagnes .grimpeur .avant-bras { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.montagnes .grimpeur .halo-cuisse, .montagnes .grimpeur .halo-tibia, .montagnes .grimpeur .halo-chaussure, .montagnes .grimpeur .halo-bras, .montagnes .grimpeur .halo-avant-bras { fill: none; stroke: var(--papier); stroke-linecap: round; stroke-linejoin: round; }
.montagnes .grimpeur .cuisse { stroke-width: 3.1; } .montagnes .grimpeur .halo-cuisse { stroke-width: 5.5; }
.montagnes .grimpeur .tibia { stroke-width: 2.3; } .montagnes .grimpeur .halo-tibia { stroke-width: 4.7; }
.montagnes .grimpeur .chaussure { stroke-width: 1.5; } .montagnes .grimpeur .halo-chaussure { stroke-width: 3.9; }
.montagnes .grimpeur .bras { stroke-width: 2.2; } .montagnes .grimpeur .halo-bras { stroke-width: 4.6; }
.montagnes .grimpeur .avant-bras { stroke-width: 1.7; } .montagnes .grimpeur .halo-avant-bras { stroke-width: 4.1; }
.montagnes .paroi { fill: currentColor; opacity: .92; }
.montagnes .facette { fill: var(--papier); }
.montagnes .arete { fill: none; stroke: var(--papier); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
/* scène de l'accueil : sous le texte sur mobile, plein hero (absolu, derrière le texte) à partir de 880px */
.hero-scene { display: block; width: 100%; height: 74vw; margin-top: -.5rem; position: relative; z-index: 0; pointer-events: none; }
@media (min-width: 880px) {
  .hero { min-height: 52vw; }   /* même proportion que le viewBox de la scène (1200 × 624) : rien n'est rogné */
  .hero-scene { position: absolute; inset: 0; height: 100%; margin: 0; }
}
.montagnes .grimpeur .sac { fill: none; stroke: currentColor; stroke-width: 4.8; stroke-linecap: round; }
.montagnes .grimpeur .halo-sac { fill: none; stroke: var(--papier); stroke-width: 8; stroke-linecap: round; }
.montagnes .grimpeur .tronc { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; }
.montagnes .grimpeur .halo-tronc { fill: none; stroke: var(--papier); stroke-width: 9.4; stroke-linecap: round; }
.montagnes .corde { stroke: currentColor; stroke-width: 1.1; opacity: .8; }

/* ---------- Listes éditoriales ---------- */
.liste-taches { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .55rem; }
.liste-taches li { padding-left: 1.4rem; position: relative; font-size: 1.05rem; }
.liste-taches li::before { content: ""; position: absolute; left: 0; top: .78em; width: .6rem; height: 1px; background: var(--encre); }

.piege { border-top: 1px solid var(--filet); padding: 1.4rem 0; display: grid; gap: .3rem 1.6rem; grid-template-columns: auto 1fr; }
.piege:last-of-type { border-bottom: 1px solid var(--filet); }
.piege .num-piege { font-family: var(--serif); font-size: 2rem; font-weight: 300; line-height: 1; color: var(--gris-2); padding-top: .15rem; }
.piege h3 { margin-bottom: .2em; }
.piege p { color: var(--encre-2); }
.piege > * { grid-column: 2; }
.piege .num-piege { grid-column: 1; grid-row: 1 / span 2; }

.chiffres { display: grid; gap: 1.5rem; margin: 2.4rem 0; }
@media (min-width: 640px) { .chiffres { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.chiffre { border-left: 1px solid var(--filet-2); padding-left: 1.4rem; }
.chiffre .valeur { font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 8vw, 6rem); line-height: .95; letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.chiffre .valeur sup { font-size: .35em; vertical-align: .9em; font-weight: 400; margin-left: .05em; }
.chiffre .legende { color: var(--gris); margin-top: .5rem; max-width: 26em; }

/* étapes de l'approche */
.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 2rem 0 0; }
.etapes > li { counter-increment: etape; border-top: 1px solid var(--filet); padding: 1.8rem 0; display: grid; gap: .6rem 2rem; }
.etapes > li::before { content: counter(etape, lower-alpha) ")"; font-family: var(--serif); font-size: 1.6rem; color: var(--gris-2); line-height: 1.2; }
.etapes > li:last-child { border-bottom: 1px solid var(--filet); }
@media (min-width: 720px) { .etapes > li { grid-template-columns: 3.5rem 1fr; } .etapes > li::before { padding-top: .2rem; } }
.paliers { display: grid; gap: 1rem; margin-top: 1.2rem; }
@media (min-width: 720px) { .paliers { grid-template-columns: repeat(3, 1fr); } }
.palier { border-top: 2px solid var(--encre); padding-top: .8rem; }
.palier b { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; display: block; margin-bottom: .2rem; }
.palier span { color: var(--gris); font-size: .98rem; }

/* ---------- Démonstration : la machine prépare ---------- */
.boite { border: 1px solid var(--gris); border-radius: 3px; font-size: .92rem; overflow: hidden; margin-top: 2rem; background: var(--encre); }
.boite-entete { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--gris); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gris-2); }
.boite ul { list-style: none; margin: 0; padding: 0; }
.boite li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--encre-2); }
.boite li:last-child { border-bottom: 0; }
.boite .exp { font-weight: 600; }
.boite .obj { color: var(--gris-2); grid-column: 1; }
.boite .tag { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--gris); padding: .25em .6em; border-radius: 2px; white-space: nowrap; }
.boite .tag-fort { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.boite .brouillon { padding: .9rem 1rem; border-top: 1px dashed var(--gris); color: var(--papier); background: var(--encre-2); }
.boite .brouillon small { display: block; color: var(--gris-2); letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; margin-bottom: .3rem; }
.boite .brouillon .appro { display: inline-block; margin-top: .6rem; border: 1px solid var(--papier); padding: .3em .8em; font-size: .8rem; font-weight: 600; letter-spacing: .06em; }
@media (min-width: 880px) { .deux-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: start; } .deux-col .boite { margin-top: 0; } }

/* ---------- Réalisations ---------- */
.cartes { display: grid; gap: 0; margin-top: 2.5rem; }
.carte { border-top: 1px solid var(--filet); padding: 1.8rem 0; display: grid; gap: .5rem; }
.carte:last-child { border-bottom: 1px solid var(--filet); }
.carte h3 { margin-bottom: .2em; }
.carte p { color: var(--encre-2); }
@media (min-width: 880px) {
  .cartes { grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; margin-top: 3rem; }
  .carte { border-top: 2px solid var(--encre); border-bottom: 0 !important; padding: 1.4rem 0 0; }
}
.cas { padding-block: var(--rythme); border-top: 1px solid var(--filet); }
.cas-grille { display: grid; gap: 2.5rem; }
@media (min-width: 880px) { .cas-grille { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; align-items: start; } .cas-grille > figure { position: sticky; top: 100px; } }
.cas h2 { margin-bottom: 1.4rem; }
.cas dl { margin: 0; }
.cas dt { font-family: var(--sans); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin: 1.4rem 0 .35rem; }
.cas dt:first-child { margin-top: 0; }
.cas dd { margin: 0; color: var(--encre-2); }
.aside { border-left: 1px solid var(--filet-2); padding: .2rem 0 .2rem 1.3rem; margin-top: 1.8rem; color: var(--encre-2); font-style: italic; font-family: var(--serif); font-size: 1.1rem; line-height: 1.5; }
.aside b { font-style: normal; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); display: block; margin-bottom: .4rem; font-weight: 600; }

/* vidéo : vignette cliquable, lecteur chargé au clic seulement */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--encre); overflow: hidden; margin: 0; border-radius: 2px; }
.video img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .85; transition: opacity var(--duree) var(--courbe), transform 1.2s var(--courbe); }
.video:hover img { opacity: 1; transform: scale(1.02); }
.video button {
  position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--papier); font: inherit;
}
.video .jouer { display: inline-grid; place-items: center; width: 72px; height: 72px; border: 1px solid var(--papier); border-radius: 50%; background: color-mix(in srgb, var(--encre) 55%, transparent); transition: transform 300ms var(--courbe); }
.video button:hover .jouer { transform: scale(1.08); }
.video .jouer svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--papier); }
.video .duree { position: absolute; right: .8rem; bottom: .7rem; font-size: .78rem; letter-spacing: .1em; color: var(--papier); background: color-mix(in srgb, var(--encre) 70%, transparent); padding: .2em .6em; border-radius: 2px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video + figcaption, .legende-video { font-size: .9rem; color: var(--gris); margin-top: .7rem; }

/* ---------- Photo pleine largeur + texte (À propos, Pas de bureaux) ---------- */
.bandeau { position: relative; overflow: hidden; }
.bandeau .fond { position: absolute; inset: 0; }
.bandeau .fond img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: grayscale(1) contrast(1.05) brightness(.55); }
.bandeau .conteneur { position: relative; }
.bandeau .mesure { max-width: 36em; }
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait figcaption { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); margin-top: .7rem; }
.sec-sombre .portrait figcaption { color: var(--gris-2); }
.apropos-grille { display: grid; gap: 2rem; }
.apropos-grille .apropos-colonne { max-width: 420px; }
/* sous le portrait : ou me trouver ailleurs. Memes adresses que le pied de page. */
.ailleurs-titre { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); margin: 1.6rem 0 .5rem; }
.sec-sombre .ailleurs-titre { color: var(--gris-2); }
.ailleurs-liens { display: flex; flex-wrap: wrap; gap: .35rem 1.3rem; margin: 0; font-size: .95rem; }
.ailleurs-liens a { text-decoration: none; border-bottom: 1px solid var(--gris); padding-bottom: .1em; }
.sec-sombre .ailleurs-liens a:hover { border-color: var(--papier); }
@media (min-width: 880px) { .apropos-grille { grid-template-columns: 4fr 7fr; gap: 3.5rem; align-items: start; } .apropos-grille .apropos-colonne { position: sticky; top: 110px; max-width: none; } }

/* ---------- Formulaire ---------- */
.formulaire-bloc { border: 1px solid var(--filet-2); padding: clamp(1.4rem, 4vw, 2.6rem); background: var(--papier); border-radius: 3px; }
.sec-sombre .formulaire-bloc { color: var(--encre); }
.formulaire-bloc .kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); margin-bottom: .6rem; font-weight: 600; }
.formulaire-bloc h2, .formulaire-bloc h3 { margin-bottom: 1.4rem; }
.champs { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .champs { grid-template-columns: 1fr 1fr; } .champs .plein { grid-column: 1 / -1; } }
.champ label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.champ label .fac { font-weight: 400; color: var(--gris); }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; color: var(--encre); background: transparent;
  border: 0; border-bottom: 1px solid var(--filet-2); border-radius: 0; padding: .55em 0;
  transition: border-color 200ms;
}
.champ select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23141414' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right .2em center; padding-right: 1.6em; cursor: pointer; }
.champ textarea { resize: vertical; min-height: 6.5em; line-height: 1.5; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--encre); box-shadow: 0 1px 0 var(--encre); }
.champ .aide { font-size: .88rem; color: var(--gris); margin-top: .4rem; }
.champ .compteur { font-size: .82rem; color: var(--gris); text-align: right; margin-top: .3rem; font-variant-numeric: tabular-nums; }
.champ .erreur { display: none; color: var(--encre); font-size: .88rem; margin-top: .35rem; font-weight: 600; }
.champ[data-invalide="true"] .erreur { display: block; }
.champ[data-invalide="true"] input, .champ[data-invalide="true"] select { border-bottom-color: var(--encre); border-bottom-width: 2px; }
.consentement { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; font-size: .95rem; color: var(--encre-2); margin-top: .4rem; }
.consentement input { width: 1.15em; height: 1.15em; margin: .2em 0 0; accent-color: var(--encre); }
.piege-robot { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-pied { display: grid; gap: 1rem; margin-top: 1.6rem; align-items: center; }
.form-pied .note { font-size: .88rem; color: var(--gris); }
@media (min-width: 640px) { .form-pied { grid-template-columns: auto 1fr; gap: 1.5rem; } }
.form-etat { border-left: 2px solid var(--encre); padding: .6rem 0 .6rem 1.2rem; margin-top: 1.4rem; display: none; }
.form-etat[data-visible="true"] { display: block; }
.form-etat.confirmation { border: 0; padding: 0; }
.form-etat.confirmation h3 { margin-bottom: .4em; }
.contact-grille { display: grid; gap: 3rem; }
@media (min-width: 880px) { .contact-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4rem; align-items: start; } .contact-grille aside { position: sticky; top: 100px; } }
.gros-courriel { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); word-break: break-all; text-decoration: none; border-bottom: 1px solid var(--filet-2); }
.gros-courriel:hover { border-color: var(--encre); }

/* ---------- FAQ (tout en clair) ---------- */
.faq { margin-top: 2rem; }
.faq > div { border-top: 1px solid var(--filet); padding: 1.6rem 0; }
.faq > div:last-child { border-bottom: 1px solid var(--filet); }
.faq dt { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin-bottom: .6rem; line-height: 1.25; }
.faq dd { margin: 0; color: var(--encre-2); max-width: var(--mesure); }
@media (min-width: 880px) { .faq > div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; } .faq dt { margin-bottom: 0; } }

/* ---------- Guide ---------- */
.cles { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: cle; }
.cles li { counter-increment: cle; border-top: 1px solid var(--filet); padding: 1.4rem 0; display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem; }
.cles li:last-child { border-bottom: 1px solid var(--filet); }
.cles li::before { content: counter(cle); font-family: var(--serif); font-weight: 300; font-size: 2.4rem; line-height: 1; color: var(--gris-2); }
.cles b { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; display: block; margin-bottom: .2rem; }
.cles li p { color: var(--encre-2); }

/* ---------- Texte long (confidentialité) ---------- */
.texte-long { max-width: var(--mesure); }
.texte-long h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.texte-long .maj { color: var(--gris); font-size: .9rem; }

/* ---------- Appel final ---------- */
.appel { text-align: left; }
.appel h2 { max-width: 20ch; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--filet); padding-block: 3rem 2.5rem; font-size: .95rem; color: var(--gris); }
.pied-grille { display: grid; gap: 2rem; }
@media (min-width: 720px) { .pied-grille { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; } }
.pied .logo img { width: 128px; margin-bottom: 1rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pied a { text-decoration: none; color: var(--encre); }
.pied a:hover { text-decoration: underline; }
.pied .titre-col { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; color: var(--gris); }
.pied .copyright { border-top: 1px solid var(--filet); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }

/* ---------- Apparitions au défilement ---------- */
.js .apparait { opacity: 0; transform: translateY(18px); transition: opacity var(--duree) var(--courbe), transform var(--duree) var(--courbe); }
.js .apparait.visible { opacity: 1; transform: none; }
.js .apparait[data-delai="1"] { transition-delay: 90ms; }
.js .apparait[data-delai="2"] { transition-delay: 180ms; }
.js .apparait[data-delai="3"] { transition-delay: 270ms; }
@media (prefers-reduced-motion: reduce) {
  .js .apparait { opacity: 1; transform: none; transition: none; }
  .btn, .btn .fleche, .video img { transition: none; }
}

/* ---------- Impression ---------- */
@media print { .entete, .nav-mobile, .pied .colonnes, .video button { display: none; } body::before { display: none; } }
