/* BEFAST / Apimail — feuille de style unique
   Pas de police externe : pile système (rapide, et aucune requête vers un tiers). */

:root {
  --prune: #7b2a83;        /* violet du logo */
  --prune-dark: #5c1f63;
  --prune-wash: #f4eef5;
  --ink: #2b2730;          /* texte */
  --muted: #5f5966;
  --line: #dcd6df;
  --paper: #ffffff;
  --ground: #f6f5f7;
  --ok: #3f7a32;
  --warn: #a8660f;
  --ko: #b3261e;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--prune); text-underline-offset: 3px; }
a:hover { color: var(--prune-dark); }

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

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}

/* ---------- En-tête ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand img {
  width: 172px;
  /* si le SVG est absent, le texte alternatif reste lisible */
  font-weight: 700;
  color: var(--prune);
  font-size: 22px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--prune); }
.site-nav .btn { color: #fff; }

@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  background: var(--prune);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: 6px;
  border: 2px solid var(--prune);
}
.btn:hover { background: var(--prune-dark); border-color: var(--prune-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--prune);
}
.btn-ghost:hover { background: var(--prune-wash); color: var(--prune-dark); }
.site-nav .btn { padding: 8px 16px; font-size: 15px; }

/* ---------- Titres ---------- */

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(27px, 3.2vw, 38px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 650; }

p { margin: 0 0 1em; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }

/* ---------- Sections ---------- */

