/* ===============================================================
   Géoprécis — feuille de base
   Charte reprise du logo : rouge #F6322E, noir, gris.
   Écrite à la main plutôt que reprise de Bootstrap : le template
   livré pèse 233 Ko de CSS framework pour ~15 % de classes utilisées.
   =============================================================== */

/* --- Polices auto-hébergées ----------------------------------- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* --- Tokens ---------------------------------------------------- */
:root {
  /* Couleurs échantillonnées dans le logo fourni */
  --red:        #F6322E;
  --red-dark:   #C81F1C;   /* hover — ratio 5,3:1 sur blanc */
  --red-soft:   #FEF0EF;   /* fonds d'accent très clairs */
  --black:      #111111;
  --gray-900:   #333333;
  --gray-600:   #6B6B6B;
  --gray-300:   #D9D9D9;
  --gray-100:   #F4F4F4;
  --white:      #FFFFFF;

  --font-title: 'Montserrat', system-ui, sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;

  /* Échelle typographique fluide, base 16 → 18 px */
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-sm:   0.9375rem;
  --t-h4:   clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-h3:   clamp(1.375rem, 1.24rem + 0.6vw, 1.75rem);
  --t-h2:   clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --t-h1:   clamp(2.125rem, 1.7rem + 1.9vw, 3.5rem);

  --sp-1: 0.5rem;  --sp-2: 1rem;   --sp-3: 1.5rem;
  --sp-4: 2rem;    --sp-5: 3rem;   --sp-6: 4.5rem;

  --wrap:   1240px;
  --radius: 4px;   /* angles francs : le sujet est la précision de mesure */
  --header-h: 76px;
}

/* --- Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

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

/* --- Typographie ----------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  margin: 0 0 var(--sp-2);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--t-h2); letter-spacing: -0.015em; }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }
p  { margin: 0 0 var(--sp-2); max-width: 68ch; }

/* --- Accessibilité --------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--black); color: var(--white);
  padding: var(--sp-1) var(--sp-2);
}
.skip-link:focus { left: 0; }

/* --- Structure -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-2);
}
@media (min-width: 768px) { .wrap { padding-inline: var(--sp-3); } }

/* --- Boutons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 0.8125rem 1.5rem;
  font-family: var(--font-title); font-weight: 700; font-size: var(--t-sm);
  text-decoration: none; border: 2px solid transparent;
  border-radius: var(--radius); cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--black); border-color: var(--gray-300); }
.btn--ghost:hover { border-color: var(--black); }
.btn--block { width: 100%; justify-content: center; }

/* ===============================================================
   EN-TÊTE
   =============================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--sp-2);
  min-height: var(--header-h);
}
.site-header__logo { flex: 0 0 auto; }
.site-header__logo img { width: 168px; height: 48px; }
@media (max-width: 380px) { .site-header__logo img { width: 140px; height: 40px; } }

.nav { flex: 1 1 auto; }
.nav__list { display: flex; gap: var(--sp-3); list-style: none; justify-content: center; }
.nav__link {
  font-family: var(--font-title); font-weight: 700; font-size: 0.9375rem;
  text-decoration: none; color: var(--black);
  padding: var(--sp-1) 0;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--red); }
.nav__link.is-active { border-bottom-color: var(--red); }

.site-header__contact {
  display: flex; flex-direction: column; align-items: flex-end;
  font-size: 0.875rem; line-height: 1.4;
}
.contact-tel {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-title); font-weight: 700;
  color: var(--black); text-decoration: none;
}
.contact-tel:hover { color: var(--red); }
.contact-tel svg { color: var(--red); flex: 0 0 auto; }
.contact-mail { color: var(--gray-600); text-decoration: none; }
.contact-mail:hover { color: var(--red); }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 10px; margin-left: auto; cursor: pointer;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--black); }

/* --- En-tête mobile --------------------------------------------- */
@media (max-width: 1100px) {
  .burger { display: flex; }
  .site-header__cta { display: none; }
  .site-header__contact { display: none; }

  /* Accroché sous l'en-tête (top: 100 %) plutôt qu'à 76 px fixes : quand
     l'en-tête se compacte au défilement (62 px), l'ancien positionnement
     laissait une bande transparente de 14 px, et la bordure du menu
     fermé traçait une ligne flottante sous la barre. */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 0;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .25s ease, visibility 0s linear .25s;
  }
  .nav.is-open {
    max-height: 80vh; overflow-y: auto; visibility: visible;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: 0 8px 16px rgba(17,17,17,.08);
    transition: max-height .25s ease, visibility 0s;
  }
  .nav__list { flex-direction: column; gap: 0; padding: var(--sp-2); }
  .nav__list li { border-bottom: 1px solid var(--gray-100); }
  .nav__link { display: block; padding: var(--sp-2) 0; border: 0; }

  /* Le contact et le CTA restent atteignables : repliés dans le menu */
  .nav__mobile-extra { padding: var(--sp-2); display: grid; gap: var(--sp-1); }
}

/* Barre d'action fixe en bas d'écran sur mobile :
   la majorité des recherches "géomètre Paris" se font sur mobile,
   et l'appel direct y est le premier canal de conversion. */
.action-bar { display: none; }
@media (max-width: 767px) {
  .action-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--gray-300);
    background: var(--white);
  }
  .action-bar a {
    padding: 0.875rem; text-align: center; text-decoration: none;
    font-family: var(--font-title); font-weight: 700; font-size: 0.9375rem;
  }
  .action-bar .is-call  { color: var(--black); }
  .action-bar .is-quote { background: var(--red); color: var(--white); }
  body { padding-bottom: 56px; }
}

/* ===============================================================
   PIED DE PAGE
   =============================================================== */
