/* ==========================================================================
   Brume — feuille unique.
   Quatre sections, six images, aucun script de bibliothèque.
   Le noir porte la page, la craie écrit, le laiton souligne.
   ========================================================================== */

:root {
  --encre: #0A0B0A;
  --encre-2: #101211;
  --craie: #F2EEE7;
  --craie-doux: #A9A49B;
  --craie-pale: #918C82;
  --laiton: #C08B4E;
  --ligne: rgba(242, 238, 231, .14);
  --largeur: 1240px;
  --marge: clamp(20px, 5vw, 64px);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--encre);
  color: var(--craie);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
sup { font-size: .62em; vertical-align: super; }
::selection { background: var(--laiton); color: var(--encre); }

.saut {
  position: absolute; left: -9999px; top: 0;
  background: var(--craie); color: var(--encre);
  padding: 12px 18px; z-index: 200; border-radius: 2px;
}
.saut:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--laiton); outline-offset: 3px; }

/* --- Le filet, repris partout --------------------------------------------- */
.oeil {
  margin: 0 0 14px;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--laiton);
  font-weight: 500;
}

.petit { font-size: .84rem; color: var(--craie-pale); }

/* --- En-tête -------------------------------------------------------------- */
.entete {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 0 var(--marge);
  height: 62px;
  background: rgba(10, 11, 10, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ligne);
}

.entete__marque {
  display: flex; align-items: baseline; gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.36rem;
  letter-spacing: .01em;
}
.entete__ville {
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--craie-doux);
}

.entete__nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.entete__nav a {
  font-size: .8rem;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--craie-doux);
  padding: 6px 0;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.entete__nav a:hover { color: var(--craie); border-bottom-color: var(--laiton); }

.entete__age {
  margin: 0;
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--craie-doux);
  border: 1px solid var(--ligne);
  border-radius: 999px;
  padding: 3px 10px;
}

/* --- 01. Le lieu ---------------------------------------------------------- */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  min-height: min(100svh, 880px);
  padding: clamp(56px, 12vh, 128px) var(--marge) clamp(24px, 4vh, 40px);
  overflow: hidden;
  overflow: clip; /* laisse sortir le dessin de l'appareil sans créer de débordement */
  isolation: isolate;
}

.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 1;
}

/* Le voile protège le texte à gauche, laisse voir la vapeur à droite. */
.hero__voile {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(10,11,10,.93) 0%, rgba(10,11,10,.86) 30%, rgba(10,11,10,.34) 62%, rgba(10,11,10,.06) 88%),
    linear-gradient(to bottom, rgba(10,11,10,.88) 0%, rgba(10,11,10,0) 24%, rgba(10,11,10,.08) 58%, rgba(10,11,10,.55) 88%, var(--encre) 100%);
}

.hero__texte {
  position: relative; z-index: 2;
  margin-top: auto;
  max-width: min(100%, 640px);
}

.hero__titre {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 10.5vw, 7.6rem);
  line-height: .88;
  letter-spacing: -.025em;
}
.hero__titre .ligne { display: block; }
.hero__titre em { font-style: italic; color: var(--craie); }

.hero__chapo {
  margin: 26px 0 0;
  max-width: 38ch;
  font-size: clamp(.95rem, 1.3vw, 1.06rem);
  color: var(--craie-doux);
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 28px 0 0;
}

.bouton {
  display: inline-block;
  padding: 13px 22px;
  font-size: .82rem;
  letter-spacing: .06em;
  text-decoration: none;
  background: var(--craie); color: var(--encre);
  border: 1px solid var(--craie);
  border-radius: 2px;
  transition: background .25s, color .25s, border-color .25s;
}
.bouton:hover { background: var(--laiton); border-color: var(--laiton); color: var(--encre); }
.bouton--creux { background: transparent; color: var(--craie); border-color: var(--ligne); }
.bouton--creux:hover { border-color: var(--craie); background: transparent; color: var(--craie); }

.hero__infos {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
  margin: clamp(40px, 8vh, 76px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--ligne);
  max-width: 760px;
}
.hero__infos dt {
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--laiton); margin-bottom: 5px;
}
.hero__infos dd { margin: 0; font-size: .88rem; color: var(--craie-doux); }

