/* ==========================================================================
   MD REFRIGERATION — système de design
   Typographie : Inter seule, graisses 400 à 800 — cohérente avec le lettrage du logo
   ========================================================================== */

:root {
  /* Encre */
  --encre:      #08182b;
  --encre-2:    #10263f;
  --encre-3:    #16375f;

  /* Froid */
  --givre:      #f5f8fa;
  --givre-2:    #e8f0f5;
  --brume:      #9db3c2;
  --ardoise:    #4a6478;
  --ardoise-2:  #6b8598;

  /* Accent */
  --azur:      #1f6cb0;
  --azur-2:    #7db8e6;

  --blanc:      #ffffff;
  --ligne:      #dde7ed;
  --ligne-nuit: rgba(255,255,255,.13);

  /* Typographie — une seule famille, celle du lettrage du logo */
  --sans:    'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: var(--sans);
  --mono:    var(--sans);

  /* Échelle fluide */
  --t-xxl: clamp(2.3rem, 4.8vw, 4.1rem);
  --t-xl:  clamp(1.9rem, 3.4vw, 2.9rem);
  --t-l:   clamp(1.5rem, 2.4vw, 2.1rem);
  --t-m:   clamp(1.08rem, 1.4vw, 1.24rem);

  /* Mesures */
  --large:  1280px;
  --etroit: 760px;
  --marge:  clamp(20px, 4vw, 40px);
}

/* --- Base ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--encre-2);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.15em; }
ul { margin: 0 0 1.15em; padding-left: 1.1em; }
li { margin-bottom: .38em; }

::selection { background: var(--azur-2); color: var(--encre); }

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

/* --- Titres -------------------------------------------------------------- */

.display, h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: var(--encre);
  margin: 0 0 .45em;
}

h1 { font-size: var(--t-xl); }
h2 { font-size: var(--t-l); }

h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.011em;
  color: var(--encre);
  line-height: 1.3;
  margin: 0 0 .5em;
}
h3 { font-size: 1.1rem; }
h4 { font-size: .95rem; }

.mesure { max-width: 62ch; }

/* --- Étiquettes mono ----------------------------------------------------- */

.etiquette {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ardoise-2);
  margin: 0 0 20px;
}
.etiquette::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--azur);
  flex: none;
}
.sur-nuit .etiquette { color: var(--brume); }

/* --- Grille -------------------------------------------------------------- */

.enveloppe {
  width: 100%;
  max-width: var(--large);
  margin-inline: auto;
  padding-inline: var(--marge);
}

.bloc { padding: clamp(64px, 9vw, 118px) 0; }
.bloc--court { padding: clamp(44px, 6vw, 72px) 0; }
.bloc--givre { background: var(--givre); }
.bloc--nuit  { background: var(--encre); color: var(--givre-2); }

.sur-nuit h1, .sur-nuit h2, .sur-nuit h3 { color: var(--blanc); }
.sur-nuit p { color: rgba(232,240,245,.76); }

.tete { max-width: 640px; margin-bottom: clamp(38px, 5vw, 62px); }
.tete p { font-size: var(--t-m); color: var(--ardoise); margin-bottom: 0; }
.sur-nuit .tete p { color: rgba(232,240,245,.72); }

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.trio { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; }
.quatuor { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; }

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

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s cubic-bezier(.2,.7,.3,1),
              color .2s cubic-bezier(.2,.7,.3,1),
              border-color .2s cubic-bezier(.2,.7,.3,1);
}
.bouton .fleche { transition: transform .25s cubic-bezier(.2,.7,.3,1); }
.bouton:hover .fleche { transform: translateX(3px); }

.bouton--encre { background: var(--encre); color: var(--blanc); }
.bouton--encre:hover { background: var(--encre-3); }

.bouton--azur { background: var(--azur-2); color: var(--encre); }
.bouton--azur:hover { background: var(--azur); }

