/* ═══════════════════════════════════════════════════
   EXPERTS DEV — style.css
   Fidèle au vrai style Sosh.fr :
   • Fond blanc pur, sections très aérées
   • Couleur signature : bleu marine #1a237e (logo Experts Dev)
     + vert #2e7d32 (personnages du logo)
   • Police Nunito (arrondie, bold — proche du style Sosh)
   • Boutons arrondis (pill)
   • Cards blanches, ombre très légère
   • Hero sobre : texte centré + cards en ligne (pas d'illus flottante)
   + Menu style Bouygues Telecom (méga-dropdown)
═══════════════════════════════════════════════════ */

/* ── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Nunito', sans-serif;
  color: #1a1a2e;
  background: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── VARIABLES ─────────────────────────────────── */
:root {
  /* Couleurs tirées du logo Experts Dev */
  --bleu:       #1a237e;   /* bleu foncé du texte logo */
  --bleu-m:     #283593;
  --bleu-l:     #e8eaf6;
  --bleu-xl:    #f3f4fb;
  --vert:       #2e7d32;   /* vert des personnages logo */
  --vert-l:     #e8f5e9;
  --teal:       #00838f;
  --teal-l:     #e0f7fa;
  --orange:     #bf360c;
  --orange-l:   #fbe9e7;
  --purple:     #4527a0;
  --purple-l:   #ede7f6;
  --gold:       #f57f17;
  --gold-l:     #fff8e1;

  --txt:        #1a1a2e;
  --txt-m:      #37474f;
  --txt-l:      #607d8b;
  --border:     #e0e4ef;
  --bg:         #f7f8fc;
  --white:      #ffffff;

  --hdr-h:      108px;
  --tb-h:       34px;
  --r:          12px;
  --pill:       100px;
  --sh-sm:      0 2px 12px rgba(26,35,126,.07);
  --sh-md:      0 6px 30px rgba(26,35,126,.11);
  --sh-lg:      0 16px 56px rgba(26,35,126,.14);
  --t:          .2s ease;
}

.cw { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── TOPBAR ─────────────────────────────────────── */
.topbar {
  background: var(--bleu);
  color: rgba(255,255,255,.88);
  font-size: .74rem; font-weight: 600;
  height: var(--tb-h);
  display: flex; align-items: center;
  position: relative; z-index: 200;
}
.tw {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.ta { display: flex; align-items: center; gap: 14px; }
.ta a { opacity: .85; transition: opacity var(--t); }
.ta a:hover { opacity: 1; }
.ta-btn {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: white; padding: 3px 12px; border-radius: 20px;
  transition: background var(--t);
}
.ta-btn:hover { background: rgba(255,255,255,.28); }

/* ── HEADER ─────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  height: var(--hdr-h);
  transition: box-shadow var(--t);
}
.hdr.scrolled { box-shadow: var(--sh-md); }
.hw {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 20px;
}

/* Logo — zone gauche de poids égal à la zone droite : le menu reste
   parfaitement centré dans le header */
.logo-wrap { flex: 1 1 0; min-width: 0; display: flex; align-items: center; }
.logo-img {
  height: 88px; width: auto; max-width: 100%; object-fit: contain;
  transition: height var(--t);
}
/* Le logo se réduit légèrement au défilement, sans changer la hauteur
   de l'en-tête (qui sert de référence de position aux méga-menus) */
.hdr.scrolled .logo-img { height: 74px; }

/* ── NAV PRINCIPALE (Bouygues style) ─────────────── */
/* .main-nav sert de référentiel de position aux méga-menus :
   chaque .mega s'étend sur toute sa largeur (left:0 / right:0) */
.main-nav { flex: 0 0 auto; position: relative; display: flex; justify-content: center; }
.nav-ul { display: flex; align-items: center; justify-content: center; height: var(--hdr-h); }
.ni { position: static; height: 100%; display: flex; align-items: center; }

.nl {
  display: flex; align-items: center; gap: 5px;
  padding: 0 22px; height: 100%;
  font-size: .85rem; font-weight: 700;
  color: var(--txt-m); white-space: nowrap;
  transition: color var(--t);
  position: relative;
}
.nl::after {
  content: ''; position: absolute;
  bottom: 0; left: 22px; right: 22px;
  height: 3px; background: var(--bleu);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0); transition: transform var(--t);
}
.ni:hover .nl,
.ni:focus-within .nl { color: var(--bleu); }
.ni:hover .nl::after,
.ni:focus-within .nl::after { transform: scaleX(1); }
.nl-hl { color: var(--bleu); font-weight: 800; }
.nl-hl::after { display: none; }

.ar { opacity: .5; transition: transform var(--t); }
.ni:hover .ar, .ni:focus-within .ar { transform: rotate(180deg); opacity: 1; }

/* Menu déroulant compact — liste simple des secteurs, sans panneau large */
.ni.dd { position: relative; }
.dd-panel {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  transform: translateY(-8px);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--sh-lg);
  padding: 10px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t), transform var(--t);
  z-index: 200;
}
.ni.dd:hover .dd-panel,
.ni.dd:focus-within .dd-panel { opacity: 1; pointer-events: auto; transform: translateY(0); }
.dd-l {
  display: block; padding: 11px 14px; border-radius: 10px;
  font-size: .85rem; font-weight: 700; color: var(--txt-m);
  transition: background var(--t), color var(--t);
}
.dd-l:hover { background: var(--bleu-l); color: var(--bleu); }

/* Méga dropdown */
.mega {
  position: absolute; top: 100%; left: 50%;
  width: 760px; max-width: calc(100vw - 32px);
  transform: translate(-50%, -8px);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--sh-lg);
  padding: 26px 24px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t), transform var(--t);
  z-index: 200;
}
.ni:hover .mega,
.ni:focus-within .mega {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, 0);
}
/* Grille du panneau : autant de colonnes que déclarées dans
   config/navigation.php, plus une colonne étroite si carte promo.
   Avec promo, les colonnes de liens restent prioritaires en largeur
   pour que chaque libellé tienne sur une ligne. */
.mg-inner { display: grid; gap: 24px; }
.mg-c1 { grid-template-columns: 1fr; }
.mg-c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mg-c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mg-c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mg-c2.has-promo { grid-template-columns: 1fr 1fr minmax(170px, .6fr); }
.mg-c3.has-promo { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(170px, .6fr); }

