/* =========================================================
   VALMER CARAT — feuille de style
   Négoce de diamants de couleur naturels
   ---------------------------------------------------------
   01. Jetons
   02. Base
   03. Typographie
   04. Utilitaires
   05. En-tête & navigation
   06. Boutons & liens
   07. Accueil
   08. La maison
   09. La couleur (échelle GIA)
   10. Sélection & visionneuse
   11. Notre façon de travailler
   12. Le certificat
   13. Contact
   14. Pied de page
   15. Pages secondaires
   16. Apparitions
   17. Points de rupture
   ========================================================= */

/* ---------------------------------------------------------
   01. JETONS
   --------------------------------------------------------- */
:root {
  /* Blanc pur partout. Aucune teinte crème : le rythme vient des filets,
     des ombres portées et du vide. */
  --bg:        #ffffff;
  --bg-warm:   #ffffff;
  --bg-soft:   #fafafa;

  /* Encres */
  --ink:       #111111;
  --ink-2:     #5a5a5a;
  --ink-3:     #8d8d8d;

  /* Filets */
  --line:      rgba(17, 17, 17, 0.12);
  --line-2:    rgba(17, 17, 17, 0.28);

  /* Pas de couleur d'accent : la couleur appartient aux pierres.
     L'accent est simplement une encre plus affirmée. */
  --accent:    #111111;

  /* Ombres — la seule profondeur du site */
  --shadow:    0 24px 60px rgba(17, 17, 17, 0.10);
  --shadow-sm: 0 12px 32px rgba(17, 17, 17, 0.08);

  /* Échelle d'intensité, du plus pâle au plus saturé */
  --i1: #fbf3dc;
  --i2: #f8e9bc;
  --i3: #f6dd93;
  --i4: #f3ce62;
  --i5: #eebe36;
  --i6: #e5a913;
  --i7: #d99000;

  /* Typographie — une seule famille, comme Prada ou Louis Vuitton.
     La hiérarchie vient du corps, de la graisse et de l'approche,
     jamais d'un second caractère. */
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans:    "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Échelle fluide */
  --t-xs:   clamp(0.67rem, 0.63rem + 0.18vw, 0.75rem);
  --t-sm:   clamp(0.8rem,  0.76rem + 0.2vw,  0.89rem);
  --t-base: clamp(0.97rem, 0.92rem + 0.28vw, 1.1rem);
  --t-lead: clamp(1.08rem, 1rem    + 0.5vw,  1.38rem);
  --t-h3:   clamp(1.3rem,  1.1rem  + 0.9vw,  1.9rem);
  --t-h2:   clamp(2rem,    1.45rem + 2.7vw,  4.1rem);
  --t-h1:   clamp(2.5rem,  1.5rem  + 5vw,    6.4rem);

  /* Rythme */
  --pad:     clamp(1.4rem, 5.5vw, 6rem);
  --gutter:  clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(5rem, 12vw, 11rem);
  --max:     1480px;
  --measure: 62ch;

  /* Mouvement */
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --slow:     1s;
  --med:      0.5s;
  --fast:     0.28s;
}

/* ---------------------------------------------------------
   02. BASE
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.68;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }
svg { display: block; }
a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

::selection { background: var(--ink); color: #fff; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ---------------------------------------------------------
   03. TYPOGRAPHIE
   --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.06;
  margin: 0;
  letter-spacing: -0.025em;
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.16; }

p { margin: 0; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.58;
  color: var(--ink-2);
  font-weight: 300;
  max-width: 44ch;
}

.body-text { max-width: var(--measure); color: var(--ink-2); }
.body-text + .body-text { margin-top: 1.35em; }

.label {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1;
}

.label--accent { color: var(--accent); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: clamp(1.6rem, 3.2vw, 2.6rem);
}

.eyebrow::before {
  content: "";
  width: clamp(26px, 4vw, 52px);
  height: 1px;
  background: var(--accent);
  flex: none;
}

.it { font-style: italic; }

/* ---------------------------------------------------------
   04. UTILITAIRES
   --------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section); position: relative; }
.section--warm { background: var(--bg-warm); }
.section--tight { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--line { border-top: 1px solid var(--line); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Repli tant qu'un média n'est pas déposé */
.media-fallback { background: var(--bg-soft); }

