/* ===========================================================================
   SCALMAR — Feuille de styles principale
   ---------------------------------------------------------------------------
   Organisation du fichier :
     1. Polices
     2. Variables (couleurs, typographie, espacements)
     3. Base et accessibilite
     4. Elements reutilisables (boutons, titres, graduation)
     5. Structure (bandeau, en-tete, pied de page)
     6. Sections de la page d'accueil
     7. Responsive

   Principe des couleurs : le site alterne des sections SOMBRES, qui montrent
   le travail, et des sections CLAIRES, qui expliquent la technique. Le rouge
   n'est jamais decoratif — il signale uniquement une action ou une mesure.
   =========================================================================== */

/* --- 1. Polices ---------------------------------------------------------- */
/* Auto-hebergees et reduites aux caracteres francais (voir build_fonts.py).
   font-display: swap evite le texte invisible pendant le chargement.        */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/Archivo-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('/fonts/Barlow-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('/fonts/Barlow-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/JetBrainsMono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- 2. Variables -------------------------------------------------------- */

:root {
  /* Couleurs de marque */
  /* Trois declinaisons du rouge, pour une raison d'accessibilite mesuree :
     le rouge exact du logo place derriere du texte blanc ne donne que 4,42:1,
     soit juste en dessous du seuil WCAG de 4,5:1. On conserve donc le rouge de
     marque pour les traits et les aplats decoratifs, et on utilise une nuance
     imperceptiblement plus foncee des qu'il porte du texte. */
  --rouge: #ec1c24;          /* rouge exact du logo — graphismes, graduations */
  --rouge-action: #e01a22;   /* fonds portant du texte blanc (4,8:1) */
  --rouge-fonce: #c8161d;    /* survol des boutons */
  --rouge-vif: #ff4a4f;      /* petits textes rouges sur fond sombre (5,8:1) */

  /* Surfaces sombres */
  --noir-atelier: #0e0f11;   /* fond principal, jamais du noir pur */
  --acier: #16181b;          /* sections alternees */
  --acier-clair: #1e2125;    /* cartes posees sur le fond sombre */
  --bordure-sombre: #2b2f34;

  /* Surfaces claires */
  --papier: #f4f5f6;         /* sections techniques */
  --blanc: #ffffff;
  --bordure-claire: #dfe1e4;

  /* Textes */
  --texte-inverse: #f2f3f4;      /* sur fond sombre (15,8:1) */
  --texte-inverse-doux: #a8adb3; /* sur fond sombre (8,6:1) */
  --texte: #14161a;              /* sur fond clair */
  --texte-doux: #55595f;         /* sur fond clair (6,4:1) */
  --graduation: #6b6e73;         /* traits de graduation, jamais du texte */

  /* Typographie */
  --titre: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --corps: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --mesure: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  /* Rythme vertical et largeurs */
  --largeur-max: 1240px;
  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  --rayon: 6px;
  --transition: 200ms ease;
}

/* --- 3. Base et accessibilite -------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--corps);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* Le focus reste toujours visible : exigence d'accessibilite, et confort
   reel pour qui navigue au clavier. */
:focus-visible {
  outline: 3px solid var(--rouge);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Lien d'evitement pour les lecteurs d'ecran et la navigation clavier. */
.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--rouge);
  color: #fff;
  font-weight: 600;
}

.evitement:focus {
  left: 0;
}

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

/* Toute animation est desactivee si le visiteur l'a demande dans son systeme. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- 4. Elements reutilisables ------------------------------------------- */

.contenu {
  width: 100%;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* Surtitre : petite ligne rouge en capitales espacees qui annonce la section */
.surtitre {
  margin: 0 0 0.9rem;
  font-family: var(--mesure);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rouge);
}

/* Sur fond sombre, le rouge du logo tombe a 4,34:1 : on passe a la nuance
   claire, seule conforme pour un texte de 11 px. */
.section--sombre .surtitre,
.section--acier .surtitre,
.hero .surtitre {
  color: var(--rouge-vif);
}

.titre-section {
  margin: 0;
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.intro {
  max-width: 58ch;
  margin: 1.1rem 0 0;
  color: var(--texte-doux);
}

.section--sombre .intro {
  color: var(--texte-inverse-doux);
}

/* Valeurs metrologiques : toujours en chasse fixe, comme sur l'afficheur
   d'un instrument. C'est le fil conducteur typographique du site. */
.mesure {
  font-family: var(--mesure);
  font-variant-numeric: tabular-nums;
}

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--rayon);
  font-family: var(--titre);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
}

.bouton:active {
  transform: translateY(1px);
}

.bouton--primaire {
  background: var(--rouge-action);
  color: #fff;
}

.bouton--primaire:hover {
  background: var(--rouge-fonce);
}

