/* Serrurier Express 75 — feuille unique.
   Registre utilitaire : acier, noir, un seul jaune de sécurité.
   Display Oswald, texte Barlow. */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;1,400&family=Oswald:wght@400;500;600;700&display=swap');

/* ══ Jetons ═══════════════════════════════════════════════════════ */
:root {
  --noir:      #0B0C0D;
  --acier-900: #131517;
  --acier-800: #1B1E21;
  --acier-700: #23272B;
  --acier-600: #333940;
  --acier-500: #4C545C;
  --acier-400: #7A838C;
  --acier-300: #A6AEB6;
  --acier-200: #C9D0D6;
  --blanc:     #EEF1F3;
  --jaune:     #FFD100;

  --e1: 6px;  --e2: 14px; --e3: 24px; --e4: 40px;
  --e5: 64px; --e6: 104px; --e7: 168px;

  --t-mega:  clamp(2.9rem, 8.4vw, 7.5rem);
  --t-1:     clamp(2.1rem, 4.6vw, 3.9rem);
  --t-2:     clamp(1.45rem, 2.4vw, 2.1rem);
  --t-3:     clamp(1.1rem, 1.4vw, 1.35rem);
  --t-corps: clamp(1rem, 1.05vw, 1.1rem);
  --t-petit: 0.875rem;
  --t-micro: 0.6875rem;

  --bord: 1px solid var(--acier-700);
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--noir);
  color: var(--acier-200);
  font-family: 'Barlow', 'Trebuchet MS', sans-serif;
  font-size: var(--t-corps);
  line-height: 1.62;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .enorme, .titre, .sous-titre, .chiffre, .etiq, .menu a, .bouton {
  font-family: 'Oswald', 'Barlow', sans-serif;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ══ Grille 12 colonnes ═══════════════════════════════════════════ */
.zone { padding: 0 clamp(18px, 4vw, 56px); }

.dedans { max-width: 1420px; margin: 0 auto; }

.rang {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--e3);
  align-items: start;
}

/* Padding logique uniquement : le raccourci « padding » écraserait le retrait
   horizontal de .zone quand les deux classes sont sur la même section. */
.bloc { padding-block: var(--e6); }
.bloc-serre { padding-block: var(--e5); }

/* ══ Typographie ══════════════════════════════════════════════════ */
.enorme {
  font-size: var(--t-mega);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--blanc);
  margin: 0;
  overflow-wrap: break-word;
  hyphens: manual;
}

.titre {
  font-size: var(--t-1);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.008em;
  text-transform: uppercase;
  color: var(--blanc);
  margin: 0 0 var(--e3);
  overflow-wrap: break-word;
}

.sous-titre {
  font-size: var(--t-2);
  line-height: 1.14;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.004em;
  color: var(--blanc);
  margin: 0 0 var(--e2);
}

.etiq {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--acier-400);
  margin: 0 0 var(--e2);
}

.etiq-jaune { color: var(--jaune); }

.chapo {
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.5;
  color: var(--acier-200);
  margin: 0;
}

p { margin: 0 0 var(--e3); }
p:last-child { margin-bottom: 0; }

.mineur { color: var(--acier-400); font-size: var(--t-petit); line-height: 1.55; }

figure { margin: 0; }

.mt-2 { margin-top: var(--e2); }
.mt-3 { margin-top: var(--e3); }
.mt-4 { margin-top: var(--e4); }
.mt-5 { margin-top: var(--e5); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e3);
}

.filet {
  border: 0;
  border-top: var(--bord);
  margin: var(--e4) 0;
}

/* ══ En-tête ══════════════════════════════════════════════════════ */
.entete {
  position: relative;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--e2) var(--e4);
  max-width: 1420px;
  margin: 0 auto;
  padding: var(--e3) clamp(18px, 4vw, 56px) var(--e3);
  border-bottom: var(--bord);
}

.marque {
  font-family: 'Oswald', sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blanc);
  text-decoration: none;
}

.marque em { font-style: normal; color: var(--jaune); }

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e3);
  margin-right: 172px;
}

.menu a {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--acier-400);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.menu a:hover, .menu a:focus-visible { color: var(--blanc); border-bottom-color: var(--acier-500); }
.menu a[aria-current="page"] { color: var(--blanc); border-bottom-color: var(--acier-400); }

/* ══ Boutons ══════════════════════════════════════════════════════ */
.bouton {
  display: inline-block;
  padding: 15px 26px;
  background: var(--jaune);
  color: var(--noir);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--jaune);
}

.bouton:hover, .bouton:focus-visible { background: transparent; color: var(--jaune); }

.bouton-creux {
  display: inline-block;
  padding: 13px 24px;
  background: transparent;
  color: var(--blanc);
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--acier-600);
}