.band { padding: clamp(56px, 8vw, 96px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band-ground { background: var(--ground); }
.band-ground + .band { border-top: 0; }
.band + .band-ground { border-top: 0; }

.section-intro { max-width: 40em; margin-bottom: 40px; }
.section-intro p { color: var(--muted); }

/* ---------- Hero : le rapport est l'image ---------- */

.hero {
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px);
  background-color: #4a1652;
  background-image:
    repeating-radial-gradient(circle at 78% 46%, rgba(255,255,255,.07) 0 1px, transparent 1px 56px),
    radial-gradient(circle at 78% 46%, rgba(187,206,82,.16), transparent 420px);
  color: #fff;
}
.hero .lead { color: #e7d8ea; }
.hero .reassure { color: #cdb7d1; }
.hero .btn { background: #fff; color: var(--prune); border-color: #fff; }
.hero .btn:hover { background: var(--prune-wash); color: var(--prune-dark); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.hero :focus-visible { outline-color: #fff; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { max-width: 11em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .reassure { margin-top: 18px; font-size: 15px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Le rapport mensuel, dessiné comme un vrai mail reçu */
.report {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  border-color: transparent;
  box-shadow: 0 30px 60px -20px rgba(20, 0, 25, .55);
  transform: rotate(-1deg);
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
}
.report-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  color: var(--muted);
  font-size: 14px;
}
.report-head dt { font-weight: 600; }
.report-head dd { margin: 0; color: var(--ink); }
.report-body { padding: 20px 22px 22px; }
.report-summary {
  font-size: 19px;
  font-weight: 650;
  margin-bottom: 16px;
}
.status {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 4px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.status::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--ok);
}
.status-ko::before { background: var(--ko); }
.status-warn::before { background: var(--warn); }
.status strong { display: block; }
.status-ko strong { color: var(--ko); }
.status-warn strong { color: var(--warn); }
.status-ok strong { color: var(--ok); }
.status p { margin: 0; grid-column: 2; }
.status .todo { margin-top: 4px; font-weight: 600; }
.report-foot {
  padding: 12px 22px;
  background: var(--ground);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Situations ---------- */

.situations {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.situations li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.situations li { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; }
.situations svg { width: 32px; height: 32px; color: var(--prune); margin-top: 2px; }
.situations strong { display: block; font-size: 19px; margin-bottom: 4px; }
.situations span { color: var(--muted); }
@media (max-width: 720px) { .situations { grid-template-columns: 1fr; } }

/* ---------- Étapes (vraie séquence) ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.steps li { counter-increment: step; position: relative; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 20px; left: 56px; right: -24px;
  height: 2px; background: repeating-linear-gradient(90deg, var(--prune) 0 6px, transparent 6px 12px); opacity: .45;
}
@media (max-width: 820px) { .steps li::after { display: none; } }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--prune);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Rapport : explication + démo live ---------- */

.legend { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.legend li { display: grid; grid-template-columns: 14px 1fr; gap: 0 14px; }
.legend li::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; margin-top: 7px;
  background: var(--ok);
}
.legend .l-warn::before { background: var(--warn); }
.legend .l-ko::before { background: var(--ko); }
.legend p { grid-column: 2; margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.live {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
}
.live iframe { width: 100%; height: 420px; border: 0; display: block; }
.live-placeholder {
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
  color: var(--muted);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(123,42,131,.05) 14px 15px);
}
.live-caption { font-size: 14px; color: var(--muted); padding: 10px 16px; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Tarifs ---------- */

.pricing {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 17px;
}
.pricing caption { text-align: left; color: var(--muted); font-size: 15px; padding-bottom: 12px; }
.pricing th, .pricing td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.pricing thead th { font-size: 15px; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); }
.pricing thead th small { display: block; font-weight: 400; }
.pricing tbody th { font-weight: 600; }
.pricing td { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 650; }
.pricing td small { font-size: 14px; font-weight: 400; color: var(--muted); }
.pricing .featured { background: var(--prune-wash); }
.pricing thead .featured { color: #fff; background: var(--prune); border-bottom-color: var(--prune); border-radius: 8px 8px 0 0; }
.pricing thead .featured small { color: #e7d8ea; }
.pricing .tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: #bbce52; color: #2b2730; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.pricing td.featured { color: var(--prune-dark); }
.pricing .na { color: var(--muted); font-weight: 400; font-size: 16px; }
.table-scroll { overflow-x: auto; }

.included {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.included ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.included li { margin-bottom: 4px; }
@media (max-width: 720px) { .included { grid-template-columns: 1fr; } }

/* ---------- Arguments ---------- */

.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.reasons > div { border-top: 3px solid var(--prune); padding-top: 20px; }
.reasons p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .reasons { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Hébergement ---------- */

.place {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.place-card {
  background: var(--paper);
  border-radius: 10px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  position: relative;
}
.place-card .pin { width: 36px; height: 36px; color: var(--prune); margin-bottom: 14px; }
.place-card dl { margin: 0; display: grid; gap: 14px; }
.place-card dt { font-size: 14px; color: var(--muted); }
.place-card dd { margin: 0; font-size: 19px; font-weight: 600; }
@media (max-width: 820px) { .place { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { max-width: 46em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-weight: 600;
  font-size: 18px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 16px;
  font-size: 26px; font-weight: 400; color: var(--prune);
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 20px; color: var(--muted); }

/* ---------- Appel final ---------- */

.closing { background: var(--prune); color: #fff; }
.closing h2 { color: #fff; max-width: 18em; }
.closing p { color: #eadcec; max-width: 34em; }
.closing .btn { background: #fff; color: var(--prune); border-color: #fff; margin-top: 12px; }
.closing .btn:hover { background: var(--prune-wash); color: var(--prune-dark); }

/* ---------- Pages secondaires ---------- */

.page-head { background: var(--ground); padding: 56px 0 40px; }
.page-head h1 { font-size: clamp(32px, 4vw, 46px); }
.prose { max-width: 46em; padding: 48px 0 80px; }
.prose h2 { font-size: 22px; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.todo-flag {
  background: #fff4d6;
  border: 1px dashed var(--warn);
  padding: 0 4px;
  border-radius: 3px;
}

/* ---------- Formulaire ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding: 48px 0 88px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 11px 12px;
  border: 1px solid #b9b1bd;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(123, 42, 131, .25);
  border-color: var(--prune);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .legal { font-size: 14px; color: var(--muted); margin: 0; }
.form button { justify-self: start; cursor: pointer; font-family: inherit; }

.aside-box { border-left: 4px solid var(--prune); padding-left: 24px; }
.aside-box h2 { font-size: 22px; }
.aside-box p { color: var(--muted); }

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--ink);
  color: #cfc9d3;
  font-size: 15px;
  padding: 48px 0 32px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.site-footer h2 { font-size: 15px; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer address { font-style: normal; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #4a4450; font-size: 13px; color: #a39ca8; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