/* Point d'ancrage du recadrage. Sans ça, un format étroit rogne depuis le
   centre et sort le sujet du cadre — visible surtout sur téléphone.
   À ajuster si tu remplaces une image dont le sujet n'est pas au même endroit. */
.hero__frame img     { object-position: 72% center; }  /* sujet à droite */
.story__frame img    { object-position: 22% center; }  /* pierres à gauche */
.band__frame img     { object-position: 80% center; }  /* sujet à droite */
.approach__media img,
.cert__media img     { object-position: center; }

/* Sur fond blanc, l'ombre portée est la seule profondeur du site.
   Elle décolle les visuels de la page sans ajouter de cadre. */
.approach__media,
.cert__media { box-shadow: var(--shadow); }

/* En-tête de section : titre à gauche, chapô à droite */
.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

/* ---------------------------------------------------------
   05. EN-TÊTE & NAVIGATION
   --------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding-block: clamp(1.1rem, 2.2vw, 1.7rem);
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background var(--med) var(--ease), border-color var(--med) var(--ease),
              padding var(--med) var(--ease), backdrop-filter var(--med) var(--ease);
}

.header.is-stuck {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
  padding-block: clamp(0.85rem, 1.5vw, 1.05rem);
}

/* Logo au centre, navigation à gauche, langue à droite */
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gutter);
}

.header__side { display: flex; align-items: center; gap: clamp(1.5rem, 2.8vw, 2.8rem); }
.header__side--start { justify-self: start; }
.header__side--end { justify-self: end; }

.wordmark {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  line-height: 1;
  white-space: nowrap;
  display: inline-block;
  justify-self: center;
  /* L'approche ajoute une chasse après la dernière lettre : on la reprend,
     sinon le logo paraît décalé à gauche du centre optique. */
  margin-right: -0.42em;
  transition: opacity var(--fast) var(--ease);
}
.wordmark:hover { opacity: 0.55; }
.wordmark--nav { font-size: clamp(0.72rem, 1.15vw, 0.9rem); }

.wordmark__sep {
  opacity: 0.32;
  margin-inline: 0.1em;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 1.9vw, 2rem);
}

.nav__link {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  position: relative;
  padding-block: 0.4rem;
  white-space: nowrap;
  transition: color var(--fast) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--med) var(--ease-out);
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.lang a { transition: color var(--fast) var(--ease); }
.lang a:hover { color: var(--ink); }
.lang [aria-current="true"] { color: var(--ink); }
.lang__sep { opacity: 0.4; }

.burger {
  display: none;
  width: 30px; height: 16px;
  position: relative;
  cursor: pointer;
  flex: none;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transition: transform var(--med) var(--ease-out);
}
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { bottom: 2px; }

body.is-nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(21deg); }
body.is-nav-open .burger span:nth-child(2) { transform: translateY(-6px) rotate(-21deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 480;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--pad) + 3rem) var(--pad) var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.75s var(--ease-out);
  pointer-events: none;
}

body.is-nav-open .nav-overlay { clip-path: inset(0 0 0 0); pointer-events: auto; }

.nav-overlay__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 3vw, 1.5rem);
}

.nav-overlay__list a {
  font-family: var(--display);
  font-size: clamp(1.9rem, 9vw, 3rem);
  line-height: 1.06;
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

body.is-nav-open .nav-overlay__list a { opacity: 1; transform: none; }
body.is-nav-open .nav-overlay__list li:nth-child(1) a { transition-delay: 0.14s; }
body.is-nav-open .nav-overlay__list li:nth-child(2) a { transition-delay: 0.2s; }
body.is-nav-open .nav-overlay__list li:nth-child(3) a { transition-delay: 0.26s; }
body.is-nav-open .nav-overlay__list li:nth-child(4) a { transition-delay: 0.32s; }
body.is-nav-open .nav-overlay__list li:nth-child(5) a { transition-delay: 0.38s; }

.nav-overlay__foot {
  margin-top: auto;
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------
   06. BOUTONS & LIENS
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 2rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: color var(--med) var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-out);
}

