/* ═══════════════════════════════════════════════════════════════════════
   enhance.css — couche de refonte 2026
   Se charge APRÈS style.css et portfolio.css : contient les composants
   ajoutés (bandeau de confiance, étapes, calculateur, lightbox, tableau
   comparatif, barre d'action mobile…) et les corrections d'ensemble.
   Fichier écrit à la main — il n'est pas régénéré par build_site.py.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --blue-soft: rgba(0, 136, 255, .12);
  --green-soft: rgba(0, 230, 138, .12);
  --card: rgba(255, 255, 255, .035);
  --card-hi: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-hi: rgba(0, 200, 255, .28);
  --maxw: 1240px;
  --r-lg: 18px;
  --r-sm: 10px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
}

/* ── Accessibilité ─────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue-glow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Titres : un peu plus de tenue ─────────────────────────────────── */

.sec-title,
.pf-section-title,
h1,
h2,
h3 {
  font-family: var(--font-h);
  letter-spacing: -.02em;
}

.sec {
  padding: 110px 40px;
}

.sec-head {
  max-width: 780px;
}

.sec-foot {
  text-align: center;
  margin-top: 52px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-glow);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .25s, gap .25s;
}

.link-arrow:hover {
  border-color: var(--blue-glow);
  gap: 14px;
}

.btn-green {
  background: var(--green);
  color: #04121c;
  font-weight: 700;
}

.btn-green:hover {
  filter: brightness(1.08);
}

/* ── NAVIGATION ────────────────────────────────────────────────────── */

.nav {
  height: 76px;
  padding: 0 40px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  letter-spacing: 1.4px;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, rgba(0, 136, 255, .22), rgba(0, 200, 255, .06));
  border: 1px solid rgba(0, 200, 255, .3);
  color: var(--blue-glow);
  flex-shrink: 0;
}

.nav-logo-mark svg {
  width: 19px;
  height: 19px;
}

.nav-logo-lead {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links>li>a {
  display: block;
  padding: 9px 13px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-m);
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.nav-links>li>a:hover {
  color: var(--text);
  background: var(--card);
}

.nav-links>li>a.active {
  color: var(--text);
}

.nav-links>li>a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin: 6px 2px -2px;
  border-radius: 2px;
  background: var(--blue-glow);
}

.nav-lang-wrap {
  margin-left: 8px;
}

.nav-lang {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-m);
  transition: all .22s;
}

.nav-lang:hover {
  color: var(--text);
  border-color: var(--line-hi);
  background: var(--blue-soft);
}

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 11px 20px !important;
  border-radius: 999px !important;
  font-weight: 600;
  margin-left: 6px;
}

.nav-cta:hover {
  background: var(--blue-glow);
  color: #041018 !important;
}

.nav-mob-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.mob-menu ul {
  gap: 4px;
}

.mob-cta {
  display: block;
  margin-top: 18px;
  padding: 14px 22px;
  background: var(--blue);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.mob-phone {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: var(--blue-glow) !important;
  font-size: 18px !important;
  font-weight: 600;
}

@media (max-width:1080px) {
  .nav-links {
    display: none;
  }

  .nav-mob-actions {
    display: flex;
  }

  .nav {
    padding: 0 20px;
  }
}

/* ── HERO ──────────────────────────────────────────────────────────── */

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 10, 20, .82) 0%, rgba(5, 10, 20, .3) 34%, rgba(5, 10, 20, .55) 72%, var(--bg) 100%),
    radial-gradient(120% 80% at 18% 60%, rgba(5, 10, 20, .6), transparent 65%);
}

.hero-inner,
.pf-hero-content,
.page-hero-inner {
  position: relative;
  z-index: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats .val {
  font-variant-numeric: tabular-nums;
}

/* En-tête de page interne (technologie, à propos) */

.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 40px 70px;
  overflow: hidden;
}

.page-hero-short {
  min-height: 46vh;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

.page-hero-inner h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  max-width: 17ch;
  margin: 18px 0 20px;
}

.page-hero-inner h1 em {
  color: var(--blue-glow);
  font-style: normal;
}

