/* ==========================================================================
   Maison Tiziri — feuille de style
   Direction : maison de luxe. La photo porte tout, le texte se tait.
   Blanc porcelaine, encre presque noire, une seule couleur de nuit pour le
   clair de lune. Polices auto-hébergées (aucun appel à Google : RGPD).
   ========================================================================== */

@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --blanc: #ffffff;
  --porcelaine: #f4f4f1;   /* surfaces discrètes, proche du fond des photos */
  --encre: #171615;
  --gris: #6c6964;
  --filet: #e3e1dc;
  --nuit: #14161d;         /* le ciel du clair de lune */
  --lune: #d9d3c7;         /* texte clair sur la nuit */
  --lune-pale: #9a958c;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --marge: max(20px, 4.5vw);
  --largeur: 90rem;
  --doux: cubic-bezier(.22, .7, .2, 1);
  --entete: 5.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font: 400 1.0625rem/1.75 var(--sans);
  letter-spacing: .005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .3em; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
::selection { background: var(--nuit); color: var(--lune); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aller-contenu { position: absolute; left: 1rem; top: -4rem; z-index: 90; background: var(--encre); color: var(--blanc); padding: .6rem 1rem; font-size: .9rem; }
.aller-contenu:focus { top: 1rem; }

/* ---------- Typographie ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.15; }
p { margin: 0 0 1.1em; max-width: 34em; }
em { font-family: var(--display); font-style: italic; }
.chapeau { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 300; line-height: 1.7; max-width: 32em; }
.petit { font-size: .875rem; color: var(--gris); }

/* lien souligné qui se trace au survol */
.lien {
  display: inline-block;
  font: 400 .95rem/1.4 var(--sans);
  letter-spacing: .04em;
  text-decoration: none;
  padding-bottom: .35em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .6s var(--doux);
}
.lien:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Mise en page ---------- */

.contenu { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-left: var(--marge); padding-right: var(--marge); }
.section { padding-block: clamp(5rem, 11vw, 10rem); }
.section.serre { padding-block: clamp(3.5rem, 7vw, 6rem); }
.centre { text-align: center; }
.centre p { margin-inline: auto; }
.filet { border: 0; border-top: 1px solid var(--filet); margin: 0; }

/* ---------- En-tête ---------- */

.entete {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--encre);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--filet);
  transition: background-color .5s var(--doux), color .5s var(--doux), border-color .5s;
  padding-top: env(safe-area-inset-top, 0px);
}
.entete .contenu {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--entete);
}
.page-ouverture .entete:not(.defile):not(.menu-ouvert) { background: transparent; color: var(--blanc); border-bottom-color: transparent; }

.marque { grid-column: 2; display: block; line-height: 0; transition: opacity .6s var(--doux); }
.marque svg { display: block; width: clamp(8.5rem, 11vw, 10.5rem); height: auto; }
.page-ouverture .entete:not(.defile):not(.menu-ouvert) .marque { opacity: 0; pointer-events: none; }
.signe { display: block; width: 2.4rem; margin: 0 auto 2rem; color: var(--gris); }
.signe svg { display: block; width: 100%; height: auto; }

.nav { display: contents; }
.nav ul { display: flex; gap: clamp(1.2rem, 2.4vw, 2.6rem); list-style: none; margin: 0; padding: 0; font-size: .9rem; letter-spacing: .04em; }
.nav .gauche { grid-column: 1; grid-row: 1; }
.nav .droite { grid-column: 3; grid-row: 1; justify-content: flex-end; }
.nav a { text-decoration: none; position: relative; padding-block: .4rem; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--doux); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .bientot { font-family: var(--display); font-style: italic; opacity: .7; margin-left: .3em; }

.menu-bouton { display: none; grid-column: 1; grid-row: 1; justify-self: start; background: none; border: 0; color: inherit; font: 400 .9rem var(--sans); letter-spacing: .04em; padding: .5rem 0; cursor: pointer; }

