/* =========================================================================
   ACTION MINI GRUE — feuille de style du site
   Studio Toinon, septembre 2026
   ========================================================================= */

/* --- 1. Jetons ---------------------------------------------------------- */

:root {
  /* Couleurs relevees au pixel sur le logo d'origine */
  --encre:          #14223A;
  --encre-profond:  #0B1526;
  --encre-voile:    rgba(20, 34, 58, .62);
  --jaune:          #FBC114;
  --jaune-chaud:    #E0A800;
  --blanc:          #FFFFFF;
  --craie:          #F3F4F6;
  --craie-ombre:    #E3E6EB;
  --gris:           #5C6675;
  --gris-clair:     #A8B0BC;
  --trait:          rgba(20, 34, 58, .14);
  --trait-sombre:   rgba(255, 255, 255, .16);

  /* Typo */
  --titre: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --texte: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Rythme */
  --large:    1280px;
  --etroit:   760px;
  --gouttiere: 24px;
  --section:  clamp(4.5rem, 9vw, 8rem);
  /* largeur du rail de navigation : nulle tant qu'il n'est pas affiché */
  --rail:     0px;

  --transition: 220ms cubic-bezier(.2, .7, .3, 1);
}

@media (min-width: 900px) {
  :root { --gouttiere: 40px; }
}

/* --- 2. Remise a zero --------------------------------------------------- */

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

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

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

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

/* --- 2 bis. Curseur araignée --------------------------------------------
   Clin d'œil au nom de la machine. Uniquement sur les appareils à pointeur
   précis : sur un écran tactile il n'y a pas de curseur, et sur un pointeur
   grossier (télécommande, manette) une forme fantaisiste gêne.

   Windows affiche les curseurs en 32 px, au-delà ils sont rejetés ou
   redimensionnés salement : les PNG sont donc rendus à cette taille. Le
   point actif est au centre de la bête, c'est elle le pointeur.

   Les champs de saisie gardent leur curseur d'origine : on ne remplace pas
   la barre de texte, qui indique où on écrit.
   ------------------------------------------------------------------- */

@media (pointer: fine) {
  body {
    cursor: url('../img/curseur-araignee.png') 16 16, auto;
  }
  a, button, summary, label, [role="button"], .bouton {
    cursor: url('../img/curseur-araignee-actif.png') 16 16, pointer;
  }
  input, textarea, select {
    cursor: auto;
  }
}

/* Le focus doit rester visible : le site s'utilise au clavier aussi. */
:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 3px;
  border-radius: 2px;
}

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--jaune);
  color: var(--encre);
  padding: .9rem 1.4rem;
  font-weight: 700;
}
.saut-contenu:focus { left: 0; }

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

/* --- 3. Mise en page ---------------------------------------------------- */

.zone {
  width: min(100% - var(--gouttiere) * 2, var(--large));
  margin-inline: auto;
}
.zone--etroite { width: min(100% - var(--gouttiere) * 2, var(--etroit)); }

.section { padding-block: var(--section); }
.section--sombre { background: var(--encre); color: var(--blanc); }
.section--craie  { background: var(--craie); }

/* Etiquette numerotee, la signature de rubrique du site */
.rubrique {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  font-family: var(--titre);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 1.6rem;
}
.section--sombre .rubrique { color: var(--gris-clair); }
.rubrique::before {
  content: attr(data-index);
  color: var(--jaune);
  font-size: .78rem;
}
.rubrique::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--trait);
}
.section--sombre .rubrique::after { background: var(--trait-sombre); }

/* --- 4. Titres ---------------------------------------------------------- */

.titre-geant {
  /* le plafond tient compte du rail : la colonne de texte est plus
     étroite qu'en pleine largeur, et « OPÉRATEUR » est un mot long */
  font-size: clamp(2.3rem, 5.6vw, 4.7rem);
  font-stretch: 112%;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.titre-section {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-stretch: 106%;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.titre-bloc {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-stretch: 102%;
  letter-spacing: -.015em;
}

.chapeau {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.62;
  color: var(--gris);
  max-width: 62ch;
}
.section--sombre .chapeau { color: var(--gris-clair); }

/* Un mot mis en jaune dans un titre */
.accent { color: var(--jaune); }

/* --- 5. Boutons --------------------------------------------------------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.7rem;
  font-family: var(--titre);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  /* cible tactile confortable, l'audit avait releve des boutons trop petits */
  min-height: 52px;
}
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0); }

