/* Marie Lestyle — site. Les couleurs, polices et espacements viennent de tokens.css (charte Atelier Bordeaux). */

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 400; }

:focus-visible { outline: 1px solid var(--bordeaux); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Petites capitales espacées : la voix « Celine » du site */
.cap {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* La flèche de « XS → 5XL » : Montserrat la dessine trop petite */
.fleche { font-family: Georgia, serif; letter-spacing: 0; font-size: 1.15em; }

.lien {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.lien:hover { background-size: 0 1px; background-position: 100% 100%; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 40px;
  background: var(--bordeaux); color: var(--papier);
  border: 1px solid var(--bordeaux);
  white-space: nowrap;
  transition: background-color 300ms ease-out, color 300ms ease-out;
}
.bouton:hover { background: var(--papier); color: var(--bordeaux); }
.bouton:active { transform: translateY(1px); }
.bouton[aria-disabled="true"] { background: transparent; color: var(--bordeaux); cursor: default; }

.bandeau-demo {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  padding: 10px 16px; text-align: center;
  background: var(--encre); color: var(--papier);
}

/* ---------- En-tête ---------- */
.entete-site {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 84px;
  padding: 0 var(--espace-4);
  background: var(--papier);
  color: var(--bordeaux);
}
.entete-site nav { display: flex; gap: 28px; }
.entete-site nav a[aria-current] { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.entete-site .droite { display: flex; justify-content: flex-end; gap: 28px; }
.entete-site .logo { justify-self: center; }
.entete-site .logo img { height: 56px; width: auto; }
.entete-site .menu-mobile { display: none; }

.tiroir {
  position: fixed; inset: 64px 0 0 0; z-index: 19;
  background: var(--papier);
  padding: var(--espace-5) 16px;
}
.tiroir nav { display: grid; gap: 28px; font-size: 13px; }

/* ---------- Carrousel ---------- */
.carrousel { position: relative; overflow: hidden; background: var(--teinte); }
.carrousel .piste {
  display: flex; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carrousel .piste::-webkit-scrollbar { display: none; }
.carrousel .piste:focus-visible { outline-offset: -3px; }
.carrousel .diapo {
  flex: 0 0 100%; height: 100%; margin: 0;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.carrousel .diapo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.carrousel .schema-fond { background: var(--papier); display: grid; place-items: center; padding: 10%; }
.carrousel .schema-fond img { mix-blend-mode: multiply; object-fit: contain; height: auto; max-height: 100%; }
/* Pages du guide dans la galerie : la page entière, posée sur le papier */
.carrousel .page-fond { background: var(--papier); display: grid; place-items: center; padding: 8%; }
.carrousel .page-fond img { object-fit: contain; height: auto; max-height: 100%; filter: drop-shadow(0 10px 22px rgba(78, 22, 34, 0.16)); }
.vignettes .page-fond { background: var(--papier); padding: 6px; }
.vignettes .page-fond img { object-fit: contain; }

/* Flèches : traits fins, pas d'icône */
.fleche-c {
  position: absolute; top: 50%; z-index: 2;
  width: 48px; height: 48px; margin-top: -24px;
  display: grid; place-items: center;
  color: var(--bordeaux);
  background: rgba(248, 239, 235, 0.72);
  opacity: 0; transition: opacity 300ms ease-out, background-color 300ms ease-out;
}
.fleche-c::before {
  content: ""; width: 11px; height: 11px;
  border-top: 1px solid currentColor; border-left: 1px solid currentColor;
}
.fleche-c.prec { left: 16px; }
.fleche-c.prec::before { transform: translateX(2px) rotate(-45deg); }
.fleche-c.suiv { right: 16px; }
.fleche-c.suiv::before { transform: translateX(-2px) rotate(135deg); }
.fleche-c:hover { background: var(--papier); }
.carrousel:hover .fleche-c,
.carrousel:focus-within .fleche-c { opacity: 1; }
@media (hover: none) { .fleche-c { opacity: 1; width: 40px; height: 40px; margin-top: -20px; } }

/* Repères : fins traits en bas, le trait courant se remplit */
.reperes {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
  display: flex; gap: 6px; justify-content: center;
}
.reperes span { flex: 0 1 36px; height: 1px; background: rgba(248, 239, 235, 0.55); }
.reperes span.actif { background: var(--papier); height: 2px; }

/* ---------- Accueil : ouverture ---------- */
.ouverture {
  display: grid;
  grid-template-columns: auto minmax(0, 560px);
  justify-content: center;
  column-gap: clamp(32px, 5vw, 96px);
  height: 100vh; height: 100dvh; min-height: 620px;
  padding-top: 84px;
}
.ouverture .carrousel { height: 100%; aspect-ratio: 1536 / 2752; }
.ouverture-texte {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: var(--espace-4);
  text-align: center;
  padding: var(--espace-5) clamp(28px, 5vw, 88px);
}
.ouverture h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.3vw, 50px);
  line-height: 1.08;
  color: var(--bordeaux);
  max-width: 12ch;
}
.ouverture .intro {
  margin: 0;
  font-family: var(--font-italique); font-style: italic;
  font-size: 22px; line-height: 1.35; color: var(--rose-ancien);
  max-width: 30ch;
}
.nouveaute {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding-top: var(--espace-4); margin-top: var(--espace-2);
  border-top: 1px solid var(--filet);
  width: 100%;
}
.nouveaute .cap { color: var(--rose-ancien); }
.nom-vedette { font-family: var(--font-serif); font-size: 26px; line-height: 1.1; color: var(--bordeaux); }
.prix-vedette { color: var(--gris-texte); }

/* ---------- Sections ---------- */
.section { padding: var(--espace-6) var(--espace-4); }
.titre-section {
  margin: 0 0 var(--espace-5);
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  color: var(--bordeaux);
  text-align: center;
}

/* Un seul patron : mise en avant, photos du mannequin en carrousel */
.vedette {
  display: grid; grid-template-columns: auto minmax(0, 460px);
  justify-content: center; align-items: center; gap: var(--espace-6);
  max-width: 1180px; margin: 0 auto;
}
.carrousel-vedette { aspect-ratio: 1536 / 2752; height: min(84vh, 860px); }
.vedette-texte { max-width: 440px; justify-self: center; text-align: center; }
.vedette-texte > p.cap { margin: 0 0 var(--espace-3); color: var(--gris-texte); }
.vedette-texte h3 { margin: 0 0 var(--espace-2); font-family: var(--font-serif); font-size: clamp(30px, 3vw, 42px); line-height: 1.05; color: var(--bordeaux); }
.vedette-texte .sous { margin: 0 0 var(--espace-4); font-family: var(--font-italique); font-style: italic; font-size: 17px; line-height: 1.4; color: var(--rose-ancien); }
.benefices { list-style: none; margin: 0 0 var(--espace-4); padding: 0; border-top: 1px solid var(--filet); }
.benefices li { padding: 12px 0; border-bottom: 1px solid var(--filet); font-size: 13px; line-height: 1.6; }
.vedette-texte .faits { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0 0 var(--espace-4); color: var(--encre); }
.vedette-texte .sep { width: 18px; height: 1px; background: var(--filet); }

/* Grille de patrons : 4 colonnes, prête pour 40 fiches */
.grille-patrons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--espace-5) 2px;
}
.carte { display: block; }
.carte .cadre { position: relative; overflow: hidden; aspect-ratio: 2 / 3; background: var(--teinte); }
.carte .cadre img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 600ms ease-out, transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.carte .cadre .survol { opacity: 0; }
.carte:hover .cadre .survol { opacity: 1; }
.carte:hover .cadre img { transform: scale(1.02); }
.carte .infos { padding: 12px 12px 0; display: flex; justify-content: space-between; gap: 12px; }
.carte .infos .prix { color: var(--gris-texte); }
.voir-tous { text-align: center; margin: var(--espace-5) 0 0; }

/* Ce que contient le PDF : les pages du guide en carrousel */
.carrousel-guide {
  width: min(640px, 100%); aspect-ratio: 0.8; margin: 0 auto var(--espace-5);
  background: var(--papier);
}
.carrousel.contenir .diapo { display: flex; flex-direction: column; align-items: center; padding: 8px 72px 0; }
.carrousel.contenir .diapo img {
  flex: 1; min-height: 0; width: 100%; object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(78, 22, 34, 0.16));
}
.carrousel.contenir figcaption { padding: 16px 0 40px; font-size: 12px; color: var(--gris-texte); text-align: center; }
.carrousel.contenir .reperes span { background: var(--filet); }
.carrousel.contenir .reperes span.actif { background: var(--bordeaux); }
.carrousel.contenir .fleche-c { opacity: 1; }
.points-pdf {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--espace-4) var(--espace-5);
  max-width: 1080px; margin: 0 auto;
}
.points-pdf div { border-top: 1px solid var(--bordeaux); padding-top: var(--espace-4); text-align: center; }
.points-pdf dt { font-family: var(--font-serif); font-size: 26px; line-height: 1.2; color: var(--bordeaux); margin-bottom: 8px; }
.points-pdf dd { margin: 0; color: var(--gris-texte); }

