/* INACT — design system */
:root {
  /* Palette dérivée du logo INACT */
  --primary: #031b57;     /* marine « NACT » : identité, titres, sections sombres, footer */
  --secondary: #032199;   /* bleu royal du « N » : bandes d'appel à l'action */
  --accent: #096fff;      /* bleu électrique du « IN » : icônes, traits, éléments d'attention */
  --accent-soft: #78b0ff; /* accent clair pour fonds sombres */
  --accent-ink: #0757d4;  /* accent assombri pour petit texte sur blanc (AA) */
  --cta: #0a64ec;         /* boutons d'action (texte blanc : 5,2:1) */
  --cta-hover: #0549b8;
  --bg: #ffffff;          /* fond de page : blanc */
  --paper: #ffffff;       /* surfaces */
  --tint: #e5eeff;        /* fonds d'icônes, cartes secondaires */
  --soft: #f5f8ff;
  --line: rgba(3, 27, 87, .12);
  --text: #17224a;
  --muted: #576393;
  --radius: 28px;
  --radius-s: 16px;
  --shadow: 0 1px 2px rgba(3,27,87,.06), 0 18px 40px -18px rgba(3,27,87,.25);
  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: var(--font-heading); /* alias kept for existing rules */
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--text);
  background: var(--bg); line-height: 1.6; font-size: 17px;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--primary); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: 14px 24px; border-radius: 999px;
  font: 600 .98rem var(--font-body); text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--secondary); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-line { border-color: var(--primary); color: var(--primary); }
.btn-line:hover { background: var(--primary); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .96rem; padding: 10px 14px; border-radius: 999px; transition: background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(3,27,87,.07); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; font: 600 .78rem var(--font-body); padding: 6px 10px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--primary); content: ""; transition: transform .25s, opacity .2s; }
.burger span { top: 20px; }
.burger span::before { top: -6px; left: 0; right: 0; }
.burger span::after { top: 6px; left: 0; right: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: 12px 0 0; }
.hero-card {
  position: relative; overflow: hidden; border-radius: 40px; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(9,111,255,.38), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(120,176,255,.2), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; padding: clamp(36px, 6vw, 80px); align-items: center; min-height: 620px;
}
.hero-card::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: var(--accent-soft); }
.hero p.lead { color: rgba(255,255,255,.78); margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; height: 480px; z-index: 1; }
.globe { position: absolute; inset: 0; }
.chip {
  position: absolute; background: var(--paper); color: var(--primary); border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.55); font-size: .88rem; display: flex; align-items: center; gap: 12px;
  animation: float 7s ease-in-out infinite;
}
.chip b { display: block; font-size: .92rem; }
.chip small { color: var(--muted); font-size: .78rem; }
.chip .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); flex: none; }
.chip .ico svg { width: 20px; height: 20px; }
.chip .ok { background: var(--tint); color: var(--accent-ink); }
.chip.c1 { top: 4%; left: 2%; }
.chip.c2 { top: 30%; right: 0; animation-delay: -2s; }
.chip.c3 { bottom: 22%; left: 0; animation-delay: -4s; }
.chip.c4 { bottom: 2%; right: 8%; animation-delay: -1s; }
.status { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); margin-left: 4px; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Domains strip */
.strip { padding: 44px 0 0; }
.strip p { text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags li { padding: 10px 20px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; background: var(--paper); }

/* Section header */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }

