/* =====================================================================
   SOMME UP SERVICES — Feuille de style principale
   ---------------------------------------------------------------------
   Palette dérivée du document officiel SUPS_A_designer_V09.pptx :
     #007BD3  bleu vif  — dégradé du logotype « SOMME UP SERVICES »
     #034373  bleu profond — fin du dégradé du logotype
     #0176CA  bleu — pictogramme de la page de garde
     #FFC000  or — chevron « up » de la page de garde
     #D9D4D0  gris chaud — neutre utilisé dans les diapositives
   Le vert profond (#0E6E55) est dérivé des couleurs vertes/turquoise
   (#99CC00 / #009999) du thème du document, assombries pour atteindre
   un contraste suffisant. Il n'est utilisé qu'en accent « environnement ».
   ===================================================================== */

/* ---------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------- */
:root {
  /* Marque */
  --blue-900: #022f52;
  --blue-800: #034373;
  --blue-700: #05548f;
  --blue-600: #0176ca;
  --blue-500: #007bd3;
  --blue-100: #e3f0fb;
  --blue-050: #f2f8fd;

  --gold-600: #d9a100;
  --gold-500: #ffc000;
  --gold-100: #fff3d1;

  --green-800: #0e6e55;
  --green-100: #e2f2ec;

  /* Neutres */
  --ink-900: #0d1b26;
  --ink-700: #2b3d4a;
  --ink-500: #556878;
  --ink-400: #5f7280; /* assombri pour garantir un contraste ≥ 4.5:1 sur fond blanc */
  --line: #e2e8ed;
  --line-strong: #ccd7df;
  --surface: #ffffff;
  --surface-tint: #f5f8fa;
  --surface-warm: #d9d4d0;

  /* Typographie */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-brand: "Gelasio", Georgia, "Times New Roman", serif;

  /* Rythme */
  --shell: 1240px;
  --gutter: 24px;
  --section-y: 104px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(3, 67, 115, .06), 0 2px 8px rgba(3, 67, 115, .05);
  --shadow: 0 4px 12px rgba(3, 67, 115, .07), 0 14px 38px rgba(3, 67, 115, .08);
  --shadow-lg: 0 10px 24px rgba(3, 67, 115, .1), 0 30px 70px rgba(3, 67, 115, .14);

  --ease: cubic-bezier(.22, .68, .28, 1);
}

/* ---------------------------------------------------------------
   2. Base
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.18;
  letter-spacing: -0.018em;
  margin: 0 0 .6em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.25rem + 3.6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.5rem); }
h3 { font-size: 1.075rem; letter-spacing: -0.008em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-500); }

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

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 999;
  background: var(--blue-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-tint { background: var(--surface-tint); }

/* Garde-fou anti-débordement : les éléments de grille/flex ont une taille
   minimale « auto » par défaut, ce qui peut faire déborder un contenu long
   (adresse e-mail, titre) sur les très petits écrans. */
.split > *, .tabpanel-inner > *, .partners-split > *,
.footer-top > *, .cta-inner > * { min-width: 0; }
.footer-contact li { min-width: 0; }
.footer-contact a, .client-name { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------
   3. Boutons & liens d'action
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: .002em;
  line-height: 1;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
}
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--blue-800);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: #24190a;
}
.btn-gold:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
  color: #24190a;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--blue-700);
  text-decoration: none;
  margin-top: 4px;
}
.link-arrow .icon { width: 19px; height: 19px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ---------------------------------------------------------------
   4. Header
   --------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .97);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(3, 67, 115, .07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}
.brand-mark { width: 34px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: .008em;
  color: var(--blue-800);
}
.brand-sub {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--blue-500);
}

.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav > ul { display: flex; align-items: center; gap: 1px; }
.main-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.main-nav a .icon { width: 15px; height: 15px; stroke-width: 1.9; opacity: .7; flex-shrink: 0; }
.main-nav a:hover { color: var(--blue-700); background: var(--blue-050); }
.main-nav a.is-current { color: var(--blue-800); font-weight: 600; }

/* Le bouton d'appel à l'action est aussi un `.main-nav a` : on rétablit
   son padding de bouton (la couleur vient de .btn-gold, très contrastée
   sur le fond clair du header comme sur le fond sombre du menu mobile). */
