/* Création Keeby — feuille unique, mobile d'abord.
   Polices auto-hébergées (OFL) : Fraunces (titres), Caveat (touches manuscrites). Corps : polices système. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --papier: #f6efe3;
  --papier-2: #efe2cc;
  --kraft: #dcc39c;
  --kraft-fonce: #c9a875;
  --bois: #a8743f;
  --noyer: #4a2f1d;
  --noyer-2: #3b2a1e;
  --encre: #2b1d14;
  --encre-doux: #5a4535;
  --accent: #b8391b;        /* vermillon : blanc dessus = 5,6:1 */
  --accent-fonce: #922b12;
  --turquoise: #1b6a6d;     /* vinyle : sur papier = 5,9:1 */
  --jaune: #e9b949;
  --metal: #c9ccce;
  --blanc: #fffdf8;

  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --corps: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --main: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --r: 14px;
  --ombre: 0 1px 2px rgb(43 29 20 / .12), 0 8px 24px -8px rgb(43 29 20 / .25);
  --ombre-forte: 0 2px 4px rgb(43 29 20 / .15), 0 18px 40px -12px rgb(43 29 20 / .4);
  --gouttiere: 16px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--corps);
  color: var(--encre);
  background-color: var(--papier);
  background-image: url("../img/grain.png");
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--accent-fonce); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 8vw, 4.6rem); font-weight: 800; overflow-wrap: break-word; }
h2 { font-size: clamp(1.8rem, 5.5vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.enveloppe { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gouttiere); }
.evitement {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--encre); color: var(--blanc); padding: 12px 16px; border-radius: 8px;
}
.evitement:focus { top: 8px; color: var(--blanc); }

/* ---------- Touches manuscrites ---------- */
.main {
  font-family: var(--main);
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--turquoise);
  margin: 0 0 .25em;
  font-weight: 600;
}
.main--intro::after {
  content: "";
  display: inline-block;
  width: 34px; height: 22px;
  margin-left: 6px;
  vertical-align: -10px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 22' fill='none' stroke='%231b6a6d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 4c8 1 16 5 26 13'/%3E%3Cpath d='M20 18l9 0-2-9'/%3E%3C/svg%3E");
}
.main--clair { color: var(--jaune); }
/* Souligné : ondulé (texte qui peut passer à la ligne) au téléphone ; trait dessiné SVG sur grand écran. */
.souligne {
  position: relative;
  text-decoration: underline wavy var(--accent); text-decoration-thickness: 2px;
  text-underline-offset: .2em; text-decoration-skip-ink: none;
}
.souligne .trait { display: none; }
.trait {
  position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em;
  fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 0;
}
.a-venir { font-style: italic; color: var(--encre-doux); }

/* ---------- Boutons (zones tactiles >= 44 px) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: .7em 1.35em;
  font: 700 1rem/1.2 var(--corps); text-decoration: none; text-align: center;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-fonce); }
.btn--accent:hover { background: var(--accent-fonce); color: #fff; transform: translateY(-1px); }
.btn--accent:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-fonce); }
.btn--contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn--contour:hover { background: var(--encre); color: var(--papier); }
.btn--petit { min-height: 44px; padding: .5em 1em; font-size: .95rem; }
.btn--grand { min-height: 56px; font-size: 1.08rem; padding-inline: 1.8em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.lien-fleche { font-weight: 700; display: inline-flex; align-items: center; gap: .35em; min-height: 44px; }

/* ---------- En-tête ---------- */
.entete {
  position: relative; z-index: 50;   /* collant seulement avec JS (menu repliable) ou sur grand écran */
  background: rgb(246 239 227 / .94);
  border-bottom: 1px dashed var(--kraft-fonce);
}
@supports (backdrop-filter: blur(6px)) {
  .entete { background: rgb(246 239 227 / .8); backdrop-filter: blur(8px); }
}
.entete__in {
  max-width: var(--max); margin-inline: auto; padding: 8px var(--gouttiere);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); min-height: 48px; }
