/* ==========================================================================
   AUBRY TELECOM — Design System
   Concept : « L'infrastructure invisible »
   Palette : bleu marine #003C80 dominant · jaune #FFD70E rationné
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marque */
  --blue:          #003C80;
  --blue-deep:     #002B5C;
  --blue-abyss:    #001B3D;
  --blue-mid:      #0A5AAE;
  --blue-tint:     #E8EFF8;
  --yellow:        #FFD70E;
  --yellow-deep:   #E8C000;
  --yellow-text:   #8A6D00;   /* jaune assombri, lisible sur fond clair */

  /* Neutres */
  --ink:           #1B1D29;
  --ink-muted:     #5C6276;
  --ink-faint:     #676D80;
  --surface:       #F5F6F9;
  --surface-2:     #EDF0F6;
  --border:        #E4E7EE;
  --white:         #FFFFFF;

  /* Sur fond bleu */
  --on-blue:       #FFFFFF;
  --on-blue-soft:  #B2BDD9;
  --on-blue-faint: #A9B6D4;
  --on-blue-line:  rgba(255, 255, 255, .14);

  /* Typo */
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-hero:    clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem);
  --fs-h1:      clamp(2.25rem, 1.3rem + 3.9vw, 4.25rem);
  --fs-h2:      clamp(1.65rem, 1.05rem + 2.6vw, 3.15rem);
  --fs-h3:      clamp(1.25rem, 1.05rem + .85vw, 1.75rem);
  --fs-h4:      clamp(1.05rem, .98rem + .35vw, 1.25rem);
  --fs-lead:    clamp(1.05rem, .98rem + .45vw, 1.3rem);
  --fs-body:    1rem;
  --fs-sm:      .9375rem;
  --fs-xs:      .8125rem;
  --fs-kicker:  .75rem;
  --fs-stat:    clamp(3rem, 1.7rem + 5.2vw, 5.75rem);

  /* Layout */
  --wrap:       1240px;
  --wrap-tight: 900px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --section-y:  clamp(4.5rem, 9vw, 8.5rem);

  /* Rayons & ombres — géométrie sobre, proche du print */
  --r-sm: 2px;
  --r:    3px;
  --r-lg: 4px;
  --r-xl: 4px;

  --shadow-sm:  0 1px 2px rgba(0, 27, 61, .06), 0 2px 8px rgba(0, 27, 61, .04);
  --shadow:     0 2px 6px rgba(0, 27, 61, .06), 0 12px 28px -8px rgba(0, 27, 61, .12);
  --shadow-lg:  0 4px 12px rgba(0, 27, 61, .08), 0 28px 60px -16px rgba(0, 27, 61, .22);
  --shadow-blue:0 20px 50px -18px rgba(0, 60, 128, .55);

  /* Transitions */
  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t:        .32s var(--ease);

  --header-h: 78px;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* Garde-fou : un SVG sans dimension explicite ne doit jamais s'étirer.
   Les ornements de fond sont dimensionnés par leur propre regle. */
svg:not([width]):not(.orn):not(.signal):not(.method-ring) { width: 1.25em; height: 1.25em; }

button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
  overflow-wrap: break-word;   /* « Électrique/Domotique » et autres mots longs */
}
p { text-wrap: pretty; }

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

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

::selection { background: var(--yellow); color: var(--ink); }

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

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--tight { max-width: var(--wrap-tight); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section--surface { background: var(--surface); }

.section--blue {
  background: var(--blue);
  color: var(--on-blue);
}
.section--blue h1, .section--blue h2, .section--blue h3, .section--blue h4 { color: var(--on-blue); }

/* --------------------------------------------------------------------------
   4. Typographie utilitaire
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: var(--fs-kicker);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.35rem;
}
.kicker::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--yellow);
  flex: none;
}
.section--blue .kicker { color: var(--yellow); }
.section--blue .kicker::before { background: var(--yellow); }

.h-hero { font-size: var(--fs-hero); letter-spacing: -.035em; line-height: 1.02; }
.h1     { font-size: var(--fs-h1);   letter-spacing: -.03em; }
.h2     { font-size: var(--fs-h2);   letter-spacing: -.025em; color: var(--blue); }
.h3     { font-size: var(--fs-h3); }
.h4     { font-size: var(--fs-h4); }

/* Tout bloc à fond bleu force le texte en blanc (sections, CTA, cartes contact) */
.section--blue .h2,
.cta .h2,
.contact-card .h3,
.section--blue .h1,
.cta .h1 { color: var(--on-blue); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-muted);
  font-weight: 400;
  max-width: 62ch;
}
.section--blue .lead { color: var(--on-blue-soft); }

.measure { max-width: 65ch; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin-top: 1.25rem; }

/* Les retours à la ligne éditoriaux ne valent que sur grand écran.
   Un espace précède chaque <br> dans le HTML, les mots ne se collent donc pas. */
@media (max-width: 720px) {
  h1 br, h2 br { display: none; }
}

/* --------------------------------------------------------------------------
   5. Boutons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 1rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: 2px;
  border: 2px solid transparent;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  will-change: transform;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.btn:active { transform: translateY(0); }

.btn__arrow { transition: transform var(--t); flex: none; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.btn--yellow:hover { --btn-bg: var(--yellow-deep); box-shadow: 0 18px 40px -14px rgba(255,215,14,.6); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--blue);
  border-color: var(--border);
}
.btn--ghost:hover { --btn-fg: var(--blue); border-color: var(--blue); box-shadow: var(--shadow); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: var(--on-blue-line);
}
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); box-shadow: none; }

/* Lien texte avec soulignement qui se déploie */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--blue);
  position: relative;
  padding-bottom: 3px;
}
.link-arrow::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { transition: transform var(--t); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--blue);
  transition: height var(--t), background var(--t), box-shadow var(--t);
}
.header.is-scrolled {
  height: 64px;
  background: rgba(0, 43, 92, .92);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--on-blue-line), 0 10px 30px -12px rgba(0,0,0,.5);
}

.header__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand { display: flex; align-items: center; flex: none; }
.brand svg, .brand img { width: 108px; height: auto; transition: width var(--t); }
.header.is-scrolled .brand svg, .header.is-scrolled .brand img { width: 92px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .85rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--on-blue);
  border-radius: 8px;
  transition: color var(--t), background var(--t);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: .85rem; right: .85rem; bottom: .3rem;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--yellow); }

