/* Site vitrine Inès Ebene — direction éditoriale.
 * Fond os, encre, une seule couleur vive tirée du wax : le safran. */
:root {
  --os: #f2ede4;
  --os-2: #e7dfd1;
  --encre: #141114;
  --encre-2: #1e1a1d;
  --safran: #e0662a;
  /* Contrastes calculés sur fond os #f2ede4 (WCAG) :
     --safran 2,95:1  → décor seulement, ou sur fond encre (≈4,6:1) ;
     --safran-titre ≈4:1 → grands titres sur fond os (seuil 3:1) ;
     --safran-texte ≈5,3:1 → petit texte sur fond os (seuil 4,5:1). */
  --safran-titre: #c4511a;
  --safran-texte: #a6420e;
  --gris: #5d5659;
  /* blanc sur --wa ≈5,9:1 (l'ancien #1f8f4e ne donnait que 4,1:1) */
  --wa: #18733e;
  --wa-fonce: #125c31;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Inter Tight", "Segoe UI", system-ui, -apple-system, sans-serif;
  --marge: clamp(1.15rem, 4vw, 3.5rem);
  --courbe: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--os);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: .5rem; z-index: 200; background: var(--encre); color: var(--os); padding: .6em 1em; }
.evitement:focus { left: .5rem; }
:focus-visible { outline: 2px solid var(--safran); outline-offset: 3px; }
::selection { background: var(--safran); color: var(--encre); }