.bouton--fil { border-color: var(--ligne); color: var(--encre); }
.bouton--fil:hover { border-color: var(--encre); background: var(--givre); }

.bouton--fil-clair { border-color: var(--ligne-nuit); color: var(--blanc); }
.bouton--fil-clair:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Lien fléché */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--encre);
  border-bottom: 1px solid var(--ligne);
  padding-bottom: 3px;
  transition: border-color .2s ease;
}
.lien-fleche:hover { border-color: var(--azur); }
.sur-nuit .lien-fleche { color: var(--blanc); border-color: var(--ligne-nuit); }

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

.barre {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--ligne);
}

.barre__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 76px;
}

.logo { display: flex; align-items: center; gap: 13px; flex: none; }
.logo__image { height: 36px; width: auto; flex: none; }
.pied .logo__image { height: 42px; }
@media (max-width: 400px) { .logo__image { height: 30px; } }
.logo__marque {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 3px;
}
.logo__texte {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .93rem;
  letter-spacing: .01em;
  color: var(--encre);
  line-height: 1.15;
}
.logo__texte em {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: .64rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ardoise-2);
  margin-top: 2px;
}

.menu { display: flex; align-items: center; gap: 30px; }
.menu a {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ardoise);
  padding: 4px 0;
  transition: color .18s ease;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--encre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
.menu a:hover { color: var(--encre); }
.menu a:hover::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--encre); }
.menu a[aria-current="page"]::after { transform: scaleX(1); background: var(--azur); }

.barre__fin { display: flex; align-items: center; gap: 14px; flex: none; }

.bascule {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--ligne);
  border-radius: 2px;
  cursor: pointer;
}
.bascule i {
  display: block; width: 17px; height: 1.5px; background: var(--encre);
  position: relative; transition: background .2s ease;
}
.bascule i::before, .bascule i::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px;
  background: var(--encre); transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
.bascule i::before { top: -5px; }
.bascule i::after  { top:  5px; }
.bascule[aria-expanded="true"] i { background: transparent; }
.bascule[aria-expanded="true"] i::before { transform: translateY(5px) rotate(45deg); }
.bascule[aria-expanded="true"] i::after  { transform: translateY(-5px) rotate(-45deg); }

/* --- Bandeau d'ouverture ------------------------------------------------- */

.ouverture {
  position: relative;
  background: var(--encre);
  color: var(--givre-2);
  overflow: hidden;
  padding: clamp(72px, 10vw, 132px) 0 clamp(60px, 8vw, 104px);
}
.ouverture::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(120,170,205,.10) 0 1px, transparent 1px 100%) 0 0 / 100% 72px,
    radial-gradient(90% 70% at 85% 0%, rgba(88,146,190,.30), transparent 60%);
  pointer-events: none;
}
.ouverture .enveloppe { position: relative; z-index: 1; }

.ouverture__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.ouverture h1 {
  font-size: var(--t-xxl);
  color: var(--blanc);
  max-width: 13ch;
  margin-bottom: .3em;
}
.ouverture h1 em {
  font-style: normal;
  color: var(--azur-2);
}
.ouverture__chapeau {
  font-size: var(--t-m);
  color: rgba(232,240,245,.78);
  max-width: 50ch;
  margin-bottom: 34px;
}

/* Panneau technique */
.panneau {
  border: 1px solid var(--ligne-nuit);
  border-radius: 3px;
  background: rgba(255,255,255,.03);
  overflow: hidden;
}
.panneau__tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--ligne-nuit);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brume);
}
.panneau__voyant {
  display: inline-flex; align-items: center; gap: 7px;
}
.panneau__voyant::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--azur-2);
  box-shadow: 0 0 0 0 rgba(125,184,230,.5);
  animation: pouls 2.6s ease-out infinite;
}
@keyframes pouls {
  0%   { box-shadow: 0 0 0 0 rgba(125,184,230,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(125,184,230,0); }
  100% { box-shadow: 0 0 0 0 rgba(125,184,230,0); }
}

.rangee {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 19px 20px;
  border-bottom: 1px solid var(--ligne-nuit);
}
.rangee:last-child { border-bottom: 0; }
.rangee__temp {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--azur-2);
  white-space: nowrap;
}
.rangee__nom { font-size: .93rem; font-weight: 600; color: var(--blanc); }
.rangee__detail { font-size: .82rem; color: rgba(232,240,245,.62); }