/* Dropdown */
.nav__item { position: relative; }
.nav__chevron { transition: transform var(--t); }
.nav__item:hover .nav__chevron, .nav__item:focus-within .nav__chevron { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 290px;
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: .6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  border: 1px solid var(--border);
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

.dropdown__link {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .7rem .8rem;
  border-radius: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  transition: background var(--t), color var(--t);
}
.dropdown__link:hover { background: var(--blue-tint); color: var(--blue); }
.dropdown__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex: none; }
.dropdown__link small { display: block; font-weight: 500; font-size: var(--fs-xs); color: var(--ink-faint); }

.header__cta { margin-left: .5rem; padding: .7rem 1.25rem; font-size: var(--fs-xs); }

/* Burger */
.burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--white);
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: background .2s;
}
.burger span::before, .burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .35s var(--ease-out), top .2s;
}
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Panneau mobile */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--blue-deep);
  padding: 2rem var(--gutter) 3rem;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--on-blue);
  border-bottom: 1px solid var(--on-blue-line);
}
.mobile-nav .sub a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--on-blue-soft);
  padding: .7rem 0 .7rem 1.15rem;
  border-bottom: 0;
  position: relative;
}
.mobile-nav .sub a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--yellow);
}
.mobile-nav .sub { padding-bottom: .5rem; border-bottom: 1px solid var(--on-blue-line); }
.mobile-nav .btn {
  display: inline-flex;
  width: 100%;
  margin-top: 1.75rem;
  padding: 1rem 1.75rem;
  font-size: var(--fs-sm);
  border-bottom: 0;
}

@media (max-width: 1000px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
}

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Hero — plein écran photographique
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 880px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  color: var(--on-blue);
  overflow: hidden;
  isolation: isolate;
  background: var(--blue-abyss);
}

/* La photographie occupe toute la surface, bord à bord */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* Voile de lisibilité. La photographie du hero est une vue aérienne claire :
   le voile est donc plus dense à gauche (où se pose le texte) et s'ouvre à
   droite pour laisser respirer le paysage. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right,
      rgba(0,26,56,.94) 0%,
      rgba(0,28,60,.88) 26%,
      rgba(0,30,64,.66) 52%,
      rgba(0,34,70,.42) 76%,
      rgba(0,38,78,.34) 100%),
    linear-gradient(to top,
      rgba(0,20,44,.72) 0%,
      rgba(0,24,52,.30) 42%,
      rgba(0,28,60,.22) 100%);
}

@media (max-width: 900px) {
  /* En colonne unique le texte occupe toute la largeur : voile uniforme */
  .hero::after {
    background:
      linear-gradient(to top,
        rgba(0,20,44,.93) 0%,
        rgba(0,24,52,.86) 45%,
        rgba(0,28,60,.74) 100%);
  }
}

.hero__inner { width: 100%; }

.hero__content { max-width: 62ch; }

/* Surtitre : filet + texte, sans pilule */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  margin-bottom: 1.6rem;
}
.hero__eyebrow::before {
  content: '';
  width: 52px;
  height: 3px;
  background: var(--yellow);
  flex: none;
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: 1.35rem;
  text-shadow: 0 2px 30px rgba(0,15,35,.5);
}

.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(255,255,255,.9);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Bandeau de faits en pied de hero — pas de carte flottante */
.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.85rem;
  border-top: 1px solid rgba(255,255,255,.22);
}

/* Deux colonnes sous 760px : le hero ne s'etire plus sur quatre lignes */
@media (max-width: 760px) {
  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1.25rem;
    padding-top: 1.5rem;
  }
  /* Colonnes etroites : letter-spacing reduit, sinon un mot long comme
     « COLLABORATEURS » depasse sans pouvoir se couper. */
  .hero__fact b { font-size: 1.35rem; white-space: nowrap; }
  .hero__fact span {
    font-size: .75rem;
    letter-spacing: .04em;
    line-height: 1.35;
    overflow-wrap: break-word;
  }
}

@media (max-width: 380px) {
  /* Sous 380px, « 50’000 km » doit pouvoir passer sur deux lignes */
  .hero__fact b { font-size: 1.15rem; white-space: normal; }
  .hero__fact span { font-size: .6875rem; letter-spacing: .02em; }
}
.hero__fact b {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--white);
}
.hero__fact span {
  display: block;
  margin-top: .3rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

@media (max-width: 700px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 3rem); }
  /* Le titre occupe toute la largeur utile en mobile */
  .hero h1 { max-width: none; }
  /* text-wrap:pretty evite les coupures batardes du chapeau */
  .hero__lead {
    max-width: none;
    text-wrap: pretty;
    margin-bottom: 2rem;
  }
  .hero__actions { gap: .7rem; }
  .hero__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   7bis. Chapeau éditorial
   -------------------------------------------------------------------------- */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.intro__grid .kicker { margin-bottom: 0; padding-top: .55rem; }

.intro__text {
  font-size: clamp(1.35rem, 1.05rem + 1.25vw, 2rem);
  line-height: 1.42;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 30ch;
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}
.intro__note {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 62ch;
  margin-bottom: 1.75rem;
}

@media (max-width: 760px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__grid .kicker { padding-top: 0; }
}

/* --------------------------------------------------------------------------
   8. Barre de statistiques
   -------------------------------------------------------------------------- */
.statbar {
  position: relative;
  background: var(--blue-deep);
  border-top: 1px solid var(--on-blue-line);
  color: var(--on-blue);
  overflow: hidden;
}
.statbar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--on-blue-line);
}
.statbar__item {
  background: var(--blue-deep);
  padding: clamp(2.25rem, 4vw, 3.25rem) clamp(1rem, 2.5vw, 2rem);
  text-align: center;
}
.statbar__num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .1rem;
  font-size: var(--fs-stat);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--white);
}
.statbar__num sup {
  font-size: .38em;
  font-weight: 800;
  color: var(--yellow);
  top: -.85em;
  position: relative;
}
.statbar__label {
  margin-top: .85rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--on-blue-faint);
}

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

/* --------------------------------------------------------------------------
   9. Cartes domaines
   -------------------------------------------------------------------------- */
.domains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 1.75rem);
}
@media (max-width: 680px) {
  .domains { grid-template-columns: 1fr; }
}

.domain {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color var(--t);
  will-change: transform;
}
.domain:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.domain__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.domain__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.domain:hover .domain__media img { transform: scale(1.06); }
.domain__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,43,92,.55) 100%);
}

