/* =========================================================
   SOLID TRANSPORTS — feuille de style principale
   Les couleurs et tailles sont réunies ici (variables) :
   changez-les une fois, tout le site suit.
   ========================================================= */

/* Polices hébergées sur le site (licence SIL Open Font License) */
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --rouge: #B3202A;          /* couleur d'action (boutons, accents) */
  --rouge-fonce: #8E1820;
  --rouge-clair: #F2A3A3;
  --texte: #1E2226;           /* texte principal, fond sombre */
  --texte-doux: #4A4F55;
  --texte-gris: #5E636A;
  --fond-clair: #F5F3F0;
  --bordure: #E6E3DF;
  --blanc: #FFFFFF;

  --police-titres: 'Barlow Condensed', system-ui, sans-serif;
  --police-texte: 'Barlow', system-ui, sans-serif;

  --largeur-max: 1200px;
  --rayon: 10px;
}

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

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 17px;
  line-height: 1.55;
  color: var(--texte);
  background: var(--blanc);
}

img { max-width: 100%; display: block; }
a { color: var(--rouge); }
a:hover { color: var(--rouge-fonce); }

h1, h2, h3 { font-family: var(--police-titres); font-weight: 700; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 76px); line-height: 0.98; }
h2 { font-size: clamp(34px, 4.5vw, 52px); }
h3 { font-size: 27px; }
p { margin: 0; }

.conteneur { max-width: var(--largeur-max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--claire { background: var(--fond-clair); }
.section--sombre { background: var(--texte); color: var(--blanc); }

.surtitre {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rouge);
}
.section--sombre .surtitre { color: var(--rouge-clair); }
.intro { font-size: 19px; color: var(--texte-doux); max-width: 700px; margin: 16px 0 48px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.bouton--principal { background: var(--rouge); color: var(--blanc); }
.bouton--principal:hover { background: var(--rouge-fonce); color: var(--blanc); }
.bouton--secondaire { background: var(--blanc); color: var(--texte); border-color: var(--texte); }
.bouton--secondaire:hover { background: var(--texte); color: var(--blanc); }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 10; background: var(--blanc); border-bottom: 1px solid var(--bordure); }
.entete__ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; max-width: var(--largeur-max); margin: 0 auto; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texte); }
.marque img { width: 64px; height: 64px; object-fit: contain; }
.marque span { font-family: var(--police-titres); font-weight: 700; font-size: 23px; letter-spacing: 0.04em; white-space: nowrap; }
.menu { display: flex; gap: 24px; font-weight: 500; }
.menu a { color: var(--texte); text-decoration: none; white-space: nowrap; }
.menu a:hover { color: var(--rouge); }
.entete__actions { display: flex; align-items: center; gap: 16px; }
.entete__tel { color: var(--texte); text-decoration: none; font-weight: 600; white-space: nowrap; }
.entete__actions .bouton { white-space: nowrap; }
@media (max-width: 1400px) { .entete__tel { display: none; } }
.marque { flex-shrink: 0; }
.bouton-menu { display: none; background: none; border: 0; padding: 10px; min-width: 44px; min-height: 44px; cursor: pointer; }

/* ---------- Accueil : bandeau principal ---------- */
.hero { background: var(--fond-clair); }
.hero__grille { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 88px 24px 96px; max-width: var(--largeur-max); margin: 0 auto; }
.hero__texte { flex: 1 1 520px; min-width: 0; }
.hero__texte h1 { margin-bottom: 24px; }
.hero__texte .intro { margin: 0 0 36px; font-size: 20px; max-width: 560px; }
.hero__boutons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.atouts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 500; }
.atouts li { display: flex; align-items: center; gap: 8px; }
.hero__visuel { flex: 1 1 420px; min-width: 0; }
.photo-a-venir {
  height: 440px; border-radius: var(--rayon);
  background: repeating-linear-gradient(135deg, #E9E5E0 0 14px, #E1DCD6 14px 28px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--texte-gris); font-weight: 600; padding: 24px;
}

/* ---------- Bande clients ---------- */
.clients { border-bottom: 1px solid var(--bordure); }
.clients__ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: 36px 24px; max-width: var(--largeur-max); margin: 0 auto; }
.clients__titre { font-weight: 600; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texte-gris); }
.clients__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 64px; font-family: var(--police-titres); font-weight: 700; font-size: 30px; letter-spacing: 0.04em; color: #8A8F95; }