.site-footer {
  background: var(--black); color: var(--gray-300);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  font-size: var(--t-sm);
}
.site-footer__inner {
  display: grid; gap: var(--sp-4);
  grid-template-columns: 1fr;
  padding-bottom: var(--sp-4);
}
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-5); }
}
.site-footer__titre {
  font-size: 0.875rem; color: var(--white);
  margin-bottom: var(--sp-2);
}
.site-footer__baseline { color: var(--gray-600); max-width: 42ch; }
.site-footer a { color: var(--gray-300); text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer address { font-style: normal; display: grid; gap: 0.5rem; }

.site-footer__bas {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  justify-content: space-between; align-items: center;
  border-top: 1px solid #2A2A2A;
  padding-block: var(--sp-2);
  font-size: 0.8125rem; color: var(--gray-600);
}
.site-footer__bas p { margin: 0; }
.site-footer__bas ul { display: flex; gap: var(--sp-2); }

/* ===============================================================
   FORMULAIRE DE DEVIS
   Page prioritaire du site : c'est elle qui reçoit le trafic payant.
   Mobile d'abord — une saisie pénible ici coûte directement des leads.
   =============================================================== */
.devis__wrap { max-width: 760px; }
.devis { padding-top: var(--sp-4); }

.devis__promesse {
  display: inline-block;
  font-family: var(--font-title); font-weight: 700;
  color: var(--red); font-size: var(--t-h4);
  margin: 0 0 var(--sp-2);
}
.devis__h2 { font-size: var(--t-h3); margin-bottom: var(--sp-2); }
.devis__intro { margin-bottom: var(--sp-4); }

/* --- Alertes ---------------------------------------------------- */
.alerte {
  padding: var(--sp-2); border-radius: var(--radius);
  margin-bottom: var(--sp-3); border-left: 4px solid;
}
.alerte--erreur { background: var(--red-soft); border-color: var(--red); color: var(--gray-900); }
.alerte p { margin: 0 0 var(--sp-1); }
.alerte ul { list-style: disc; padding-left: 1.25rem; }
.alerte a { color: var(--red-dark); }

/* --- Blocs ------------------------------------------------------ */
.formulaire { display: grid; gap: var(--sp-4); }
.bloc { border: 0; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.bloc__titre {
  font-family: var(--font-title); font-weight: 700;
  font-size: var(--t-h4); color: var(--black);
  padding: 0 0 var(--sp-1); margin-bottom: var(--sp-1);
  border-bottom: 2px solid var(--gray-300); width: 100%;
}

.champ { display: grid; gap: 6px; }
.champ__label {
  font-family: var(--font-title); font-weight: 700;
  font-size: 0.9375rem; color: var(--black);
}
/* On balise le facultatif, pas l'obligatoire : marquer la minorité
   allège la lecture et évite une page couverte d'astérisques. */
.champ__facultatif {
  font-family: var(--font-body); font-weight: 400;
  font-size: 0.8125rem; color: var(--gray-600);
}
.champ__aide  { font-size: 0.8125rem; color: var(--gray-600); margin: 0; }
.champ__erreur {
  font-size: 0.875rem; color: var(--red-dark); margin: 0; font-weight: 600;
}

.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"],
.champ textarea, .champ input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  /* 16px minimum : en dessous, iOS zoome au focus et déforme la page */
  font: inherit; font-size: 1rem;
  color: var(--gray-900); background: var(--white);
  border: 1px solid var(--gray-300); border-radius: var(--radius);
}
.champ textarea { resize: vertical; min-height: 110px; }
.champ input:focus, .champ textarea:focus { border-color: var(--black); }
.champ [aria-invalid="true"] { border-color: var(--red); background: var(--red-soft); }

.champ-duo { display: grid; gap: var(--sp-3); }
@media (min-width: 600px) {
  .champ-duo { grid-template-columns: 1fr 1fr; }
  .champ-duo--cp { grid-template-columns: 160px 1fr; }
}

/* --- Choix tactiles --------------------------------------------
   Cases et boutons radio présentés en pastilles : un appui suffit,
   la cible fait 44 px de haut, et rien à saisir au clavier. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input {
  position: absolute; opacity: 0; width: 100%; height: 100%;
  margin: 0; cursor: pointer;
}
.chip span {
  display: block;
  padding: 0.625rem 0.9375rem; min-height: 44px;
  display: flex; align-items: center;
  font-size: 0.9375rem; line-height: 1.2;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  background: var(--white); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.chip:hover span { border-color: var(--black); }
.chip input:checked + span {
  border-color: var(--red); background: var(--red-soft);
  color: var(--red-dark); font-weight: 600;
}
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.chip--neutre span { color: var(--gray-600); }

/* --- Fichiers ---------------------------------------------------- */
.fichiers-liste { list-style: none; display: grid; gap: 4px; font-size: 0.875rem; }
.fichiers-liste li { color: var(--gray-600); }
.fichiers-liste li::before { content: "— "; }

/* --- Consentement ------------------------------------------------ */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.consent a { color: var(--red-dark); }

/* --- Envoi -------------------------------------------------------- */
.btn--envoi { padding: 1rem; font-size: 1rem; }
.btn--envoi[disabled] { opacity: .6; cursor: progress; }
.devis__rassurance {
  text-align: center; font-size: 0.8125rem; color: var(--gray-600);
  margin: var(--sp-1) 0 0;
}

/* Champ leurre anti-robots : masqué sans display:none, que certains
   robots savent détecter. */
.leurre {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* ===============================================================
   PAGE DE CONFIRMATION
   =============================================================== */
.merci__wrap { max-width: 620px; text-align: center; padding-block: var(--sp-5); }
.merci__coche { color: var(--red); margin: 0 auto var(--sp-2); }
.merci__h2 { font-size: var(--t-h4); color: var(--gray-600); margin-bottom: var(--sp-3); }
.merci p { margin-inline: auto; }
.merci__reference {
  display: inline-block; padding: 0.625rem 1rem;
  background: var(--gray-100); border-radius: var(--radius);
  font-size: 0.9375rem;
}
.merci__urgence { margin-top: var(--sp-4); display: grid; gap: var(--sp-2); justify-items: center; }
.merci__retour { margin-top: var(--sp-3); font-size: 0.9375rem; }

/* ===============================================================
   ACCUEIL
   =============================================================== */
.section { padding-block: var(--sp-6); }
.section--gris { background: var(--gray-100); }
.wrap--etroit { max-width: 780px; }

.section__entete { margin-bottom: var(--sp-4); max-width: 62ch; }
.section__entete p { color: var(--gray-600); margin: 0; }
.section__pied { margin-top: var(--sp-4); }
.vide { color: var(--gray-600); font-style: italic; }

/* --- Hero -------------------------------------------------------- */
.hero { padding-block: var(--sp-5) var(--sp-4); }
.hero__inner { display: grid; gap: var(--sp-4); align-items: center; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.1fr 1fr; gap: var(--sp-5); }
  .hero { padding-block: var(--sp-6) var(--sp-5); }
}
.hero h1 { margin-bottom: var(--sp-1); }
.hero__h2 {
  font-size: var(--t-h4); color: var(--gray-600);
  font-family: var(--font-body); font-weight: 400;
  margin-bottom: var(--sp-3);
}
.hero__intro { font-size: 1.0625rem; }
.hero__actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.hero__promesse {
  margin-top: var(--sp-2); font-size: 0.875rem; color: var(--gray-600);
}

/* Emplacements en attente des visuels du cabinet. Ils ont des dimensions
   fixes pour que la mise en page ne bouge pas quand les photos arrivent. */
.hero__placeholder, .carte-reference__placeholder, .client-logo {
  display: grid; place-items: center;
  background: var(--gray-100);
  border: 1px dashed var(--gray-300); border-radius: var(--radius);
  color: var(--gray-600); font-size: 0.8125rem;
}
.hero__placeholder { aspect-ratio: 4 / 3; }

/* --- Chiffres ---------------------------------------------------- */
.chiffres { background: var(--black); color: var(--white); padding-block: var(--sp-4); }
.chiffres__grille {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3);
}
@media (min-width: 768px) { .chiffres__grille { grid-template-columns: repeat(4, 1fr); } }
.chiffre { text-align: center; }
.chiffre__valeur {
  display: block; font-family: var(--font-title); font-weight: 700;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); color: var(--red);
  line-height: 1.1;
}
.chiffre__label { display: block; font-size: 0.875rem; color: var(--gray-300); }

