/* ============================================================
   Atelier Nivéole — Robes de mariée sur mesure
   Charte photo M. Nuit poudrée · Italiana + Plus Jakarta Sans
   ============================================================ */

:root {
  /* Le fond est blanc : on est dans le mariage, pas au deuil.
     Ce qui claque, c'est le rose, pas l'obscurite. */
  --blanc: #FFFBFC;         /* le fond de la page */
  --blanc-carte: #F7EDF1;   /* les vides et les cadres d'image */
  --blanc-voile: rgba(255, 251, 252, 0.82);
  --pale: #FBE4EC;          /* la bande douce */
  --encre: #2B1620;         /* le texte : un prune tres fonce, jamais du noir */
  --gris: #755D69;          /* teste : 4,94:1 sur la bande rose pale */
  --rose: #E11D62;          /* l'accent qui claque */
  --rose-fonce: #B4134D;    /* survols et texte rose sur fond pale */
  --bord: rgba(43, 22, 32, 0.16);

  --serif: 'Italiana', 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
  --marge: clamp(1.25rem, 5vw, 3.5rem);
  --entete: 5.5rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--entete);
  background: var(--blanc);
}

body {
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: var(--rose); color: #fff; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -150%);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--rose); color: #fff;
  font-size: 0.85rem; text-decoration: none;
  transition: transform 0.25s var(--sortie);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- Typographie commune ---------- */

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose-fonce);
  margin-bottom: 1.5rem;
}

.section-title,
.hero-title,
.stepper-title,
.quote-text,
.brand-logo {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.hero-title { font-size: clamp(2.7rem, 9vw, 7rem); }
.section-title { font-size: clamp(2rem, 5.2vw, 3.9rem); }

/* Italiana n’a pas d’italique dessiné : on marque l’emphase par la couleur
   et l’espacement, jamais par un faux oblique synthétique. */
.hero-title em,
.section-title em {
  font-style: normal;
  color: var(--rose);
  letter-spacing: 0.04em;
}

/* ---------- Barre de progression ---------- */

.progress-rail {
  position: fixed; inset: 0 0 auto 0;
  height: 2px; z-index: 130;
  background: transparent;
  pointer-events: none;
}
.progress-fill {
  display: block; height: 100%; width: 0;
  background: var(--rose);
  transform-origin: left;
}

/* ---------- Rideau d’ouverture ---------- */

#preloader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--rose);
  display: flex; align-items: center; justify-content: center;
}
/* Sans JS, aucun rideau : la page s’affiche directement. */
html:not(.js) #preloader { display: none; }

.loader-words {
  position: relative;
  height: 1.25em;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 6vw, 4rem);
  color: #fff;
  text-align: center;
}
.loader-word {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, 110%);
  white-space: nowrap;
  opacity: 0;
  transition: transform 0.55s var(--sortie), opacity 0.45s ease;
}
.loader-word.is-in  { transform: translate(-50%, 0); opacity: 1; }
.loader-word.is-out { transform: translate(-50%, -110%); opacity: 0; }

#preloader.is-open {
  transform: translateY(-101%);
  transition: transform 1s var(--sortie);
}

/* ---------- En-tête ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem var(--marge);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease,
              padding 0.4s var(--sortie), transform 0.5s var(--sortie);
}
.site-header.is-scrolled {
  background: var(--blanc-voile);
  backdrop-filter: blur(14px);
  padding-top: 0.9rem; padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--bord);
}
.site-header.is-hidden { transform: translateY(-105%); }

.brand-logo {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links { display: none; gap: 2.4rem; list-style: none; }
.nav-links a {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--encre);
  padding-bottom: 0.35rem;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--rose);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--sortie);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* Specificite volontaire : .roll-btn est declare apres et gagnerait. */
.site-header .header-cta { display: none; }

/* ---------- Bouton à roulement ---------- */