.logo__k {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--noyer-2); color: var(--papier);
  font: 800 1.45rem/1 var(--titre);
  box-shadow: inset 0 0 0 3px var(--noyer-2), inset 0 0 0 5px var(--kraft);
  transform: rotate(-8deg);
}
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__petit { font: 600 1.1rem/1 var(--main); color: var(--turquoise); }
.logo__nom { font: 800 1.5rem/1 var(--titre); letter-spacing: -.02em; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; min-width: 48px; padding: 0 14px;
  background: var(--noyer-2); color: var(--papier); border: 0; border-radius: 999px;
  font: 700 .95rem var(--corps); cursor: pointer;
}
.menu-btn__barres, .menu-btn__barres::before, .menu-btn__barres::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.menu-btn__barres::before, .menu-btn__barres::after { content: ""; position: absolute; left: 0; }
.menu-btn__barres::before { top: -6px; }
.menu-btn__barres::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__barres { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__barres::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__barres::after { transform: translateY(-6px) rotate(-45deg); }

.nav { width: 100%; }
.nav ul { list-style: none; margin: 0; padding: 4px 0 10px; display: flex; flex-direction: column; gap: 2px; }
.nav a:not(.btn) {
  display: flex; align-items: center; min-height: 48px; padding: 0 6px;
  color: var(--encre); text-decoration: none; font-weight: 600; font-size: 1.1rem;
}
.nav a[aria-current="page"]:not(.btn) { color: var(--accent-fonce); }
.nav a[aria-current="page"]:not(.btn)::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 10px;
}
.nav__cta { margin-top: 8px; }
.nav__cta .btn { width: 100%; }
.js-nav .nav { display: none; }
.js-nav .nav.est-ouvert { display: block; }

/* ---------- Accueil : une ---------- */
.une {
  max-width: var(--max); margin-inline: auto;
  padding: 28px var(--gouttiere) 40px;
  display: grid; gap: 28px;
}
.une__titre { margin-top: .1em; }
.chapeau { font-size: 1.15rem; color: var(--encre-doux); max-width: 38em; }
.une__collage { position: relative; min-height: 360px; margin-inline: auto; width: 100%; max-width: 420px; }
.polaroid {
  margin: 0; background: var(--blanc); padding: 10px 10px 4px;
  box-shadow: var(--ombre-forte); border-radius: 3px; position: relative;
}
.polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 2px; }
.polaroid figcaption { text-align: center; color: var(--encre); font-size: 1.35rem; padding: 6px 4px 4px; }
.polaroid::before {        /* ruban adhésif */
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgb(233 185 73 / .55); box-shadow: 0 1px 2px rgb(0 0 0 / .08);
}
.une__collage .polaroid { position: absolute; width: 62%; }
.polaroid--1 { left: 0; top: 10px; transform: rotate(-5deg); z-index: 2; }
.polaroid--2 { right: 0; top: 0; transform: rotate(4deg); z-index: 1; }
.polaroid--3 { left: 22%; top: 150px; transform: rotate(2deg); z-index: 0; }
.une__collage .polaroid--2 { top: 56px; width: 54%; }
.une__collage .polaroid--2 figcaption { text-align: right; padding-right: 8px; }
/* Légendes du collage : une ligne (les polaroïds se chevauchent) ; ailleurs elles passent à la ligne. */
.une__collage .polaroid figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.polaroid figcaption { overflow-wrap: anywhere; }
.une__collage .polaroid--3 { left: 16%; top: 236px; width: 54%; }
.une__collage { min-height: 500px; }
.tampon {
  position: absolute; right: 2px; bottom: 0; z-index: 4; margin: 0;
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  color: var(--accent-fonce); background: rgb(255 253 248 / .85);
  border: 3px double var(--accent);
  font: 800 1.15rem/1 var(--titre); text-transform: uppercase; letter-spacing: .04em;
  transform: rotate(-14deg);
}
.tampon__petit { display: block; font: 600 1.05rem/1.3 var(--main); text-transform: none; letter-spacing: 0; }

/* ---------- Sections ---------- */
.sec-tete { margin-bottom: 24px; }
.sec-tete--ligne { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; }
.services, .etapes, .apercu, .galerie-sec, .recit, .machine, .region, .contact { padding-block: 44px; }