/* --- Grille des prestations --------------------------------------
   Icônes et non photos sur cette grille : plus rapide à charger, plus
   lisible d'un coup d'œil, et cohérent entre les huit cartes. */
.prestations-grille {
  list-style: none; display: grid; gap: var(--sp-2);
  grid-template-columns: repeat(2, 1fr);
}
/* 10 prestations : 5 colonnes tombent juste en deux rangées pleines.
   À 4 colonnes, la dernière rangée n'en afficherait que deux. */
@media (min-width: 700px)  { .prestations-grille { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .prestations-grille { grid-template-columns: repeat(5, 1fr); } }

.carte-prestation {
  display: grid; gap: 10px; align-content: start;
  height: 100%; padding: var(--sp-3) var(--sp-2);
  text-decoration: none; background: var(--white);
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  transition: border-color .15s ease;
}
.carte-prestation:hover { border-color: var(--red); }
.carte-prestation__icone { color: var(--red); }
.carte-prestation__titre {
  font-family: var(--font-title); font-weight: 700;
  font-size: 0.9375rem; color: var(--black); line-height: 1.25;
}
.carte-prestation__lien { font-size: 0.8125rem; color: var(--gray-600); }
.carte-prestation:hover .carte-prestation__lien { color: var(--red-dark); }

/* --- Logos clients ------------------------------------------------ */
.clients { padding-block: var(--sp-4); border-block: 1px solid var(--gray-300); }
.clients__titre {
  font-size: 0.875rem; color: var(--gray-600); text-align: center;
  font-family: var(--font-body); font-weight: 400; margin-bottom: var(--sp-3);
}
.clients__liste {
  list-style: none; display: grid; gap: var(--sp-2);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .clients__liste { grid-template-columns: repeat(5, 1fr); } }
.client-logo { height: 60px; }

/* --- Références --------------------------------------------------- */
.references-grille {
  list-style: none; display: grid; gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .references-grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .references-grille { grid-template-columns: repeat(4, 1fr); } }

.carte-reference {
  display: grid; height: 100%; text-decoration: none;
  background: var(--white); border: 1px solid var(--gray-300);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s ease;
}
.carte-reference:hover { border-color: var(--red); }
.carte-reference__media { display: block; aspect-ratio: 4 / 3; }
.carte-reference__media img { width: 100%; height: 100%; object-fit: cover; }
.carte-reference__placeholder { height: 100%; border: 0; border-radius: 0; }
.carte-reference__corps { display: grid; gap: 4px; padding: var(--sp-2); }
.carte-reference__titre {
  font-family: var(--font-title); font-weight: 700;
  font-size: 0.9375rem; color: var(--black);
}
.carte-reference__meta { font-size: 0.8125rem; color: var(--gray-600); }

/* --- FAQ ---------------------------------------------------------- */
.faq { display: grid; }
.faq__item { border-bottom: 1px solid var(--gray-300); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-2) 0; cursor: pointer; list-style: none;
  font-family: var(--font-title); font-weight: 700; font-size: 1rem;
  color: var(--black);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__reponse { padding-bottom: var(--sp-2); color: var(--gray-900); }
.faq__reponse p { margin: 0; }

/* --- Appel à l'action final --------------------------------------- */
.cta-final { background: var(--black); color: var(--white); padding-block: var(--sp-5); }
.cta-final__inner {
  display: grid; gap: var(--sp-3); align-items: center; justify-items: start;
}
@media (min-width: 800px) {
  .cta-final__inner { grid-template-columns: 1fr auto; gap: var(--sp-4); }
}
.cta-final h2 { color: var(--white); }
.cta-final p { color: var(--gray-300); margin: 0; max-width: 52ch; }

/* ===============================================================
   MOUVEMENT
   Reproduit les effets du template (apparitions au défilement,
   compteurs, survols) sans WOW.js ni Swiper : ~40 lignes de CSS
   et autant de JS, contre 200 Ko de bibliothèques.
   Tout est désactivé si le visiteur a demandé moins d'animations.
   =============================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s cubic-bezier(.22,.61,.36,1),
              transform .5s cubic-bezier(.22,.61,.36,1);
}
[data-reveal].est-visible { opacity: 1; transform: none; }

/* Décalage en cascade dans une grille : les cartes arrivent l'une
   après l'autre plutôt que d'un bloc. */
[data-reveal-delai="1"] { transition-delay: .06s; }
[data-reveal-delai="2"] { transition-delay: .12s; }
[data-reveal-delai="3"] { transition-delay: .18s; }
[data-reveal-delai="4"] { transition-delay: .24s; }
[data-reveal-delai="5"] { transition-delay: .30s; }
[data-reveal-delai="6"] { transition-delay: .36s; }
[data-reveal-delai="7"] { transition-delay: .42s; }
[data-reveal-delai="8"] { transition-delay: .48s; }
[data-reveal-delai="9"] { transition-delay: .54s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --- Survols : profondeur plutôt que décoration ------------------ */
.carte-prestation {
  position: relative;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.carte-prestation::before {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: 3px; background: var(--red);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .25s ease;
}
.carte-prestation:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(17, 17, 17, .09);
}
.carte-prestation:hover::before { transform: scaleY(1); }
.carte-prestation__icone { transition: transform .25s ease; display: block; }
.carte-prestation:hover .carte-prestation__icone { transform: translateY(-2px) scale(1.06); }

.carte-reference { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.carte-reference:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(17,17,17,.09); }
.carte-reference__media { overflow: hidden; }
.carte-reference__media img { transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.carte-reference:hover .carte-reference__media img { transform: scale(1.05); }

.btn { transition: background-color .18s ease, color .18s ease,
                   border-color .18s ease, transform .12s ease; }
.btn:active { transform: translateY(1px); }

/* --- Compteurs ---------------------------------------------------- */
.chiffre__valeur {
  font-variant-numeric: tabular-nums;  /* pas de tremblement pendant le comptage */
}

/* --- En-tête : se compacte au défilement -------------------------- */
.site-header { transition: box-shadow .2s ease; }
.site-header.est-defile { box-shadow: 0 2px 12px rgba(17,17,17,.08); }
.site-header.est-defile .site-header__inner { min-height: 62px; }
.site-header__inner { transition: min-height .2s ease; }

/* --- Hero : traitement de l'image --------------------------------- */
.hero__media { position: relative; }
.hero__media::after {
  content: ""; position: absolute; right: -14px; bottom: -14px;
  width: 45%; height: 45%; z-index: -1;
  border: 3px solid var(--red); border-radius: var(--radius);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__texte > * { animation: entree .6s cubic-bezier(.22,.61,.36,1) backwards; }
  .hero__texte > *:nth-child(2) { animation-delay: .08s; }
  .hero__texte > *:nth-child(3) { animation-delay: .16s; }
  .hero__texte > *:nth-child(4) { animation-delay: .24s; }
  .hero__texte > *:nth-child(5) { animation-delay: .32s; }
}
@keyframes entree { from { opacity: 0; transform: translateY(14px); } }

/* --- Bande de logos : défilement continu -------------------------- */
.clients__piste { overflow: hidden; position: relative; }
.clients__piste::before, .clients__piste::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2;
  pointer-events: none;
}
.clients__piste::before { left: 0;  background: linear-gradient(90deg, var(--white), transparent); }
.clients__piste::after  { right: 0; background: linear-gradient(270deg, var(--white), transparent); }
.clients__defile {
  display: flex; gap: var(--sp-4); width: max-content;
  animation: defile 32s linear infinite;
}
.clients__piste:hover .clients__defile { animation-play-state: paused; }
.clients__defile .client-logo { width: 150px; flex: 0 0 auto; }
@keyframes defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .clients__defile { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .clients__defile [aria-hidden="true"] { display: none; }
}

/* ===============================================================
   RÉALISATIONS
   =============================================================== */
.page-entete { padding-block: var(--sp-5) var(--sp-3); }
.page-entete__h2 {
  font-family: var(--font-body); font-weight: 400;
  font-size: var(--t-h4); color: var(--gray-600); margin-bottom: var(--sp-2);
}
.page-entete__intro { max-width: 62ch; }

/* --- Liste des projets ------------------------------------------- */
.realisations-liste { list-style: none; display: grid; gap: var(--sp-4); }

.fiche-realisation {
  display: grid; gap: var(--sp-3);
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fiche-realisation:hover { border-color: var(--red); box-shadow: 0 8px 24px rgba(17,17,17,.07); }
@media (min-width: 720px) {
  .fiche-realisation { grid-template-columns: 300px 1fr; gap: 0; align-items: stretch; }
}
.fiche-realisation__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.fiche-realisation__media img { width: 100%; height: 100%; object-fit: cover; }
.fiche-realisation__corps { display: grid; gap: 10px; align-content: start; padding: var(--sp-3); }
.fiche-realisation__corps h3 { margin: 0; font-size: var(--t-h3); }
.fiche-realisation__corps h3 a { text-decoration: none; }
.fiche-realisation__corps h3 a:hover { color: var(--red); }
.fiche-realisation__meta { font-size: 0.875rem; color: var(--gray-600); margin: 0; }
.fiche-realisation__extrait { margin: 0; color: var(--gray-900); }

.etiquette {
  justify-self: start;
  font-family: var(--font-title); font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--red-dark); background: var(--red-soft);
  padding: 4px 10px; border-radius: 2px;
}

.lien-fleche {
  justify-self: start;
  font-family: var(--font-title); font-weight: 700; font-size: 0.9375rem;
  color: var(--black); text-decoration: none;
  border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.lien-fleche::after { content: " →"; color: var(--red); }
.lien-fleche:hover { color: var(--red-dark); }

/* --- Page projet -------------------------------------------------- */
.hero-projet { position: relative; }
.hero-projet__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-height: 460px; }
.hero-projet__placeholder {
  display: grid; place-items: center; aspect-ratio: 16 / 9; max-height: 360px;
  background: var(--gray-100); border-bottom: 1px dashed var(--gray-300);
  color: var(--gray-600); font-size: 0.875rem; text-align: center; padding: var(--sp-2);
}
.hero-projet__texte { padding-block: var(--sp-3) 0; }
.hero-projet h1 { margin-top: var(--sp-1); }

.fil { font-size: 0.8125rem; color: var(--gray-600); display: flex; flex-wrap: wrap; gap: 6px; }
.fil a { color: var(--gray-600); text-decoration: none; }
.fil a:hover { color: var(--red); }

/* --- Fiche résumé -------------------------------------------------- */
.fiche-resume { background: var(--gray-100); padding-block: var(--sp-3); margin-top: var(--sp-3); }
.fiche-resume__grille {
  display: grid; gap: var(--sp-2) var(--sp-3); margin: 0;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px)  { .fiche-resume__grille { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .fiche-resume__grille { grid-template-columns: repeat(6, 1fr); } }
.fiche-resume__item dt {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--gray-600); margin-bottom: 2px;
}
.fiche-resume__item dd {
  margin: 0; font-family: var(--font-title); font-weight: 700;
  font-size: 0.9375rem; color: var(--black); line-height: 1.3;
}

/* --- Corps du projet ------------------------------------------------ */
.projet { padding-block: var(--sp-5); }
.projet__bloc { margin-bottom: var(--sp-5); }
.projet__bloc h2 { font-size: var(--t-h3); margin-bottom: var(--sp-2); }
.projet__bloc :last-child { margin-bottom: 0; }

.liste-livrables { list-style: none; display: grid; gap: 10px; }
.liste-livrables li { padding-left: 1.75rem; position: relative; }
.liste-livrables li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--red);
}