.etiquette {
  font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 1.6rem;
}
.etiquette-clair { color: inherit; opacity: .7; }
.grand-titre {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: .95; letter-spacing: -.01em;
  max-width: 19ch;
}
.grand-titre em { color: var(--safran-titre); }
.collections .grand-titre em, .methode-grand em { color: var(--safran); } /* sur fond encre */

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 1em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s var(--courbe);
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-plein { background: var(--wa); color: #fff; }
.btn-plein:hover { background: var(--wa-fonce); }
.btn-contour { border-color: currentColor; background: transparent; color: inherit; }
.btn-lien { padding-left: .4em; padding-right: .4em; background: none; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.ico { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--marge);
  transition: background-color .35s, padding .35s, box-shadow .35s;
}
.entete.defile {
  background: rgba(242, 237, 228, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding-top: .7rem; padding-bottom: .7rem;
  box-shadow: 0 1px 0 rgba(20, 17, 20, .08);
}
.logo { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; line-height: 1; margin-right: auto; }
.logo em { color: var(--safran-titre); }
.nav { display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-size: .95rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--courbe); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.pastille-wa {
  display: inline-flex; align-items: center; gap: .45em;
  background: var(--encre); color: var(--os);
  padding: .55em 1em; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 500;
}
.pastille-wa:hover { background: var(--wa); }
/* sélecteur de langue (FR / EN) */
.langue {
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-decoration: none;
  border: 1.5px solid currentColor; border-radius: 999px; padding: .38em .75em; line-height: 1;
}
.langue:hover { background: var(--encre); color: var(--os); border-color: var(--encre); }
.burger { display: none; }

@media (max-width: 860px) {
  .entete { gap: .8rem; }
  .pastille-wa span { display: none; }
  .pastille-wa { padding: .6em; }
  .burger {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: inherit;
  }
  .burger i { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .3s var(--courbe); }
  .menu-ouvert .burger i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
  .menu-ouvert .burger i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: .4rem;
    padding: 0 var(--marge);
    background: var(--os);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav a { font-family: var(--serif); font-size: clamp(2.6rem, 12vw, 4rem); line-height: 1.1; }
  /* à l'ouverture, visible tout de suite (seule l'opacité est animée) :
     sinon le focus posé sur le premier lien serait refusé pendant le fondu */
  .menu-ouvert .nav { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
  .menu-ouvert { background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  /* sans script (ou script absent/en retard au-delà de 4 s : classe "filet" sans "js-actif"), le burger ne peut rien
     ouvrir : la navigation s'affiche en ligne sous le logo */
  html:not(.js) .entete, html.filet:not(.js-actif) .entete { flex-wrap: wrap; position: absolute; }
  html:not(.js) .burger, html.filet:not(.js-actif) .burger { display: none; }
  html:not(.js) .nav, html.filet:not(.js-actif) .nav {
    position: static; z-index: auto; order: 3; flex-basis: 100%;
    flex-direction: row; flex-wrap: wrap; gap: .3rem 1.1rem; padding: .4rem 0 0;
    background: none; opacity: 1; visibility: visible;
  }
  html:not(.js) .nav a, html.filet:not(.js-actif) .nav a { font-family: var(--sans); font-size: .95rem; }
}

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 1000px);
  padding: 6.5rem var(--marge) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "meta collage" "titre collage" "bas collage";
  column-gap: 3vw;
}
.hero-meta { grid-area: meta; display: flex; gap: 2rem; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.hero-titre {
  grid-area: titre; align-self: center;
  font-family: var(--serif);
  font-size: clamp(5rem, 15vw, 15.5rem);
  line-height: .82; letter-spacing: -.035em;
  position: relative; z-index: 2;
  margin: 2rem 0;
}
.hero-titre .ligne { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-titre .ligne > * { display: inline-block; animation: monte 1.2s var(--courbe) both; }
.hero-titre .ligne:nth-child(2) > * { animation-delay: .12s; padding-left: .5em; color: var(--safran-titre); }
@keyframes monte { from { transform: translateY(105%); } }

.hero-bas { grid-area: bas; max-width: 30rem; animation: apparait 1s .5s both; }
.hero-accroche { font-size: 1.15rem; line-height: 1.5; margin-bottom: 1.6rem; }
.hero-accroche em { font-family: var(--serif); font-size: 1.3em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
@keyframes apparait { from { opacity: 0; transform: translateY(20px); } }

.hero-collage { grid-area: collage; position: relative; min-height: 520px; }
.cadre { position: absolute; margin: 0; overflow: hidden; background: var(--os-2); will-change: transform; animation: apparait 1.2s var(--courbe) both; }
.cadre img { width: 100%; height: 100%; object-fit: cover; }
.cadre-a { width: 58%; left: 20%; top: 2%; aspect-ratio: 3 / 4.6; border-radius: 999px 999px 6px 6px; animation-delay: .15s; }
.cadre-a img { object-position: center 20%; }
.cadre-b { width: 36%; left: 0; bottom: 2%; aspect-ratio: 4 / 5; border-radius: 6px; z-index: 2; animation-delay: .35s; box-shadow: 0 24px 50px -24px rgba(20, 17, 20, .5); }
.cadre-c { width: 31%; right: 0; top: 40%; aspect-ratio: 3 / 4.4; border-radius: 6px; z-index: 2; animation-delay: .5s; box-shadow: 0 24px 50px -24px rgba(20, 17, 20, .5); }
.badge {
  position: absolute; z-index: 3; width: 128px; height: 128px; left: 12%; top: 0;
  font: 500 11.5px var(--sans); letter-spacing: .2em; fill: var(--encre);
  background: var(--os); border-radius: 50%;
  animation: tourne 22s linear infinite;
}
.badge-centre { font-size: 22px; fill: var(--safran); }
@keyframes tourne { to { transform: rotate(360deg); } }

@media (max-width: 899px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas: "meta" "titre" "collage" "bas";
    padding-top: 5.5rem;
  }
  .hero-meta { justify-content: space-between; gap: 1rem; font-size: .72rem; }
  .hero-titre { font-size: 27vw; margin: 1.2rem 0 0; }
  .hero-collage { min-height: 0; height: 112vw; max-height: 640px; margin: -9vw 0 1.6rem; }
  .cadre-a { width: 60%; left: 20%; top: 6%; }
  .cadre-b { width: 40%; }
  .cadre-c { width: 36%; top: 28%; }
  .badge { width: 96px; height: 96px; left: 6%; top: 4%; }
  .hero-actions .btn-plein { flex: 1 1 100%; }
}

/* ---------- Bandeau défilant ---------- */
.bandeau { background: var(--encre); color: var(--os); overflow: hidden; padding: 1.1rem 0; }
.bandeau-piste { display: flex; width: max-content; animation: defile 38s linear infinite; }
.bandeau-piste span, .bandeau-piste b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.6rem); white-space: nowrap; padding: 0 .9em; line-height: 1.2; }
.bandeau-piste b { color: var(--safran); font-style: normal; padding: 0; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Univers ---------- */
.univers { padding: clamp(5rem, 12vw, 10rem) var(--marge); }
.manifeste {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.4vw, 4.8rem);
  line-height: 1.06; letter-spacing: -.01em;
  max-width: 22ch;
}
/* atténué mais lisible avant activation : l'animation accentue, elle ne révèle pas */
.manifeste .mot { color: rgba(20, 17, 20, .5); transition: color .35s; } /* ≈3,4:1, grand texte */
.manifeste .mot.on { color: var(--encre); }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--safran-titre); margin-top: 1.2rem; }
.valeurs {
  list-style: none; padding: 0; margin: clamp(4rem, 9vw, 7rem) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(20, 17, 20, .18);
}
.valeurs li { padding: 1.8rem 1.6rem 2.2rem 0; border-bottom: 1px solid rgba(20, 17, 20, .18); }
.valeurs li:not(:nth-child(3n + 1)) { padding-left: 1.6rem; border-left: 1px solid rgba(20, 17, 20, .18); }
.valeurs span { font-size: .8rem; color: var(--safran-texte); font-weight: 600; letter-spacing: .1em; }
.valeurs h3 { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; margin: .6rem 0 .6rem; }
.valeurs p { color: var(--gris); font-size: .98rem; }
@media (max-width: 860px) {
  .valeurs { grid-template-columns: 1fr; }
  .valeurs li, .valeurs li:not(:nth-child(3n + 1)) { padding: 1.5rem 0; border-left: 0; }
}