.roll-btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  border: 1px solid var(--rose);
  border-radius: 100px;
  background: var(--rose);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.45s var(--sortie), color 0.45s var(--sortie),
              border-color 0.45s var(--sortie);
}
.roll-btn.outline { background: transparent; color: var(--encre); border-color: var(--encre); }
.roll-btn:hover { background: var(--encre); border-color: var(--encre); color: #fff; }

/* Le masque est ce qui manquait au modèle d’origine : sans lui,
   les deux exemplaires du libellé s’affichent l’un sous l’autre. */
.roll-mask {
  display: block;
  position: relative;
  overflow: hidden;
  line-height: 1.3;
  height: 1.3em;
}
.roll-a, .roll-b {
  display: block;
  line-height: 1.3;
  transition: transform 0.5s var(--sortie);
}
.roll-b { position: absolute; inset: 0; transform: translateY(100%); }
.roll-btn:hover .roll-a,
.roll-btn:focus-visible .roll-a { transform: translateY(-100%); }
.roll-btn:hover .roll-b,
.roll-btn:focus-visible .roll-b { transform: translateY(0); }

/* ---------- Menu mobile ---------- */

.burger {
  display: grid; place-content: center; gap: 6px;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
}
.burger span:not(.sr-only) {
  display: block; width: 26px; height: 2px; background: var(--encre);
  transition: transform 0.35s var(--sortie), opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu-mobile {
  position: fixed; inset: var(--entete) 0 auto 0; z-index: 115;
  background: var(--blanc-voile);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bord);
  padding: 1rem var(--marge) 2rem;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile ul { list-style: none; }
.menu-mobile a {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  text-decoration: none;
  border-bottom: 1px solid var(--bord);
}

/* ---------- Héros ---------- */

.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--entete) + 3rem) var(--marge) 6rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -12% 0;
  background: url('../images/hero.jpg') center 45% / cover no-repeat;
  will-change: transform;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,251,252,0.55) 0%, rgba(255,251,252,0) 30%, rgba(255,251,252,0.9) 100%),
    linear-gradient(90deg, rgba(255,251,252,0.92) 0%, rgba(255,251,252,0.35) 42%, transparent 70%);
}
.hero-container { position: relative; max-width: 62rem; margin: 0 auto; text-align: center; }
.hero-subtitle {
  max-width: 40rem;
  margin: 2rem auto 0;
  color: var(--gris);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem; margin-top: 2.75rem;
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.75rem;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gris);
}
.scroll-hint span {
  display: block; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose));
  animation: filer 2.4s var(--sortie) infinite;
}
@keyframes filer {
  0%, 100% { transform: scaleX(0.35); opacity: 0.4; }
  50%      { transform: scaleX(1);    opacity: 1; }
}

/* ---------- Manifeste ---------- */

.manifesto-section {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 11rem) var(--marge);
  text-align: center;
}
.manifesto-lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vw, 2.9rem);
  line-height: 1.3;
  font-weight: 400;
}

/* ---------- Diptyque ---------- */

.diptych-section {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding: 0 var(--marge) clamp(5rem, 12vh, 9rem);
  max-width: 84rem;
  margin: 0 auto;
}
.diptych-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--blanc-carte);
}
.diptych-media img {
  width: 100%; height: 112%;
  object-fit: cover;
  will-change: transform;
}
/* Le rideau est un pseudo-élément : s’il n’est jamais animé,
   l’image reste visible dessous. Jamais de clip-path qui masque tout. */
.diptych-media::after {
  content: ''; position: absolute; inset: 0;
  background: var(--pale);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.1s var(--sortie);
}
html.js .diptych-media[data-curtain]::after { transform: scaleY(1); }
html.js .diptych-media[data-curtain].is-open::after { transform: scaleY(0); transform-origin: bottom; }

.diptych-content p { color: var(--gris); max-width: 34rem; margin-top: 1.5rem; }
.section-title + p { margin-top: 1.5rem; }

.matiere-list {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin: 2rem 0 2.5rem;
}
.matiere-list li {
  padding: 0.45rem 1rem;
  border: 1px solid var(--bord);
  border-radius: 100px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris);
}

/* ---------- Parcours épinglé ---------- */

/* Une bande rose pale derriere le parcours, une bande rose VIF derriere les
   robes : c'est l'alternance des aplats qui donne le claquant, pas le fond noir. */
.stepper-section { background: var(--pale); }

/* La hauteur de défilement n’existe que si le collant peut fonctionner. */
.stepper-scroll { display: none; }
.stepper-sticky {
  position: sticky; top: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: var(--entete) var(--marge) 3rem;
  max-width: 84rem; margin: 0 auto;
}
.stepper-badge {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--rose-fonce); margin-bottom: 1.5rem;
}
.stepper-title { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 1.25rem; }
.stepper-desc { color: var(--gris); max-width: 32rem; min-height: 7.5rem; }

.stepper-dots { list-style: none; display: flex; gap: 0.75rem; margin-top: 1.75rem; }
/* La cible n'est pas le filet. Le trait fait 2 px, le bouton 44 px de haut :
   on separe ce qu'on voit de ce qu'on clique (lecon du modele fleuriste-nuancier). */
.dot {
  position: relative; display: block;
  width: 56px; height: 44px; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.dot::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; margin-top: -1px; background: var(--bord);
}
.dot .fill {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; margin-top: -1px;
  background: var(--rose);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--sortie);
}
.dot.is-active .fill { transform: scaleX(1); }

.stepper-right { position: relative; aspect-ratio: 3 / 4; }
.stepper-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s var(--sortie), transform 0.9s var(--sortie);
}
.stepper-slide img { width: 100%; height: 100%; object-fit: cover; }
.stepper-slide.is-active { opacity: 1; transform: scale(1); }

/* Repli : les trois étapes en clair, en colonnes. C’est ce que voient
   les visiteurs sans JS et ceux qui ont demandé moins d’animation. */
/* [hidden] doit gagner contre display:grid, sinon le repli reste affiche
   sous la version epinglee. C'est le piege classique de l'attribut hidden. */
.stepper-fallback[hidden] { display: none; }