.main-nav a.nav-cta { padding: 12px 22px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--blue-800);
  background: var(--blue-050);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; stroke-width: 1.9; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------------------------------------------------------------
   5. Hero
   --------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 900px);
  padding-block: 170px 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(103deg, rgba(2, 33, 56, .93) 0%, rgba(3, 67, 115, .82) 42%, rgba(3, 67, 115, .34) 74%, rgba(3, 67, 115, .18) 100%),
    linear-gradient(to top, rgba(2, 33, 56, .55), rgba(2, 33, 56, 0) 45%);
}

.hero-content { position: relative; max-width: 830px; color: #fff; }
.hero h1 { color: #fff; margin-bottom: .38em; }
.hero-lead {
  font-size: clamp(1.02rem, .95rem + .38vw, 1.25rem);
  color: rgba(255, 255, 255, .9);
  max-width: 62ch;
  margin-bottom: 2.2em;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 26px;
  padding: 8px 18px 8px 14px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(255, 192, 0, .28);
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero-tags li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.hero-tags li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 9px; height: 9px;
  margin-top: -4px;
  border: 2px solid var(--gold-500);
  border-radius: 50%;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.hero-scroll span {
  width: 3px; height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollHint 1.9s var(--ease) infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(13px); opacity: .15; }
}

/* ---------------------------------------------------------------
   6. Blocs de section génériques
   --------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow-light { color: var(--gold-500); }

.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head-center { max-width: 950px; margin-inline: auto; text-align: center; }
.section-sub {
  font-size: 1.06rem;
  color: var(--ink-500);
  max-width: 66ch;
}
.lead {
  font-size: 1.1rem;
  color: var(--ink-700);
  font-weight: 450;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split-reverse .split-media { order: -1; }
.split-text > * + * { margin-top: 1.05em; }
.split-text h2 { margin-top: 0; }

.figure { margin: 0; }
.figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.figure-tall img { aspect-ratio: 4 / 5; }
.figure figcaption {
  margin-top: 14px;
  font-size: .86rem;
  color: var(--ink-400);
  line-height: 1.5;
}
.split-media { display: grid; gap: 22px; }
.split-media .figure-inset { width: 74%; justify-self: end; }

.check-list { display: grid; gap: 12px; margin-top: 1.2em; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .98rem;
  color: var(--ink-700);
}
.check-list .icon {
  width: 20px; height: 20px;
  margin-top: 4px;
  padding: 3px;
  color: var(--blue-600);
  background: var(--blue-100);
  border-radius: 50%;
  stroke-width: 2.6;
}

/* ---------------------------------------------------------------
   7. Vision
   --------------------------------------------------------------- */
.section-vision {
  position: relative;
  isolation: isolate;
  padding-block: 128px;
  overflow: hidden;
}
.vision-media { position: absolute; inset: 0; z-index: -2; }
.vision-media img { width: 100%; height: 100%; object-fit: cover; }
.section-vision::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(96deg, rgba(2, 33, 56, .95) 0%, rgba(3, 67, 115, .86) 55%, rgba(3, 67, 115, .55) 100%);
}
.vision-inner { display: flex; }
.vision-card { max-width: 900px; color: #fff; }
.vision-quote {
  position: relative;
  margin: 0 0 26px;
  padding-left: 30px;
  border-left: 4px solid var(--gold-500);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1.65vw, 2.35rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.018em;
  color: #fff;
  text-wrap: balance;
}
.vision-note {
  max-width: 60ch;
  color: rgba(255, 255, 255, .82);
  font-size: 1.03rem;
  padding-left: 34px;
}

/* ---------------------------------------------------------------
   8. Valeurs FRITTE
   --------------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  position: relative;
  padding: 34px 30px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.value-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--blue-500), var(--blue-800));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .32s var(--ease);
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--blue-100);
}
.value-card:hover::before { transform: scaleY(1); }

.value-letter {
  position: absolute;
  top: 14px; right: 22px;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue-050);
  transition: color .28s var(--ease);
  pointer-events: none;
}
.value-card:hover .value-letter { color: var(--gold-100); }

.value-icon {
  width: 30px; height: 30px;
  margin-bottom: 18px;
  color: var(--blue-600);
  stroke-width: 1.6;
}
.value-card h3 { margin-bottom: .45em; font-size: 1.18rem; }
.value-card p { font-size: .95rem; color: var(--ink-500); margin: 0; }

/* ---------------------------------------------------------------
   9. Mission
   --------------------------------------------------------------- */
.section-mission { padding-block: 108px; background: var(--surface); }
.mission-statement {
  font-size: clamp(1.28rem, .95rem + 1.5vw, 2.15rem);
  font-weight: 500;
  line-height: 1.38;
  color: var(--ink-900);
  margin: 0;
}
.section-mission .section-head { margin-bottom: 0; }

/* ---------------------------------------------------------------
   10. Piliers Collecter / Analyser / Diffuser
   --------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  position: relative;
  padding: 40px 34px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-num {
  display: block;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--gold-600);
  margin-bottom: 22px;
}
.pillar-icon {
  width: 40px; height: 40px;
  margin-bottom: 20px;
  padding: 8px;
  color: #fff;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-800));
  border-radius: 12px;
  stroke-width: 1.6;
  box-shadow: 0 8px 20px rgba(3, 67, 115, .22);
}
.pillar h3 {
  font-size: 1.45rem;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: .5em;
}
.pillar p { color: var(--ink-500); margin: 0; font-size: .98rem; }

/* ---------------------------------------------------------------
   11. Métiers
   --------------------------------------------------------------- */
.metiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.metier {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .26s var(--ease), border-color .26s var(--ease),
              box-shadow .26s var(--ease), background-color .26s var(--ease);
}
.metier .icon {
  width: 40px; height: 40px;
  flex: none;
  padding: 8px;
  color: var(--blue-600);
  background: var(--blue-050);
  border: 1px solid var(--blue-100);
  border-radius: 11px;
  stroke-width: 1.6;
  transition: color .26s var(--ease), background-color .26s var(--ease),
              border-color .26s var(--ease), transform .26s var(--ease);
}
.metier h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.metier:hover {
  transform: translateY(-4px);
  border-color: var(--blue-100);
  box-shadow: var(--shadow);
}
.metier:hover .icon {
  color: #fff;
  background: var(--blue-800);
  border-color: var(--blue-800);
  transform: scale(1.05);
}

/* ---------------------------------------------------------------
   12. Onglets « domaines de compétence »
   --------------------------------------------------------------- */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 25px;
  font-family: var(--font-display);
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: color .22s var(--ease), background-color .22s var(--ease),
              border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.tab-index { font-size: .78rem; letter-spacing: .1em; color: var(--blue-700); }
.tab:hover { border-color: var(--blue-500); color: var(--blue-800); }
.tab.is-active {
  color: #fff;
  background: var(--blue-800);
  border-color: var(--blue-800);
  box-shadow: var(--shadow-sm);
}
.tab.is-active .tab-index { color: var(--gold-500); }

.tabpanel { animation: fadeUp .45s var(--ease) both; }
.tabpanel[hidden] { display: none; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.tabpanel-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.tabpanel-text h3 { font-size: 1.5rem; }
.tabpanel-text > p { color: var(--ink-500); }
.tabpanel .figure img { aspect-ratio: 4 / 3; }

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 34px;
}
.mini-gallery .figure img { aspect-ratio: 16 / 10; }

/* ---------------------------------------------------------------
   13. QHSE (bloc sombre)
   --------------------------------------------------------------- */
.section-qhse {
  background: linear-gradient(150deg, var(--blue-900) 0%, var(--blue-800) 58%, #04527f 100%);
  color: rgba(255, 255, 255, .84);
}
.section-qhse h2, .section-qhse h3 { color: #fff; }
.section-qhse .lead { color: rgba(255, 255, 255, .88); }

.qhse-list { display: grid; gap: 14px; margin: 1.6em 0 2em; counter-reset: none; }
.qhse-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.qhse-list li:hover { background: rgba(255, 255, 255, .12); transform: translateX(5px); }
.qhse-list p { margin: 0; color: rgba(255, 255, 255, .9); font-size: .99rem; }
.qhse-letter {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  color: #24190a;
  background: var(--gold-500);
  border-radius: 50%;
}
.section-qhse .split-media .figure-inset img { box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }

/* ---------------------------------------------------------------
   14. Secteurs
   --------------------------------------------------------------- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sector {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
}
.sector:nth-child(1), .sector:nth-child(5) { grid-column: span 2; }
.sector img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .7s var(--ease);
}
.sector::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(2, 33, 56, .93) 0%, rgba(2, 33, 56, .55) 45%, rgba(2, 33, 56, .14) 100%);
  transition: background-color .4s var(--ease);
}
.sector:hover img { transform: scale(1.07); }
.sector-body {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100%;
  min-height: 260px;
  padding: 26px;
}
.sector h3 {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.sector h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 12px;
  background: var(--gold-500);
  border-radius: 2px;
  transition: width .35s var(--ease);
}
.sector:hover h3::after { width: 62px; }

/* ---------------------------------------------------------------
   15. Bureau d'étude (bloc sombre)
   --------------------------------------------------------------- */
.section-dark {
  background: var(--blue-900);
  color: rgba(255, 255, 255, .82);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: rgba(255, 255, 255, .88); }

.be-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 30px;
  margin: 2em 0;
}
.be-point .icon {
  width: 32px; height: 32px;
  margin-bottom: 12px;
  color: var(--gold-500);
  stroke-width: 1.6;
}
.be-point h3 { font-size: 1.03rem; margin-bottom: .4em; }
.be-point p { margin: 0; font-size: .94rem; color: rgba(255, 255, 255, .72); }

.be-points-light .be-point .icon { color: var(--blue-600); }
.be-points-light .be-point h3 { color: var(--ink-900); }
.be-points-light .be-point p { color: var(--ink-500); }

.section-dark .split-media .figure img { box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }

/* ---------------------------------------------------------------
   16. Technologies
   --------------------------------------------------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 14px;
}
.tech {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .97rem;
  color: var(--ink-900);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}
.tech .icon { width: 21px; height: 21px; color: var(--blue-600); }
.tech:hover {
  transform: translateY(-3px);
  border-color: var(--blue-500);
  box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------
   17. Partenaires
   --------------------------------------------------------------- */
.partners-split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: start;
}
.partner-block {
  padding: 40px 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.partner-block-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.partner-block-head .icon {
  width: 38px; height: 38px;
  flex: none;
  padding: 8px;
  color: #fff;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-800));
  border-radius: 10px;
  stroke-width: 1.6;
}
.partner-block-head h3 { margin: 0; font-size: 1.14rem; }
.partner-block p { color: var(--ink-500); font-size: .98rem; }

.partner-list { display: grid; gap: 10px; }
.partner-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink-900);
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.partner-list li::before {
  content: "";
  width: 8px; height: 8px;
  flex: none;
  background: var(--gold-500);
  border-radius: 50%;
}
.partner-list li:hover { border-color: var(--blue-500); transform: translateX(4px); }

/* ---------------------------------------------------------------
   18. Clients / fournisseurs
   --------------------------------------------------------------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.client {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 132px;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.client:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.client-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink-900);
  margin-bottom: auto;
}
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 999px;
}
.badge-c { color: var(--blue-800); background: var(--blue-100); }
.badge-f { color: var(--green-800); background: var(--green-100); }

/* ---------------------------------------------------------------
   19. Pourquoi nous
   --------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.why {
  padding: 32px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.why:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.why .icon {
  width: 34px; height: 34px;
  margin-bottom: 16px;
  color: var(--blue-600);
  stroke-width: 1.55;
}
.why h3 { margin-bottom: .45em; font-size: 1.08rem; }
.why p { margin: 0; font-size: .94rem; color: var(--ink-500); }

/* ---------------------------------------------------------------
   20. Bandeau CTA
   --------------------------------------------------------------- */
.cta-band {
  padding-block: 82px;
  background: linear-gradient(115deg, var(--blue-800) 0%, var(--blue-600) 100%);
  color: #fff;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { max-width: 62ch; color: rgba(255, 255, 255, .88); margin: 0; }

/* ---------------------------------------------------------------
   21. Contact
   --------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 48px;
  align-items: start;
}
.contact-grid > * { min-width: 0; }
.contact-info { display: grid; gap: 12px; min-width: 0; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 22px 24px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-item > div { min-width: 0; }
.contact-item a,
.contact-item p { overflow-wrap: anywhere; }
.contact-item .icon {
  width: 34px; height: 34px;
  flex: none;
  padding: 7px;
  color: #fff;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-800));
  border-radius: 9px;
  stroke-width: 1.6;
}
.contact-item h3 {
  margin: 0 0 .3em;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.contact-item p { margin: 0 0 3px; font-size: 1rem; color: var(--ink-900); }
.contact-item a { color: var(--ink-900); text-decoration: none; }
.contact-item a:hover { color: var(--blue-500); text-decoration: underline; }

.contact-form-wrap {
  padding: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label {
  font-family: var(--font-display);
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink-900);
}
.field label span { color: var(--blue-500); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-900);
  padding: 13px 16px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23556878' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(0, 123, 211, .14);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c9372c; }
.field-error {
  margin: 0;
  font-size: .84rem;
  font-weight: 500;
  color: #c9372c;
}

.form-status {
  margin: 0;
  padding: 15px 18px;
  font-size: .94rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
}
.form-status.is-ok { color: #0b5d46; background: var(--green-100); border-color: #a8d8c8; }
.form-status.is-error { color: #8c241c; background: #fdecea; border-color: #f2c1bc; }

.form-note {
  margin: 0;
  font-size: .87rem;
  line-height: 1.6;
  color: var(--ink-400);
}

/* ---------------------------------------------------------------
   22. Footer
   --------------------------------------------------------------- */
.site-footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, .68);
  font-size: .95rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.25fr;
  gap: 56px;
  padding-block: 76px 56px;
}
.brand-footer { margin-bottom: 22px; }
.brand-footer .brand-mark { width: 38px; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-sub { color: var(--gold-500); }
.footer-brand p { color: rgba(255, 255, 255, .66); font-size: .95rem; max-width: 46ch; }
.footer-motto {
  margin-top: 18px !important;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-500) !important;
}

.site-footer h2 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
}
.footer-nav ul, .footer-contact ul { display: grid; gap: 11px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 11px; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--blue-500); flex: none; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.footer-credit { opacity: .75; }
.footer-credit strong { font-weight: 600; color: #fff; }
.back-to-top { display: inline-flex; align-items: center; gap: 8px; }
.back-to-top .icon { width: 17px; height: 17px; transform: rotate(-90deg); }

/* Bouton flottant "remonter en haut" : discret, n'apparaît qu'après un
   défilement significatif, cohérent avec le reste du système de boutons. */
.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: var(--blue-800);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease),
              visibility .25s, background-color .2s var(--ease);
}
.scroll-top-btn.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top-btn:hover { background: var(--blue-600); }
.scroll-top-btn .icon { width: 20px; height: 20px; transform: rotate(-90deg); }
@media (max-width: 640px) { .scroll-top-btn { right: 16px; bottom: 16px; width: 42px; height: 42px; } }