.galerie {
  list-style: none; display: grid; gap: var(--sp-2);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.galerie--vide li { aspect-ratio: 4 / 3; }
.galerie--vide .carte-reference__placeholder { height: 100%; border-radius: var(--radius); }

/* --- Prestations liées ---------------------------------------------- */
.prestations-liees { list-style: none; display: grid; gap: var(--sp-2); }
@media (min-width: 640px) { .prestations-liees { grid-template-columns: repeat(2, 1fr); } }
.carte-liee {
  display: flex; gap: var(--sp-2); align-items: flex-start; height: 100%;
  padding: var(--sp-2); text-decoration: none;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}
.carte-liee:hover { border-color: var(--red); transform: translateY(-2px); }
.carte-liee__icone { color: var(--red); flex: 0 0 auto; }
.carte-liee strong {
  display: block; font-family: var(--font-title);
  font-size: 0.9375rem; color: var(--black);
}
.carte-liee em { font-style: normal; font-size: 0.8125rem; color: var(--gray-600); }

/* ===============================================================
   PRESTATIONS
   =============================================================== */
.cartes-prestations {
  list-style: none; display: grid; gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .cartes-prestations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cartes-prestations { grid-template-columns: repeat(3, 1fr); } }

.carte-detaillee {
  display: grid; gap: var(--sp-2); align-content: start; height: 100%;
  padding: var(--sp-3);
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.carte-detaillee:hover {
  border-color: var(--red); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(17,17,17,.08);
}
.carte-detaillee__icone { color: var(--red); }
.carte-detaillee h3 { margin: 0; font-size: var(--t-h4); }
.carte-detaillee h3 a { text-decoration: none; }
.carte-detaillee h3 a:hover { color: var(--red); }
.carte-detaillee__points { list-style: none; display: grid; gap: 6px; font-size: 0.9375rem; }
.carte-detaillee__points li { padding-left: 1.1rem; position: relative; color: var(--gray-900); }
.carte-detaillee__points li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 6px; height: 6px; background: var(--red); border-radius: 50%;
}
.btn--petit { justify-self: start; padding: 0.5rem 0.875rem; font-size: 0.8125rem; }

/* --- Page prestation ------------------------------------------------ */
.hero-prestation__placeholder {
  display: grid; place-items: center; aspect-ratio: 21 / 9; max-height: 380px;
  background: var(--gray-100); border-bottom: 1px dashed var(--gray-300);
  color: var(--gray-600); font-size: 0.875rem;
}
.hero-prestation__texte { padding-block: var(--sp-3) 0; }
.hero-prestation h1 { margin-top: var(--sp-1); }
.hero-prestation__h2 {
  font-family: var(--font-body); font-weight: 400;
  font-size: var(--t-h4); color: var(--gray-600);
}

.prestation { padding-block: var(--sp-4) var(--sp-5); }
.prestation__intro { font-size: 1.0625rem; margin-bottom: var(--sp-4); }
.prestation__corps h2 { font-size: var(--t-h3); margin-top: var(--sp-4); }
.prestation__corps h3 { font-size: var(--t-h4); margin-top: var(--sp-3); }
.prestation__corps > :last-child { margin-bottom: 0; }

/* Les sections qui suivent le corps de texte (FAQ, réalisations,
   prestations liées) sont des blocs autonomes : la marge des titres du
   corps ne s'y applique pas, il leur faut leur propre respiration.
   Sans ça, « Questions fréquentes » colle à la dernière étape du
   déroulé de mission. */
.prestation .projet__bloc { margin-top: var(--sp-6); }

.liste-detail { list-style: none; display: grid; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.liste-detail li { padding-left: 1.5rem; position: relative; }
.liste-detail li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; background: var(--red); border-radius: 50%;
}
.liste-detail strong { color: var(--black); }

/* --- Fiche pratique -------------------------------------------------- */
.fiche-pratique {
  margin-block: var(--sp-5) var(--sp-4);
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  padding: var(--sp-3);
}
.fiche-pratique h2 { font-size: var(--t-h4); margin-bottom: var(--sp-2); }
.fiche-pratique dl { display: grid; gap: var(--sp-2); margin: 0; }
.fiche-pratique__item dt {
  font-family: var(--font-title); font-weight: 700; font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--red-dark);
  margin-bottom: 2px;
}
.fiche-pratique__item dd { margin: 0; }