/* --- Ruban d'enseignes --------------------------------------------------- */

.ruban {
  border-bottom: 1px solid var(--ligne);
  background: var(--blanc);
  padding: 34px 0 38px;
  overflow: hidden;
}
.ruban__titre {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ardoise-2);
  text-align: center;
  margin: 0 0 26px;
}
.ruban__piste {
  display: flex;
  width: max-content;
  animation: defile 46s linear infinite;
}
.ruban:hover .ruban__piste { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-50%); } }

.ruban__lot { display: flex; align-items: center; flex: none; }

.enseigne {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 clamp(20px, 2.8vw, 40px);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .01em;
  color: var(--encre);
  white-space: nowrap;
  opacity: .82;
  transition: opacity .25s ease;
}
.enseigne:hover { opacity: 1; }
.enseigne img {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

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

.manifeste {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--encre);
  max-width: 20ch;
  margin: 0;
}
.manifeste em { font-style: normal; font-weight: 500; color: var(--ardoise); }

/* --- Tableau des gammes -------------------------------------------------- */

.registre { border-top: 1px solid var(--ligne); }

.entree {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--ligne);
  align-items: start;
  transition: background .25s ease;
}
.entree:hover { background: var(--givre); }
.entree__num {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--brume);
  padding-top: 5px;
}
.entree__titre { margin-bottom: 6px; font-size: 1.16rem; }
.entree__temp {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--azur);
}
.entree__liste {
  columns: 2;
  column-gap: 32px;
  font-size: .92rem;
  color: var(--ardoise);
  margin: 0;
  padding-left: 1.05em;
}
.entree__liste li { break-inside: avoid; }

/* --- Cellules (grille au filet) ------------------------------------------ */

.cellules {
  display: grid;
  gap: 1px;
  background: var(--ligne);
  border: 1px solid var(--ligne);
}
.cellules--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cellules--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cellules--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.cellule {
  background: var(--blanc);
  padding: clamp(24px, 3vw, 34px);
  transition: background .25s ease;
}
.cellule:hover { background: var(--givre); }
.cellule__cle {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--azur);
  display: block;
  margin-bottom: 16px;
}
.cellule p { color: var(--ardoise); font-size: .94rem; margin-bottom: 0; }
.cellule ul { color: var(--ardoise); font-size: .9rem; margin: 12px 0 0; }

.bloc--nuit .cellules { background: var(--ligne-nuit); border-color: var(--ligne-nuit); }
.bloc--nuit .cellule { background: var(--encre); }
.bloc--nuit .cellule:hover { background: var(--encre-2); }
.bloc--nuit .cellule h3 { color: var(--blanc); }
.bloc--nuit .cellule p, .bloc--nuit .cellule ul { color: rgba(232,240,245,.74); }
.bloc--nuit .cellule__cle { color: var(--azur-2); }

.bloc--givre .cellules { background: var(--ligne); }
.bloc--givre .cellule { background: var(--blanc); }
.bloc--givre .cellule:hover { background: var(--givre-2); }

/* --- Repères chiffrés ---------------------------------------------------- */

.compteurs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  background: var(--ligne-nuit);
  border-block: 1px solid var(--ligne-nuit);
}
.compteur { background: var(--encre); padding: 30px clamp(18px, 2.4vw, 30px); }
.compteur__valeur {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--azur-2);
  line-height: 1.1;
  margin-bottom: 8px;
}
.compteur__note {
  font-size: .84rem;
  color: rgba(232,240,245,.66);
  margin: 0;
}