.bouton--urgence {
  background: transparent;
  border-color: var(--rouge);
  color: var(--rouge);
}

.bouton--urgence:hover {
  background: var(--rouge);
  color: #fff;
}

.section--sombre .bouton--urgence,
.hero .bouton--urgence {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.section--sombre .bouton--urgence:hover,
.hero .bouton--urgence:hover {
  background: #fff;
  border-color: #fff;
  color: var(--noir-atelier);
}

.bouton--sombre {
  background: var(--noir-atelier);
  color: #fff;
}

.bouton--sombre:hover {
  background: var(--rouge);
}

/* Action secondaire sur fond clair : présente sans concurrencer le bouton
   rouge, qui reste l'action principale de chaque écran. */
.bouton--secondaire {
  background: transparent;
  border-color: var(--bordure-claire);
  color: var(--texte);
}

.bouton--secondaire:hover {
  border-color: var(--noir-atelier);
  background: var(--noir-atelier);
  color: #fff;
}

/* Graduation : le motif signature du site. Traits longs rouges tous les 48 px,
   traits courts gris tous les 12 px — la lecture d'une regle graduee. */
.graduation {
  height: 14px;
  background-color: var(--noir-atelier);
  background-image:
    repeating-linear-gradient(to right, var(--rouge) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(to right, var(--graduation) 0 1px, transparent 1px 12px);
  background-size: 100% 100%, 100% 52%;
  background-repeat: repeat-x;
  background-position: 0 0, 0 0;
}

.graduation--claire {
  background-color: var(--papier);
}

/* Sections */
.section {
  padding-block: var(--section-y);
}

.section--sombre {
  background: var(--noir-atelier);
  color: var(--texte-inverse);
}

.section--acier {
  background: var(--acier);
  color: var(--texte-inverse);
}

.section--papier {
  background: var(--papier);
}

.entete-section {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

/* Apparition au defilement — volontairement discrete (12 px, 350 ms).
   La regle est conditionnee a la classe .js posee par le document : sans
   JavaScript, rien n'est masque. Un contenu invisible par defaut serait
   invisible pour Google et pour les lecteurs d'ecran. */
.js .apparait {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 350ms ease, transform 350ms ease;
}

.js .apparait.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .apparait {
    opacity: 1;
    transform: none;
  }
}

/* --- 5. Structure -------------------------------------------------------- */

/* Bandeau utilitaire : l'agrement ministeriel est la premiere chose lue.
   C'est notre principal signal de credibilite, il ne descend jamais plus bas. */
.bandeau {
  background: #000;
  color: var(--texte-inverse-doux);
  font-family: var(--mesure);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

.bandeau__interieur {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.55rem;
}

.bandeau__groupe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: center;
}

.bandeau a {
  text-decoration: none;
  transition: color var(--transition);
}

.bandeau a:hover {
  color: var(--rouge-vif);
}

.bandeau__agrement strong {
  color: var(--texte-inverse);
  font-weight: 500;
}

.bandeau__urgence {
  color: var(--rouge-vif);
}

/* En-tete */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--noir-atelier);
  border-bottom: 1px solid var(--bordure-sombre);
  transition: box-shadow var(--transition);
}

.entete--defile {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.entete__logo {
  flex: none;
  display: block;
}

.entete__logo img {
  height: 46px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav__lien {
  position: relative;
  font-family: var(--titre);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texte-inverse);
  padding-block: 0.4rem;
  transition: color var(--transition);
}

.nav__lien::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--rouge);
  transition: width var(--transition);
}

.nav__lien:hover,
.nav__lien[aria-current='page'] {
  color: #fff;
}

.nav__lien:hover::after,
.nav__lien[aria-current='page']::after {
  width: 100%;
}

/* Le bouton present dans la navigation ne sert qu'au menu mobile : sur grand
   ecran, les actions sont deja affichees a droite de l'en-tete. */
.nav .bouton {
  display: none;
}

.entete__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.entete__actions .bouton {
  padding: 0.7rem 1.15rem;
  font-size: 0.78rem;
}

/* Bouton menu mobile */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--bordure-sombre);
  border-radius: var(--rayon);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--texte-inverse);
  transition: transform var(--transition), opacity var(--transition);
}

.burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Pied de page */
.pied {
  background: #000;
  color: var(--texte-inverse-doux);
  font-size: 0.9375rem;
}

.pied__grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.pied__logo {
  height: 54px;
  width: auto;
  margin-bottom: 1.1rem;
}

.pied h2 {
  margin: 0 0 1rem;
  font-family: var(--titre);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-inverse);
}

.pied ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.pied a {
  text-decoration: none;
  transition: color var(--transition);
}

.pied a:hover {
  color: var(--rouge-vif);
}