.btn:hover { color: #fff; }
.btn:hover::before { transform: scaleY(1); }

.btn__arrow {
  width: 20px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width var(--med) var(--ease-out);
}
.btn__arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover .btn__arrow { width: 32px; }

.btn--solid { background: var(--ink); color: #fff; }
.btn--solid::before { background: var(--accent); }
.btn--solid:hover { color: #fff; }

.cta-block {
  margin-top: clamp(2.4rem, 5vw, 3.8rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-note {
  font-size: var(--t-xs);
  letter-spacing: 0.05em;
  color: var(--ink-3);
  max-width: 32ch;
}

.link-line {
  position: relative;
  color: var(--ink);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size var(--med) var(--ease-out);
  border-bottom: 1px solid var(--line-2);
}
.link-line:hover { background-size: 100% 1px; }

/* ---------------------------------------------------------
   07. ACCUEIL
   --------------------------------------------------------- */
/* Image plein cadre, bord à bord. Le nom vit dans l'en-tête, pas ici. */
.hero { padding-top: clamp(4.2rem, 6.5vw, 5.6rem); }

.hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--bg-soft);
  margin: 0;
}

.hero__frame img,
.hero__frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 3s var(--ease-out);
}
.hero__frame:hover img { transform: scale(1.035); }

.hero__caption {
  margin-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Lien de navigation vers une autre page */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line-2);
  transition: border-color var(--fast) var(--ease);
  white-space: nowrap;
}
.link-arrow:hover { border-bottom-color: var(--ink); }
.link-arrow:hover .btn__arrow { width: 32px; }

/* ---------------------------------------------------------
   08. LA MAISON
   --------------------------------------------------------- */

/* Bandeau récit : pierres à plat, une ligne posée dans la réserve */
.story { padding-block: clamp(2.5rem, 6vw, 5rem); }

.story__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--bg-warm);
  margin: 0;
}

.story__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* La réserve tient dans le tiers droit : garder cette zone vide à la prise de vue */
.story__overlay {
  position: absolute;
  right: 9%;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  max-width: 26%;
}

.story__line {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--ink);
  line-height: 2;
}

/* L'image est bord à bord ; seul le texte reste dans la gouttière */
.story__text {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.story__text p { max-width: 56ch; color: var(--ink-2); }

/* Bandeau simple : une image seule, pour respirer entre deux sections */
.band { padding-block: clamp(2.5rem, 6vw, 5rem); }

.band__frame {
  position: relative;
  width: 100%;
  /* Calé sur le format natif de l'image (2,58) pour ne presque rien rogner */
  aspect-ratio: 5 / 2;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  margin: 0;
}

.band__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 3s var(--ease-out);
}
.band__frame:hover img { transform: scale(1.035); }

.band__caption {
  margin-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.house__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.house__statement {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.house__statement em { font-style: italic; color: var(--accent); }

/* Trois constats, sans encadré ni capitales : un simple filet au-dessus,
   du texte qui se lit. Les encadrés faisaient tableau technique. */
.notes {
  list-style: none;
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: clamp(1.8rem, 3.5vw, 2.6rem) 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 4vw, 3.5rem);
}

.notes li {
  font-size: var(--t-sm);
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 34ch;
}

.notes b {
  font-weight: 400;
  color: var(--ink);
}

/* ---------------------------------------------------------
   09. LA COULEUR — échelle GIA
   --------------------------------------------------------- */
/* Version compacte pour l'accueil : un dégradé et deux bornes.
   Le détail des sept degrés est développé sur « Notre histoire ». */
.gradient {
  height: 12px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(90deg,
    var(--i1) 0%, var(--i2) 16%, var(--i3) 33%, var(--i4) 50%,
    var(--i5) 66%, var(--i6) 83%, var(--i7) 100%);
}

.scale__legend {
  margin-top: clamp(1.4rem, 2.6vw, 2rem);
  font-size: var(--t-sm);
  color: var(--ink-3);
  max-width: 52ch;
}

.scale {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--ink);
}

.scale__row {
  display: grid;
  grid-template-columns: 64px 16ch minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding-block: clamp(0.85rem, 1.6vw, 1.15rem);
  border-bottom: 1px solid var(--line);
}

.scale__chip {
  height: 34px;
  border: 1px solid var(--line);
}

