/* Serena Weddings · « De l'idée au décor »
   Papier sable, encre brun chaud, bordeaux du monogramme. */

@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("assets/fonts/plus-jakarta-sans.woff2") format("woff2"); font-style: normal; font-weight: 300 600; font-display: swap; }

:root {
  --sable: #F4EEE6;
  --papier: #FBF8F3;
  --encre: #2B201D;
  --encre-douce: #66554F;
  --bordeaux: #7D1F35;
  --bordeaux-fonce: #631628;
  --rose: #E6B3C0;
  --filet: rgba(43, 32, 29, 0.1);
  --filet-fort: rgba(43, 32, 29, 0.18);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-tiroir: cubic-bezier(0.32, 0.72, 0, 1);

  --gouttiere: clamp(16px, 5vw, 80px);
  --rayon: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sable);
  color: var(--encre);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Grain de papier, fixe et sans interaction */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em { color: var(--bordeaux); }
p { margin: 0; }
::selection { background: var(--rose); color: var(--encre); }
:focus-visible { outline: 1.5px solid var(--bordeaux); outline-offset: 3px; border-radius: 6px; }

.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: fixed; left: 16px; top: -60px; z-index: 60; background: var(--encre); color: var(--papier); padding: 10px 16px; border-radius: 99px; text-decoration: none; }
.evitement:focus { top: 16px; }

/* Petite étiquette au-dessus des titres */
.etiquette {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--filet-fort);
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

/* ---------- Boutons ---------- */
.bouton {
  --fond: var(--encre);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 7px 7px 7px 24px;
  min-height: 52px;
  border: 0; border-radius: 99px;
  background: var(--fond);
  color: var(--papier);
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  /* --mx et --my : léger aimant vers la souris (main.js) */
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 220ms var(--ease-out), background-color 200ms ease;
}
.bouton:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.97); transition-duration: 120ms; }
.bouton__rond {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(251, 248, 243, 0.14);
  font-size: 17px;
  transition: transform 300ms var(--ease-out);
}
.bouton--plein { --fond: var(--bordeaux); width: 100%; justify-content: space-between; }
.bouton--petit { min-height: 40px; padding: 0 18px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover { --fond: var(--bordeaux); }
  .bouton--plein:hover { --fond: var(--bordeaux-fonce); }
  .bouton:hover .bouton__rond { transform: translate(2px, -1px) scale(1.05); }
}
.aimant > * { pointer-events: none; }

.lien-discret {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  color: var(--encre-douce);
  padding: 12px 4px;
  transition: color 200ms ease;
}
.lien-discret svg { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .lien-discret:hover { color: var(--encre); }
  .lien-discret:hover svg { transform: translateY(3px); }
}

/* ---------- Navigation flottante ---------- */
.ilot {
  position: fixed; z-index: 30;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 28px;
  padding: 6px 6px 6px 18px;
  border-radius: 99px;
  background: rgba(251, 248, 243, 0.72);
  box-shadow: 0 0 0 1px var(--filet), 0 12px 40px -18px rgba(43, 32, 29, 0.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  white-space: nowrap;
}
.ilot__marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 19px; }
.ilot__mono { width: 22px; height: 30px; color: var(--bordeaux); }
.ilot__liens { display: flex; gap: 22px; }
.ilot__liens a { font-size: 14px; text-decoration: none; color: var(--encre-douce); transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .ilot__liens a:hover { color: var(--encre); } }
.ilot__menu { display: none; }

.menu { display: none; }

/* ---------- Accueil ---------- */
.accueil {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 4vw;
  padding: 120px var(--gouttiere) 72px;
}
.accueil h1 {
  margin: 28px 0 28px;
  font-size: clamp(54px, 7.4vw, 118px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.accueil__chapo { max-width: 34em; font-size: 17px; color: var(--encre-douce); }
.accueil__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 40px; }

/* La planche de l'accueil : quatre photos droites, posées à des profondeurs différentes */
.planche-accueil { position: relative; height: min(78dvh, 760px); }
.piece { position: absolute; margin: 0; will-change: transform; }
.piece figcaption {
  margin-top: 10px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--encre-douce);
}
.piece img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--rayon) - 8px); }
.piece .cadre-double { height: 100%; }
.piece--a { left: 0; top: 4%; width: 36%; height: 74%; }
.piece--b { left: 40%; top: 0; width: 34%; height: 42%; }
.piece--c { left: 52%; top: 50%; width: 30%; height: 46%; }
.piece--d { left: 80%; top: 14%; width: 20%; height: 30%; }
.piece--a .cadre-double, .piece--b .cadre-double, .piece--c .cadre-double, .piece--d .cadre-double { height: calc(100% - 28px); }
.nuancier-accueil { position: absolute; left: 6%; bottom: 0; display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; will-change: transform; }
.nuancier-accueil li { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(43, 32, 29, 0.12); }