.page-hero-inner>p {
  max-width: 62ch;
  color: var(--text-m);
  font-size: 1.08rem;
  line-height: 1.65;
}

.page-hero-short .page-hero-inner {
  text-align: center;
}

.page-hero-short .page-hero-inner h1 {
  margin-inline: auto;
}

/* ── BANDEAU DE CONFIANCE ──────────────────────────────────────────── */

.trust-strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-m);
}

.trust-strip svg {
  color: var(--green);
  flex-shrink: 0;
}

.trust-strip-band {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(0, 136, 255, .05), transparent 60%);
}

.trust-strip-band ul {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 40px;
  justify-content: space-between;
  gap: 12px 30px;
}

@media (max-width:900px) {
  .trust-strip-band ul {
    padding: 16px 20px;
    justify-content: flex-start;
  }
}

/* ── PROJETS EN VEDETTE ────────────────────────────────────────────── */

.fp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.fp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s;
}

.fp-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-hi);
  box-shadow: var(--shadow);
}

.fp-media {
  position: relative;
  aspect-ratio: 16/9;
  background: #08101d;
}

.fp-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 10, 20, .78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-hi);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue-glow);
}

.fp-body {
  padding: 26px 26px 28px;
}

.fp-body h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.fp-loc {
  font-size: 13px;
  color: var(--blue-glow);
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.fp-desc {
  color: var(--text-m);
  font-size: 15px;
  line-height: 1.6;
}

.fp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}

.fp-chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  font-size: 12px;
  color: var(--text-m);
}

/* ── ÉTAPES DU PROCESSUS ───────────────────────────────────────────── */

.steps {
  list-style: none;
  max-width: 940px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 24px;
  bottom: 34px;
  width: 1px;
  background: linear-gradient(180deg, var(--blue), rgba(0, 136, 255, .1));
}

.step {
  display: flex;
  gap: 26px;
  padding-bottom: 42px;
  position: relative;
}

.step:last-child {
  padding-bottom: 0;
}

.step-n {
  flex-shrink: 0;
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-hi);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 16px;
  color: var(--blue-glow);
  position: relative;
  z-index: 1;
}

.step-body {
  padding-top: 6px;
}

.step-body h3 {
  font-size: 1.32rem;
  margin-bottom: 10px;
}

.step-body p {
  color: var(--text-m);
  line-height: 1.7;
  max-width: 66ch;
}

.step-meta {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid rgba(0, 230, 138, .25);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width:640px) {
  .steps::before {
    left: 21px;
  }

  .step {
    gap: 16px;
  }

  .step-n {
    width: 43px;
    height: 43px;
    font-size: 14px;
  }
}

/* ── CALCULATEUR ───────────────────────────────────────────────────── */

.calc {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}

.calc-controls {
  padding: 38px 34px;
  border-right: 1px solid var(--line);
}

.calc-field+.calc-field {
  margin-top: 30px;
}

.calc-field label,
.calc-legend {
  display: block;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-m);
  margin-bottom: 14px;
}

.calc-field label output {
  font-family: var(--font-h);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  text-transform: none;
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}

.calc-unit {
  text-transform: none;
  font-size: 13px;
}

.calc input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue) var(--pct, 20%), rgba(255, 255, 255, .1) var(--pct, 20%));
  cursor: pointer;
}

.calc input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  cursor: grab;
}

.calc input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 4px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  cursor: grab;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seg-btn {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-m);
  font-size: 13px;
  cursor: pointer;
  transition: all .22s;
}

.seg-btn:hover {
  color: var(--text);
  border-color: var(--line-hi);
}

.seg-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 600;
}

.calc-results {
  padding: 38px 34px;
  background: linear-gradient(160deg, rgba(0, 136, 255, .07), transparent 60%);
  display: flex;
  flex-direction: column;
}

.calc-bar-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-bottom: 22px;
}

.calc-bar-lbl {
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-m);
}

.calc-bar {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}

.calc-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  transition: width .55s var(--ease);
}