@media (max-width: 900px) {
  :root { --entete: 4.5rem; }
  .menu-bouton { display: block; }
  .marque svg { width: 7.6rem; }
  .nav { display: block; position: fixed; inset: calc(var(--entete) + env(safe-area-inset-top, 0px)) 0 0; background: var(--blanc); color: var(--encre); padding: 2rem var(--marge); transform: translateY(-110%); visibility: hidden; transition: transform .6s var(--doux), visibility 0s .6s; overflow-y: auto; }
  .entete.menu-ouvert .nav { transform: none; visibility: visible; transition: transform .6s var(--doux); }
  .nav ul { flex-direction: column; gap: .2rem; font: 400 2rem/1.3 var(--display); letter-spacing: 0; }
  .nav .droite { justify-content: flex-start; margin-top: .2rem; }
  .nav a { display: inline-block; padding-block: .35rem; }
  .nav a::after { display: none; }
}

main { padding-top: calc(var(--entete) + env(safe-area-inset-top, 0px)); }
.page-ouverture main { padding-top: 0; }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 400 .9rem/1 var(--sans); letter-spacing: .08em;
  text-decoration: none;
  padding: 1.15rem 2.2rem;
  border: 1px solid var(--encre);
  background: var(--encre); color: var(--blanc);
  cursor: pointer;
  transition: background-color .45s var(--doux), color .45s var(--doux), border-color .45s;
}
.bouton:hover { background: transparent; color: var(--encre); }
.bouton.contour { background: transparent; color: var(--encre); }
.bouton.contour:hover { background: var(--encre); color: var(--blanc); }
.bouton.clair { background: var(--lune); border-color: var(--lune); color: var(--nuit); }
.bouton.clair:hover { background: transparent; color: var(--lune); }
.bouton[disabled] { opacity: .5; cursor: default; }

/* ---------- Ouverture plein écran ---------- */

.ouverture { position: relative; height: 100svh; min-height: 34rem; max-height: 68rem; overflow: hidden; background: var(--nuit); color: var(--blanc); }
.ouverture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.js .ouverture img { animation: approche 3.2s var(--doux) both; }
@keyframes approche { from { transform: scale(1.09); opacity: .4; } }
.ouverture::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 46%, rgba(14, 15, 20, .5), rgba(14, 15, 20, .3) 70%), linear-gradient(180deg, rgba(14, 15, 20, .3), rgba(14, 15, 20, 0) 25%, rgba(14, 15, 20, 0) 65%, rgba(14, 15, 20, .55)); pointer-events: none; }
.ouverture-logo { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; padding-bottom: 6vh; }
.ouverture-logo svg { width: clamp(12rem, 24vw, 21rem); height: auto; filter: drop-shadow(0 2px 24px rgba(0, 0, 0, .25)); }
.ouverture .texte { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(2.2rem, 6vh, 4.2rem); display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.ouverture h1 { font: 400 clamp(.8rem, 1vw, .9rem)/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0; max-width: 34em; opacity: .92; }
.ouverture .lien { color: var(--blanc); }
.js .ouverture-logo svg { animation: lever 2.4s .3s var(--doux) both; }
.js .ouverture .texte { animation: monte 1.4s 1.3s var(--doux) both; }
@keyframes lever { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
@keyframes monte { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Manifeste ---------- */

.manifeste { text-align: center; }
.manifeste .signe { margin-bottom: 2.6rem; }
.manifeste p { font: 400 clamp(1.6rem, 3vw, 2.6rem)/1.35 var(--display); max-width: 24em; margin: 0 auto; letter-spacing: -.005em; text-wrap: balance; }
.manifeste .signature { font: 400 .9rem/1 var(--sans); letter-spacing: .08em; color: var(--gris); margin-top: 2.5rem; }

/* ---------- Sélection éditoriale ---------- */

.edito { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.5vw, 2.5rem); row-gap: clamp(4rem, 9vw, 8rem); }
.edito .piece { margin: 0; min-width: 0; }
.edito .piece a { text-decoration: none; display: block; }
.edito .grande { grid-column: 1 / span 7; }
.edito .petite { grid-column: 9 / span 4; align-self: end; }
.edito .grande.droite { grid-column: 6 / span 7; grid-row: 2; }
.edito .petite.gauche { grid-column: 1 / span 4; grid-row: 2; align-self: start; margin-top: 30%; }
.edito .cadre { overflow: hidden; background: var(--porcelaine); }
.edito .grande .cadre { aspect-ratio: 5 / 4; }
.edito .petite .cadre { aspect-ratio: 4 / 5; }
.edito img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--doux); }
.edito a:hover img { transform: scale(1.035); }
.edito figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1.1rem; }
.edito figcaption h3 { margin: 0; }
.edito figcaption span { font-size: .85rem; letter-spacing: .04em; color: var(--gris); white-space: nowrap; }
@media (max-width: 760px) {
  .edito .grande, .edito .petite, .edito .grande.droite, .edito .petite.gauche { grid-column: 1 / -1; grid-row: auto; margin-top: 0; }
  .edito .petite { width: 78%; justify-self: end; }
  .edito .petite.gauche { justify-self: start; }
}