/* --- L'appareil dessiné : c'est lui qui dit de quoi parle la maison -------- */
.appareil {
  position: absolute;
  right: clamp(22px, 6vw, 92px);
  bottom: 27%;
  z-index: 2;
  margin: 0;
  width: clamp(68px, 6.6vw, 98px);
  color: var(--craie);
  pointer-events: none;
}
/* halo chaud : la vapeur éclaire l'objet qui la produit */
.appareil::before {
  content: "";
  position: absolute;
  left: 50%; top: -2%;
  width: 210%; height: 18%;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(closest-side,
    rgba(236, 222, 200, .10),
    rgba(192, 139, 78, .05) 50%,
    transparent 78%);
  filter: blur(7px);
}
.appareil__svg {
  position: relative;
  display: block;
  width: 100%; height: auto;
  overflow: visible;
}
.appareil .trait { color: color-mix(in srgb, var(--craie) 78%, transparent); }
.appareil .liquide {
  stroke: var(--laiton);
  fill: color-mix(in srgb, var(--laiton) 20%, transparent);
  opacity: .95;
}
.appareil .resistance { stroke: var(--laiton); }

/* --- 02. En rayon --------------------------------------------------------- */
.rayon { padding: clamp(64px, 9vw, 124px) var(--marge) clamp(40px, 6vw, 72px); }

.tete { max-width: var(--largeur); margin: 0 auto; }
.tete h2,
.trouver h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.tete__texte {
  margin: 16px 0 0;
  max-width: 46ch;
  color: var(--craie-doux);
  font-size: .95rem;
}

.grille {
  list-style: none;
  max-width: var(--largeur);
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.6vw, 20px);
}

.vignette figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--encre-2);
  border-radius: 2px;
}
.vignette img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s;
  filter: saturate(.9) contrast(1.03);
}
.vignette:hover img { transform: scale(1.045); filter: saturate(1) contrast(1.05); }

.vignette h3 {
  margin: 12px 0 0;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
}

.note {
  max-width: var(--largeur);
  margin: 30px auto 0;
  font-size: .8rem;
  color: var(--craie-pale);
  border-left: 1px solid var(--ligne);
  padding-left: 14px;
}

/* --- La bande de matière -------------------------------------------------- */
.bande { margin: 0; height: clamp(150px, 22vw, 300px); overflow: hidden; background: var(--encre-2); }
.bande img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: contrast(1.06) saturate(.8); }

/* --- 03. Nous trouver ----------------------------------------------------- */
.trouver {
  padding: clamp(56px, 9vw, 116px) var(--marge);
  max-width: var(--largeur);
  margin: 0 auto;
}

.trouver__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--ligne);
}

.infos {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 30px);
}
.infos dt {
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--laiton); margin-bottom: 6px;
}
.infos dd { margin: 0; font-size: .95rem; color: var(--craie); }
.infos a { text-decoration: none; border-bottom: 1px solid var(--ligne); }
.infos a:hover { border-bottom-color: var(--laiton); }

.trouver__note { font-size: .88rem; color: var(--craie-doux); }
.trouver__note p { margin: 0 0 12px; }

/* --- La carte ------------------------------------------------------------- */
.carte { margin-top: clamp(34px, 5vw, 58px); }

.carte__cadre {
  position: relative;
  width: 100%;            /* sans largeur explicite, aspect-ratio + min-height
                             déduisent la largeur de la hauteur : débordement */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--encre-2);
  border: 1px solid var(--ligne);
  border-radius: 2px;
}
.carte__cadre iframe {
  display: block;
  width: 100%; height: 100%;
  border: 0;
  /* le plan de Google est blanc : on le ramène dans le noir de la page */
  filter: invert(1) hue-rotate(180deg) saturate(.62) brightness(.92) contrast(1.04);
}