/* ---------- Collections ---------- */
.collections { background: var(--encre); color: var(--os); padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 6rem); }
.collections .etiquette { color: rgba(242, 237, 228, .6); }
.collections-tete { padding: 0 var(--marge); margin-bottom: clamp(3rem, 6vw, 5rem); }
.collections-intro { color: rgba(242, 237, 228, .7); max-width: 44ch; margin-top: 1.4rem; }
.sommaire { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 var(--marge); margin: -1.5rem 0 0; }
.sommaire a { text-decoration: none; border: 1px solid rgba(242, 237, 228, .3); border-radius: 999px; padding: .45em 1.1em; font-size: .92rem; transition: background-color .25s, color .25s; }
.sommaire a:hover { background: var(--os); color: var(--encre); }

.collection { padding: clamp(2.5rem, 5vw, 4rem) 0 0; scroll-margin-top: 70px; }
.col-tete {
  display: grid; align-items: end; gap: .4rem 1.5rem;
  grid-template-columns: auto auto 1fr auto auto;
  padding: 0 var(--marge) 1.4rem;
}
.col-num { font-size: .8rem; color: var(--safran); font-weight: 600; letter-spacing: .1em; align-self: start; padding-top: .8rem; }
.col-titre { font-family: var(--serif); font-size: clamp(3rem, 8vw, 6.5rem); line-height: .85; }
.col-sous { color: rgba(242, 237, 228, .65); font-size: .95rem; padding-bottom: .4rem; }
.col-compte { font-size: .85rem; color: rgba(242, 237, 228, .55); padding-bottom: .4rem; }
.col-nav { display: flex; gap: .5rem; }
/* sans script, les flèches ne feraient rien : la piste reste défilable au doigt/à la molette */
html:not(.js) .col-nav, html.filet:not(.js-actif) .col-nav { display: none; }
.col-fleche {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(242, 237, 228, .35); background: none; color: var(--os);
  font-size: 1.15rem; cursor: pointer; transition: background-color .25s, color .25s;
}
.col-fleche:hover { background: var(--os); color: var(--encre); }
@media (max-width: 700px) {
  /* minmax(0, …) et min-width:0 : préventif. Sans eux, une colonne de grille ne
     descend pas sous la largeur de son contenu ; un débordement de 9 px a été
     mesuré une fois à 320 px, sans pouvoir être reproduit ensuite. */
  .col-tete { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "num titre compte" "sous sous sous"; }
  .col-tete > * { min-width: 0; }
  .col-num { grid-area: num; }
  .col-titre { grid-area: titre; }
  .col-compte { grid-area: compte; }
  .col-sous { grid-area: sous; }
  .col-nav { display: none; }
}

.col-piste {
  --h: clamp(320px, 58svh, 560px);
  display: flex; gap: clamp(.8rem, 1.6vw, 1.4rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--marge);
  padding: 0 var(--marge) 1rem;
  scrollbar-width: none;
  cursor: grab;
  -webkit-user-select: none; user-select: none;
}
/* navigateurs sans unité svh : repli en vh (une double déclaration ne marcherait
   pas pour une propriété personnalisée, la seconde gagne toujours) */