.tete { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(3rem, 6vw, 5rem); }
.tete h2 { margin: 0; }
.tete p { margin: 0; color: var(--gris); }

/* ---------- Clair de lune (fond nuit) ---------- */

.nuit { background: var(--nuit); color: var(--lune); }
.nuit h2 { color: #f2eee6; }
.nuit p { color: var(--lune); }
.nuit .petit { color: var(--lune-pale); }
.nuit .lien { color: #f2eee6; }
.lune { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.lune .astre { aspect-ratio: 1; max-width: 30rem; width: 100%; justify-self: center; border: 1px solid #3a3d47; border-radius: 50%; display: grid; place-items: center; color: var(--lune); }
.lune .astre svg { width: 62%; height: auto; }
.lune .mot { font: italic 400 clamp(3.5rem, 8vw, 7rem)/1 var(--display); color: #f2eee6; margin: 0 0 .3em; letter-spacing: -.02em; }
.lune .traduction { font-size: .95rem; letter-spacing: .06em; color: var(--lune-pale); margin-bottom: 2.4rem; }
@media (max-width: 860px) { .lune { grid-template-columns: 1fr; } .lune .astre { max-width: 17rem; } }

/* ---------- Défilé horizontal ---------- */

.defile-zone { position: relative; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(15rem, 26vw, 24rem);
  gap: clamp(1rem, 2vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--marge);
  padding: 0 var(--marge) 1.5rem;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail a { scroll-snap-align: start; text-decoration: none; display: block; }
.rail .cadre { aspect-ratio: 4 / 5; overflow: hidden; background: var(--porcelaine); }
.rail img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--doux); }
.rail a:hover img { transform: scale(1.04); }
.rail h3 { font-size: 1.3rem; margin: 1rem 0 .2rem; }
.rail p { font-size: .85rem; color: var(--gris); margin: 0; letter-spacing: .02em; }
.rail-commandes { display: flex; gap: .5rem; }
.rail-commandes button { width: 3rem; height: 3rem; border: 1px solid var(--filet); background: var(--blanc); color: var(--encre); cursor: pointer; font: 400 1.1rem/1 var(--sans); transition: border-color .3s; }
.rail-commandes button:hover { border-color: var(--encre); }
.rail-commandes button:disabled { opacity: .3; cursor: default; }

/* ---------- Bloc deux colonnes image / texte ---------- */

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.duo .cadre { overflow: hidden; aspect-ratio: 4 / 5; background: var(--porcelaine); }
.duo .cadre.paysage { aspect-ratio: 3 / 2; }
.duo img { width: 100%; height: 100%; object-fit: cover; }
.duo.inverse > :first-child { order: 2; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .duo.inverse > :first-child { order: 0; } }

.occasions { list-style: none; padding: 0; margin: 2rem 0 2.6rem; display: flex; flex-wrap: wrap; gap: .2rem 1.8rem; }
.occasions li { font: italic 400 1.35rem/1.5 var(--display); }


/* ---------- Trois vérités ---------- */

.verites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); list-style: none; margin: 0; padding: 0; }
.verites li { border-top: 1px solid var(--encre); padding-top: 1.6rem; min-width: 0; }
.verites h3 { font-size: 1.55rem; }
.verites p { color: var(--gris); margin: 0; }
@media (max-width: 760px) { .verites { grid-template-columns: 1fr; } }
.bougie .verites { grid-template-columns: 1fr; gap: 0; margin-top: 2.4rem; }
.bougie .verites li { border-top-color: var(--filet); padding-block: 1.5rem; }
.bougie .verites h3 { font-size: 1.4rem; margin-bottom: .3em; }
.porcelaine-fond { background: var(--porcelaine); }

/* ---------- Mosaïque Instagram ---------- */

.mosaique { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.mosaique a { display: block; aspect-ratio: 1; overflow: hidden; position: relative; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--doux), filter .6s; }
.mosaique a:hover img { transform: scale(1.05); filter: brightness(.85); }
@media (max-width: 700px) { .mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- En-tête de page intérieure ---------- */

.entete-page { padding-block: clamp(4rem, 9vw, 8rem) clamp(2.5rem, 5vw, 4.5rem); text-align: center; }
.entete-page h1 { margin-bottom: .4em; }
.entete-page .chapeau { margin-inline: auto; color: var(--gris); }
.entete-page .signe { margin-bottom: 1.6rem; }

.bandeau { position: relative; height: clamp(22rem, 62vw, 46rem); overflow: hidden; background: var(--porcelaine); }
.bandeau img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Collection (grille) ---------- */

.filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 2rem; list-style: none; margin: 0 0 clamp(3rem, 6vw, 5rem); padding: 0; }
.filtres button { background: none; border: 0; padding: .4rem 0; font: 400 .95rem var(--sans); letter-spacing: .04em; color: var(--gris); cursor: pointer; position: relative; }
.filtres button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--encre); transform: scaleX(0); transition: transform .5s var(--doux); }
.filtres button[aria-pressed="true"] { color: var(--encre); }
.filtres button[aria-pressed="true"]::after, .filtres button:hover::after { transform: scaleX(1); }