.calc-bar-fill.old {
  background: linear-gradient(90deg, #ff4d6a, #ff8a6a);
}

.calc-bar-fill.new {
  background: linear-gradient(90deg, var(--blue), var(--blue-glow));
}

.calc-bar-val {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.calc-bar-val.hi {
  color: var(--blue-glow);
}

.calc-days {
  display: flex;
  gap: 28px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
}

.calc-days div {
  font-size: 12.5px;
  color: var(--text-m);
}

.calc-days strong {
  display: block;
  font-family: var(--font-h);
  font-size: 26px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.calc-days .hi strong {
  color: var(--green);
}

.calc-saving {
  margin-top: auto;
  padding: 20px 22px;
  border-radius: var(--r-sm);
  background: rgba(0, 230, 138, .08);
  border: 1px solid rgba(0, 230, 138, .25);
}

.calc-saving-lbl {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-m);
}

.calc-saving-val {
  display: block;
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.calc-saving-pct {
  font-size: 14px;
  color: var(--text-m);
}

.calc-cta {
  margin-top: 18px;
  text-align: center;
}

.calc-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-s);
}

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

  .calc-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 22px;
  }

  .calc-results {
    padding: 28px 22px;
  }
}

/* ── ZONE DE SERVICE ───────────────────────────────────────────────── */

.zone-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  align-items: start;
}

.zone-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px;
}

.zone-col h3 {
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-glow);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.zone-col ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.zone-col li {
  font-size: 14.5px;
  color: var(--text-m);
}

.zone-map {
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.zone-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.zone-note {
  max-width: var(--maxw);
  margin: 36px auto 0;
  font-size: 14px;
  color: var(--text-m);
}

.zone-note a {
  color: var(--blue-glow);
  font-weight: 600;
}

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

/* ── BILAN OPÉRATIONNEL (projets sans chiffres de coûts) ───────────── */

.outcome-list {
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.outcome-list li {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 2px solid var(--green);
  line-height: 1.65;
  color: var(--text-m);
  font-size: 15px;
}

.outcome-list svg {
  flex-shrink: 0;
  color: var(--green);
  margin-top: 4px;
}

/* ── GRILLES D'IMAGES ET DE CLIPS ──────────────────────────────────── */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.shot {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #08101d;
}

.shot img,
.shot video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}

.shot img[data-lightbox] {
  cursor: zoom-in;
}

.shot:hover img {
  transform: scale(1.045);
}

.shot-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .9);
  background: linear-gradient(180deg, transparent, rgba(3, 8, 16, .92));
  pointer-events: none;
}

.shot-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
  background: rgba(5, 10, 20, .72);
  backdrop-filter: blur(8px);
  color: var(--blue-glow);
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s;
}

.shot-video:hover .shot-play,
.shot-play:focus-visible {
  opacity: 1;
}

.shot-video.is-paused .shot-play {
  opacity: 1;
}

.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 34px;
}

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

.vert-block {
  margin-top: 70px;
}

.vert-block h3 {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-align: center;
  margin-bottom: 10px;
}

.vert-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.vert {
  width: 260px;
  max-width: 44vw;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #08101d;
}

.vert video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
}

.pf-project-shots {
  margin-top: 54px;
}

.pf-project-shots h3,
.pf-comparison-section h3 {
  font-family: var(--font-h);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--text-m);
  margin-bottom: 22px;
}

/* Visuel vidéo dans une fiche projet */

.pf-visual-video {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #08101d;
}

.pf-visual-video video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.pf-visual-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 10, 20, .78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--text-m);
}

.pf-compare-note {
  font-size: .78rem;
  color: #808090;
  margin-left: 18px;
  margin-top: 4px;
}

.pf-compare-note.good {
  color: var(--green);
}

.pf-compare-left {
  z-index: 1;
}

.pf-badge-green {
  border-color: rgba(0, 230, 138, .4);
  background: rgba(0, 230, 138, .1);
  color: var(--green);
  margin-bottom: 15px;
}

.pf-section-desc-wide {
  max-width: 820px;
  font-size: 1.1rem;
  line-height: 1.65;
}

.pf-filters-section {
  padding-bottom: 30px;
}

