/* Microsite : accueil, tarifs, FAQ, à propos, pages légales. L'outil garde style.css. */
:root {
  --bg: #f6f4ef;
  --paper: #fffdf8;
  --card: #ffffff;
  --ink: #1b1f2a;
  --muted: #5f6573;
  --line: #e4e0d6;
  --accent: #1f4fd8;
  --accent-ink: #ffffff;
  /* Boutons d'action : bleu ciel un peu foncé pour que le texte blanc reste lisible (3,4:1). */
  --cta: #3D8FD9;
  --cta-ink: #ffffff;
  --gold: #e0a81e;
  --gold-soft: #fff1c7;
  --good: #1f8a5b;
  --bad: #c2412d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); font-size: 17px; line-height: 1.6; }
a { color: var(--accent); }
img, svg { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* En-tête */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 60px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
/* Logo : un O dont la flèche pointe vers le bas, « O bas ». */
.logo { width: 24px; height: 24px; flex: none; color: var(--ink); }
.top nav { display: flex; gap: .2rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; padding: .4rem .7rem; border-radius: 8px; font-size: .95rem; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); background: var(--bg); }
.btn { display: inline-block; padding: .65rem 1.15rem; border-radius: 10px; font-weight: 650; text-decoration: none; border: 1px solid transparent; font-size: 1rem; }
.btn.primary { background: var(--cta); color: var(--cta-ink); font-weight: 700; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.top .login { padding: .4rem .9rem; font-size: .95rem; }

/* Typo */
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 3.3rem); margin: 0 0 1rem; font-weight: 700; }
h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.chapo { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.surtitre { display: inline-block; font-size: .85rem; font-weight: 700; color: #8a5a00; background: var(--gold-soft); padding: .2rem .65rem; border-radius: 999px; margin-bottom: 1rem; }
mark { background: linear-gradient(transparent 55%, var(--gold-soft) 55%); color: inherit; padding: 0 .1em; }

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.page-head { padding: 56px 0 24px; }
.page-head + section { border-top: 0; padding-top: 8px; }

/* Accueil */
.ouverture { padding: 72px 0 56px; }
.ouverture .boutons { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.6rem 0 .8rem; }
.demo { margin-top: 44px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -24px rgba(27, 31, 42, .35); overflow: hidden; }
.demo-bar { display: flex; gap: .5rem; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.demo-bar b { color: var(--ink); }
.demo-bar .etat { margin-left: auto; }
.pill { border: 1px solid var(--line); border-radius: 8px; padding: .2rem .6rem; background: var(--bg); }
.demo-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .55rem .9rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fbfaf7; }
td.r, th.r { text-align: right; }
td.c, th.c { text-align: center; }
.kd { display: inline-block; min-width: 2.1em; text-align: center; padding: .05rem .35rem; border-radius: 6px; font-weight: 700; font-size: .82rem; color: #fff; }
.kd.e { background: var(--good); } .kd.m { background: #c98a12; } .kd.h { background: var(--bad); }
.tag { display: inline-block; padding: .05rem .5rem; border-radius: 6px; font-size: .8rem; background: #eef1f8; color: #34405c; }
.aio { display: inline-block; padding: .05rem .45rem; border-radius: 6px; font-size: .78rem; font-weight: 600; background: #e7efff; color: #2747a8; }
.demo-note { padding: .6rem 1rem; font-size: .82rem; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.icon { width: 38px; height: 38px; border-radius: 10px; background: var(--gold-soft); display: grid; place-items: center; font-size: 1.15rem; margin-bottom: .8rem; }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 24px; }
.why .n { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; font-weight: 700; }

.nope { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.nope li { background: var(--paper); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; }
.nope b { display: block; }
.nope span { color: var(--muted); font-size: .95rem; }

.band { background: var(--ink); color: #f3f1ea; border-radius: 18px; padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0 0 .3rem; }
.band p { margin: 0; color: #c9ccd6; }
.band .btn.primary { background: var(--gold); color: var(--ink); }

/* Tarifs */
.plan { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 32px; max-width: 520px; }
.price { font-family: var(--serif); font-size: 3rem; font-weight: 700; line-height: 1; margin: .6rem 0 .2rem; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.checks li { padding: .35rem 0 .35rem 1.8rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .72rem; width: 14px; height: 8px; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg); }

/* FAQ et textes */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style: none; display: flex; align-items: baseline; gap: .7rem; }
summary::-webkit-details-marker { display: none; }
/* Chevron à l'intérieur de la carte, qui pivote à l'ouverture. */
summary::before { content: ""; flex: none; width: .45em; height: .45em; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-.1em) rotate(-45deg); transition: transform .15s; }
details[open] summary::before { transform: translateY(-.2em) rotate(45deg); }
details[open] summary { border-bottom: 1px solid var(--line); }
details > div { padding: 12px 0 16px; color: var(--muted); }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose p, .prose li { color: #343a48; }
.todo { background: #fff4d6; border: 1px solid #ecd9a0; border-radius: 6px; padding: 0 .3rem; font-size: .92em; }

.appel { margin-top: 2rem; }

/* Formulaire d'invitation */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .btn { justify-self: start; cursor: pointer; }
.form .btn:disabled { opacity: .6; cursor: wait; }
.form-error { color: var(--bad); margin: 0; min-height: 1.2em; }
.form p.small { margin: 0; }
.deja-code { margin-top: 1.4rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Pied de page */
footer { border-top: 1px solid var(--line); background: var(--paper); padding: 36px 0; margin-top: 64px; font-size: .92rem; color: var(--muted); }
footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  /* Ligne 1 : logo et bouton ; ligne 2 : tous les liens, défilables si l'écran est trop étroit. */
  .top .wrap { flex-wrap: wrap; gap: .4rem; padding-top: .5rem; padding-bottom: .3rem; }
  .top .login { margin-left: auto; }
  .top nav { order: 3; margin: 0 -8px; width: calc(100% + 16px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .top nav a { padding: .4rem .55rem; white-space: nowrap; font-size: .92rem; }
  section { padding: 44px 0; }
  .ouverture { padding: 44px 0 36px; }
  .ouverture h1 { font-size: 2rem; }
  .ouverture h1 br { display: none; }
  .band { padding: 28px; }
}
