:root {
  --ink: #0a1f2e;
  --ink-soft: #3d5262;
  --paper: #f2f5f7;
  --line: #c6d1d9;
  --link: #0e5e8c;
  --amber: #f5a524;
  --amber-deep: #d98a06;
  --on-ink: #e8eef2;
  --on-ink-soft: #a9bac6;
  --radius: 8px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.65 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; color: var(--ink); padding: 8px 14px; z-index: 30; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* En-tête */
.header { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .25s, box-shadow .25s; }
.header.solid { background: rgba(10, 31, 46, .94); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.3rem var(--font-display); color: #fff; text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 22px; height: 3px; background: var(--amber); border-radius: 2px; box-shadow: 0 -7px 0 -0px transparent; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-ink-soft); text-decoration: none; font-weight: 500; }
.nav a:hover { color: #fff; }
.menu-btn { display: none; font: 500 1rem var(--font-body); color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); padding: 10px 16px; min-height: 44px; cursor: pointer; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 24px; border-radius: var(--radius); font-weight: 600; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn[hidden] { display: none; }
.nav a.btn-small { min-height: 44px; padding: 0 18px; background: var(--amber); color: var(--ink); }
.nav a.btn-small:hover { background: #ffb840; color: var(--ink); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #ffb840; }
.btn-line { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Hero */
.hero { position: relative; background: var(--ink); color: var(--on-ink); padding: 168px 0 128px; overflow: hidden; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }

/* Icônes : trait fin, couleur héritée */
.ico svg, .node use { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: var(--ink); color: var(--amber); flex: none; }
.ico svg { width: 28px; height: 28px; }
.ico-sm { width: 44px; height: 44px; border-radius: 12px; background: rgba(245,165,36,.12); }
.ico-sm svg { width: 22px; height: 22px; }

/* Schéma du hero */
.hero-art { width: 100%; height: auto; max-width: 520px; justify-self: end; }
.hero-art .ring { fill: none; stroke: rgba(255,255,255,.1); stroke-dasharray: 2 7; stroke-linecap: round; }
.hero-art .links line { stroke: rgba(245,165,36,.55); stroke-width: 1.5; }
.hero-art .hub { fill: var(--amber); }
.hero-art .hub-t { font: 700 15px var(--font-display); fill: var(--ink); }
.hero-art .node circle { fill: #11344a; stroke: rgba(255,255,255,.28); stroke-width: 1.5; }
.hero-art .node use { color: var(--amber); }
.hero-art .node text { font: 500 15px var(--font-body); fill: var(--on-ink); }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); line-height: 1.06; letter-spacing: -.025em; max-width: 17ch; color: #fff; }
.over { display: inline-block; border-top: 4px solid var(--amber); padding-top: 10px; margin-bottom: 4px; }
.lead { margin-top: 28px; max-width: 54ch; font-size: 1.2rem; color: var(--on-ink-soft); }

/* Fibre : trait vertical + point lumineux, une seule fois au chargement */
.fibre { position: absolute; left: max(10px, calc((100% - 1120px) / 2 - 28px)); top: 0; width: 2px; height: 100%; }
.fibre-line { stroke: rgba(245,165,36,.5); stroke-width: 1.5; }
.fibre::after { content: none; }
.hero::before {
  content: ""; position: absolute; z-index: 1; width: 6px; height: 90px; border-radius: 3px;
  left: max(8px, calc((100% - 1120px) / 2 - 30px)); top: -90px;
  background: linear-gradient(to bottom, rgba(245,165,36,0), var(--amber));
  animation: pulse 2.6s cubic-bezier(.5, 0, .2, 1) .4s 1 forwards;
}
@keyframes pulse { to { top: 100%; } }

/* Sections */
.section { padding: 112px 0; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.02em; line-height: 1.12; max-width: 20ch; }

/* Pôles : lignes séparées par des filets */
.poles { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.pole { display: grid; grid-template-columns: 56px minmax(0, 4fr) minmax(0, 7fr); gap: 16px 40px; align-items: start; padding: 40px 0; border-bottom: 1px solid var(--line); }
.pole .ico { transition: background .2s, color .2s; }
.pole:hover .ico { background: var(--amber); color: var(--ink); }

/* Approche */
.approche { background: #fff; border-block: 1px solid var(--line); }
.approche .section-title { max-width: 24ch; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; }
.principle { padding: 0 32px; border-left: 1px solid var(--line); }
.principle:first-child { padding-left: 0; border-left: 0; }
.principle h3 { font-size: 1.3rem; letter-spacing: -.01em; margin: 24px 0 10px; }
.principle p { color: var(--ink-soft); }
.pole h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.015em; line-height: 1.15; }
.pole p { color: var(--ink-soft); max-width: 56ch; }
.pole:hover h3 { color: var(--link); }

/* À propos */
.about-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 72px; align-items: center; }
.about-in p { margin-top: 24px; font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; }
.about-art { width: 100%; max-width: 340px; height: auto; justify-self: center; }
.about-art .c-gaine { fill: var(--ink); }
.about-art .c-renfort { fill: #1a4a66; }
.about-art .c-tampon { fill: #11344a; }
.about-art .c-fibres circle { fill: #0a1f2e; stroke: rgba(255,255,255,.25); stroke-width: 1.5; }
.about-art .c-coeur circle { fill: var(--amber); }
.about-art .c-centre { fill: #fff; opacity: .9; }

/* Contact */
.contact { background: var(--ink); color: var(--on-ink); }
.contact .section-title { color: #fff; max-width: 16ch; }
.contact-in p { color: var(--on-ink-soft); margin-top: 20px; max-width: 46ch; font-size: 1.15rem; }
.contact .actions { margin-top: 32px; }
.contact .note { margin-top: 28px; }
.coords { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 32px; margin: 56px 0 0; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.15); }
.coords div { padding: 24px 0; }
.coords .ico { margin-bottom: 14px; }
.coords dt { color: var(--on-ink-soft); font-size: .95rem; }
.coords dd { margin: 4px 0 0; font: 600 1.15rem var(--font-display); }
.coords a { color: #fff; text-decoration-color: var(--amber); text-underline-offset: 4px; }
.coords a:hover { color: var(--amber); }

.footer { background: var(--ink); color: var(--on-ink-soft); border-top: 1px solid rgba(255,255,255,.1); padding: 28px 0; font-size: .92rem; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--on-ink-soft); }
.footer a:hover { color: #fff; }

@media (max-width: 1000px) {
  .section { padding: 88px 0; }
  .hero { padding: 144px 0 104px; }
  .pole { gap: 16px 28px; }
  .principle { padding: 0 20px; }
  .about-in { gap: 40px 48px; }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { justify-self: center; max-width: 440px; }
  .hero h1 { max-width: 20ch; }
  .about-in { grid-template-columns: 1fr; gap: 40px; }
  .about-art { justify-self: start; max-width: 260px; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 24px 24px; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav a.btn { margin-top: 8px; }
  .hero { padding: 128px 0 80px; }
  .section { padding: 72px 0; }
  .hero-art { max-width: 400px; }
  .hero-art .node text { font-size: 19px; }
  .hero-art .hub-t { font-size: 18px; }
  .pole { grid-template-columns: 1fr; gap: 12px; padding-block: 32px; }
  .principles { grid-template-columns: 1fr; margin-top: 36px; }
  .principle { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .principle:first-child { padding-top: 0; border-top: 0; }
  .poles { margin-top: 36px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { width: min(1120px, 100% - 40px); }
  .actions .btn { flex: 1 1 100%; }
  .hero { padding: 112px 0 64px; }
  .lead, .about-in p, .contact-in p { font-size: 1.08rem; }
  .coords { gap: 0; }
  .nav { padding-inline: 20px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding: 96px 0 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { animation: none; top: 0; opacity: 0; }
  .btn, .header { transition: none; }
}