/* --- Encadrés --------------------------------------------------------- */
.encadre {
  margin-block: var(--sp-3);
  /* Un encadré qui suit directement le corps de texte a besoin de plus
     d'air qu'un encadré qui en suit un autre. */
  padding: var(--sp-3);
  border-left: 4px solid var(--red);
  background: var(--gray-100);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.encadre h2 { font-size: var(--t-h4); margin-bottom: var(--sp-1); }
.encadre p { margin: 0; }
.prestation__corps + .encadre,
.fiche-pratique + .encadre { margin-top: var(--sp-4); }
.encadre--inclus { border-left-color: var(--black); }
.encadre--legal {
  border-left-color: var(--gray-600); background: var(--white);
  border: 1px solid var(--gray-300); border-left: 4px solid var(--gray-600);
  font-size: 0.9375rem;
}

/* Listes numérotées des déroulés de mission */
.liste-etapes { counter-reset: etape; list-style: none; display: grid; gap: var(--sp-2); }
.liste-etapes li { counter-increment: etape; padding-left: 2.5rem; position: relative; font-size: var(--t-base); line-height: 1.65; }
.liste-etapes li::before {
  content: counter(etape);
  /* Pastille centrée sur la première ligne de texte, quelle que soit la
     taille de police fluide (16 à 18 px) : avec top: 0, elle remontait
     de 1 à 2 px selon la largeur d'écran. La hauteur de ligne du texte
     (1,65 × --t-base) est recalculée ici, car le pseudo-élément a sa
     propre taille de police. */
  position: absolute; left: 0; top: calc((1.65 * var(--t-base) - 26px) / 2);
  width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--red); color: var(--white);
  font-family: var(--font-title); font-weight: 700; font-size: 0.8125rem;
  line-height: 1; font-variant-numeric: tabular-nums;
  border-radius: 50%;
}

/* ===============================================================
   NOTRE CABINET
   =============================================================== */
