/* ── Polices de la marque, hébergées sur le site ─────────────────────
   Nunito (titres) et Atkinson Hyperlegible (texte), licence SIL OFL (voir /fonts).
   font-display: swap : le texte s'affiche tout de suite avec la police du téléphone. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/nunito-700-v5.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/nunito-800-v5.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/nunito-900-v5.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-400-v5.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-700-v5.woff2") format("woff2"); }

[hidden] { display: none !important; }
body.checking .cartbar { display: none; }
:root {
  /* Couleurs relevées sur le logo AfriqueHosting */
  --navy: #074375;        /* bleu marine du logo : texte de marque, bulles client */
  --teal: #1A706E;        /* sarcelle, transition du dégradé */
  --green: #1EA857;       /* vert du logo (décor, dégradé) */
  --green-strong: #12803F;/* vert assombri pour les boutons : texte blanc lisible (contraste AA) */
  --brand-gradient: linear-gradient(90deg, #1EA857 0%, #1A706E 30%, #074375 50%, #1A706E 70%, #1EA857 100%);
  --ink: #0E2235;         /* texte */
  --navy-deep: #062F52;   /* barre panier */
  --muted: #55667A;
  --paper: #F5F8F8;
  --surface: #FFFFFF;
  --line: #D6E0E2;
  --free: #12803F;
  --taken: #B3392A;
  --unsure: #946200;
  --radius-s: 10px;
  --radius-l: 18px;
  --font-display: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #7FB6E6; --teal: #4FB3AE; --ink: #E8F0F2; --muted: #9FB0BC;
    --paper: #0B1A26; --surface: #122636; --line: #23394A; --navy-deep: #0F3D63;
    --free: #4CC88A; --taken: #F07A69; --unsure: #E2B341;
    --brand-gradient: linear-gradient(90deg, #3DCB74 0%, #3AA9A4 30%, #7FB6E6 50%, #3AA9A4 70%, #3DCB74 100%);
  }
  .brand { background: #fff; padding: 6px 10px; border-radius: 8px; } /* le logo marine reste lisible */
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.5 var(--font-text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
  font-size-adjust: from-font; /* la police de secours garde la même taille visuelle : pas de saut au chargement */
}
/* Texte réservé aux lecteurs d'écran */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ── en-tête : logo + filet au dégradé du logo ─────────── */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px max(16px, calc((100% - 720px) / 2 + 16px)); background: var(--paper); /* opaque : le texte qui défile ne transparaît pas sous le logo */
  border-bottom: 3px solid transparent; border-image: var(--brand-gradient) 1;
}
.brand { display: block; line-height: 0; flex: none; }
.brand img { height: 22px; width: auto; display: block; }
.cart-pill {
  white-space: nowrap; flex: none;
  border: 1.5px solid var(--ink); background: transparent; border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: 0.9375rem; cursor: pointer;
}

/* ── accueil ───────────────────────────────────────────── */
main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 8px 16px 24px; }
.welcome { padding: 8vh 0 24px; }
/* L'élément fort : le titre reprend le dégradé du logo */
.welcome h1 {
  font: 900 clamp(2.5rem, 0.5rem + 7.37vw, 4.125rem)/1.02 var(--font-display);
  letter-spacing: -0.03em; margin: 0 0 18px; max-width: 12ch;
  color: var(--navy);
  /* vert → marine, comme « AFRIQUE H » dans le logo */
  background: linear-gradient(100deg, var(--green) 0%, var(--teal) 45%, var(--navy) 85%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Mode « contrastes élevés » (Windows) : le dégradé est retiré, le titre doit rester visible */
@media (forced-colors: active) {
  .welcome h1 { background: none; -webkit-text-fill-color: currentColor; }
}
.lead { color: var(--muted); max-width: 52ch; margin: 0 0 22px; }
.ask { display: block; font: 800 clamp(1.375rem, 0.5rem + 3.47vw, 1.75rem)/1.2 var(--font-display); color: var(--ink); margin: 0 0 12px; letter-spacing: -0.01em; }
.name-field {
  display: flex; gap: 8px; padding: 6px; background: var(--surface);
  border: 2px solid var(--navy); border-radius: var(--radius-l);
}
.name-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 20%, transparent); }
.name-field input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: 700 clamp(1.1875rem, 0.5rem + 2.87vw, 1.375rem) var(--font-display); padding: 8px 10px; color: var(--ink);
}
.name-field input::placeholder { font-weight: 600; color: var(--muted); }
.name-field .buy { flex: none; }
.name-form .ask-hint { margin-top: 10px; }
/* Tant que le client n'a pas saisi son nom, un seul champ à l'écran */
body.fresh .composer, body.fresh .fineprint { display: none; }
@media (max-width: 30em) {
  .name-field { flex-direction: column; }
  .name-field input { padding: 10px; }
  .name-field .buy { width: 100%; }
}
.ask-hint { color: var(--muted); font-size: 0.9375rem; max-width: 52ch; margin: 0 0 18px; }
.welcome.started { padding: 20px 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.welcome.started h1 { font-size: clamp(1.75rem, 0.5rem + 4.87vw, 2.25rem); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-s);
  padding: 9px 13px; font-size: 0.9375rem; cursor: pointer; text-align: left;
}
.chip:hover { border-color: var(--navy); }