.domain__tag {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  padding: .45rem .9rem;
  border-radius: 0;
  background: var(--yellow);
  color: var(--ink);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.domain__body {
  padding: clamp(1.5rem, 2.6vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  flex: 1;
}
.domain__body h3 { color: var(--blue); }
.domain__body p { color: var(--ink-muted); font-size: var(--fs-sm); }
.domain__body .link-arrow { margin-top: auto; align-self: flex-start; padding-top: .5rem; }

/* Rendre la carte entièrement cliquable */
.domain__link::after { content: ''; position: absolute; inset: 0; z-index: 3; }

/* --------------------------------------------------------------------------
   10. Section 360° — process
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1px;
  background: var(--on-blue-line);
  border: 1px solid var(--on-blue-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.process__step {
  background: var(--blue);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  transition: background var(--t);
}
.process__step:hover { background: var(--blue-mid); }

.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--on-blue-line);
  color: var(--yellow);
  font-size: var(--fs-sm);
  font-weight: 800;
  margin-bottom: 1.35rem;
}
.process__step h3 { font-size: var(--fs-h4); margin-bottom: .65rem; }
.process__step p { font-size: var(--fs-sm); color: var(--on-blue-soft); }

/* --------------------------------------------------------------------------
   11. Valeurs & engagements
   -------------------------------------------------------------------------- */
/* Liste éditoriale numérotée — pas de cartes */
.values {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.value {
  display: grid;
  grid-template-columns: minmax(0, 84px) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(1.65rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}
.value:hover { background: var(--white); }

.value__num {
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--ink-faint);
  padding-top: .3rem;
  position: relative;
}
.value__num::after {
  content: '';
  position: absolute;
  left: 0; top: -1.65rem;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width .5s var(--ease-out);
}
.value:hover .value__num::after { width: 32px; }

.value__body {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(.5rem, 3vw, 3rem);
  align-items: baseline;
}
.value h3 {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
  color: var(--blue);
  letter-spacing: -.02em;
}
.value p { font-size: var(--fs-sm); color: var(--ink-muted); line-height: 1.7; }

@media (max-width: 860px) {
  .value__body { grid-template-columns: 1fr; }
  .value h3 { margin-bottom: .55rem; }
}
@media (max-width: 560px) {
  .value { grid-template-columns: 1fr; gap: .5rem; }
  .value__num { padding-top: 0; }
  .value__num::after { display: none; }
}

/* --------------------------------------------------------------------------
   12. Partenaires
   -------------------------------------------------------------------------- */
/* Bande de logos — sans cadres, alignés sur une ligne de base commune */
.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partner {
  display: grid;
  place-items: center;
  filter: grayscale(1);
  opacity: .5;
  transition: filter var(--t), opacity var(--t);
}
.partner:hover { filter: grayscale(0); opacity: 1; }
.partner img { max-height: 30px; width: auto; max-width: 130px; object-fit: contain; }

@media (max-width: 700px) {
  .partners { justify-content: center; gap: 1.75rem 2.25rem; }
  .partner img { max-height: 24px; max-width: 100px; }
}

/* --------------------------------------------------------------------------
   13. CTA final
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  background: var(--blue);
  color: var(--on-blue);
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 420px at 88% 10%, rgba(10,90,174,.5), transparent 60%),
    linear-gradient(155deg, var(--blue) 0%, var(--blue-abyss) 100%);
}
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.cta h2 { margin-bottom: 1.1rem; }
.cta p { color: var(--on-blue-soft); font-size: var(--fs-lead); max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.cta__contacts { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.cta__contact {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--white);
  transition: color var(--t);
}
.cta__contact:hover { color: var(--yellow); }
.cta__contact-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--on-blue-line);
  color: var(--yellow);
  flex: none;
}

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

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--blue-abyss);
  color: var(--on-blue-soft);
  border-top: 3px solid var(--yellow);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--fs-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--on-blue-line);
}
.footer__brand > img { width: 124px; margin-bottom: 1.35rem; }
.footer__brand p { max-width: 34ch; color: var(--on-blue-faint); font-size: var(--fs-sm); }

.footer h4 {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer li { margin-bottom: .7rem; }
.footer a { transition: color var(--t); }
.footer a:hover { color: var(--yellow); }

.footer__socials { display: flex; gap: .6rem; margin-top: 1.5rem; }
.footer__social {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--on-blue-line);
  color: var(--on-blue-soft);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.footer__social:hover { background: var(--yellow); color: var(--blue); border-color: var(--yellow); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }

.footer__bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--on-blue-faint);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

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

/* --------------------------------------------------------------------------
   15. Hero de page intérieure
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  /* Hauteur identique sur toutes les pages : le contenu s'ancre en bas,
     quelle que soit la longueur du titre ou la présence d'un chapeau. */
  height: clamp(480px, 62vh, 620px);
  /* Marge franche sous le header fixe : le fil d'Ariane doit respirer */
  padding-top: calc(var(--header-h) + clamp(3.5rem, 6vw, 5.5rem));
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  background: var(--blue-abyss);
  color: var(--on-blue);
  overflow: hidden;
  isolation: isolate;
}

/* Photographie de section, bord à bord */
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(0,20,44,.90) 0%, rgba(0,25,54,.62) 45%, rgba(0,30,64,.28) 100%),
    linear-gradient(to right, rgba(0,25,54,.74) 0%, rgba(0,25,54,.06) 58%, transparent 100%);
}

/* Sans photo : dégradé de marque seul, même hauteur */
.page-hero--plain::after {
  background: linear-gradient(155deg, var(--blue) 0%, var(--blue-deep) 55%, var(--blue-abyss) 100%);
}

.page-hero__inner { width: 100%; max-width: 62ch; }
/* Deux lignes reservees pour tous les titres : le bloc de texte reste a la
   meme hauteur d'une page a l'autre, meme quand le titre tient sur une ligne. */
.page-hero h1 {
  margin-bottom: 1.25rem;
  max-width: 17ch;
  min-height: calc(2em * 1.1);
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  /* En mobile la hauteur est libre : le contenu prime sur l'alignement */
  .page-hero h1 { min-height: 0; display: block; }
}
.page-hero .lead { color: rgba(255,255,255,.9); }

/* Boutons dans le hero : marge haute uniforme */
.page-hero .hero__actions { margin-top: 1.5rem; }

@media (max-width: 700px) {
  .page-hero {
    height: auto;
    min-height: clamp(400px, 54vh, 480px);
    padding-top: calc(var(--header-h) + 3rem);
  }
}