/* Le double cadre : un plateau clair, la photo posée dedans */
.cadre-double {
  padding: 8px;
  border-radius: var(--rayon);
  background: rgba(251, 248, 243, 0.65);
  box-shadow: 0 0 0 1px var(--filet), 0 30px 60px -40px rgba(43, 32, 29, 0.35);
}
.cadre-double__coeur {
  height: 100%;
  border-radius: calc(var(--rayon) - 8px);
  background: var(--papier);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(43, 32, 29, 0.05);
}

/* Entrées au chargement */
.entree { opacity: 0; transform: translateY(24px); }
.pret .entree {
  opacity: 1; transform: none;
  transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms + 100ms);
}
/* La parallaxe reprend la main sur le transform des pièces après leur entrée */
.pret .piece.entree, .pret .nuancier-accueil.entree { transition-property: opacity; }

/* Apparitions au défilement */
.revele { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
.revele.vu { opacity: 1; transform: none; }

/* ---------- Citation ---------- */
.citation { padding: clamp(96px, 16vh, 180px) var(--gouttiere); display: grid; place-items: center; }
.citation blockquote { margin: 0; max-width: 980px; text-align: center; }
.citation p { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 52px); line-height: 1.15; letter-spacing: -0.01em; }
.citation footer { margin-top: 28px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--encre-douce); }

/* ---------- En-têtes de section ---------- */
.tete-section { padding: 0 var(--gouttiere); max-width: 900px; }
.tete-section h2 { margin-top: 22px; font-size: clamp(40px, 5.2vw, 76px); line-height: 1; }
.tete-section > p:last-child:not(.etiquette) { margin-top: 22px; max-width: 32em; color: var(--encre-douce); }

/* ---------- Projets ---------- */
.projets { padding-top: clamp(64px, 10vh, 120px); }
.projet { position: relative; height: 330vh; }
.projet + .projet { margin-top: 0; }
.scene {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 5vw;
  padding: max(100px, 13dvh) var(--gouttiere) 4dvh;
  overflow: hidden;
}
.planche { display: flex; flex-direction: column; min-width: 0; }
.planche__colonne {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--encre-douce);
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 1px solid var(--filet);
}
.planche__num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--bordeaux); }
.planche h3 { margin-top: 4px; font-size: clamp(32px, 3.4vw, 54px); line-height: 1.02; }
.planche__lieu { margin-top: 10px; font-size: 14px; color: var(--encre-douce); }
.planche__matieres { margin-top: 18px; font-size: 13px; color: var(--encre-douce); }

.emplacements { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; margin-top: 3.4dvh; }
.emplacement {
  height: var(--h, 19dvh);
  aspect-ratio: var(--r);
  border-radius: 14px;
  background-color: var(--papier);
  background-repeat: no-repeat;
  /* reflet très pâle du détail parti dans le décor (l'image est posée par main.js) */
  box-shadow: inset 0 0 0 1px var(--filet-fort), inset 0 0 0 999px rgba(244, 238, 230, 0.86);
}
.emplacement:nth-child(2) { margin-top: 3dvh; }
.nuancier__nom { display: none; margin-top: 8px; min-height: 1.4em; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--encre-douce); text-align: center; }

.nuancier { display: flex; flex-wrap: wrap; gap: 8px; margin: 3dvh 0 0; padding: 0; list-style: none; }
.nuancier button {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 13px 5px 5px;
  min-height: 36px;
  border: 0; border-radius: 99px;
  background: rgba(251, 248, 243, 0.7);
  box-shadow: 0 0 0 1px var(--filet);
  font: 400 13px/1 var(--sans); color: var(--encre);
  cursor: pointer;
  transition: box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.nuancier button:active { transform: scale(0.97); }
.nuancier button i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(43, 32, 29, 0.14); }
.nuancier button[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--encre); }
@media (hover: hover) and (pointer: fine) { .nuancier button:hover { box-shadow: 0 0 0 1px var(--encre-douce); } }

