/* =========================================================
   UNAONE — Centre de formation aux secours d'urgence
   Design system & global styles
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors */
  --ink-900: #081626;
  --ink-800: #0b1f33;
  --ink-700: #102a43;
  --navy:    #0e2a47;

  --red-600: #e1313f;
  --red-500: #ef4655;
  --red-400: #f56b78;

  --teal-600: #0f9fb2;
  --teal-500: #15b9cd;
  --teal-400: #2cd0e3;

  --orange:  #ff7a3c;
  --gold:    #f4b740;

  /* Neutrals */
  --bg:      #f5f8fc;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --line:    #e3eaf3;
  --text:    #122438;
  --muted:   #5d6f83;
  --muted-2: #8395a8;
  --white:   #ffffff;

  /* Gradients */
  --grad-rescue: linear-gradient(135deg, var(--red-500) 0%, var(--orange) 100%);
  --grad-ocean:  linear-gradient(135deg, var(--teal-500) 0%, #2f80ed 100%);
  --grad-ink:    linear-gradient(160deg, var(--ink-800) 0%, var(--navy) 55%, #0a2138 100%);

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 2px 8px rgba(16, 42, 67, .06);
  --sh-md: 0 14px 34px rgba(16, 42, 67, .10);
  --sh-lg: 0 30px 70px rgba(11, 31, 51, .18);
  --sh-red: 0 16px 34px rgba(229, 49, 63, .30);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::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.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--ink-800);
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { margin: 0 0 1rem; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink-800);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  transition: top .2s ease;
}
.skip-link:focus { top: 14px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--tight { padding: clamp(40px, 6vw, 70px) 0; }
.section--alt { background: var(--surface); }
.section--ink { background: var(--grad-ink); color: #d7e2ef; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-rescue);
  border-radius: 2px;
}
.section--ink .eyebrow { color: var(--teal-400); }
.section--ink .eyebrow::before { background: var(--teal-400); }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { color: var(--muted); font-size: 1.1rem; }
.section--ink .lead { color: #aebfd1; }

.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad-rescue);
  color: #fff;
  box-shadow: var(--sh-red);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 40px rgba(229,49,63,.40); }
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.30);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.btn-dark {
  background: var(--ink-800);
  color: #fff;
}
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.btn-outline {
  background: #fff;
  color: var(--ink-800);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--red-500); color: var(--red-600); transform: translateY(-3px); }