/* --- Parcours (chaîne du froid) ------------------------------------------ */

.parcours { display: grid; gap: 0; counter-reset: pas; }
.pas {
  counter-increment: pas;
  display: grid;
  grid-template-columns: 76px minmax(0,1fr) minmax(0,1.1fr);
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(22px, 2.6vw, 30px) 0;
  border-top: 1px solid var(--ligne);
  align-items: baseline;
}
.parcours .pas:last-child { border-bottom: 1px solid var(--ligne); }
.pas::before {
  content: counter(pas, decimal-leading-zero);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: .82rem;
  color: var(--brume);
  letter-spacing: .08em;
}
.pas h3 { margin-bottom: 0; }
.pas p { color: var(--ardoise); font-size: .94rem; margin: 0; }

.sur-nuit .pas { border-color: var(--ligne-nuit); }
.sur-nuit .parcours .pas:last-child { border-bottom-color: var(--ligne-nuit); }
.sur-nuit .pas p { color: rgba(232,240,245,.72); }

/* --- Bandeau final ------------------------------------------------------- */

.appel {
  background: var(--encre);
  color: var(--givre-2);
  padding: clamp(56px, 7vw, 92px) 0;
}
.appel__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.appel h2 { color: var(--blanc); font-size: var(--t-l); margin-bottom: .3em; }
.appel p { color: rgba(232,240,245,.76); margin-bottom: 0; }

/* --- Formulaire ---------------------------------------------------------- */