.decor { margin: 0; display: flex; flex-direction: column; align-items: flex-start; }
.decor > .planche__colonne { align-self: stretch; }
@media (min-width: 768px) { .decor { justify-self: center; } }
.decor__cadre {
  position: relative;
  /* Taille donnée par la largeur : le cadre garde toujours les proportions de la photo */
  width: min(44vw, calc(min(64dvh, 720px) * var(--rn)));
  aspect-ratio: var(--r);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--filet-fort);
  background: rgba(251, 248, 243, 0.5);
}
.decor__cadre img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
}
/* Lumière posée sur la couleur survolée */
.decor__lumiere {
  position: absolute; left: 0; top: 0;
  width: 300%; aspect-ratio: 1;
  pointer-events: none;
  /* closest-side = deux largeurs de cadre : halo clair d'environ 18 % du cadre */
  background: radial-gradient(circle closest-side at center, rgba(24, 16, 14, 0) 0 9%, rgba(24, 16, 14, 0.5) 22%);
  opacity: 0;
  transition: opacity 300ms ease, transform 340ms var(--ease-out);
}
.decor__lumiere.allumee { opacity: 1; }
.decor figcaption {
  margin-top: 16px;
  width: 0; min-width: 100%; /* la légende prend la largeur du cadre sans l'élargir */
  font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.3;
  color: var(--encre-douce);
  opacity: 0;
  will-change: opacity;
}

/* Les détails découpés qui voyagent de la planche au décor */
.morceau {
  position: absolute; left: 0; top: 0;
  border-radius: 14px;
  background-repeat: no-repeat;
  transform-origin: 0 0;
  will-change: transform, opacity;
  pointer-events: none;
  z-index: 2; /* au-dessus du cadre, même quand l'ordre des blocs change sur téléphone */
}
.morceau i {
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: 0 22px 40px -22px rgba(43, 32, 29, 0.45);
}

/* ---------- Prestations ---------- */
.prestations { padding: clamp(96px, 16vh, 180px) 0 0; }
.liste-prestations { list-style: none; margin: 56px 0 0; padding: 0 var(--gouttiere); }
.liste-prestations li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--filet-fort);
}
.liste-prestations li:last-child { border-bottom: 1px solid var(--filet-fort); }
.liste-prestations__num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--bordeaux); }
.liste-prestations h3 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.05; transition: transform 400ms var(--ease-out); }
.liste-prestations p { color: var(--encre-douce); max-width: 30em; }
.liste-prestations__vignette { display: none; }
@media (hover: hover) and (pointer: fine) {
  .liste-prestations li { cursor: default; }
  .liste-prestations li:hover h3 { transform: translateX(12px); }
}
.prestations__devis { padding: 32px var(--gouttiere) 0; color: var(--encre-douce); display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* L'aperçu qui suit la souris */
.apercu {
  position: fixed; left: 0; top: 0; z-index: 35;
  width: 240px; aspect-ratio: 3 / 4;
  pointer-events: none;
  border-radius: 18px;
  overflow: hidden;
  opacity: 0;
  box-shadow: 0 30px 60px -30px rgba(43, 32, 29, 0.5);
  will-change: transform, opacity;
}
.apercu img { width: 100%; height: 100%; object-fit: cover; transform: scale(0.96); transition: transform 500ms var(--ease-out); }
.apercu.visible img { transform: none; }

/* ---------- Méthode ---------- */
.methode { padding: clamp(96px, 16vh, 180px) 0 0; }
.etapes { list-style: none; margin: 56px 0 0; padding: 0 var(--gouttiere); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: start; }
.etapes li:nth-child(1) { grid-column: 1 / span 5; }
.etapes li:nth-child(2) { grid-column: 6 / span 4; margin-top: 64px; }
.etapes li:nth-child(3) { grid-column: 10 / span 3; margin-top: 128px; }
.etapes .cadre-double__coeur { padding: 30px 28px 34px; }
.etapes__num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--bordeaux); }
.etapes h3 { margin: 40px 0 12px; font-size: 30px; line-height: 1.05; }
.etapes p { color: var(--encre-douce); font-size: 15px; }