.btn-light {
  background: #fff;
  color: var(--ink-800);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(16,42,67,.07);
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { height: 48px; width: auto; display: block; transition: filter .3s ease; }
/* Real UNAONE logo is black on transparent: invert to white over dark hero header */
.site-header:not(.scrolled):not(.no-hero) .brand-logo { filter: brightness(0) invert(1); }
.no-hero .site-header:not(.scrolled) .brand-logo { filter: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .04em;
  color: var(--ink-800);
  line-height: 1;
}
.brand-name span { color: var(--red-500); }
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}
/* Light variant on transparent dark header */
.site-header:not(.scrolled) .brand-name { color: #fff; }
.site-header:not(.scrolled) .brand-sub { color: rgba(255,255,255,.7); }
.site-header:not(.scrolled) .nav-link { color: rgba(255,255,255,.88); }
.site-header:not(.scrolled) .nav-link:hover { color: #fff; }
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }
.no-hero .site-header:not(.scrolled) .brand-name { color: var(--ink-800); }
.no-hero .site-header:not(.scrolled) .brand-sub { color: var(--muted-2); }
.no-hero .site-header:not(.scrolled) .nav-link { color: var(--text); }
.no-hero .site-header:not(.scrolled) .nav-toggle span { background: var(--ink-800); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  font-weight: 600;
  font-size: .98rem;
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--grad-rescue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--red-600); }
.site-header:not(.scrolled):not(.no-hero) .nav-link.active { color: #fff; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--grad-ocean);
  color: #fff !important;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: 0 10px 22px rgba(21,185,205,.28);
  transition: transform .2s ease;
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-cta svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  border-radius: 12px;
}
.nav-toggle span {
  width: 24px; height: 2.4px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 8vw, 86px));
  padding-bottom: clamp(70px, 11vw, 140px);
  background: var(--grad-ink);
  color: #e6eef7;
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: .55;
}
.hero::before {
  width: 520px; height: 520px;
  top: -160px; right: -120px;
  background: radial-gradient(circle, rgba(239,70,85,.55), transparent 70%);
}
.hero::after {
  width: 460px; height: 460px;
  bottom: -180px; left: -120px;
  background: radial-gradient(circle, rgba(21,185,205,.5), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  padding: 8px 16px 8px 8px;
  border-radius: var(--r-pill);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.hero-badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #3ad29f;
  box-shadow: 0 0 0 4px rgba(58,210,159,.25);
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .accent {
  background: var(--grad-rescue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  font-size: .92rem;
  color: var(--teal-400);
  margin-bottom: 10px;
}
.hero-lead {
  font-size: 1.16rem;
  color: #b9cadb;
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-hash {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  color: #fff;
  opacity: .9;
}
.hero-hash b { color: var(--red-400); }

/* Hero visual card */
.hero-card {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-xl);
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-lg);
}
.pulse-wrap {
  background: rgba(8,22,38,.5);
  border-radius: var(--r-lg);
  padding: 22px 22px 14px;
  border: 1px solid rgba(255,255,255,.08);
}
.pulse-wrap svg { width: 100%; height: 92px; }
.pulse-line {
  fill: none;
  stroke: var(--red-400);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(245,107,120,.7));
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: ecg 3.4s linear infinite;
}
@keyframes ecg { to { stroke-dashoffset: -760; } }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.hero-stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-md);
  padding: 16px 12px;
  text-align: center;
}
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat span { font-size: .74rem; color: #9fb2c6; letter-spacing: .02em; }

/* Hero wave divider */
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1; line-height: 0; }
.hero-wave svg { width: 100%; height: auto; display: block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(46px, 7vw, 80px));
  padding-bottom: clamp(46px, 7vw, 76px);
  background: var(--grad-ink);
  color: #e6eef7;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  top: -180px; right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,70,85,.45), transparent 70%);
  filter: blur(60px);
  z-index: -1;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  bottom: -200px; left: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,185,205,.4), transparent 70%);
  filter: blur(60px);
  z-index: -1;
}
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero .lead { color: #b9cadb; max-width: 620px; }
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .85rem;
  color: #93a8bf;
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--sh-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: #d4e0ee; }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: #fff;
  background: var(--grad-rescue);
  box-shadow: var(--sh-red);
}
.card-icon svg { width: 28px; height: 28px; }
.card-icon.ocean { background: var(--grad-ocean); box-shadow: 0 16px 34px rgba(21,185,205,.30); }
.card-icon.gold  { background: linear-gradient(135deg, var(--gold), var(--orange)); box-shadow: 0 16px 34px rgba(244,183,64,.32); }
.card-icon.ink   { background: linear-gradient(135deg, var(--ink-700), var(--navy)); box-shadow: var(--sh-md); }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--red-600);
}
.card-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

.card--feature {
  display: flex;
  flex-direction: column;
}

