/* ==========================================================================
   Design system partagé — statique, sans framework, sans animation envahissante.
   Palette claire par défaut + variante sombre (toggle #mode, pur CSS).
   ========================================================================== */

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

:root {
  --bg: #f6f8fb;
  --bg-alt: #ffffff;
  --text: #24303d;
  --text-soft: #5c6b7a;
  --accent: #0066ff;
  --accent-soft: rgba(0, 102, 255, .08);
  --accent-soft-2: rgba(0, 102, 255, .14);
  --line: rgba(15, 30, 60, .10);
  --cta-bg: #00c389;
  --cta-text: #04241a;
  --shield: #7b4dff;
  --highlight: #e8720c;
  --highlight-soft: #fff2e2;
  --highlight-border: #f2a559;
  --highlight-text: #6b3600;
  --header-grad: linear-gradient(120deg, #0a1230 0%, #142354 55%, #1c2f6b 100%);
  --card-shadow: 0 1px 2px rgba(15, 30, 60, .05), 0 6px 18px rgba(15, 30, 60, .06);
  --radius: 12px;
  --maxw: 1180px;
  --gap: 16px;
}

html { background: var(--bg); }

body {
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* #mode doit rester un enfant direct de body, frère de .page-shell,
   pour que le sélecteur ~ ci-dessous fonctionne. Le <label> associé,
   lui, est déplacé dans la topbar (voir .mode-switch) : son attribut
   for="mode" suffit à le relier au checkbox quel que soit son emplacement. */
#mode { display: none; }

.page-shell {
  display: block;
  background: var(--bg);
  color: var(--text);
}

#mode:checked ~ .page-shell {
  --bg: #0b0f1a;
  --bg-alt: #131a2b;
  --text: #e7ecf5;
  --text-soft: #a7b3c4;
  --accent: #5b9dff;
  --accent-soft: rgba(91, 157, 255, .10);
  --accent-soft-2: rgba(91, 157, 255, .18);
  --line: rgba(210, 225, 255, .12);
  --cta-bg: #17e0a0;
  --cta-text: #04241a;
  --shield: #a98bff;
  --highlight: #ff9d3f;
  --highlight-soft: #2e1c08;
  --highlight-border: #b06a1f;
  --highlight-text: #ffd9ac;
  --header-grad: linear-gradient(120deg, #050813 0%, #0c1330 55%, #101b3f 100%);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
}

a { color: var(--accent); }
img, svg { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- topbar / nav (pages de vente uniquement) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-height: 58px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--text);
  font-size: 1.02rem;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}
.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 3px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  border-radius: 999px;
  white-space: nowrap;
}
.lang-switch a {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.lang-switch a:hover {
  color: var(--accent);
}
.lang-switch a[aria-current="true"] {
  background: var(--bg-alt);
  color: var(--accent);
}
@media (max-width: 780px) {
  .topbar .wrap { justify-content: center; text-align: center; }
  .nav-right { justify-content: center; width: 100%; }
  .nav-links { justify-content: center; width: 100%; order: 3; }
}
@media (max-width: 420px) {
  .nav-links a { padding: 6px 9px; font-size: .82rem; }
  .brand { font-size: .95rem; }
}

/* ---------- hero : bannière photo pleine largeur, hauteur limitée ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  width: 100%;
  min-height: clamp(240px, 34vw, 420px);
  padding: 28px 0;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(6,10,24,.86) 0%, rgba(6,10,24,.68) 42%, rgba(6,10,24,.32) 78%, rgba(6,10,24,.15) 100%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-inner { max-width: 62ch; }
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #9fc0ff;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero p.lead {
  font-size: 1rem;
  color: #dbe4f5;
  max-width: 56ch;
  margin: 0 0 18px;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .hero { min-height: clamp(200px, 62vw, 320px); }
}

/* ---------- CTA buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--cta-bg); color: var(--cta-text); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }

/* ---------- sections ---------- */
section.block { padding: 44px 0; }
section.block.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { width: 100%; margin: 0 0 24px; }
.section-head p { max-width: 66ch; }
.kicker { color: var(--accent); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 6px 0 8px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
p { margin: 0 0 12px; }

/* ---------- grilles / cartes : 3 par ligne par défaut ---------- */
.grid { display: grid; gap: var(--gap); align-items: stretch; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* secteurs : 4 sur une seule ligne le plus longtemps possible */
.sector-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sector-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}
.card .icon {
  width: 38px; height: 38px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 10px;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-soft); font-size: .93rem; }
.card > a { margin-top: auto; }

.card-problem { border-left: 3px solid #ff7a59; }
.card-solution { border-left: 3px solid var(--cta-bg); }
.card-step { position: relative; }
.card-step .num {
  position: absolute; top: 16px; right: 18px;
  font-size: 1.4rem; font-weight: 800; color: var(--accent-soft-2);
}

.sector-card h3 { color: var(--accent); }
.sector-card, .sector-card p { text-decoration: none; }

table.compare { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.compare th { background: var(--accent-soft); }

/* ---------- proof / credibility strip ---------- */
.proof-strip {
  display: flex; flex-wrap: wrap; gap: 24px;
  padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.proof-item { flex: 1 1 200px; }
.proof-item .num { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.proof-item .lbl { color: var(--text-soft); font-size: .86rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--header-grad);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.cta-banner p { color: #c9d5ef; margin: 6px 0 16px; }
.cta-banner h2 { margin-top: 0; }

/* ---------- pricing / offer box ---------- */
.offer-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 20px 22px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}
.offer-box .price { font-size: 1.4rem; font-weight: 800; color: var(--accent); margin: 4px 0 10px; }
.offer-box .duration { color: var(--text-soft); font-size: .86rem; font-weight: 400; }
.offer-box .kicker { display: block; margin-bottom: 4px; }

/* ---------- footer (maillage complet) ---------- */
footer.site-footer {
  background: var(--header-grad);
  color: #c9d5ef;
  padding: 40px 0 22px;
  margin-top: 8px;
}
footer.site-footer a { color: #dbe6ff; text-decoration: none; font-size: .88rem; }
footer.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: #fff; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em;
  margin: 0 0 10px;
}
.footer-grid > div > h4:not(:first-child) { margin-top: 20px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-continent {
  color: #91a2c2; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  margin-top: 8px;
}
.footer-continent:first-child { margin-top: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 28px; padding-top: 16px;
  font-size: .78rem; color: #91a2c2;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-legal-text { display: flex; flex-direction: column; gap: 4px; }

/* ---------- pages légères (pays / légal / contact) ---------- */
.breadcrumb { font-size: .8rem; color: var(--text-soft); margin-bottom: 14px; }
.legal-note {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .88rem;
  margin: 14px 0;
}
ul.plain { padding-left: 1.1em; color: var(--text-soft); margin: 0 0 12px; }
ul.plain li { margin-bottom: 5px; }

.iframe-embed {
  width: 100%;
  height: 900px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-alt);
  display: block;
}
@media (max-width: 640px) {
  .iframe-embed { height: 1100px; }
}
.iframe-fallback { font-size: .82rem; color: var(--text-soft); margin-top: 8px; }

/* ---------- badge "boosté par accroitre_net" (réutilisable sur les productions) ---------- */
.booste-badge { display: inline-flex; align-items: center; height: 44px; }
.booste-badge img { height: 100%; width: auto; background: #f6f8fb; border-radius: 6px; padding: 2px 6px; }

/* ==========================================================================
   Pages leaf (abc / pro / its) — landing pages personnelles, hors navigation
   ========================================================================== */
.leaf-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas: "content cta";
  gap: 32px;
  align-items: start;
}
.leaf-content { grid-area: content; }
.leaf-cta { grid-area: cta; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }

.leaf-block { margin: 0 0 22px; }
.leaf-titre { font-size: 1.15rem; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.leaf-argument {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
}
.leaf-dev { color: var(--text-soft); margin: 0 0 8px; }
.leaf-note {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .9rem;
  margin: 10px 0;
}

.leaf-cta-top {
  border: 1px solid var(--highlight-border);
  border-left: 4px solid var(--highlight);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--highlight-soft);
  color: var(--highlight-text);
  box-shadow: var(--card-shadow);
  font-size: .92rem;
  font-weight: 600;
}
.leaf-cta-bottom {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: .9rem;
}

@media (max-width: 780px) {
  .leaf-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "content" "cta";
  }
  .leaf-cta { position: static; }
}