.mt {
  font-size: .78rem; font-weight: 900;
  color: var(--txt); margin-bottom: 16px; padding-bottom: 9px;
  position: relative;
}
/* Filet d'accent sous les titres de colonne */
.mt::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px; border-radius: 2px;
  background: var(--gold);
}
.mc { display: flex; flex-direction: column; }
.ml {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 9px;
  font-size: .83rem; font-weight: 600; color: var(--txt-m);
  transition: background var(--t), color var(--t);
}
.ml:hover { background: var(--bleu-l); color: var(--bleu); }
.ml i { font-style: normal; font-size: .95rem; }

/* Promo card méga */
.mp {
  background: var(--bleu-xl); border-radius: 14px;
  padding: 16px 14px; display: flex; flex-direction: column; gap: 7px;
}
.mp-blue   { background: #e3f2fd; }
.mp-orange { background: #fbe9e7; }
.mp-teal   { background: #e0f7fa; }
.mp-tag {
  font-size: .6rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .08em; color: var(--bleu);
  background: var(--bleu-l); padding: 2px 9px; border-radius: 20px;
  display: inline-block; width: fit-content;
}
.mp-blue   .mp-tag { color: #1565c0; background: #bbdefb; }
.mp-orange .mp-tag { color: #bf360c; background: #ffccbc; }
.mp-teal   .mp-tag { color: #00838f; background: #b2ebf2; }
.mp strong { font-size: .9rem; font-weight: 800; line-height: 1.3; }
.mp small  { font-size: .74rem; color: var(--txt-l); }
.mp a      { font-size: .77rem; font-weight: 800; color: var(--bleu); margin-top: auto; }
.mp-blue   a { color: #1565c0; }
.mp-orange a { color: #bf360c; }
.mp-teal   a { color: #00838f; }

/* Header right — même poids que la zone logo (centrage du menu) */
.h-right { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.btn-devis {
  background: var(--bleu); color: white;
  padding: 10px 22px; border-radius: var(--pill);
  font-size: .85rem; font-weight: 800; white-space: nowrap;
  transition: background var(--t), transform var(--t);
}
.btn-devis:hover { background: var(--bleu-m); transform: translateY(-1px); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2.5px; background: var(--txt); border-radius: 3px; transition: all .3s; }

/* ── BOUTONS SOSH PILLS ──────────────────────────── */
.btn-sosh-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bleu); color: white;
  padding: 14px 30px; border-radius: var(--pill);
  font-family: 'Nunito', sans-serif;
  font-size: .92rem; font-weight: 800;
  border: 2.5px solid var(--bleu);
  transition: all var(--t); cursor: pointer; white-space: nowrap;
}
.btn-sosh-primary:hover {
  background: var(--bleu-m); border-color: var(--bleu-m);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,35,126,.28);
}
.btn-sosh-primary.sm { padding: 10px 22px; font-size: .84rem; }
.btn-sosh-primary.fw { width: 100%; }

.btn-sosh-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--bleu);
  padding: 14px 30px; border-radius: var(--pill);
  font-family: 'Nunito', sans-serif;
  font-size: .92rem; font-weight: 800;
  border: 2.5px solid var(--bleu);
  transition: all var(--t); cursor: pointer; white-space: nowrap;
}
.btn-sosh-ghost:hover { background: var(--bleu-l); }
.btn-sosh-ghost.sm { padding: 10px 22px; font-size: .84rem; }

/* ── HERO ——— SOSH AUTHENTIQUE ───────────────────────
   - Fond blanc pur
   - Texte centré ou aligné à gauche selon Sosh
   - Cards des offres en ligne (comme les forfaits Sosh)
   - Pas d'illustration complexe
   - Beaucoup d'espace blanc (Sosh est très aéré)
─────────────────────────────────────────────────── */
.hero {
  background: var(--white);
  padding: 72px 0 0;
}
.hero-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
}

/* Bandeau promo Sosh (barre en haut du hero) */
.hero-promo-bar {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bleu-xl); color: var(--bleu);
  padding: 8px 18px; border-radius: var(--pill);
  font-size: .8rem; font-weight: 700;
  margin-bottom: 28px;
}
.hpb-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--vert);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.65)} }

/* Titre hero Sosh : très grand, bold, sobre */
.hero-h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--txt);
  margin-bottom: 22px;
  max-width: 700px;
}
.h1-accent { color: var(--bleu); }

.hero-p {
  font-size: 1.05rem; color: var(--txt-l); line-height: 1.7;
  max-width: 560px; margin-bottom: 32px;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px;
}

/* ▶ Cartes de réassurance — icône en trait fin, titre, description
   courte, aucun bouton. Volontairement sobres : leur rôle est de rassurer
   d'un coup d'œil sous le bandeau, pas de dupliquer les tuiles détaillées
   de la section « Domaines d'expertise » plus bas. */