.bouton--principal {
  background: var(--jaune);
  color: var(--encre);
}
.bouton--principal:hover { background: var(--jaune-chaud); }

.bouton--fantome {
  background: transparent;
  color: var(--blanc);
  border-color: rgba(255, 255, 255, .45);
}
.bouton--fantome:hover { border-color: var(--blanc); background: rgba(255, 255, 255, .1); }

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

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--titre);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--encre);
  border-bottom: 2px solid var(--jaune);
  padding-bottom: .25rem;
  transition: gap var(--transition);
}
.lien-fleche:hover { gap: .95rem; }
.section--sombre .lien-fleche { color: var(--blanc); }

/* --- 5 bis. Rail de navigation ------------------------------------------
   Sur grand écran, le menu devient une colonne fixe à gauche et le reste
   du site défile à côté. Le décalage se fait par un padding sur le body :
   pas besoin d'envelopper la page dans un conteneur, la structure reste
   plate et les pages sans rail continuent de fonctionner.
   ------------------------------------------------------------------- */

.rail { display: none; }

@media (min-width: 1060px) {
  :root { --rail: 330px; }

  body { padding-left: var(--rail); }

  .rail {
    display: flex;
    flex-direction: column;
    /* toute la hauteur de l'écran, quoi qu'il arrive */
    position: fixed;
    left: 0; top: 0; bottom: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 110;
    width: var(--rail);
    padding: 2.6rem 2.2rem 2.4rem;
    background: var(--encre-profond);
    color: var(--blanc);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* la tranche jaune, qui tient la colonne du haut en bas */
  .rail::after {
    content: '';
    position: fixed;
    top: 0; bottom: 0;
    left: calc(var(--rail) - 4px);
    width: 4px;
    background: var(--jaune);
  }

  /* l'en-tête mobile s'efface, le rail le remplace */
  .entete { display: none; }
}

@media (min-width: 1440px) {
  :root { --rail: 380px; }
}

.rail__logo { flex: none; }
.rail__logo img { width: 200px; }

/* Le menu occupe tout l'espace disponible entre le logo et le pied :
   c'est ce qui donne au rail sa présence sur toute la hauteur. */
.rail__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-block: 2.4rem;
}
.rail__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.32rem;
  font-stretch: 104%;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: color var(--transition), padding-left var(--transition);
}
.rail__nav a:first-child { border-top: 1px solid rgba(255, 255, 255, .1); }
.rail__nav a:hover { color: var(--blanc); padding-left: .5rem; }
.rail__nav a[aria-current="page"] { color: var(--jaune); }

.rail__num {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--jaune);
  opacity: .6;
}
.rail__nav a[aria-current="page"] .rail__num { opacity: 1; }

.rail__pied { flex: none; display: flex; flex-direction: column; gap: .8rem; }
.rail__devis { width: 100%; padding: 1.05rem 1rem; font-size: .88rem; }
.rail__tel {
  font-family: var(--titre);
  font-weight: 800;
  font-stretch: 106%;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  color: var(--blanc);
}
.rail__tel:hover { color: var(--jaune); }
.rail__mail {
  font-size: .84rem;
  color: var(--gris-clair);
  text-decoration: none;
  word-break: break-all;
}
.rail__mail:hover { color: var(--jaune); }
.rail__zone {
  margin: .5rem 0 0;
  font-size: .78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .45);
}

/* --- 6. Actions flottantes et navigation --------------------------------

   Sur petit écran, les coordonnées ne sont plus dans un bandeau en haut de
   page : elles deviennent deux boutons ronds fixés en bas à droite, donc
   atteignables au pouce pendant toute la lecture, et non plus seulement
   au chargement. Ils disparaissent dès que le rail prend le relais.
   ------------------------------------------------------------------- */

.actions-flottantes {
  position: fixed;
  right: 16px;
  /* la marge basse tient compte de la barre du navigateur sur iPhone */
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
@media (min-width: 1060px) { .actions-flottantes { display: none; } }

.action-flottante {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(11, 21, 38, .32);
  transition: transform var(--transition), background var(--transition);
}
.action-flottante:active { transform: scale(.94); }
.action-flottante svg { width: 24px; height: 24px; }

.action-flottante--tel  { background: var(--jaune); color: var(--encre); }
.action-flottante--tel:hover { background: var(--jaune-chaud); }
.action-flottante--mail {
  background: var(--encre);
  color: var(--blanc);
  border: 1px solid rgba(255, 255, 255, .18);
}
.action-flottante--mail:hover { background: var(--encre-profond); }

.entete {
  position: sticky;
  top: 0;
  /* au-dessus du menu plein écran, pour que le bouton reste cliquable */
  z-index: 130;
  background: var(--blanc);
  border-bottom: 1px solid var(--trait);
}
.entete__contenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}
.entete__logo img { width: 190px; }