/* Card with media header (image or gradient) bleeding to edges */
.card-media {
  margin: -30px -30px 22px;
  height: 200px;
  overflow: hidden;
  position: relative;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media.grad { display: grid; place-items: center; color: #fff; isolation: isolate; }
.card-media.grad::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 75% 20%, rgba(255,255,255,.22), transparent 55%);
}
.card-media.grad.ocean { background: var(--grad-ocean); }
.card-media.grad.rescue { background: var(--grad-rescue); }
.card-media.grad.ink { background: var(--grad-ink); }
.card-media.grad svg { width: 62px; height: 62px; opacity: .95; }
.card-media .media-label {
  position: absolute;
  left: 16px; bottom: 14px;
  background: rgba(8,22,38,.62);
  color: #fff;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .03em;
  backdrop-filter: blur(4px);
}
.card-tag {
  position: absolute;
  top: 20px; right: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--muted);
}
.card-tag.live { background: rgba(58,210,159,.14); color: #1c9e72; }

/* Feature list with checks */
.check-list { display: grid; gap: 12px; margin: 6px 0 0; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
}
.check-list li svg {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  color: var(--teal-600);
}
.section--ink .check-list li { color: #d7e2ef; }
.section--ink .check-list li svg { color: var(--teal-400); }

/* ---------- Split / feature blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.split.reverse .split-media { order: 2; }

.media-panel {
  position: relative;
  border-radius: var(--r-xl);
  padding: 40px;
  background: var(--grad-ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--sh-lg);
}
.media-panel.ocean { background: var(--grad-ocean); }
.media-panel.rescue { background: var(--grad-rescue); }
.media-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 80% 15%, rgba(255,255,255,.18), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(0,0,0,.20), transparent 50%);
}
.media-panel .panel-emblem {
  position: absolute;
  top: 30px; right: 30px;
  width: 90px; height: 90px;
  opacity: .9;
}
.media-panel h3 { font-size: 1.6rem; }
.media-panel p { color: rgba(255,255,255,.85); margin: 0; }

/* Real photo media */
.media-photo { position: relative; }
.media-photo > img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.media-photo.tall > img { aspect-ratio: 3 / 4; }
.media-float {
  position: absolute;
  left: -18px; bottom: -18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 240px;
}
.media-float .mf-ico {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: var(--grad-rescue);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--sh-red);
}
.media-float .mf-ico svg { width: 22px; height: 22px; }
.media-float b { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1; color: var(--ink-800); }
.media-float span { font-size: .8rem; color: var(--muted); }
.media-float.right { left: auto; right: -18px; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 30px); }
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
  background: var(--grad-rescue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section--ink .stat b { background: linear-gradient(135deg, #fff, var(--teal-400)); -webkit-background-clip: text; background-clip: text; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-weight: 500; font-size: .98rem; }
.section--ink .stat span { color: #aebfd1; }

/* ---------- Trust / zones strip ---------- */
.zones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.zone-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-weight: 600;
  box-shadow: var(--sh-sm);
}
.zone-chip svg { width: 18px; height: 18px; color: var(--red-500); }

/* ---------- Team card ---------- */
.team-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.team-photo {
  position: relative;
  background: var(--grad-ink);
  display: grid;
  place-items: center;
  padding: 40px 24px;
  isolation: isolate;
}
.team-photo::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 50% 20%, rgba(239,70,85,.4), transparent 60%);
}
.team-avatar {
  width: 150px; height: 150px;
  border-radius: 50%;
  background: var(--grad-rescue);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  color: #fff;
  box-shadow: 0 18px 40px rgba(229,49,63,.45);
  border: 4px solid rgba(255,255,255,.18);
}
.team-img {
  width: 170px; height: 170px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(229,49,63,.45);
  border: 4px solid rgba(255,255,255,.18);
}
.team-body { padding: 34px; }
.team-role {
  display: inline-block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 8px;
}
.team-body h3 { font-size: 1.8rem; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 600;
  color: var(--text);
}
.tag svg { width: 15px; height: 15px; color: var(--red-500); }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.4vw,26px); counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px 26px;
  box-shadow: var(--sh-sm);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--surface-2);
  position: absolute;
  top: 16px; right: 22px;
  line-height: 1;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
.step .step-ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--grad-rescue);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 18px;
  box-shadow: var(--sh-red);
}
.step .step-ico svg { width: 24px; height: 24px; }

/* ---------- Meta chips & callouts ---------- */
.meta-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .84rem; font-weight: 600; color: var(--text);
}
.meta-chip svg { width: 15px; height: 15px; color: var(--red-500); }

.callout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-500);
  border-radius: var(--r-md);
  padding: 24px 28px;
  box-shadow: var(--sh-sm);
}
.callout .callout-ico {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--grad-ocean);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 26px rgba(21,185,205,.28);
}
.callout .callout-ico svg { width: 24px; height: 24px; }
.callout h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.1rem; }
.callout p { margin: 0; color: var(--muted); }

/* Section divider note */
.lead-block { max-width: 760px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--grad-ink);
  color: #fff;
  padding: clamp(40px, 6vw, 70px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--sh-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(239,70,85,.5), transparent 70%);
  filter: blur(50px);
  z-index: -1;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9cadb; max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--text); }