/* Intro : hauteur reservee pour trois lignes, meme quand elle est absente.
   Combinee au titre a hauteur fixe, la composition reste identique partout. */
.page-hero__intro {
  font-size: var(--fs-sm);
  line-height: 1.75;
  max-width: 58ch;
}
.page-hero__inner::after {
  content: '';
  display: block;
  /* Deux lignes suffisent : le titre reste aligne sans creuser de vide */
  min-height: calc(2 * 1.75 * var(--fs-sm));
}
.page-hero__inner:has(.page-hero__intro)::after { display: none; }

@media (max-width: 700px) {
  .page-hero__inner::after { display: none; }
}

/* Fil d'Ariane */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--on-blue-faint);
  margin-bottom: 1.5rem;
}
.crumbs a { transition: color var(--t); }
.crumbs a:hover { color: var(--yellow); }
.crumbs svg { opacity: .5; }
.crumbs [aria-current] { color: var(--on-blue-soft); }

/* --------------------------------------------------------------------------
   16. Accordéon / domaines d'activité
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--border); }

.acc__item { border-bottom: 1px solid var(--border); }

.acc__trigger {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem) 0;
  text-align: left;
  font-family: var(--font);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--blue);
  transition: color var(--t);
}
.acc__trigger:hover { color: var(--blue-mid); }

.acc__index {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--ink-faint);
  flex: none;
  min-width: 2ch;
}

/* Le libellé doit pouvoir se replier dans le flex */
.acc__label { min-width: 0; flex: 1; text-wrap: pretty; }

.acc__icon {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  transition: background var(--t), color var(--t), transform var(--t);
}
.acc__trigger[aria-expanded="true"] .acc__icon { background: var(--blue); color: var(--yellow); transform: rotate(45deg); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-out);
}
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p {
  padding: 0 0 clamp(1.5rem, 2.4vw, 2rem) calc(2ch + 1.25rem);
  color: var(--ink-muted);
  max-width: 78ch;
  font-size: var(--fs-sm);
}

@media (max-width: 620px) {
  .acc__panel p { padding-left: 0; }
}

/* --------------------------------------------------------------------------
   17. Galerie
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   18. Chiffres clés (fond clair)
   -------------------------------------------------------------------------- */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.figure-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.figure-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.figure-card__num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--blue);
}
.figure-card__num sup { font-size: .38em; color: var(--yellow-text); top: -.85em; position: relative; }
.figure-card p:not(.figure-card__num) {
  margin-top: .9rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   19. Timeline (page histoire)
   -------------------------------------------------------------------------- */
.timeline { position: relative; display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.timeline::before {
  content: '';
  position: absolute;
  left: 27px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--yellow), var(--border));
}
.tl__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.tl__dot {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--yellow);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .02em;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
  position: relative;
  z-index: 1;
  flex: none;
}
.tl__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 200px);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}
.tl__body:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tl__body h3 { color: var(--blue); font-size: var(--fs-h4); margin-bottom: .75rem; }
.tl__body p { font-size: var(--fs-sm); color: var(--ink-muted); }
/* Logos d'archive : présentés comme des pièces d'archive, pas comme des icônes */
.tl__logo {
  display: grid;
  place-items: center;
  padding: 1.15rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.tl__logo img { max-height: 62px; width: auto; object-fit: contain; }
.tl__logo figcaption {
  margin-top: .75rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 760px) {
  .tl__body { grid-template-columns: 1fr; }
  .tl__logo { order: -1; justify-self: start; }
}
@media (max-width: 560px) {
  .timeline::before { display: none; }
  .tl__item { grid-template-columns: 1fr; gap: 1rem; }
}

/* --------------------------------------------------------------------------
   20. Split image / texte
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split__figure {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
}
.split__figure img { width: 100%; height: 100%; object-fit: cover; }

.checklist { display: grid; gap: 1rem; margin-top: 2rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}
.section--blue .checklist li { color: var(--on-blue); }
.check {
  width: 24px; height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--yellow);
  margin-top: 1px;
}
.section--blue .check { background: var(--yellow); color: var(--blue); }
.check svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   21. Formulaire
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }

.form-card {
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 1.35rem; }
.field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .55rem;
}
.field label .req { color: var(--yellow-text); }

.field input, .field textarea, .field select {
  width: 100%;
  padding: .95rem 1.15rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: var(--fs-sm);
  color: var(--ink);
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%235C6276' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; padding-right: 2.75rem; }
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0,60,128,.1);
}
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #C4342B; background: #FDF4F3; }

.field__error {
  display: none;
  margin-top: .45rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #C4342B;
}
.field.has-error .field__error { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}
.form-consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.form-consent a { color: var(--blue); font-weight: 600; text-decoration: underline; }

.form-status {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-top: 1.25rem;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: #EAF6EE; color: #1C6B36; border: 1px solid #BFE3CB; }
.form-status--err { background: #FDF4F3; color: #A32B23; border: 1px solid #F0CFCC; }

/* Bloc coordonnées */
.contact-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--blue);
  color: var(--on-blue);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(500px 300px at 100% 0%, rgba(10,90,174,.6), transparent 65%), linear-gradient(160deg, var(--blue), var(--blue-abyss));
}
.contact-card h3 { margin-bottom: 1.75rem; font-size: var(--fs-h3); }

.contact-item { display: flex; gap: 1rem; padding-block: 1.15rem; border-top: 1px solid var(--on-blue-line); }
.contact-item:first-of-type { border-top: 0; padding-top: 0; }
.contact-item__icon {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--on-blue-line);
  color: var(--yellow);
}
.contact-item h4 {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-blue-faint);
  margin-bottom: .35rem;
}
.contact-item p, .contact-item a { font-size: var(--fs-sm); font-weight: 600; color: var(--white); }
.contact-item a { transition: color var(--t); }
.contact-item a:hover { color: var(--yellow); }

/* --------------------------------------------------------------------------
   22. Cartes emploi
   -------------------------------------------------------------------------- */
.jobs { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }

.job {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  align-items: center;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.job:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.job__media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.job__media img { transition: transform .8s var(--ease-out); }
.job:hover .job__media img { transform: scale(1.04); }
.job__media img { width: 100%; height: 100%; object-fit: cover; }
.job__tag {
  display: inline-flex;
  padding: .3rem .75rem;
  border-radius: 2px;
  background: var(--blue-tint);
  color: var(--blue);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.job h3 { color: var(--blue); font-size: var(--fs-h4); margin-bottom: .75rem; }
.job p { font-size: var(--fs-sm); color: var(--ink-muted); margin-bottom: 1.35rem; }

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

/* --------------------------------------------------------------------------
   23. Grille de liens solutions
   -------------------------------------------------------------------------- */
.sol-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.sol-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: clamp(1.75rem, 3vw, 2.35rem);
  background: var(--white);
  transition: background var(--t), color var(--t);
}
.sol-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.sol-link:hover { background: var(--blue); color: var(--white); }
.sol-link:hover::after { transform: scaleX(1); }
.sol-link__num { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; color: var(--ink-faint); transition: color var(--t); }
.sol-link:hover .sol-link__num { color: var(--yellow); }
.sol-link h3 { font-size: var(--fs-h4); color: var(--blue); transition: color var(--t); }
.sol-link:hover h3 { color: var(--white); }
.sol-link p { font-size: var(--fs-sm); color: var(--ink-muted); transition: color var(--t); }
.sol-link:hover p { color: var(--on-blue-soft); }
.sol-link__go { margin-top: auto; padding-top: 1.25rem; display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); transition: color var(--t); }
.sol-link:hover .sol-link__go { color: var(--yellow); }
.sol-link__go svg { transition: transform var(--t); }
.sol-link:hover .sol-link__go svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   24. Encart citation
   -------------------------------------------------------------------------- */
.quote {
  position: relative;
  padding: clamp(2rem, 4vw, 3.25rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--yellow);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.quote blockquote {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.02em;
  color: var(--blue);
  text-wrap: balance;
}
.quote figcaption {
  margin-top: 1.35rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   25. Animations d'apparition
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   26. Retour vers le haut
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--yellow);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-mid); }

/* --------------------------------------------------------------------------
   27. Utilitaires
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: .85rem 1.35rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-sm);
  border-radius: 0 0 10px 10px;
  transition: top var(--t);
}
.skip-link:focus { top: 0; }

.stack-sm > * + * { margin-top: 1rem; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.text-center { text-align: center; }
.center-x { margin-inline: auto; }

/* --------------------------------------------------------------------------
   28. Actualités
   -------------------------------------------------------------------------- */

/* Article mis en avant */
.news-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.news-lead__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(1rem, 2vw, 1.75rem);
}
/* contain : un document (flyer, visuel produit) doit rester lisible en entier */
.news-lead__media img { width: 100%; height: 100%; object-fit: contain; }
.news-lead__title {
  font-size: clamp(1.5rem, 1.15rem + 1.7vw, 2.5rem);
  color: var(--blue);
  letter-spacing: -.03em;
  margin-bottom: 1.15rem;
}
.news-lead .news__text { margin-bottom: 1.75rem; }

@media (max-width: 860px) {
  .news-lead { grid-template-columns: 1fr; }
  .news-lead__media { aspect-ratio: 16 / 10; }
}

/* Métadonnées communes */
.news__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.news__sep { opacity: .5; }
.news__tag {
  padding: .25rem .65rem;
  background: var(--blue-tint);
  color: var(--blue);
  border-radius: 2px;
  letter-spacing: .1em;
}
.news__tag--accent { background: var(--yellow); color: var(--ink); }

.news__text p {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 62ch;
}
.news__text p + p { margin-top: .85rem; }

/* Grille des autres publications */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.85rem);
}
@media (max-width: 700px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color var(--t);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }

.news-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.news-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.news-card:hover .news-card__media img { transform: scale(1.05); }

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
}
.news-card__title {
  font-size: var(--fs-h4);
  color: var(--blue);
  letter-spacing: -.02em;
  margin-bottom: .7rem;
}
.news-card__excerpt {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
  /* Trois lignes maximum : les cartes gardent la même hauteur */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__link { margin-top: auto; align-self: flex-start; }

/* Toute la carte est cliquable */
.news-card__link::after { content: ''; position: absolute; inset: 0; }

.news-follow {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}
.news-follow a { color: var(--blue); font-weight: 700; }
.news-follow a:hover { text-decoration: underline; }

/* ==========================================================================
   29. Animations & détails d'interface
   ========================================================================== */

/* --------------------------------------------------------------------------
   Barre de progression de lecture
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 101;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-deep));
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Révélations : variantes directionnelles
   -------------------------------------------------------------------------- */
[data-reveal="left"]  { transform: translateX(-26px); }
[data-reveal="right"] { transform: translateX(26px); }
[data-reveal="scale"] { transform: scale(.96); }

/* La classe doit l'emporter sur le sélecteur d'attribut : même poids,
   donc on redéclare chaque variante. */
[data-reveal="left"].is-in,
[data-reveal="right"].is-in,
[data-reveal="scale"].is-in,
[data-reveal].is-in { transform: none; }

/* Un décalage horizontal ne doit jamais créer de barre de défilement */
@media (max-width: 900px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(22px); }
}