.cabinet__intro { display: grid; gap: var(--sp-4); align-items: start; }
@media (min-width: 900px) {
  .cabinet__intro { grid-template-columns: 1.2fr 1fr; gap: var(--sp-5); }
}
.cabinet__histoire h2 { font-size: var(--t-h3); }

/* Neuf indicateurs qui remplacent les sections séparées « équipe » et
   « matériel », comme le demande le cahier des charges. Trois colonnes :
   9 tombe juste, sans rangée orpheline. */
.indicateurs { list-style: none; display: grid; gap: var(--sp-2); grid-template-columns: 1fr; }
@media (min-width: 560px)  { .indicateurs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .indicateurs { grid-template-columns: repeat(3, 1fr); } }

.indicateurs li {
  display: grid; gap: 4px; align-content: start;
  padding: var(--sp-3) var(--sp-2);
  background: var(--white);
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  text-align: center; justify-items: center;
  transition: border-color .2s ease;
}
.indicateurs li:hover { border-color: var(--red); }
.indicateur__icone { color: var(--red); }
.indicateur__valeur {
  font-family: var(--font-title); font-weight: 700;
  font-size: var(--t-h4); color: var(--black); line-height: 1.2;
}
.indicateur__label { font-size: 0.875rem; color: var(--gray-600); }

/* Secteurs accompagnés */
.secteurs {
  list-style: none; display: grid; gap: var(--sp-1);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .secteurs { grid-template-columns: repeat(2, 1fr); } }
.secteurs li {
  padding: 0.625rem 0 0.625rem 1.75rem; position: relative;
  border-bottom: 1px solid var(--gray-300);
}
.secteurs li::before {
  content: ""; position: absolute; left: 0; top: 1.1em;
  width: 10px; height: 2px; background: var(--red);
}

/* ===============================================================
   ACTUALITÉS
   =============================================================== */
.articles-grille {
  list-style: none; display: grid; gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .articles-grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .articles-grille { grid-template-columns: repeat(3, 1fr); } }

.carte-article {
  display: grid; height: 100%; align-content: start;
  background: var(--white);
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.carte-article:hover {
  border-color: var(--red); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(17,17,17,.08);
}
.carte-article__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.carte-article__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.carte-article:hover .carte-article__media img { transform: scale(1.04); }
.carte-article__media .carte-reference__placeholder { height: 100%; border: 0; border-radius: 0; }

.carte-article__corps { display: grid; gap: 8px; padding: var(--sp-2) var(--sp-3) var(--sp-3); }
.carte-article__date {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--gray-600);
}
.carte-article__corps h3 { margin: 0; font-size: var(--t-h4); line-height: 1.3; }
.carte-article__corps h3 a { text-decoration: none; }
.carte-article__corps h3 a:hover { color: var(--red); }
.carte-article__chapo { margin: 0; font-size: 0.9375rem; color: var(--gray-900); }

.articles-grille--compacte .carte-article__chapo { display: none; }

/* --- Page article ---------------------------------------------------- */
.article { padding-bottom: var(--sp-5); }
.article__hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-height: 440px; }
.article__hero-placeholder {
  display: grid; place-items: center; aspect-ratio: 16 / 9; max-height: 340px;
  background: var(--gray-100); border-bottom: 1px dashed var(--gray-300);
  color: var(--gray-600); font-size: 0.875rem;
}
.article__entete { margin-block: var(--sp-2) var(--sp-4); }
.article__entete h1 { margin-block: var(--sp-1) var(--sp-2); }
.article__chapo {
  font-size: 1.125rem; color: var(--gray-600); line-height: 1.55; margin: 0;
}

/* Confort de lecture : mesure resserrée, interlignage plus généreux que
   sur les pages de prestation, qui se parcourent plutôt qu'elles ne se lisent. */
.article__corps { font-size: 1.0625rem; line-height: 1.75; }
.article__corps h2 { font-size: var(--t-h3); margin-top: var(--sp-4); }
.article__corps h3 { font-size: var(--t-h4); margin-top: var(--sp-3); }
.article__corps ul, .article__corps ol { margin-bottom: var(--sp-2); padding-left: 1.25rem; }
.article__corps li { margin-bottom: 6px; }
.article__corps ul { list-style: disc; }
.article__corps ol { list-style: decimal; }

.article__cta { margin-top: var(--sp-5); display: grid; gap: var(--sp-2); justify-items: start; }

/* ===============================================================
   Bandeau de consentement
   Refuser et accepter ont exactement le même aspect et le même
   niveau : la CNIL sanctionne un refus rendu plus difficile ou moins
   visible que l'acceptation.
   =============================================================== */
.lien-bouton {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.lien-bouton:hover { color: var(--red-dark); }

.cookies {
  position: fixed; left: var(--sp-2); right: var(--sp-2); bottom: var(--sp-2);
  z-index: 200; display: flex; justify-content: center; pointer-events: none;
}
.cookies[hidden] { display: none; }
.cookies__boite {
  pointer-events: auto; width: 100%; max-width: 720px;
  background: var(--white); color: var(--gray-900);
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
  padding: var(--sp-3); max-height: calc(100vh - 2rem); overflow-y: auto;
}
.cookies__titre { font-family: var(--font-title); font-size: 1.125rem; margin: 0 0 var(--sp-1); color: var(--black); }
.cookies__titre:focus { outline: none; }
.cookies__texte { font-size: var(--t-sm); margin: 0 0 var(--sp-2); }
.cookies__texte a { color: var(--black); }

.cookies__details { border-top: 1px solid var(--gray-300); padding-top: var(--sp-2); margin-bottom: var(--sp-2); }
.cookies__details[hidden] { display: none; }
.cookies__choix {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start;
  font-size: var(--t-sm); margin-bottom: var(--sp-2); cursor: pointer;
}
.cookies__choix input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--red); }
.cookies__necessaires { font-size: .8125rem; color: var(--gray-600); margin: 0; }

.cookies__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); }
.cookies__btn {
  background: var(--black); color: var(--white); border-color: var(--black);
  flex: 1 1 10rem; justify-content: center;
}
.cookies__btn:hover, .cookies__btn:focus-visible { background: var(--gray-900); }
.cookies__btn[hidden], .cookies .lien-bouton[hidden] { display: none; }
.cookies .lien-bouton { font-size: var(--t-sm); }