.lieux { margin: clamp(80px, 12vh, 140px) var(--gouttiere) 0; padding-top: 28px; border-top: 1px solid var(--filet-fort); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 40px; align-items: start; }
.lieux ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.lieux__avis { grid-column: 2; }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(110px, 18vh, 200px) var(--gouttiere) clamp(80px, 12vh, 140px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6vw;
  align-items: start;
}
.contact h2 { margin: 22px 0 22px; font-size: clamp(48px, 6vw, 92px); line-height: 0.98; }
.contact__texte > p:not(.etiquette) { max-width: 30em; color: var(--encre-douce); }
.contact__autres { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; }
.contact__autres a { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; font-size: 16px; }
.contact__autres svg { font-size: 18px; color: var(--bordeaux); }
@media (hover: hover) and (pointer: fine) { .contact__autres a:hover { color: var(--bordeaux); } }

.formulaire .cadre-double__coeur { padding: 32px; display: grid; gap: 18px; }
.champ { display: grid; gap: 7px; min-width: 0; }
.champs-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.champ label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-douce); }
.champ input, .champ textarea {
  width: 100%; min-width: 0;
  min-height: 48px;
  padding: 13px 15px;
  border: 0; border-radius: 12px;
  background: var(--sable);
  box-shadow: inset 0 0 0 1px var(--filet);
  font: 400 16px/1.4 var(--sans); color: var(--encre);
  transition: box-shadow 200ms ease;
}
.champ textarea { resize: vertical; }
.champ input::placeholder, .champ textarea::placeholder { color: #9A8A83; }
.champ input:focus, .champ textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--bordeaux); }
.formulaire__erreur { color: var(--bordeaux); font-size: 14px; }
.formulaire__note { font-size: 13px; color: var(--encre-douce); text-align: center; }

/* ---------- Pied ---------- */
.pied { padding: 64px var(--gouttiere) 48px; border-top: 1px solid var(--filet-fort); text-align: center; display: grid; justify-items: center; gap: 6px; font-size: 14px; color: var(--encre-douce); }
.pied__mono { width: 44px; height: 60px; color: var(--bordeaux); margin-bottom: 8px; }
.pied__nom { font-family: var(--serif); font-size: 26px; color: var(--encre); }
.pied__credits { font-size: 12.5px; max-width: 46em; }

/* ---------- Repères de maquette (à retirer à la livraison) ---------- */
.maquette .trou {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 99px;
  border: 1px dashed var(--bordeaux);
  color: var(--bordeaux);
  font: 500 12px/1.6 var(--sans);
  font-style: normal;
}
body:not(.maquette) .trou { display: none; }
.compteur-trous {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  padding: 8px 14px; border-radius: 99px;
  background: var(--encre); color: var(--papier);
  font-size: 12px;
}

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 1100px) {
  .ilot__liens { gap: 16px; }
  .ilot { gap: 18px; }
}