.trust-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 48px;
}
.tc {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 22px 20px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.tc:hover { border-color: var(--bleu-l); box-shadow: var(--sh-sm); transform: translateY(-2px); }

.tc-ico {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 14px;
  color: var(--purple);
}
.tc-ico .ti-ico { width: 22px; height: 22px; }

.tc-t { display: block; font-size: .95rem; font-weight: 800; color: var(--txt); margin-bottom: 6px; line-height: 1.3; }
.tc-p { font-size: .82rem; color: var(--txt-l); line-height: 1.6; }

/* Vague Sosh en bas du hero */
.hero::after {
  content: '';
  display: block;
  height: 60px;
  background: linear-gradient(to bottom right, var(--white) 49%, var(--bg) 50%);
  margin-top: 48px;
}

/* ── SECTION SERVICES ────────────────────────────── */
.services-section {
  background: var(--bg); padding: 72px 0 80px;
}

.sec-hd { text-align: center; margin-bottom: 48px; }
.sec-hd h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 900;
  letter-spacing: -.02em; color: var(--txt); margin-bottom: 10px;
}
.sec-hd p { font-size: .96rem; color: var(--txt-l); max-width: 500px; margin: 0 auto; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Cards Sosh : fond blanc, ombre douce, hover border bleu */
.svc-card {
  background: var(--white); border-radius: 20px;
  border: 2px solid var(--border); padding: 28px 22px;
  display: flex; flex-direction: column; gap: 13px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.svc-card:hover { border-color: var(--bleu); box-shadow: var(--sh-md); transform: translateY(-4px); }
.svc-card.svc-featured {
  border-color: var(--bleu); border-width: 2.5px;
  background: linear-gradient(160deg, var(--bleu-xl) 0%, var(--white) 60%);
}
.svc-top { display: flex; align-items: center; justify-content: space-between; }
.svc-ico {
  width: 52px; height: 52px; border-radius: 14px; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.bg-green  { background: var(--vert-l); }
.bg-teal   { background: var(--teal-l); }
.bg-blue   { background: var(--bleu-l); }
.bg-purple { background: var(--purple-l); }
.bg-orange { background: var(--orange-l); }
.bg-gold   { background: var(--gold-l); }

.svc-label {
  font-size: .62rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .06em; color: var(--bleu);
  background: var(--bleu-l); padding: 3px 10px; border-radius: 20px;
}
.svc-card h3 { font-size: 1.02rem; font-weight: 800; line-height: 1.35; color: var(--txt); }
.svc-card p  { font-size: .84rem; color: var(--txt-l); line-height: 1.65; flex: 1; }
.svc-inc { display: flex; flex-direction: column; gap: 6px; }
.svc-inc li { font-size: .82rem; color: var(--txt-m); display: flex; align-items: center; gap: 7px; }
.chk { color: var(--vert); font-weight: 900; font-size: .88rem; }

/* ── CHIFFRES — mosaïque façon groupe-sncf.com ───────
   Cartes asymétriques indépendantes (photo ou blanche), chacune formant
   une phrase complète — amorce discrète, chiffre en très gros, libellé
   qui la termine — plutôt qu'une rangée uniforme de chiffres alignés. */
.chiffres { background: var(--bg); padding: 76px 0; }

.ch-title {
  text-align: center; font-size: 1.65rem; font-weight: 900;
  color: var(--txt); letter-spacing: -.01em;
}
.ch-title::after {
  content: ''; display: block;
  width: 46px; height: 3px; margin: 16px auto 0;
  background: var(--gold); border-radius: 2px;
}

.ch-mosaic {
  display: grid;
  grid-template-columns: 1.15fr .9fr 1.15fr .9fr 1.15fr;
  gap: 16px; margin-top: 40px;
}

.ch-card {
  position: relative; overflow: hidden;
  min-height: 380px; border-radius: 18px;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.ch-card:hover { transform: translateY(-3px); }

.ch-card:not(.has-photo) {
  background: var(--white); border: 1.5px solid var(--border);
  box-shadow: var(--sh-sm); justify-content: flex-start;
}
.ch-card:not(.has-photo):hover { box-shadow: var(--sh-md); }

.ch-card.has-photo { justify-content: flex-end; color: white; }
.ch-card.has-photo:hover { box-shadow: 0 20px 44px rgba(13,20,66,.28); }

.ch-veil {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(9,12,40,.92) 0%, rgba(9,12,40,.5) 55%, rgba(9,12,40,.06) 100%);
}

.ch-body { position: relative; z-index: 1; padding: 26px 24px; }

.ch-lead { font-size: .82rem; font-weight: 700; margin: 0 0 6px; }
.ch-card:not(.has-photo) .ch-lead { color: var(--txt-l); }
.ch-card.has-photo .ch-lead { color: rgba(255,255,255,.85); }

.ch-ico { display: block; font-size: 1.8rem; line-height: 1; margin-bottom: 12px; }

.ch-num {
  font-family: 'Nunito', sans-serif; font-weight: 900; line-height: 1;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem); letter-spacing: -.01em;
}
.ch-card:not(.has-photo) .ch-num { color: var(--bleu); }
.ch-card.has-photo .ch-num { color: white; }

.ch-label {
  margin: 8px 0 0; font-size: .9rem; line-height: 1.5; max-width: 240px;
}
.ch-card:not(.has-photo) .ch-label { color: var(--txt-m); }
.ch-card.has-photo .ch-label { color: rgba(255,255,255,.85); }

@media (max-width: 900px) {
  /* Défilement horizontal plutôt qu'une grille qui tasse les cartes */
  .ch-mosaic {
    display: flex; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 2px;
  }
  .ch-mosaic::-webkit-scrollbar { display: none; }
  .ch-card { flex: 0 0 72%; scroll-snap-align: start; min-height: 300px; }
}

@media (max-width: 560px) {
  .ch-card { flex-basis: 82%; min-height: 260px; }
}

/* ── PROJETS ─────────────────────────────────────── */
.projets-section { background: var(--white); padding: 72px 0 80px; }

.pj-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px;
}
.pjf {
  padding: 8px 20px; border-radius: var(--pill);
  border: 2px solid var(--border); background: none;
  font-family: 'Nunito', sans-serif;
  font-size: .84rem; font-weight: 700; color: var(--txt-m);
  cursor: pointer; transition: all var(--t);
}
.pjf:hover, .pjf.act { background: var(--bleu); border-color: var(--bleu); color: white; }

/* Liste projets Sosh style — rangées sur fond blanc avec trait coloré à gauche */
.pj-list {
  border-radius: 18px; overflow: hidden;
  border: 1.5px solid var(--border);
}
.pj {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; background: var(--white);
  border-bottom: 1.5px solid var(--border);
  transition: background var(--t);
}
.pj:last-child { border-bottom: none; }
.pj:hover { background: var(--bg); }
.pj.hidden { display: none; }
.pj-stripe { width: 5px; height: 48px; border-radius: 4px; flex-shrink: 0; }

/* Vignette photo issue de la fiche projet (assets/img/projets/<slug>/…) ;
   à défaut de photo, on retombe sur l'emoji du projet, centré sur fond doux. */
.pj-ico {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; overflow: hidden;
  background: var(--bleu-l); background-size: cover; background-position: center;
}
.pj-ico.has-photo { font-size: 0; }
.pj-body { flex: 1; }
.pj-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 3px; }
.pj-tag {
  font-size: .66rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .05em; color: var(--bleu);
  background: var(--bleu-l); padding: 2px 9px; border-radius: 20px;
}
.pj-loc { font-size: .73rem; color: var(--txt-l); font-weight: 600; }
.pj-body h3 { font-size: .9rem; font-weight: 800; line-height: 1.3; margin-bottom: 3px; }
.pj-body p  { font-size: .78rem; color: var(--txt-l); line-height: 1.5; }
.pj-arr { flex-shrink: 0; color: var(--bleu); transition: transform var(--t); }
.pj-arr:hover { transform: translateX(4px); }

.pj-more { text-align: center; margin-top: 32px; }