@media (max-width: 767px) {
  /* Au-dessus de la barre d'action mobile (appel / devis) */
  .cookies { left: 0; right: 0; bottom: 0; }
  .cookies__boite { border-radius: 0; border-width: 1px 0 0; padding: var(--sp-2); max-height: 85vh; }
  .cookies__actions .lien-bouton { order: 3; width: 100%; text-align: center; padding: .25rem 0; }
}

/* --- Pages de texte (confidentialité, mentions) -------------------- */
.page-texte { max-width: 78ch; padding-block: var(--sp-5) var(--sp-6); }
.page-texte h1 { font-size: var(--t-h2); margin-bottom: var(--sp-1); }
.page-texte h2 { font-size: var(--t-h4); margin-top: var(--sp-4); }
.page-texte__maj { color: var(--gray-600); font-size: var(--t-sm); }
.tableau-texte { overflow-x: auto; margin-block: var(--sp-2); }
.tableau-texte table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.tableau-texte th, .tableau-texte td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--gray-300); vertical-align: top; }
.tableau-texte th { background: var(--gray-100); font-weight: 600; }
.tableau-texte td:first-child { font-family: ui-monospace, monospace; white-space: nowrap; }

/* --- Photos du cabinet (06/10/2026) ---------------------------------- */
.hero__image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.client-logo--image { background: none; border: 0; }
.client-logo--image img { height: 48px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1); opacity: .75; transition: filter .2s ease, opacity .2s ease; }
.client-logo--image:hover img { filter: none; opacity: 1; }
.hero-prestation__image { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; max-height: 380px; object-fit: cover; }

/* ===============================================================
   RETOURS CLIENT DU 08/10/2026
   =============================================================== */

/* --- Images : jamais déformées ------------------------------------- */
/* Toute image dont la boîte impose largeur ET hauteur est recadrée,
   jamais étirée. */
main img[width][height] { object-fit: cover; }

/* --- En-tête : 6 entrées de menu ------------------------------------ */
@media (min-width: 1101px) {
  .nav__list { gap: var(--sp-2); }
  .site-header__inner { gap: var(--sp-2); }
}
@media (min-width: 1101px) {
  .nav__item--mobile { display: none; }
  .nav__link, .site-header__cta { white-space: nowrap; }
}
@media (min-width: 1101px) and (max-width: 1240px) {
  /* Entre 1100 et 1240 px, l'e-mail s'efface (il reste au pied de
     page) : le téléphone et le bouton devis restent visibles. */
  .contact-mail { display: none; }
  .nav__link { font-size: 0.875rem; }
  .nav__list { gap: 14px; }
}

/* --- Surtitre « Catégorie 0X » -------------------------------------- */
.surtitre {
  display: block;
  font-family: var(--font-title); font-weight: 700; font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--red);
  margin-bottom: 4px;
}

/* --- Accueil : bloc compact par catégories (annexe 1) -------------- */
.section--compacte { padding-block: var(--sp-5); }
.section__entete--action {
  max-width: none; display: flex; flex-wrap: wrap; gap: var(--sp-2);
  align-items: flex-end; justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.section__entete--action h2 { margin-bottom: var(--sp-1); }
.section__entete--action .btn { flex: 0 0 auto; }

.categories-compactes { display: grid; gap: var(--sp-2); }
@media (min-width: 900px) {
  /* Largeur de chaque catégorie proportionnelle à son nombre de
     prestations (2 et 3) : toutes les cases ont la même largeur. */
  .categories-compactes { grid-template-columns: 2fr 3fr; }
}
.categorie-compacte {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--white);
  border: 1px solid var(--gray-300); border-radius: var(--radius);
}
.categorie-compacte__entete { padding: var(--sp-2) var(--sp-2) 12px; border-bottom: 1px solid var(--gray-300); }
.categorie-compacte__entete h3 { font-size: 1rem; margin: 0; line-height: 1.3; }
.categorie-compacte__liste {
  list-style: none; display: grid;
  grid-template-columns: repeat(var(--nb, 3), 1fr);
}
.categorie-compacte__liste li + li { border-left: 1px solid var(--gray-300); }
.categorie-compacte__liste a {
  display: grid; justify-items: center; align-content: start; gap: 8px; height: 100%;
  padding: var(--sp-2) 10px;
  text-align: center; text-decoration: none;
  font-family: var(--font-title); font-weight: 700; font-size: 0.8125rem;
  line-height: 1.3; color: var(--black);
  transition: background-color .15s ease, color .15s ease;
}
.categorie-compacte__liste a:hover { background: var(--red-soft); color: var(--red-dark); }
.categorie-compacte__icone { color: var(--red); transition: transform .2s ease; }
.categorie-compacte__liste a:hover .categorie-compacte__icone { transform: translateY(-2px); }
@media (max-width: 480px) {
  .categorie-compacte__liste a { padding: 12px 6px; font-size: 0.75rem; }
}

/* --- Page Nos prestations par catégories (annexe 2) ---------------- */
.section--categories { padding-top: var(--sp-3); }
.categorie + .categorie { margin-top: var(--sp-5); }
.categorie__entete {
  display: flex; gap: var(--sp-2); align-items: flex-end; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--gray-300);
}
.categorie__entete h2 { font-size: var(--t-h3); margin-bottom: 4px; }
.categorie__entete p { margin: 0; max-width: 90ch; font-size: var(--t-sm); color: var(--gray-600); }
.categorie__compte {
  flex: 0 0 auto; white-space: nowrap;
  font-size: 0.8125rem; color: var(--gray-600);
  border: 1px solid var(--gray-300); border-radius: 999px; padding: 2px 12px;
}
@media (max-width: 599px) { .categorie__compte { display: none; } }

@media (min-width: 640px)  { .cartes-prestations--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cartes-prestations--2 { grid-template-columns: repeat(2, 1fr); } }
.carte-detaillee { grid-template-rows: auto auto 1fr auto; }
.carte-detaillee__lien {
  font-size: 0.875rem; color: var(--gray-600); text-decoration: none;
}
.carte-detaillee:hover .carte-detaillee__lien { color: var(--red-dark); }
.carte-detaillee__lien::after { content: " →"; color: var(--red); }

/* --- Notre cabinet : haut de page (hero) --------------------------- */
.cabinet-hero { padding-block: var(--sp-5) var(--sp-5); }
.cabinet-hero .cabinet__intro { align-items: center; }
.cabinet-hero h1 { margin-bottom: var(--sp-1); }
.cabinet-hero .page-entete__h2 { margin-bottom: var(--sp-3); }
.cabinet__sous-titre { font-size: var(--t-h4); margin: 0 0 var(--sp-1); }
.cabinet__histoire p:last-child { margin-bottom: 0; }