.pied__bas {
  border-top: 1px solid #1a1a1a;
  padding-block: 1.4rem;
  font-family: var(--mesure);
  font-size: 0.6875rem;
  line-height: 1.8;
  color: #6b6e73;
}

.pied__legal {
  margin: 0.35rem 0 0;
}

/* Bouton WhatsApp flottant — canal de contact numero un au Maroc. */
.whatsapp {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition);
}

.whatsapp:hover {
  transform: scale(1.07);
}

.whatsapp svg {
  width: 28px;
  height: 28px;
}

/* --- 6. Sections de la page d'accueil ------------------------------------ */

/* Hero */
.hero {
  position: relative;
  background: var(--noir-atelier);
  color: var(--texte-inverse);
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

/* Voile assombrissant : garantit le contraste du texte quelle que soit la
   photo placee derriere. */
.hero__voile {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(14, 15, 17, 0.96) 0%, rgba(14, 15, 17, 0.82) 45%, rgba(14, 15, 17, 0.55) 100%),
    linear-gradient(to top, rgba(14, 15, 17, 0.9) 0%, transparent 45%);
}

.hero__interieur {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero__titre {
  margin: 0;
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero__titre em {
  display: block;
  font-style: normal;
  color: var(--rouge);
}

.hero__accroche {
  max-width: 46ch;
  margin: 1.4rem 0 0;
  font-size: 1.0625rem;
  color: var(--texte-inverse-doux);
}

.hero__accroche strong {
  color: #fff;
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Verificateur de conformite — l'element signature du site.
   Le visiteur n'arrive pas sur une affiche mais sur un outil. */
.verificateur {
  background: var(--acier-clair);
  border: 1px solid var(--bordure-sombre);
  border-radius: 10px;
  padding: 1.5rem;
}

.verificateur__titre {
  margin: 0;
  font-family: var(--titre);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
}

.verificateur__note {
  margin: 0.35rem 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--texte-inverse-doux);
}

.champ {
  margin-bottom: 0.85rem;
}

.champ label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--mesure);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texte-inverse-doux);
}

.champ select,
.champ input {
  width: 100%;
  min-height: 44px;
  padding: 0 0.75rem;
  font-family: var(--corps);
  font-size: 0.9375rem;
  color: var(--texte-inverse);
  background: var(--noir-atelier);
  border: 1px solid var(--bordure-sombre);
  border-radius: var(--rayon);
  transition: border-color var(--transition);
}

.champ select:hover,
.champ input:hover {
  border-color: #3d434a;
}

.verificateur .bouton {
  width: 100%;
  margin-top: 0.35rem;
}

.resultat {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--bordure-sombre);
}

.resultat__etat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--titre);
  font-size: 1rem;
  font-weight: 700;
}

.resultat__etat--retard {
  color: var(--rouge-vif);
}

.resultat__etat--proche {
  color: #f0a020;
}

.resultat__etat--ok {
  color: #4ac26b;
}

.resultat__texte {
  margin: 0.5rem 0 0.9rem;
  font-size: 0.875rem;
  color: var(--texte-inverse-doux);
}

.resultat__texte strong {
  color: #fff;
  font-weight: 600;
}

.resultat__ligne {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.8125rem;
  color: var(--texte-inverse-doux);
}

.resultat__valeur {
  color: var(--texte-inverse);
}

/* Bandeau de preuves sous le hero */
.preuves {
  background: #000;
}

.preuves__liste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.5rem;
  margin: 0;
  padding-block: 1rem;
  list-style: none;
  font-family: var(--mesure);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-inverse-doux);
}

.preuves__liste li::before {
  content: '—';
  margin-right: 0.6rem;
  color: var(--rouge);
}

/* Grilles de cartes */
.grille {
  display: grid;
  gap: 1.15rem;
}

.grille--3 {
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
}

.grille--4 {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
}

.carte {
  display: block;
  padding: 1.6rem;
  background: var(--blanc);
  border: 1px solid var(--bordure-claire);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}

.carte:hover {
  border-color: var(--rouge);
  transform: translateY(-3px);
}

.carte h3 {
  margin: 0 0 0.5rem;
  font-family: var(--titre);
  font-size: 1.0625rem;
  font-weight: 700;
}

.carte p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--texte-doux);
}

.carte__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: var(--rayon);
  background: rgba(236, 28, 36, 0.09);
  color: var(--rouge);
}

.carte__icone svg {
  width: 22px;
  height: 22px;
}

/* Carte mise en avant : le contrat de maintenance, offre la plus rentable. */
.carte--phare {
  background: var(--noir-atelier);
  border-color: var(--noir-atelier);
  color: var(--texte-inverse);
}

.carte--phare p {
  color: var(--texte-inverse-doux);
}

.carte--phare .carte__icone,
.section--sombre .carte__icone,
.section--acier .carte__icone {
  background: rgba(236, 28, 36, 0.18);
  color: var(--rouge-vif);
}