/* ── POURQUOI NOUS ───────────────────────────────── */
.pourquoi-section { background: var(--bg); padding: 80px 0; }
.pq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.pill-label {
  display: inline-block; font-size: .7rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--bleu); background: var(--bleu-l);
  padding: 5px 14px; border-radius: var(--pill); margin-bottom: 14px;
}
.pill-label.light { background: rgba(255,255,255,.18); color: white; }

.pq-txt h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 900;
  letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px;
}
.pq-txt > p { font-size: .95rem; color: var(--txt-l); line-height: 1.7; margin-bottom: 28px; }
.avs { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.av { display: flex; gap: 13px; align-items: flex-start; }
.av-i {
  font-size: 1.25rem; width: 42px; height: 42px;
  background: var(--white); border-radius: var(--r); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-sm); border: 1.5px solid var(--border);
}
.av strong { font-size: .88rem; font-weight: 800; display: block; margin-bottom: 3px; }
.av p { font-size: .8rem; color: var(--txt-l); line-height: 1.5; }

/* Visual carte compétences */
.pq-vis { position: relative; }
.pqv-card {
  background: var(--white); border-radius: 22px;
  padding: 26px 24px; box-shadow: var(--sh-lg); border: 1.5px solid var(--border);
}
.pqv-hd {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; color: var(--txt-m); margin-bottom: 20px;
}
.pqv-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bleu); }
.pqv-bars { display: flex; flex-direction: column; gap: 13px; }
.br { display: flex; align-items: center; gap: 10px; }
.br > span { font-size: .78rem; font-weight: 700; min-width: 108px; }
.bt { flex: 1; height: 8px; background: var(--border); border-radius: 6px; overflow: hidden; }
.bf { height: 100%; border-radius: 6px; width: 0; transition: width 1.2s cubic-bezier(.4,0,.2,1); }
.br b { font-size: .75rem; font-weight: 800; color: var(--txt-m); min-width: 33px; text-align: right; }

.pqv-img {
  display: block; width: 100%; border-radius: 22px;
  box-shadow: var(--sh-lg); border: 1.5px solid var(--border); object-fit: cover;
}

.pqv-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--vert); color: white; border-radius: 16px;
  padding: 14px 18px; text-align: center;
  box-shadow: 0 8px 24px rgba(46,125,50,.3);
}
.pqv-badge > span { display: block; font-size: 1.5rem; margin-bottom: 3px; }
.pqv-badge strong { display: block; font-size: .8rem; font-weight: 800; }
.pqv-badge em { font-size: .68rem; opacity: .85; font-style: normal; }

/* ── PARTENAIRES ticker ──────────────────────────── */
.part-section {
  background: var(--white);
  border-top: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border);
  padding: 36px 0; overflow: hidden;
}
.part-lbl {
  text-align: center; font-size: .7rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--txt-l); margin-bottom: 18px;
}
.ticker-o { overflow: hidden; }
.ticker-t {
  display: flex; gap: 24px; align-items: center;
  animation: tick 28s linear infinite; width: max-content;
}
.ticker-t span {
  font-size: .84rem; font-weight: 700; color: var(--txt-l); white-space: nowrap;
  padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 9px;
  transition: all var(--t);
}
.ticker-t span:hover { border-color: var(--bleu); color: var(--bleu); }
@keyframes tick { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── CONTACT ─────────────────────────────────────── */
.contact-section { background: var(--bleu); padding: 88px 0; color: white; }
.ct-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 68px; align-items: start; }

.ct-l h2 {
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -.02em; margin-bottom: 14px;
}
.ct-l > p { font-size: .95rem; opacity: .82; line-height: 1.7; margin-bottom: 32px; }
.ct-coords { display: flex; flex-direction: column; gap: 12px; }
.cco { display: flex; align-items: center; gap: 12px; font-size: .88rem; opacity: .86; font-weight: 600; }
.cco > span:first-child { font-size: 1.1rem; }

/* Formulaire card blanche style Sosh */
.ct-card {
  background: var(--white); border-radius: 24px;
  padding: 36px; box-shadow: var(--sh-lg);
}
form#cform { display: flex; flex-direction: column; gap: 16px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { display: flex; flex-direction: column; gap: 5px; }
.fg label { font-size: .77rem; font-weight: 800; color: var(--txt); letter-spacing: .01em; }
.fg input, .fg select, .fg textarea {
  padding: 11px 14px; border: 2px solid var(--border); border-radius: 10px;
  font-family: 'Nunito', sans-serif; font-size: .88rem; color: var(--txt);
  background: var(--bg); outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--bleu); background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,35,126,.1);
}
.fg textarea { resize: vertical; }
.cf-note { font-size: .71rem; color: var(--txt-l); text-align: center; }
.cf-ok {
  background: var(--vert-l); color: var(--vert);
  border: 1.5px solid var(--vert); border-radius: 12px;
  padding: 12px 16px; font-size: .88rem; font-weight: 700; text-align: center;
}

/* ── FOOTER ──────────────────────────────────────── */
.footer { background: #0a0e1a; color: rgba(255,255,255,.68); }
.ft-main { padding: 60px 0 44px; }
.ft-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1.4fr; gap: 44px; }

.ft-brand .ft-logo { height: 56px; width: auto; object-fit: contain; margin-bottom: 14px; background: white; border-radius: 8px; padding: 4px 8px; }
.ft-brand p { font-size: .81rem; line-height: 1.7; max-width: 280px; margin-bottom: 18px; }
.ft-soc { display: flex; gap: 8px; }
.ft-soc a {
  width: 34px; height: 34px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .76rem; font-weight: 900;
  transition: all var(--t);
}
.ft-soc a:hover { background: var(--bleu); border-color: var(--bleu); }

.ft-col h5 {
  font-size: .7rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .1em; color: white; margin-bottom: 12px;
}
.ft-col { display: flex; flex-direction: column; gap: 1px; }
.ft-col a { font-size: .8rem; color: rgba(255,255,255,.52); padding: 4px 0; transition: color var(--t); }
.ft-col a:hover { color: var(--teal); }
.ft-col b { opacity: .45; font-size: .7rem; }
.ft-ctc { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.ft-ctc a { font-size: .78rem; color: rgba(255,255,255,.45); }
.ft-ctc a:hover { color: var(--teal); }

.ft-btm {
  border-top: 1px solid rgba(255,255,255,.06); padding: 16px 0;
}
.ft-btm .cw {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
}
.ft-btm span { font-size: .72rem; color: rgba(255,255,255,.28); }
.ft-btm a { color: rgba(255,255,255,.45); font-weight: 700; transition: color var(--t); }
.ft-btm a:hover { color: var(--teal); }

/* ── MOBILE NAV ──────────────────────────────────── */
/* Au-dessus de la barre supérieure (z-index 200), sinon l'en-tête du
   panneau — logo et bouton de fermeture — passe dessous. */
.mob-bg {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.42); z-index: 299;
}
.mob-bg.on { display: block; }
.mob-nav {
  position: fixed; top: 0; right: -100%;
  width: min(360px, 88vw); height: 100vh;
  background: var(--white); z-index: 300;
  overflow-y: auto; transition: right .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.mob-nav.on { right: 0; }
.mn-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1.5px solid var(--border);
  position: sticky; top: 0; background: var(--white); z-index: 10;
}
#mn-cls {
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg);
  border: none; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.mn-bd { padding: 14px 20px; display: flex; flex-direction: column; }