.nav { display: none; }
@media (min-width: 1060px) {
  .nav { display: flex; align-items: center; gap: 2rem; }
}
.nav a {
  font-family: var(--titre);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--jaune); }

.entete__actions { display: flex; align-items: center; gap: .8rem; }
.entete__actions .bouton { padding: .8rem 1.3rem; font-size: .85rem; }
@media (max-width: 1059px) { .entete__actions .bouton--devis { display: none; } }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 52px; height: 52px;
  padding: 0 13px;
  background: var(--encre);
  border: 0;
  cursor: pointer;
}
@media (min-width: 1060px) { .burger { display: none; } }
.burger span {
  display: block;
  height: 2px;
  background: var(--blanc);
  transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu plein écran.
   Il recouvre toute la page plutôt que de la pousser vers le bas. L'en-tête
   reste au-dessus (z-index supérieur) pour que le même bouton serve à ouvrir
   et à fermer : deux boutons pour une seule action, c'est une confusion de
   plus pour les lecteurs d'écran. */
.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  background: var(--encre-profond);
  color: var(--blanc);
  overflow-y: auto;
  overscroll-behavior: contain;
  /* fermé : invisible, inerte, et hors du parcours au clavier */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 260ms ease, transform 260ms cubic-bezier(.2, .8, .25, 1),
              visibility 0s linear 260ms;
}
.menu-mobile[data-ouvert="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
@media (min-width: 1060px) { .menu-mobile { display: none; } }

.menu-mobile__contenu {
  display: flex;
  flex-direction: column;
  width: min(100% - var(--gouttiere) * 2, var(--large));
  /* dégage la hauteur de l'en-tête, qui reste visible par-dessus */
  padding-block: calc(78px + 2.2rem) 2.5rem;
  min-height: 100%;
}

.menu-mobile__liens { flex: 1; }
.menu-mobile__liens a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(1.4rem, 7vw, 2rem);
  font-stretch: 104%;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.menu-mobile__liens li:first-child a { border-top: 1px solid rgba(255, 255, 255, .12); }
.menu-mobile__num {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--jaune);
  opacity: .65;
}

.menu-mobile__pied { display: flex; flex-direction: column; gap: .8rem; margin-top: 2.4rem; }
.menu-mobile__pied .bouton { width: 100%; }
.menu-mobile__tel {
  font-family: var(--titre);
  font-weight: 800;
  font-stretch: 106%;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.menu-mobile__mail { font-size: .92rem; color: var(--gris-clair); text-decoration: none; }
.menu-mobile__zone { margin: .3rem 0 0; font-size: .8rem; color: rgba(255, 255, 255, .45); }

/* Quand le menu est ouvert : la page ne défile plus derrière, et les
   boutons flottants s'effacent pour ne pas se superposer au menu. */
body[data-menu-ouvert="true"] { overflow: hidden; }
body[data-menu-ouvert="true"] .actions-flottantes { display: none; }

/* --- 7. Hero ------------------------------------------------------------ */

/* Les photos de chantier sont en portrait : plutot que de les recadrer en
   paysage et de tout perdre, le hero est coupe en deux panneaux, texte a
   gauche sur fond encre, photo verticale a droite jusqu'au bord. */
.hero {
  position: relative;
  background: var(--encre);
  color: var(--blanc);
}
.hero__grille { display: grid; }
@media (min-width: 900px) {
  .hero__grille { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); }
}
@media (min-width: 1060px) {
  /* le rail prend déjà 264 px : on rend un peu de largeur au texte */
  .hero__grille { grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); }
}

