/*
  Site commercial Digifoxy.
  Écrit à la main, sans framework : une page de vente doit s'afficher instantanément, y
  compris sur un téléphone en 4G faible. Aucune police distante, aucun script tiers.
*/
:root {
  --ink-900: #0b1120;
  --ink-800: #111a2e;
  --ink-700: #1c2740;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --paper:   #ffffff;
  --sand:    #f8fafc;
  --line:    #e2e8f0;
  --brand:   #f97316;
  --brand-d: #ea580c;
  --green:   #16a34a;
  --radius:  14px;
  --wrap:    1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 24px; }
.center { text-align: center; }
.sub { max-width: 680px; margin: 0 auto 48px; color: var(--ink-500); font-size: 1.06rem; text-align: center; }
.muted { color: var(--ink-500); }

/* ---------- Marque ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.brand svg { width: 26px; height: 26px; fill: var(--brand); }
.brand svg .eye { fill: var(--ink-900); }
.brand em { font-style: normal; color: var(--brand); }
.footer .brand svg .eye { fill: var(--ink-900); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: .93rem; color: var(--ink-500); font-weight: 500; }
.nav nav a:hover { color: var(--ink-900); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 14px 26px; border: 0; border-radius: 10px;
  background: var(--brand); color: #fff; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-d); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink-900); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--sand); border-color: var(--ink-300); }
.btn-block { width: 100%; padding: 16px; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(249,115,22,.20), transparent 62%),
    linear-gradient(180deg, var(--ink-900), var(--ink-800));
  color: #fff; padding: 84px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.kicker {
  display: inline-block; margin-bottom: 18px; padding: 6px 13px; border-radius: 999px;
  background: rgba(249,115,22,.14); color: #fdba74;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.hero .hl { color: var(--brand); }
.lede { font-size: 1.14rem; color: var(--ink-300); max-width: 34em; }
.hero .lede strong { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 27px; color: var(--ink-300); font-size: .96rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 15px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}
.request .ticks li { color: var(--ink-500); }
.request .ticks li::before { border-color: var(--green); }

/* ---------- Carte de preuve ---------- */
.proof-card {
  background: #fff; color: var(--ink-900); border-radius: var(--radius);
  box-shadow: 0 26px 60px rgba(0,0,0,.34); overflow: hidden;
}
.proof-head {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; background: var(--sand); border-bottom: 1px solid var(--line);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.proof-url { margin-left: 10px; font-size: .8rem; color: var(--ink-500); }
.proof-body { padding: 18px 20px 22px; }
.proof-line { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: .93rem; }
.proof-line.small { font-size: .85rem; color: var(--ink-500); }
.proof-body hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.ok { color: var(--green); font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; color: var(--ink-500); }

/* ---------- Bandeau ---------- */
.strip { background: var(--sand); border-bottom: 1px solid var(--line); padding: 34px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.strip strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--brand); }
.strip span { font-size: .88rem; color: var(--ink-500); }

/* ---------- Problème ---------- */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pain { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand); }
.pain h3 { color: var(--ink-900); }
.pain p { margin: 0; color: var(--ink-500); font-size: .95rem; }