/* Révélation du titre : le filet du kicker se déploie */
.kicker::before { transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out) .1s; }
[data-reveal].is-in .kicker::before,
.kicker.is-in::before,
.is-in > .kicker::before { transform: scaleX(1); }
[data-reveal] .kicker::before { transform: scaleX(0); }
[data-reveal].is-in .kicker::before { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   Hero : entrée séquencée au chargement
   -------------------------------------------------------------------------- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero__bg img {
  animation: heroZoom 2.4s var(--ease-out) both;
}
.hero__eyebrow { animation: heroRise .8s var(--ease-out) .15s both; }
.hero h1       { animation: heroRise .9s var(--ease-out) .28s both; }
.hero__lead    { animation: heroRise .9s var(--ease-out) .40s both; }
.hero__actions { animation: heroRise .9s var(--ease-out) .52s both; }
.hero__facts   { animation: heroRise .9s var(--ease-out) .64s both; }

/* Filet au-dessus de chaque chiffre, dans le flux : il suit l'item meme
   quand la grille passe sur plusieurs lignes. */
.hero__fact { position: relative; }
.hero__fact::before {
  content: '';
  display: block;
  width: 0; height: 2px;
  margin-bottom: .7rem;
  background: var(--yellow);
  animation: factLine .7s var(--ease-out) 1s both;
}
@keyframes factLine { to { width: 28px; } }

@media (prefers-reduced-motion: reduce) {
  .hero__bg img, .hero__eyebrow, .hero h1, .hero__lead,
  .hero__actions, .hero__facts, .hero__fact::before { animation: none; }
}

/* --------------------------------------------------------------------------
   Cartes domaines : soulèvement et voile de couleur
   -------------------------------------------------------------------------- */
.domain__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(150deg, rgba(0,60,128,.42), rgba(0,27,61,.12));
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.domain:hover .domain__media::before { opacity: 1; }

/* Flèche circulaire qui apparaît au survol */
.domain__go {
  position: absolute;
  right: 1rem; bottom: 1rem;
  z-index: 2;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue);
  opacity: 0;
  transform: translateY(10px) scale(.85);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.domain:hover .domain__go { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Étapes du process : liaison numérotée
   -------------------------------------------------------------------------- */
.process__step { position: relative; overflow: hidden; }
.process__step::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.process__step:hover::after { transform: scaleX(1); }

.process__num { transition: background var(--t), transform var(--t), border-color var(--t); }
.process__step:hover .process__num {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--blue);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Liens de solutions : chiffre en filigrane
   -------------------------------------------------------------------------- */
.sol-link { overflow: hidden; }
.sol-link::before {
  content: attr(data-num);
  position: absolute;
  right: -.35rem; bottom: -1.75rem;
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--blue);
  opacity: .05;
  pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.sol-link:hover::before { opacity: .14; transform: translateY(-6px); color: var(--yellow); }

/* --------------------------------------------------------------------------
   Chiffres clés : soulignement animé
   -------------------------------------------------------------------------- */
.figure-card { position: relative; overflow: hidden; }
.figure-card::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 3px;
  background: var(--yellow);
  transform: translateX(-50%);
  transition: width .5s var(--ease-out);
}
.figure-card:hover::after { width: 60%; }

/* --------------------------------------------------------------------------
   Boutons : reflet au survol
   -------------------------------------------------------------------------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-18deg);
  transition: left .65s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { left: 120%; }
.btn--yellow::after { background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); }

/* --------------------------------------------------------------------------
   Accordéon : accent latéral sur le panneau ouvert
   -------------------------------------------------------------------------- */
.acc__item { position: relative; transition: background var(--t); }
.acc__item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--ease-out);
}
.acc__item:has(.acc__trigger[aria-expanded="true"])::before { transform: scaleY(1); }
.acc__item:has(.acc__trigger[aria-expanded="true"]) { background: var(--surface); }

/* Respiration interne sans déborder du conteneur */
.acc__trigger,
.acc__panel p { padding-left: 1rem; }
.acc__item { padding-right: 1rem; }
@media (max-width: 620px) {
  .acc__trigger, .acc__panel p { padding-left: .75rem; }
  .acc__item { padding-right: .75rem; }
}

/* --------------------------------------------------------------------------
   Actualités : accent au survol
   -------------------------------------------------------------------------- */
.news { position: relative; transition: background var(--t); }
.news::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .45s var(--ease-out);
}
.news:hover::before { transform: scaleY(.7); }

/* --------------------------------------------------------------------------
   Valeurs : filet qui se déploie
   -------------------------------------------------------------------------- */
.value { position: relative; }
.value::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--blue);
  transition: width .6s var(--ease-out);
}
.value:hover::after { width: 100%; }

/* --------------------------------------------------------------------------
   Timeline : point actif
   -------------------------------------------------------------------------- */
.tl__dot { transition: transform .45s var(--ease-out), background var(--t); }
.tl__item:hover .tl__dot { transform: scale(1.08); background: var(--blue-mid); }

/* --------------------------------------------------------------------------
   Champs de formulaire : label flottant discret
   -------------------------------------------------------------------------- */
.field label { transition: color var(--t); }
.field:focus-within label { color: var(--blue); }

/* --------------------------------------------------------------------------
   Header : ombre progressive et lien actif
   -------------------------------------------------------------------------- */
.header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--on-blue-line);
  opacity: 0;
  transition: opacity var(--t);
}
.header.is-scrolled::after { opacity: 1; }

/* --------------------------------------------------------------------------
   Ancre de section : décalage pour le header fixe
   -------------------------------------------------------------------------- */
:target { scroll-margin-top: calc(var(--header-h) + 2rem); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: start;
}
.faq-grid .h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem); }
.faq-grid .accordion { border-top: 0; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   30. Raffinements d'interaction
   -------------------------------------------------------------------------- */

/* Lien de navigation correspondant à la section visible */
.nav__link.is-current::after { transform: scaleX(1); }

/* Curseur d'aide sur le numéro copiable (bureau) */
@media (hover: hover) and (min-width: 900px) {
  a[href^="tel:"] { cursor: copy; }
}

/* Champs : validation visuelle immédiate */
.field input:not(:placeholder-shown):valid,
.field textarea:not(:placeholder-shown):valid {
  border-color: #BFE3CB;
}
.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  animation: fieldShake .4s var(--ease);
}
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .field.has-error input, .field.has-error textarea, .field.has-error select { animation: none; }
}

/* Bouton d'envoi désactivé pendant la soumission */
.btn:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.btn:disabled::after { display: none; }

/* Message de statut : entrée en fondu */
.form-status.is-visible { animation: statusIn .45s var(--ease-out) both; }
@keyframes statusIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Cartes emploi : flèche du bouton */
.job:hover .btn { transform: translateY(-2px); }

/* Fil d'Ariane : séparateur plus discret au survol */
.crumbs a { position: relative; }
.crumbs a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--yellow);
  transition: width .35s var(--ease-out);
}
.crumbs a:hover::after { width: 100%; }

/* Éléments du pied de page */
.footer li a { position: relative; display: inline-block; }
.footer li a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--yellow);
  transition: width .35s var(--ease-out);
}
.footer li a:hover::after { width: 100%; }

/* Sélection de texte cohérente sur fond bleu */
.section--blue ::selection, .cta ::selection, .hero ::selection,
.page-hero ::selection, .footer ::selection {
  background: var(--yellow);
  color: var(--ink);
}

/* Impression : garder le contenu lisible */
@media print {
  .header, .mobile-nav, .to-top, .progress, .cta, .btn { display: none !important; }
  .hero, .page-hero { min-height: 0; padding-top: 2rem; color: var(--ink); }
  .hero::after, .page-hero::after, .hero__bg, .page-hero__bg { display: none; }
  .hero h1, .page-hero h1, .hero__lead { color: var(--ink); text-shadow: none; }
  body { background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; color: #555; }
}

/* --------------------------------------------------------------------------
   31. Repère de section : pastille iconographique + libellé + filet
   -------------------------------------------------------------------------- */
.badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem .85rem;
  max-width: 100%;
  margin-bottom: 1.5rem;
  font-size: var(--fs-kicker);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}