.bouton-creux:hover, .bouton-creux:focus-visible { border-color: var(--acier-300); color: var(--blanc); }

.lien-sec {
  font-family: 'Oswald', sans-serif;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--acier-300);
  text-decoration: none;
  border-bottom: 1px solid var(--acier-600);
  padding-bottom: 2px;
}

.lien-sec:hover, .lien-sec:focus-visible { color: var(--blanc); border-bottom-color: var(--acier-300); }

/* ══ Hero plein écran ═════════════════════════════════════════════ */
.plein-ecran {
  position: relative;
  min-height: 84svh;
  display: grid;
  align-items: end;
  padding: var(--e7) 0 var(--e5);
  overflow: hidden;
  isolation: isolate;
}

.fond {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.fond img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.fond::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,12,13,.86) 0%, rgba(11,12,13,.58) 38%, rgba(11,12,13,.94) 100%);
}

.plein-ecran > .zone { position: relative; z-index: 1; width: 100%; }

/* ══ Bandeau numéro ═══════════════════════════════════════════════ */
.bandeau-tel {
  border-top: 2px solid var(--jaune);
  border-bottom: var(--bord);
  background: var(--acier-900);
}

.bandeau-tel .rang { align-items: center; padding: var(--e4) 0; }

.numero {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.9rem, 4.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--blanc);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.numero:hover, .numero:focus-visible { color: var(--jaune); }

.numero-geant {
  font-size: clamp(2.2rem, 5.6vw, 5rem);
  letter-spacing: 0.01em;
}

strong { color: var(--blanc); font-weight: 600; }
.mineur strong { color: var(--acier-200); }
.zones sup { font-size: 0.68em; }

/* ══ Fiches, listes, tableaux ═════════════════════════════════════ */
.fiche {
  border: var(--bord);
  background: var(--acier-900);
  padding: var(--e3) var(--e3) var(--e4);
}

.fiche-nue {
  border-top: var(--bord);
  padding: var(--e3) 0 var(--e4);
}

.num-etape {
  font-family: 'Oswald', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--acier-700);
  display: block;
  margin-bottom: var(--e2);
}

.liste-nue { list-style: none; margin: 0; padding: 0; }

.liste-nue li {
  border-top: var(--bord);
  padding: var(--e2) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--e1) var(--e3);
  justify-content: space-between;
  align-items: baseline;
}

.liste-nue li:last-child { border-bottom: var(--bord); }

.liste-nue .quoi { flex: 1 1 60%; min-width: 0; color: var(--blanc); }
.liste-nue .combien {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--acier-200);
  white-space: nowrap;
}

.liste-puces { margin: 0; padding-left: 1.15em; }
.liste-puces li { margin-bottom: var(--e2); }
.liste-puces li::marker { color: var(--acier-500); }

.grille-tarifs {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.grille-tarifs caption {
  text-align: left;
  font-family: 'Oswald', sans-serif;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--acier-400);
  padding-bottom: var(--e2);
}

.grille-tarifs th, .grille-tarifs td {
  border-bottom: var(--bord);
  padding: var(--e2) var(--e2) var(--e2) 0;
  vertical-align: baseline;
}

.grille-tarifs thead th {
  font-family: 'Oswald', sans-serif;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--acier-400);
  border-bottom: 1px solid var(--acier-500);
}

.grille-tarifs tbody th {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  color: var(--blanc);
}

.grille-tarifs td.prix {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--acier-200);
  white-space: nowrap;
  text-align: right;
  padding-right: 0;
}

.grille-tarifs tbody tr:hover th, .grille-tarifs tbody tr:hover td { background: var(--acier-900); }

.enveloppe-table { overflow-x: auto; }

.zones {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--e1);
}

.zones li {
  border: 1px solid var(--acier-700);
  padding: 5px 11px;
  font-size: var(--t-petit);
  color: var(--acier-300);
  font-variant-numeric: tabular-nums;
}

/* ══ Cadres photo ═════════════════════════════════════════════════ */
.cadre { position: relative; overflow: hidden; background: var(--acier-800); }
.cadre img { width: 100%; height: 100%; object-fit: cover; }
.cadre-haut img { aspect-ratio: 3 / 4; }
.cadre-large img { aspect-ratio: 16 / 9; }

.legende {
  font-family: 'Oswald', sans-serif;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--acier-500);
  margin: var(--e2) 0 0;
}

/* ══ Sections claires (inversion) ═════════════════════════════════ */
.section-acier { background: var(--acier-900); border-top: var(--bord); border-bottom: var(--bord); }

/* ══ Pied ═════════════════════════════════════════════════════════ */
.pied {
  border-top: 2px solid var(--acier-700);
  background: var(--acier-900);
  padding: var(--e5) 0 var(--e4);
}

.pied a { text-decoration: none; }
.pied .menu { margin-right: 0; }