/* Slogan : sur ordinateur, la photo au vrai format sur fond bordeaux, le slogan à côté ;
   sur mobile, la photo pleine largeur avec le slogan posé dessus. */
.bandeau-photo {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: var(--espace-6);
  padding: var(--espace-5) var(--espace-4);
  background: var(--bordeaux);
}
.bandeau-photo img { height: min(86vh, 880px); width: auto; aspect-ratio: 1536 / 2752; object-fit: cover; }
.bandeau-photo p {
  margin: 0; max-width: 8.5ch;
  font-family: var(--font-serif); font-size: clamp(44px, 5vw, 80px); line-height: 1.02;
  color: var(--papier);
}

/* Comment ça marche */
.etapes {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--espace-5);
  max-width: 1080px;
  counter-reset: etape;
}
.etapes li { counter-increment: etape; text-align: center; }
.etapes li::before {
  content: counter(etape);
  display: block; margin-bottom: 10px;
  font-family: var(--font-italique); font-style: italic; font-size: 44px; line-height: 1; color: var(--cuivre);
}
.etapes h3 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 24px; color: var(--bordeaux); }
.etapes p { margin: 0 auto; max-width: 26ch; color: var(--gris-texte); }

/* Atelier : l'histoire */
.section-atelier { background: var(--teinte); }
.atelier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--espace-6);
  max-width: 1280px;
  margin: 0 auto;
}
.atelier .texte { max-width: 440px; justify-self: center; text-align: center; }
.atelier h2 {
  margin: 0 0 var(--espace-3);
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.1;
  color: var(--bordeaux);
}
.atelier p { margin: 0 0 var(--espace-4); line-height: 1.8; font-weight: 300; }
.atelier .sous {
  font-family: var(--font-italique); font-style: italic;
  font-size: 18px; line-height: 1.3; color: var(--rose-ancien); font-weight: 400;
}
.atelier .signature { font-family: var(--font-italique); font-style: italic; font-size: 24px; color: var(--bordeaux); }
.atelier figure { margin: 0; overflow: hidden; aspect-ratio: 1536 / 2752; height: min(84vh, 860px); }
.atelier figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