.mn-ct {
  font-size: .65rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .1em; color: var(--txt-l); padding: 10px 0 5px;
}
.mn-a {
  display: block; padding: 11px 0; font-size: .93rem; font-weight: 700;
  color: var(--txt); border-bottom: 1.5px solid var(--border);
  transition: color var(--t);
}
.mn-a:last-of-type { border-bottom: none; }
.mn-a:hover { color: var(--bleu); }

/* ── REVEAL SCROLL ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.vis { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────── */
/* Entre 900 et 1150px : menu resserré pour que le header
   (logo + menu centré + bouton devis) tienne sans débordement */
@media (max-width: 1150px) {
  .nl { padding: 0 9px; font-size: .78rem; }
  .nl::after { left: 9px; right: 9px; }
  .btn-devis { padding: 9px 16px; font-size: .8rem; }
  .mega { padding: 22px 18px; }
  /* Le méga suit la largeur du menu, plus étroite ici : la carte promo
     passe en pleine largeur sous les 2 colonnes de liens */
  .mg-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .mp { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .mp strong { flex: 1; }
  .mp a { margin-top: 0; margin-left: auto; white-space: nowrap; }
}

@media (max-width: 1060px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .ft-grid  { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .hero-cards .hc:last-child { grid-column: span 2; }
}

@media (max-width: 900px) {
  :root { --hdr-h: 84px; }
  .logo-img, .hdr.scrolled .logo-img { height: 64px; }
  .main-nav { display: none; }
  .burger   { display: flex; }
  .btn-devis { display: none; }

  .hero { padding: 48px 0 0; }
  /* Défilement horizontal plutôt qu'un empilement plein écran */
  .trust-row {
    display: flex; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    gap: 12px; margin-bottom: 32px; padding-bottom: 2px;
  }
  .trust-row::-webkit-scrollbar { display: none; }
  .tc { flex: 0 0 82%; scroll-snap-align: start; }
  .pq-row { grid-template-columns: 1fr; gap: 36px; }
  .pqv-badge { position: static; margin-top: 14px; display: inline-block; }
  .ct-row { grid-template-columns: 1fr; gap: 36px; }
  .mega { display: none !important; }
}

@media (max-width: 640px) {
  .tw > span { display: none; }   /* accroche trop longue sur petit écran */
  .tw        { justify-content: flex-end; }
  .svc-grid  { grid-template-columns: 1fr; }
  /* .ft-grid et .ch-grid : voir le bloc « VERSION MOBILE » plus bas
     (carrousels horizontaux au lieu d'un empilement). */
  .cf-row    { grid-template-columns: 1fr; }
  .ct-card   { padding: 22px; }
}

/* ═══════════════════════════════════════════════════════════
   AJOUTS BACKEND — messages flash, erreurs de formulaire,
   pages projet / erreur. (Version MVC du site)
═══════════════════════════════════════════════════════════ */

/* ── Messages flash ─────────────────────────────────────── */
.flash-wrap {
  position: fixed; top: 84px; right: 20px; z-index: 400;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(400px, calc(100vw - 40px));
}
.flash {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 15px; border-radius: 12px;
  font-size: .86rem; font-weight: 700; line-height: 1.45;
  box-shadow: var(--sh-lg); background: var(--white);
  border-left: 4px solid var(--bleu);
  animation: flashIn .32s ease both;
}
@keyframes flashIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.flash-success { border-left-color: #2e7d32; color: #1b5e20; background: #edf7ed; }
.flash-error   { border-left-color: #c62828; color: #b71c1c; background: #fdecea; }
.flash-x {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: .95rem; line-height: 1; color: inherit; opacity: .55;
}
.flash-x:hover { opacity: 1; }

/* ── Erreurs de champ & pot de miel ─────────────────────── */
.fg-err {
  display: block; margin-top: 6px;
  font-size: .76rem; font-weight: 700; color: #c62828;
}
.fg input.err, .fg textarea.err { border-color: #c62828; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-ko {
  margin-top: 14px; padding: 12px 14px; border-radius: 11px;
  background: #fdecea; color: #b71c1c;
  font-size: .84rem; font-weight: 700;
}

/* ── En-tête de page interne ────────────────────────────── */
.page-head {
  padding: 56px 0 40px;
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
}
.page-head h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -.02em;
  margin: 14px 0 12px;
}
.page-head p { color: var(--txt-m); max-width: 640px; line-height: 1.65; }
.page-head-meta { font-weight: 700; color: var(--txt-l); }
.back-link {
  display: inline-block; margin-bottom: 16px;
  font-size: .85rem; font-weight: 800; color: var(--bleu);
}
.back-link:hover { text-decoration: underline; }

/* ── Fiche projet ───────────────────────────────────────── */
.project-detail { padding: 48px 0 72px; background: var(--bg); }
.pd-card {
  background: var(--white); border-radius: 20px;
  border: 1.5px solid var(--border); box-shadow: var(--sh-md);
  padding: 32px; max-width: 780px;
}
.pd-ico { font-size: 2.4rem; margin-bottom: 12px; }
.pd-summary { font-size: 1.05rem; font-weight: 700; line-height: 1.6; margin-bottom: 16px; }
.pd-body { color: var(--txt-m); line-height: 1.75; margin-bottom: 24px; }
.pd-related-t { margin: 48px 0 20px; font-size: 1.4rem; font-weight: 900; }

/* ── Galerie photo — case de la grille « fiche projet » ─── */
.pd-fl-gallery {
  display: flex; flex-direction: column; text-align: left;
  border: none; cursor: zoom-in; font: inherit; width: 100%;
  transition: background .18s ease;
}
.pd-fl-gallery:hover { background: var(--bg); }
.pd-fl-thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px; margin: 2px 0 8px; border-radius: 8px; overflow: hidden;
}
.pd-fl-thumb {
  aspect-ratio: 1; background-size: cover; background-position: center;
  background-color: var(--bg);
}
.pd-fl-gallery dd { color: var(--bleu); }

.pd-lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10,12,20,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.pd-lightbox[hidden] { display: none; }
.pd-lb-img { max-width: min(92vw, 1100px); max-height: 84vh; border-radius: 10px; object-fit: contain; }
.pd-lb-close, .pd-lb-nav {
  position: absolute; background: rgba(255,255,255,.12); border: none; color: #fff;
  border-radius: 100px; cursor: pointer; display: grid; place-items: center;
  transition: background .18s ease;
}
.pd-lb-close:hover, .pd-lb-nav:hover { background: rgba(255,255,255,.24); }
.pd-lb-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 1.1rem; }
.pd-lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.8rem; }
.pd-lb-prev { left: 16px; }
.pd-lb-next { right: 16px; }
.pd-lb-count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.75); font-size: .82rem; font-weight: 700;
}