.grille { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(3rem, 5vw, 5rem) clamp(1rem, 2.4vw, 2.4rem); list-style: none; margin: 0; padding: 0; }
.grille li { min-width: 0; }
.grille li.large { grid-column: span 2; }
.grille .ouvrir { all: unset; display: block; width: 100%; cursor: pointer; }
.grille .ouvrir:focus-visible { outline: 1px solid var(--encre); outline-offset: 6px; }
.grille .cadre { aspect-ratio: 4 / 5; overflow: hidden; background: var(--porcelaine); }
.grille li.large .cadre { aspect-ratio: auto; height: 100%; }
.grille li.large button.ouvrir { display: flex; flex-direction: column; height: 100%; }
.grille li.large .cadre { flex: 1; min-height: 0; }
.grille img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--doux); }
.grille .ouvrir:hover img { transform: scale(1.035); }
.grille h3 { font-size: 1.4rem; margin: 1.1rem 0 .15rem; }
.grille p { font-size: .85rem; letter-spacing: .03em; color: var(--gris); margin: 0; }
.grille .prix { color: var(--encre); }
.grille .vendue .cadre, .rail .vendue .cadre { opacity: .55; }
@media (max-width: 980px) { .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grille li.large { grid-column: span 2; } .grille li.large .cadre { aspect-ratio: 3 / 2; height: auto; flex: none; } }
@media (max-width: 560px) { .grille { grid-template-columns: 1fr; } .grille li.large { grid-column: auto; } }

/* ---------- Fiche (fenêtre) ---------- */