/* ── fil de conversation ───────────────────────────────── */
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.msg { max-width: 100%; }
.msg.user { align-self: flex-end; max-width: 85%; }
.msg.user .bubble {
  background: var(--navy); color: #fff; padding: 10px 15px;
  border-radius: var(--radius-l) var(--radius-l) 4px var(--radius-l); white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg.bot .text { max-width: 62ch; overflow-wrap: anywhere; }
.msg.bot .text p { margin: 0 0 0.6em; }
.msg.bot .text p:last-child { margin-bottom: 0; }
.msg.bot .text ul { margin: 0.3em 0 0.6em; padding-left: 1.2em; }
.msg.error .text { color: var(--taken); }
.typing { display: inline-flex; gap: 5px; padding: 8px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }

/* ── résultats de domaines : le nom est l'objet principal ─ */
.domains { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
/* Téléphone : le nom prend toute la largeur, état + prix + bouton en dessous */
.dom {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "meta action";
  align-items: center; gap: 6px 12px; padding: 14px 2px; border-bottom: 1px solid var(--line);
}
.dom-name { grid-area: name; font: 600 clamp(1.125rem, 0.5rem + 2.87vw, 1.625rem)/1.2 var(--font-display); letter-spacing: -0.02em; overflow-wrap: break-word; min-width: 0; }
.dom-name .tld { color: var(--navy); }
.dom.taken .dom-name { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.dom-meta { grid-area: meta; font-size: 0.9375rem; color: var(--muted); display: flex; gap: 2px 10px; flex-wrap: wrap; align-items: baseline; min-width: 0; }
.dom-meta .renew { flex-basis: 100%; font-size: 0.875rem; }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: currentColor; vertical-align: 1px; }
.status.available { color: var(--free); font-weight: 700; }
.status.taken { color: var(--taken); }
.status.unknown { color: var(--unsure); }
.price { color: var(--ink); font-weight: 700; }
.dom-action { grid-area: action; justify-self: end; }
/* Écrans plus larges : bouton aligné à droite du nom et des infos */
@media (min-width: 37.5em) {
  .dom { grid-template-areas: "name action" "meta action"; }
  .dom-meta .renew { flex-basis: auto; }
}
.add {
  background: var(--green-strong); color: #fff; border: 0; border-radius: var(--radius-s);
  padding: 10px 16px; font-weight: 700; cursor: pointer; min-height: 44px;
}
.add.added { background: transparent; color: var(--free); border: 1.5px solid var(--free); }
.alt { background: none; border: 0; color: var(--navy); text-decoration: underline; cursor: pointer; padding: 10px 0; font-size: 0.9375rem; min-height: 44px; }

/* tarifs */
.prices { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 1rem; }
.prices th { text-align: left; font-weight: 400; color: var(--muted); font-size: 0.875rem; padding: 4px 6px; }
.prices td { padding: 8px 6px; border-top: 1px solid var(--line); }
.prices td:first-child { font: 600 1.1875rem var(--font-display); }
.prices td.num, .prices th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── formulaire de commande ────────────────────────────── */
.checkout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px 18px; }
.checkout h2 { font: 700 1.5rem/1.2 var(--font-display); margin: 0 0 4px; letter-spacing: -0.02em; }
.hint { color: var(--muted); font-size: 0.9375rem; margin: 0 0 16px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid .wide { grid-column: 1 / -1; }
.checkout label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9375rem; font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
.checkout input:not([type=checkbox]), .checkout select {
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--paper);
  padding: 11px 12px; font-weight: 400; font-size: 1rem; min-height: 46px; width: 100%;
}
.checkout input:focus, .checkout select:focus { border-color: var(--navy); outline: none; }
.checkout .terms { flex-direction: row; align-items: center; gap: 10px; margin: 16px 0 8px; font-weight: 400; }
.terms input { width: 20px; height: 20px; accent-color: var(--navy); }
.terms a { color: var(--navy); }
.error { color: var(--taken); font-size: 0.9375rem; margin: 6px 0; }
.error:empty { display: none; } /* zone d'erreur présente mais invisible tant qu'elle est vide */
.buy {
  background: var(--green-strong); color: #fff; border: 0; border-radius: var(--radius-s);
  padding: 12px 20px; font: 700 1.0625rem var(--font-text); cursor: pointer; min-height: 48px;
}
.buy:disabled { opacity: .55; cursor: wait; }
.wide-btn { width: 100%; margin-top: 8px; }

/* ── suivi de commande ─────────────────────────────────── */
.order { border: 1.5px solid var(--ink); border-radius: var(--radius-l); padding: 18px; margin-top: 4px; }
.order h2 { font: 700 1.3125rem/1.25 var(--font-display); margin: 0 0 4px; }
.order .ref { color: var(--muted); font-size: 0.875rem; margin: 0 0 12px; }
.order ul { list-style: none; margin: 0; padding: 0; }
.order li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.order li b { font-family: var(--font-display); font-weight: 600; overflow-wrap: anywhere; }
.order.ok { border-color: var(--free); }
.order.ko { border-color: var(--taken); }

/* ── barre basse : panier + saisie ─────────────────────── */
/* Barre du bas : fond plein sur toute la largeur et séparation nette,
   pour que le texte qui défile derrière ne touche jamais le panier ni le champ */
.dock {
  position: sticky; bottom: 0; z-index: 5; width: 100%;
  padding: 10px max(16px, calc((100% - 720px) / 2 + 16px)) calc(8px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 20px -10px rgb(14 34 53 / 0.18);
}
.cartbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--navy-deep); color: #fff; border-radius: var(--radius-l); padding: 8px 8px 8px 16px; margin-bottom: 8px;
}
.cartbar-info { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.cartbar-info strong { white-space: nowrap; }
.cartbar .buy { flex: none; }
.cartbar-info span { font-size: 0.875rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer {
  display: flex; align-items: flex-end; gap: 8px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius-l); padding: 6px 6px 6px 14px;
}
.composer:focus-within { border-color: var(--navy); }
.composer textarea {
  flex: 1; border: 0; background: transparent; resize: none; padding: 9px 0; font-size: 1.0625rem;
  max-height: 140px; outline: none;
  field-sizing: content; /* le champ grandit avec le texte, sans script (navigateurs récents) */
}
.composer button {
  flex: none; width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; display: grid; place-items: center;
}
.composer button:disabled { opacity: .4; cursor: default; }
.fineprint { text-align: center; color: var(--muted); font-size: 0.8125rem; margin: 6px 0 0; }
.legal { text-align: center; font-size: 0.75rem; margin: 4px 0 0; color: var(--muted); }
.legal a { color: inherit; }
/* Liens légaux : en bas de l'accueil avant la conversation, puis dans la barre du bas */
.legal-home { display: none; margin-top: 32px; }
body.fresh .legal-home { display: block; }
body.fresh .dock .legal { display: none; }
.privacy-note { font-size: 0.8125rem; color: var(--muted); margin: 6px 0 0; }

@media (max-width: 26.25em) {
  .grid { grid-template-columns: 1fr; }
  .welcome { padding-top: 4vh; }
}
@media (prefers-reduced-motion: reduce) {
  .typing i { animation: none; opacity: .6; }
  html { scroll-behavior: auto; }
}

/* Mode sombre : bulles et bouton d'envoi en marine foncé pour garder le texte blanc lisible */
@media (prefers-color-scheme: dark) {
  .msg.user .bubble, .composer button { background: #0A5594; color: #fff; }
  .welcome h1 { background: linear-gradient(100deg, #3DCB74 0%, #3AA9A4 45%, #7FB6E6 85%); -webkit-background-clip: text; background-clip: text; }
}

/* Étape « d'autres idées ? » */
.ideas-label { margin: 0 0 8px; color: var(--muted); font-size: 0.9375rem; }
.ideas { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ideas li {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 8px 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--green) 12%, var(--surface)); border: 1.5px solid var(--green);
  font: 800 1.125rem/1.2 var(--font-display); color: var(--ink);
}
.ideas li:not(:has(.rm)) { padding-right: 14px; }
.ideas .rm { border: 0; background: none; font-size: 1.375rem; line-height: 1; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--muted); }
.ideas .rm:hover { background: var(--line); color: var(--ink); }
.choice { border: 0; margin: 0 0 12px; padding: 0; }
.choice legend { padding: 0; }
.opt-row {
  display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 14px 16px; min-height: 52px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-s); cursor: pointer; font-size: 1.0625rem;
}
.opt-row:has(input:checked) { border-color: var(--green); background: color-mix(in srgb, var(--green) 8%, var(--surface)); font-weight: 700; }
.opt-row input { width: 20px; height: 20px; accent-color: var(--green-strong); flex: none; margin: 0; }
.add-idea { margin: 4px 0 8px; }
.ghost {
  flex: none; background: transparent; color: var(--navy); border: 1.5px solid var(--navy);
  border-radius: var(--radius-s); padding: 10px 18px; font: 700 1.0625rem var(--font-text); cursor: pointer; min-height: 48px;
}
.ghost:disabled, .name-field input:disabled { opacity: .5; cursor: not-allowed; }
.link-btn { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--navy); text-decoration: underline; font-size: 0.9375rem; cursor: pointer; padding: 8px; }
.buy:disabled { cursor: not-allowed; }
@media (max-width: 30em) { .ghost { width: 100%; } }