/* Tuiles de services : cartes kraft légèrement de travers */
.tuiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.tuile { position: relative; }
.tuile__lien, .tuile--idee .tuile__corps {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: var(--encre);
  background: var(--blanc); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--ombre);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tuile:nth-child(odd) .tuile__lien { transform: rotate(-.6deg); }
.tuile:nth-child(even) .tuile__lien { transform: rotate(.6deg); }
.tuile__lien:hover, .tuile__lien:focus-visible { transform: rotate(0) translateY(-4px); box-shadow: var(--ombre-forte); color: var(--encre); }
.tuile__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--papier-2); }
.tuile__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tuile__lien:hover .tuile__photo img { transform: scale(1.04); }
.tuile--4 .tuile__photo img { object-position: 50% 30%; }
.tuile__corps {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; position: relative; flex: 1;
  background: var(--papier-2) url("../img/bois.svg") center/600px auto;
}
.tuile__num {
  position: absolute; top: -26px; right: 14px;
  font: 800 2.6rem/1 var(--titre); color: var(--accent);
  -webkit-text-stroke: 0; text-shadow: 2px 2px 0 var(--blanc);
}
.tuile__titre { font: 700 1.35rem/1.15 var(--titre); }
.tuile__texte { color: var(--encre-doux); font-size: 1rem; }
.tuile__plus { margin-top: auto; padding: 11px 0 4px; font-weight: 700; color: var(--accent-fonce); min-height: 44px; display: block; }
.tuile--idee .tuile__corps { background: var(--noyer-2) url("../img/bois-clair.svg") center/600px auto; color: var(--papier); padding: 26px 22px; justify-content: center; border: 2px dashed var(--kraft); }
.tuile--idee .tuile__texte { color: #eadcc6; }
.tuile--idee .tuile__main { color: var(--jaune); font-size: 1.9rem; }
.tuile--idee .tuile__plus { color: var(--jaune); }

/* Étapes */
.etapes { background: var(--papier-2); border-block: 1px dashed var(--kraft-fonce); }
.etapes__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; counter-reset: e; }
.etapes__liste li { position: relative; padding-left: 70px; }
.etapes__liste h3 { margin-bottom: .3em; }
.etapes__liste p { color: var(--encre-doux); margin: 0; }
.etapes__num {
  position: absolute; left: 0; top: -4px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 2rem/1 var(--main); color: var(--blanc); background: var(--turquoise);
  box-shadow: 3px 3px 0 var(--noyer-2);
}
.etapes__liste li:nth-child(2) .etapes__num { background: var(--accent); }
.etapes__liste li:nth-child(3) .etapes__num { background: var(--noyer); }

/* Mosaïque d'aperçu */
.mosaique { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaique__el a { display: block; position: relative; height: 100%; border-radius: 10px; overflow: hidden; box-shadow: var(--ombre); }
.mosaique__el img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform .5s ease; }
.mosaique__el a:hover img { transform: scale(1.05); }
.mosaique__el--1 { grid-column: span 2; }
.mosaique__el--1 img { aspect-ratio: 4 / 3; }
.etiquette {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  background: var(--kraft); color: var(--encre);
  padding: 4px 12px 4px 18px; font-weight: 700; font-size: .9rem; line-height: 1.3;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  transform: rotate(-2deg);
}