/* Solutions bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden;
  border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card .num { font: 500 .9rem var(--font-body); color: var(--accent-ink); letter-spacing: .1em; margin-bottom: 36px; display: block; }
.card .arrow { position: absolute; right: 26px; top: 26px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background .2s, transform .3s; }
.card:hover .arrow { background: var(--cta); border-color: var(--cta); color: #fff; transform: rotate(-45deg); }
.card .arrow svg { width: 16px; height: 16px; }
.b1 { grid-column: span 3; min-height: 300px; background: var(--primary); color: #fff; border: 0; }
.b1 h3 { color: #fff; font-size: 2rem; } .b1 p { color: rgba(255,255,255,.75); } .b1 .arrow { border-color: rgba(255,255,255,.3); }
.b2 { grid-column: span 3; background: var(--tint); }
.b3, .b4, .b5 { grid-column: span 2; min-height: 260px; }
a.card { text-decoration: none; color: inherit; display: block; }

/* Why */
.why { background: var(--primary); color: #fff; border-radius: 40px; margin: 0 12px; }
.why h2 { color: #fff; }
.why .eyebrow { color: var(--accent-soft); }
.why .lead { color: rgba(255,255,255,.72); }
.why-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.why-list { display: grid; gap: 14px; }
.why-item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 24px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: background .25s; }
.why-item:hover { background: rgba(255,255,255,.1); }
.why-item .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; color: var(--primary); }
.why-item .ic svg { width: 24px; height: 24px; }
.why-item h3 { color: #fff; font-size: 1.25rem; margin-bottom: .2em; }
.why-item p { margin: 0; color: rgba(255,255,255,.72); font-size: .98rem; }

/* Method */
.method-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.method-grid .sticky { position: sticky; top: 120px; align-self: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 26px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: #d3def5; }
.steps li { counter-increment: s; position: relative; padding: 0 0 clamp(56px,9vh,96px) 84px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 2px solid var(--primary); display: grid; place-items: center; font: 700 1.15rem var(--font-body); color: var(--primary); transition: background .3s, color .3s; }
.steps li:hover::before { background: var(--cta); border-color: var(--cta); color: #fff; }
.steps li p { margin: 0; font-size: 1.12rem; color: var(--text); padding-top: 10px; }

/* CTA */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; text-align: left; color: #fff; border-radius: 40px; margin-bottom: 12px; min-height: 340px;
  background: radial-gradient(700px 400px at 0% 0%, rgba(9,111,255,.45), transparent 60%), linear-gradient(135deg, var(--primary) 0%, var(--secondary) 55%, #0a4fd0 100%); }
.cta h2 { max-width: 15ch; margin: 0 0 .45em; color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); }
.cta p { max-width: 44ch; margin: 0 0 2rem; font-size: 1.12rem; color: #dbe7ff; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { max-width: 16ch; font-size: clamp(2.4rem, 5vw, 4.1rem); }
.page-hero .lead { margin-top: 1.4rem; }
.page-hero .btn { margin-top: 1.6rem; }

/* Solutions page */
.sol { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.sol .tag { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent-ink); margin-bottom: 14px; display: block; }
.sol h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.sol p { color: var(--muted); }
.sol .btn { margin-top: 12px; }
.list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 12px; }
.list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.list li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378b0ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.list b { color: var(--primary); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.panel h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-bottom: .8em; }
.panel + .panel { margin-top: 16px; }
.panel .list { margin: 0; }
.domains { width: 100%; border-collapse: collapse; }
.domains th, .domains td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.domains tr:last-child td, .domains tr:last-child th { border-bottom: 0; }
.domains th { font-weight: 600; color: var(--primary); width: 36%; padding-right: 20px; }
.domains td { color: var(--muted); }

/* Forms */
.form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--primary); }
.field label i { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid rgba(3,27,87,.2); border-radius: 12px; background: #fff; color: var(--text); width: 100%;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); background: #fff; box-shadow: 0 0 0 4px rgba(9,111,255,.16); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #c0392b; }
.form-note { grid-column: 1 / -1; font-size: .88rem; padding: 12px 14px; border-radius: 12px; display: none; }
.form-note.show { display: block; }
.form-note.ok { background: var(--tint); color: var(--accent-ink); }
.form-note.err { background: #fde6e2; color: #9a2a1b; }
.form .btn { justify-self: start; }
.side h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.side .list { margin-top: 1.5rem; }

/* Empty state & misc */
.empty { text-align: center; padding: 56px 24px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--paper); }
.empty h3 { margin-bottom: .3em; }
.empty p { color: var(--muted); max-width: 48ch; margin: 0 auto 1.4rem; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.values .card { min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.mv .card { padding: 40px; }
.mv .card h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.mv .card p { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.3; color: var(--primary); }
.contact-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--primary); color: var(--accent-soft); display: grid; place-items: center; flex: none; }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a { text-decoration: none; font-weight: 600; }
.map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 260px; background: var(--tint); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { background: var(--primary); color: rgba(255,255,255,.75); margin: 12px 12px 12px; border-radius: 40px; padding: 72px 0 28px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer h4 { font: 600 .78rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }

/* Method — animated steps (enabled by JS via .is-anim, so content stays visible without JS) */
.steps::after { content: ""; position: absolute; left: 26px; top: 10px; bottom: 10px; width: 4px; background: linear-gradient(180deg, var(--accent), var(--cta)); transform-origin: top; transform: scaleY(var(--p, 0)); will-change: transform; border-radius: 2px; }
.steps li::before { transition: transform .5s cubic-bezier(.2,.8,.2,1), background .4s, border-color .4s, color .4s, box-shadow .5s; }
.steps li p { transition: transform .35s ease, color .35s ease; }
.steps.is-anim li p { opacity: 0; transform: translateX(-18px); transition: opacity .7s ease .12s, transform .7s cubic-bezier(.2,.8,.2,1) .12s, color .35s ease; }
.steps.is-anim li.is-active p { opacity: 1; transform: none; }
.steps li.is-active::before { transform: scale(1.1); background: var(--cta); border-color: var(--cta); color: #fff; box-shadow: 0 0 0 6px rgba(9,111,255,.14), 0 8px 22px rgba(9,111,255,.35); }
.steps li:hover::before { transform: scale(1.14); background: var(--cta-hover); border-color: var(--cta-hover); color: #fff; }
.steps li:hover p { color: var(--primary); }
.steps.is-anim li.is-active:hover p { transform: translateX(6px); }
.steps:not(.is-anim) li:hover p { transform: translateX(6px); }
.method-grid .sticky .btn-line svg { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.method-grid .sticky .btn-line:hover svg { transform: translateX(7px); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .steps.is-anim li p { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1040px) {
  .hero-card { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { height: 420px; }
  .bento .b3, .bento .b4, .bento .b5 { grid-column: span 3; }
  .bento .b5 { grid-column: span 6; }
  .why-grid, .method-grid, .sec-head, .sol, .form-wrap { grid-template-columns: 1fr; gap: 32px; }
  .method-grid .sticky { position: static; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav-links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 12px 20px 24px; border-bottom: 1px solid var(--line); gap: 2px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s; box-shadow: 0 30px 40px -30px rgba(0,0,0,.3); }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 12px; font-size: 1.05rem; }
  .nav-end .btn { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-card { border-radius: 28px; padding: 28px 22px; }
  .hero-visual { height: 380px; }
  .chip { padding: 10px 12px; font-size: .8rem; }
  .chip .ico { width: 32px; height: 32px; }
  .chip.c2 { right: -4px; } .chip.c3 { bottom: 26%; }
  .bento .b1, .bento .b2, .bento .b3, .bento .b4, .bento .b5 { grid-column: span 6; min-height: 0; }
  .why { border-radius: 28px; margin: 0 8px; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .form .btn { justify-self: stretch; justify-content: center; }
  .values, .mv { grid-template-columns: 1fr; }
  .steps li { padding-left: 72px; }
  .foot { grid-template-columns: 1fr; }
  .site-footer { border-radius: 28px; margin: 8px; padding-top: 48px; }
  .cta { border-radius: 28px; }
  .domains th, .domains td { display: block; width: 100%; padding: 4px 0; }
  .domains th { padding-top: 16px; }
  .btn { white-space: normal; }
}

/* Variantes sur fonds sombres */
.hero .btn-primary, .why .btn-primary { background: var(--accent-soft); color: var(--primary); }
.hero .btn-primary:hover, .why .btn-primary:hover { background: #a3c9ff; }
.cta .btn-dark { background: #fff; color: var(--primary); }
.cta .btn-dark:hover { background: var(--tint); }
.site-footer .logo { background: #fff; padding: 8px 14px; border-radius: 12px; }
.site-footer .logo img { height: 38px; }
.b1 .num { color: var(--accent-soft); }

/* Photo */
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-split .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero-split .photo { aspect-ratio: 4 / 3.3; }
.photo-band { aspect-ratio: 21 / 9; border-radius: 40px; }
.photo-band img { object-position: 50% 35%; }
@media (max-width: 1040px) {
  .page-hero-split .wrap { grid-template-columns: 1fr; }
  .page-hero-split .photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .photo-band { aspect-ratio: 4 / 3; border-radius: 28px; }
}
.page-hero-split .photo img { object-position: 22% 50%; }

/* CTA band : texte + photo en diagonale */
.cta-copy { position: relative; z-index: 2; padding: clamp(36px, 6vw, 72px) 20px clamp(36px, 6vw, 72px) clamp(28px, 6vw, 72px); align-self: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-photo { position: relative; min-height: 280px; }
.cta-photo::before { content: ""; position: absolute; inset: 0; background: var(--accent-soft); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 40%; clip-path: polygon(calc(22% + 14px) 0, 100% 0, 100% 100%, 14px 100%); }
@media (max-width: 900px) {
  .cta { grid-template-columns: 1fr; border-radius: 28px; }
  .cta-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .cta-photo::before { clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
  .cta-photo img { clip-path: polygon(0 calc(18% + 10px), 100% 10px, 100% 100%, 0 100%); }
}

/* CTA : illustration sur fond blanc */
.cta-photo { background: #fff; }
.cta-photo img { object-fit: contain; object-position: 50% 50%; background: #fff; padding: 24px 20px 24px 48px; }
@media (max-width: 900px) { .cta-photo img { padding: 12px 12px 0; } }

/* En-tête de page Solutions */
.hero-compact .hero-card { min-height: 0; padding: clamp(32px, 5vw, 72px); gap: clamp(28px, 5vw, 64px); }
.hero-compact h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); max-width: 16ch; }
.hero-compact .lead { margin-bottom: 1.8rem; }
.jump { position: relative; z-index: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 26px; padding: 14px; backdrop-filter: blur(6px); }
.jump-title { margin: 6px 12px 8px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }
.jump a { display: grid; grid-template-columns: 34px 1fr 18px; align-items: center; gap: 10px; padding: 15px 14px; border-radius: 16px; color: #fff; text-decoration: none; font-weight: 500; transition: background .2s, transform .2s; }
.jump a + a { border-top: 1px solid rgba(255,255,255,.1); }
.jump a:hover { background: rgba(255,255,255,.12); transform: translateX(3px); }
.jump .n { font-size: .8rem; letter-spacing: .08em; color: var(--accent-soft); }
.jump svg { width: 16px; height: 16px; opacity: .7; transition: transform .2s, opacity .2s; }
.jump a:hover svg { transform: translateX(3px); opacity: 1; }

/* Page Candidats */
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 1.8rem 0 0; padding: 0; }
.hero-chips li { padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 500; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.hero-art { position: relative; z-index: 1; border-radius: 28px; overflow: hidden; background: #eef4ff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.hero-art img { width: 100%; height: auto; display: block; }
.empty-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; background: var(--tint); color: var(--accent-ink); }
.empty-ic svg { width: 28px; height: 28px; }
@media (max-width: 1040px) { .hero-art { max-width: 560px; } }
.hero-compact .hero-card:has(.hero-art) { grid-template-columns: 1fr 1fr; }
#offres { padding-top: clamp(28px, 4vw, 48px); }

/* Method — clearer inactive/active contrast */
.steps.is-anim li:not(.is-active)::before { border-color: #b4c6ee; color: #8b9ccb; background: #fff; }
.steps li::before { font-weight: 700; }
.steps.is-anim li:not(.is-active) p { color: var(--muted); }
.steps li.is-active p { color: var(--primary); font-weight: 500; }
.steps::before, .steps::after { z-index: 0; }
.steps li { z-index: 1; }

/* Typography base — Lora (headings) + Plus Jakarta Sans (body, UI, numbers) */
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-weight: 400; line-height: 1.65; }
p, li, dd, dt, blockquote, figcaption, td, th, label, small { font-family: var(--font-body); }
a { font-family: inherit; }
button, input, select, textarea, .btn, nav, .num { font-family: var(--font-body); }
ul, ol { font-family: var(--font-body); }
h1 { font-weight: 600; }

/* ===== À propos — refonte graphique ===== */
.photo-wrap { position: relative; isolation: isolate; padding: 0 0 0 0; }
.photo-wrap::before { content: ""; position: absolute; z-index: -1; right: -26px; top: -26px; width: 150px; height: 150px; background-image: radial-gradient(var(--accent) 1.6px, transparent 1.8px); background-size: 16px 16px; opacity: .45; }
.photo-wrap::after { content: ""; position: absolute; z-index: -1; left: -44px; bottom: -44px; width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--accent-soft), var(--cta) 70%); opacity: .28; filter: blur(2px); }
.float-badge { position: absolute; left: -22px; bottom: 34px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 14px 34px rgba(3,27,87,.2); animation: floaty 5s ease-in-out infinite; transition: box-shadow .3s; }
.float-badge:hover { box-shadow: 0 18px 40px rgba(9,111,255,.32); }
.fb-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--secondary)); color: #fff; flex: none; }
.fb-ic svg { width: 22px; height: 22px; }
.fb-tx { display: flex; flex-direction: column; line-height: 1.25; }
.fb-tx strong { font-size: .95rem; color: var(--primary); }
.fb-tx small { font-size: .78rem; color: var(--muted); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--accent-ink); transition: background .3s, color .3s, transform .3s; }
.card .ic svg { width: 24px; height: 24px; }
.mv { align-items: stretch; }
.mv-card, .values .card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease; }
.mv-card { display: flex; flex-direction: column; gap: 4px; background: linear-gradient(160deg, rgba(255,255,255,.95), var(--soft)); border: 1.5px solid var(--line); box-shadow: 0 6px 22px rgba(3,27,87,.06); }
.mv-card .ic { margin-bottom: 22px; }
.mv-card h3 { margin-bottom: .6em; }
.mv-card:hover, .values .card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 18px 40px rgba(9,111,255,.2), 0 0 0 4px rgba(9,111,255,.08); }
.mv-card:hover .ic, .values .card:hover .ic { background: var(--cta); color: #fff; transform: scale(1.06); }
.mv-dark { background: linear-gradient(150deg, var(--primary), #07286f 70%, var(--secondary)); border-color: rgba(255,255,255,.12); }
.mv-dark .ic { background: rgba(255,255,255,.12); color: var(--accent-soft); }
.mv-dark h3 { color: var(--accent-soft); }
.mv-dark p { color: #fff; }
.mv-dark:hover { border-color: var(--accent-soft); box-shadow: 0 18px 44px rgba(9,111,255,.4), 0 0 0 4px rgba(120,176,255,.16); }
.mv-dark:hover .ic { background: var(--accent-soft); color: var(--primary); }

.values .card { min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; padding: 28px 26px; background: #fff; }
.v-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.values .card .num { margin: 0; font: 700 2.2rem/1 var(--font-heading); letter-spacing: -.02em; background: linear-gradient(135deg, var(--accent), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.values .card h3 { font-size: 1.3rem; margin-bottom: .45em; }
.values .card p { font-size: .94rem; line-height: 1.55; }
@media (max-width: 900px) { .float-badge { left: 12px; bottom: 14px; } .photo-wrap::before { right: -8px; top: -14px; } .photo-wrap::after { left: -16px; bottom: -24px; } }
.mv .mv-dark h3 { color: var(--accent-soft); }
.mv .mv-dark p { color: #fff; }

/* ===== Solutions — refonte UI (grille, cartes, checklists, tags) ===== */
.sol { grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding: clamp(56px, 8vw, 96px) 0; }
.sol > div:first-child { position: sticky; top: 110px; }
.sol h2 { margin-bottom: .6em; }
.sol p { line-height: 1.7; margin: 0 0 1.1em; }
.sol .btn { margin-top: 14px; }
.sol .tag { display: inline-block; background: var(--tint); color: var(--accent-ink); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 99px; margin-bottom: 20px; }

.panels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.panels-grid .panel { margin: 0; }
.panels-grid .panel-wide { grid-column: 1 / -1; }
.panel { border: 1px solid #dbe5f7; border-radius: 20px; padding: clamp(24px, 3vw, 34px); background: #fff; box-shadow: 0 10px 30px -12px rgba(3,27,87,.1); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.panel:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 40px -14px rgba(9,111,255,.28); }
.panel h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); font-weight: 700; margin-bottom: 1.2em; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sol .panel p { color: var(--text); }

.list { gap: 14px; }
.list li { grid-template-columns: 28px 1fr; line-height: 1.55; color: var(--text); transition: transform .25s ease; }
.list li::before { width: 24px; height: 24px; margin-top: 1px; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230757d4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; transition: background-color .25s, transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.list li:hover { transform: translateX(3px); }
.list li:hover::before { background-color: var(--cta); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); transform: scale(1.15); box-shadow: 0 4px 12px rgba(10,100,236,.35); }

.domains { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.dom { background: var(--soft); border: 1px solid #e3ebfa; border-radius: 14px; padding: 18px; transition: border-color .25s, background .25s; }
.dom:hover { border-color: var(--accent); background: #fff; }
.dom h4 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; letter-spacing: 0; color: var(--primary); margin: 0 0 12px; }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { font-size: .82rem; line-height: 1.3; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid #d3def5; color: var(--text); }
.badges li::first-letter { text-transform: uppercase; }

.sol .btn-dark, .sol .btn-line { background: var(--primary); color: #fff; border-color: var(--primary); transition: transform .25s ease, background .25s, box-shadow .25s; }
.sol .btn-dark:hover, .sol .btn-line:hover { background: var(--secondary); border-color: var(--secondary); transform: scale(1.02); box-shadow: 0 10px 24px -8px rgba(3,33,153,.5); }
.sol .btn svg { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.sol .btn:hover svg { transform: translateX(6px); }

@media (max-width: 900px) {
  .sol > div:first-child { position: static; }
  .panels-grid { grid-template-columns: 1fr; }
}
.sol > * { min-width: 0; }
.panels-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
@media (max-width: 900px) { .panels-grid { grid-template-columns: minmax(0,1fr); } .sol { grid-template-columns: minmax(0,1fr); } }

/* ===== Navbar — menu déroulant "Nos solutions" ===== */
.has-sub { position: relative; }
.sub-toggle { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; font: 500 .96rem var(--font-body); color: inherit; padding: 10px 14px; border-radius: 999px; transition: background .2s; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .25s ease; }
.sub-toggle:hover, .has-sub.open .sub-toggle, .sub-toggle.is-current { background: rgba(3,27,87,.07); }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.submenu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px; padding: 10px; background: #fff; border: 1px solid #dbe5f7; border-radius: 18px; box-shadow: 0 24px 50px -16px rgba(3,27,87,.28); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .25s ease, visibility .2s; z-index: 60; }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub.open .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 901px) { .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: none; } .has-sub:hover .sub-toggle svg { transform: rotate(180deg); } }
.sub-label { margin: 8px 12px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.sub-label:not(:first-child) { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.nav-links .submenu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: .95rem; background: transparent; }
.nav-links .submenu a svg { width: 15px; height: 15px; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s; color: var(--cta); }
.nav-links .submenu a:hover { background: var(--tint); color: var(--primary); }
.nav-links .submenu a:hover svg { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .has-sub { display: block; }
  .sub-toggle { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .submenu { position: static; min-width: 0; box-shadow: none; border: 0; background: var(--soft); border-radius: 14px; margin: 2px 0 6px; padding: 6px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub.open .submenu { display: block; }
  .nav-links .submenu a svg { display: none; }
}

/* ===== Vidéos d'illustration ===== */
.media-video { margin: 28px 0 0; width: min(100%, 340px); aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, #fff, var(--tint)); border: 1px solid #dbe5f7; box-shadow: 0 14px 36px -16px rgba(3,27,87,.22); }
.media-video video { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.sol .media-video { margin-top: 36px; }
@media (max-width: 900px) { .media-video { width: min(100%, 300px); margin-inline: auto; } }

/* Illustration SVG animée (Contact) */
.media-illu { margin: 28px 0 0; width: 100%; max-width: 460px; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #fff, var(--tint)); border: 1px solid #dbe5f7; box-shadow: 0 14px 36px -16px rgba(3,27,87,.22); }
.media-illu img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .media-illu { max-width: 100%; } }

/* Contact — grande illustration */
.form-wrap-even { grid-template-columns: 1fr 1fr; }
.media-illu { max-width: none; width: calc(100% + 32px); margin: 24px 0 8px -8px; background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
@media (max-width: 900px) { .form-wrap-even { grid-template-columns: minmax(0,1fr); } .media-illu { width: 100%; margin-left: 0; } }

/* Animated constellation background (assets/constellation.js) */
#constellation-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }
body.has-constellation main, body.has-constellation .site-footer { position: relative; z-index: 1; }

/* Candidats : hero au même design que À propos */
.page-hero-split .photo img.pos-center { object-position: 50% 50%; }
.page-hero .hero-cta .btn { margin-top: 0; }
.page-hero .hero-cta { margin-top: 1.6rem; }
.page-hero .hero-chips li { color: var(--primary); background: #fff; border: 1px solid var(--line); }
.page-hero .btn-ghost { color: var(--primary); background: #fff; border: 1.5px solid var(--line); }
.page-hero .btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--tint); }
@media (max-width: 1040px) { .page-hero-split .photo:has(.pos-center) { aspect-ratio: 1400 / 759; } }
@media (max-width: 640px) { .page-hero-split .photo:has(.pos-center) + .float-badge { left: 12px; bottom: -22px; } }

/* ---- Accueil : bannière (dégradé bleu de la marque, voiles translucides, photo à droite) ---- */
.hero-banner { position: relative; overflow: hidden; isolation: isolate; color: #fff; margin-top: 0;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(120,176,255,.55), transparent 62%),
    linear-gradient(118deg, var(--primary) 0%, var(--secondary) 42%, var(--cta) 82%, #3d8bff 100%); }
.hb-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hb-bg svg { width: 100%; height: 100%; display: block; }
.hb-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(24px, 4vw, 64px); align-items: end; min-height: clamp(560px, 62vw, 700px); }
.hb-copy { align-self: center; padding: clamp(48px, 6vw, 88px) 0; max-width: 620px; }
.hero-banner .eyebrow { color: var(--accent-soft); }
.hero-banner .eyebrow::before { background: var(--accent-soft); }
.hero-banner h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.9rem); margin-bottom: .45em; }
.hero-banner h1 em { color: var(--accent-soft); font-style: italic; }
.hero-banner p.lead { color: rgba(255,255,255,.86); margin-bottom: 2rem; max-width: 52ch; }
.hero-banner .btn-primary { background: #fff; color: var(--primary); }
.hero-banner .btn-primary:hover { background: var(--tint); }
.hero-banner .btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.75); }
.hero-banner .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.hb-visual { position: relative; align-self: stretch; display: flex; align-items: flex-end; }
.hb-photo { margin: 0; width: 100%; height: min(86%, 540px); border-radius: 44px 44px 0 0; overflow: hidden;
  box-shadow: 0 -10px 60px -20px rgba(3,27,87,.6);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
.hb-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 40%; display: block; }
.hb-visual .chip { box-shadow: 0 18px 40px -16px rgba(3,27,87,.55); border: 1px solid rgba(255,255,255,.7); z-index: 2; }
.hb-visual .chip.c1 { top: 12%; left: -4%; right: auto; bottom: auto; }
.hb-visual .chip.c2 { top: 6%; right: 2%; left: auto; bottom: auto; }
.hb-visual .chip.c3 { bottom: 26%; left: -8%; top: auto; right: auto; }
.hb-visual .chip.c4 { bottom: 9%; right: 4%; top: auto; left: auto; }
@media (max-width: 1040px) {
  .hb-grid { grid-template-columns: 1fr; min-height: 0; }
  .hb-copy { padding-bottom: 8px; }
  .hb-visual { min-height: 400px; margin-top: 12px; }
  .hb-photo { position: absolute; left: 0; right: 0; bottom: 0; height: 320px; border-radius: 32px 32px 0 0; -webkit-mask-image: none; mask-image: none; }
  .hb-visual .chip.c1 { top: 0; left: 0; }
  .hb-visual .chip.c2 { top: 18%; right: 0; }
  .hb-visual .chip.c3, .hb-visual .chip.c4 { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hb-w1 { animation: hbDrift1 16s ease-in-out infinite alternate; }
  .hb-w2 { animation: hbDrift2 20s ease-in-out infinite alternate; }
  .hb-w3 { animation: hbDrift3 18s ease-in-out infinite alternate; }
  .hb-w4 { animation: hbDrift1 22s ease-in-out infinite alternate-reverse; }
  @keyframes hbDrift1 { to { transform: translate(40px, -18px); } }
  @keyframes hbDrift2 { to { transform: translate(-50px, 14px); } }
  @keyframes hbDrift3 { to { transform: translate(30px, 20px); } }
  .hb-copy > * { animation: hbUp .8s cubic-bezier(.2,.7,.2,1) both; }
  .hb-copy > *:nth-child(2) { animation-delay: .08s; } .hb-copy > *:nth-child(3) { animation-delay: .16s; } .hb-copy > *:nth-child(4) { animation-delay: .24s; }
  .hb-photo { animation: hbUp 1s .15s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes hbUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}

/* =====================================================================
   RESPONSIVE — tablettes et mobiles (le rendu desktop > 1120 px n'est pas modifié)
   ===================================================================== */

/* Médias : toujours fluides */
img, video, canvas, iframe { max-width: 100%; }
video, img { height: auto; }
.photo img, .cta-photo img, .hb-photo img, .hero-art img, .media-video video, .map iframe { height: 100%; }
.hero-art img { height: auto; }

/* Tablette paysage : en-tête compact pour que le menu tienne sur une ligne (901–1120 px) */
@media (min-width: 901px) and (max-width: 1120px) {
  .nav { gap: 12px; }
  .logo img { height: 40px; }
  .nav-links { gap: 0; }
  .nav-links a, .sub-toggle { padding: 10px 10px; font-size: .9rem; white-space: nowrap; }
  .nav-end { gap: 8px; }
  .nav-end .btn { padding: 12px 16px; font-size: .9rem; }
}

/* Tablette (≤ 1040 px) : typographie et rythme vertical fluides */
@media (max-width: 1040px) {
  .wrap { width: min(var(--wrap), 100% - 48px); }
  h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.2rem); }
  h2 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.45rem); }
  h3 { font-size: clamp(1.2rem, 1rem + .8vw, 1.4rem); }
  .lead { font-size: 1.1rem; }
  .section { padding: clamp(52px, 8vw, 84px) 0; }
  .sec-head { margin-bottom: 36px; }
  .site-footer { padding: 56px 0 24px; }
  .foot { gap: 32px 28px; }
  .page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
  .page-hero h1 { max-width: 20ch; }
  /* Cibles tactiles ≥ 44 px */
  .lang button { min-width: 44px; min-height: 44px; font-size: .84rem; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer ul { gap: 0; }
  .nav-links a, .sub-toggle, .nav-links .submenu a { min-height: 48px; display: flex; align-items: center; }
  .nav-links .submenu a { padding: 12px 14px; }
  .field input, .field select { min-height: 48px; }
  .field input, .field select, .field textarea { font-size: 16px; } /* évite le zoom automatique d'iOS */
  .btn { min-height: 48px; justify-content: center; }
  .logo { min-height: 44px; }
}

/* Tablette portrait : le bouton d'action reste visible dans l'en-tête */
@media (min-width: 641px) and (max-width: 900px) {
  .nav-end .btn { display: inline-flex; padding: 12px 18px; font-size: .92rem; }
}

/* Menu mobile : défilement interne, pas de défilement de la page derrière */
@media (max-width: 900px) {
  .nav-links { max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; box-shadow: 0 24px 40px -24px rgba(3,27,87,.35); }
  body:has(.nav-links.open) { overflow: hidden; }
  .nav { height: 68px; }
  .nav-links { inset: 68px 0 auto 0; }
  .logo img { height: 40px; }
}

/* Mobile (≤ 640 px) */
@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), 100% - 32px); }
  body { line-height: 1.65; }
  h1 { font-size: clamp(1.95rem, 1.1rem + 4.4vw, 2.4rem); line-height: 1.12; }
  h2 { font-size: clamp(1.6rem, 1rem + 3.2vw, 1.95rem); line-height: 1.18; }
  h3 { font-size: 1.2rem; }
  .lead { font-size: 1.04rem; line-height: 1.62; }
  .section { padding: 52px 0; }
  .sec-head { gap: 14px; margin-bottom: 28px; }
  .sec-head p { font-size: 1rem; }
  .eyebrow, .sub-label, .jump-title, .sol .tag, .site-footer h4 { font-size: .8125rem; }
  .eyebrow { margin-bottom: .9rem; }
  small, .chip small, .field label { font-size: .84rem; }
  /* Boutons pleine largeur dans les groupes d'actions */
  .hero-cta, .cta-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .btn { padding: 13px 20px; }
  /* Pied de page et bandeaux */
  .site-footer { margin: 8px; padding: 44px 0 20px; }
  .foot-bottom { margin-top: 28px; padding-top: 18px; flex-direction: column; gap: 6px; }
  .cta-copy { padding: 36px 24px; }
  .tags li { padding: 9px 16px; font-size: .94rem; }
  .strip p { text-align: center; }
  .map { height: 220px; }
  .form { gap: 14px; }
  .jump a { padding: 14px 12px; }
  /* Bannière d'accueil */
  .hb-copy { padding: 36px 0 4px; }
  .hb-visual { min-height: 340px; }
  .hb-photo { height: 260px; border-radius: 28px 28px 0 0; }
  .hero-banner p.lead { margin-bottom: 1.5rem; }
}

/* Très petits écrans (≤ 360 px) */
@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  h1 { font-size: 1.85rem; }
  .btn { padding: 12px 16px; font-size: .94rem; }
  .logo img { height: 36px; }
}
@media (min-width: 641px) and (max-width: 900px) { .cta-photo { aspect-ratio: 2.2 / 1; } }
@media (max-width: 640px) {
  .mv .card { padding: 28px 24px; }
  .mv .card p { font-size: 1.22rem; }
  .hero-chips li, .hero-banner .hero-chips li { font-size: .875rem; }
  .values .card { padding: 24px 22px; }
}
@media (max-width: 900px) { .site-header:has(.nav-links.open) { background: #fff; } }
@media (max-width: 1120px) { .photo-wrap::before { right: -14px; } }
.page-hero-split { overflow-x: clip; }