/* Questions fréquentes */
.faq { max-width: 760px; margin: 0 auto; }
.faq summary { font-family: var(--font-serif); font-size: 16px; color: var(--bordeaux); white-space: nowrap; }
.faq summary span { overflow: hidden; text-overflow: ellipsis; }
.faq .contenu { color: var(--gris-texte); font-size: 13px; }

/* Newsletter */
.lettre-section { padding-top: 0; }
.lettre { text-align: center; max-width: 520px; margin: 0 auto; padding-top: var(--espace-5); border-top: 1px solid var(--filet); }
.lettre .titre-section { margin-bottom: var(--espace-2); }
.lettre p { margin: 0 0 var(--espace-5); font-family: var(--font-italique); font-style: italic; font-size: 21px; color: var(--rose-ancien); }
.lettre form { display: flex; border-bottom: 1px solid var(--bordeaux); }
.lettre input {
  flex: 1; min-width: 0;
  padding: 14px 0; border: 0; background: transparent;
  font: inherit; font-size: 14px; color: var(--encre);
}
.lettre input::placeholder { color: var(--gris-texte); }
.lettre input:focus { outline: none; }
.lettre form:focus-within { box-shadow: 0 1px 0 var(--bordeaux); }
.lettre button { color: var(--bordeaux); padding: 0 0 0 16px; }
.lettre form[hidden] { display: none; }
.lettre .piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lettre-mention { margin: 14px 0 0 !important; font-family: var(--font-sans) !important; font-style: normal !important; font-size: 11px !important; line-height: 1.6; color: var(--gris-texte) !important; }
.lettre-mention a { text-decoration: underline; }
.lettre-retour { margin: var(--espace-3) 0 0 !important; min-height: 1em; }