@media (max-width: 860px) {
  .ilot { left: 16px; right: 16px; transform: none; justify-content: space-between; padding-left: 14px; }
  .ilot__liens, .ilot .bouton--petit { display: none; }
  .ilot__menu {
    display: grid; place-items: center;
    position: relative;
    width: 44px; height: 44px;
    border: 0; border-radius: 50%;
    background: var(--encre);
    cursor: pointer;
  }
  .ilot__menu i {
    position: absolute; left: 14px; right: 14px; height: 1.3px;
    background: var(--papier);
    transition: transform 250ms var(--ease-out);
  }
  .ilot__menu i:first-of-type { transform: translateY(-3.5px); }
  .ilot__menu i:last-of-type { transform: translateY(3.5px); }
  .ilot__menu[aria-expanded="true"] i:first-of-type { transform: rotate(45deg); }
  .ilot__menu[aria-expanded="true"] i:last-of-type { transform: rotate(-45deg); }

  .menu {
    display: flex; flex-direction: column; justify-content: center;
    position: fixed; inset: 0; z-index: 25;
    padding: 100px 28px 40px;
    background: rgba(244, 238, 230, 0.86);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    opacity: 0;
    transition: opacity 300ms var(--ease-out);
  }
  .menu[hidden] { display: none; }
  .menu.ouvert { opacity: 1; }
  .menu nav { display: grid; gap: 6px; }
  .menu nav a {
    font-family: var(--serif); font-size: 46px; line-height: 1.15; text-decoration: none;
    opacity: 0; transform: translateY(28px);
    transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out);
  }
  .menu.ouvert nav a { opacity: 1; transform: none; }
  .menu.ouvert nav a:nth-child(2) { transition-delay: 50ms; }
  .menu.ouvert nav a:nth-child(3) { transition-delay: 100ms; }
  .menu.ouvert nav a:nth-child(4) { transition-delay: 150ms; }
  .menu__pied { margin-top: 40px; color: var(--encre-douce); font-size: 15px; }

  .accueil { grid-template-columns: minmax(0, 1fr); padding-top: 112px; gap: 48px; min-height: 0; }
  .planche-accueil { height: 112vw; max-height: 620px; }

  .contact { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .lieux { grid-template-columns: minmax(0, 1fr); }
  .lieux__avis { grid-column: 1; }

  .etapes { grid-template-columns: minmax(0, 1fr); }
  .etapes li:nth-child(n) { grid-column: 1; margin-top: 0; }
}

@media (max-width: 767px) {
  body { font-size: 15.5px; }
  .accueil h1 { font-size: clamp(48px, 14vw, 72px); margin: 22px 0; }
  .accueil__chapo { font-size: 16px; }
  .piece figcaption { font-size: 9.5px; letter-spacing: 0.12em; }
  .nuancier-accueil li { width: 26px; height: 26px; }
  .piece { --rayon: 16px; }
}

/* Projets sur téléphone et tablette en portrait (même règle que `compact` dans main.js) :
   le titre, puis le décor, puis la planche dessous */
@media (max-width: 767px), (max-width: 1100px) and (orientation: portrait) {
  .projet { height: 280vh; }
  .scene {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    justify-items: center;
    gap: 0;
    padding: 84px 16px 3dvh;
  }
  .planche, .decor { display: contents; }
  .planche__colonne { display: none; }
  .planche__num { order: 1; font-size: 17px; justify-self: start; }
  .planche h3 { order: 2; justify-self: start; font-size: 28px; }
  .planche__lieu { order: 3; justify-self: start; margin-top: 4px; font-size: 13px; }
  .decor__cadre { order: 4; width: min(100%, calc(46dvh * var(--rn))); margin-top: 2dvh; }
  .decor figcaption { order: 5; display: none; }
  .emplacements { order: 6; justify-content: center; gap: 10px; margin-top: 2.4dvh; flex-wrap: nowrap; }
  .emplacement { --h: 11dvh; border-radius: 10px; }
  .emplacement:nth-child(2) { margin-top: 0; }
  .nuancier { order: 7; justify-content: center; margin-top: 1.8dvh; gap: 10px; }
  .nuancier button { min-height: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .nuancier button i { width: 26px; height: 26px; }
  .nuancier button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nuancier__nom { display: block; order: 8; }
  .planche__matieres { display: none; }
}

@media (max-width: 767px) {
  .liste-prestations li { grid-template-columns: minmax(0, 1fr) 84px; gap: 6px 16px; align-items: start; padding: 24px 0; }
  .liste-prestations__num { grid-column: 1; }
  .liste-prestations h3 { grid-column: 1; }
  .liste-prestations p { grid-column: 1; font-size: 15px; }
  .liste-prestations__vignette { display: block; grid-column: 2; grid-row: 1 / span 3; width: 84px; height: 112px; object-fit: cover; border-radius: 12px; }

  .lieux ul { grid-template-columns: minmax(0, 1fr); }
  .formulaire .cadre-double__coeur { padding: 22px 18px; }
  .champs-duo { grid-template-columns: minmax(0, 1fr); }
  .compteur-trous { left: 16px; right: auto; }
}

/* Moins de mouvement : on garde les fondus, on retire les déplacements */
@media (prefers-reduced-motion: reduce) {
  .entree, .revele { transform: none !important; }
  .menu nav a { transform: none !important; }
  .liste-prestations li:hover h3 { transform: none; }
  .decor__lumiere { transition: opacity 350ms ease; }
}