/* ---------------------------------------------------------------
   23. Animations d'apparition au scroll
   --------------------------------------------------------------- */
/* Le contenu est visible par défaut : l'effet n'est activé que si le script
   a pu s'exécuter (la classe `has-reveal` est posée sur <html>). Sans
   JavaScript — ou si le script échoue — la page reste entièrement lisible. */
html.has-reveal .reveal {
  opacity: 0;
  transform: translateY(28px) scale(.975);
  transition: opacity .8s cubic-bezier(.16,.8,.24,1), transform .8s cubic-bezier(.16,.8,.24,1);
  will-change: opacity, transform;
}
html.has-reveal .reveal.is-visible { opacity: 1; transform: none; will-change: auto; }

/* Léger effet de respiration au survol des grandes images (hero, présentation) :
   un zoom très discret donne une sensation premium sans distraire du contenu. */
.hero-media img, .split-media img, .sector img {
  transition: transform 1.2s cubic-bezier(.16,.8,.24,1);
}
.sector:hover img { transform: scale(1.045); }

/* Décalage progressif dans les grilles */
html.has-reveal .values-grid .reveal:nth-child(2), .metiers-grid .reveal:nth-child(2),
.why-grid .reveal:nth-child(2), .pillars .reveal:nth-child(2),
.sectors-grid .reveal:nth-child(2) { transition-delay: .08s; }
.values-grid .reveal:nth-child(3), .metiers-grid .reveal:nth-child(3),
.why-grid .reveal:nth-child(3), .pillars .reveal:nth-child(3),
.sectors-grid .reveal:nth-child(3) { transition-delay: .16s; }
.values-grid .reveal:nth-child(n+4), .metiers-grid .reveal:nth-child(n+4),
.why-grid .reveal:nth-child(n+4), .sectors-grid .reveal:nth-child(n+4) { transition-delay: .06s; }