/* ---------- Pied de page ---------- */
.pied-site {
  background: var(--bordeaux);
  color: var(--champagne);
  padding: var(--espace-5) var(--espace-4) var(--espace-4);
  font-size: 11px;
}
.pied-site .colonnes {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--espace-4);
  max-width: 1280px; margin: 0 auto var(--espace-5);
}
.pied-site .logo-pied { height: 84px; width: auto; margin: -14px 0 0 -26px; }
.pied-site :focus-visible { outline-color: var(--champagne); }
.pied-site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pied-site .bas { font-size: 9px; }
.pied-site a:hover { color: var(--papier); }
.pied-site .titre-pied { margin: 0 0 14px; font-size: 12px; color: var(--papier); }
.pied-site .bas {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: var(--espace-4); flex-wrap: wrap;
  padding-top: var(--espace-4);
  border-top: 1px solid rgba(227, 201, 160, 0.25);
}
.langues { display: flex; gap: 14px; }
.langues a[aria-current] { color: var(--papier); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }

/* ---------- Fiche patron ---------- */
.fiche {
  display: grid;
  grid-template-columns: auto minmax(360px, 600px);
  justify-content: center;
  column-gap: clamp(32px, 4vw, 80px);
  padding-top: 84px;
}
.fiche-photos {
  position: sticky; top: 84px; align-self: start;
  display: grid; grid-template-columns: 72px auto; gap: 12px;
  padding: 12px 0 12px 12px;
  height: calc(100vh - 84px); height: calc(100dvh - 84px);
}
.carrousel-fiche { order: 2; height: 100%; aspect-ratio: 2 / 3; max-width: 52vw; }
.vignettes { order: 1; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; scrollbar-width: none; }
.vignettes::-webkit-scrollbar { display: none; }
.vignettes button { flex: 0 0 auto; aspect-ratio: 2 / 3; background: var(--teinte); opacity: 0.5; transition: opacity 300ms ease-out; }
.vignettes button.actif, .vignettes button:hover { opacity: 1; }
.vignettes button img { width: 100%; height: 100%; object-fit: cover; }
.vignettes .schema-fond { background: var(--papier); }
.vignettes .schema-fond img { object-fit: contain; mix-blend-mode: multiply; }

.fiche .panneau {
  padding: var(--espace-5) var(--espace-4) var(--espace-6) 0;
}
.fil { color: var(--gris-texte); margin-bottom: var(--espace-5); }
.surtitre { margin: 0 0 10px; color: var(--gris-texte); }
.fiche h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 3vw, 46px); line-height: 1.05;
  color: var(--bordeaux);
}
.fiche .sous {
  margin: 0 0 var(--espace-4);
  font-family: var(--font-italique); font-style: italic;
  font-size: 20px; line-height: 1.35; color: var(--rose-ancien);
}
.fiche .prix { font-size: 16px; letter-spacing: 0.04em; margin: 0 0 var(--espace-4); }
.fiche .faits { list-style: none; margin: 0 0 var(--espace-4); padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--gris-texte); }
.fiche .panneau .bouton { width: 100%; }
.mention { margin: 12px 0 var(--espace-5); color: var(--gris-texte); font-size: 12px; text-align: center; }