.form { display: grid; gap: 20px; }
.case { display: grid; gap: 7px; }
.case label {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ardoise);
}
.case input, .case select, .case textarea {
  font-family: var(--sans);
  font-size: .97rem;
  color: var(--encre);
  padding: 13px 15px;
  border: 1px solid var(--ligne);
  border-radius: 2px;
  background: var(--blanc);
  width: 100%;
  transition: border-color .2s ease;
}
.case input:hover, .case select:hover, .case textarea:hover { border-color: var(--brume); }
.case textarea { min-height: 148px; resize: vertical; }
.case--paire { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.aide { font-family: var(--sans); font-size: .82rem; color: var(--ardoise-2); }
.piege { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.retour {
  padding: 13px 16px;
  border-radius: 2px;
  font-size: .92rem;
  display: none;
}
.retour.visible { display: block; }
.retour--ok { background: #eaf4ee; color: #1c5936; border: 1px solid #bcdcc8; }
.retour--ko { background: #fbeeed; color: #8a2c24; border: 1px solid #eec5c1; }

/* --- Coordonnées --------------------------------------------------------- */

.fiche { display: grid; gap: 26px; }
.fiche__cle {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ardoise-2);
  margin: 0 0 5px;
}
.fiche__valeur { font-size: 1.02rem; color: var(--encre); margin: 0; }
.fiche__valeur a { border-bottom: 1px solid var(--ligne); padding-bottom: 1px; }
.fiche__valeur a:hover { border-color: var(--azur); }

.encadre {
  border: 1px solid var(--ligne);
  border-left: 2px solid var(--azur);
  border-radius: 2px;
  padding: 26px 28px;
  background: var(--givre);
}
.encadre ul { margin-bottom: 0; color: var(--ardoise); font-size: .93rem; }

/* --- Pages de texte ------------------------------------------------------ */

.texte { max-width: var(--etroit); }
.texte h1 { margin-bottom: .25em; }
.texte h2 { font-family: var(--sans); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; margin-top: 2.3em; }
.texte h3 { font-size: 1rem; margin-top: 1.7em; }
.texte p, .texte li { font-size: .97rem; color: var(--encre-2); }
.texte .date { font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .07em; color: var(--ardoise-2); text-transform: uppercase; }

/* --- Pied ---------------------------------------------------------------- */

.pied {
  background: var(--encre);
  color: rgba(232,240,245,.68);
  padding: clamp(52px, 6vw, 78px) 0 26px;
  font-size: .91rem;
}
.pied__grille {
  display: grid;
  grid-template-columns: minmax(0,1.7fr) repeat(3, minmax(0,1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 42px;
  border-bottom: 1px solid var(--ligne-nuit);
}
.pied h4 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--brume);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 10px; }
.pied a { transition: color .18s ease; }
.pied a:hover { color: var(--blanc); }
.pied .logo__texte { color: var(--blanc); }
.pied__mot { margin: 20px 0 0; max-width: 38ch; }
.pied__bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .02em;
  color: rgba(232,240,245,.45);
}

/* --- Apparition au défilement -------------------------------------------- */

.revele {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.revele.vu { opacity: 1; transform: none; }

/* --- Réactivité ---------------------------------------------------------- */

@media (max-width: 1000px) {
  .ouverture__grille,
  .appel__grille,
  .duo { grid-template-columns: 1fr; }
  .cellules--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .compteurs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .entree { grid-template-columns: 60px 1fr; }
  .entree__liste { grid-column: 1 / -1; padding-left: 60px; }
  .pas { grid-template-columns: 54px 1fr; }
  .pas p { grid-column: 2; }

  .menu {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--blanc);
    border-bottom: 1px solid var(--ligne);
    padding: 4px var(--marge) 22px;
    display: none;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .menu.ouvert { display: flex; }
  .menu a { padding: 15px 0; border-bottom: 1px solid var(--ligne); font-size: 1rem; }
  .menu a::after { display: none; }
  .bascule { display: flex; }
  .barre__fin .bouton { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .cellules--2, .cellules--3, .cellules--4 { grid-template-columns: 1fr; }
  .case--paire { grid-template-columns: 1fr; }
  .entree__liste { columns: 1; padding-left: 60px; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .ouverture h1 { max-width: none; }
}

@media (max-width: 460px) {
  .pied__grille { grid-template-columns: 1fr; }
  .entree { grid-template-columns: 1fr; }
  .entree__num { display: none; }
  .entree__liste { padding-left: 1.05em; }
  .pas { grid-template-columns: 1fr; }
  .pas::before { display: none; }
  .pas p { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .revele { opacity: 1; transform: none; }
  .ruban__piste { animation: none; }
}

@media print {
  .barre, .appel, .ruban, .pied { display: none; }
  body { color: #000; font-size: 12pt; }
}

/* --- Assistant en ligne --------------------------------------------------- */

.assistant {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--sans);
}

.assistant__bulle {
  order: 2;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--encre);
  color: var(--blanc);
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(8, 24, 43, .3);
  transition: background .2s ease, transform .2s cubic-bezier(.2,.7,.3,1);
}
.assistant__bulle:hover { background: var(--encre-3); transform: translateY(-2px); }
.assistant__icone { width: 25px; height: 25px; }
.assistant__icone--fermer { display: none; }
.assistant.est-ouvert .assistant__icone--ouvrir { display: none; }
.assistant.est-ouvert .assistant__icone--fermer { display: block; }

/* Impératif : sans cette règle, le display:flex ci-dessous écrase le
   [hidden]{display:none} du navigateur et le panneau ne se ferme jamais. */
.assistant__panneau[hidden] { display: none; }

.assistant__panneau {
  order: 1;
  width: min(390px, calc(100vw - 28px));
  max-height: min(620px, calc(100dvh - 110px));
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(8, 24, 43, .22);
  animation: assistant-entree .22s cubic-bezier(.2,.7,.3,1);
}
@keyframes assistant-entree {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.assistant__tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: var(--encre);
  color: var(--blanc);
}
.assistant__titre {
  margin: 0;
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.assistant__etat {
  margin: 3px 0 0;
  font-size: .74rem;
  color: rgba(232, 240, 245, .68);
  line-height: 1.35;
}
.assistant__fermer {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--ligne-nuit);
  border-radius: 3px;
  color: var(--blanc);
  cursor: pointer;
  transition: background .18s ease;
}
.assistant__fermer:hover { background: rgba(255, 255, 255, .1); }

.assistant__fil {
  flex: 1 1 auto;
  min-height: 150px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--givre);
}

.assistant__message {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.55;
}
.assistant__message p { margin: 0; }
.assistant__message p + p { margin-top: .6em; }

.assistant__message--agent {
  align-self: flex-start;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-bottom-left-radius: 3px;
  color: var(--encre-2);
}
.assistant__message--client {
  align-self: flex-end;
  background: var(--encre);
  border-bottom-right-radius: 3px;
  color: var(--blanc);
}
.assistant__message--erreur {
  background: #fbeeed;
  border-color: #eec5c1;
  color: #8a2c24;
}
.assistant__message--attente {
  color: var(--ardoise-2);
  letter-spacing: .18em;
  animation: assistant-pouls 1.1s ease-in-out infinite;
}
@keyframes assistant-pouls { 50% { opacity: .35; } }

.assistant__pistes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 18px;
  background: var(--givre);
}
.assistant__pistes:not(:empty) { padding-bottom: 16px; }
.assistant__piste {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--encre-2);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, background .18s ease;
}
.assistant__piste:hover { border-color: var(--azur); background: var(--givre-2); }

.assistant__saisie {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--ligne);
  background: var(--blanc);
}
.assistant__label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.assistant__saisie textarea {
  flex: 1 1 auto;
  font-family: var(--sans);
  font-size: .9rem;
  line-height: 1.45;
  color: var(--encre);
  padding: 10px 12px;
  border: 1px solid var(--ligne);
  border-radius: 4px;
  resize: none;
  max-height: 120px;
  transition: border-color .18s ease;
}
.assistant__saisie textarea:hover { border-color: var(--brume); }
.assistant__saisie button {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 4px;
  background: var(--encre);
  color: var(--blanc);
  cursor: pointer;
  transition: background .18s ease;
}
.assistant__saisie button:hover:not(:disabled) { background: var(--encre-3); }
.assistant__saisie button:disabled { opacity: .45; cursor: default; }

.assistant__pied {
  margin: 0;
  padding: 0 14px 13px;
  font-size: .7rem;
  line-height: 1.45;
  color: var(--ardoise-2);
  background: var(--blanc);
}
.assistant__pied a { border-bottom: 1px solid var(--ligne); }
.assistant__pied a:hover { border-color: var(--azur); }

@media (max-width: 460px) {
  .assistant__panneau { max-height: calc(100dvh - 96px); }
  .assistant__bulle { width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .assistant__panneau { animation: none; }
  .assistant__message--attente { animation: none; }
}

@media print { .assistant { display: none; } }

/* --- Visuels -------------------------------------------------------------- */

.visuel {
  position: relative;
  overflow: hidden;
  background: var(--encre-2);
  border-radius: 4px;
}
.visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}

/* Teinte de marque : unifie des photos d'origines différentes. */
.visuel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
              rgba(8, 24, 43, .34) 0%,
              rgba(22, 55, 95, .16) 45%,
              rgba(125, 184, 230, .10) 100%);
  pointer-events: none;
}
.visuel--sobre::after { background: rgba(8, 24, 43, .12); }
.visuel--nu::after { display: none; }