.badge__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 3px;
  background: var(--blue);
  color: var(--yellow);
  transition: transform .45s var(--ease-out), background var(--t);
}
.badge__icon svg { width: 19px; height: 19px; }

/* Le libellé ne se comprime jamais ; c'est le filet qui cède la place */
.badge { flex-wrap: wrap; }
.badge__label { flex: 0 1 auto; min-width: 0; overflow-wrap: break-word; }
.badge__line {
  flex: 1 1 0;
  min-width: 0;
  max-width: 56px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out) .15s;
}
[data-reveal].is-in .badge__line,
.is-in .badge__line { transform: scaleX(1); }

/* Variante sur fond bleu */
.section--blue .badge, .cta .badge { color: var(--yellow); }
.section--blue .badge__icon, .cta .badge__icon {
  background: rgba(255,255,255,.1);
  border: 1px solid var(--on-blue-line);
  color: var(--yellow);
}

/* Le survol de la section anime la pastille */
section:hover .badge__icon { transform: translateY(-2px); }

/* Colonne étroite du chapeau : le filet n'a pas la place */
.intro__grid .badge__line { display: none; }

@media (max-width: 560px) {
  .badge__icon { width: 34px; height: 34px; }
  .badge__icon svg { width: 16px; height: 16px; }
  .badge__line { display: none; }
}

/* --------------------------------------------------------------------------
   32. Aucune offre d'emploi ouverte
   -------------------------------------------------------------------------- */
.job-empty {
  max-width: 74ch;
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.job-empty__icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--yellow);
}
.job-empty__icon svg { width: 26px; height: 26px; }
.job-empty__title {
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  color: var(--blue);
  letter-spacing: -.025em;
  margin-bottom: 1rem;
}
.job-empty__text {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-muted);
  margin-bottom: 1.85rem;
}
.job-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   33. Champ fichier (dépôt de CV)
   -------------------------------------------------------------------------- */
.field-file { position: relative; }

/* L'input natif reste accessible au clavier mais visuellement remplacé */
.field-file input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

.field-file__button {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1.15rem;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
  transition: border-color var(--t), background var(--t), color var(--t);
  cursor: pointer;
}
.field-file input[type="file"]:hover + .field-file__button,
.field-file input[type="file"]:focus-visible + .field-file__button {
  border-color: var(--blue);
  background: var(--white);
  color: var(--blue);
}
.field-file input[type="file"]:focus-visible + .field-file__button {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.field-file__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 8px;
  background: var(--blue);
  color: var(--yellow);
}
.field-file__icon svg { width: 17px; height: 17px; }

.field-file__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Fichier sélectionné */
.field-file.has-file .field-file__button {
  border-style: solid;
  border-color: #BFE3CB;
  background: #F3FAF5;
  color: var(--ink);
}
.field-file.has-file .field-file__icon { background: #1C6B36; color: var(--white); }

.field.has-error .field-file__button { border-color: #C4342B; background: #FDF4F3; }

.field__hint {
  margin-top: .45rem;
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}

/* Le formulaire posé sur une section grise reste blanc */
.section--surface .form-card { background: var(--white); }

/* ==========================================================================
   34. Ornements de fond
   ==========================================================================
   Motifs SVG inspires du metier (cables, jonctions, brassage). Toujours
   decoratifs : jamais d'information, jamais d'interaction, opacite basse.
   ========================================================================== */
.orn-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  color: var(--blue);
}
.orn-layer .orn { position: absolute; }

/* Le contenu de section repasse au-dessus */
.section > .wrap { position: relative; z-index: 1; }

/* Sur fond bleu, les motifs deviennent clairs */
.section--blue .orn-layer,
.cta .orn-layer,
.page-hero .orn-layer { color: var(--white); }

/* --- Placements ---------------------------------------------------------- */

/* Faisceau de câbles, pleine largeur en pied de section */
.orn--cables {
  left: 0; right: 0; bottom: -6%;
  width: 100%; height: 62%;
  opacity: .09;
}
.section--blue .orn--cables, .cta .orn--cables { opacity: .20; }

/* Réseau de jonctions, à droite */
.orn--network {
  right: -4%; top: 50%;
  width: min(38vw, 460px);
  transform: translateY(-50%);
  opacity: .085;
}
.section--blue .orn--network, .cta .orn--network { opacity: .17; }

/* Trame de brassage, angle supérieur droit */
.orn--patch {
  right: -3%; top: 8%;
  width: min(34vw, 420px);
  opacity: .075;
}
.section--blue .orn--patch { opacity: .16; }

/* Arcs, en pied de section pleine largeur */
.orn--arc {
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 55%;
  opacity: .09;
}
.section--blue .orn--arc, .cta .orn--arc { opacity: .20; }

/* Grille de points, angle supérieur gauche */
.orn--dots {
  left: -2%; top: 6%;
  width: min(22vw, 260px);
  opacity: .10;
}
.section--blue .orn--dots, .cta .orn--dots { opacity: .20; }

/* Variantes de position */
.orn-layer--left  .orn--network { right: auto; left: -6%; }
.orn-layer--top   .orn--dots    { top: 4%; }

/* Discrétion sur petit écran : les motifs ne doivent pas gêner la lecture */
@media (max-width: 860px) {
  .orn--network, .orn--patch, .orn--dots { display: none; }
  .orn--cables, .orn--arc { opacity: .06; }
  .section--blue .orn--cables, .section--blue .orn--arc,
  .cta .orn--cables, .cta .orn--arc { opacity: .13; }
}

/* Aucun ornement à l'impression */
@media print { .orn-layer { display: none; } }

/* ==========================================================================
   35. Finitions de direction artistique
   ========================================================================== */

/* --------------------------------------------------------------------------
   Transition entre le hero et la section suivante : une lame diagonale
   -------------------------------------------------------------------------- */
.hero { padding-bottom: clamp(4rem, 8vw, 7rem); }

.hero::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(40px, 5vw, 72px);
  z-index: 1;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* --------------------------------------------------------------------------
   Filet d'accent en tête de section claire
   -------------------------------------------------------------------------- */
.section--surface { position: relative; }
.section--surface::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--yellow) 0%, var(--yellow) 12%, var(--border) 12%, var(--border) 100%);
}