/* --- Notre cabinet : 12 indicateurs --------------------------------- */
/* Deux colonnes dès le téléphone : 12 cartes sur une seule colonne
   faisaient défiler six écrans. */
.indicateurs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 559px) {
  .indicateurs li { padding: var(--sp-2) 10px; }
  .indicateur__valeur { font-size: 1rem; }
  .indicateur__label { font-size: 0.8125rem; line-height: 1.35; }
}
@media (min-width: 800px)  { .indicateurs { grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); } }
@media (min-width: 1100px) { .indicateurs { grid-template-columns: repeat(4, 1fr); } }
.indicateurs li { gap: 6px; }
.indicateur__icone { margin-bottom: 4px; }
.indicateur__valeur { font-size: 1.125rem; }

/* --- Étiquettes de réalisations (modèle : cartes Actualités) -------- */
.carte-realisation__media { aspect-ratio: 3 / 2; }
.carte-realisation .carte-article__corps { gap: 10px; }
.carte-realisation .etiquette { font-size: 0.6875rem; }

/* --- Accueil : chiffres clés sur une ligne ------------------------- */
.chiffre__valeur { white-space: nowrap; }
@media (max-width: 480px) {
  .chiffre__valeur { font-size: 1.625rem; }
  .chiffre__label { font-size: 0.8125rem; line-height: 1.35; }
}

/* Une page d'en-tête suivie d'une section : un seul espacement, pas deux
   (le vide sous l'intro de Nos réalisations faisait croire à un bug). */
.page-entete + .section { padding-top: var(--sp-3); }

/* ===============================================================
   CAPTURES CLIENT DU 10/10/2026
   =============================================================== */

/* --- Bande blanche entre l'appel à l'action et le pied de page ----
   Les deux blocs noirs étaient séparés par la marge haute du pied de
   page. Supprimée quand la page se termine par l'appel à l'action. */
main:has(.cta-final) + .site-footer { margin-top: 0; }
main:has(.cta-final) + .site-footer { border-top: 1px solid #2A2A2A; }

/* --- Haut de page en carte (pages prestation et réalisation) ------ */
.hero-carte { position: relative; padding-bottom: var(--sp-4); }
.hero-carte__fond { display: block; height: 220px; overflow: hidden; background: var(--gray-100); }
@media (min-width: 900px) { .hero-carte__fond { height: 380px; } }
.hero-carte__fond img { width: 100%; height: 100%; object-fit: cover; }
.hero-carte__fond--vide { background: linear-gradient(135deg, var(--gray-100), var(--gray-300)); }

.hero-carte__boite {
  position: relative;
  margin-top: -90px;
  display: grid; gap: var(--sp-3); align-items: center;
  padding: var(--sp-3) var(--sp-2);
  background: var(--white);
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(17,17,17,.08);
}
@media (min-width: 900px) {
  .hero-carte__boite {
    margin-top: -130px;
    grid-template-columns: 200px 1fr; gap: var(--sp-5);
    padding: var(--sp-5) var(--sp-5) var(--sp-4);
  }
}
.hero-carte__onglet {
  position: absolute; left: -1px; bottom: 100%;
  background: var(--black); color: var(--white); text-decoration: none;
  font-family: var(--font-title); font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 8px 16px; border-radius: var(--radius) var(--radius) 0 0;
}
.hero-carte__onglet:hover { background: var(--red); }

/* Grande icône au trait fin, comme sur le modèle fourni */
.hero-carte__icone { display: none; color: var(--red); justify-self: center; }
@media (min-width: 900px) { .hero-carte__icone { display: block; } }
.hero-carte__icone svg { width: 112px; height: 112px; stroke-width: 0.9; }

.hero-carte__texte { display: grid; gap: var(--sp-1); justify-items: start; min-width: 0; }
.hero-carte__texte h1 { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); }
.hero-carte__h2 {
  margin: 0; font-family: var(--font-body); font-weight: 400;
  font-size: var(--t-h4); color: var(--gray-600);
}
.hero-carte__intro { margin-top: var(--sp-1); }
.hero-carte__intro p { margin-bottom: var(--sp-1); }
.hero-carte__intro p:last-child { margin-bottom: 0; }
.hero-carte .lien-fleche { margin-top: var(--sp-1); }

/* Le corps de la page prestation démarre juste sous la carte */
.hero-carte + .prestation { padding-top: var(--sp-3); }
.hero-carte--projet + .fiche-resume { margin-top: 0; }

/* --- Plans exemples (modèle : vignette à gauche, texte à droite) ---- */
.liste-detail li.plan-exemple {
  display: grid; gap: var(--sp-2); align-items: start;
  padding-left: 0; padding-block: var(--sp-1);
}
.liste-detail li.plan-exemple::before { display: none; }
@media (min-width: 600px) {
  .liste-detail li.plan-exemple { grid-template-columns: 240px 1fr; gap: var(--sp-3); }
}
.plan-exemple__vignette {
  display: block; padding: 8px; background: var(--white);
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  transition: border-color .2s ease;
}
.plan-exemple__vignette:hover { border-color: var(--red); }
/* Un plan ne se recadre pas : on l'affiche en entier, sans le déformer */
.liste-detail .plan-exemple__vignette img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.plan-exemple__texte strong {
  display: block; margin-bottom: 4px;
  font-family: var(--font-title); font-size: var(--t-h4);
}
.plan-exemple__texte strong::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 18px; height: 2px; background: var(--red); margin-right: 10px;
}
@media (max-width: 599px) { .plan-exemple__vignette { max-width: 280px; } }

/* --- Bouton WhatsApp flottant -------------------------------------- */
.bouton-whatsapp {
  position: fixed; right: var(--sp-3); bottom: var(--sp-3); z-index: 80;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 14px;
  background: #25D366; color: #0B3D1E; text-decoration: none;
  font-family: var(--font-title); font-weight: 700; font-size: 0.9375rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(17,17,17,.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bouton-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(17,17,17,.22); }
@media (max-width: 767px) {
  /* Au-dessus de la barre Appeler / Devis gratuit ; rond, sans texte */
  .bouton-whatsapp { right: var(--sp-2); bottom: calc(56px + var(--sp-2)); padding: 14px; }
  .bouton-whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media print { .bouton-whatsapp { display: none; } }