.visuel--16-10 { aspect-ratio: 16 / 10; }
.visuel--4-3   { aspect-ratio: 4 / 3; }
.visuel--4-5   { aspect-ratio: 4 / 5; }
.visuel--3-2   { aspect-ratio: 3 / 2; }
.visuel--21-9  { aspect-ratio: 21 / 9; }

a:hover .visuel img,
.carte-visuelle:hover .visuel img,
.entree:hover .visuel img { transform: scale(1.045); }

/* --- Ouverture illustrée -------------------------------------------------- */

.ouverture--photo { padding: 0; }
.ouverture--photo::before { display: none; }

.ouverture__fond {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ouverture__fond img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ouverture__voile {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 18, 32, .93) 0%, rgba(6, 18, 32, .78) 42%,
                    rgba(8, 30, 52, .52) 72%, rgba(12, 40, 68, .42) 100%),
    linear-gradient(180deg, rgba(6, 18, 32, .55) 0%, transparent 28%,
                    transparent 72%, rgba(6, 18, 32, .5) 100%);
}
.ouverture--photo .enveloppe {
  position: relative;
  z-index: 2;
  padding-block: clamp(84px, 11vw, 148px);
}

/* Panneau vitré posé sur la photo */
.ouverture--photo .panneau {
  background: rgba(9, 26, 45, .58);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: rgba(255, 255, 255, .18);
}