/* --------------------------------------------------------------------------
   Cartes domaines : bandeau de couleur propre à chaque domaine
   -------------------------------------------------------------------------- */
.domain { position: relative; }
.domain::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  z-index: 4;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.domain:hover::before { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   Chapeau éditorial : lettrine discrète
   -------------------------------------------------------------------------- */
.intro__text::first-letter {
  font-size: 1.15em;
  font-weight: 800;
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   Citation : guillemet ouvrant en filigrane
   -------------------------------------------------------------------------- */
.quote { position: relative; overflow: hidden; }
.quote::after {
  content: '«';
  position: absolute;
  right: 1.5rem; top: -1.5rem;
  font-size: 10rem;
  line-height: 1;
  font-weight: 800;
  color: var(--yellow);
  opacity: .16;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Timeline : dégradé du filet vertical
   -------------------------------------------------------------------------- */
.timeline::before {
  background: linear-gradient(180deg, var(--yellow) 0%, var(--blue) 45%, var(--border) 100%);
}

/* --------------------------------------------------------------------------
   Pied de page : trame de points en filigrane
   -------------------------------------------------------------------------- */
.footer { position: relative; overflow: hidden; }
.footer::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 340px; height: 340px;
  background-image: radial-gradient(circle, rgba(255,255,255,.16) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}
.footer .wrap { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Statbar : séparateurs verticaux plus fins et dégradés
   -------------------------------------------------------------------------- */
.statbar { position: relative; overflow: hidden; }
.statbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow) 0%, transparent 45%);
}

/* --------------------------------------------------------------------------
   Cartes de chiffres : chiffre fantôme au survol
   -------------------------------------------------------------------------- */
.figure-card { position: relative; }
.figure-card::before {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  width: 42px; height: 3px;
  transform: translateX(-50%);
  background: var(--yellow);
  opacity: 0;
  transition: opacity .45s var(--ease-out);
}
.figure-card:hover::before { opacity: 1; }

/* --------------------------------------------------------------------------
   Liens de solutions : coin supérieur marqué
   -------------------------------------------------------------------------- */
.sol-link::after { height: 3px; }

/* --------------------------------------------------------------------------
   Formulaire : accent sur la carte
   -------------------------------------------------------------------------- */
.form-card { position: relative; overflow: hidden; }
.form-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 84px; height: 3px;
  background: var(--yellow);
}

/* --------------------------------------------------------------------------
   Carte de contact : filet d'accent
   -------------------------------------------------------------------------- */
.contact-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 84px; height: 3px;
  background: var(--yellow);
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Pied de page : hiérarchie et respiration
   -------------------------------------------------------------------------- */
.footer__brand p { line-height: 1.75; }

/* Coordonnées mises en avant */
.footer__grid > div:last-child li:not(:last-child) a,
.footer__grid > div:last-child li:not(:last-child) {
  font-weight: 600;
  color: var(--on-blue-soft);
}

/* Colonnes : filet de séparation discret.
   Reserve aux grands ecrans : en dessous, le padding rendrait les colonnes
   trop etroites pour « Électrique/Domotique ». */
@media (min-width: 1100px) {
  .footer__grid > div:not(:first-child) {
    padding-left: clamp(1.25rem, 2vw, 2rem);
    border-left: 1px solid var(--on-blue-line);
  }
}
.footer li { overflow-wrap: break-word; }

/* Réseaux sociaux : accent au survol */
.footer__social { border-radius: 3px; }

/* Bandeau final : séparateur plus marqué */
.footer__bottom { border-top: 1px solid var(--on-blue-line); margin-top: 0; }

/* --------------------------------------------------------------------------
   Header : la barre de progression se fond dans le filet du header
   -------------------------------------------------------------------------- */
.progress { box-shadow: 0 0 12px rgba(255, 215, 14, .45); }

/* --------------------------------------------------------------------------
   Boutons secondaires sur fond clair : bordure plus présente
   -------------------------------------------------------------------------- */
.btn--ghost { border-color: rgba(0, 60, 128, .22); }
.btn--ghost:hover { border-color: var(--blue); background: rgba(0, 60, 128, .04); }

/* --------------------------------------------------------------------------
   Sélection de section active dans le sommaire des solutions
   -------------------------------------------------------------------------- */
.sol-link { transition: background var(--t), color var(--t), transform .4s var(--ease-out); }
.sol-link:hover { transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   Accordéon : la question ouverte se distingue plus nettement
   -------------------------------------------------------------------------- */
.acc__trigger[aria-expanded="true"] { color: var(--blue); }
.acc__trigger[aria-expanded="true"] .acc__index { color: var(--yellow-text); }

/* ==========================================================================
   36. Confort tactile (mobile)
   ==========================================================================
   Les liens de texte font ~21 px de haut, sous le minimum recommande de 44 px.
   On elargit la zone touchable sans modifier l'apparence : le lien garde sa
   taille visuelle, seule la surface de contact grandit.
   ========================================================================== */
@media (hover: none), (max-width: 860px) {

  /* Liens du pied de page et des listes */
  .footer li a,
  .footer__legal a,
  .footer__bottom a,
  .crumbs a,
  .news-follow a,
  .lead a,
  .intro__note a {
    position: relative;
    display: inline-block;
    padding-block: .75rem;
    min-height: 44px;
  }

  /* Liens flechés : hauteur de touche confortable */
  .link-arrow {
    padding-block: .6rem;
    min-height: 44px;
    align-items: center;
  }

  /* Liens de contact (téléphone, e-mail) */
  .contact-item a,
  .cta__contact {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* Cases à cocher : surface de touche etendue au libelle */
  .form-consent {
    padding-block: .35rem;
    min-height: 44px;
    align-items: center;
  }
  .form-consent input {
    width: 22px; height: 22px;
    margin-top: 0;
    position: relative;
  }
  /* Zone de touche etendue autour de la case, sans la deformer */
  .form-consent input::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 44px; height: 44px;
    transform: translate(-50%, -50%);
  }

  /* Liens dans les paragraphes légaux et le consentement */
  .stack-sm a,
  .form-consent a {
    display: inline-block;
    padding-block: .6rem;
    min-height: 44px;
  }
}

/* Le lien de saut reste discret mais touchable une fois révélé */
.skip-link { min-height: 44px; display: inline-flex; align-items: center; }