.hero__texte {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  /* aligne le texte sur la gouttiere du conteneur general */
  padding-inline: var(--gouttiere);
  align-self: center;
}
@media (min-width: 900px) {
  .hero__texte {
    /* aligne le texte sur le bord gauche des sections, en tenant compte
       du rail de navigation quand il est affiché */
    padding-left: max(var(--gouttiere), (100vw - var(--rail) - var(--large)) / 2);
    padding-right: clamp(2rem, 4vw, 4rem);
  }
}
/* Le titre se serre pour tomber en gros pavé ; le reste respire plus large. */
.hero__texte h1 { max-width: 13ch; }
.hero__texte .hero__chapeau { max-width: 44ch; }
.hero__texte .hero__actions { max-width: 46ch; }

/* --- 7 bis. Le panneau photo du hero ------------------------------------
   Une photo, franche, sans effet : ni découpe, ni parallaxe. Elle occupe
   toute la hauteur du hero et tient le bord droit de l'écran.
   ------------------------------------------------------------------- */

.hero__scene { position: relative; }

.hero__image {
  position: relative;
  min-height: 320px;
  background: var(--encre-profond);
}
@media (min-width: 900px) { .hero__image { min-height: 42vw; } }

.hero__image img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Le sujet, la flèche et le vitrage suspendu, est dans le haut de
     l'image : on ancre le cadrage en haut pour ne pas le rogner quand
     le panneau devient plus large que haut. */
  object-position: 54% 14%;
}

/* un liseré jaune sur la tranche, qui raccorde la photo au panneau encre */
.hero__image::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 5px;
  background: var(--jaune);
  z-index: 2;
}

/* --- 7 quater. En-tête des pages intérieures ----------------------------
   Plus court que le hero de l'accueil : un bandeau encre avec le titre et
   son chapeau, suivi d'un filet jaune qui raccorde au contenu.
   ------------------------------------------------------------------- */

.entete-page {
  background: var(--encre);
  color: var(--blanc);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 5px solid var(--jaune);
}
.entete-page h1 { margin-bottom: 1.2rem; max-width: 18ch; }
.entete-page .chapeau { color: rgba(255, 255, 255, .82); }

/* Fil d'Ariane discret, utile quand on arrive par une recherche */
.fil { margin-bottom: 1.4rem; font-size: .84rem; color: var(--gris-clair); }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--jaune); }
.fil span { opacity: .5; margin-inline: .45rem; }

/* --- 7 ter. Bandeau photo pleine largeur -------------------------------- */

.bandeau-photo { position: relative; margin: 0; }
.bandeau-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (min-width: 760px) { .bandeau-photo img { aspect-ratio: 21 / 9; } }
.bandeau-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 3rem var(--gouttiere) 1.2rem;
  font-size: .86rem;
  color: var(--blanc);
  background: linear-gradient(to top, rgba(11, 21, 38, .85), transparent);
}
.bandeau-photo figcaption span {
  display: block;
  width: min(100% - 0px, var(--large));
  margin-inline: auto;
}
.hero__surtitre {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--titre);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--jaune);
  margin-bottom: 1.4rem;
}
.hero__surtitre::before {
  content: '';
  width: 34px; height: 2px;
  background: var(--jaune);
}
.hero h1 { margin-bottom: 1.5rem; }
.hero__chapeau {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Bandeau de caracteristiques colle sous le hero */
.jauges {
  border-top: 1px solid var(--trait-sombre);
  background: rgba(11, 21, 38, .78);
  backdrop-filter: blur(6px);
}
.jauges__grille {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .jauges__grille { grid-template-columns: repeat(4, 1fr); } }
.jauge {
  padding: 1.5rem 0;
  border-right: 1px solid var(--trait-sombre);
  padding-inline: 1.2rem;
}
.jauge:first-child { padding-left: 0; }
.jauge:last-child { border-right: 0; }
@media (max-width: 759px) {
  .jauge:nth-child(2n) { border-right: 0; }
  .jauge:nth-child(-n+2) { border-bottom: 1px solid var(--trait-sombre); }
  .jauge:nth-child(2n+1) { padding-left: 0; }
}
.jauge__valeur {
  display: block;
  font-family: var(--titre);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1;
  color: var(--blanc);
  font-variant-numeric: tabular-nums;
}
.jauge__valeur sup {
  font-size: .42em;
  vertical-align: super;
  color: var(--jaune);
  margin-left: .12em;
}
.jauge__legende {
  display: block;
  margin-top: .5rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gris-clair);
}

/* --- 8. Grilles de contenu ---------------------------------------------- */

.duo {
  display: grid;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .duo { grid-template-columns: 1fr 1fr; }
  .duo--texte-large { grid-template-columns: 1.15fr .85fr; }
  .duo--image-large { grid-template-columns: .85fr 1.15fr; }
}
.duo__media img { width: 100%; }