.pf-hero {
  margin-top: 0;
}

/* ── TABLEAU COMPARATIF ────────────────────────────────────────────── */

.cmp-table-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}

.cmp-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.cmp-table th,
.cmp-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.cmp-table thead th {
  font-family: var(--font-h);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-m);
  background: rgba(255, 255, 255, .03);
  white-space: nowrap;
}

.cmp-table thead th:nth-child(2) {
  color: var(--blue-glow);
}

.cmp-table tbody th {
  font-weight: 500;
  color: var(--text);
  width: 27%;
  background: rgba(255, 255, 255, .015);
}

.cmp-table td {
  color: var(--text-m);
}

.cmp-table td.good {
  color: var(--green);
  font-weight: 600;
}

.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td {
  border-bottom: 0;
}

.cmp-table tbody tr:hover th,
.cmp-table tbody tr:hover td {
  background: rgba(0, 136, 255, .05);
}

/* ── LIGNES ALTERNÉES (page technologie) ───────────────────────────── */

.alt-rows {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 70px;
}

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

.alt-row:nth-child(even) .alt-media {
  order: 2;
}

.alt-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #08101d;
}

.alt-media video {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.alt-n {
  display: inline-block;
  font-family: var(--font-h);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--blue-glow);
  padding: 5px 12px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  margin-bottom: 16px;
}

.alt-text h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  line-height: 1.2;
  margin-bottom: 14px;
}

.alt-text p {
  color: var(--text-m);
  line-height: 1.75;
  font-size: 15.5px;
}

@media (max-width:860px) {
  .alt-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .alt-row:nth-child(even) .alt-media {
    order: 0;
  }

  .alt-rows {
    gap: 52px;
  }
}

/* ── SURFACES ──────────────────────────────────────────────────────── */

.surf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.surf-card {
  padding: 26px 24px;
  border-radius: var(--r-sm);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  transition: background .3s, transform .35s var(--ease);
}

.surf-card:hover {
  background: var(--card-hi);
  transform: translateY(-4px);
}

.surf-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.surf-card p {
  color: var(--text-m);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ── SÉCURITÉ ──────────────────────────────────────────────────────── */

.safety-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  max-width: var(--maxw);
  margin: 0 auto;
  align-items: center;
}

.safety-list {
  list-style: none;
  display: grid;
  gap: 15px;
  margin-top: 8px;
}

.safety-list li {
  display: flex;
  gap: 14px;
  color: var(--text-m);
  line-height: 1.65;
  font-size: 15px;
}

.safety-list svg {
  flex-shrink: 0;
  color: var(--blue-glow);
  margin-top: 3px;
}

.safety-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.safety-media video {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

@media (max-width:900px) {
  .safety-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .safety-media video {
    aspect-ratio: 16/9;
  }
}

/* ── CHIFFRES (à propos) ───────────────────────────────────────────── */

.num-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.num-card {
  padding: 32px 24px;
  text-align: center;
  border-radius: var(--r-sm);
  background: var(--card);
  border: 1px solid var(--line);
}

.num-val {
  font-family: var(--font-h);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--blue-glow);
  line-height: 1;
}

.num-lbl {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-m);
  line-height: 1.5;
}

/* ── HISTOIRE (à propos) ───────────────────────────────────────────── */

.story-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.story-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: zoom-in;
}

/* ── BANDEAU D'APPEL À L'ACTION ────────────────────────────────────── */

.cta-banner {
  padding: 96px 40px;
  text-align: center;
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(0, 136, 255, .16), transparent 62%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}

.cta-banner-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta-banner h2 em {
  color: var(--blue-glow);
  font-style: normal;
}

.cta-banner p {
  color: var(--text-m);
  font-size: 1.05rem;
  line-height: 1.65;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ── PIED DE PAGE ──────────────────────────────────────────────────── */

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-m);
  transition: all .25s;
}

.footer-social a:hover {
  color: var(--blue-glow);
  border-color: var(--line-hi);
  background: var(--blue-soft);
}

/* ── LIGHTBOX ──────────────────────────────────────────────────────── */

