/* Serge — site public */

:root {
  --ink: #0f1b2d;
  --ink-2: #1c2b42;
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --white: #ffffff;
  --text: #1a2230;
  --muted: #5b6472;
  --line: #e2dbcf;
  --line-dark: #2b3b55;
  --accent: #e0602b;
  --accent-dark: #c24e1d;
  --ok: #3e8e5a;

  --blue: #4a72b0;   --blue-bg: #e8f0fb;
  --green: #3e8e5a;  --green-bg: #eaf6ee;
  --amber: #c07a2c;  --amber-bg: #fdf1e3;
  --violet: #7a55a6; --violet-bg: #f3ecf8;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 27 45 / 6%), 0 8px 24px rgb(15 27 45 / 6%);

  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgb(224 96 43 / 45%); outline-offset: 2px; }

/* En-tête */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgb(247 244 238 / 92%); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.topbar__nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.topbar__nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.topbar__nav a:hover { color: var(--ink); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: var(--paper); font: 600 20px/1 var(--serif);
}
.brand__name { font: 600 22px/1 var(--serif); letter-spacing: -.01em; }

.flash { max-width: 1160px; margin: 16px auto 0; padding: 12px 24px; border-radius: 10px; font-size: 15px; }
.flash--notice { background: var(--green-bg); color: #1e3a28; }
.flash--alert { background: #fdeceb; color: #7a1f1a; }

/* Typo de section */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow--light { color: #f0a27f; }
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: #dfe5ee; }
.section--dark .section__title { color: var(--white); }
.section--dark .section__lead { color: #aab5c5; }
.section__title { font: 600 clamp(30px, 4vw, 44px)/1.12 var(--serif); letter-spacing: -.015em; color: var(--ink); max-width: 780px; }
.section__title--center { text-align: center; margin: 0 auto 48px; }
.section__lead { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 680px; }

.grid { display: grid; gap: 20px; margin-top: 48px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.section__title--center + .grid { margin-top: 0; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font: 600 21px/1.25 var(--serif); color: var(--ink); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card--plain { background: transparent; }

/* Hero */
.hero { background: var(--paper); padding: 72px 0 96px; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero__title { font: 600 clamp(42px, 6vw, 72px)/1.02 var(--serif); letter-spacing: -.025em; color: var(--ink); }
.hero__lead { margin-top: 24px; font-size: 20px; color: #3b4453; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.seats { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 15px; color: var(--muted); }
.seats strong { color: var(--ink); }
.seats__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(224 96 43 / 18%); }

/* Cockpit (aperçu) */
.cockpit {
  margin: 0; padding: 22px; border-radius: 20px; background: var(--ink); color: #dfe5ee;
  box-shadow: 0 30px 60px rgb(15 27 45 / 22%); font-size: 14px;
}
.cockpit__bar { display: flex; justify-content: space-between; color: #8e9bb0; font-size: 13px; margin-bottom: 16px; }
.cockpit__live { color: #f0a27f; }
.cockpit__label { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #8e9bb0; margin-bottom: 6px; }
.cockpit__alert { background: var(--ink-2); border: 1px solid var(--line-dark); border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px; }
.cockpit__text { color: var(--white); font-size: 15px; line-height: 1.5; }
.cockpit__buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: 12.5px; color: #c9d2df; }
.chip--solid { background: var(--accent); border-color: var(--accent); color: var(--white); }
.cockpit__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.cockpit__stats > div, .cockpit__plan { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 12px; padding: 14px 16px; }
.cockpit__big { font: 600 34px/1 var(--serif); color: var(--white); }
.cockpit__big--sm { font-size: 20px; line-height: 1.2; }
.cockpit__hint { font-size: 12px; color: #8e9bb0; margin-top: 6px; }
.meter { height: 6px; border-radius: 99px; background: var(--line-dark); margin-top: 10px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.cockpit__plan { margin-top: 12px; }
.cockpit__plan ul { list-style: none; margin: 0; padding: 0; }
.cockpit__plan li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line-dark); }
.cockpit__plan li:first-child { border-top: 0; }
.cockpit__plan em { font-style: normal; color: #8e9bb0; white-space: nowrap; }
.cockpit__plan em.ok { color: #7cc79a; }
.cockpit figcaption { margin-top: 12px; font-size: 12px; color: #6f7c91; text-align: right; }

/* Modules */
.module { border-top: 1px solid var(--line-dark); padding-top: 22px; }
.module__num { font: 600 14px/1 var(--sans); color: #f0a27f; }
.module h3 { font: 600 23px/1.2 var(--serif); color: var(--white); margin: 12px 0 10px; }
.module p { color: #aab5c5; font-size: 16px; }
.modules { row-gap: 40px; column-gap: 36px; }

/* Services */
.level { border-radius: var(--radius); padding: 24px; border: 1px solid; }
.level h3 { font: 600 20px/1.2 var(--serif); margin-bottom: 14px; }
.level ul { list-style: none; margin: 0; padding: 0; }
.level li { padding: 9px 0; border-top: 1px solid rgb(15 27 45 / 8%); font-size: 15.5px; }
.level--blue { background: var(--blue-bg); border-color: #cddbf1; } .level--blue h3 { color: #2c4d82; }
.level--green { background: var(--green-bg); border-color: #cfe8d7; } .level--green h3 { color: #28613c; }
.level--amber { background: var(--amber-bg); border-color: #f3dcc0; } .level--amber h3 { color: #8a5518; }
.level--violet { background: var(--violet-bg); border-color: #e1d3ee; } .level--violet h3 { color: #573a7c; }

/* Progression */
.progress { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 32px 0 0; }
.checks li { position: relative; padding: 0 0 16px 30px; color: #3b4453; }
.checks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.checks strong { color: var(--ink); }
.grades { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 10px; }
.grade {
  display: flex; justify-content: space-between; align-items: center;
  margin-left: calc(var(--step) * 7%);
  padding: 14px 18px; border-radius: 12px; background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.grade:last-child { background: var(--ink); border-color: var(--ink); }
.grade:last-child .grade__name { color: var(--white); }
.grade__name { font: 600 18px/1.2 var(--serif); color: var(--ink); }
.grade__index { order: 2; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Experts */
.experts .grid { margin-top: 36px; }

/* Offres */
.plans { align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.plan h3 { font: 600 24px/1.2 var(--serif); color: var(--ink); }
.plan__price { font: 600 40px/1 var(--serif); color: var(--ink); margin-top: 18px; }
.plan__price span { font: 400 16px var(--sans); color: var(--muted); }
.plan__was { font-size: 14px; color: var(--muted); margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; }
.plan li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: #3b4453; }
.plans__note { margin-top: 24px; color: var(--muted); font-size: 15px; }

/* Fondateurs */
.founders__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.founders .btn { margin-top: 32px; }
.founders__perks { list-style: none; margin: 0; padding: 0; }
.founders__perks li { padding: 18px 0; border-top: 1px solid var(--line-dark); color: #aab5c5; font-size: 17px; }
.founders__perks li:last-child { border-bottom: 1px solid var(--line-dark); }
.founders__perks strong { color: var(--white); font-weight: 600; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font: 600 19px/1.35 var(--serif); color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--sans); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* CTA final */
.section--cta { background: var(--accent); color: var(--white); padding: 80px 0; }
.cta { text-align: center; }
.cta h2 { font: 600 clamp(32px, 4.5vw, 50px)/1.1 var(--serif); }
.cta p { margin: 14px 0 30px; font-size: 19px; opacity: .92; }
.cta .btn--primary { background: var(--ink); }
.cta .btn--primary:hover { background: #000; }

/* Candidature */
.apply { background: var(--paper); }
.apply__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.apply__aside { position: sticky; top: 100px; }
.steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 20px 46px; color: #3b4453; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--sans);
}
.steps strong { color: var(--ink); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"],
.field input[type="password"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d5cdbf; border-radius: 10px; background: var(--white);
  font: 400 16px/1.4 var(--sans); color: var(--text);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(224 96 43 / 18%); }
.field--check { display: flex; gap: 12px; align-items: flex-start; }
.field--check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.field--check label { font-weight: 400; color: var(--muted); font-size: 14.5px; margin: 0; }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field_with_errors { display: contents; }
.field_with_errors input, .field_with_errors select, .field_with_errors textarea { border-color: #c0392b; }
.form__errors { background: #fdeceb; color: #7a1f1a; border-radius: 10px; padding: 14px 18px; margin-bottom: 22px; font-size: 15px; }
.form__errors ul { margin: 6px 0 0; padding-left: 18px; }

.thanks { text-align: center; padding: 40px 0; }
.thanks .section__title, .thanks .section__lead { margin-left: auto; margin-right: auto; }
.thanks .btn { margin-top: 32px; }

/* Pages de texte */
.prose h1 { font: 600 40px/1.15 var(--serif); color: var(--ink); margin-bottom: 20px; }
.prose h2 { font: 600 22px/1.3 var(--serif); color: var(--ink); margin: 36px 0 10px; }
.prose p { color: #3b4453; }

/* Pied de page */
.footer { background: var(--ink); color: #aab5c5; padding: 56px 0 28px; font-size: 15px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.brand--footer { color: var(--white); }
.brand--footer .brand__mark { background: var(--paper); color: var(--ink); }
.footer__tagline { margin-top: 12px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer__links a { text-decoration: none; color: #dfe5ee; }
.footer__links a:hover { color: var(--white); }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 13px; color: #6f7c91; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .progress, .founders__grid, .apply__grid { grid-template-columns: 1fr; gap: 48px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .apply__aside { position: static; }
  .topbar__nav { display: none; }
  .topbar__inner { justify-content: space-between; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .topbar__nav { display: none; }
  .topbar__inner { justify-content: space-between; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .hero__lead, .section__lead { font-size: 17px; }
  .grid--3, .grid--4, .form__row, .cockpit__stats { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .grade { margin-left: calc(var(--step) * 4%); }
  .hero__actions .btn { width: 100%; }
}