/* Résultats regroupés par idée */
.idea-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 2px 6px; border-bottom: 2px solid var(--navy); }
.idea-head h3 { margin: 0; font: 900 1.375rem/1.2 var(--font-display); color: var(--navy); overflow-wrap: anywhere; }
.idea-head span { color: var(--muted); font-size: 0.875rem; white-space: nowrap; }
.domains:has(.idea-head) { border-top: 0; }

/* ── Petits écrans ──────────────────────────────────────── */
@media (max-width: 22.4375em) {
  .brand img { height: 18px; }
  .cart-pill { padding: 5px 10px; font-size: 0.875rem; }
  main, .dock { padding-left: 12px; padding-right: 12px; }
  .top { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 23.75em) {
  .cartbar-info span { display: none; } /* on garde le total, la liste est dans le panier */
}
/* Écrans peu hauts (petits téléphones, téléphone à l'horizontale) : barre du bas plus compacte */
@media (max-height: 43.75em) {
  .fineprint { display: none; }
  .cartbar { padding: 6px 6px 6px 14px; margin-bottom: 6px; }
  .cartbar .buy { min-height: 44px; padding: 8px 16px; }
  .composer textarea { padding: 7px 0; }
  .welcome { padding-top: 3vh; }
}

/* ── WhatsApp ───────────────────────────────────────────── */
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.wa-help {
  display: inline-flex; align-items: center; gap: 6px; color: #128C4A; text-decoration: none; font-weight: 700; font-size: 0.9375rem;
  border: 1.5px solid #25D366; border-radius: 999px; padding: 5px 12px 5px 8px; white-space: nowrap; min-height: 36px;
}
.wa-help:hover { background: color-mix(in srgb, #25D366 12%, transparent); }
@media (max-width: 30em) { .wa-help-label { display: none; } .wa-help { padding: 6px; } } /* icône seule sur téléphone */
@media (prefers-color-scheme: dark) { .wa-help { color: #4CDB8A; } }

.channel { border: 0; margin: 18px 0 4px; padding: 0; }
.channel legend { font-weight: 700; font-size: 0.9375rem; padding: 0; margin-bottom: 2px; }
.channel .opt-row { font-weight: 400; flex-direction: row; }
.channel .opt-row:has(input:checked) { font-weight: 700; }
.reco { display: inline-block; margin-left: 6px; font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--green-strong); border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }
.channel .wa-field { margin-top: 10px; }

.order .notice { margin: 12px 0 0; color: var(--muted); font-size: 0.9375rem; }
.wa-btn, .wa-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; text-decoration: none; font-weight: 700; }
.wa-btn { background: #25D366; color: #0B3B1F; border-radius: var(--radius-s); padding: 12px 18px; min-height: 48px; width: 100%; justify-content: center; }
.wa-link { color: #128C4A; }
@media (prefers-color-scheme: dark) { .wa-link { color: #4CDB8A; } }

/* Correctifs largeur : le logo peut rétrécir, les options du formulaire passent à la ligne */
.brand { min-width: 0; flex: 0 1 auto; }
.brand img { max-width: 100%; height: auto; max-height: 22px; }
.opt-row > span { min-width: 0; flex: 1; }
@media (max-width: 22.4375em) {
  .top-actions { gap: 6px; }
  .brand img { max-height: 18px; }
  .wa-help { min-height: 34px; padding: 5px; }
}
/* Les boutons ronds de choix ne prennent pas le style des champs texte */
.checkout .opt-row input[type=radio] {
  width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; border: 0; background: none; flex: none; accent-color: var(--green-strong);
}

/* Accueil : pas de barre du bas vide tant que rien n'y est affiché */
body.fresh .dock:not(:has(.cartbar:not([hidden]))) { display: none; }

.more-ext { padding: 6px 2px 0; }
/* Nom d'idée long : le décompte passe dessous au lieu de couper le nom */
.idea-head { flex-wrap: wrap; }
.idea-head h3 { overflow-wrap: break-word; min-width: 0; }

/* Lien « Modifier mon nom » : sous la bulle du client et sous les résultats */
.edit-name {
  display: block; margin: 2px 0 0 auto; padding: 8px 0; min-height: 36px; background: none; border: 0;
  color: var(--navy); text-decoration: underline; font-size: 0.9375rem; cursor: pointer;
}
.msg.bot .edit-name { margin: 10px 0 0; }

/* ── Logo avec slogan + nouveau message d'accueil ───────── */
.brand img { height: auto; max-height: 40px; max-width: 100%; }
@media (max-width: 37.5em) { .brand img { max-height: 32px; } }
@media (max-width: 22.4375em) { .brand img { max-height: 27px; } }
.welcome h1 { font-size: clamp(1.875rem, 0.5rem + 5.47vw, 3.25rem); line-height: 1.06; max-width: 17ch; margin-bottom: 8px; }
.tagline { font: 800 clamp(1.125rem, 0.5rem + 2.47vw, 1.5rem)/1.25 var(--font-display); color: var(--navy); margin: 0 0 18px; max-width: 30ch; }
.welcome.started h1 { font-size: clamp(1.375rem, 0.5rem + 3.47vw, 1.75rem); margin-bottom: 4px; }
.welcome.started .tagline { font-size: 1rem; margin-bottom: 10px; }

/* « Nouvelle recherche » : visible une fois la conversation commencée */
.new-search { display: none; }
.welcome.started .new-search {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; margin-top: 2px;
  background: transparent; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 999px;
  font: 700 0.9375rem var(--font-text); cursor: pointer;
}
.welcome.started .new-search:hover { background: color-mix(in srgb, var(--navy) 8%, transparent); }
.welcome.started .lead { display: none; } /* place gagnée pour la conversation */

/* Titre d'accueil sur deux lignes voulues : « Bonjour, et bienvenue » / « sur AFRIQUE HOSTING, ». Si le texte est très agrandi, text-wrap: balance coupe en lignes égales (jamais « sur » seul) */
.welcome h1 { max-width: none; font-size: clamp(1.625rem, 0.5rem + 4.47vw, 3.125rem); text-wrap: balance; }
.welcome h1 span { display: block; }
.welcome.started h1 { font-size: clamp(1.3125rem, 0.5rem + 3.07vw, 1.75rem); }
.tagline { max-width: none; }

/* ── Bonnes pratiques web modernes ──────────────────────── */
/* Champ mal rempli : signalé seulement après la saisie (validation native du navigateur) */
.checkout input:user-invalid, .checkout select:user-invalid { border-color: var(--taken); }
.checkout input[type=checkbox]:user-invalid { outline: 2px solid var(--taken); outline-offset: 2px; }
/* Fondu court entre les étapes, là où le navigateur le propose */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
/* Page de paiement simulé (tests uniquement) */
.sim { max-width: 460px; padding-top: 32px; }
.sim-warning { background: color-mix(in srgb, #F2B705 24%, var(--surface)); border-left: 4px solid #B88A00; padding: 12px 14px; border-radius: 6px; margin: 0 0 16px; }
.sim form + form { margin-top: 10px; }
.sim .ghost { width: 100%; }
/* Page « Conditions de vente » (la politique de sécurité du site bloque les styles écrits dans le HTML) */
.page h1 { font-family: var(--font-display); }
.page a { color: var(--navy); }
.page { line-height: 1.55; }
.page h2 { font-size: 1.125rem; margin: 28px 0 8px; }
.page table { border-collapse: collapse; width: 100%; margin: 8px 0 12px; font-size: 0.9375rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.page th[scope="row"] { font-weight: 600; width: 40%; }
@media (max-width: 560px) { .page table { display: block; overflow-x: auto; } }

/* ── Hébergement en option (proposé après l'ajout d'un domaine) ── */
.hosting { margin-top: 12px; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.plan {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-l); padding: 14px 14px 12px;
}
.plan.reco-plan { border-color: var(--green-strong); }
.plan.chosen { border-color: var(--free); box-shadow: 0 0 0 3px color-mix(in srgb, var(--free) 18%, transparent); }
.plan h3 { margin: 0; font: 800 1.125rem/1.2 var(--font-display); color: var(--ink); }
.plan-price { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.plan-price strong { font: 800 1.375rem/1.1 var(--font-display); color: var(--navy); }
.plan-for { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.plan details { font-size: 0.9375rem; }
.plan summary { cursor: pointer; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
.plan details ul { margin: 0 0 6px; padding-left: 1.1em; color: var(--ink); }
.plan details li { margin: 2px 0; }
.plan .add { margin-top: auto; width: 100%; }
.plan .add:disabled { opacity: 0.55; cursor: not-allowed; }
.no-hosting { display: block; margin-top: 4px; }
.muted-note { color: var(--muted); font-size: 0.9375rem; margin: 6px 0 0; }
/* Étiquette « Le plus populaire » posée sur le bord de la carte : les prix restent alignés */
.plan { position: relative; }
.plan .reco { position: absolute; top: -0.7em; left: 12px; margin: 0; }
.hosting { padding-top: 10px; }
/* Choix de l'opérateur Mobile Money (Jèko) */
.paymethods { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }

/* Conditions particulières d'une extension (durée imposée, test DNS, contact local) */
.dom-meta .conds { flex-basis: 100%; margin: 4px 0 0; padding: 0 0 0 1.1em; font-size: 0.8125rem; color: var(--muted); }
.checkout .conds-box { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); font-size: 0.9375rem; }
.checkout .conds-box p { margin: 0 0 6px; font-weight: 700; }
.checkout .conds-box ul { margin: 0; padding-left: 1.1em; }

/* ── Entrée par une extension (/domaine/bj) : prix et conditions sous le champ ── */
.ext-info { font-size: 0.875rem; color: var(--muted); margin: 10px 0 0; }
.ext-info strong { color: var(--ink); }

/* Mode démo (sans clé IA) : bandeau visible en haut de page */
.demo-banner { margin: 0; padding: 8px 16px; text-align: center; font-size: 0.875rem; font-weight: 700; background: #f9eeda; color: #6b4a00; border-bottom: 1px solid #e8d3a8; }