.scale__row:nth-child(1) .scale__chip { background: var(--i1); }
.scale__row:nth-child(2) .scale__chip { background: var(--i2); }
.scale__row:nth-child(3) .scale__chip { background: var(--i3); }
.scale__row:nth-child(4) .scale__chip { background: var(--i4); }
.scale__row:nth-child(5) .scale__chip { background: var(--i5); }
.scale__row:nth-child(6) .scale__chip { background: var(--i6); }
.scale__row:nth-child(7) .scale__chip { background: var(--i7); }

.scale__name {
  font-family: var(--display);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.2;
}

.scale__note { font-size: var(--t-sm); color: var(--ink-3); }

.scale__foot {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pull {
  margin-top: clamp(3rem, 6vw, 5rem);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  line-height: 1.3;
  max-width: 30ch;
  padding-left: clamp(1.1rem, 2vw, 1.8rem);
  border-left: 1px solid var(--accent);
}

/* ---------------------------------------------------------
   10. SÉLECTION & VISIONNEUSE
   --------------------------------------------------------- */
/* Bande défilante horizontale : même geste sur téléphone et sur ordinateur.
   Les marges négatives font filer la bande jusqu'au bord de l'écran tandis
   que la première carte reste alignée sur la grille du texte. */
.stones {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(190px, 22vw, 285px);
  gap: clamp(0.9rem, 2vw, 1.6rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--pad);
  margin-inline: calc(var(--pad) * -1);
  padding: 0 var(--pad) 1.4rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-3) var(--line);
}

.stones::-webkit-scrollbar { height: 2px; }
.stones::-webkit-scrollbar-track { background: var(--line); }
.stones::-webkit-scrollbar-thumb { background: var(--ink-3); }

/* Glisser-déposer à la souris. Le tactile garde son défilement natif. */
@media (hover: hover) and (pointer: fine) {
  .stones { cursor: grab; }
  .stones.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
    scroll-behavior: auto;
  }
}

/* Sinon le navigateur tente de déplacer l'image au lieu de la bande */
.stones img,
.stones video { -webkit-user-drag: none; user-select: none; }

.stone {
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
}

.stone__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--bg-warm);
  transition: box-shadow var(--med) var(--ease);
}

.stone__frame video,
.stone__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.stone:hover .stone__frame { box-shadow: 0 18px 44px rgba(17, 17, 17, 0.13); }
.stone:hover .stone__frame video,
.stone:hover .stone__frame img { transform: scale(1.04); }

.stone__zoom {
  position: absolute;
  z-index: 2;
  right: 0.8rem; top: 0.8rem;
  width: 32px; height: 32px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
}

.stone__zoom::before,
.stone__zoom::after { content: ""; position: absolute; background: var(--ink); }
.stone__zoom::before { width: 11px; height: 1px; }
.stone__zoom::after  { width: 1px; height: 11px; }

.stone:hover .stone__zoom { opacity: 1; transform: none; }

.stone__info {
  padding-top: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.stone__name {
  font-family: var(--display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.2;
}

.stone__cut {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-align: right;
  flex: none;
}

.stone__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  margin-top: 0.4rem;
}

.stone__status i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
}

.selection__note {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

/* Visionneuse */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--med) var(--ease), visibility var(--med) var(--ease);
}

.viewer.is-open { opacity: 1; visibility: visible; }

.viewer__box {
  display: grid;
  grid-template-columns: auto minmax(0, 320px);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  transform: translateY(16px) scale(0.99);
  transition: transform 0.55s var(--ease-out);
  max-width: 100%;
}

.viewer.is-open .viewer__box { transform: none; }

.viewer__media {
  position: relative;
  height: min(76vh, 700px);
  aspect-ratio: 9 / 16;
  background: var(--bg-warm);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.16);
}

.viewer__media video { width: 100%; height: 100%; object-fit: cover; }

.viewer__meta { max-width: 34ch; }