@media (max-width: 640px) {
  .pd-lb-nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .pd-lb-prev { left: 6px; }
  .pd-lb-next { right: 6px; }
}

/* ── États vides & pages d'erreur ───────────────────────── */
.empty-state {
  padding: 32px; text-align: center;
  color: var(--txt-l); font-weight: 700;
}
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-page .btn-sosh-primary { margin-top: 20px; }
.err-msg   { font-weight: 800; color: #b71c1c; margin-top: 12px; }
.err-loc   { font-size: .82rem; color: var(--txt-l); margin-top: 4px; }
.err-trace {
  margin-top: 16px; padding: 16px; border-radius: 12px;
  background: #1a1a2e; color: #e6e6f0;
  font-size: .74rem; line-height: 1.6;
  overflow-x: auto; max-height: 320px;
}
.setup-steps { margin: 20px 0 0 20px; line-height: 2; color: var(--txt-m); }
.setup-steps code {
  display: inline-block; padding: 3px 10px; border-radius: 7px;
  background: #1a1a2e; color: #7ee787; font-size: .82rem;
}

/* ── Pages éditoriales (À propos, légal) ────────────────── */
.page-body { padding: 48px 0 72px; background: var(--bg); }
.page-cols {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px;
  align-items: start;
}
.page-content {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 18px; box-shadow: var(--sh-sm);
  padding: 34px; line-height: 1.85; color: var(--txt-m);
}

/* Contenu riche (pages, actualités, description de projet) : les
   paragraphes sont justifiés par défaut — un alignement explicite posé
   depuis l'éditeur (centré, à droite) reste prioritaire, l'attribut
   style inline l'emporte toujours sur ces règles. */
.page-content p,
.pd-body p {
  text-align: justify; margin-bottom: 1.1em;
}
.page-content p:last-child,
.pd-body p:last-child { margin-bottom: 0; }

.page-content h2, .pd-body h2 { font-size: 1.35rem; font-weight: 900; margin: 1.4em 0 .6em; }
.page-content h3, .pd-body h3 { font-size: 1.15rem; font-weight: 900; margin: 1.3em 0 .5em; }
.page-content h2:first-child, .pd-body h2:first-child,
.page-content h3:first-child, .pd-body h3:first-child { margin-top: 0; }

.page-content ul, .pd-body ul,
.page-content ol, .pd-body ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.page-content li, .pd-body li { margin-bottom: .4em; }

.page-content a, .pd-body a { color: var(--bleu); text-decoration: underline; }
.page-content a:hover, .pd-body a:hover { color: var(--bleu-m); }

.page-content blockquote, .pd-body blockquote {
  margin: 0 0 1.1em; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--gold);
  font-style: italic; color: var(--txt);
}

.page-content strong, .pd-body strong { color: var(--txt); }

