/* Tunnel d'achat mobile « Mon site internet » (18/10/2026).
   Page /mon-site/, barre d'action fixe sur téléphone, carte du hub. */
:root{
  --tn-fond:#0b1020; --tn-carte:rgba(255,255,255,.045); --tn-bord:rgba(148,163,255,.18);
  --tn-texte:#e8ecf8; --tn-doux:#a3acc6; --tn-bleu:#6d8bff; --tn-violet:#8b5cf6; --tn-wa:#25d366;
}

/* ---------- page /mon-site/ ---------- */
.tn{ max-width:1080px; margin:0 auto; padding:24px 16px 120px; color:var(--tn-texte); }
.tn h1{ font-size:clamp(30px,7.4vw,56px); line-height:1.08; letter-spacing:-.02em; margin:10px 0 16px; }
.tn h1 span{ background:linear-gradient(90deg,var(--tn-bleu),var(--tn-violet)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.tn h2{ font-size:clamp(24px,5.6vw,38px); line-height:1.15; letter-spacing:-.015em; margin:0 0 18px; }
.tn-hero{ text-align:center; padding:28px 0 8px; }
.tn-sur{ font:600 12px/1 ui-monospace,monospace; letter-spacing:.22em; text-transform:uppercase; color:var(--tn-bleu); }
.tn-chapo{ font-size:clamp(17px,4.4vw,20px); line-height:1.55; color:var(--tn-doux); max-width:640px; margin:0 auto 26px; }
.tn-actions{ display:flex; flex-direction:column; gap:12px; align-items:center; }
.tn-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:54px; padding:0 26px;
  border-radius:16px; border:0; font-family:inherit; font-weight:700; font-size:17px; line-height:1.2; text-decoration:none; cursor:pointer;
  width:100%; max-width:420px; transition:transform .15s ease, box-shadow .15s ease; }
.tn-btn:active{ transform:scale(.98); }
.tn-btn-principal{ color:#fff; background:linear-gradient(135deg,var(--tn-bleu),var(--tn-violet)); box-shadow:0 14px 34px -12px rgba(109,139,255,.7); }
.tn-btn-wa{ color:#fff; background:#128c4a; border:1px solid var(--tn-wa); }
.tn-rassure{ list-style:none; padding:0; margin:26px auto 0; display:grid; gap:10px; max-width:420px; text-align:left; }
.tn-rassure li{ padding:12px 14px 12px 42px; position:relative; border-radius:14px; background:var(--tn-carte); border:1px solid var(--tn-bord); color:var(--tn-doux); }
.tn-rassure li::before{ content:"✓"; position:absolute; left:15px; top:11px; color:var(--tn-wa); font-weight:800; }
.tn-rassure b{ color:var(--tn-texte); }

.tn-bloc{ padding:56px 0 0; scroll-margin-top:72px; }
.tn-sous,.tn-note{ color:var(--tn-doux); margin:-6px 0 18px; }
.tn-note{ margin:16px 0 0; font-size:14px; text-align:center; }

.tn-formules{ display:grid; gap:16px; }
.tn-formule{ position:relative; padding:24px 20px; border-radius:22px; background:var(--tn-carte); border:1px solid var(--tn-bord); }
.tn-formule-mise{ border-color:rgba(139,92,246,.6); background:linear-gradient(160deg,rgba(109,139,255,.12),rgba(139,92,246,.08)); }
.tn-badge{ position:absolute; top:-12px; right:18px; margin:0; padding:5px 12px; border-radius:999px; font-size:12px; font-weight:700; color:#fff; background:var(--tn-violet); }
.tn-formule-nom{ margin:0; font-weight:700; font-size:20px; }
.tn-prix{ margin:6px 0 12px; font-size:34px; font-weight:800; letter-spacing:-.02em; }
.tn-prix small{ display:block; font-size:13px; font-weight:500; color:var(--tn-doux); letter-spacing:0; }
.tn-formule > p:not([class]){ color:var(--tn-doux); line-height:1.5; margin:0 0 12px; }
.tn-formule ul{ margin:0 0 20px; padding-left:20px; color:var(--tn-doux); line-height:1.8; }

.tn-metiers{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.tn-metiers a{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:14px 6px; border-radius:16px;
  background:var(--tn-carte); border:1px solid var(--tn-bord); color:var(--tn-texte); text-decoration:none; font-size:14px; font-weight:600; }
.tn-metiers span{ font-size:24px; }

.tn-etapes{ list-style:none; counter-reset:e; padding:0; margin:0; display:grid; gap:12px; }
.tn-etapes li{ counter-increment:e; position:relative; padding:14px 16px 14px 58px; border-radius:16px; background:var(--tn-carte); border:1px solid var(--tn-bord); color:var(--tn-doux); line-height:1.5; }
.tn-etapes li::before{ content:counter(e); position:absolute; left:14px; top:50%; transform:translateY(-50%); width:32px; height:32px; border-radius:50%;
  display:grid; place-items:center; font-weight:800; color:#fff; background:linear-gradient(135deg,var(--tn-bleu),var(--tn-violet)); }
.tn-etapes b{ color:var(--tn-texte); }

/* formulaire en 3 étapes */
.tn-form{ padding:22px 18px; border-radius:22px; background:var(--tn-carte); border:1px solid var(--tn-bord); }
.tn-progression{ display:flex; gap:6px; margin-bottom:18px; }
.tn-progression i{ flex:1; height:5px; border-radius:9px; background:rgba(255,255,255,.1); transition:background .3s; }
.tn-progression i.fait{ background:linear-gradient(90deg,var(--tn-bleu),var(--tn-violet)); }
.tn-etape{ border:0; margin:0; padding:0; min-width:0; }
.tn-etape legend{ font-size:20px; font-weight:700; margin-bottom:14px; padding:0; }
.tn-choix{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.tn-choix-large{ grid-template-columns:1fr; }
.tn-choix button{ min-height:52px; padding:10px 12px; border-radius:14px; border:1px solid var(--tn-bord); background:rgba(255,255,255,.06);
  color:var(--tn-texte); font-family:inherit; font-weight:600; font-size:16px; line-height:1.25; cursor:pointer; text-align:center; }
.tn-choix-large button{ text-align:left; padding:14px 16px; }
.tn-choix button small{ display:block; font-weight:400; font-size:13px; color:var(--tn-doux); margin-top:3px; }
.tn-choix button[aria-pressed="true"]{ border-color:var(--tn-bleu); background:rgba(109,139,255,.2); }
.tn-form label{ display:block; margin:0 0 14px; font-weight:600; font-size:15px; }
.tn-form input{ display:block; width:100%; box-sizing:border-box; margin-top:6px; min-height:52px; padding:0 14px; border-radius:12px;
  border:1px solid var(--tn-bord); background:rgba(0,0,0,.25); color:var(--tn-texte); font-family:inherit; font-weight:400; font-size:17px; }
.tn-form input:focus{ outline:2px solid var(--tn-bleu); outline-offset:1px; }
.tn-form input[aria-invalid="true"]{ border-color:#f87171; }
.tn-autre{ margin-top:14px !important; }
.tn-piege{ position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; opacity:0; }
.tn-erreur{ color:#fca5a5; margin:0 0 12px; }
.tn-envoyer{ max-width:none; }
.tn-mention{ font-size:13px; color:var(--tn-doux); text-align:center; margin:10px 0 0; }
.tn-retour{ margin-top:14px; background:none; border:0; color:var(--tn-doux); font-family:inherit; font-weight:500; font-size:15px; cursor:pointer; padding:8px 0; }
.tn-merci{ text-align:center; padding:10px 0; }
.tn-merci-titre{ font-size:24px; font-weight:800; margin:0 0 8px; }
.tn-merci p{ color:var(--tn-doux); }

#questions details{ border-bottom:1px solid var(--tn-bord); padding:4px 0; }
#questions summary{ cursor:pointer; padding:14px 0; font-weight:600; font-size:17px; }
#questions details p{ color:var(--tn-doux); line-height:1.6; margin:0 0 14px; }

@media (min-width:820px){
  .tn-actions{ flex-direction:row; justify-content:center; }
  .tn-actions .tn-btn{ width:auto; }
  .tn-rassure{ grid-template-columns:repeat(3,1fr); max-width:none; }
  .tn-formules{ grid-template-columns:1fr 1fr; }
  .tn-metiers{ grid-template-columns:repeat(9,1fr); }
  .tn-form{ max-width:560px; margin:0 auto; }
}

/* ---------- barre d'action fixe (téléphone) ---------- */
.tn-barre{ display:none; }
@media (max-width:819px){
  .tn-barre{ position:fixed; z-index:60; left:0; right:0; bottom:0; display:flex; gap:8px;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom)); background:rgba(8,11,24,.92);
    -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); border-top:1px solid var(--tn-bord);
    transform:translateY(110%); transition:transform .35s cubic-bezier(.2,.8,.2,1); }
  .tn-barre.visible{ transform:none; }
  .tn-barre a{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-height:52px; border-radius:14px;
    text-decoration:none; color:#fff; font:700 13px/1.1 system-ui,sans-serif; }
  .tn-barre .tn-b-icone{ flex:0 0 58px; background:rgba(255,255,255,.08); border:1px solid var(--tn-bord); font-size:11px; font-weight:600; }
  .tn-barre .tn-b-icone svg{ width:22px; height:22px; }
  .tn-barre .tn-b-wa{ background:#128c4a; border-color:var(--tn-wa); }
  .tn-barre .tn-b-principal{ flex:1; font-size:16px; background:linear-gradient(135deg,var(--tn-bleu),var(--tn-violet)); }
  .tn-barre .tn-b-principal small{ font-size:11.5px; font-weight:500; opacity:.85; }
  body.tn-avec-barre{ padding-bottom:84px; }
  /* la bulle de l assistant remonte au-dessus de la barre quand elle est visible */
  #ga-lanceur, #ga-gl{ transition:translate .35s cubic-bezier(.2,.8,.2,1); }
  body:has(.tn-barre.visible) #ga-lanceur, body:has(.tn-barre.visible) #ga-gl{ translate:0 -78px; }
  /* pendant le formulaire, la bulle ne doit pas couvrir le bouton d envoi */
  body.tn-form-visible #ga-lanceur, body.tn-form-visible #ga-gl{ opacity:0; pointer-events:none; }
}

@media (prefers-reduced-motion:reduce){ .tn-barre{ transition:none; } }
