/* Panafricaine Formation
   Couleurs tirées du logo : encre (marine), toque (bleu), signet (rouge du livre). */

:root {
  --navy: #1a2858;
  --navy-2: #24366f;
  --blue: #2b67b2;
  --red: #e1343c;
  --red-dark: #c3272f;
  --paper: #f3f5fa;
  --mist: #e2e9f4;
  --white: #ffffff;
  --ink: #17203f;
  --muted: #59637f;
  --line: rgba(23, 32, 63, 0.14);
  --on-navy: #c8d2ea;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font-weight: 650; font-size: 1rem; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px #fff; }
.btn-quiet { background: var(--mist); color: var(--navy); }
.btn-quiet:hover { background: #d3ddee; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  font-weight: 550; font-size: .97rem; text-decoration: none; color: var(--ink);
}
.nav a:hover { background: var(--mist); }
.nav a.active { color: var(--red); }
.btn-call { min-height: 42px; padding: 0 18px; background: var(--navy); color: #fff; font-stretch: 90%; }
.btn-call:hover { background: var(--navy-2); }
.btn-call svg { width: 17px; height: 17px; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .header-inner { gap: 12px; }
  .brand img { height: 52px; }
  .btn-call { margin-left: auto; }
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 0; border-radius: 12px; background: var(--mist); cursor: pointer;
  }
  .bars, .bars::before, .bars::after {
    display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ''; position: absolute; left: 0; }
  .bars::before { top: -6px; }
  .bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; margin: 0;
    padding: 8px var(--gutter) 20px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(23,32,63,.35);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a:hover { background: none; }
}
@media (max-width: 420px) {
  .btn-call span { display: none; }
  .btn-call { width: 44px; padding: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: clamp(48px, 8vw, 104px) 0 0;
  isolation: isolate;
  overflow: hidden;
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-bottom: clamp(72px, 10vw, 128px);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  font-weight: 820; font-stretch: 118%;
  line-height: .98; letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 13ch;
}
.hero-lead {
  margin-top: 28px; max-width: 54ch;
  color: var(--on-navy); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Billet de la prochaine session */
.ticket {
  --notch: 14px;
  position: relative;
  background: var(--paper); color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.55);
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 var(--cut), transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% var(--cut), transparent 98%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at 0 var(--cut), transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% var(--cut), transparent 98%, #000) right / 51% 100% no-repeat;
  --cut: 196px;
}
.ticket-top { padding: 26px 28px 22px; height: var(--cut); display: flex; flex-direction: column; }
.ticket-label { display: flex; justify-content: space-between; gap: 12px; font-weight: 650; font-size: .95rem; color: var(--navy); }
.ticket-countdown { color: var(--red); font-weight: 700; }
.ticket-date {
  margin-top: auto;
  font-size: clamp(4rem, 8vw, 5.6rem);
  font-weight: 860; font-stretch: 62%;
  line-height: .86; letter-spacing: -0.01em; color: var(--navy);
  font-variant-numeric: lining-nums tabular-nums;
}
.ticket-month { margin-top: 6px; font-weight: 600; font-stretch: 90%; font-size: 1.1rem; color: var(--blue); }
.ticket-body { position: relative; padding: 24px 28px 28px; }
.ticket-body::before {
  content: ''; position: absolute; left: 22px; right: 22px; top: 0;
  border-top: 2px dashed rgba(23,32,63,.22);
}
.ticket-title { font-size: 1.35rem; font-weight: 750; font-stretch: 100%; line-height: 1.22; text-wrap: balance; }
.ticket-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 18px 0 22px; font-size: .97rem; }
.ticket-facts dt { color: var(--muted); }
.ticket-facts dd { margin: 0; font-weight: 600; }

/* Le livre ouvert du logo, en bas du hero */
.hero-book { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(48px, 7vw, 110px); }
.book-fill { fill: var(--paper); }
.book-line {
  fill: none; stroke: var(--red); stroke-width: 7; vector-effect: non-scaling-stroke; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.js .book-line { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 1.6s cubic-bezier(.65,.05,.25,1) .25s forwards; }
.js .ticket { animation: lift .9s cubic-bezier(.2,.7,.2,1) .9s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes lift { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .book-line { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; }
  .js .ticket { animation: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .ticket { max-width: 460px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2, .centre-copy h2, .business h2, .contact h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 800; font-stretch: 112%;
  line-height: 1.02; letter-spacing: -0.012em;
  color: var(--navy); text-wrap: balance;
}
.section-head p { color: var(--muted); max-width: 56ch; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Catalogue ---------- */
.formations { padding-top: clamp(40px, 6vw, 72px); }
.catalog { display: grid; grid-template-columns: minmax(240px, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.catalog-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 24px); }
.tab {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  width: 100%; padding: 14px 4px 14px 18px;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; cursor: pointer;
  font-size: 1.06rem; font-weight: 560; color: var(--muted);
  position: relative;
  transition: color .15s ease;
}
.tab::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 4px;
  background: var(--red); transform: scaleY(0); transition: transform .2s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--navy); font-weight: 720; }
.tab[aria-selected="true"]::before { transform: scaleY(1); }
.tab-count { font-stretch: 70%; font-weight: 700; font-size: .95rem; color: var(--blue); font-variant-numeric: tabular-nums; }

.catalog-panel {
  background: var(--white); border-radius: 22px;
  padding: clamp(24px, 4vw, 44px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 240px); gap: 32px 40px;
  min-height: 460px;
}
.catalog-panel:focus-visible { outline-offset: 4px; }
.panel-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.panel-head h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 780; font-stretch: 108%; line-height: 1.08; color: var(--navy); }
.panel-head p { margin-top: 10px; color: var(--muted); max-width: 50ch; }
.training-list { columns: 2 220px; column-gap: 32px; }
.training-list li {
  break-inside: avoid;
  padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line);
  position: relative; line-height: 1.4;
}
.training-list li::before {
  /* petit livre ouvert : le signet rouge du logo */
  content: ''; position: absolute; left: 0; top: 18px; width: 12px; height: 6px;
  border: 2px solid var(--red); border-top: 0; border-radius: 0 0 10px 10px;
}
.panel-figure { align-self: start; }
.panel-figure button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 12px; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(23,32,63,.6);
}
.panel-figure img { width: 100%; max-height: 360px; object-fit: contain; background: var(--mist); transition: transform .4s ease; }
.panel-figure button:hover img { transform: scale(1.03); }
.panel-figure figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.panel-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.panel-actions .hint { color: var(--muted); font-size: .95rem; }

@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .catalog-tabs {
    position: static; flex-direction: row; overflow-x: auto; gap: 8px; border: 0;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px;
    scrollbar-width: none;
  }
  .catalog-tabs::-webkit-scrollbar { display: none; }
  .tab {
    flex: none; width: auto; border: 0; border-radius: 999px; padding: 10px 16px;
    background: var(--white); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; font-size: .98rem;
  }
  .tab::before { display: none; }
  .tab[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: none; }
  .tab[aria-selected="true"] .tab-count { color: #9fb9e6; }
  .catalog-panel { grid-template-columns: 1fr; min-height: 0; }
  .panel-figure { max-width: 260px; }
}

/* ---------- Calendrier ---------- */
.calendar { background: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  border: 0; cursor: pointer; border-radius: 999px; padding: 8px 15px;
  background: var(--paper); color: var(--ink); font-size: .95rem; font-weight: 560;
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }

.year { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; border-top: 2px solid var(--navy); padding-top: 18px; margin-bottom: 40px; }
.year-label {
  font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 880; font-stretch: 62%;
  line-height: .85; color: var(--navy); letter-spacing: -0.01em;
  position: sticky; top: calc(var(--header-h) + 20px); align-self: start;
}
.year-label small { display: block; margin-top: 10px; font-size: .9rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--muted); }
.rows { display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px 28px; align-items: start;
  width: 100%; padding: 18px 14px; margin: 0 -14px; width: calc(100% + 28px);
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: none; text-align: left; cursor: pointer;
  transition: background-color .15s ease;
}
.row:hover { background: var(--paper); }
.row:last-child { border-bottom: 0; }
.row-date { font-weight: 800; font-stretch: 75%; font-size: 1.2rem; line-height: 1.2; color: var(--navy); font-variant-numeric: tabular-nums; }
.row-title { font-weight: 680; font-size: 1.08rem; line-height: 1.35; text-wrap: pretty; }
.row-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; color: var(--muted); font-size: .94rem; }
.row-meta span { display: inline-flex; align-items: center; gap: 6px; }
.row-meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.row-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; object-position: top; background: var(--mist); }
.row.upcoming .row-date { color: var(--red); }
.tag { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 700; vertical-align: 2px; }
.timeline-empty { color: var(--muted); padding: 24px 0; }