.field label .req { color: var(--red-500); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(21,185,205,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .86rem; color: var(--muted-2); margin-top: 4px; }
.form-status {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  background: rgba(58,210,159,.12);
  color: #16855f;
}
.form-status.show { display: flex; }
.form-status svg { width: 20px; height: 20px; flex: none; }

/* ---------- Contact layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 3vw, 42px);
  align-items: start;
}
.form-card { padding: clamp(26px, 3vw, 38px); }
.form-card h3 { margin-bottom: 6px; }
.form-card .form-intro { color: var(--muted); margin-bottom: 24px; }
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact info cards ---------- */
.info-list { display: grid; gap: 16px; }
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--sh-sm);
}
.info-item .info-ico {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--red-600);
  display: grid; place-items: center;
}
.info-item .info-ico svg { width: 22px; height: 22px; }
.info-item h4 { margin: 0 0 3px; font-family: var(--font-display); font-size: 1.02rem; }
.info-item p, .info-item a { margin: 0; color: var(--muted); }
.info-item a:hover { color: var(--red-600); }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  min-height: 100%;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Qualiopi badge ---------- */
.qualiopi-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 34px;
  box-shadow: var(--sh-md);
  text-align: center;
}
.qualiopi-seal {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--grad-ocean);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 16px 34px rgba(21,185,205,.34);
}
.qualiopi-seal svg { width: 50px; height: 50px; }
.qualiopi-badge b { font-family: var(--font-display); font-size: 1.15rem; }
.qualiopi-badge span { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }

/* Certification band (home) — official Qualiopi logo like the original site */
.cert-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(26px, 5vw, 60px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--sh-md);
}
.cert-logos {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  flex-wrap: wrap;
  justify-content: center;
}
.cert-logo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-sm);
}
.cert-logo-card img { height: 86px; width: auto; }
.cert-logo-card.badge img { height: 104px; }
.cert-band h3 { margin-bottom: 8px; }
.cert-band p { color: var(--muted); margin: 0; }
.cert-band .check-list { margin-top: 16px; }

/* Inline logo helpers */
.logo-img { width: auto; display: block; }
.badge-img { width: auto; display: block; }

.actions-list { display: grid; gap: 14px; }
.action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-weight: 600;
  box-shadow: var(--sh-sm);
}
.action-row svg { width: 24px; height: 24px; color: var(--teal-600); flex: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: #9fb2c6;
  padding-top: clamp(50px, 7vw, 80px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,.55); }
.footer-brand .brand-logo { height: 58px; filter: brightness(0) invert(1); }
.footer-about { margin-top: 18px; font-size: .96rem; max-width: 320px; }
.footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links { display: grid; gap: 11px; }
.footer-links a { color: #9fb2c6; transition: color .2s ease; font-size: .98rem; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: 13px; font-size: .98rem; }
.footer-contact a { color: #9fb2c6; }
.footer-contact a:hover { color: #fff; }
.footer-contact .fc-row { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact .fc-row svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--teal-400); }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  display: grid; place-items: center;
  color: #cdd9e6;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.footer-social a:hover { background: var(--grad-rescue); color: #fff; transform: translateY(-3px); border-color: transparent; }
.footer-social svg { width: 19px; height: 19px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 30px;
  font-size: .88rem;
  color: #6f829a;
}
.footer-bottom a { color: #9fb2c6; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .badges { display: flex; gap: 12px; align-items: center; }
.footer-bottom .badges span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  color: #c2cfdd;
  font-weight: 600;
}
.footer-bottom .badges svg { width: 15px; height: 15px; color: var(--teal-400); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .team-card { grid-template-columns: 1fr; }
  .team-photo { padding: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(14px);
    padding: 18px var(--gutter) 26px;
    box-shadow: var(--sh-md);
    transform: translateY(-130%);
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  body.menu-open .main-nav { transform: translateY(0); }
  .nav-link { color: var(--text) !important; padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--red-600) !important; }
  .nav-cta { margin: 14px 0 0; justify-content: center; padding: 14px; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2,1fr); row-gap: 30px; }
  .cert-band { grid-template-columns: 1fr; text-align: center; }
  .cert-band .check-list { text-align: left; max-width: 360px; margin-inline: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3,1fr); }
  .btn { width: 100%; justify-content: center; }
  .btn-row .btn { width: auto; }
  .hero .btn-row .btn, .cta-band .btn-row .btn { flex: 1 1 auto; }
}

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