.viewer__name {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.spec {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
}

.spec:last-of-type { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.16em; font-size: var(--t-xs); }
.spec dd { margin: 0; text-align: right; }

.viewer__cta { margin-top: 1.8rem; }

.viewer__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.viewer__close:hover { background: var(--ink); border-color: var(--ink); }
.viewer__close:hover span { background: #fff; }

.viewer__close span {
  position: absolute;
  width: 15px; height: 1px;
  background: var(--ink);
  transition: background var(--fast) var(--ease);
}
.viewer__close span:first-child { transform: rotate(45deg); }
.viewer__close span:last-child  { transform: rotate(-45deg); }

.viewer__nav {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.viewer__arrow {
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.viewer__arrow:hover { background: var(--ink); color: #fff; }
.viewer__arrow svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------
   11. NOTRE FAÇON DE TRAVAILLER
   --------------------------------------------------------- */
.approach__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.approach__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-warm);
}

.approach__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 2.4s var(--ease-out);
}
.approach__media:hover img { transform: scale(1.05); }

.checks {
  list-style: none;
  margin: clamp(1.8rem, 3.5vw, 2.6rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.checks li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-size: var(--t-sm);
  color: var(--ink-2);
}

.checks li::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--accent);
  flex: none;
  transform: translateY(-4px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.step {
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-2);
  position: relative;
}

.step::after {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 1px; width: 0;
  background: var(--ink);
  transition: width 1.1s var(--ease-out);
}
.step.is-in::after { width: 100%; }

.step__n {
  font-family: var(--display);
  font-size: var(--t-sm);
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1.2rem;
}

.step__t {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.step__d { font-size: var(--t-sm); color: var(--ink-3); }

/* ---------------------------------------------------------
   12. LE CERTIFICAT
   --------------------------------------------------------- */
.cert__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.cert__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-warm);
}

.cert__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 2.4s var(--ease-out);
}
.cert__media:hover img { transform: scale(1.05); }