/* CTA de fin de page éditoriale */
.pg-cta {
  margin-top: 34px; padding: 32px 34px;
  border-radius: 18px; color: #fff;
  background-image: linear-gradient(135deg, #1a237e 0%, #283593 60%, #3949ab 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.pg-cta-eyebrow {
  display: inline-block; margin-bottom: 8px;
  padding: 4px 12px; border-radius: 20px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
}
.pg-cta h3 { color: #fff; margin: 0 0 8px !important; font-size: 1.3rem !important; }
.pg-cta p { margin: 0; color: rgba(255,255,255,.85); max-width: 460px; text-align: left !important; }
.pg-cta .btn-sosh-primary { flex-shrink: 0; background: #fff; color: var(--bleu); }
.pg-cta .btn-sosh-primary:hover { background: var(--gold-l); }

@media (max-width: 640px) {
  .pg-cta { flex-direction: column; align-items: flex-start; padding: 26px; }
  .pg-cta .btn-sosh-primary { width: 100%; text-align: center; }
}
.page-aside {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 18px; padding: 22px 20px;
  display: flex; flex-direction: column;
}
.page-aside .mt { margin-bottom: 14px; }
.page-aside a {
  padding: 9px 0; font-size: .85rem; font-weight: 700; color: var(--txt-m);
  border-bottom: 1px solid var(--border);
  transition: color var(--t);
}
.page-aside a:last-child { border-bottom: none; }
.page-aside a:hover { color: var(--bleu); }

@media (max-width: 900px) {
  .page-cols { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   DOMAINES D'EXPERTISE — cartes compactes
   Grille auto-adaptative : icône teintée, titre, description, points
   inclus. Se comporte proprement pour n'importe quel nombre de domaines,
   sans case vide en fin de grille.
═══════════════════════════════════════════════════════════ */

.dxp-section { padding: 78px 0 84px; background: var(--white); }
.dom-hd { margin-bottom: 46px; }

.dxp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.dxp {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 26px 24px;
  text-decoration: none; color: inherit;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.dxp:hover, .dxp:focus-visible {
  border-color: var(--bleu-l); box-shadow: var(--sh-md); transform: translateY(-3px);
}
.dxp:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

.dxp-label {
  align-self: flex-start; margin-bottom: 12px;
  padding: 3px 11px; border-radius: 20px;
  background: var(--gold-l); color: #8a5a00;
  font-size: .6rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .1em;
}

.dxp-ico {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 16px;
  border-radius: 13px; font-size: 1.5rem;
}
.dxp.bg-green  .dxp-ico { background: var(--vert-l); }
.dxp.bg-teal   .dxp-ico { background: var(--teal-l); }
.dxp.bg-blue   .dxp-ico { background: var(--bleu-l); }
.dxp.bg-purple .dxp-ico { background: var(--purple-l); }
.dxp.bg-orange .dxp-ico { background: var(--orange-l); }
.dxp.bg-gold   .dxp-ico { background: var(--gold-l); }

.dxp-t {
  font-size: .96rem; font-weight: 900; line-height: 1.3;
  color: var(--txt); margin-bottom: 10px;
}
.dxp-p {
  font-size: .82rem; font-weight: 500; line-height: 1.6;
  color: var(--txt-m); margin-bottom: 14px;
}

.dxp-feats { display: block; margin-bottom: 16px; }
.dxp-feats span {
  display: block; position: relative;
  padding: 2px 0 2px 18px;
  font-size: .78rem; font-weight: 600;
  color: var(--txt-m);
}
.dxp-feats span::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--vert); font-weight: 900;
}

.dxp-cta {
  margin-top: auto; padding-top: 4px;
  font-size: .8rem; font-weight: 900; letter-spacing: .02em;
  color: var(--bleu);
}

.dxp.dxp-featured { border-color: var(--bleu); border-width: 2px; }

/* Liseré haut coloré par domaine */
.dxp::before {
  content: ''; position: absolute; top: -1.5px; left: 14px; right: 14px;
  height: 3px; border-radius: 0 0 3px 3px;
}
.dxp.bg-green::before  { background: var(--vert); }
.dxp.bg-teal::before   { background: var(--teal); }
.dxp.bg-blue::before   { background: var(--bleu); }
.dxp.bg-purple::before { background: var(--purple); }
.dxp.bg-orange::before { background: var(--orange); }
.dxp.bg-gold::before   { background: var(--gold); }

.dxp.dxp-hidden { display: none; }

@media (max-width: 1060px) {
  .dxp-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .dxp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  /* Défilement horizontal plutôt qu'empilement */
  .dxp-grid {
    display: flex; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    gap: 12px; padding-bottom: 2px;
  }
  .dxp-grid::-webkit-scrollbar { display: none; }
  .dxp { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ═══════════════════════════════════════════════════════════
   BANDEAU PRINCIPAL — slider 1920 × 500 px
═══════════════════════════════════════════════════════════ */

.slider {
  position: relative; overflow: hidden;
  height: 500px; max-height: 72vh;
  background: var(--bleu);
}
.slider-track { position: relative; height: 100%; }

.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .75s ease, visibility .75s ease;
}
.slide.on { opacity: 1; visibility: visible; z-index: 2; }

.slide-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: transform 7s linear;
}
.slide.on .slide-bg { transform: scale(1.12); }

/* Dégradés de repli, sans photo */
.slide-bleu  .slide-bg { background-image: linear-gradient(115deg, #0d1440 0%, #1a237e 55%, #283593 100%); }
.slide-nuit  .slide-bg { background-image: linear-gradient(115deg, #05070f 0%, #16213e 55%, #0f3460 100%); }
.slide-vert  .slide-bg { background-image: linear-gradient(115deg, #052e16 0%, #14532d 55%, #2e7d32 100%); }
.slide-terre .slide-bg { background-image: linear-gradient(115deg, #3b1503 0%, #8d2708 55%, #bf360c 100%); }

.slide-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(6, 9, 32, .88) 0%, rgba(6, 9, 32, .62) 48%, rgba(6, 9, 32, .3) 100%);
}

.slide-in { position: relative; z-index: 2; color: #fff; max-width: 760px; }

.slide-eyebrow {
  display: inline-flex; align-items: center;
  padding: 6px 15px; margin-bottom: 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
}

.slide-t {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -.02em;
}
.slide-accent { color: #ffd54f; }

.slide-p {
  margin-top: 16px; max-width: 620px;
  font-size: 1rem; line-height: 1.7;
  color: rgba(255, 255, 255, .9);
}

.slide-act { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-slide-ghost {
  display: inline-block;
  padding: 13px 26px; border-radius: var(--pill);
  border: 2px solid rgba(255, 255, 255, .55);
  color: #fff; font-size: .87rem; font-weight: 800;
  transition: background var(--t), border-color var(--t);
}
.btn-slide-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

/* Contrôles */
.slider-arw {
  position: absolute; top: 50%; z-index: 5;
  transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .34);
  color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: background var(--t);
}
.slider-arw:hover { background: rgba(255, 255, 255, .3); }
.slider-arw.prev { left: 22px; }
.slider-arw.next { right: 22px; }

.slider-dots {
  position: absolute; z-index: 5; bottom: 22px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 9px;
}
.slider-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .42); border: none; cursor: pointer;
  transition: width var(--t), background var(--t);
}
.slider-dot.on { width: 28px; border-radius: 6px; background: #ffd54f; }

/* Bande des 3 pôles, juste sous le bandeau principal */
.poles { padding: 34px 0 0; background: var(--white); }

@media (max-width: 900px) {
  .slider { height: 430px; }
  .slider-arw { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   ACTUALITÉS
═══════════════════════════════════════════════════════════ */

.news-section { padding: 78px 0; background: var(--bg); }
.news-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.news-hd h2 { margin-top: 10px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.nw {
  display: flex; flex-direction: column;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.nw:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.nw-media {
  position: relative; display: block; height: 178px;
  background-color: var(--bleu);
  background-image: linear-gradient(135deg, #1a237e 0%, #283593 60%, #3949ab 100%);
  background-size: cover; background-position: center;
}
.nw-cat {
  position: absolute; left: 14px; bottom: 14px;
  padding: 4px 12px; border-radius: 100px;
  background: rgba(255, 255, 255, .92); color: var(--bleu);
  font-size: .66rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .08em;
}

.nw-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.nw-date { font-size: .74rem; font-weight: 800; color: var(--txt-l); }
.nw-t {
  display: block; margin: 8px 0 10px;
  font-size: 1rem; font-weight: 900; line-height: 1.35; color: var(--txt);
}
.nw-x { font-size: .86rem; line-height: 1.6; color: var(--txt-m); }
.nw-more {
  margin-top: auto; padding-top: 16px;
  font-size: .82rem; font-weight: 900; color: var(--bleu);
}
.nw:hover .nw-more { text-decoration: underline; }

.nw-hero { width: 100%; border-radius: 14px; margin-bottom: 22px; }

@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  /* .news-grid : voir le bloc « VERSION MOBILE » plus bas (carrousel horizontal). */
  .news-hd { flex-direction: column; align-items: flex-start; }
}

/* Coordonnées de la page contact */
.ct-agences { margin-top: 28px; }
.ct-agences-t {
  font-size: .72rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255, 255, 255, .7); margin-bottom: 10px;
}
.ct-agences ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ct-agences li { font-size: .85rem; font-weight: 700; color: rgba(255, 255, 255, .92); }

@media (prefers-reduced-motion: reduce) {
  .slide-bg, .slide.on .slide-bg { transform: none; transition: none; }
}

/* Fiche projet : métadonnées et liste d'intervention */
.pd-h2 { margin: 26px 0 14px; font-size: 1.15rem; font-weight: 900; color: var(--txt); }
.pd-list { margin: 0 0 26px; }
.pd-list li {
  position: relative; padding: 6px 0 6px 22px;
  font-size: .92rem; line-height: 1.7; color: var(--txt-m);
}
.pd-list li::before {
  content: '▪'; position: absolute; left: 2px; top: 6px;
  color: var(--gold); font-weight: 900;
}
.pd-list li.pd-phase {
  margin-top: 18px; padding-left: 0;
  font-size: .74rem; font-weight: 900; color: var(--bleu);
  text-transform: uppercase; letter-spacing: .09em;
}
.pd-list li.pd-phase::before { content: none; }

.pd-meta { margin-bottom: 22px; }
.pd-meta dt {
  font-size: .68rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .08em; color: var(--txt-l); margin-top: 14px;
}
.pd-meta dd { font-size: .86rem; font-weight: 600; line-height: 1.55; color: var(--txt-m); }

/* Fiche projet — bandeau d'informations */
.pd-fiche {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; margin-bottom: 28px;
  background: var(--border);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.pd-fl { background: var(--white); padding: 18px 20px; }
.pd-fl dt {
  font-size: .68rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .09em; color: var(--txt-l); margin-bottom: 6px;
}
.pd-fl dd { font-size: .88rem; font-weight: 700; line-height: 1.55; color: var(--txt); }
.pd-h {
  margin: 26px 0 12px; font-size: 1.05rem; font-weight: 900;
  padding-bottom: 9px; border-bottom: 2px solid var(--gold); display: inline-block;
}
.pd-card { max-width: none; }
.pd-body { white-space: normal; }

/* ═══════════════════════════════════════════════════════════
   VERSION MOBILE — ajustements
═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  /* Le bandeau prend la hauteur de son contenu : en hauteur fixe, le
     texte et les boutons débordaient du cadre et se faisaient rogner. */
  .slider      { height: auto; min-height: 400px; max-height: none; }
  .slider-track { height: auto; }

  .slide {
    position: relative; inset: auto;
    display: none; opacity: 1; visibility: visible;
    padding: 44px 0 72px;
    min-height: 400px;
  }
  .slide.on { display: flex; }

  .slide-t { font-size: clamp(1.55rem, 7vw, 2.1rem); }
  .slide-p { font-size: .92rem; margin-top: 14px; }
  .slide-eyebrow { font-size: .64rem; padding: 5px 12px; margin-bottom: 14px; }

  .slide-act { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .slide-act a { text-align: center; }

  .slider-dots { bottom: 26px; }
}

@media (max-width: 640px) {
  .ch-title { font-size: 1.35rem; }

  /* Actualités : une carte pleine largeur à la fois, glissée au doigt */
  .news-grid {
    display: flex; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 4px;
  }
  .news-grid::-webkit-scrollbar { display: none; }
  .nw { flex: 0 0 84%; scroll-snap-align: start; }

  /* Titres de section */
  .sec-hd h2   { font-size: 1.5rem; }
  .page-head h1 { font-size: 1.9rem; }
  .news-hd     { gap: 14px; }

  /* Fiche projet : une information par ligne */
  .pd-fiche { grid-template-columns: 1fr; }
  .pd-card  { padding: 22px; }

  /* Pied de page en grille 2 colonnes plutôt qu'empilé */
  .ft-grid {
    grid-template-columns: 1fr 1fr; gap: 30px 20px;
  }
  .ft-brand { grid-column: 1 / -1; }
  .ft-btm .cw { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 420px) {
  .hw { padding: 0 16px; gap: 10px; }
  .cw { padding: 0 16px; }
}

@media (max-width: 640px) {
  /* Implantations : une par ligne, plus lisible que la liste en ligne */
  .ct-agences ul { flex-direction: column; gap: 6px; }
  .ct-card { padding: 20px; }
  .cf-row  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Filtres projets : bande défilante horizontalement plutôt que
     cinq pastilles empilées sur 227 px de haut */
  .pj-filters {
    display: flex; flex-wrap: nowrap;
    overflow-x: auto; gap: 8px;
    padding-bottom: 6px; margin-bottom: 18px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .pj-filters::-webkit-scrollbar { display: none; }
  .pjf { flex: 0 0 auto; white-space: nowrap; }

  /* Carte projet : bandeau de couleur en haut, contenu en pile */
  .pj { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pj-stripe { width: 100%; height: 4px; }
  .pj-arr { align-self: flex-end; }
}

/* ═══════════════════════════════════════════════════════════
   CARRIÈRES — mosaïque de 3 photos + texte (style edf.fr)
═══════════════════════════════════════════════════════════ */

.careers-section { padding: 84px 0; background: var(--white); }

.careers-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}

.careers-media {
  display: flex; gap: 2px;
  height: 400px; border-radius: 16px; overflow: hidden;
}
.careers-ph {
  flex: 1; background-size: cover; background-position: center;
  background-color: var(--bleu-l);
}

.careers-txt h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900;
  color: var(--txt); line-height: 1.25; letter-spacing: -.01em;
}
.careers-txt h2::after {
  content: ''; display: block;
  width: 46px; height: 3px; margin-top: 18px;
  background: var(--gold); border-radius: 2px;
}
.careers-txt p {
  margin: 22px 0 28px; max-width: 480px;
  font-size: .95rem; line-height: 1.75; color: var(--txt-m);
}

@media (max-width: 900px) {
  .careers-section { padding: 56px 0; }
  .careers-row { grid-template-columns: 1fr; gap: 28px; }
  .careers-media { height: 260px; order: -1; }
}

@media (max-width: 480px) {
  .careers-media { height: 200px; border-radius: 12px; }
  .careers-txt p { font-size: .88rem; }
}