/* --- Carte illustrée ------------------------------------------------------ */

.grille-visuelle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.carte-visuelle {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 5px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s cubic-bezier(.2,.7,.3,1);
}
.carte-visuelle:hover {
  border-color: var(--brume);
  box-shadow: 0 12px 30px rgba(8, 24, 43, .09);
  transform: translateY(-3px);
}
.carte-visuelle__corps { padding: 22px 24px 26px; }
.carte-visuelle__temp {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--azur);
  margin-bottom: 9px;
}
.carte-visuelle h3 { margin-bottom: .4em; font-size: 1.08rem; }
.carte-visuelle p { margin: 0; font-size: .91rem; color: var(--ardoise); }

/* --- Bloc mixte texte / image --------------------------------------------- */

.mixte {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 68px);
  align-items: center;
}
.mixte--inverse .mixte__texte { order: 2; }

.bandeau-photo {
  position: relative;
  min-height: clamp(240px, 34vw, 420px);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.bandeau-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.bandeau-photo__voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 32, .25) 0%, rgba(6, 18, 32, .82) 100%);
}
.bandeau-photo .enveloppe {
  position: relative;
  z-index: 2;
  padding-block: clamp(28px, 4vw, 52px);
}
.bandeau-photo h2 { color: var(--blanc); margin-bottom: .25em; }
.bandeau-photo p { color: rgba(232, 240, 245, .82); margin: 0; max-width: 56ch; }

/* Appel à l'action illustré */
.appel--photo { position: relative; overflow: hidden; background: var(--encre); }
.appel--photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.appel--photo .voile {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 18, 32, .94) 0%, rgba(6, 18, 32, .82) 55%,
              rgba(10, 34, 58, .66) 100%);
}
.appel--photo .enveloppe { position: relative; z-index: 2; }

@media (max-width: 1000px) {
  .grille-visuelle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mixte { grid-template-columns: 1fr; }
  .mixte--inverse .mixte__texte { order: 0; }
}
@media (max-width: 640px) {
  .grille-visuelle { grid-template-columns: 1fr; }
}

/* --- En-tête de page illustré --------------------------------------------- */

.entete-photo {
  position: relative;
  overflow: hidden;
  background: var(--encre);
}
.entete-photo > picture img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.entete-photo__voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 18, 32, .95) 0%, rgba(6, 18, 32, .8) 52%,
              rgba(10, 34, 58, .58) 100%);
}
.entete-photo .enveloppe {
  position: relative;
  z-index: 2;
  padding-block: clamp(58px, 7.5vw, 104px);
}
.entete-photo h1 { color: var(--blanc); }
.entete-photo .tete p { color: rgba(232, 240, 245, .8); }
.entete-photo .etiquette { color: var(--brume); }
.entete-photo .etiquette::before { background: var(--azur-2); }

/* Vignette dans une entrée du registre */
.entree__visuel {
  margin-bottom: 14px;
  max-width: 300px;
}
@media (max-width: 460px) { .entree__visuel { max-width: none; } }