.pied-bas {
  margin-top: var(--e4);
  padding-top: var(--e3);
  border-top: var(--bord);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acier-500);
}

/* ══ LE VERROU QUI S'ALIGNE — dispositif signature ════════════════
   Coin haut-droit, famille « assemblage ». Cinq goupilles se calent une
   à une au fil de la lecture ; la cinquième libère la ligne de césure et
   le barillet pivote. */
.verrou {
  position: fixed;
  top: 92px;
  right: clamp(12px, 2vw, 28px);
  z-index: 40;
  width: 148px;
  padding: 10px 10px 8px;
  background: rgba(19, 21, 23, .96);
  border: 1px solid var(--acier-600);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px);
  pointer-events: none;
}

.verrou svg { width: 100%; height: auto; display: block; }

.v-corps { fill: var(--acier-800); stroke: var(--acier-600); stroke-width: 2; }
.v-chambre { fill: var(--noir); stroke: var(--acier-700); stroke-width: 1; }
.v-plug-fond { fill: var(--acier-600); stroke: var(--acier-400); stroke-width: 2; }
.v-keyway { fill: var(--noir); }
.v-cesure { stroke: var(--acier-500); stroke-width: 1.5; stroke-dasharray: 5 4; }
.v-goupille { fill: var(--acier-300); transition: fill .45s ease-out; }

.v-pile { transition: transform .55s cubic-bezier(.2, .85, .25, 1); }
.v-pile-1 { transform: translateY(14px); }
.v-pile-2 { transform: translateY(-12px); }
.v-pile-3 { transform: translateY(8px); }
.v-pile-4 { transform: translateY(-17px); }
.v-pile-5 { transform: translateY(10px); }
.v-pile.est-cale { transform: translateY(0); }
.v-pile.est-cale .v-goupille { fill: var(--jaune); }

.verrou-plug {
  transform-box: view-box;
  transform-origin: 60px 112px;
  transition: transform .8s cubic-bezier(.3, .9, .2, 1);
}

.verrou.est-ouvert .verrou-plug { transform: rotate(34deg); }
.verrou.est-ouvert .v-cesure { stroke: var(--jaune); stroke-dasharray: none; }

.verrou-pied {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--e1);
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--acier-700);
}

.verrou-mot {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--acier-300);
  margin: 0;
}

.verrou.est-ouvert .verrou-mot { color: var(--jaune); }

.verrou-compte {
  font-family: 'Oswald', sans-serif;
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  color: var(--acier-500);
  margin: 0;
}

/* ══ Révélations — états fermés sous .js ET mouvement autorisé ════ */
@media (prefers-reduced-motion: no-preference) {
  html.js .leve {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease-out, transform .6s cubic-bezier(.2, .85, .25, 1);
  }
  html.js .leve-g { transform: translateX(-26px); }
  html.js .leve-d { transform: translateX(26px); }
  html.js .leve.est-pose { opacity: 1; transform: none; }

  html.js .leve .cadre img { clip-path: inset(0 0 100% 0); transition: clip-path .85s cubic-bezier(.2, .85, .25, 1); }
  html.js .leve.est-pose .cadre img { clip-path: inset(0 0 0 0); }
}

/* En colonne unique, le décalage horizontal des états fermés déborderait de la
   fenêtre et ferait apparaître une barre de défilement : on repasse en vertical. */
@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  html.js .leve-g, html.js .leve-d { transform: translateY(22px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .v-pile, .verrou-plug, .v-goupille { transition: none; }
}

/* ══ Adaptations ══════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .entete { flex-direction: column; align-items: flex-start; gap: var(--e2); }
  .menu { margin-right: 172px; gap: var(--e2) var(--e3); }
  .verrou { top: 124px; }
}

@media (max-width: 900px) {
  :root { --e6: 72px; --e7: 104px; }
  .rang { gap: var(--e2); }
  .rang > * { grid-column: 1 / -1 !important; }
  .entete { padding-right: 104px; padding-bottom: var(--e2); }
  .menu { margin-right: 0; }
  .verrou { width: 88px; padding: 6px 6px 5px; top: 8px; right: 8px; }
  .verrou-mot { font-size: 0.66rem; letter-spacing: 0.08em; }
  .verrou-pied { display: block; }
  .verrou-compte { margin-top: 1px; }
  /* En colonne unique, le verrou est au-dessus de l'en-tête : les titres de haut
     de page passent dessous sans être poussés, sinon ils se brisent mal. */
  .degage-verrou { padding-right: 0; }
  .plein-ecran { padding-top: var(--e6); min-height: 74svh; }
  .numero { white-space: normal; }
}

@media (max-width: 560px) {
  .liste-nue li { display: block; }
  .liste-nue .combien { display: block; margin-top: 4px; }
}

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