@supports not (height: 1svh) {
  .col-piste { --h: clamp(320px, 58vh, 560px); }
  .hero { min-height: min(100vh, 1000px); }
}
.col-piste::-webkit-scrollbar { display: none; }
.col-piste.glisse { cursor: grabbing; scroll-snap-type: none; }
.col-piste.glisse * { pointer-events: none; }
.look { flex: none; margin: 0; width: calc(var(--h) * var(--r)); max-width: 84vw; scroll-snap-align: start; }
.look-ouvrir {
  display: block; width: 100%; height: var(--h); padding: 0; border: 0;
  background: var(--encre-2); overflow: hidden; cursor: zoom-in; border-radius: 4px;
}
.look-ouvrir img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--courbe), filter .5s; }
.look-ouvrir:hover img { transform: scale(1.045); }
.look figcaption { padding-top: .9rem; display: flex; flex-direction: column; gap: .25rem; }
.look-titre { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.look-desc { font-size: .9rem; color: rgba(242, 237, 228, .62); line-height: 1.45; }
.look-wa { margin-top: .4rem; color: var(--safran); font-size: .92rem; font-weight: 500; text-decoration: none; align-self: flex-start; }
.look-wa::after { content: " ↗"; }
.look-wa:hover { text-decoration: underline; text-underline-offset: 4px; }
/* les cartes très étroites gardent une légende lisible */
@media (max-width: 520px) { .look { min-width: 62vw; } .look-ouvrir img { object-position: center 18%; } }

/* ---------- Savoir-faire ---------- */
.savoir { padding: clamp(5rem, 11vw, 9rem) var(--marge); position: relative; }
.services { list-style: none; padding: 0; margin: clamp(3rem, 6vw, 5rem) 0 0; border-top: 1px solid rgba(20, 17, 20, .18); }
.service {
  display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 1rem;
  padding: 1.6rem 0; border-bottom: 1px solid rgba(20, 17, 20, .18);
  transition: padding .4s var(--courbe);
}
.service-n { font-size: .8rem; color: var(--safran-texte); font-weight: 600; letter-spacing: .1em; }
.service h3 { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1; transition: color .3s, transform .4s var(--courbe); }
.service p { color: var(--gris); max-width: 36ch; }
@media (hover: hover) {
  .service:hover h3 { font-style: italic; color: var(--safran-titre); transform: translateX(.4rem); }
}
@media (max-width: 760px) {
  .service { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .service p { grid-column: 2; }
}
.service-apercu {
  position: fixed; left: 0; top: 0; z-index: 30; margin: 0;
  width: 220px; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85);
  transition: opacity .3s, transform .4s var(--courbe);
  box-shadow: 0 30px 60px -25px rgba(20, 17, 20, .6);
}
.service-apercu img { width: 100%; height: 100%; object-fit: cover; }
.service-apercu.on { opacity: 1; }
@media (hover: none), (max-width: 760px) { .service-apercu { display: none; } }

.methode {
  margin-top: clamp(4rem, 9vw, 7rem);
  background: var(--encre); color: var(--os);
  border-radius: clamp(18px, 3vw, 32px);
  padding: clamp(2rem, 5vw, 4.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem;
}
.methode-colle { position: sticky; top: 18vh; align-self: start; }
.methode-grand { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: .95; }
.methode-compteur { font-family: var(--serif); font-size: clamp(4rem, 10vw, 8rem); line-height: 1; color: var(--safran); margin-top: 2rem; }
.methode-compteur span { display: inline-block; min-width: .55em; }
.etapes { list-style: none; padding: 0; margin: 0; }
.etape { min-height: 42vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid rgba(242, 237, 228, .15); transition: opacity .5s; }
/* l'atténuation n'existe que si le script tourne (c'est lui qui allume l'étape
   courante) ; elle ne touche que le grand titre : le paragraphe reste lisible */
.etape h3 { transition: color .5s; }
.js-actif .etape:not(.actif) h3 { color: rgba(242, 237, 228, .5); } /* ≈4,7:1 sur encre */
.etape::before { content: "0" attr(data-n); font-size: .85rem; letter-spacing: .1em; color: var(--safran); font-weight: 600; margin-bottom: .8rem; }
.etape h3 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; margin-bottom: .7rem; }
.etape p { color: rgba(242, 237, 228, .7); max-width: 34ch; }
@media (max-width: 800px) {
  .methode { grid-template-columns: 1fr; gap: 1rem; }
  .methode-colle { position: static; }
  .methode-compteur { display: none; }
  .etape { min-height: 0; padding: 1.6rem 0; }
  .js-actif .etape:not(.actif) h3 { color: inherit; }
}

/* ---------- Contact ---------- */
.contact { background: var(--safran); color: var(--encre); padding: clamp(5rem, 11vw, 9rem) var(--marge); }
.contact-titre { font-family: var(--serif); font-size: clamp(3.2rem, 10vw, 9rem); line-height: .88; letter-spacing: -.02em; max-width: 12ch; }
.contact-titre em { color: #fff; } /* blanc sur safran ≈3,4:1 (grand texte) ; l'os ne donnait que 2,95 */
.contact-intro { max-width: 42ch; margin-top: 1.6rem; font-size: 1.12rem; }
.contact-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(3rem, 6vw, 5rem); align-items: start; }
.carte-wa {
  position: relative; display: grid; gap: .3rem;
  background: var(--encre); color: var(--os); text-decoration: none;
  padding: 2rem; border-radius: 22px;
  transition: transform .35s var(--courbe), background-color .3s;
}
.carte-wa:hover { transform: translateY(-4px); background: var(--wa-fonce); }
.carte-wa svg { width: 44px; height: 44px; color: #3ad07a; margin-bottom: 1.4rem; }
.carte-wa:hover svg { color: #fff; }
.carte-wa-titre { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.carte-wa-sous { opacity: .7; font-size: .95rem; }
.carte-wa-fleche { position: absolute; top: 1.6rem; right: 1.8rem; font-size: 1.8rem; transition: transform .35s var(--courbe); }
.carte-wa:hover .carte-wa-fleche { transform: translate(4px, -4px); }
.coordonnees { margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.coordonnees dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.coordonnees dd { margin: .2rem 0 0; font-size: 1.2rem; font-family: var(--serif); }
.coordonnees a { text-underline-offset: 4px; text-decoration-thickness: 1px; }

.formulaire { background: var(--os); border-radius: 22px; padding: clamp(1.5rem, 3.5vw, 2.6rem); }
.form-titre { font-family: var(--serif); font-size: 1.9rem; margin-bottom: 1.2rem; }
.champ { position: relative; flex: 1; min-width: 0; margin-bottom: .9rem; }
.champ-ligne { display: flex; gap: 1.2rem; }
@media (max-width: 560px) { .champ-ligne { flex-direction: column; gap: 0; } }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--encre);
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(20, 17, 20, .25);
  border-radius: 0; padding: 1.55rem 0 .55rem;
  transition: border-color .25s;
  -webkit-appearance: none; appearance: none;
}
.champ select { background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%); background-position: calc(100% - 12px) 62%, calc(100% - 7px) 62%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.champ textarea { resize: vertical; min-height: 6.5rem; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--encre); }
.champ label {
  position: absolute; left: 0; top: 1.5rem;
  color: var(--gris); pointer-events: none; transform-origin: left top;
  transition: transform .25s var(--courbe), color .25s;
}
.champ input:focus + label, .champ input:not(:placeholder-shown) + label,
.champ textarea:focus + label, .champ textarea:not(:placeholder-shown) + label,
.champ-fixe label { transform: translateY(-1.15rem) scale(.78); color: var(--encre); }
.champ [aria-invalid="true"] { border-bottom-color: #b3261e; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.form-sans-js { background: var(--os-2); padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .95rem; }
.formulaire.form-pret .form-sans-js { display: none; } /* le script a pris le formulaire en charge */
/* le contour de focus safran serait invisible sur le fond safran */
.contact :focus-visible { outline-color: var(--encre); }
.form-statut { margin-top: 1rem; font-size: .95rem; min-height: 1.5em; }
.form-statut.ok { color: var(--wa-fonce); }
.form-statut.erreur { color: #b3261e; }
@media (max-width: 860px) {
  .contact-grille { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { flex: 1 1 100%; }
}

/* ---------- Pied ---------- */
.pied { background: var(--encre); color: var(--os); padding: clamp(3rem, 6vw, 5rem) var(--marge) 2rem; overflow: hidden; }
.pied-marque { font-family: var(--serif); font-size: clamp(4.5rem, 21vw, 22rem); line-height: .8; letter-spacing: -.04em; white-space: nowrap; }
.pied-marque em { color: var(--safran); }
.pied-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(242, 237, 228, .15); font-size: .88rem; color: rgba(242, 237, 228, .65); }
.pied-ligne a { text-decoration: none; }
.pied-ligne a:hover { color: var(--os); }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-flottant {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5);
  transition: transform .35s var(--courbe), opacity .35s, visibility 0s;
}
.wa-flottant svg { width: 31px; height: 31px; }
.wa-flottant:hover { transform: scale(1.07); }
/* masqué tant que l'accueil (et son propre bouton WhatsApp) est à l'écran ;
   visibility retire aussi le lien de la tabulation clavier (après le fondu) */
.js-actif .wa-flottant:not(.visible) {
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; visibility: hidden;
  transition: transform .35s var(--courbe), opacity .35s, visibility 0s .35s;
}

/* ---------- Visionneuse « stories » ---------- */
.story {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: #000; color: #fff;
  /* sans cela, le navigateur garde le geste vertical pour lui (pointercancel) :
     le « glisser vers le bas pour fermer » ne marcherait jamais au doigt.
     pinch-zoom garde le pincement pour regarder une broderie de près. */
  touch-action: pinch-zoom; overscroll-behavior: contain;
}
/* agrandie : déplacement à un doigt rendu au navigateur (taps et glisser-fermer
   sont de toute façon suspendus par le script tant que la vue est zoomée) */
.story.zoome { touch-action: auto; }
.story::backdrop { background: #000; }
.story-fond { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(34px) brightness(.45) saturate(1.2); transform: scale(1.1); }
.story-img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; z-index: 1; transition: opacity .25s; }
/* pendant le chargement : rien plutôt que l'image précédente sous le titre suivant */
/* visibility en plus de l'opacité : un bouton transparent resterait cliquable
   (avec le lien WhatsApp de la pièce précédente) et atteignable au clavier */
.story-img.charge, .story-bas.charge { opacity: 0; visibility: hidden; }
.story-bas { transition: opacity .25s; }
/* grand écran : l'image s'arrête au-dessus de la légende au lieu de passer dessous */
/* (et assez haut : un téléphone tourné à l'horizontale garderait sinon ~120 px d'image) */
@media (min-width: 700px) and (min-height: 600px) { .story-img { inset: 4.5rem 0 12rem; max-height: calc(100% - 16.5rem); border-radius: 6px; } }
.story-barres { position: absolute; z-index: 4; top: max(.7rem, env(safe-area-inset-top)); left: .8rem; right: .8rem; display: flex; gap: 4px; }
.story-barres span { flex: 1; height: 3px; background: rgba(255, 255, 255, .3); border-radius: 2px; overflow: hidden; }
.story-barres span i { display: block; height: 100%; width: 0; background: #fff; }
.story-barres span.fait i { width: 100%; }
.story-barres span.cours i { animation: progression var(--duree, 6s) linear forwards; }
.story.pause .story-barres span.cours i { animation-play-state: paused; }
@keyframes progression { from { width: 0; } to { width: 100%; } }
.story-haut { position: absolute; z-index: 4; top: calc(max(.7rem, env(safe-area-inset-top)) + 12px); left: 1rem; right: .4rem; display: flex; align-items: center; justify-content: space-between; }
.story-col { font-family: var(--serif); font-size: 1.4rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.story-fermer, .story-pause { width: 48px; height: 48px; background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; }
.story-pause { margin-left: auto; font-size: 1rem; letter-spacing: -.1em; }
.story-col { margin-right: .5rem; }
@media (prefers-reduced-motion: reduce) { .story-pause { display: none; } } /* pas d'avance automatique */
.story-zone { position: absolute; z-index: 2; top: 0; bottom: 0; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.story-prec { left: 0; width: 34%; }
.story-suiv { right: 0; width: 66%; }
.story-zone:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.story-bas {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  padding: 5rem 1.3rem max(1.4rem, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, .82));
  display: flex; flex-direction: column; gap: .35rem; align-items: flex-start;
}
.story-bas strong { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.05; }
.story-bas span { font-size: .95rem; opacity: .82; max-width: 46ch; }
.story-bas .btn { margin-top: .8rem; }
@media (min-width: 700px) { .story-bas { align-items: center; text-align: center; } }

/* ---------- Apparition au défilement (seulement si le script a démarré) ---------- */
/* "filet" (script absent ou trop lent) : tout reste visible, même si le script arrive ensuite */
.js:not(.filet) .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--courbe), transform .9s var(--courbe); }
.js:not(.filet) .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
  .bandeau-piste { animation: none !important; }
  /* même spécificité que la règle qui masque (.js:not(.filet)), sinon elle gagnerait */
  .js:not(.filet) .reveal { opacity: 1; transform: none; }
  .manifeste .mot { color: var(--encre); }
}