.cert__points {
  list-style: none;
  margin: clamp(1.8rem, 3.5vw, 2.6rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.cert__points li {
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 14ch minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  font-size: var(--t-sm);
}

.cert__points span:first-child {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}

.cert__points span:last-child { color: var(--ink-2); }

/* ---------------------------------------------------------
   13. CONTACT
   --------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.contact__aside .lead { margin-top: 1.6rem; }

.contact__direct {
  margin-top: clamp(2.2rem, 4.5vw, 3.2rem);
  padding-top: clamp(1.8rem, 3.5vw, 2.4rem);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.3rem;
}

.form { display: grid; gap: clamp(1.4rem, 2.6vw, 1.9rem); }

.field { display: grid; gap: 0.6rem; }

.field > label,
.fieldset__legend {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  font-size: var(--t-base);
  transition: border-color var(--med) var(--ease);
  border-radius: 0;
}

.field textarea { resize: vertical; min-height: 108px; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); opacity: 0.8; }

.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--ink); }

.field select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238d8d8d' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

.field--row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 2.6vw, 1.9rem);
}

.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.85rem; }

.pills { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }

.pill span {
  display: block;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--line-2);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}

.pill input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.pill input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }

.consent {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: var(--t-xs);
  color: var(--ink-3);
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border: 1px solid var(--line-2);
  flex: none;
  margin-top: 4px;
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
  position: relative;
}

.consent input:checked { background: var(--ink); border-color: var(--ink); }

.consent input:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.4rem;
}

.form__status { font-size: var(--t-sm); color: var(--accent); min-height: 1.4em; }
.form__status[data-state="error"] { color: #b4443a; }

.form.is-sent { opacity: 0.4; pointer-events: none; }

.thanks {
  display: none;
  border: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--bg-warm);
}
.thanks.is-shown { display: block; }
.thanks h3 { margin-bottom: 1rem; }

/* ---------------------------------------------------------
   14. PIED DE PAGE
   --------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(1.8rem, 3vw, 2.4rem);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.footer__mark { font-size: clamp(1.4rem, 4vw, 2.6rem); letter-spacing: 0.24em; }

.footer__tag {
  margin-top: 1.3rem;
  font-size: var(--t-sm);
  color: var(--ink-3);
  max-width: 36ch;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: clamp(2rem, 5vw, 4.5rem);
}

.footer__col { display: grid; gap: 0.8rem; align-content: start; }
.footer__col .label { margin-bottom: 0.3rem; }
.footer__col a,
.footer__col span {
  font-size: var(--t-sm);
  color: var(--ink-2);
  transition: color var(--fast) var(--ease);
}
.footer__col a:hover { color: var(--ink); }

.footer__bottom {
  padding-top: clamp(1.8rem, 3vw, 2.4rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--t-xs);
  color: var(--ink-3);
  letter-spacing: 0.07em;
}

.footer__bottom a { transition: color var(--fast) var(--ease); }
.footer__bottom a:hover { color: var(--ink); }

/* ---------------------------------------------------------
   15. PAGES SECONDAIRES
   --------------------------------------------------------- */
.page-head {
  padding-top: clamp(8.5rem, 17vw, 13rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.prose { max-width: 68ch; padding-block: clamp(3rem, 6vw, 5rem); }
.prose h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  margin-top: clamp(2.4rem, 4.5vw, 3.5rem);
  margin-bottom: 1rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); margin-bottom: 1.05rem; }
.prose ul { color: var(--ink-2); padding-left: 1.1rem; margin-bottom: 1.05rem; }
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.prose .todo { color: var(--accent); border-bottom: 1px dotted var(--accent); }

/* ---------------------------------------------------------
   16. APPARITIONS
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

.split { display: inline-block; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out);
}
.split.is-in .w > span { transform: none; }

.draw { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); }
.draw.is-in { transform: scaleX(1); }

/* Entrée d'accueil : l'image se dévoile par le bas, sans glissement */
.hero__frame {
  clip-path: inset(14% 0 0 0);
  animation: heroReveal 1.4s var(--ease-out) 0.1s forwards;
}
.hero__caption {
  opacity: 0;
  animation: heroIn 1s var(--ease-out) 0.7s forwards;
}

@keyframes heroReveal { to { clip-path: inset(0 0 0 0); } }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@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;
  }
  .reveal, .split .w > span, .hero__caption {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__frame { clip-path: none !important; }
  .draw { transform: scaleX(1) !important; }
}

/* ---------------------------------------------------------
   17. POINTS DE RUPTURE
   --------------------------------------------------------- */
@media (max-width: 1180px) {
  .steps  { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
  /* Le logo doit rester seul au centre : Contact repasse dans le menu */
  .header__side--end .nav__link { display: none; }

  .head,
  .house__grid,
  .approach__grid,
  .cert__grid,
  .contact__grid,
  .selection__note { grid-template-columns: minmax(0, 1fr); }

  .head { align-items: start; }
  /* L'image de l'atelier est un portrait : ne jamais la coucher */
  .approach__media { order: -1; aspect-ratio: 4 / 5; max-width: 520px; margin-inline: auto; }
  .cert__media { order: -1; aspect-ratio: 4 / 3; }
  .hero__frame { aspect-ratio: 16 / 10; }
  .story__frame { aspect-ratio: 16 / 10; }
  .band__frame { aspect-ratio: 16 / 10; }

  .scale__row { grid-template-columns: 48px minmax(0, 1fr); row-gap: 0.3rem; }
  .scale__note { grid-column: 2; }

  .viewer__box { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .viewer__media { height: min(60vh, 500px); margin-inline: auto; }
  .viewer__meta { max-width: none; }
  .viewer__nav { position: static; transform: none; justify-content: center; margin-top: 1rem; }
}

@media (max-width: 640px) {
  .notes { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .field--row { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .cert__points li { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .lang { display: none; }

  /* Téléphone : formats plus hauts, mais jamais au point de perdre le sujet */
  .hero__frame { aspect-ratio: 4 / 5; }
  .story__frame { aspect-ratio: 3 / 2; }
  /* Recadrage serré : on vise le visage, la main et la pierre */
  .band__frame { aspect-ratio: 4 / 5; }
  .band__frame img { object-position: 76% center; }
  .wordmark--nav { letter-spacing: 0.26em; margin-right: -0.26em; }

  /* Les libellés d'action sont longs : pleine largeur plutôt que débordement */
  .btn {
    padding: 1.05rem 1.4rem;
    letter-spacing: 0.16em;
    width: 100%;
    justify-content: space-between;
    line-height: 1.5;
  }
  .btn__arrow { flex: none; }
  .cta-block { align-items: stretch; }

  .stone__info { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .stone__cut { text-align: left; }

  /* Trop petit pour porter du texte en surimpression */
  .story__overlay { display: none; }
  .story__text { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }

  .viewer__media { height: min(56vh, 440px); }
}