@media (max-width: 760px) {
  .year { grid-template-columns: 1fr; gap: 8px; }
  .year-label { position: static; display: flex; align-items: baseline; gap: 14px; }
  .year-label small { margin: 0; }
  .row { grid-template-columns: minmax(0, 1fr) 56px; }
  .row-date { grid-column: 1 / -1; font-size: 1.05rem; }
  .row-thumb { width: 56px; height: 56px; grid-row: 2; grid-column: 2; }
}

/* ---------- Le centre ---------- */
.centre-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.centre-lead { margin-top: 24px; font-size: 1.15rem; max-width: 52ch; }
.facts { margin-top: 32px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 620; }
.centre-photos { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(380px, 46vw, 560px); }
.ph { overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-a { grid-row: 1 / 2; }
.ph-b { grid-row: 1 / 3; grid-column: 2; }
.ph-c { grid-row: 2 / 3; }

.trainers { margin-top: clamp(64px, 8vw, 104px); }
.trainers h3, .gallery-wrap h3 { font-size: 1.5rem; font-weight: 760; font-stretch: 106%; color: var(--navy); margin-bottom: 24px; }
.trainer-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--navy); }
.trainer-list li { padding: 22px 0; }
.trainer-name { font-size: 1.25rem; font-weight: 760; font-stretch: 100%; }
.trainer-role { margin-top: 4px; color: var(--blue); font-weight: 600; font-size: .97rem; line-height: 1.4; }
.trainer-topics { margin-top: 10px; color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) {
  .centre-grid { grid-template-columns: 1fr; }
  .trainer-list { grid-template-columns: 1fr; }
  .trainer-list li { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .centre-photos { height: 420px; }
}

.gallery-wrap { margin-top: clamp(64px, 8vw, 104px); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 14px; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.gallery figure.wide { grid-column: span 2; }
.gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px;
  background: linear-gradient(transparent, rgba(16, 24, 56, .85));
  color: #fff; font-size: .9rem; line-height: 1.35; pointer-events: none;
}
.gallery figcaption b { display: block; font-weight: 700; font-stretch: 80%; color: #ffd0d2; font-size: .82rem; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery figure.wide { grid-column: auto; }
}

/* ---------- Séminaires intra-entreprise ---------- */
.business { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.business h2 { color: #fff; max-width: 15ch; }
.business-head {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 24px clamp(40px, 6vw, 96px); align-items: end;
  padding-bottom: clamp(32px, 5vw, 56px); margin-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.business-lead { color: #fff; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; max-width: 48ch; }
.business-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.business h3 { font-size: 1.35rem; font-weight: 760; font-stretch: 104%; line-height: 1.25; color: #fff; margin-bottom: 16px; }
.business-text p { color: var(--on-navy); max-width: 62ch; }
.business-text p + p { margin-top: 18px; }
.business-text .themes-title { margin-top: 40px; }
.themes { display: flex; flex-wrap: wrap; gap: 8px; }
.themes li {
  padding: 7px 14px; border-radius: 999px; font-size: .94rem; font-weight: 560;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); color: #fff;
}
.business-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.steps { counter-reset: step; border-top: 1px solid rgba(255,255,255,.2); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 48px 1fr; gap: 2px 14px;
  padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.2);
}
.steps li::before {
  content: counter(step);
  grid-row: 1 / 3; font-size: 2.4rem; font-weight: 880; font-stretch: 62%; line-height: .9; color: var(--red);
}
.steps strong { font-weight: 700; font-size: 1.06rem; }
.steps span { color: var(--on-navy); font-size: .96rem; line-height: 1.5; }

.reference { margin-top: 36px; }
.reference img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.reference figcaption { margin-top: 12px; color: var(--on-navy); font-size: .94rem; line-height: 1.5; }
.reference b { display: block; color: #ffc2c5; font-weight: 700; font-stretch: 85%; margin-bottom: 2px; }

.gains {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px;
  margin-top: clamp(56px, 7vw, 88px); border-top: 2px solid var(--red);
}
.gains li { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.gains strong { display: block; font-size: 1.15rem; font-weight: 760; font-stretch: 104%; margin-bottom: 4px; }
.gains span { color: var(--on-navy); font-size: .97rem; }

@media (max-width: 960px) {
  .business-head, .business-grid { grid-template-columns: 1fr; }
  .gains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gains { grid-template-columns: 1fr; }
  .business-actions .btn { width: 100%; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-info > p { margin-top: 18px; color: var(--muted); max-width: 44ch; }
.big-phone {
  display: inline-block; margin-top: 28px;
  font-size: clamp(3rem, 7vw, 4.8rem); font-weight: 860; font-stretch: 70%;
  line-height: 1; color: var(--red); text-decoration: none; letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}
.big-phone:hover { color: var(--red-dark); }
.contact-list { margin-top: 28px; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); }
.contact-list a { font-weight: 620; text-decoration-color: rgba(23,32,63,.3); text-underline-offset: 3px; word-break: break-word; }
.contact-list a:hover { color: var(--red); }
.contact-list address { font-style: normal; font-weight: 560; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.socials a {
  padding: 9px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem;
  box-shadow: inset 0 0 0 1px var(--line); background: var(--white);
}
.socials a:hover { box-shadow: inset 0 0 0 1px var(--navy); }

.signup {
  background: var(--white); border-radius: 22px; padding: clamp(24px, 4vw, 40px);
  display: grid; gap: 16px;
  box-shadow: 0 30px 60px -40px rgba(23,32,63,.45);
}
.signup h3 { font-size: 1.6rem; font-weight: 780; font-stretch: 106%; color: var(--navy); }
.form-note { color: var(--muted); font-size: .95rem; margin-top: -6px; }
.signup label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.signup .opt { color: var(--muted); font-weight: 450; }
.signup input, .signup select, .signup textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid rgba(23,32,63,.22); border-radius: 12px; background: var(--paper);
  font-weight: 450; font-size: 1rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.signup textarea { resize: vertical; min-height: 96px; }
.signup input:focus, .signup select:focus, .signup textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(43,103,178,.18); }
.signup [aria-invalid="true"] { border-color: var(--red); }
.form-error { color: var(--red-dark); font-weight: 600; font-size: .95rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .contact-list li { grid-template-columns: 1fr; gap: 2px; } .form-actions .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aeb8d3; padding: 56px 0 40px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; }
.footer-logo { height: 64px; width: auto; opacity: .95; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { text-decoration: none; color: #fff; }
.site-footer a:hover { color: #ffb3b6; }
.copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  padding: 0; border: 0; border-radius: 20px; background: var(--white); color: var(--ink);
  overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.lightbox::backdrop { background: rgba(12, 18, 44, .78); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; height: 100%; max-height: calc(100vh - 32px); object-fit: contain; background: var(--mist); }
.lightbox-text { padding: 40px 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.lightbox-date { font-weight: 800; font-stretch: 75%; font-size: 1.3rem; color: var(--red); }
.lightbox-title { font-size: 1.5rem; font-weight: 760; line-height: 1.2; color: var(--navy); margin-bottom: 12px; }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); font-size: 1.8rem; line-height: 1; color: var(--navy);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.4);
}
@media (max-width: 760px) {
  .lightbox[open] { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lightbox img { max-height: 62vh; }
  .lightbox-text { padding: 20px 20px 24px; }
}