.lb {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  grid-template-rows: 1fr auto;
  align-items: center;
  background: rgba(3, 6, 12, .95);
  backdrop-filter: blur(10px);
  animation: lbIn .25s ease;
}

.lb[hidden] {
  display: none;
}

@keyframes lbIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.lb-img {
  grid-column: 2;
  grid-row: 1;
  max-width: 100%;
  max-height: 84vh;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.lb-close,
.lb-prev,
.lb-next {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, .75);
  cursor: pointer;
  transition: color .2s;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  color: #fff;
}

.lb-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 40px;
  line-height: 1;
}

.lb-prev,
.lb-next {
  font-size: 46px;
  line-height: 1;
  grid-row: 1;
}

.lb-prev {
  grid-column: 1;
}

.lb-next {
  grid-column: 3;
}

.lb-cap {
  grid-column: 2;
  grid-row: 2;
  padding: 16px 8px 26px;
  text-align: center;
  font-size: 14px;
  color: var(--text-m);
}

@media (max-width:640px) {
  .lb {
    grid-template-columns: 40px 1fr 40px;
  }

  .lb-prev,
  .lb-next {
    font-size: 34px;
  }
}

/* ── BARRE D'ACTION MOBILE ─────────────────────────────────────────── */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5, 10, 20, .93);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}

.sticky-cta.show {
  transform: translateY(0);
}

.sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
}

.sticky-call {
  border: 1px solid var(--line-hi);
  color: var(--blue-glow);
  background: var(--blue-soft);
}

.sticky-quote {
  background: var(--blue);
  color: #fff;
}

@media (max-width:760px) {
  .sticky-cta {
    display: flex;
  }

  body {
    padding-bottom: 0;
  }

  .footer-bottom {
    padding-bottom: 84px;
  }
}

/* ── EMPLACEMENTS MÉDIAS ───────────────────────────────────────────── */

.media-videos-1 {
  max-width: 760px;
  margin-inline: auto;
}

.media-slot-caption {
  padding: 10px 2px 0;
  font-size: 12.5px;
  color: var(--text-m);
}

.media-slot img[data-lightbox] {
  cursor: zoom-in;
}

/* ── DIVERS ────────────────────────────────────────────────────────── */

.svc-cat-foot {
  text-align: center;
  margin-top: 34px;
}

.form-legend {
  display: block;
  font-size: 13px;
  color: var(--text-m);
  margin-bottom: 10px;
}