/* ---------- Fonctionnalités ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: 0 14px 34px rgba(15,23,42,.09); transform: translateY(-2px); border-color: var(--ink-300); }
.card p { margin: 0; color: var(--ink-500); font-size: .95rem; }
.feature h3 { position: relative; padding-left: 16px; }
.feature h3::before {
  content: ""; position: absolute; left: 0; top: .18em;
  width: 4px; height: 1.05em; border-radius: 2px; background: var(--brand);
}

/* ---------- Étapes ---------- */
.steps { background: var(--ink-900); color: #fff; padding: 88px 0; }
.steps h2 { color: #fff; }
.steps-grid { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.steps-grid li { padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.steps-grid h3 { color: #fff; }
.steps-grid p { margin: 0; color: var(--ink-300); font-size: .95rem; }
.num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800;
}

/* ---------- Offres ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.plan { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.plan.featured { border-color: var(--brand); box-shadow: 0 18px 44px rgba(249,115,22,.16); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px; border-radius: 999px; background: var(--brand); color: #fff;
  font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.plan-for { color: var(--ink-500); font-size: .93rem; min-height: 2.9em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 25px; font-size: .94rem; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 13px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
.plan .btn, .plan .btn-ghost { width: 100%; text-align: center; }
.note { margin-top: 30px; color: var(--ink-500); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  cursor: pointer; padding: 17px 34px 17px 0; font-weight: 600; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--brand); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--ink-500); font-size: .96rem; }

/* ---------- Formulaire ---------- */
.request { background: var(--sand); border-top: 1px solid var(--line); padding: 88px 0; }
.request-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
form { background: #fff; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin-bottom: 16px; font-size: .89rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-500); }
input, textarea {
  width: 100%; margin-top: 6px; padding: 12px 13px;
  border: 1.5px solid var(--line); border-radius: 9px; font: inherit; color: inherit; background: #fff;
}
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(249,115,22,.14); }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 12px 0 0; font-size: .82rem; color: var(--ink-500); text-align: center; }
#form-msg { margin: 14px 0 0; padding: 0; font-size: .93rem; text-align: center; font-weight: 600; }
#form-msg.ok  { color: var(--green); }
#form-msg.err { color: #dc2626; }

/* ---------- Pied de page ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 46px 0 26px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer nav a { text-decoration: none; font-size: .92rem; color: var(--ink-500); }
.footer nav a:hover { color: var(--ink-900); }
.footer .muted { margin: 12px 0 0; font-size: .9rem; max-width: 30em; }
.legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-500); }

/* ---------- Adaptatif ---------- */
@media (max-width: 940px) {
  .hero-grid, .request-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards, .cols3, .plans, .steps-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .nav nav { display: none; }
}
@media (max-width: 620px) {
  .section, .steps, .request { padding: 58px 0; }
  .hero { padding: 56px 0 66px; }
  .cards, .cols3, .plans, .steps-grid, .row { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
}

/* ============ DÉMO VIVANTE ============ */
.demo-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: 1.1fr .9fr; } }

.demo-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 1.75rem; box-shadow: 0 12px 40px rgba(15, 23, 42, .08);
}
.demo-card label { display: block; font-weight: 600; margin-bottom: .4rem; }
.demo-card input[type=text],
.demo-card input[type=email] {
  width: 100%; padding: .8rem .9rem; font-size: 1rem;
  border: 1px solid #cbd5e1; border-radius: 10px; margin-bottom: 1rem;
}
.demo-card .btn { display: block; width: 100%; text-align: center; }
.demo-card .btn + .btn { margin-top: .6rem; }
.demo-card .fine { font-size: .85rem; color: #64748b; margin-top: .8rem; }

/* Le piège à robots : hors écran, et JAMAIS display:none — un robot ignore ce qui est
   masqué de cette façon, et le champ ne serait alors jamais rempli, donc jamais déclenché. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.demo-result { margin-top: .5rem; }
.demo-creds {
  display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem;
  margin: 1rem 0 0; padding: .9rem; background: #f8fafc; border-radius: 10px;
}
.demo-creds dt { color: #64748b; font-size: .9rem; }
.demo-creds dd { margin: 0; word-break: break-all; }

/* ============ SÉLECTEUR DE LANGUE ============ */
/* De simples liens, sans JavaScript : chaque langue a sa propre URL, et un moteur de
   recherche la lit sans rien exécuter. C'est la contrainte posée dès l'origine pour ce
   site — voir le commentaire en tête de son Dockerfile. */
.langs { display: flex; gap: .1rem; margin-left: auto; margin-right: .75rem; }
.langs a {
  padding: .25rem .45rem; border-radius: 6px; font-size: .78rem; font-weight: 700;
  letter-spacing: .03em; color: #64748b; text-decoration: none;
}
.langs a:hover { background: #f1f5f9; color: #0f172a; }
.langs a[aria-current="true"] { background: #0f172a; color: #fff; }


/* ============ PRIX DES OFFRES ============ */
.price { margin: 4px 0 2px; font-size: 1rem; color: var(--ink-500); }
.price strong { font-size: 2rem; color: var(--ink-900); letter-spacing: -.02em; }
.price .from { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.price-alt { margin: 0 0 4px; font-size: .9rem; color: var(--brand); font-weight: 600; }
.price-fee { margin: 0 0 20px; font-size: .82rem; color: var(--ink-500); line-height: 1.45; }
.compare { max-width: 640px; margin: 0 auto 34px; font-size: .95rem; color: var(--ink-500); }


/* ============ ASSISTANT DE SUPPORT ============ */
.ia-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .ia-grid { grid-template-columns: 1.05fr .95fr; } }

.ia-card {
  background: #0b1120; border-radius: var(--radius); padding: 22px;
  display: grid; gap: 12px;
}
.ia-msg {
  font-size: .92rem; line-height: 1.5; padding: 11px 14px; border-radius: 12px;
  max-width: 88%;
}
.ia-msg.client { background: #1e293b; color: #e2e8f0; justify-self: start; border-bottom-left-radius: 4px; }
.ia-msg.agent { background: var(--brand); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.ia-note { margin: 6px 0 0; font-size: .78rem; color: #64748b; text-align: center; }

.ia-rules { display: grid; gap: 26px; grid-template-columns: 1fr; margin-top: 46px; }
@media (min-width: 800px) { .ia-rules { grid-template-columns: repeat(3, 1fr); } }
.ia-rules h3 { margin: 0 0 8px; font-size: 1.02rem; }
.ia-rules p { margin: 0; color: var(--ink-500); font-size: .93rem; line-height: 1.6; }


/* ============ SOUSCRIPTION ============ */
.buy {
  max-width: 640px; margin: 30px auto 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.buy fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.buy legend {
  padding: 0; font-weight: 700; font-size: .95rem; margin-bottom: 10px;
}
.opt-pack {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px;
  font-size: .94rem; cursor: pointer;
}
.opt-pack:has(input:checked) { border-color: var(--brand); background: #fff7ed; }
.opt-pack input { margin-top: .25em; }

.buy-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 22px; }
@media (min-width: 640px) { .buy-grid { grid-template-columns: 1fr 1fr; } }
.buy label { display: block; font-weight: 600; font-size: .93rem; }
.buy .opt { font-weight: 400; color: var(--ink-500); font-size: .85rem; }
.buy input[type=text], .buy input[type=email], .buy input[type=tel] {
  width: 100%; margin-top: 6px; padding: .72rem .85rem; font-size: .97rem;
  border: 1px solid #cbd5e1; border-radius: 10px; font-weight: 400;
}
.buy-domains input { margin-bottom: 8px; }
.buy-note {
  font-size: .88rem; color: var(--ink-500); line-height: 1.55; margin: 0 0 12px;
}
.buy .btn { width: 100%; text-align: center; }
.buy .fine { font-size: .84rem; color: var(--ink-500); margin-top: 12px; }

.buy-done {
  max-width: 640px; margin: 30px auto 0; padding: 26px;
  border: 1px solid var(--brand); border-radius: var(--radius); background: #fff7ed;
}
.buy-done p { margin: 0 0 12px; }
.buy-done p:last-child { margin-bottom: 0; }