.carte__pied {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 14px 22px;
  margin-top: 14px;
}
.carte__legende { margin: 0; font-size: .78rem; color: var(--craie-pale); }
.carte__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* --- 04. La loi ----------------------------------------------------------- */
.loi { background: var(--craie); color: var(--encre); }
.loi__in {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 54px) var(--marge);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}
.loi__age {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -.02em;
  border: 1px solid rgba(10, 11, 10, .28);
  border-radius: 999px;
  padding: .18em .42em .22em;
}
.loi__texte { margin: 0; font-size: clamp(.88rem, 1.2vw, .98rem); line-height: 1.5; max-width: 72ch; }
.loi__texte strong { font-weight: 600; }

/* --- Pied ----------------------------------------------------------------- */
.pied {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  padding: clamp(36px, 5vw, 60px) var(--marge) clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--ligne);
  background: var(--encre);
}
.pied__marque {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: .01em;
}
.pied__adresse {
  font-style: normal;
  font-size: .84rem;
  color: var(--craie-doux);
  line-height: 1.7;
}
.pied__adresse a { text-decoration: none; border-bottom: 1px solid var(--ligne); }
.pied__note {
  margin: 0;
  grid-column: 2 / 3;
  font-size: .72rem;
  line-height: 1.6;
  color: var(--craie-pale);
  max-width: 56ch;
}
.pied__liens {
  margin: 0;
  grid-column: 3 / 4;
  grid-row: 1;
  font-size: .78rem;
}
.pied__liens a { text-decoration: none; color: var(--craie-doux); border-bottom: 1px solid var(--ligne); }
.pied__liens a:hover { color: var(--craie); border-bottom-color: var(--laiton); }

/* --- Adaptations ---------------------------------------------------------- */
@media (max-width: 900px) {
  .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trouver__grille { grid-template-columns: minmax(0, 1fr); }
  .pied { grid-template-columns: 1fr 1fr; }
  .pied__note { grid-column: 1 / -1; }
  .pied__liens { grid-column: 2 / 3; grid-row: 1; text-align: right; }
  .appareil { width: clamp(58px, 8vw, 74px); right: clamp(16px, 4vw, 40px); }
  .carte__cadre { aspect-ratio: 16 / 9; }
}

@media (max-width: 620px) {
  .entete { height: 56px; }
  .entete__nav { gap: 14px; }
  .entete__nav a { font-size: .74rem; }
  .entete__age { display: none; }

  .hero { min-height: auto; padding-top: 11vh; padding-bottom: 26px; }
  .hero__texte { max-width: none; }
  .hero__titre { font-size: clamp(2.5rem, 13.4vw, 4rem); }
  .hero__chapo { max-width: 32ch; }
  .hero__actions .bouton { flex: 1 1 auto; text-align: center; }
  /* le bouton creux passe sous la vapeur : un fond sombre garantit le contraste */
  .bouton--creux { background: rgba(10, 11, 10, .62); }
  .hero__infos { grid-template-columns: 1fr 1fr; margin-top: 34px; }

  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vignette:last-child { grid-column: span 2; }
  .vignette:last-child figure { aspect-ratio: 2 / 1; }

  .infos { grid-template-columns: 1fr 1fr; }
  .loi__in { grid-template-columns: 1fr; align-items: start; }
  .loi__age { justify-self: start; font-size: 2.1rem; }

  /* l'appareil occupe une voie à droite : les horaires s'arrêtent avant lui */
  .hero { padding-bottom: 34px; }
  .appareil { right: -12px; top: auto; bottom: -6%; width: clamp(56px, 15.6vw, 64px); }
  .appareil::before { width: 240%; height: 16%; }
  .hero__infos {
    padding-right: 80px;
    border-top: 0;
    position: relative;
    margin-top: 40px;
  }
  .hero__infos::before {
    content: "";
    position: absolute; left: 0; right: 92px; top: -16px;
    height: 1px; background: var(--ligne);
  }

  .carte__cadre { aspect-ratio: 4 / 3; }
  .carte__pied { flex-direction: column; align-items: stretch; }
  .carte__actions { width: 100%; }
  .carte__actions .bouton { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 380px) {
  .entete { gap: 10px; }
  .entete__marque { font-size: 1.15rem; }
  .entete__ville { display: none; }
  .entete__nav { gap: 12px; }
  .entete__nav a { font-size: .7rem; }
  .hero__titre { font-size: clamp(2.5rem, 14.5vw, 3.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .vignette:hover img { transform: none; }
}