.stepper-fallback {
  list-style: none;
  counter-reset: etape;
  display: grid; gap: 2.5rem;
  padding: clamp(4rem, 10vh, 7rem) var(--marge);
  max-width: 84rem; margin: 0 auto;
}
.stepper-fallback li { counter-increment: etape; border-top: 1px solid var(--bord); padding-top: 1.5rem; }
.stepper-fallback li::before {
  content: '0' counter(etape);
  display: block; margin-bottom: 0.75rem;
  font-size: 0.72rem; letter-spacing: 0.24em; color: var(--rose-fonce);
}
.stepper-fallback h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin-bottom: 0.75rem; }
.stepper-fallback p { color: var(--gris); }

/* ---------- Les robes ---------- */

.gallery-section { padding: clamp(5rem, 12vh, 9rem) 0; overflow: hidden; background: var(--rose); color: #fff; }
.gallery-header {
  max-width: 46rem; margin: 0 auto clamp(3rem, 7vh, 5rem);
  padding: 0 var(--marge); text-align: center;
}

.marquee { overflow: hidden; }
.marquee-track {
  display: flex; gap: 1.5rem; width: max-content;
  padding-inline: var(--marge);
  will-change: transform;
}
.gallery-section .eyebrow { color: #fff; opacity: 0.85; }

.gallery-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(15rem, 40vw, 23rem);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--rose-fonce);
}
.gallery-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--sortie), filter 0.6s ease;
}
.gallery-card:hover img { transform: scale(1.07); }
.gallery-card figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1rem 1.25rem;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--serif);
  font-size: 1.2rem;
}

/* ---------- Citation ---------- */

.quote-section {
  padding: clamp(6rem, 14vh, 11rem) var(--marge);
  text-align: center;
}
.quote-text { color: var(--rose); }
.quote-text {
  max-width: 46rem; margin: 0 auto;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.3;
}
.quote-author {
  margin-top: 2rem;
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gris);
}

/* ---------- Pied de page ---------- */

.site-footer { padding: clamp(5rem, 12vh, 9rem) var(--marge) 2.5rem; background: var(--pale); }

.footer-cta {
  max-width: 46rem; margin: 0 auto clamp(4rem, 10vh, 7rem);
  text-align: center;
}
.footer-cta p { color: var(--gris); margin: 1.5rem 0 2.5rem; }

.footer-top {
  display: grid; gap: 2.75rem;
  max-width: 84rem; margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid var(--bord);
}
.footer-brand p:not(.brand-logo) { color: var(--gris); margin-top: 1rem; max-width: 26rem; }
.footer-brand .brand-logo { font-size: 1.7rem; }
.footer-col h3 {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--rose-fonce); margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--gris); text-decoration: none; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--blanc); }
.footer-note { color: var(--gris); margin-top: 0.6rem; font-size: 0.85rem; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  max-width: 84rem; margin: 3.5rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--bord);
  font-size: 0.78rem; color: var(--gris);
}

/* ============================================================
   Révélations — l’état caché n’existe QUE si le JS a pris la main.
   Sans .js, ou si l’observateur ne se déclenche jamais, tout est visible.
   ============================================================ */

html.js [data-reveal],
html.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--sortie), transform 0.8s var(--sortie);
}
html.js [data-reveal].is-in,
html.js [data-stagger] > .is-in { opacity: 1; transform: none; }

html.js .mot {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(1.5deg);
  transition: opacity 0.6s var(--sortie), transform 0.6s var(--sortie);
}
html.js .mot.is-in { opacity: 1; transform: none; }

/* ---------- Confort : mouvements réduits ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js [data-reveal],
  html.js [data-stagger] > *,
  html.js .mot { opacity: 1 !important; transform: none !important; }
  html.js .diptych-media[data-curtain]::after { transform: scaleY(0) !important; }
  #preloader { display: none; }
  .scroll-hint span { animation: none; }
}

/* ---------- Grands écrans ---------- */

@media (min-width: 48rem) {
  .diptych-section { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
}

@media (min-width: 62rem) {
  .nav-links { display: flex; }
  .site-header .header-cta { display: inline-block; }
  .stepper-sticky { grid-template-columns: 1fr 1fr; }
  .hero-container { text-align: left; margin: 0; }
  .hero-subtitle { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .stepper-fallback { grid-template-columns: repeat(3, 1fr); }
}


/* ⭐ Un seul bouton a toutes les tailles (03/09/2026). Quand le script
   tourne (html.js), la barre de liens et le bouton « prendre rendez-vous »
   cedent la place : il reste la marque et le burger, qui ouvre le meme
   panneau, PLEIN ECRAN, sur toutes les largeurs. Sans script, la barre
   d origine reste en place - on ne degrade jamais une navigation qui
   existe deja. */
html.js .nav-links,
html.js .site-header .header-cta { display: none; }
html:not(.js) .burger { display: none; }
.menu-mobile { inset: var(--entete) 0 0 0; overflow-y: auto; }
.menu-mobile:not([hidden]) { animation: menu-bas .5s var(--sortie) both; }
@keyframes menu-bas { from { opacity: 0; transform: translateY(-16px); } }
@media (prefers-reduced-motion: reduce){ .menu-mobile:not([hidden]){ animation: none; } }