dialog.fiche {
  width: min(78rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0; border: 0;
  background: var(--blanc); color: var(--encre);
  overflow: auto;
}
dialog.fiche::backdrop { background: rgba(20, 22, 29, .72); backdrop-filter: blur(4px); }
dialog.fiche[open] { animation: apparait .6s var(--doux); }
@keyframes apparait { from { opacity: 0; transform: translateY(16px); } }
.fiche-corps { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: min(44rem, calc(100dvh - 2rem)); }
.fiche-visuel { background: var(--porcelaine); position: relative; min-height: 22rem; }
.fiche-visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fiche-vues { position: absolute; left: 1rem; bottom: 1rem; display: flex; gap: .5rem; z-index: 2; }
.fiche-vues button { width: 3.6rem; height: 3.6rem; padding: 0; border: 1px solid transparent; background: var(--blanc); cursor: pointer; overflow: hidden; }
.fiche-vues button[aria-current="true"] { border-color: var(--encre); }
.fiche-vues img { position: static; width: 100%; height: 100%; object-fit: cover; }
.fiche-texte { padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; }
.fiche-texte .famille { font-size: .85rem; letter-spacing: .06em; color: var(--gris); margin-bottom: 1.2rem; }
.fiche-texte h2 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.fiche-texte dl { margin: 1.6rem 0 2rem; border-top: 1px solid var(--filet); }
.fiche-texte dl div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--filet); font-size: .95rem; }
.fiche-texte dt { color: var(--gris); }
.fiche-texte dd { margin: 0; }
.fiche-actions { margin-top: auto; display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.fiche-actions .note { font: italic 400 1.15rem/1.4 var(--display); margin: 0; }
.fermer:focus:not(:focus-visible) { outline: none; }
.fermer { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 2.8rem; height: 2.8rem; border: 0; background: var(--blanc); color: var(--encre); cursor: pointer; font: 300 1.6rem/1 var(--sans); }
@media (max-width: 860px) { .fiche-corps { grid-template-columns: 1fr; } .fiche-visuel { aspect-ratio: 4 / 5; min-height: 0; } }

/* ---------- Boutique ---------- */

.bientot-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100svh - var(--entete)); }
.bientot-page .cadre { position: relative; overflow: hidden; background: var(--porcelaine); min-height: 24rem; }
.bientot-page .cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bientot-page .texte { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 7rem) var(--marge); }
.bientot-page .signe { margin: 0 0 2rem; }
.bientot-page .petit-titre { font: italic 400 1.2rem/1 var(--display); color: var(--gris); margin-bottom: 1.4rem; }
.liste-attente { display: flex; gap: 0; margin: 2rem 0 1rem; max-width: 30rem; border-bottom: 1px solid var(--encre); }
.liste-attente input { flex: 1; min-width: 0; border: 0; background: transparent; font: 300 1.05rem var(--sans); padding: 1rem 0; color: var(--encre); }
.liste-attente input:focus { outline: none; }
.liste-attente button { border: 0; background: none; font: 400 .9rem var(--sans); letter-spacing: .08em; cursor: pointer; padding: 1rem 0 1rem 1rem; color: var(--encre); }
@media (max-width: 860px) { .bientot-page { grid-template-columns: 1fr; min-height: 0; } .bientot-page .cadre { aspect-ratio: 4 / 3; min-height: 0; } }

/* ---------- Formulaires ---------- */

.formulaire .champ { margin-bottom: 1.6rem; }
.formulaire label, .formulaire legend { display: block; font-size: .85rem; letter-spacing: .04em; color: var(--gris); margin-bottom: .3rem; }
.formulaire input, .formulaire select, .formulaire textarea {
  width: 100%; border: 0; border-bottom: 1px solid #bcb8b1; border-radius: 0;
  background: transparent; color: var(--encre);
  font: 300 1.05rem var(--sans); padding: .7rem 0;
  transition: border-color .3s;
}
.formulaire select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--encre) 50%) calc(100% - 6px) 55% / 5px 5px no-repeat, linear-gradient(-45deg, transparent 50%, var(--encre) 50%) 100% 55% / 5px 5px no-repeat; }
.formulaire textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: none; border-bottom-color: var(--encre); }
.formulaire .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
@media (max-width: 560px) { .formulaire .deux { grid-template-columns: 1fr; } }
.message-form { font-size: .95rem; padding: 1rem 0; border-top: 1px solid var(--encre); margin: 0 0 1rem; }
.choix { display: grid; gap: .6rem; border: 0; padding: 0; margin: 0 0 1.6rem; }
.choix label { display: flex; gap: .8rem; align-items: flex-start; font-size: 1rem; color: var(--encre); letter-spacing: 0; border: 1px solid var(--filet); padding: .9rem 1rem; cursor: pointer; }
.choix label:has(input:checked) { border-color: var(--encre); }
.choix input { width: auto; accent-color: var(--encre); margin-top: .35rem; }
.choix small { display: block; color: var(--gris); font-size: .85rem; }

