/* Rconnect — site statique.
   Direction : la charte Rconnect (panneaux en dégradé pétrole aux coins sombres, cadres fins blancs arrondis,
   cube 3D, réseau de lignes verticales, Neue Montreal) sur des pages claires ; le sombre sert au relief
   (bandeau nuit, fondateur, pied de page). Signature : le bâtiment en coupe qui révèle les trois métiers. */

@font-face { font-family: 'Neue Montreal'; src: url('/assets/fonts/NeueMontreal-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Neue Montreal'; src: url('/assets/fonts/NeueMontreal-Medium.woff') format('woff'); font-weight: 500 800; font-display: swap; }

:root {
  --ink: #001f21; --deep: #003d40; --petrol: #006a6f; --teal: #008c92; --aqua: #66bfc3; --mist: #cef1f2;
  --paper: #eef9f9; --line: #d4e7e8; --muted: #3f5e60; --white: #fff;
  --r-sm: 12px; --r: 20px; --r-lg: 30px;
  --gut: clamp(1rem, 3.2vw, 2.25rem);
  --sec: clamp(4.5rem, 9vw, 8rem);
  --font: 'Neue Montreal', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sh: 0 1px 2px rgba(0,31,33,.06), 0 14px 34px -14px rgba(0,31,33,.24);
  --sh-lg: 0 2px 4px rgba(0,31,33,.08), 0 34px 70px -28px rgba(0,31,33,.5);
  --ease: cubic-bezier(.2,.7,.2,1);
  --hd: 78px;
  color-scheme: light;
}
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -.03em; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.25; }
p { text-wrap: pretty; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--deep); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--mist); color: var(--ink); }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 820px; }
.i { width: 1.5em; height: 1.5em; flex: none; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; border-radius: 10px; background: var(--ink); color: #fff; }
.skip:focus { top: 1rem; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1.1rem;
  font-size: .95rem; font-weight: 500; color: var(--teal);
}
.eyebrow::before {
  content: ''; width: .72rem; height: .72rem; border-radius: 3px; transform: rotate(-28deg);
  background: linear-gradient(135deg, var(--aqua), var(--petrol)); box-shadow: -2px 2px 0 var(--ink);
}
.eyebrow--light { color: var(--aqua); }
.eyebrow--light::before { box-shadow: -2px 2px 0 rgba(0,0,0,.5); }
.lead { font-size: clamp(1.1rem, 1.45vw, 1.28rem); line-height: 1.52; }
.big { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.38; color: var(--deep); margin-bottom: 1.25rem; letter-spacing: -.01em; }

/* ---------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 1.65rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--deep); color: #fff; font-weight: 500; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .3s, transform .2s;
}
.btn .i { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease); }
.btn:hover { background: var(--ink); color: #fff; box-shadow: var(--sh); }
.btn:hover .i { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: .68rem 1.25rem; font-size: .95rem; }
.btn--ink { background: var(--ink); }
.btn--ink:hover { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.65); }
.btn--ghost:hover { background: #fff; color: var(--deep); }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { background: var(--mist); color: var(--ink); }
.btn--line { background: transparent; color: var(--deep); border-color: var(--line); }
.btn--line:hover { background: var(--paper); color: var(--ink); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.tlink { display: inline-flex; align-items: center; gap: .5rem; margin-top: .5rem; padding-bottom: .2rem; font-weight: 500; color: var(--deep); border-bottom: 1px solid var(--aqua); }
.tlink .i { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
.tlink:hover .i { transform: translateX(4px); }

/* ---------------------------------------------------------------- En-tête */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; view-transition-name: hd; }
.hd.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 28px -22px rgba(0,31,33,.55); }
.hd__in { display: flex; align-items: center; gap: 2rem; height: var(--hd); }
.hd__logo img { height: 34px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: .2rem; }
.nav__list a { display: block; padding: .55rem .9rem; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: .97rem; transition: background-color .2s, color .2s; }
.nav__list a:hover { background: var(--paper); color: var(--ink); }
.nav__list a[aria-current='page'] { background: var(--mist); color: var(--deep); }
.nav__contact, .nav__meta { display: none; }
.hd__act { display: flex; align-items: center; gap: 1rem; }
.hd__tel { display: inline-flex; align-items: center; gap: .45rem; color: var(--deep); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.hd__tel .i { width: 1.2em; height: 1.2em; color: var(--teal); }
.burger { display: none; position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded='true'] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1180px) { .hd__tel span { display: none; } }
@media (max-width: 991.98px) {
  .burger { display: block; }
  .hd__act { margin-left: auto; }
  .hd__act .btn { display: none; }
  .nav {
    position: fixed; inset: var(--hd) 0 0; z-index: 49; display: flex; flex-direction: column; justify-content: space-between;
    padding: 1.5rem var(--gut) calc(2rem + env(safe-area-inset-bottom));
    background: var(--deep) url('/assets/img/bg-2-sm.webp') center / cover;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .35s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { padding: 1rem 0; border-radius: 0; color: #fff; font-size: 1.8rem; letter-spacing: -.02em; border-bottom: 1px solid rgba(255,255,255,.18); }
  .nav__list a:hover, .nav__list a[aria-current='page'] { background: none; color: var(--mist); }
  .nav__contact { display: block; }
  .nav__meta { display: flex; flex-direction: column; gap: .6rem; }
  .nav__meta a { display: inline-flex; align-items: center; gap: .6rem; color: var(--mist); font-size: 1.1rem; }
}

/* ---------------------------------------------------------------- Héros : panneau dégradé de la charte + cadre fin */
.hero { padding: 12px clamp(8px, 1.3vw, 16px) 0; }
.hero__panel {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); color: #fff;
  padding: clamp(8px, 1.1vw, 14px); background: var(--teal) url('/assets/img/bg-1.webp') center / cover no-repeat;
}
.hero__panel--alt { background-image: url('/assets/img/bg-2.webp'); }
.hero__panel::after {
  content: ''; position: absolute; inset: 0 0 0 auto; width: 46%; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.15) 0 1px, transparent 1px 8px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 80%); mask-image: linear-gradient(90deg, transparent, #000 80%);
}
.hero__frame {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2.5rem clamp(2rem, 4vw, 4rem); align-items: center;
  padding: clamp(1.75rem, 4.6vw, 4.25rem); border: 1px solid rgba(255,255,255,.5); border-radius: calc(var(--r-lg) - 8px);
}
.hero--home .hero__frame { min-height: min(calc(100svh - var(--hd) - 30px), 860px); grid-template-rows: 1fr auto; }
.hero__text { max-width: 640px; }
.hero__text .lead { color: rgba(255,255,255,.9); margin-top: 1.6rem; max-width: 590px; }
.hero h1 .hl { color: var(--mist); }
.hero--page h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
.pill { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.6rem; padding: .45rem .95rem .45rem .7rem; border-radius: 999px; background: rgba(0,31,33,.62); font-size: .88rem; font-weight: 500; }
.pill__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(102,191,195,.25); }
.facts {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 2rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.32);
}
.facts dt { font-size: .86rem; color: rgba(255,255,255,.7); }
.facts dd { margin-top: .15rem; font-size: 1.12rem; font-weight: 500; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; font-size: .9rem; color: rgba(255,255,255,.7); }
.crumbs a { color: rgba(255,255,255,.88); }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }
.crumbs--dark { color: var(--muted); }
.crumbs--dark a { color: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chips a { display: inline-block; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); color: #fff; font-size: .93rem; transition: background-color .2s, color .2s; }
.chips a:hover { background: #fff; color: var(--deep); }

/* ---------------------------------------------------------------- Explorateur : bâtiment en coupe */
.ex { position: relative; width: 100%; max-width: 660px; margin-inline: auto; }
.ex-tabs {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 auto 1rem; padding: 4px; max-width: 420px;
  border-radius: 999px; background: rgba(0,31,33,.5);
}
.ex-tabs button { position: relative; z-index: 1; padding: .6rem .5rem; border: 0; border-radius: 999px; background: none; color: rgba(255,255,255,.82); font-size: .93rem; font-weight: 500; transition: color .3s; }
.ex-tabs button[aria-selected='true'] { color: var(--deep); }
.ex-tabs__ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: #fff; box-shadow: 0 6px 16px -6px rgba(0,0,0,.45); transition: transform .5s var(--ease); }
.ex[data-active='net'] .ex-tabs__ind { transform: translateX(100%); }
.ex[data-active='sec'] .ex-tabs__ind { transform: translateX(200%); }
.ex-stage { position: relative; color: #fff; --bg: #0b5b5f; }
.bx { width: 100%; height: auto; overflow: visible; }
.bx .bg { fill: var(--bg); }
.bx-base { opacity: .5; }
.bx-base .f { opacity: .55; }
.bx-l { opacity: .14; transition: opacity .6s var(--ease); }
.bx .cone { fill: currentColor; fill-opacity: .1; }
.ex[data-active='elec'] [data-layer='elec'], .ex[data-active='net'] [data-layer='net'], .ex[data-active='sec'] [data-layer='sec'] { opacity: 1; }
.fl { stroke-dasharray: 6 8; stroke-width: 2.2; }
.fl-alt { stroke-dasharray: 2 6; }
.is-live .fl { animation: flow 1.3s linear infinite; }
.is-live .g { animation: glow 2.4s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.hs { position: absolute; left: var(--x); top: var(--y); z-index: 2; display: flex; align-items: center; gap: .45rem; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; transition: opacity .35s, transform .45s var(--ease); }
.ex[data-active='elec'] .hs[data-layer='elec'], .ex[data-active='net'] .hs[data-layer='net'], .ex[data-active='sec'] .hs[data-layer='sec'] { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hs__dot {
  position: relative; display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: #fff; color: var(--deep); font-size: .7rem; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.hs__dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.7); opacity: 1; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.hs__lab { position: absolute; top: 50%; padding: .28rem .6rem; border-radius: 8px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 500; white-space: nowrap; transform: translateY(-50%); box-shadow: 0 6px 14px -6px rgba(0,0,0,.6); }
.hs--r .hs__lab { left: calc(100% + 6px); }
.hs--l .hs__lab { right: calc(100% + 6px); }
.ex-legend { position: relative; margin-top: .75rem; }
.ex-panel { display: none; padding: 1rem 1.15rem; border-radius: var(--r); background: rgba(0,31,33,.42); }
.ex[data-active='elec'] .ex-panel[data-layer='elec'], .ex[data-active='net'] .ex-panel[data-layer='net'], .ex[data-active='sec'] .ex-panel[data-layer='sec'] { display: block; animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.ex-panel p { font-size: .95rem; color: rgba(255,255,255,.9); }
.ex-panel ol { display: none; }
.ex-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .45rem; color: var(--mist); font-weight: 500; font-size: .93rem; }
.ex-more .i { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.ex-more:hover { color: #fff; }
.ex-more:hover .i { transform: translateX(4px); }
.ex[data-lock] .ex-legend { display: none; }

/* ---------------------------------------------------------------- Sections */
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: clamp(1.25rem, 3vw, 2.5rem); }
.sec--tight + .sec--tight { padding-top: 0; }
.sec--paper { background: var(--paper); }
.sec--deep { position: relative; color: #fff; background: var(--ink) url('/assets/img/bg-2.webp') center / cover; }
.head { max-width: 780px; margin-bottom: clamp(2.25rem, 4.5vw, 3.75rem); }
.head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; }
.head--split > p { color: var(--muted); font-size: 1.1rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(3rem, 7vw, 7rem); align-items: start; }
.split h2 { margin-bottom: 1.25rem; }
.split p + p { margin-top: 1rem; }
.split > div > p:not(.eyebrow) { color: var(--muted); }
.sticky { position: sticky; top: calc(var(--hd) + 32px); }

/* Accueil : intro + portrait */
.intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 3rem clamp(3rem, 8vw, 8rem); align-items: center; }
.intro h2 { margin-bottom: 1.5rem; }
.intro__text > p:not(.eyebrow):not(.big) { color: var(--muted); margin-bottom: 1.5rem; }
.portrait { position: relative; width: 100%; max-width: 400px; justify-self: end; }
.portrait__frame { padding: 10px; border-radius: var(--r-lg); background: var(--teal) url('/assets/img/bg-2-sm.webp') center / cover; box-shadow: var(--sh-lg); }
.portrait__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; border-radius: calc(var(--r-lg) - 8px); }
.portrait figcaption {
  position: absolute; left: -2.25rem; right: 2rem; bottom: 2rem; padding: 1rem 1.25rem; border-radius: var(--r);
  background: #fff; box-shadow: var(--sh-lg); font-size: .9rem; color: var(--muted);
}
.portrait figcaption b { display: block; font-weight: 500; font-size: 1.1rem; color: var(--ink); }
.portrait--dark { justify-self: start; max-width: 440px; }
.portrait--dark .portrait__frame { background: transparent; border: 1px solid rgba(255,255,255,.45); }

/* Cartes de service (cadre fin + flèche, sur dégradé) */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.svc-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc {
  display: block; position: relative; padding: 10px; border-radius: var(--r-lg); color: #fff; box-shadow: var(--sh);
  background: var(--teal) url('/assets/img/bg-2-sm.webp') center / cover; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.svc--net { background-image: url('/assets/img/bg-1-sm.webp'); }
.svc:hover { color: #fff; transform: translateY(-6px); box-shadow: var(--sh-lg); }
.svc__frame { display: flex; flex-direction: column; height: 100%; padding: 1.5rem 1.6rem 1.6rem; border: 1px solid rgba(255,255,255,.5); border-radius: calc(var(--r-lg) - 7px); }
.svc__top { display: flex; align-items: center; justify-content: space-between; }
.svc__num { font-size: .88rem; color: var(--mist); }
.svc__go { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); transition: background-color .35s, color .35s; }
.svc__go .i { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.svc:hover .svc__go { background: #fff; color: var(--deep); }
.svc:hover .svc__go .i { transform: rotate(45deg); }
.svc__ill { margin: 1.25rem 0 1.5rem; }
.ill { width: 100%; height: auto; --bg: #0b5b5f; }
.ill .bg { fill: var(--bg); }
.ill .cone { fill: currentColor; fill-opacity: .1; }
.svc__title { display: block; font-size: clamp(1.5rem, 2.1vw, 1.95rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.svc__line { display: block; margin-top: .6rem; color: rgba(255,255,255,.85); font-size: .98rem; }
.svc__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; }
.svc__chips li { padding: .3rem .75rem; border-radius: 999px; background: rgba(0,31,33,.38); font-size: .84rem; }

/* Étapes avec icône */
.steps li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1.25rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--muted); }
.steps__i { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 16px; background: var(--mist); color: var(--deep); --ib: var(--mist); }
.steps__i .i { width: 30px; height: 30px; }

/* Bandeau nuit */
.night {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center;
  padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: var(--r-lg); color: #fff; box-shadow: var(--sh-lg);
  background: radial-gradient(120% 140% at 0% 0%, var(--deep) 0%, var(--ink) 55%), var(--ink);
}
.night h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.night__txt > p:not(.eyebrow) { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; max-width: 620px; }
.night__sky { width: 100%; max-width: 360px; justify-self: center; height: auto; }
.night__stars circle { fill: #fff; opacity: .7; }
.night__moon { fill: var(--mist); }
.night__bld { fill: rgba(102,191,195,.1); stroke: rgba(102,191,195,.45); stroke-width: .8; }
.night__win rect { fill: rgba(255,255,255,.08); }
.night__win rect:nth-child(4n+1), .night__win rect:nth-child(7) { fill: #f8e7a6; }
.is-live .night__win rect:not(:nth-child(4n+1)):not(:nth-child(7)) { animation: win 6s steps(1) infinite; animation-delay: var(--d); }
.is-live .night__stars circle { animation: glow 3.2s ease-in-out infinite; }
.is-live .night__stars circle:nth-child(2n) { animation-delay: 1.4s; }
@keyframes win { 0%, 30% { fill: rgba(255,255,255,.08); } 31%, 75% { fill: #f8e7a6; } 76%, 100% { fill: rgba(255,255,255,.08); } }

/* Engagement / histoire */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.duo__item { padding: clamp(1.75rem, 3.6vw, 3rem); border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--paper)); }
.duo__item h2 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); margin-bottom: 1rem; }
.duo__item p { color: var(--muted); }
.duo__item--deep { border: 0; color: #fff; background: var(--deep) url('/assets/img/bg-1-sm.webp') center / cover; }
.duo__item--deep p { color: rgba(255,255,255,.85); }
.duo__kick { margin-bottom: .75rem; font-size: 1.2rem; }
.duo__item--deep .duo__kick { color: var(--mist); }
.duo__i { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 1.75rem; border-radius: 17px; background: var(--mist); color: var(--deep); }
.duo__item--deep .duo__i { background: rgba(255,255,255,.14); color: #fff; }
.duo__i .i { width: 30px; height: 30px; }

/* Bandeau contact */
.cta { position: relative; padding: 12px; border-radius: var(--r-lg); color: #fff; background: var(--teal) url('/assets/img/bg-1.webp') center / cover; }
.cta::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 8px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 45%); mask-image: linear-gradient(90deg, #000, transparent 45%);
}
.cta__cube { position: absolute; z-index: 2; top: -44px; right: 7%; width: 120px; filter: drop-shadow(0 20px 26px rgba(0,31,33,.45)); transition: transform .2s linear; }
.cta__frame {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(2rem, 4.6vw, 4rem); border: 1px solid rgba(255,255,255,.5); border-radius: calc(var(--r-lg) - 7px);
}
.cta h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); margin-bottom: .6rem; }
.cta h2 b { font-weight: 800; letter-spacing: -.04em; }
.cta__frame p { color: rgba(255,255,255,.86); font-size: 1.15rem; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cta__link { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 500; }
.cta__link .i { width: 1.2em; height: 1.2em; color: var(--mist); }
.cta__link:hover { color: var(--mist); }

/* ---------------------------------------------------------------- Pages de service */
.hero__side { min-width: 0; }
.lede p { font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.45; color: var(--deep); letter-spacing: -.01em; max-width: 940px; }
.lede--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.lede--split > p + p { margin: 0; }
.blk__grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 2rem clamp(3rem, 7vw, 7rem); align-items: start; }
.blk__head { position: sticky; top: calc(var(--hd) + 32px); }
.blk__head h2 { margin-bottom: 1rem; }
.blk__icon { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 1.5rem; border-radius: 20px; background: var(--mist); color: var(--deep); --ib: var(--mist); }
.sec--paper .blk__icon { background: #fff; --ib: #fff; }
.blk__icon .i { width: 38px; height: 38px; }
.blk__num { margin-bottom: .35rem; font-size: .95rem; color: var(--teal); }
.blk__intro { margin-bottom: 1rem; font-size: 1.15rem; color: var(--deep); }
.blk__body > p:not(.blk__intro) { color: var(--muted); }
.proc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; counter-reset: s; }
.proc li {
  position: relative; padding: 1.6rem 1.5rem 1.5rem; border-radius: var(--r); background: var(--paper); border: 1px solid transparent; counter-increment: s;
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.sec--paper .proc li { background: #fff; }
.proc li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.proc li::before {
  content: counter(s, decimal-leading-zero); display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; margin-bottom: 1rem;
  border-radius: 11px; background: var(--deep); color: #fff; font-size: .85rem; font-weight: 500;
}
.proc li:hover { border-color: var(--aqua); transform: translateY(-3px); box-shadow: var(--sh); }
.proc h3 { margin-bottom: .4rem; }
.proc p { color: var(--muted); font-size: 1rem; }
.checks { margin-bottom: 1.75rem; }
.checks li { position: relative; padding: .95rem 0 .95rem 2.5rem; border-bottom: 1px solid var(--line); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 1.05rem; width: 1.55rem; height: 1.55rem; border-radius: 8px;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.note { margin-top: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r); color: #fff; background: linear-gradient(120deg, var(--deep), var(--petrol)); }
.note b { color: var(--mist); font-weight: 500; }
.note__tag { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; font-weight: 500; color: var(--mist); }
.note__tag .i { width: 1.4em; height: 1.4em; }
.note--plain { margin-top: 0; color: var(--ink); background: var(--paper); }
.note--plain .note__tag { color: var(--deep); }
.note--plain .checks { margin: 0; }
.note--plain .checks li:last-child { border-bottom: 0; padding-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--aqua); color: var(--deep); font-size: .87rem; }

/* ---------------------------------------------------------------- À propos */
.cube-stage { display: grid; place-items: center; min-height: 320px; perspective: 900px; }
.cube-stage__img { width: clamp(180px, 22vw, 300px); filter: drop-shadow(0 34px 44px rgba(0,31,33,.5)); transition: transform .25s linear; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.values li { padding: 2rem; border-radius: var(--r); background: #fff; box-shadow: var(--sh); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.values li:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.values .i { width: 46px; height: 46px; margin-bottom: 1.4rem; color: var(--teal); }
.values h3 { margin-bottom: .45rem; }
.values p { color: var(--muted); }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.skills li { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.15rem; border-radius: var(--r-sm); border: 1px solid var(--line); font-weight: 500; transition: border-color .25s, background-color .25s; }
.skills li:hover { border-color: var(--aqua); background: var(--paper); }
.skills .i { width: 2.3rem; height: 2.3rem; padding: .35rem; border-radius: 10px; background: var(--mist); color: var(--deep); --ib: var(--mist); }
.founder { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 3rem clamp(3rem, 8vw, 8rem); align-items: center; }
.founder h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
.founder__role { margin: .6rem 0 1.5rem; font-size: 1.2rem; color: var(--aqua); }
.founder__text p:not(.eyebrow):not(.founder__role) { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.founder__text p + p { margin-top: 1rem; }
.quote { margin-top: 2.25rem; padding-left: 1.5rem; border-left: 3px solid var(--teal); }
.quote p { font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.4; color: var(--deep); letter-spacing: -.01em; }

/* ---------------------------------------------------------------- Contact */
.contact { padding-top: clamp(2.5rem, 5vw, 4.5rem); background: linear-gradient(180deg, var(--paper), #fff 70%); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: start; }
.contact h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.contact__info .lead { margin-top: 1.25rem; color: var(--muted); }
.coords { margin: 2rem 0; }
.coords li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.coords .i { width: 2.75rem; height: 2.75rem; padding: .6rem; border-radius: 13px; background: var(--deep); color: #fff; }
.coords span { display: block; font-size: .85rem; color: var(--muted); }
.coords a { color: var(--ink); font-weight: 500; font-size: 1.1rem; }
.coords a:hover { color: var(--teal); }
.contact__card { padding: clamp(1.5rem, 3.6vw, 2.75rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-lg); }
.contact__card h2 { margin-bottom: 1.5rem; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.form { display: flex; flex-wrap: wrap; gap: 1.1rem 1rem; }
.fld { width: 100%; }
.fld--half { width: calc(50% - .5rem); }
.fld label { display: block; margin-bottom: .4rem; font-size: .93rem; font-weight: 500; color: var(--deep); }
.fld label span { color: var(--teal); }
.fld input, .fld textarea {
  width: 100%; padding: .9rem 1rem; border-radius: var(--r-sm); border: 1px solid #c3dcdd; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.fld textarea { min-height: 150px; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,140,146,.16); }
.fld [aria-invalid='true'] { border-color: #b4423a; box-shadow: 0 0 0 4px rgba(180,66,58,.12); }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.seg button { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--deep); font-size: .9rem; transition: background-color .2s, border-color .2s, color .2s; }
.seg button:hover { border-color: var(--aqua); }
.seg button[aria-pressed='true'] { background: var(--deep); border-color: var(--deep); color: #fff; }
.form__note { width: 100%; font-size: .85rem; color: var(--muted); }
.form__err { width: 100%; color: #b4423a; font-weight: 500; }
.map { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); }
.map__img { width: 100%; height: 440px; object-fit: cover; }
.map__pin { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -100%); }
.map__pin img { width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 10px 24px -6px rgba(0,31,33,.6); position: relative; z-index: 1; }
.map__pin::before { content: ''; position: absolute; left: 50%; bottom: -14px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgba(0,61,64,.25); animation: ping 2.4s var(--ease) infinite; }
.map__credit { position: absolute; right: .6rem; bottom: .5rem; margin: 0; padding: .15rem .5rem; border-radius: 6px; background: rgba(255,255,255,.85); font-size: .72rem; color: var(--muted); }
.map__credit a { color: var(--deep); }
.map__card { position: absolute; left: 1.25rem; bottom: 1.25rem; max-width: 300px; padding: 1.25rem 1.4rem; border-radius: var(--r); background: #fff; box-shadow: var(--sh-lg); }
.map__card p { color: var(--muted); }
.map__name { color: var(--ink) !important; font-weight: 500; font-size: 1.15rem; }

/* ---------------------------------------------------------------- Légal, 404 */
.legal { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.legal h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-bottom: 2rem; }
.prose { color: var(--muted); }
.prose h2 { margin: 2.6rem 0 .8rem; font-size: 1.35rem; letter-spacing: -.01em; color: var(--ink); }
.prose p, .prose ul { margin-bottom: 1rem; }
.prose ul { padding-left: 1.2rem; list-style: disc; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--teal); }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound__code { font-size: clamp(6rem, 18vw, 12rem); line-height: .9; font-weight: 500; letter-spacing: -.06em; color: var(--mist); }
.notfound h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.notfound .lead { color: var(--muted); }
.notfound .actions { justify-content: center; }

/* ---------------------------------------------------------------- Pied de page */
.ft { margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; color: rgba(255,255,255,.75); background: var(--ink); font-size: .97rem; overflow: hidden; }
.ft a { color: rgba(255,255,255,.75); }
.ft a:hover { color: #fff; }
.ft__big {
  margin: 0 0 clamp(2rem, 5vw, 4rem); font-size: clamp(4.5rem, 17vw, 16rem); line-height: .8; font-weight: 500; letter-spacing: -.065em;
  background: linear-gradient(100deg, var(--aqua), var(--teal) 40%, rgba(0,140,146,.15)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ft__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .8fr)) minmax(0, 1fr); gap: 2.5rem 3rem; }
.ft__brand img { width: 190px; margin-bottom: 1.25rem; }
.ft__brand p { max-width: 380px; }
.ft__former { margin-top: .75rem; color: var(--aqua); font-size: .9rem; }
.ft__t { margin-bottom: 1rem; color: #fff; font-weight: 500; }
.ft__grid ul li { margin-bottom: .55rem; }
.ft__c { display: flex; flex-direction: column; gap: .7rem; font-style: normal; }
.ft__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }
.ft__bot ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }

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

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1199.98px) {
  .ft__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__frame { grid-template-columns: minmax(0, 1fr); }
  .hero--home .hero__frame { min-height: 0; grid-template-rows: auto; }
  .hero__text { max-width: 760px; }
  .ex { max-width: 720px; }
}
@media (max-width: 991.98px) {
  .intro, .split, .blk__grid, .founder, .contact__grid, .head--split, .lede--split, .night { grid-template-columns: minmax(0, 1fr); }
  .sticky, .blk__head { position: static; }
  .portrait { justify-self: start; max-width: 380px; }
  .portrait figcaption { left: 1rem; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .night__sky { max-width: 240px; justify-self: start; }
  .cube-stage { min-height: 0; }
  .cube-stage__img { width: 150px; }
  .svc__ill { max-width: 420px; }
}
@media (max-width: 640px) {
  :root { --hd: 68px; }
  h1, .hero--page h1, .contact h1 { font-size: clamp(2.1rem, 10.4vw, 2.6rem); }
  .hd__in { gap: 1rem; }
  .hd__logo img { height: 28px; }
  .hs__lab { display: none; }
  .ex-panel ol { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .75rem; margin-top: .6rem; font-size: .85rem; color: rgba(255,255,255,.9); }
  .ex-panel ol li { display: flex; align-items: center; gap: .45rem; }
  .ex-panel ol span { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #fff; color: var(--deep); font-size: .65rem; font-weight: 700; }
  .hs__dot { width: 18px; height: 18px; font-size: .62rem; }
  .facts dd { font-size: 1rem; }
  .proc, .values, .skills, .svc-grid--two { grid-template-columns: minmax(0, 1fr); }
  .fld--half { width: 100%; }
  .cta__cube { width: 80px; top: -30px; }
  .ft__grid { grid-template-columns: minmax(0, 1fr); }
  .map__img { height: 320px; }
  .map__card { position: static; max-width: none; border-radius: 0; box-shadow: none; }
  .hero--page .hero__side:has(.cube-stage) { display: none; }
  .ex[data-lock] .ex-legend { display: block; }
  .ex[data-lock] .ex-panel > p { display: none; }
  .ex[data-lock] .ex-panel ol { margin-top: 0; }
}