/* Bandeau d'appel bois foncé */
.appel {
  background: var(--noyer-2) url("../img/bois-clair.svg") center/700px auto;
  color: var(--papier); text-align: center; padding-block: 60px;
  position: relative;
}
.appel::before, .appel::after {   /* bords déchirés façon papier */
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background: var(--papier);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v6l-6 4-8-5-9 6-7-4-10 5-8-6-9 5-7-3-9 6-8-5-10 4-7-5-9 5-8-4-9 3L0 8z'/%3E%3C/svg%3E") 0 0/240px 14px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v6l-6 4-8-5-9 6-7-4-10 5-8-6-9 5-7-3-9 6-8-5-10 4-7-5-9 5-8-4-9 3L0 8z'/%3E%3C/svg%3E") 0 0/240px 14px repeat-x;
}
.appel::before { top: 0; }
.appel::after { bottom: 0; transform: scaleY(-1); }
.appel h2 { color: var(--blanc); }
.appel p { color: #eadcc6; max-width: 34em; margin-inline: auto; }
.appel .btn { margin-top: 8px; }
.appel--leger { margin-top: 20px; }

/* ---------- En-tête de page intérieure ---------- */
.tete-page { padding: 34px 0 10px; }
.tete-page h1 { max-width: 16ch; }

/* ---------- Galerie ---------- */
.filtres ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.filtre {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 2px solid var(--encre); background: var(--blanc);
  color: var(--encre); text-decoration: none; font-weight: 700;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.filtre:hover { transform: translateY(-1px) rotate(-1deg); color: var(--encre); }
.filtre[aria-current="true"] { background: var(--encre); color: var(--papier); }
.filtre__nb {
  font-size: .875rem; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  display: inline-grid; place-items: center; background: var(--kraft); color: var(--encre);
}
.galerie__statut { color: var(--encre-doux); font-size: .95rem; margin-bottom: 18px; }
.galerie { list-style: none; margin: 0; padding: 0; columns: 2 150px; column-gap: 12px; }
.galerie__el { break-inside: avoid; margin-bottom: 12px; }
.galerie__lien {
  display: block; position: relative; text-decoration: none; color: var(--encre);
  background: var(--blanc); padding: 6px 6px 0; border-radius: 6px; box-shadow: var(--ombre);
  transition: transform .2s ease, box-shadow .2s ease;
}
.galerie__el:nth-child(3n+1) .galerie__lien { transform: rotate(-.8deg); }
.galerie__el:nth-child(3n+2) .galerie__lien { transform: rotate(.7deg); }
.galerie__lien:hover, .galerie__lien:focus-visible { transform: rotate(0) scale(1.02); box-shadow: var(--ombre-forte); color: var(--encre); }
.galerie__lien img { width: 100%; border-radius: 3px; }
.galerie__legende { display: block; padding: 8px 4px 10px; }
.galerie__titre { overflow-wrap: anywhere; display: block; font-family: var(--main); font-size: 1.3rem; line-height: 1.1; font-weight: 700; }
.galerie__cat { display: block; font-size: .875rem; color: var(--encre-doux); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* Visionneuse */
.visionneuse {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: rgb(27 18 12 / .985); color: var(--papier);
}
.visionneuse::backdrop { background: rgb(27 18 12 / .7); }
.visionneuse__cadre { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 12px 24px; touch-action: pan-y pinch-zoom; }
.visionneuse__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; max-height: 100%; }
.visionneuse__fig img { max-width: min(100%, 1100px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 4px; background: var(--blanc); padding: 6px; }
.visionneuse__fig figcaption { text-align: center; padding-inline: 56px; }
.visionneuse__titre { font: 700 1.6rem/1.1 var(--main); color: var(--blanc); }
.visionneuse__pos { display: block; font-size: .9rem; color: #d9c9b2; }
.visionneuse__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgb(255 253 248 / .6); background: rgb(43 29 20 / .7); color: var(--blanc);
  font: 400 2rem/1 var(--corps); cursor: pointer; display: grid; place-items: center;
}
.visionneuse__btn:hover { background: var(--accent); border-color: var(--accent); }
.visionneuse__btn:focus-visible { outline-color: var(--jaune); }
.visionneuse__fermer { top: 8px; right: 8px; }
.visionneuse__prec { left: 8px; bottom: 16px; }
.visionneuse__suiv { right: 8px; bottom: 16px; }

/* ---------- À propos ---------- */
.recit__grille, .machine__grille, .region__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; }
.puces { padding-left: 0; list-style: none; }
.puces li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.puces li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--accent); transform: rotate(-20deg);
}
.polaroid--seul { transform: rotate(2.5deg); max-width: 440px; margin-inline: auto; }
.region .polaroid { max-width: 300px; margin-inline: auto; transform: rotate(-3deg); }
.machine { background: linear-gradient(135deg, #e3e5e6, var(--metal) 60%, #b7bbbe); position: relative; }
.machine::before {   /* métal brossé */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .12) 0 1px, transparent 1px 3px);
}
.machine__grille { position: relative; }
.machine__photo { margin: 0; }
.machine__photo img { border-radius: var(--r); box-shadow: var(--ombre-forte); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.fiche {
  background: var(--blanc); border-radius: var(--r); padding: 26px 22px; box-shadow: var(--ombre);
  border: 1px solid #b7bbbe; position: relative;
}
.fiche__etiquette {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px;
  background: var(--encre); color: var(--papier);
  font: 700 .875rem/1.4 var(--corps); text-transform: uppercase; letter-spacing: .1em;
}
.fiche__liste { margin: 18px 0 0; display: grid; gap: 10px; }
/* Terme et définition côte à côte s'il y a la place, sinon la définition passe dessous (police agrandie, petit écran). */
.fiche__liste div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding-top: 10px; border-top: 1px dashed #b7bbbe; }
.fiche__liste dt { flex: 0 0 6.5em; max-width: 100%; }
.fiche__liste dd { flex: 1 1 11em; min-width: 0; overflow-wrap: anywhere; }
.fiche__liste dt { font: 700 1.4rem/1.1 var(--main); color: var(--turquoise); }
.fiche__liste dd { margin: 0; }

/* ---------- Contact ---------- */
.contact__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: start; }
.carte-form {
  background: var(--blanc); border-radius: var(--r); box-shadow: var(--ombre);
  padding: 22px 16px 26px; border-top: 6px solid var(--accent);
}
.formulaire__note { font-size: .92rem; color: var(--encre-doux); }
.requis { color: var(--accent-fonce); font-weight: 700; }
.facultatif { font-weight: 400; color: var(--encre-doux); font-size: .92em; }
.champ { margin-bottom: 18px; }
.champ label { display: block; font-weight: 700; margin-bottom: 6px; }
.champ__aide { font-size: .92rem; color: var(--encre-doux); margin: -2px 0 8px; }
.champ input:not([type="file"]), .champ select, .champ textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1.05rem/1.4 var(--corps); color: var(--encre);
  background: var(--papier); border: 2px solid #8a7462; border-radius: 10px;
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--turquoise); outline: 3px solid rgb(27 106 109 / .3); outline-offset: 0; background: var(--blanc); }
.champ input[type="file"] { width: 100%; min-height: 50px; padding: 10px 0; font: inherit; }
.champ input[type="file"]::file-selector-button {
  min-height: 44px; margin-right: 12px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--encre); background: var(--kraft); color: var(--encre); font: 700 .95rem var(--corps); cursor: pointer;
}
.champ [aria-invalid="true"] { border-color: var(--accent) !important; background: #fff4f0; }
.champ__err { color: var(--accent-fonce); font-weight: 700; font-size: .95rem; margin: 6px 0 0; }
.champ__err::before { content: "! "; }
.champ-duo { display: grid; gap: 0 16px; }
.champ-duo .champ--large { grid-column: 1 / -1; }
.piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.erreurs, .merci { border-radius: 10px; padding: 16px 18px; margin-bottom: 22px; }
.erreurs { background: #fff1ec; border: 2px solid var(--accent); }
.erreurs h2 { font-size: 1.3rem; color: var(--accent-fonce); }
.erreurs ul { margin: 0; padding-left: 1.2em; }
.erreurs a { color: var(--accent-fonce); font-weight: 600; }
.merci { background: #e9f3f1; border: 2px solid var(--turquoise); }
.merci h2 { font-size: 1.5rem; }
.kraft {
  background: var(--kraft) url("../img/bois.svg") center/600px auto; border-radius: var(--r);
  padding: 22px 20px; box-shadow: var(--ombre); transform: rotate(-1deg);
}
.kraft h2 { font-size: 1.5rem; }
.kraft__lieu { margin: 14px 0 0; font-weight: 700; }
.astuce { margin-top: 24px; padding: 18px 20px; border: 2px dashed var(--turquoise); border-radius: var(--r); transform: rotate(.8deg); }
.astuce p:last-child { margin: 0; }

/* ---------- Pied ---------- */
.pied { background: var(--noyer-2) url("../img/bois-clair.svg") center/700px auto; color: #eadcc6; margin-top: 0; }
.pied__in { max-width: var(--max); margin-inline: auto; padding: 46px var(--gouttiere) 26px; display: grid; gap: 28px; }
.pied a { color: var(--jaune); }
.pied a:hover { color: var(--blanc); }
.pied a.btn, .pied a.btn:hover { color: #fff; }
.pied .a-venir { color: #cbb89f; }
.pied__nom { font: 800 1.8rem/1 var(--titre); color: var(--blanc); margin-bottom: .2em; }
.pied .main { color: var(--jaune); }
.pied__titre { font: 700 1.1rem/1.2 var(--corps); color: var(--blanc); text-transform: uppercase; letter-spacing: .1em; }
.pied__liste { list-style: none; margin: 0; padding: 0; }
.pied__liste li { padding: 4px 0; }
.pied__cta p { font: 700 1.4rem/1.2 var(--titre); color: var(--blanc); }
.pied__bas { margin: 0; padding: 16px var(--gouttiere) 22px; text-align: center; font-size: .9rem; border-top: 1px dashed rgb(234 220 198 / .3); color: #cbb89f; }
.kraft .pied__liste li { padding: 3px 0; }

/* ---------- Divers (corrections tests) ---------- */
.js-nav .entete { position: sticky; top: 0; }
.une > * { min-width: 0; }
:target, .galerie__lien, [data-focus], #soumission { scroll-margin-top: 96px; }
html:has(dialog[open]), html.sans-defilement { overflow: hidden; }

/* Téléphone : cartes de services variées (alternance photo gauche/droite, une en polaroïd) */
@media (min-width: 360px) and (max-width: 639px) {
  .tuile--2 .tuile__lien, .tuile--5 .tuile__lien { flex-direction: row; }
  .tuile--2 .tuile__lien { flex-direction: row-reverse; }
  .tuile--2 .tuile__photo, .tuile--5 .tuile__photo { flex: 0 0 40%; aspect-ratio: auto; }
  .tuile--2 .tuile__num, .tuile--5 .tuile__num { top: 10px; right: auto; left: 16px; font-size: 2.1rem; }
  .tuile--2 .tuile__titre, .tuile--5 .tuile__titre { margin-top: 30px; font-size: 1.2rem; }
  .tuile--2 .tuile__corps, .tuile--5 .tuile__corps { padding: 16px 14px 14px 16px; }
}
@media (max-width: 639px) {
  .tuile--3 .tuile__lien { padding: 10px 10px 0; background: var(--blanc); transform: rotate(-1.8deg); }
  .tuile--3 .tuile__photo { aspect-ratio: 1; border-radius: 3px; }
  .tuile--3 .tuile__corps { background: var(--blanc); padding-inline: 8px; }
  .tuile--3::before {
    content: ""; position: absolute; z-index: 2; top: -10px; left: 50%; width: 92px; height: 24px;
    transform: translateX(-50%) rotate(3deg); background: rgb(233 185 73 / .6);
  }
  .tuile--4 .tuile__lien { transform: rotate(1.2deg); }
}

/* ---------- Apparition douce au défilement ---------- */
.anime .apparait { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.anime .apparait.vu { opacity: 1; transform: none; }
.anime .tuile.apparait.vu .tuile__lien { transition-delay: 0s; }
.anime .une__titre .trait { stroke-dashoffset: 320; animation: trace 1.1s .4s ease-out forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anime .apparait { opacity: 1; transform: none; }
  .anime .une__titre .trait { stroke-dashoffset: 0; }
}

/* ---------- Tablette ---------- */
@media (min-width: 640px) {
  :root { --gouttiere: 28px; }
  .tuiles { grid-template-columns: 1fr 1fr; }
  .mosaique { grid-template-columns: repeat(3, 1fr); }
  .mosaique__el--1 { grid-column: span 2; grid-row: span 2; }
  .mosaique__el--1 img { aspect-ratio: auto; }
  .mosaique__el:nth-child(n+7) { display: none; }   /* 3 colonnes : grande photo + 5 = 3 rangées pleines */
  .galerie { columns: 3 200px; column-gap: 18px; }
  .galerie__el { margin-bottom: 18px; }
  .champ-duo { grid-template-columns: 1fr 1fr; }
  .carte-form { padding: 30px 30px 34px; }
  .pied__in { grid-template-columns: 1fr 1fr; }
  .etapes__liste { grid-template-columns: repeat(3, 1fr); }
  .etapes__liste li { padding-left: 0; padding-top: 70px; }
  .etapes__liste li:not(:last-child)::after {    /* flèche dessinée entre les étapes */
    content: ""; position: absolute; top: 14px; left: 70px; right: 10px; height: 26px;
    background: no-repeat left center/100% 26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 26' preserveAspectRatio='none' fill='none' stroke='%234a2f1d' stroke-width='2' stroke-linecap='round' stroke-dasharray='6 6'%3E%3Cpath d='M2 16c50-14 120-14 190-2'/%3E%3C/svg%3E");
  }
  .une__collage { max-width: 520px; min-height: 600px; }
  .une__collage .polaroid--3 { top: 290px; }
  .tampon { width: 120px; height: 120px; }
}

@media (min-width: 720px) {
  .une { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 28px; padding-top: 40px; }
  .une__titre { font-size: clamp(2.2rem, 5vw, 4.4rem); }
}
@media (min-width: 720px) and (max-width: 959px) {
  .une__collage { min-height: 470px; max-width: none; }
  .une__collage .polaroid--3 { top: 215px; }
  .tampon { width: 104px; height: 104px; font-size: 1rem; }
}

/* ---------- Ordinateur ---------- */
@media (min-width: 960px) {
  :root { --gouttiere: 40px; }
  body { font-size: 1.125rem; }
  .menu-btn { display: none !important; }
  .entete { position: sticky; top: 0; }
  .souligne { white-space: nowrap; text-decoration: none; }
  .souligne .trait { display: block; }
  .js-nav .nav, .nav { display: block; width: auto; }
  .nav ul { flex-direction: row; align-items: center; gap: 6px; padding: 0; }
  .nav a:not(.btn) { padding: 0 12px; font-size: 1rem; position: relative; }
  .nav a[aria-current="page"]:not(.btn)::before { display: none; }
  .nav a:not(.btn)::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 3px; border-radius: 3px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
  }
  .nav a:not(.btn):hover::after, .nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
  .nav__cta { margin: 0 0 0 10px; }
  .nav__cta .btn { width: auto; }
  .entete__in { flex-wrap: nowrap; padding-block: 10px; }

  .une { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; padding-top: 48px; padding-bottom: 56px; gap: 48px; }
  .une__titre { font-size: clamp(2.6rem, 4vw, 4rem); }
  .une__collage { min-height: 560px; max-width: 600px; }
  .une__collage .polaroid { width: 58%; }
  .une__collage .polaroid--1 { left: -2%; top: 30px; }
  .une__collage .polaroid--2 { right: -4%; top: 0; }
  .une__collage .polaroid--3 { left: 22%; top: 250px; width: 50%; }
  .tampon { right: -10px; bottom: 30px; width: 136px; height: 136px; font-size: 1.35rem; }

  .services, .etapes, .apercu, .galerie-sec, .recit, .machine, .region, .contact { padding-block: 80px; }
  .tuiles { grid-template-columns: repeat(6, 1fr); gap: 32px 28px; align-items: start; }
  .tuile--1 { grid-column: 1 / span 4; }
  .tuile--1 .tuile__lien { flex-direction: row; }
  .tuile--1 .tuile__photo { flex: 1.15; aspect-ratio: 1; }
  .tuile--1 .tuile__corps { flex: 1; justify-content: center; padding: 34px 30px; }
  .tuile--1 .tuile__num { top: 22px; right: 24px; font-size: 3.4rem; }
  .tuile--1 .tuile__titre { font-size: 1.8rem; margin-top: 40px; }
  .tuile--2 { grid-column: span 2; margin-top: 48px; }
  .tuile--3, .tuile--4, .tuile--5 { grid-column: span 2; }
  .tuile--4 { margin-top: 36px; }
  .tuile--idee { grid-column: 1 / -1; }
  .tuile--idee .tuile__corps { flex-direction: row; align-items: center; gap: 30px; flex-wrap: wrap; }
  .tuile--idee .tuile__texte { flex: 1; min-width: 20em; margin: 0; }

  .mosaique__el:nth-child(n+7) { display: block; }
  .mosaique { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .mosaique__el--1 { grid-column: span 2; grid-row: span 2; }
  .mosaique__el--4, .mosaique__el--5 { grid-column: span 2; }
  .mosaique__el--4 img, .mosaique__el--5 img { aspect-ratio: 16 / 10; }
  .mosaique__el:nth-child(even) { transform: translateY(24px); }

  .tete-page { padding: 64px 0 10px; }
  .galerie { columns: 3; column-gap: 24px; }
  .galerie__el { margin-bottom: 24px; }
  .visionneuse__prec, .visionneuse__suiv { top: 50%; bottom: auto; transform: translateY(-50%); }
  .visionneuse__prec { left: 24px; }
  .visionneuse__suiv { right: 24px; }
  .visionneuse__fermer { top: 20px; right: 24px; }

  .recit__grille { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 60px; }
  .machine__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; }
  .machine__photo { transform: rotate(-2deg); }
  .fiche { padding: 38px 36px; transform: rotate(1deg); }
  .region__grille { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 60px; }
  .recit__grille--seul, .machine__grille--seul, .region__grille--seul { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }

  .contact__grille { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 50px; }
  .contact__aside { position: sticky; top: 100px; }
  .pied__in { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

@media (min-width: 1300px) {
  .galerie { columns: 4; }
}

/* ---------- Page texte (politique de confidentialité) ---------- */
.document { padding-block: 24px 60px; }
.document__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: start; }
.document__texte { max-width: 44rem; }
.document__texte h2 { font-size: clamp(1.4rem, 4.5vw, 1.8rem); margin-top: 1.6em; }
.document__texte h2:first-child { margin-top: 0; }
.document__maj { margin-top: 2em; font-size: .95rem; color: var(--encre-doux); }
.document__aside p:last-child { margin-bottom: 0; }
.pied__bas a { color: #eadcc6; }
@media (min-width: 960px) {
  .document__grille { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 60px; }
  .document__aside { position: sticky; top: 100px; }
}

/* ---------- Contact : formulaire bientôt disponible ---------- */
.bientot { position: relative; padding: 8px 4px 4px; }
.bientot h2 { font-size: clamp(1.5rem, 5vw, 2rem); max-width: 18ch; }
.bientot__liste { list-style: none; padding: 0; margin: 0 0 1.2em; }
.bientot__liste li { padding: 4px 0; }
.bientot__liste a { display: inline-flex; align-items: center; min-height: 44px; }
.bientot__tampon {
  float: right; margin: 0 0 10px 12px; width: 3.9em; height: 3.9em; border-radius: 50%;   /* en em : suit la taille de police */
  display: grid; place-items: center; transform: rotate(12deg);
  border: 3px double var(--turquoise); color: var(--turquoise);
  font: 700 1.5rem/1 var(--main);
}
.pied__bas a { display: inline-flex; align-items: center; min-height: 44px; }
.bientot__attente { font-size: 1.15rem; font-weight: 600; }
.bientot__liste li { padding: 6px 0; }
.bientot__grand { font: 700 clamp(1.15rem, 4.5vw, 1.5rem)/1.2 var(--titre); overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .bientot__tampon { float: none; margin: 0 0 8px; }
}
.formulaire__note a { display: inline-flex; align-items: center; min-height: 44px; }

/* Coordonnées (pied, carte Contact) : longues adresses coupables, liens >= 44 px */
.pied__in > *, .contact__grille > *, .contact__aside > * { min-width: 0; }
.pied__liste li, .kraft .pied__liste li { overflow-wrap: anywhere; }
.pied__liste a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