/* ---------- Étapes (sur mesure) ---------- */

.etapes { list-style: none; counter-reset: e; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); padding: 0; margin: 0; }
.etapes li { counter-increment: e; min-width: 0; }
.etapes li::before { content: counter(e); display: block; font: italic 400 3rem/1 var(--display); color: var(--gris); margin-bottom: 1.2rem; }
.etapes h3 { font-size: 1.35rem; }
.nuit .etapes p { color: var(--lune-pale); }
.etapes p { color: var(--gris); font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; } }
@media (max-width: 520px) { .etapes { grid-template-columns: 1fr; } }

/* ---------- Récit (la maison) ---------- */

.recit { max-width: 44rem; margin-inline: auto; }
.recit h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-top: 0; }
.recit p { font-weight: 300; font-size: 1.1rem; line-height: 1.85; }
.chapitre + .chapitre { margin-top: clamp(4rem, 8vw, 7rem); }

.questions details { border-top: 1px solid var(--filet); padding-block: 1.4rem; }
.questions details:last-child { border-bottom: 1px solid var(--filet); }
.questions summary { font: 400 1.3rem/1.35 var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1.5rem; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font: 300 1.4rem/1 var(--sans); transition: transform .5s var(--doux); }
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details p { margin: 1rem 0 0; color: var(--gris); }