/* Cartes de prestation, photo plein cadre et texte dessous */
.prestations {
  display: grid;
  gap: 1.6rem;
}
@media (min-width: 820px) { .prestations { grid-template-columns: 1fr 1fr; } }

.prestation {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--encre);
  color: var(--blanc);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--transition);
}
.prestation:hover { transform: translateY(-4px); }
.prestation__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.prestation__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2, .7, .3, 1);
}
.prestation:hover .prestation__media img { transform: scale(1.045); }
.prestation__corps { padding: 1.8rem 1.6rem 2rem; flex: 1; display: flex; flex-direction: column; }
.prestation__corps h3 { margin-bottom: .7rem; }
.prestation__corps p { color: var(--gris-clair); font-size: .97rem; margin-bottom: 1.4rem; }
.prestation__corps .lien-fleche { margin-top: auto; align-self: flex-start; color: var(--blanc); }

/* Points forts, trois colonnes de texte */
.atouts { display: grid; gap: 2.2rem; }
@media (min-width: 820px) { .atouts { grid-template-columns: repeat(3, 1fr); } }
.atout { border-top: 3px solid var(--jaune); padding-top: 1.4rem; }
.atout h3 { margin-bottom: .6rem; }
.atout p { color: var(--gris); font-size: .97rem; }
.section--sombre .atout p { color: var(--gris-clair); }

/* --- 9. Fiche technique ------------------------------------------------- */

.fiche {
  border-top: 1px solid var(--trait-sombre);
}
.fiche__ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--trait-sombre);
}
.fiche__intitule {
  font-size: .92rem;
  color: var(--gris-clair);
}
.fiche__valeur {
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fiche__valeur .accent { color: var(--jaune); }

/* --- 10. Galerie de chantiers ------------------------------------------- */

.galerie {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .galerie { grid-template-columns: repeat(3, 1fr); } }
.galerie figure { margin: 0; position: relative; overflow: hidden; }
.galerie img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2, .7, .3, 1);
}
.galerie figure:hover img { transform: scale(1.05); }
.galerie figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.6rem .9rem .8rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--blanc);
  background: linear-gradient(to top, rgba(11, 21, 38, .9), transparent);
}

/* --- 11. Zone d'intervention -------------------------------------------- */