.res-svc-grid {
  max-width: var(--maxw);
  margin: 0 auto;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.testi-grid,
.cases-grid {
  max-width: var(--maxw);
  margin: 0 auto;
}

.progress-bar[hidden] {
  display: none;
}

@media (max-width:640px) {
  .sec {
    padding: 76px 20px;
  }

  .cta-banner {
    padding: 70px 20px;
  }

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

/* ── RESPECT DE « RÉDUIRE LES ANIMATIONS » ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

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

  .rv {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   CORRECTIFS DE MISE EN PAGE (portfolio.css et style.css sont conservés
   tels quels ; ce bloc les ajuste sans les modifier)
   ═══════════════════════════════════════════════════════════════════════ */

/* La vidéo d'en-tête du portfolio doit remplir son cadre, sinon elle
   apparaît en boîte noire (le ratio 1,90:1 ne remplit pas 120vh). */
.pf-hero-bg,
.res-hero-bg,
.page-hero-bg,
.hero-bg {
  object-fit: cover;
}

/* .pf-hero-content est devenu le référent de position : la flèche « Découvrir »
   ne peut plus être calée sur le bas de l'écran, elle suit donc le contenu. */
.pf-scroll-down {
  position: static;
  margin-top: 34px;
}

.pf-hero {
  min-height: calc(100vh - 40px);
  padding-top: 110px;
}

/* Fiche projet : bandeau haut (texte | média), puis blocs pleine largeur */
.pf-project-container {
  grid-template-columns: 1fr;
  gap: 46px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 88px 40px;
  align-items: stretch;
}

.pf-project-header {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 46px;
  align-items: center;
}

.pf-comparison-section {
  display: grid;
  grid-template-columns: 1.45fr .55fr;
  gap: 20px 34px;
  align-items: center;
  padding: 34px;
}

.pf-comparison-section h3 {
  grid-column: 1/-1;
}

.pf-comparison-mini {
  gap: 12px;
}

.outcome-list {
  grid-column: 1/-1;
  grid-template-columns: 1fr 1fr;
  max-width: none;
}

@media (max-width:960px) {

  .pf-project-header,
  .pf-comparison-section,
  .outcome-list {
    grid-template-columns: 1fr;
  }

  .pf-project-container {
    padding: 64px 20px;
    gap: 34px;
  }
}

/* Cartes d'étude de cas : le bloc « économie » doit se caler en bas, même
   quand un projet compte deux lignes de comparaison au lieu de trois. */
.case-card {
  display: flex;
  flex-direction: column;
}

.case-body {
  flex: 1;
}

/* Dans la colonne étroite du contact, la liste de réassurance s'empile */
.contact-wrap .trust-strip ul {
  flex-direction: column;
  gap: 11px;
}

.trust-strip-band ul {
  justify-content: center;
  gap: 10px 26px;
}

/* Voile de l'en-tête : un peu moins dense sur les côtés, l'image respire */
.hero-scrim {
  background:
    linear-gradient(180deg, rgba(5, 10, 20, .78) 0%, rgba(5, 10, 20, .26) 36%, rgba(5, 10, 20, .5) 74%, var(--bg) 100%),
    radial-gradient(130% 85% at 20% 60%, rgba(5, 10, 20, .48), transparent 68%);
}

/* Colonne gauche du calculateur : rappel de ce qui est compris dans un mandat */
.calc-extra {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.calc-extra h4 {
  font-family: var(--font-h);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-m);
  margin-bottom: 14px;
}

.calc-extra ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.calc-extra li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-m);
}

.calc-extra li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* Sur un écran étroit, le mot-symbole complet plus le sélecteur de langue plus
   le bouton menu ne tiennent pas : on rétrécit la signature, jamais le menu. */
@media (max-width:560px) {
  .nav {
    padding: 0 16px;
  }

  .nav-logo-mark {
    display: none;
  }

  .nav-logo {
    font-size: 15px;
    letter-spacing: .8px;
  }

  .nav-mob-actions {
    gap: 8px;
  }
}

@media (max-width:370px) {
  .nav-logo {
    font-size: 13px;
    letter-spacing: .4px;
  }
}

/* Le menu mobile doit masquer complètement la page derrière lui : en
   translucide, le titre du hero se lisait à travers les entrées de menu. */
.mob-menu {
  background: rgba(5, 10, 20, .97);
  backdrop-filter: blur(18px);
}

.mob-menu a.active {
  color: var(--blue-glow);
}

/* Les trois colonnes fixes des spécifications de projet débordaient sur
   téléphone : un libellé comme « Pierre & bandeaux vitrés » impose une
   largeur minimale que 1fr ne peut pas réduire. */
.pf-specs {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.pf-spec-val {
  overflow-wrap: break-word;
}

/* Même précaution ailleurs : rien ne doit pouvoir pousser la page
   horizontalement, même une adresse ou un mot long. */
.pf-project-info h2,
.pf-desc,
.pf-location,
.fp-body,
.step-body,
.surf-card,
.outcome-list li {
  min-width: 0;
  overflow-wrap: break-word;
}

/* Le tableau comparatif défile dans son propre cadre : sur petit écran, on le
   dit au visiteur, sinon il ne devine pas qu'il manque deux colonnes. */
.cmp-table-hint {
  display: none;
  max-width: var(--maxw);
  margin: 14px auto 0;
  font-size: 12.5px;
  color: var(--text-s);
  text-align: center;
}

@media (max-width:860px) {
  .cmp-table-hint {
    display: block;
  }
}

/* Les trois boutons de filtre ne rentrent pas sur une ligne en anglais
   (« All projects / Commercial / Residential ») : on les laisse passer à la
   ligne au lieu de pousser la page. */
.pf-filters {
  flex-wrap: wrap;
}