.conseils { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
.conseils li { border-top: 1px solid var(--filet); padding: 1.3rem 0; }
.conseils strong { display: block; font: 400 1.25rem/1.3 var(--display); margin-bottom: .3rem; }
.conseils span { color: var(--gris); font-size: .98rem; }
@media (max-width: 760px) { .conseils { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */

.pied { background: var(--nuit); color: var(--lune); font-size: .92rem; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied .haut { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: clamp(4rem, 7vw, 6rem) 3rem; }
.pied .marque { display: inline-block; color: #f2eee6; margin-bottom: 1.4rem; }
.pied .marque svg { width: 10rem; }
.pied .bas .signe { width: 1.4rem; margin: 0; color: var(--lune-pale); }
.pied .bas { align-items: center; }
.pied h2 { font: 400 .8rem/1 var(--sans); letter-spacing: .12em; color: var(--lune-pale); margin-bottom: 1.3rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .55rem; }
.pied p { color: var(--lune-pale); max-width: 22em; }
.pied .bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid #2a2d36; padding-block: 1.8rem calc(1.8rem + env(safe-area-inset-bottom, 0px)); color: var(--lune-pale); font-size: .82rem; }
@media (max-width: 860px) { .pied .haut { grid-template-columns: 1fr 1fr; } .pied .haut > :first-child { grid-column: 1 / -1; } }

/* ---------- Page d'une création ---------- */

.fil { display: flex; gap: .7rem; font-size: .85rem; letter-spacing: .04em; color: var(--gris); padding-block: 2rem 1.5rem; }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--encre); }
.creation { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.creation-vues { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); }
.creation-vues .vue { margin: 0; background: var(--porcelaine); overflow: hidden; }
.creation-vues .vue:first-child { aspect-ratio: 4 / 5; }
.creation-vues img { width: 100%; height: 100%; object-fit: cover; }
.compteur { display: none; }
.creation-texte { position: sticky; top: calc(var(--entete) + 2.5rem); padding-bottom: 2rem; }
.creation-texte .famille { font-size: .85rem; letter-spacing: .06em; color: var(--gris); margin-bottom: 1.2rem; }
.creation-texte h1 { font-size: clamp(2.6rem, 4.6vw, 4.2rem); margin-bottom: .45em; }
.creation-texte dl { margin: 2rem 0 2.4rem; border-top: 1px solid var(--filet); }
.creation-texte dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--filet); font-size: .95rem; }
.creation-texte dt { color: var(--gris); }
.creation-texte dd { margin: 0; }
.creation-actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; }
.creation-actions .note { font: italic 400 1.2rem/1.4 var(--display); margin: 0; }
.suite { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); margin-top: clamp(4rem, 8vw, 7rem); }
.suite a { text-decoration: none; padding: 2rem 0; font: 400 clamp(1.4rem, 2.2vw, 1.9rem)/1.2 var(--display); transition: color .4s; }
.suite a:last-child { text-align: right; border-left: 1px solid var(--filet); }
.suite a span { display: block; font: 400 .8rem/1 var(--sans); letter-spacing: .1em; color: var(--gris); margin-bottom: .7rem; }
.suite a:first-child span::before { content: "← "; }
.suite a:last-child span::after { content: " →"; }
.suite a:hover { color: var(--gris); }
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2.4rem); }
.trois a, .rail a { text-decoration: none; display: block; }
.trois .cadre { aspect-ratio: 4 / 5; overflow: hidden; background: var(--porcelaine); }
.trois img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--doux); }
.trois a:hover img { transform: scale(1.035); }
.trois h3 { font-size: 1.3rem; margin: 1rem 0 .15rem; }
.trois p { font-size: .85rem; color: var(--gris); margin: 0; }
@media (max-width: 900px) {
  .creation { grid-template-columns: 1fr; gap: 1rem; }
  .creation-vues { grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--marge) * -1); gap: 0; }
  .creation-vues::-webkit-scrollbar { display: none; }
  .creation-vues .vue { scroll-snap-align: start; aspect-ratio: 4 / 5; }
  .compteur { display: block; font-size: .8rem; letter-spacing: .1em; color: var(--gris); text-align: right; margin: 0; }
  .creation-texte { position: static; }
  .trois { grid-template-columns: 1fr 1fr; }
  .trois a:nth-child(3) { display: none; }
}
@media (max-width: 560px) { .suite a { font-size: 1.2rem; padding: 1.4rem 0; } }

/* ---------- Galerie sur mesure ---------- */

.galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.galerie figure { margin: 0; min-width: 0; }
.galerie .cadre { aspect-ratio: 4 / 5; overflow: hidden; background: var(--porcelaine); }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.galerie h3 { font-size: 1.25rem; margin: 1rem 0 .15rem; }
.galerie p { font-size: .88rem; color: var(--gris); margin: 0; }
@media (max-width: 760px) { .galerie { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; } }

/* ---------- Page introuvable ---------- */

.introuvable { min-height: calc(100svh - var(--entete) - 10rem); display: grid; place-items: center; text-align: center; padding-block: 6rem; }
.introuvable .chapeau { margin: 0 auto 2.4rem; color: var(--gris); }
.introuvable .lien { display: table; margin: 1.6rem auto 0; }

/* ---------- Transitions entre les pages (navigateurs récents) ---------- */

@view-transition { navigation: auto; }
.entete { view-transition-name: entete; }
::view-transition-old(root) { animation: .35s var(--doux) both fondu-sortie; }
::view-transition-new(root) { animation: .55s .1s var(--doux) both fondu-entree; }
@keyframes fondu-sortie { to { opacity: 0; } }
@keyframes fondu-entree { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Révélation des images au défilement ---------- */

.js .revele { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--doux); }
.js .revele img { transform: scale(1.12); transition: transform 2.2s var(--doux); }
.js .revele.vu { clip-path: inset(0 0 0 0); }
.js .revele.vu img { transform: scale(1); }
.js .apparait { opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--doux), transform 1.2s var(--doux); }
.js .apparait.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .revele, .js .apparait { clip-path: none; opacity: 1; transform: none; }
  .js .revele img { transform: none; }
  html { scroll-behavior: auto; }
}