/* ---------------------------------------------------------------
   24. Responsive
   --------------------------------------------------------------- */
@media (max-width: 1180px) {
  :root { --section-y: 88px; }
  .split { gap: 48px; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .sector:nth-child(1), .sector:nth-child(5) { grid-column: span 2; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 44px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Passage au menu mobile */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
    padding: 18px var(--gutter) 30px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 44px rgba(3, 67, 115, .13);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 14px 12px; font-size: 1rem; border-radius: var(--radius-sm); }
  .nav-cta { margin-top: 16px; justify-content: center; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 960px) {
  body { font-size: 16.5px; }
  :root { --section-y: 76px; }

  .split, .tabpanel-inner, .contact-grid, .partners-split { grid-template-columns: 1fr; }
  .split { gap: 42px; }
  .split-reverse .split-media { order: 0; }
  .split-media .figure-inset { width: 62%; justify-self: start; }
  .figure-tall img { aspect-ratio: 3 / 2; }

  .values-grid, .metiers-grid, .why-grid, .pillars, .mini-gallery { grid-template-columns: repeat(2, 1fr); }
  .be-points { grid-template-columns: 1fr; gap: 22px; }
  .tabpanel-inner { padding: 30px; gap: 34px; }
  .section-vision { padding-block: 92px; }
  .contact-form-wrap { padding: 30px; }
  .hero { min-height: auto; padding-block: 148px 96px; }
  .hero-scroll { display: none; }
}

@media (max-width: 720px) {
  :root { --section-y: 64px; --gutter: 20px; }

  .values-grid, .metiers-grid, .why-grid, .pillars,
  .mini-gallery, .sectors-grid, .clients-grid { grid-template-columns: 1fr; }
  .sector:nth-child(1), .sector:nth-child(5) { grid-column: span 1; }
  .sector, .sector-body { min-height: 210px; }

  .field-row { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 38px; }
  .partner-block { padding: 30px 24px; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 26px; }
  .cta-inner .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; padding-block: 56px 42px; }
  .vision-quote { padding-left: 20px; }
  .vision-note { padding-left: 24px; }
  .tab { flex: 1 1 100%; justify-content: flex-start; }
}

@media (max-width: 420px) {
  :root { --gutter: 17px; }
  body { font-size: 16px; }
  .header-inner { min-height: 68px; }
  .main-nav { inset: 68px 0 auto 0; max-height: calc(100dvh - 68px); }
  .brand-mark { width: 29px; }
  .brand-name { font-size: 1.02rem; }
  .brand-sub { font-size: .68rem; letter-spacing: .24em; }
  .hero { padding-block: 128px 76px; }
  .hero-actions .btn { width: 100%; }
  .btn-lg { padding: 15px 24px; }
  .value-card, .why, .pillar { padding: 26px 22px; }
  .value-letter { font-size: 2.8rem; top: 10px; right: 16px; }
  .metier { padding: 20px 18px; gap: 14px; }
  .contact-form-wrap { padding: 24px 20px; }
  .contact-item { padding: 18px 18px; gap: 13px; }
  .tabpanel-inner { padding: 22px 18px; }
  .partner-block { padding: 26px 20px; }
}

/* ---------------------------------------------------------------
   25. Préférences utilisateur & impression
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html.has-reveal .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-scroll, .nav-toggle, .cta-band, .back-to-top { display: none !important; }
  body { font-size: 12pt; color: #000; }
  html.has-reveal .reveal { opacity: 1; transform: none; }
  .section { padding-block: 18pt; }
  .hero-overlay, .section-vision::after { background: none; }
}