.accordeon { border-top: 1px solid var(--filet); }
.accordeon details { border-bottom: 1px solid var(--filet); }
.accordeon summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0;
}
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary::after {
  content: ""; flex: 0 0 9px; height: 9px;
  background:
    linear-gradient(currentColor, currentColor) center / 9px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 9px no-repeat;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.accordeon details[open] summary::after { transform: rotate(45deg); }
.accordeon .contenu { padding: 0 0 22px; font-size: 13px; line-height: 1.75; }
.accordeon .contenu p { margin: 0 0 12px; }
.accordeon .contenu ul { margin: 0 0 12px; padding-left: 18px; }
.accordeon .note { color: var(--gris-texte); font-size: 12px; }

.tailles { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 16px; }
.tailles th, .tailles td { padding: 7px 4px; text-align: left; font-weight: 400; }
.tailles thead th { background: var(--teinte); color: var(--bordeaux); font-weight: 500; }
.tailles tbody tr + tr td, .tailles tbody tr + tr th { border-top: 1px solid var(--filet); }
.tailles small { display: block; color: var(--gris-texte); font-size: 10px; }

.barre-achat { display: none; }

/* ---------- Boutique ---------- */
.boutique { padding: calc(84px + var(--espace-5)) var(--espace-4) var(--espace-6); }
.boutique-tete { text-align: center; max-width: 640px; margin: 0 auto var(--espace-5); }
.boutique-tete .fil { margin-bottom: var(--espace-4); }
.boutique h1 { margin: 0 0 10px; font-family: var(--font-serif); font-size: clamp(34px, 3.4vw, 48px); line-height: 1.05; color: var(--bordeaux); }
.boutique .intro { margin: 0; font-family: var(--font-italique); font-style: italic; font-size: 20px; color: var(--rose-ancien); }
.filtres {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; margin-bottom: var(--espace-4);
  border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet);
}
.filtres-liste { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.filtres-liste::-webkit-scrollbar { display: none; }
.filtres-liste button { white-space: nowrap; color: var(--gris-texte); padding: 4px 0; }
.filtres-liste button[aria-pressed="true"] { color: var(--bordeaux); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.filtres .compte { margin-left: auto; color: var(--gris-texte); white-space: nowrap; }
.carte[hidden] { display: none; }
.boutique-texte { max-width: 680px; margin: var(--espace-6) auto 0; padding-top: var(--espace-5); border-top: 1px solid var(--filet); text-align: center; }
.boutique-texte h2 { margin: 0 0 var(--espace-3); font-family: var(--font-serif); font-size: 26px; line-height: 1.2; color: var(--bordeaux); text-wrap: balance; }
.boutique-texte p { margin: 0 0 var(--espace-3); font-size: 14px; line-height: 1.8; color: var(--gris-texte); }
.page-404 .page-cta { border: 0; }
.liste-langues { list-style: none; margin: var(--espace-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; color: var(--gris-texte); }

/* ---------- Pages de texte (atelier, aide, légal) ---------- */
/* Mots longs (allemand, néerlandais) : coupure autorisée pour ne jamais dépasser sur mobile */
.page-texte, .fiche .panneau { overflow-wrap: break-word; hyphens: auto; }
.page-texte { max-width: 720px; margin: 0 auto; padding: calc(84px + var(--espace-5)) var(--espace-4) var(--espace-6); }
.page-tete { text-align: center; margin-bottom: var(--espace-5); }
.page-tete .fil { margin-bottom: var(--espace-4); }
.page-texte h1 { margin: 0 0 12px; font-family: var(--font-serif); font-size: clamp(36px, 4vw, 54px); line-height: 1.05; color: var(--bordeaux); text-wrap: balance; }
.chapeau { margin: 0 auto; max-width: 34ch; font-family: var(--font-italique); font-style: italic; font-size: 22px; line-height: 1.35; color: var(--rose-ancien); }
.sommaire { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: var(--espace-4); padding-top: var(--espace-4); border-top: 1px solid var(--filet); }
.sommaire a { color: var(--gris-texte); }
.sommaire a:hover { color: var(--bordeaux); }
.bloc { padding: var(--espace-5) 0 0; scroll-margin-top: 100px; }
.bloc h2 { margin: 0 0 var(--espace-3); font-family: var(--font-serif); font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; color: var(--bordeaux); text-wrap: balance; }
.bloc h3 { margin: var(--espace-4) 0 6px; font-family: var(--font-serif); font-size: 19px; color: var(--bordeaux); }
.bloc p { margin: 0 0 var(--espace-3); font-size: 15px; line-height: 1.8; }
.bloc blockquote {
  margin: var(--espace-4) 0; padding: var(--espace-4) 0;
  border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet);
  font-family: var(--font-italique); font-style: italic; font-size: 26px; line-height: 1.3;
  color: var(--rose-ancien); text-align: center;
}
.liste { list-style: none; margin: var(--espace-3) 0 0; padding: 0; border-top: 1px solid var(--filet); }
.liste li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--filet); position: relative; font-size: 15px; }
.liste li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 8px; height: 1px; background: var(--bordeaux); }
.etapes-texte { list-style: none; margin: var(--espace-4) 0 0; padding: 0; counter-reset: et; display: grid; gap: var(--espace-4); }
.etapes-texte li { counter-increment: et; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.etapes-texte li::before { content: counter(et); grid-row: span 2; font-family: var(--font-italique); font-style: italic; font-size: 38px; line-height: 1; color: var(--cuivre); }
.etapes-texte h3 { margin: 4px 0 4px; }
.etapes-texte p { margin: 0; color: var(--gris-texte); }
.encadre-site { margin: var(--espace-4) 0 0; padding: var(--espace-4); background: var(--bordeaux); color: var(--papier); }
.encadre-site .encadre-titre { margin: 0 0 8px; font-family: var(--font-italique); font-style: italic; font-size: 22px; color: var(--champagne); }
.encadre-site p, .encadre-site li { font-size: 14px; line-height: 1.7; }
.encadre-site ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.bloc .faq { margin-top: var(--espace-3); }
.page-texte .faq summary { white-space: normal; }
.signature-page { margin: var(--espace-5) 0 0; text-align: center; font-family: var(--font-italique); font-style: italic; font-size: 34px; color: var(--bordeaux); }
.page-cta { margin-top: var(--espace-5); padding-top: var(--espace-5); border-top: 1px solid var(--filet); text-align: center; }
.cta-titre { margin: 0 0 var(--espace-4); font-family: var(--font-serif); font-size: 28px; color: var(--bordeaux); }
.page-legal .bloc h3 { font-size: 17px; }
.page-legal .bloc p { font-size: 14px; }

/* ---------- Apparition au défilement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .apparait { opacity: 0; transform: translateY(14px); transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 900ms cubic-bezier(0.16, 1, 0.3, 1); }
  .js .apparait.vu { opacity: 1; transform: none; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  .grille-patrons { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .entete-site { height: 64px; padding: 0 16px; }
  .entete-site > nav { display: none; }
  .entete-site .menu-mobile { display: block; justify-self: start; }
  .entete-site .logo img { height: 42px; }

  .ouverture { grid-template-columns: 1fr; height: auto; min-height: 0; padding-top: 64px; }
  .ouverture .carrousel { height: auto; width: 100%; }
  .ouverture-texte { padding: var(--espace-5) 16px; }

  .section { padding: var(--espace-5) 16px; }
  .vedette { grid-template-columns: 1fr; gap: var(--espace-4); }
  .carrousel-vedette { height: auto; width: 100%; }
  .carrousel.contenir .diapo { padding: 8px 48px 0; }
  .grille-patrons { grid-template-columns: 1fr 1fr; gap: var(--espace-4) 2px; }
  .carte .infos { flex-direction: column; gap: 2px; padding: 10px 8px 0; }
  .points-pdf, .etapes { grid-template-columns: 1fr; gap: var(--espace-4); }

  .atelier { grid-template-columns: 1fr; gap: var(--espace-4); }
  .atelier figure { order: -1; height: auto; width: 100%; }
  .atelier .texte { justify-self: center; }

  .titre-section { font-size: 27px; margin-bottom: var(--espace-4); text-wrap: balance; }
  .ouverture h1, .vedette-texte h3, .atelier h2, .boutique h1, .fiche h1 { text-wrap: balance; }

  .pied-site { padding: var(--espace-4) 20px var(--espace-4); font-size: 11px; }
  .faq summary { font-size: 15px; }
  .lettre-section { padding-top: 0; }
  .lettre { padding-top: var(--espace-4); }
  .pied-site .colonnes { grid-template-columns: 1fr 1fr; gap: var(--espace-4) 24px; margin-bottom: var(--espace-4); }
  .pied-site .colonnes > :first-child { grid-column: 1 / -1; }
  .pied-site .logo-pied { height: 72px; margin: -10px 0 0 -16px; }
  .pied-site .titre-pied { margin-bottom: 8px; }
  .pied-site ul { gap: 0; }
  .pied-site ul a { display: inline-block; padding: 6px 0; }
  .pied-site .bas { flex-direction: row; justify-content: space-between; align-items: center; font-size: 9px; }

  .fiche .panneau { text-align: center; }
  .fiche .faits { justify-content: center; }
  .accordeon summary, .accordeon .contenu { text-align: left; }
  .tailles { font-size: 12px; }

  .boutique .grille-patrons:has(> .carte:only-child) { grid-template-columns: minmax(0, 300px); justify-content: center; }
  .carte .infos { align-items: center; text-align: center; }

  .fiche { grid-template-columns: 1fr; padding-top: 64px; }
  .fiche-photos { position: static; display: block; height: auto; padding: 0; }
  .carrousel-fiche { aspect-ratio: 2 / 3; height: auto; max-width: none; width: 100%; }
  .carrousel-fiche .piste { height: 100%; position: absolute; inset: 0; }
  .vignettes { display: none; }
  .fiche .panneau { padding: var(--espace-4) 16px var(--espace-6); }
  .fil { margin-bottom: var(--espace-4); }

  .boutique { padding: calc(64px + var(--espace-4)) 16px var(--espace-5); }
  .page-texte { padding: calc(64px + var(--espace-4)) 16px var(--espace-5); }
  .chapeau { font-size: 19px; }
  .bloc p, .liste li { font-size: 14px; }
  .bloc blockquote { font-size: 22px; }
  .sommaire { gap: 8px 18px; }

  .bandeau-photo { display: block; padding: 0; }
  .bandeau-photo img { width: 100%; height: auto; }
  .bandeau-photo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(42, 26, 29, 0.62) 0%, rgba(42, 26, 29, 0.28) 38%, rgba(42, 26, 29, 0) 65%);
  }
  .bandeau-photo p {
    position: absolute; left: 16px; right: 16px; bottom: 40px; z-index: 1;
    max-width: none; font-size: 38px; text-align: center;
    text-shadow: 0 2px 24px rgba(42, 26, 29, 0.5);
  }

  .barre-achat {
    display: flex; align-items: center; gap: 16px;
    position: fixed; inset: auto 0 0 0; z-index: 10;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--papier);
    border-top: 1px solid var(--filet);
  }
  .barre-achat .bouton { height: 46px; flex: 1; padding: 0 16px; }
  .pied-site:has(~ .barre-achat) { padding-bottom: 96px; }
}