.villes {
  display: grid;
  gap: 1px;
  background: var(--trait);
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--trait);
}
@media (min-width: 700px) { .villes { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .villes { grid-template-columns: repeat(4, 1fr); } }
/* les <li> s'effacent pour que les liens soient eux-memes les cases de la
   grille, sinon le fond blanc ne remplit pas la case et le filet deborde */
.villes > li { display: contents; }
.ville {
  background: var(--blanc);
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  transition: background var(--transition);
}
.ville:hover { background: var(--craie); }
.ville strong {
  display: block;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1rem;
}
.ville span { font-size: .82rem; color: var(--gris); }

/* --- 12. Questions frequentes ------------------------------------------- */

/* Titre a gauche, questions a droite : la colonne de texte reste lisible
   sans centrer un bloc etroit au milieu d'une page alignee a gauche. */
.faq-bloc { display: grid; gap: 2rem clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 900px) { .faq-bloc { grid-template-columns: .8fr 1.2fr; align-items: start; } }

.faq { border-top: 1px solid var(--trait); }
.faq details {
  border-bottom: 1px solid var(--trait);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 14px; height: 14px;
  border-right: 2.5px solid var(--jaune);
  border-bottom: 2.5px solid var(--jaune);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__reponse { padding-bottom: 1.5rem; color: var(--gris); max-width: 72ch; }

/* --- 13. Appel a l'action ----------------------------------------------- */

.appel {
  background: var(--jaune);
  color: var(--encre);
}
.appel__contenu {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) { .appel__contenu { grid-template-columns: 1.4fr 1fr; } }
.appel h2 { font-size: clamp(1.9rem, 4vw, 3rem); text-transform: uppercase; font-stretch: 106%; }
.appel p { margin-top: .9rem; max-width: 52ch; }
.appel__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.appel .bouton--encre { border-color: var(--encre); }

/* Le numero, traite comme un objet graphique */
.telephone-geant {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--titre);
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  letter-spacing: -.02em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.telephone-geant:hover { text-decoration: underline; text-underline-offset: 6px; }

/* --- 14. Pied de page --------------------------------------------------- */

.pied {
  background: var(--encre-profond);
  color: var(--gris-clair);
  font-size: .92rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.pied__grille {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 760px) { .pied__grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pied__grille { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.pied h2, .pied h3 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blanc);
  margin-bottom: 1.1rem;
}
.pied a { text-decoration: none; }
.pied a:hover { color: var(--jaune); }
.pied li { margin-bottom: .55rem; }
.pied__logo { width: 175px; margin-bottom: 1.3rem; }
.pied address { font-style: normal; }

.reseaux { display: flex; gap: .7rem; margin-top: 1.2rem; }
.reseaux a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--trait-sombre);
  transition: background var(--transition), border-color var(--transition);
}
.reseaux a:hover { background: var(--jaune); border-color: var(--jaune); color: var(--encre); }
.reseaux svg { width: 19px; height: 19px; fill: currentColor; }

.pied__bas {
  border-top: 1px solid var(--trait-sombre);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
}
.pied__bas nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.pied__credit { margin: 0; }
.pied__credit a {
  color: var(--blanc);
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  padding-bottom: 1px;
}
.pied__credit a:hover { color: var(--jaune); border-bottom-color: var(--jaune); }

/* --- 15. Formulaire ----------------------------------------------------- */

.formulaire { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .formulaire { grid-template-columns: 1fr 1fr; } }
.champ { display: flex; flex-direction: column; gap: .45rem; }
.champ--pleine-largeur { grid-column: 1 / -1; }
.champ label {
  font-family: var(--titre);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.champ .obligatoire { color: var(--jaune-chaud); }
.champ input,
.champ select,
.champ textarea {
  font: inherit;
  font-size: 1rem;
  padding: .85rem 1rem;
  min-height: 52px;
  background: var(--blanc);
  color: var(--encre);
  border: 1px solid var(--craie-ombre);
  border-radius: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.champ textarea { min-height: 140px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none;
  border-color: var(--encre);
  box-shadow: 0 0 0 3px rgba(251, 193, 20, .35);
}
.champ__aide { font-size: .82rem; color: var(--gris); }

.consentement {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  font-size: .9rem;
  color: var(--gris);
}
.consentement input {
  flex: none;
  width: 22px; height: 22px;
  margin-top: .15rem;
  accent-color: var(--jaune-chaud);
}

/* Piege a robots : invisible pour les humains, rempli par les automates */
.pot-de-miel {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.message-formulaire {
  grid-column: 1 / -1;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--jaune);
  background: var(--craie);
  font-size: .95rem;
}
.message-formulaire--erreur { border-left-color: #C0392B; }
.message-formulaire--succes { border-left-color: #1E8449; }

/* --- 15 bis. Bandeau de consentement ------------------------------------
   « Refuser » et « Accepter » ont volontairement la même taille et la même
   place. Le second est en jaune parce que le jaune est la couleur d'action
   du site, pas pour peser sur la décision : les deux boutons sont à côté,
   de même dimension, et le refus n'est pas caché derrière un réglage.
   ------------------------------------------------------------------- */

.consentement {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: var(--encre-profond);
  color: var(--blanc);
  border-top: 4px solid var(--jaune);
  padding: 1.4rem 0 calc(1.4rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 380ms cubic-bezier(.2, .8, .25, 1);
}
.consentement.est-visible { transform: none; }
@media (min-width: 1060px) { .consentement { left: var(--rail); } }

.consentement__zone {
  width: min(100% - var(--gouttiere) * 2, var(--large));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 2rem;
}
.consentement__texte {
  flex: 1 1 340px;
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}
.consentement__texte a { color: var(--jaune); text-underline-offset: 3px; }

.consentement__actions { display: flex; gap: .8rem; flex: none; }
.consentement__actions .bouton { padding: .85rem 1.5rem; font-size: .85rem; }
@media (max-width: 559px) {
  .consentement__actions { width: 100%; }
  .consentement__actions .bouton { flex: 1; }
}

/* Le bandeau masquerait les boutons flottants : on les décale le temps
   qu'une décision soit prise. */
.consentement ~ .actions-flottantes,
body:has(.consentement.est-visible) .actions-flottantes { display: none; }

/* --- 16. Apparition au defilement --------------------------------------- */

.apparait {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .7, .3, 1);
}
.apparait.est-visible { opacity: 1; transform: none; }

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