/* ---------- Grilles de cartes ---------- */
.grille { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.carte {
  display: flex; flex-direction: column; gap: 12px;
  padding: 32px; border: 1px solid var(--bordure); border-radius: var(--rayon);
  background: var(--blanc); color: var(--texte); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
a.carte:hover { border-color: var(--rouge); transform: translateY(-3px); color: var(--texte); }
.carte p { color: var(--texte-doux); }
.carte__lien { margin-top: auto; font-weight: 600; color: var(--rouge); }
.carte--claire { background: var(--fond-clair); border-color: transparent; }

.etapes { list-style: none; margin: 0; padding: 0; }
.etape { background: var(--blanc); border-radius: var(--rayon); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.etape__num { font-family: var(--police-titres); font-weight: 700; font-size: 44px; line-height: 1; color: var(--rouge); }
.etape p { color: var(--texte-doux); }

.pourquoi { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid #E04848; padding-top: 20px; }
.pourquoi p { color: #C9CDD2; }

/* ---------- Engagements ---------- */
.engagements { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.engagements__titre { flex: 1 1 320px; }
.engagements__liste { flex: 2 1 480px; display: flex; flex-wrap: wrap; gap: 32px; }
.engagements__liste > div { flex: 1 1 240px; }
.engagements h3 { font-family: var(--police-texte); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.engagements p { color: var(--texte-doux); }

/* ---------- Devis ---------- */
.devis { display: flex; flex-wrap: wrap; gap: 56px; }
.devis__texte { flex: 1 1 380px; min-width: 0; }
.devis__contacts { display: flex; flex-direction: column; gap: 14px; font-weight: 600; }
.devis__contacts a { color: var(--texte); text-decoration: none; }
.formulaire {
  flex: 1 1 520px; min-width: 0; background: var(--blanc); border-radius: var(--rayon); padding: 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.formulaire label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.formulaire .pleine { grid-column: 1 / -1; }
.formulaire input, .formulaire select, .formulaire textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; min-height: 46px;
  border: 1px solid #C9C5BF; border-radius: 6px; background: var(--blanc);
}
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 2px solid var(--rouge); outline-offset: 1px; }
.formulaire .consentement { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--texte-doux); }
.formulaire .consentement input { min-height: 0; width: 20px; height: 20px; margin-top: 2px; }
.formulaire button { grid-column: 1 / -1; justify-content: center; font-size: 18px; }
.formulaire__message { grid-column: 1 / -1; font-weight: 600; color: var(--texte); background: #FBEBEB; border-left: 4px solid var(--rouge); padding: 12px 16px; border-radius: 6px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--texte); color: #C9CDD2; font-size: 15px; }
.pied a { color: #C9CDD2; text-decoration: none; }
.pied a:hover { color: var(--blanc); }
.pied__haut { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; padding: 56px 24px 32px; max-width: var(--largeur-max); margin: 0 auto; }
.pied__col { display: flex; flex-direction: column; gap: 8px; }
.pied__col strong { color: var(--blanc); }
.pied__marque { display: flex; align-items: center; gap: 12px; }
.pied__marque img { width: 44px; height: 44px; object-fit: contain; }
.pied__marque span { font-family: var(--police-titres); font-weight: 700; font-size: 22px; color: var(--blanc); letter-spacing: 0.04em; }
.pied__bas { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 20px 24px 32px; border-top: 1px solid #3A3F45; max-width: var(--largeur-max); margin: 0 auto; font-size: 14px; }

/* ---------- Animation douce à l'apparition ---------- */
.apparait { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .apparait { opacity: 1; transform: none; transition: none; } }

/* ---------- Mobile ---------- */
@media (max-width: 1100px) {
  .bouton-menu { display: inline-flex; align-items: center; justify-content: center; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--blanc); border-bottom: 1px solid var(--bordure); }
  .menu a { padding: 16px 24px; border-top: 1px solid var(--bordure); }
  .menu.ouvert { display: flex; }
  .entete__tel { display: none; }
  .section { padding: 64px 0; }
  .hero__grille { padding: 48px 24px 64px; }
  .photo-a-venir { height: 260px; }
  .formulaire { padding: 24px; }
}
@media (max-width: 520px) {
  .entete__actions .bouton { display: none; }
  .marque span { font-size: 19px; }
}

/* =========================================================
   PAGES SERVICES
   ========================================================= */
.hero--page .conteneur { padding-top: 56px; padding-bottom: 72px; }
.hero--page h1 { font-size: clamp(40px, 6vw, 64px); max-width: 900px; margin-bottom: 20px; }
.hero--page .intro { margin: 0 0 32px; font-size: 20px; }
.fil { font-size: 14px; color: var(--texte-gris); margin-bottom: 28px; }
.fil a { color: var(--texte-gris); }
.fil span { color: var(--texte); font-weight: 600; }

.prestations { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.prestation { display: flex; gap: 14px; align-items: flex-start; }
.prestation svg { flex-shrink: 0; margin-top: 4px; }
.prestation h3 { font-family: var(--police-texte); font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.prestation p { color: var(--texte-doux); }

.conteneur--etroit { max-width: 860px; }
.faq { border-top: 1px solid var(--bordure); }
.faq__item { border-bottom: 1px solid var(--bordure); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; font-size: 19px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 28px; font-weight: 400; color: var(--rouge);
}
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding: 0 0 22px; color: var(--texte-doux); max-width: 720px; }

.bande-cta { background: var(--rouge); color: var(--blanc); }
.bande-cta__ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 56px; padding-bottom: 56px; }
.bande-cta h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.bande-cta p { color: #FBE3E3; font-size: 18px; }
.bouton--blanc { background: var(--blanc); color: var(--rouge); }
.bouton--blanc:hover { background: var(--fond-clair); color: var(--rouge-fonce); }
.bouton--contour-blanc { color: var(--blanc); border-color: var(--blanc); }
.bouton--contour-blanc:hover { background: var(--blanc); color: var(--rouge); }

.autres-services { display: flex; flex-wrap: wrap; gap: 12px; }
.autre-service {
  padding: 12px 18px; border: 1px solid var(--bordure); border-radius: 999px;
  color: var(--texte); text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center;
}
.autre-service:hover { border-color: var(--rouge); color: var(--rouge); }

/* =========================================================
   VERSION 2 — retours client
   ========================================================= */
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.intro--sombre { color: #C9CDD2; }
.pourquoi__num { font-family: var(--police-titres); font-weight: 700; font-size: 18px; color: var(--rouge-clair); }
.moyen { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--rouge); padding-top: 20px; }
.moyen p { color: var(--texte-doux); }

/* Formulaire détaillé */
.formulaire--detaille { grid-template-columns: 1fr; border: 1px solid var(--bordure); }
.formulaire fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.formulaire legend { font-family: var(--police-titres); font-weight: 700; font-size: 24px; margin-bottom: 14px; padding: 0; }
.formulaire .aide { font-family: var(--police-texte); font-weight: 400; font-size: 14px; color: var(--texte-gris); }
.champs { display: grid; gap: 18px 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cases { display: grid; gap: 10px 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.formulaire .case { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; padding: 12px 14px; border: 1px solid #C9C5BF; border-radius: 6px; cursor: pointer; }
.formulaire .case input { min-height: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--rouge); }
.formulaire .case:has(input:checked) { border-color: var(--rouge); background: #FBEDED; }
.formulaire input[type="file"] { padding: 10px; background: var(--fond-clair); }
#devis .devis__texte { flex: 1 1 300px; }
#devis .formulaire { flex: 2 1 560px; }

/* Barre fixe sur smartphone */
.barre-mobile { display: none; }
@media (max-width: 1100px) {
  .barre-mobile {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--blanc);
    border-top: 1px solid var(--bordure); box-shadow: 0 -4px 16px rgba(30,34,38,.08);
  }
  .barre-mobile .bouton { flex: 1; justify-content: center; }
  body { padding-bottom: 76px; }
}
.section--claire .carte--claire { background: var(--blanc); }

/* Logos clients : hauteurs ajustées pour un poids visuel équivalent */
.logo-client { width: auto; display: block; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.logo-client:hover { filter: none; opacity: 1; }
.logo-client--cfi { height: 54px; }
.logo-client--atoutek { height: 34px; }
.logo-client--ckdb { height: 58px; }
@media (max-width: 520px) {
  .clients__logos { gap: 28px 40px; }
  .logo-client--cfi { height: 44px; } .logo-client--atoutek { height: 24px; } .logo-client--ckdb { height: 48px; }
}

/* =========================================================
   Logo en filigrane sur toutes les pages
   Réglez l'intensité avec --filigrane-opacite (0 = invisible, 0.1 = marqué)
   ========================================================= */
:root { --filigrane-opacite: 0.06; --filigrane-taille: min(78vmin, 720px); }
body::after {
  content: "";
  position: fixed;
  left: 50%; top: 50%;
  width: var(--filigrane-taille); height: var(--filigrane-taille);
  transform: translate(-50%, -50%);
  background: url("../images/logo-filigrane.webp") center / contain no-repeat;
  opacity: var(--filigrane-opacite);
  pointer-events: none;   /* ne gêne jamais les clics */
  z-index: 5;             /* sous l'en-tête et la barre mobile */
}
@media print { body::after { display: none; } }
.barre-mobile .bouton { white-space: nowrap; padding-left: 12px; padding-right: 12px; font-size: 16px; }

/* =========================================================
   VIDÉOS
   ========================================================= */
.video-bloc { position: relative; border-radius: var(--rayon); overflow: hidden; background: #E9E5E0; aspect-ratio: 16 / 10; }
.video-bloc video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.video-bloc.prete video { opacity: 1; }
.video-bloc.prete .video-bloc__attente { display: none; }
.video-bloc__attente {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px; color: var(--texte-gris); font-weight: 600;
  background: repeating-linear-gradient(135deg, #E9E5E0 0 14px, #E1DCD6 14px 28px);
}
.lien-video {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 12px; min-height: 48px;
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 17px; color: var(--texte);
}
.lien-video:hover { color: var(--rouge); }
.lien-video__icone { width: 40px; height: 40px; border-radius: 50%; background: var(--rouge); display: inline-flex; align-items: center; justify-content: center; }
.lien-video__duree { font-weight: 400; color: var(--texte-gris); }

.fenetre-video { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 12px; padding: 24px; color: var(--texte); }
.fenetre-video::backdrop { background: rgba(30, 34, 38, .78); }
.fenetre-video__entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.fenetre-video__entete h2 { font-size: 30px; }
.fenetre-video__fermer { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bordure); background: var(--blanc); font-size: 26px; line-height: 1; cursor: pointer; color: var(--texte); }
.fenetre-video__fermer:hover { border-color: var(--rouge); color: var(--rouge); }
.chapitres { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: chap; display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.chapitres li { counter-increment: chap; display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; font-size: 15px; }
.chapitres li::before { content: counter(chap); grid-row: span 2; font-family: var(--police-titres); font-weight: 700; font-size: 22px; color: var(--rouge); }
.chapitres strong { font-weight: 600; }
.chapitres span { color: var(--texte-doux); }

/* =========================================================
   RSE
   ========================================================= */
.encadre-rse { display: flex; flex-wrap: wrap; gap: 40px 64px; padding: 48px; border-radius: 14px; background: var(--fond-clair); border-left: 0; }
.encadre-rse__texte { flex: 1 1 380px; min-width: 0; }
.encadre-rse__axes { flex: 1 1 360px; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: center; }
.encadre-rse__axes li { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; background: var(--blanc); border-radius: 8px; }
.encadre-rse__axes strong { font-weight: 600; font-size: 17px; }
.encadre-rse__axes span { color: var(--texte-doux); font-size: 15px; }
@media (max-width: 600px) { .encadre-rse { padding: 28px 20px; } }

.axes { display: flex; flex-direction: column; gap: 56px; }
.axe { display: grid; grid-template-columns: 64px 1fr; gap: 24px; }
.axe__lettre {
  width: 56px; height: 56px; border-radius: 50%; background: var(--rouge); color: var(--blanc);
  display: flex; align-items: center; justify-content: center; font-family: var(--police-titres); font-weight: 700; font-size: 28px;
}
.axe h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 12px; }
.axe__intro { color: var(--texte-doux); font-size: 18px; margin-bottom: 18px; }
.axe__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.axe__liste li { display: flex; gap: 10px; align-items: flex-start; }
.axe__liste svg { flex-shrink: 0; margin-top: 3px; }
.axe__note { margin-top: 18px; padding: 14px 18px; border-radius: 8px; background: var(--fond-clair); font-size: 15px; color: var(--texte-doux); }
@media (max-width: 600px) { .axe { grid-template-columns: 1fr; gap: 12px; } }
.fenetre-video .video-bloc { aspect-ratio: 16 / 9; }

/* Cartes RSE illustrées (accueil) */
.grille-rse { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.carte-rse { display: flex; flex-direction: column; border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; background: var(--blanc); color: var(--texte); text-decoration: none; transition: border-color .2s, transform .2s; }
.carte-rse:hover { border-color: var(--rouge); transform: translateY(-3px); color: var(--texte); }
.carte-rse__media { aspect-ratio: 5 / 3; background: var(--fond-clair); }
.carte-rse__media img { width: 100%; height: 100%; object-fit: cover; }
.carte-rse__corps { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.carte-rse__corps h3 { font-size: 25px; }
.carte-rse__corps p { color: var(--texte-doux); }
.axe { scroll-margin-top: 100px; }

/* Nom « SOLID TRANSPORTS » à côté du logo : lettrage officiel en dessin vectoriel (SVG) */
.marque .marque__nom { height: 23px; width: auto; display: block; object-fit: initial; }
.pied__marque .marque__nom--pied { width: auto; height: 20px; object-fit: initial; }
@media (max-width: 520px) { .marque .marque__nom { height: 16px; } .marque img:first-child { width: 52px; height: 52px; } }

/* Pages légales */
.texte-legal h2 { font-size: 28px; margin: 40px 0 12px; }
.texte-legal h2:first-child { margin-top: 0; }
.texte-legal p, .texte-legal li { color: var(--texte-doux); }
.texte-legal p + p { margin-top: 10px; }
.texte-legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.formulaire .consentement a { color: var(--rouge); }

/* Vidéo intégrée dans une page service */
.video-page { width: 100%; display: block; border-radius: var(--rayon); background: #000; aspect-ratio: 16 / 9; }
/* Les médias (vidéos, illustrations) passent au-dessus du filigrane du logo */
.video-bloc, .video-page, .carte-rse__media { position: relative; z-index: 6; }
@media (max-width: 520px) { .lien-video__duree { display: none; } .lien-video { white-space: nowrap; } }

/* =========================================================
   BANDEAU AVEC VIDÉO EN ARRIÈRE-PLAN (style Atoutek)
   Intensité du voile sombre : modifier --voile-hero (0 = aucun, 1 = noir)
   ========================================================= */
.hero--video {
  --voile-hero: 0.72;
  position: relative; z-index: 6; isolation: isolate; overflow: hidden;
  background: #1E2226; color: var(--blanc);
  min-height: min(88vh, 760px); display: flex; align-items: center;
}
.hero--video .hero__fond {
  position: absolute; inset: 0; z-index: 0; border-radius: 0; aspect-ratio: auto;
  background: #1E2226 url("../videos/solid-court.jpg") center / cover no-repeat;
}
.hero--video .hero__fond video { object-fit: cover; }
.hero__voile {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(20,23,26,var(--voile-hero)) 0%, rgba(20,23,26,calc(var(--voile-hero) * .85)) 45%, rgba(20,23,26,calc(var(--voile-hero) * .35)) 100%),
    linear-gradient(0deg, rgba(20,23,26,.45) 0%, rgba(20,23,26,0) 35%);
}
.hero--video .hero__grille { position: relative; z-index: 2; width: 100%; padding-top: 96px; padding-bottom: 104px; }
.hero--video .hero__texte { flex: 0 1 720px; }
.hero--video h1 { color: var(--blanc); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero--video .surtitre { color: var(--rouge-clair); }
.hero--video .intro { color: #E6E8EA; }
.hero--video .atouts { color: var(--blanc); margin-top: 28px; }
.hero--video .hero__boutons { margin-bottom: 8px; }
.lien-video--clair { color: var(--blanc); margin-top: 8px; }
.lien-video--clair:hover { color: var(--rouge-clair); }
.lien-video--clair .lien-video__duree { color: #C9CDD2; }
@media (max-width: 700px) {
  .hero--video { min-height: auto; }
  .hero--video .hero__grille { padding-top: 64px; padding-bottom: 72px; }
  .hero__voile { background: rgba(20,23,26,.74); }
}

/* Pictogrammes des axes RSE */
.axe { grid-template-columns: 88px 1fr; }
.axe__icone {
  width: 76px; height: 76px; border-radius: 22px; background: var(--rouge);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px #FBEDED; position: relative; z-index: 6;
}
.axe__etiquette { margin: 0 0 6px; font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--rouge); }
@media (max-width: 600px) { .axe__icone { width: 64px; height: 64px; border-radius: 18px; } .axe__icone svg { width: 30px; height: 30px; } }

/* =========================================================
   SCÈNES ISOMÉTRIQUES ANIMÉES (page RSE)
   ========================================================= */
.axes { max-width: 1120px; }
.axe--scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.axe--scene .axe__media { order: 2; position: relative; z-index: 6; }
.axe--scene:nth-of-type(even) .axe__media { order: 0; }
.scene { width: 100%; height: auto; display: block; overflow: visible; }

/* État final (affiché tel quel si les animations sont désactivées) */
.scene__trajet { stroke-dasharray: var(--longueur); stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(224,72,72,.55)); }
.scene__vehicule { transform: translate(var(--dx), var(--dy)); }
.scene__etape { transform-box: view-box; }
/* Synchronisation : l'élément N de l'illustration et la ligne N du texte s'allument ensemble */
.axe--scene { --pas: 1.1s; --depart: .4s; }
@media (prefers-reduced-motion: no-preference) {
  .axe--scene.joue .scene__etape { animation: scene-apparaitre .7s cubic-bezier(.3,1.3,.5,1) both; animation-delay: calc(var(--depart) + (var(--e) - 1) * var(--pas)); }
  .axe--scene.joue .scene__trajet  { animation: scene-trace 3.4s cubic-bezier(.4,0,.2,1) .4s both; }
  .axe--scene.joue .scene__vehicule { animation: scene-rouler 3.2s cubic-bezier(.45,0,.25,1) .4s both; }
  .axe--scene.joue .scene--circulaire .scene__vehicule { animation-delay: 2.8s; }
  .axe--scene.joue .scene__halo { animation: scene-halo 2.6s ease-in-out 4.6s infinite; transform-box: fill-box; transform-origin: center; }
  .axe--scene.joue .scene__clignote { animation: scene-clignote 1.4s ease-in-out 4.6s infinite; }
  .axe--scene.joue .axe__liste li,
  .axe--scene.joue .axe__note { animation: ligne-allume 1.6s ease-out both; animation-delay: calc(var(--depart) + (var(--e) - 1) * var(--pas)); }
}
/* Fin de cycle : l'illustration s'efface doucement avant de recommencer */
.axe--scene.fin .scene__etape, .axe--scene.fin .scene__vehicule { opacity: 0; transition: opacity .6s ease; }
.axe--scene.fin .axe__liste li, .axe--scene.fin .axe__note { opacity: .65; transition: opacity .6s ease; }
.axe--scene .axe__liste li { border-radius: 8px; padding: 3px 8px; margin-left: -8px; }
@keyframes scene-apparaitre { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes scene-clignote { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes ligne-allume {
  0%   { opacity: .65; background-color: transparent; }
  25%  { opacity: 1;  background-color: rgba(179, 32, 42, .09); }
  100% { opacity: 1;  background-color: transparent; }
}
@keyframes scene-trace  { from { stroke-dashoffset: var(--longueur); } to { stroke-dashoffset: 0; } }
@keyframes scene-rouler { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }
@keyframes scene-halo   { 0%, 100% { opacity: .25; transform: scale(1); } 50% { opacity: .45; transform: scale(1.35); } }

@media (max-width: 860px) {
  .axe--scene { grid-template-columns: 1fr; gap: 20px; }
  .axe--scene .axe__media, .axe--scene:nth-of-type(even) .axe__media { order: 0; }
}

/* =========================================================
   NAVIGATION AU CLAVIER : contour visible sur l'élément actif
   ========================================================= */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 4px;
}
.pied a:focus-visible, .section--sombre a:focus-visible, .bande-cta a:focus-visible,
.hero--video a:focus-visible, .barre-mobile a:focus-visible { outline-color: #FFFFFF; }

/* Page Contact : étapes et ligne « urgence » sous le formulaire */
.devis__etapes { margin: 0 0 32px; padding-left: 22px; display: grid; gap: 12px; color: var(--texte-doux); }
.devis__etapes strong { color: var(--texte); }
.formulaire__urgence { grid-column: 1 / -1; margin: 4px 0 0; font-size: 15px; color: var(--texte-doux); }
.formulaire__urgence a { color: var(--texte); font-weight: 600; white-space: nowrap; }

/* Formulaire : champ piège invisible pour les humains (anti-robots) */
.formulaire .piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__message--ok { background: #E5F4E4; border-left-color: #1E6B3A; }
.formulaire button[disabled] { opacity: .6; cursor: wait; }

/* Page RSE : vidéo motion design en haut de page */
.video-rse-section { padding: 48px 0 0; }
.video-rse { aspect-ratio: 16 / 9; max-width: 1120px; margin: 0 auto; box-shadow: 0 30px 70px rgba(30,34,38,.18); }
.video-son { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px;
  border: 0; border-radius: 999px; background: rgba(30,34,38,.82); color: #FFFFFF; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.video-son:hover { background: var(--rouge); }
.video-son .onde { display: none; }
.video-son[aria-pressed="true"] .onde { display: inline; }
.video-son[aria-pressed="true"] .barre { display: none; }

/* =========================================================
   SERVICES PAR FAMILLES (accueil) et SOUS-MENU « Services »
   ========================================================= */
.familles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.famille__titre { font-size: 20px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 3px solid var(--rouge); color: var(--texte-doux); font-family: var(--police-texte); font-weight: 500; }
.famille__titre span { display: block; font-family: var(--police-titres); font-size: 30px; font-weight: 700; color: var(--texte); text-transform: uppercase; letter-spacing: .02em; }
.famille .grille--2 { grid-template-columns: 1fr; gap: 16px; }
@media (max-width: 1000px) { .familles { grid-template-columns: 1fr; gap: 40px; } .famille .grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .famille .grille--2 { grid-template-columns: 1fr; } }

.menu__groupe { position: relative; }
.menu__ouvrir { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--texte); cursor: pointer; white-space: nowrap; }
.menu__ouvrir:hover, .menu__ouvrir[aria-expanded="true"] { color: var(--rouge); }
.menu__ouvrir svg { transition: transform .2s; }
.menu__ouvrir[aria-expanded="true"] svg { transform: rotate(180deg); }
.sous-menu { display: none; position: absolute; top: calc(100% + 18px); left: -24px; z-index: 20; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: 0 18px 40px rgba(30,34,38,.14); padding: 22px 24px; grid-template-columns: repeat(3, max-content); gap: 8px 36px; }
.sous-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; } /* pont pour garder le survol */
.menu__ouvrir[aria-expanded="true"] + .sous-menu { display: grid; }
@media (hover: hover) and (min-width: 1101px) { .menu__groupe:hover .sous-menu { display: grid; } }
.sous-menu__famille { display: flex; flex-direction: column; gap: 10px; }
.sous-menu__titre { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rouge); }
.menu .sous-menu a { font-weight: 500; }
.menu .sous-menu__tous { grid-column: 1 / -1; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--bordure); color: var(--rouge); font-weight: 600; }

@media (max-width: 1100px) {
  .menu.ouvert { max-height: calc(100vh - 80px); overflow-y: auto; }
  .menu__ouvrir { width: 100%; justify-content: space-between; padding: 16px 24px; border-top: 1px solid var(--bordure); }
  .sous-menu { position: static; box-shadow: none; border: 0; border-radius: 0; padding: 0 24px 12px; grid-template-columns: 1fr; gap: 4px; background: var(--fond-clair); }
  .sous-menu::before { display: none; }
  .sous-menu__famille { gap: 0; padding-top: 12px; }
  .menu .sous-menu a { padding: 10px 0; border-top: 0; }
  .menu .sous-menu__tous { margin-top: 4px; padding-top: 12px; }
}

/* =========================================================
   MÉGA-MENU « Nos services » (proposition A) — remplace le sous-menu simple
   ========================================================= */
.menu__groupe { display: inline-flex; align-items: center; gap: 4px; }
.menu__services { color: var(--texte); text-decoration: none; font-weight: 500; white-space: nowrap; }
.menu__ouvrir { width: 30px; height: 30px; justify-content: center; border-radius: 6px; }
.menu__ouvrir:hover, .menu__ouvrir[aria-expanded="true"] { background: var(--fond-clair); }
.entete__ligne { position: relative; }
@media (min-width: 1101px) { .menu__groupe { position: static; } }
.sous-menu::before { top: -36px; height: 36px; } /* pont plus haut : couvre tout l’espace entre « Nos services » et le panneau */
.sous-menu { left: 50%; transform: translateX(-50%); top: 100%; width: min(960px, calc(100vw - 48px)); padding: 0; gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr)); background: #FAF8F5; border: 1px solid var(--bordure); border-top: 4px solid var(--rouge); }
.sous-menu__famille { padding: 24px 24px 20px; gap: 6px; }
.sous-menu__famille + .sous-menu__famille { border-left: 1px solid rgba(179,32,42,.35); }
.sous-menu__famille > summary { list-style: none; cursor: default; }
.sous-menu__famille > summary::-webkit-details-marker { display: none; }
.sous-menu__titre { font-size: 14px; }
.sous-menu__desc { margin: 0 0 10px; font-size: 14px; color: var(--texte-doux); }
.menu .sous-menu__lien { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin: 0 -12px; border-radius: 8px; white-space: normal; }
.sous-menu__lien strong { font-weight: 600; }
.sous-menu__lien small { font-size: 13.5px; color: var(--texte-doux); }
.menu .sous-menu__lien:hover, .menu .sous-menu__lien:focus-visible { background: var(--texte); color: var(--blanc); }
.menu .sous-menu__lien:hover small, .menu .sous-menu__lien:focus-visible small { color: #C9CDD2; }
.menu .sous-menu a.sous-menu__tous { display: block; grid-column: 1 / -1; margin: 0; padding: 14px 24px; border-top: 1px solid var(--bordure); background: var(--blanc); text-align: right; }

@media (max-width: 1100px) {
  .menu__groupe { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--bordure); }
  .menu .menu__services { padding: 16px 24px; border-top: 0; }
  .menu__ouvrir { width: 56px; height: 100%; padding: 0; border-top: 0; border-left: 1px solid var(--bordure); border-radius: 0; }
  .sous-menu { grid-column: 1 / -1; width: auto; left: auto; transform: none; border: 0; border-top: 1px solid var(--bordure); grid-template-columns: 1fr; background: var(--fond-clair); padding: 0; }
  .sous-menu__famille { padding: 0 24px; border-bottom: 1px solid var(--bordure); }
  .sous-menu__famille + .sous-menu__famille { border-left: 0; }
  .sous-menu__famille > summary { cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; }
  .sous-menu__famille > summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--rouge); }
  .sous-menu__famille[open] > summary::after { content: "–"; }
  .sous-menu__desc { margin-top: -6px; }
  .menu .sous-menu__lien { margin: 0; padding: 10px 0; }
  .menu .sous-menu__lien:hover { background: none; color: var(--rouge); }
  .menu .sous-menu__lien:hover small { color: var(--texte-doux); }
  .sous-menu__famille[open] { padding-bottom: 10px; }
  .menu .sous-menu a.sous-menu__tous { text-align: left; background: none; border-top: 0; padding: 16px 24px; }
}

/* Pages services : bloc « Pour quels besoins » */
.pour-qui { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: start; }
.pour-qui__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pour-qui__liste li { display: flex; gap: 10px; align-items: flex-start; font-size: 18px; }
@media (max-width: 860px) { .pour-qui { grid-template-columns: 1fr; gap: 20px; } }

/* Page « Nos services » */
.ancres-familles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ancres-familles a { padding: 10px 18px; border: 1px solid var(--bordure); border-radius: 999px; background: var(--blanc); color: var(--texte); text-decoration: none; font-weight: 600; }
.ancres-familles a:hover { border-color: var(--rouge); color: var(--rouge); }
.famille-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.famille-page__tete h2 { font-size: 40px; margin-bottom: 12px; }
@media (max-width: 960px) { .famille-page { grid-template-columns: 1fr; gap: 24px; } }
