/* =========================================================
   Safe Telecom — feuille de style principale
   ========================================================= */
:root {
  --brand-1: #c81e5b;          /* magenta logo */
  --brand-2: #ee3124;          /* rouge logo */
  --brand-grad: linear-gradient(100deg, var(--brand-1) 0%, var(--brand-2) 100%);
  --ink: #17171b;
  --ink-2: #3d3d44;
  --grey: #5e5e5e;
  --muted: #6f6f78;
  --line: #e6e4e1;
  --bg: #fbfaf8;
  --bg-2: #f3f1ee;
  --card: #ffffff;
  --dark: #121216;
  --dark-2: #1b1b21;
  --dark-line: #2a2a33;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 8px 30px rgba(20, 20, 30, .06);
  --maxw: 1200px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.section--tight { padding: 70px 0; }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--dark); color: #ecebef; }
.section--dark .lead, .section--dark p { color: #b4b3bd; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-1); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand-grad); border-radius: 2px; }
.section--dark .eyebrow { color: #ff6b7d; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 680px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  font-family: inherit;
}
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 24px rgba(220, 40, 60, .28); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(220, 40, 60, .36); }
.btn--ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--ghost { background: transparent; color: #fff; border-color: #44444f; }
.section--dark .btn--ghost:hover { border-color: #fff; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; color: var(--brand-1); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow span { transition: transform .2s; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--dark); color: #b8b7c0; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.topbar a:hover { color: #fff; }
.topbar__left { display: flex; gap: 22px; align-items: center; }
.topbar__right { display: flex; gap: 18px; align-items: center; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 4px rgba(46, 204, 113, .18); display: inline-block; margin-right: 8px; }
.lang { display: flex; gap: 4px; }
.lang a { padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.lang a.is-active { background: #2a2a33; color: #fff; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 248, .86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(0, 0, 0, .04); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a, .nav__item > button {
  padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .96rem; color: var(--ink-2);
  background: none; border: 0; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav__item > button:hover, .nav > a.is-active { color: var(--ink); background: var(--bg-2); }
.nav__item { position: relative; }
.nav__item > button svg { width: 12px; transition: transform .2s; }
.nav__item:hover > button svg, .nav__item.is-open > button svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 640px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(20, 20, 30, .12); padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item:hover .mega, .nav__item.is-open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.mega a { display: flex; gap: 14px; padding: 12px; border-radius: 12px; }
.mega a:hover { background: var(--bg-2); }
.mega .ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #fdecee; color: var(--brand-1); display: grid; place-items: center; }
.mega .ico svg { width: 20px; height: 20px; }
.mega strong { display: block; font-size: .95rem; }
.mega small { color: var(--muted); font-size: .84rem; line-height: 1.4; display: block; }
.header__cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 0; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg canvas { width: 100%; height: 100%; }
.hero__glow {
  position: absolute; width: 760px; height: 760px; right: -200px; top: -240px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(238, 49, 36, .14), rgba(200, 30, 91, .07) 50%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero__content { max-width: 780px; padding-bottom: 70px; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { font-size: 1.25rem; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__kpis {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); background: rgba(255, 255, 255, .6); backdrop-filter: blur(6px);
}
.hero__kpis > div { padding: 28px 24px; border-right: 1px solid var(--line); }
.hero__kpis > div:last-child { border-right: 0; }
.hero__kpis strong { display: block; font-size: 1.35rem; letter-spacing: -0.02em; }
.hero__kpis span { color: var(--muted); font-size: .9rem; }

/* page hero (sous-pages) */
.page-hero { padding: 90px 0 70px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .lead { font-size: 1.2rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- Cartes services ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; position: relative; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dcd9d4; }
.card__tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.card__ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(200, 30, 91, .1), rgba(238, 49, 36, .1)); color: var(--brand-1);
}
.card__ico svg { width: 26px; height: 26px; }
.card p { color: var(--ink-2); }
.card .link-arrow { margin-top: 6px; }
.card--feature { padding: 40px; }
.card--feature::after {
  content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--brand-grad); opacity: 0; transition: opacity .25s;
}
.card--feature:hover::after { opacity: 1; }
.services-more { margin-top: 22px; }
.mini {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); transition: border-color .2s;
}
.mini:hover { border-color: var(--brand-1); }
.mini .card__ico { width: 42px; height: 42px; margin: 0; flex: none; border-radius: 11px; }
.mini .card__ico svg { width: 21px; height: 21px; }
.mini strong { display: block; margin-bottom: 2px; }
.mini small { color: var(--muted); font-size: .88rem; line-height: 1.45; display: block; }

/* ---------- Onglets (démo service) ---------- */
.tabs { margin-top: 70px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.tabs__nav { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs__nav button {
  flex: 1; padding: 20px 24px; background: none; border: 0; font: inherit; font-weight: 700; color: var(--muted);
  cursor: pointer; position: relative; white-space: nowrap;
}
.tabs__nav button[aria-selected="true"] { color: var(--ink); }
.tabs__nav button[aria-selected="true"]::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: -1px; height: 3px; background: var(--brand-grad); border-radius: 3px 3px 0 0; }
.tabs__panel { display: none; grid-template-columns: 1.05fr 1fr; gap: 50px; padding: 50px; align-items: center; }
.tabs__panel.is-active { display: grid; }
.checklist { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E");
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.diagram { background: var(--dark); border-radius: 18px; padding: 26px; color: #ddd; }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { font-size: .85rem; color: #9b9aa5; margin-top: 14px; text-align: center; }
.flow { stroke-dasharray: 6 8; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }

/* ---------- Sélecteur de besoin ---------- */
.needs { display: grid; grid-template-columns: 340px 1fr; gap: 28px; }
.needs__list { display: grid; gap: 10px; align-content: start; }
.needs__label { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; margin: 0 0 4px 4px; grid-column: 1 / -1; }
.needs__list button {
  text-align: left; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  font: inherit; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all .2s;
}
.needs__list button:hover { border-color: #cfcbc5; }
.needs__list button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.needs__out { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 40px; }
.needs__out .pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.pill { padding: 8px 14px; border-radius: 999px; background: var(--bg-2); font-weight: 600; font-size: .9rem; border: 1px solid var(--line); }
.pill--brand { background: #fdecee; border-color: #f8c9d1; color: #a3143f; }

/* ---------- Segments clients ---------- */
.segments .card { padding: 30px; }
.segments .num { font-family: var(--mono); font-size: .8rem; color: var(--brand-1); margin-bottom: 18px; display: block; }

/* ---------- Réseau ---------- */
.network { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.network__features { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 34px 0; }
.network__features h4 { font-size: 1.02rem; margin-bottom: 6px; color: #fff; }
.network__features p { font-size: .93rem; margin: 0; }
.map { position: relative; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 24px; padding: 18px; aspect-ratio: 1 / 1; }
.map svg { width: 100%; height: 100%; }
.map .country { fill: #23232b; stroke: #33333d; stroke-width: .6; }
.map .country--home { fill: #2c2129; stroke: #6a2a3e; stroke-width: 1; }
.map .country-label { fill: #5b5a66; font-size: 9px; font-family: var(--mono); letter-spacing: .12em; text-anchor: middle; }
.map .link { stroke: url(#linkGrad); stroke-width: 2; fill: none; }
.map .link-flow { stroke: #fff; stroke-width: 2; fill: none; stroke-dasharray: 2 14; opacity: .55; animation: flow 1.6s linear infinite; }
.map .intl { stroke: #ff6b7d; stroke-width: 1.4; stroke-dasharray: 4 5; fill: none; opacity: .7; }
.map .pop circle.core { fill: #fff; }
.map .pop circle.halo { fill: var(--brand-2); opacity: .25; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.map .pop text { fill: #e9e8ee; font-size: 11px; font-weight: 600; font-family: var(--font); paint-order: stroke; stroke: #1b1b21; stroke-width: 3px; }
.map .pop.is-hl circle.core { fill: var(--brand-2); }
.map .intl-label { fill: #ff8f9c; font-size: 9.5px; font-family: var(--mono); letter-spacing: .06em; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.4); opacity: 0; } }
.map__legend { position: absolute; left: 22px; bottom: 18px; display: flex; gap: 16px; font-size: .75rem; color: #9b9aa5; flex-wrap: wrap; }
.map__legend i { display: inline-block; width: 18px; height: 2px; vertical-align: middle; margin-right: 6px; }
.map__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #777; font-size: .9rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--card); overflow: hidden; }
.stats > div { padding: 38px 30px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats strong { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px; }
.stats span { color: var(--muted); font-size: .95rem; }

/* ---------- Pourquoi ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why .card { padding: 30px; }
.why .n { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 26px; display: block; }

/* ---------- Partenaires ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logos div {
  height: 84px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  display: grid; place-items: center; font-weight: 800; color: #9a98a0; letter-spacing: -.01em; font-size: 1rem; text-align: center; padding: 8px;
}
.logos div small { display: block; font-weight: 600; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #b4b2b9; }

/* ---------- Guides ---------- */
.guide { display: block; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); transition: all .25s; }
.guide:hover { border-color: var(--ink); }
.guide .q { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.guide h3 { margin: 12px 0 10px; font-size: 1.2rem; }
.guide p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; font-weight: 400; color: var(--brand-1); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 14px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 80px 60px; color: #fff;
  background: radial-gradient(800px 400px at 100% 0%, rgba(238, 49, 36, .55), transparent 60%),
              radial-gradient(700px 500px at 0% 100%, rgba(200, 30, 91, .5), transparent 60%), var(--dark);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta h2 { color: #fff; margin: 0; }
.cta p { color: #d6d4dc; margin: 16px 0 0; font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta .btn--ghost:hover { border-color: #fff; }
.cta .btn--white { background: #fff; color: var(--ink); }

/* ---------- NOC ---------- */
.noc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.noc .card { padding: 28px; }
.noc .card strong { display: block; font-size: 1.15rem; margin: 4px 0 8px; }
.noc .card a { color: var(--brand-1); font-weight: 700; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #e8f7ee; color: #1d7a45; }
.badge--soon { background: #fff4e0; color: #9a6200; }

/* ---------- Service détaillé ---------- */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 80px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.service-block:last-child { border-bottom: 0; }
.service-block.is-reverse > :first-child { order: 2; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.specs div { padding: 16px 18px; border-radius: 12px; background: var(--bg-2); }
.specs small { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.specs strong { font-size: 1rem; }
.subnav { position: sticky; top: 76px; z-index: 40; background: rgba(251, 250, 248, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; }
.subnav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.subnav a:hover, .subnav a.is-active { background: var(--ink); color: #fff; }

/* ---------- Formulaire ---------- */
.form { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(200, 30, 91, .12); }
.field textarea { min-height: 130px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; background: var(--bg); transition: all .15s; }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(200, 30, 91, .3); }
.form__note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.form__success { display: none; padding: 18px 20px; border-radius: 12px; background: #e8f7ee; color: #1d7a45; font-weight: 600; margin-top: 18px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.contact-aside { display: grid; gap: 18px; }
.contact-aside .card { padding: 26px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #a9a8b2; padding: 80px 0 30px; font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__logo img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer h4 { color: #fff; font-size: .82rem; font-family: var(--mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__bottom { margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--dark-line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .85rem; }
.footer__noc { padding: 20px; border-radius: 16px; border: 1px solid var(--dark-line); background: var(--dark-2); }
.footer__noc strong { color: #fff; display: block; margin-bottom: 6px; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .flow, .map .link-flow, .map .pop circle.halo { animation: none; }
  html { scroll-behavior: auto; }
}

.grid > *, .network > *, .contact-grid > *, .form__row > *, .needs > *, .service-block > * { min-width: 0; }
.chips label { position: relative; }
body { overflow-x: clip; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4, .why, .noc { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .network, .contact-grid { grid-template-columns: 1fr; }
  .needs { grid-template-columns: 1fr; }
  .needs__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: block; }
  .header.menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 24px; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .header.menu-open .nav .mega { position: static; transform: none; width: auto; opacity: 1; visibility: visible; box-shadow: none; grid-template-columns: 1fr; display: none; margin: 4px 0 8px; }
  .header.menu-open .nav__item.is-open .mega { display: grid; }
  .header.menu-open .nav__item > button { width: 100%; justify-content: space-between; }
  .header.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .header.menu-open .burger span:nth-child(2) { opacity: 0; }
  .header.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .tabs__panel { grid-template-columns: 1fr; padding: 30px; gap: 30px; }
  .hero__kpis, .stats { grid-template-columns: 1fr 1fr; }
  .hero__kpis > div:nth-child(2), .stats > div:nth-child(2) { border-right: 0; }
  .hero__kpis > div:nth-child(-n+2), .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cta { grid-template-columns: 1fr; padding: 56px 32px; }
  .cta__actions { justify-content: flex-start; }
  .service-block { grid-template-columns: 1fr; gap: 30px; }
  .service-block.is-reverse > :first-child { order: 0; }
  .topbar .hide-sm { display: none; }
  .topbar { white-space: nowrap; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 76px 0; }
  .grid--4, .why, .noc, .network__features, .specs, .form__row { grid-template-columns: 1fr; }
  .needs__list { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .card, .card--feature, .needs__out, .form { padding: 26px; }
  .hero { padding-top: 60px; }
  .hero__kpis > div, .stats > div { padding: 22px 16px; }
  .topbar__left a.hide-xs { display: none; }
  .logo img { height: 24px; }
}

/* ---------- Titre du hero : version « slogan » ---------- */
.hero__title { font-size: clamp(3.2rem, 9vw, 7.4rem); line-height: .98; letter-spacing: -0.05em; margin-bottom: 30px; }
.hero__content:has(.hero__title) { max-width: 1150px; }
.hero__content:has(.hero__title) .lead { font-size: clamp(1.15rem, 1.8vw, 1.4rem); max-width: 560px; }

/* =========================================================
   HERO « WOW » — fond sombre, aurores, réseau interactif
   ========================================================= */
.hero--wow {
  --mx: 70%; --my: 40%;
  background: #0b0b0f; color: #fff; isolation: isolate;
  padding-top: 110px; min-height: min(100vh - 114px, 980px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero--wow .hero__aurora { position: absolute; inset: 0; overflow: hidden; z-index: -2; filter: blur(70px) saturate(140%); }
.hero--wow .hero__aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; opacity: .55; will-change: transform; }
.hero--wow .hero__aurora span:nth-child(1) { width: 56vw; height: 56vw; right: -14vw; top: -22vw; background: radial-gradient(closest-side, #c81e5b, transparent); animation: drift1 18s ease-in-out infinite alternate; }
.hero--wow .hero__aurora span:nth-child(2) { width: 42vw; height: 42vw; right: 18vw; bottom: -24vw; background: radial-gradient(closest-side, #ee3124, transparent); animation: drift2 22s ease-in-out infinite alternate; opacity: .4; }
.hero--wow .hero__aurora span:nth-child(3) { width: 30vw; height: 30vw; left: -10vw; top: 10vw; background: radial-gradient(closest-side, #7a1a4a, transparent); animation: drift3 26s ease-in-out infinite alternate; opacity: .45; }
@keyframes drift1 { to { transform: translate(-10vw, 8vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(12vw, -6vw) scale(.9); } }
@keyframes drift3 { to { transform: translate(8vw, 10vw) scale(1.2); } }
.hero--wow .hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero--wow .hero__bg { z-index: 0; }
.hero--wow .hero__spot {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 80, 110, .16), transparent 60%);
  transition: background .1s;
}
.hero--wow .container { position: relative; z-index: 1; }
.hero--wow .eyebrow { color: #ff7d8e; }
.hero--wow .lead { color: #c9c7d2; }
.hero--wow .btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.hero--wow .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.hero--wow .btn--primary { box-shadow: 0 10px 40px rgba(238, 49, 36, .45), inset 0 1px 0 rgba(255,255,255,.25); }

/* Titre : apparition ligne par ligne + reflet sur « Safe » */
.hero--wow .hero__title { color: #fff; }
.hero--wow .hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero--wow .hero__title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s cubic-bezier(.16, 1, .3, 1) forwards; }
.hero--wow .hero__title .line:nth-child(2) > span { animation-delay: .14s; }
.hero--wow .grad-text {
  background: linear-gradient(100deg, #ff2d6f 0%, #ee3124 30%, #ffb199 48%, #ee3124 62%, #c81e5b 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1s cubic-bezier(.16, 1, .3, 1) .14s forwards, shimmer 11s linear 1.2s infinite;
  filter: drop-shadow(0 0 30px rgba(238, 49, 36, .35));
}
@keyframes rise { to { transform: none; } }
@keyframes shimmer { from { background-position: 0% center; } to { background-position: -220% center; } }
.hero--wow .eyebrow, .hero--wow .lead, .hero--wow .hero__actions, .hero--wow .hero__kpis { opacity: 0; transform: translateY(18px); animation: fadeUp .9s cubic-bezier(.16, 1, .3, 1) forwards; }
.hero--wow .eyebrow { animation-delay: .0s; }
.hero--wow .lead { animation-delay: .35s; }
.hero--wow .hero__actions { animation-delay: .5s; }
.hero--wow .hero__kpis { animation-delay: .7s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Bandeau KPI en verre sombre */
.hero--wow .hero__kpis { background: rgba(255,255,255,.035); border-top: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(10px); }
.hero--wow .hero__kpis > div { border-right-color: rgba(255,255,255,.09); border-bottom-color: rgba(255,255,255,.09) !important; }
.hero--wow .hero__kpis strong { color: #fff; }
.hero--wow .hero__kpis span { color: #9d9ba8; }

/* Indicateur de défilement */
.hero--wow .hero__scroll { position: absolute; right: 24px; bottom: 130px; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #8d8b97; font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; writing-mode: vertical-rl; }
.hero--wow .hero__scroll::after { content: ""; width: 1px; height: 60px; background: linear-gradient(#ff6b7d, transparent); animation: scrollcue 2s ease-in-out infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 920px) { .hero--wow { min-height: 0; padding-top: 80px; } .hero--wow .hero__scroll { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero--wow .hero__aurora span, .hero--wow .grad-text, .hero--wow .hero__scroll::after { animation: none; }
  .hero--wow .hero__title .line > span, .hero--wow .eyebrow, .hero--wow .lead, .hero--wow .hero__actions, .hero--wow .hero__kpis { animation: none; opacity: 1; transform: none; }
  .hero--wow .grad-text { transform: none; }
}
.hero--wow .hero__title .line:nth-child(2) > span.grad-text { animation: rise 1s cubic-bezier(.16, 1, .3, 1) .14s forwards, shimmer 11s linear 1.2s infinite; }
@media (prefers-reduced-motion: reduce) { .hero--wow .hero__title .line:nth-child(2) > span.grad-text { animation: none; transform: none; } }

/* Reflet v2 : dégradé fixe + trait de lumière qui traverse une fois, sans couture ni boîte */
.hero--wow .grad-text,
.hero--wow .hero__title .line:nth-child(2) > span.grad-text {
  background-image:
    linear-gradient(100deg, transparent 42%, rgba(255, 214, 204, .9) 50%, transparent 58%),
    linear-gradient(100deg, #ff3d73 0%, #ee3124 55%, #d22a55 100%);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 110% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: none;
  animation: rise 1s cubic-bezier(.16, 1, .3, 1) .14s forwards, sweep 10s ease-in-out 1.6s infinite;
}
@keyframes sweep {
  0%   { background-position: 110% 0, 0 0; }
  40%  { background-position: -10% 0, 0 0; }
  100% { background-position: -10% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--wow .grad-text, .hero--wow .hero__title .line:nth-child(2) > span.grad-text { animation: none; transform: none; background-position: 110% 0, 0 0; }
}

/* Légende de la carte : PoP uniquement */
.map__legend .map__dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(238, 49, 36, .35); margin-right: 10px; }