.carte--phare:hover {
  border-color: var(--rouge);
}

.etiquette {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  background: var(--rouge-action);
  color: #fff;
  font-family: var(--mesure);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Bloc en deux colonnes texte / image */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.duo__media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.liste-points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.liste-points li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9375rem;
}

.liste-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 2px;
  background: var(--rouge);
}

/* Liste des produits */
.produits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--bordure-sombre);
  border: 1px solid var(--bordure-sombre);
  border-radius: 8px;
  overflow: hidden;
}

.produit {
  padding: 1.4rem;
  background: var(--acier);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--transition);
}

.produit:hover {
  background: var(--acier-clair);
}

/* Anneau de focus vers l'intérieur : le conteneur .produits a overflow:hidden
   pour ses coins arrondis, un anneau classique (vers l'extérieur) serait
   coupé net et ne laisserait qu'un fragment visible. Cas réel et fréquent :
   arrivée directe sur une carte via une ancre (/produits.html#crochet). */
.produit:focus-visible {
  outline-offset: -3px;
}

.produit__index {
  font-family: var(--mesure);
  font-size: 0.6875rem;
  color: var(--rouge-vif);
}

.produit h3 {
  margin: 0.5rem 0 0.35rem;
  font-family: var(--titre);
  font-size: 1rem;
  font-weight: 700;
}

.produit p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--texte-inverse-doux);
}

.produit__specs {
  margin-top: 0.6rem !important;
  font-size: 0.75rem !important;
  color: var(--rouge-vif) !important;
}

/* Cible d'ancre (arrivée depuis /produits.html#pont-bascule, etc.) : compense
   la hauteur de l'en-tête sticky pour que le titre ne soit pas coupé. */
main [id] {
  scroll-margin-top: 116px;
}

/* Secteurs */
.secteurs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.secteurs li {
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--bordure-claire);
  border-radius: 100px;
  background: var(--blanc);
  font-size: 0.9375rem;
}

/* Piège à robots : masqué sans display:none, que certains robots détectent. */
.piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Horaires d'ouverture */
.horaires {
  width: 100%;
  max-width: 24rem;
  margin: 1.5rem 0 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.horaires th,
.horaires td {
  padding: 0.55rem 0;
  text-align: left;
  font-weight: 400;
  border-bottom: 1px solid var(--bordure-sombre);
}

.horaires td {
  text-align: right;
  color: var(--texte-inverse);
}

.section--papier .horaires th,
.section--papier .horaires td {
  border-color: var(--bordure-claire);
}

/* Plan d'accès : ratio fixe pour réserver la place avant chargement de la
   carte, ce qui évite un décalage de mise en page (CLS). */
.carte-plan {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--bordure-sombre);
  background: var(--acier);
}

.carte-plan iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Galerie des realisations */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}

.realisation {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--acier);
}

.realisation img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.realisation figcaption {
  padding: 1.1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--texte-inverse-doux);
}

.realisation strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--titre);
  font-size: 0.9375rem;
  color: var(--texte-inverse);
}

/* Appel a l'action final */
.appel {
  background: var(--rouge-action);
  color: #fff;
  text-align: center;
}

.appel .titre-section {
  max-width: 20ch;
  margin-inline: auto;
}

/* Blanc plein plutot qu'une transparence : sur un fond rouge, la moindre
   opacite fait passer le texte sous le seuil de contraste. */
.appel p {
  max-width: 52ch;
  margin: 1rem auto 2rem;
  color: #fff;
}

.appel .bouton {
  background: #fff;
  color: var(--rouge);
}

.appel .bouton:hover {
  background: var(--noir-atelier);
  color: #fff;
}

/* --- 7. Responsive ------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero__interieur {
    grid-template-columns: 1fr;
  }

  .verificateur {
    max-width: 460px;
  }

  .pied__grille {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .burger {
    display: block;
  }

  .entete__actions {
    display: none;
  }

  /* Menu mobile : deploye sous l'en-tete, jamais en plein ecran fixe pour que
     le defilement de la page reste possible. */
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gouttiere) 1.5rem;
    background: var(--noir-atelier);
    border-bottom: 1px solid var(--bordure-sombre);
    display: none;
  }

  .nav[data-ouvert='true'] {
    display: flex;
  }

  .nav__lien {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--bordure-sombre);
    font-size: 0.9375rem;
  }

  .nav__lien::after {
    display: none;
  }

  .nav .bouton {
    display: inline-flex;
    margin-top: 1rem;
  }
}

@media (max-width: 640px) {
  .bandeau__interieur {
    justify-content: flex-start;
  }

  .pied__grille {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .realisation img {
    height: 210px;
  }

  .hero__actions .bouton {
    flex: 1 1 100%;
  }
}
