/* =========================================================
   CYBER-CG — Feuille de style principale
   Palette issue du logo : sarcelle → indigo, marine profond
   ========================================================= */

:root {
  /* Couleurs du logo */
  --teal:        #17a398;  /* croissant gauche du logo */
  --teal-light:  #2cc7b5;
  --navy:        #1b2361;  /* contours & texte du logo */
  --navy-deep:   #131a4a;
  --indigo:      #3e4cb0;  /* croissant droit du logo */
  --indigo-soft: #5a67c9;

  /* Neutres */
  --ink:     #1c2340;
  --muted:   #5b6178;
  --line:    #e3e6f2;
  --surface: #f5f7fc;
  --white:   #ffffff;

  /* Dégradé signature (bouclier du logo) */
  --grad-shield: linear-gradient(135deg, var(--indigo) 0%, var(--teal) 100%);
  --grad-dark:   linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 55%, #24307e 100%);

  /* Typographie */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --radius:    14px;
  --radius-lg: 22px;
  --shadow:    0 8px 30px rgba(27, 35, 97, .10);
  --shadow-sm: 0 3px 12px rgba(27, 35, 97, .08);

  --container: 1160px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 .6em;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 780px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem;
  z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: .72rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--primary {
  background: var(--grad-shield);
  color: #fff;
  box-shadow: 0 6px 18px rgba(23, 163, 152, .35);
}
.btn--primary:hover { box-shadow: 0 10px 26px rgba(62, 76, 176, .4); color: #fff; }

.btn--outline { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn--outline:hover { background: var(--indigo); color: #fff; }

.btn--ghost { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--surface); }

.btn--lg { padding: .95rem 2rem; font-size: 1.02rem; }
.btn--sm { padding: .42rem 1rem; font-size: .85rem; }
.btn--block { display: block; width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 46px; height: 46px; object-fit: contain; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.25rem;
  color: var(--navy); letter-spacing: .02em;
}
.brand__accent { color: var(--teal); }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav__link {
  font-weight: 500; color: var(--ink); font-size: .96rem;
  padding: .3rem 0; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 3px; border-radius: 3px;
  background: var(--grad-shield);
  transition: width .2s ease;
}
.nav__link:hover { text-decoration: none; color: var(--navy); }
.nav__link:hover::after, .nav__link--active::after { width: 100%; }
.nav__cta { margin-left: .4rem; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.burger span {
  width: 26px; height: 3px; border-radius: 3px;
  background: var(--navy); transition: transform .2s, opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-dark);
  color: #dfe4ff;
  overflow: hidden;
}
.hero__orbit {
  position: absolute; inset: -40% -20% auto auto;
  width: 900px; height: 900px; border-radius: 50%;
  background:
    radial-gradient(closest-side, transparent 62%, rgba(23,163,152,.22) 63%, transparent 70%),
    radial-gradient(closest-side, transparent 74%, rgba(90,103,201,.25) 75%, transparent 82%);
  animation: orbit-spin 60s linear infinite;
  pointer-events: none;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: 3rem;
  padding: 5rem 22px 5.5rem;
}
.hero__title { color: #fff; margin-bottom: 1rem; }
.grad-text {
  background: linear-gradient(90deg, var(--teal-light), var(--indigo-soft));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__lead { font-size: 1.08rem; max-width: 34rem; color: #c6cdf5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero__actions--center { justify-content: center; }

.hero__stats {
  display: flex; gap: 2.4rem; flex-wrap: wrap;
  list-style: none; margin: 2.6rem 0 0; padding: 0;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stat-num, .hero__stat-suffix {
  font-family: var(--font-mono);
  font-size: 2rem; font-weight: 500; color: var(--teal-light);
  display: inline;
}
.hero__stats li { flex-direction: row; align-items: baseline; gap: .15rem; flex-wrap: wrap; }
.hero__stat-label {
  width: 100%; font-size: .85rem; color: #9aa3d8;
  letter-spacing: .02em;
}
.hero__visual { display: flex; justify-content: center; }
.hero__logo {
  width: min(380px, 90%);
  filter: drop-shadow(0 18px 45px rgba(0,0,0,.45));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .8rem;
}
.eyebrow--light { color: var(--teal-light); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section--tinted { background: var(--surface); }
.section--center { text-align: center; }
.section__head { max-width: 720px; margin-bottom: 2.6rem; }
.section__lead { color: var(--muted); font-size: 1.05rem; }
.section__more { margin-top: 2.2rem; text-align: center; }
.gap-top { margin-top: 2rem; }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 1.4rem; }
.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(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(23,163,152,.4); }
.card__icon { font-size: 1.7rem; margin-bottom: .7rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Cartes formation */
.fcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--teal), var(--indigo)) 1;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.fcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.fcard__top { display: flex; gap: .6rem; margin-bottom: .9rem; }
.fcard__duree, .fcard__volume {
  font-family: var(--font-mono); font-size: .74rem;
  padding: .25rem .7rem; border-radius: 999px;
}
.fcard__duree { background: rgba(23,163,152,.12); color: var(--teal); }
.fcard__volume { background: rgba(62,76,176,.12); color: var(--indigo); }
.fcard__title { margin-bottom: .3rem; }
.fcard__accroche { color: var(--teal); font-weight: 600; font-size: .92rem; margin-bottom: .7rem; }
.fcard__resume { color: var(--muted); font-size: .95rem; flex: 1; }
.fcard__meta { font-size: .85rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .8rem; }
.fcard__actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.fcard .btn { align-self: flex-start; }

/* ---------- CTA bandeau ---------- */
.cta {
  background: var(--grad-dark);
  color: #dfe4ff;
  padding: 3.6rem 0;
  position: relative; overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; left: -140px; top: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(23,163,152,.28), transparent 70%);
}
.cta__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta__title { color: #fff; margin-bottom: .4rem; }
.cta__lead { color: #b9c1ec; margin: 0; }

/* ---------- En-tête de page interne ---------- */
.pagehead {
  background: var(--grad-dark);
  color: #dfe4ff;
  padding: 3.6rem 0 3rem;
}
.pagehead h1 { color: #fff; margin-bottom: .4rem; }
.pagehead__lead { color: #b9c1ec; max-width: 40rem; margin: 0; }

/* ---------- Split (contenu + aside) ---------- */
.split {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 2.6rem; align-items: start;
}
.aside__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.3rem;
}
.aside__card--accent { border-left: 4px solid var(--teal); }
.aside__card--sticky { position: sticky; top: 96px; }

.checklist { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.checklist li {
  padding-left: 1.7rem; position: relative; margin-bottom: .55rem;
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 700;
}

.modlist { list-style: none; margin: 0; padding: 0; counter-reset: mod; }
.modlist li {
  display: flex; gap: 1rem; align-items: baseline;
  padding: .8rem 0; border-bottom: 1px dashed var(--line);
}
.modlist__num {
  font-family: var(--font-mono);
  color: var(--indigo); font-weight: 500;
}

.facts { margin: 0 0 1.2rem; }
.facts dt {
  font-family: var(--font-mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin-top: .8rem;
}
.facts dd { margin: .15rem 0 0; font-weight: 600; color: var(--navy); }
.facts dd a { color: var(--indigo); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pricing {
  width: 100%; border-collapse: collapse;
  background: var(--white); min-width: 680px;
}
.pricing th, .pricing td { padding: 1rem 1.1rem; text-align: left; }
.pricing thead th {
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-size: .88rem;
}
.pricing tbody tr { border-bottom: 1px solid var(--line); }
.pricing tbody tr:hover { background: var(--surface); }
.pricing tbody th { font-weight: 600; color: var(--navy); }
.pricing__price { font-family: var(--font-mono); color: var(--teal); font-weight: 500; white-space: nowrap; }

/* ---------- Formulaires ---------- */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__group { margin-bottom: 1.1rem; }
.form__group label {
  display: block; font-weight: 600; font-size: .92rem;
  margin-bottom: .35rem; color: var(--navy);
}
.req { color: #d64550; }
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: .72rem .9rem;
  font: inherit; color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23,163,152,.15);
}
.form__group input.invalid,
.form__group textarea.invalid,
.form__group select.invalid { border-color: #d64550; }
.form__note { font-size: .82rem; color: var(--muted); }

/* Honeypot : hors écran, invisible pour l'humain */
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* ---------- Flash ---------- */
.flash {
  max-width: var(--container);
  margin: 1.2rem auto 0;
  padding: 1rem 1.3rem;
  border-radius: var(--radius);
  font-size: .95rem;
}
.flash--success { background: #e5f7f2; color: #0d6e5f; border: 1px solid #9fdccd; }
.flash--error   { background: #fdecee; color: #9c2733; border: 1px solid #f2b8be; }
.flash ul { margin: .4rem 0 0 1.1rem; padding: 0; }

/* ---------- Merci / 404 ---------- */
.thanks { padding: 2rem 0; }
.thanks__icon { font-size: 3rem; margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #b9c1ec; margin-top: 0; }
.footer a { color: #cdd4f7; }
.footer a:hover { color: var(--teal-light); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.4rem;
  padding: 3.4rem 22px 2.4rem;
}
.footer__logo { width: 60px; margin-bottom: .6rem; }
.footer__brandname {
  font-family: var(--font-display); font-weight: 800;
  color: #fff; font-size: 1.15rem; margin-bottom: .5rem;
}
.footer__desc { font-size: .92rem; }
.footer__badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.badge {
  font-family: var(--font-mono); font-size: .7rem;
  padding: .3rem .7rem; border-radius: 999px;
  border: 1px solid rgba(23,163,152,.5); color: var(--teal-light);
}
.footer__title {
  color: #fff; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .1em;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: .55rem; font-size: .92rem; }
.footer__list--contact strong { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 22px; font-size: .85rem; flex-wrap: wrap; gap: .6rem;
}
.footer__top { font-family: var(--font-mono); font-size: .8rem; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__logo, .hero__orbit { animation: none; }
  .btn, .card, .fcard { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__visual { order: -1; }
  .hero__logo { width: min(280px, 70%); }
  .split { grid-template-columns: 1fr; }
  .aside__card--sticky { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }

  .burger { display: flex; }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    gap: .2rem; padding: 1rem 22px 1.4rem;
    transform: translateY(-130%);
    transition: transform .25s ease;
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav__link { padding: .7rem 0; width: 100%; font-size: 1.05rem; }
  .nav__cta { margin: .6rem 0 0; width: 100%; }
}
