/* Testeur de site gratuit (/tester-mon-site). S'ajoute à site.css, mêmes couleurs et polices. */

.ts [hidden] { display: none !important; }
.ts-form .ts-url input { min-height: 56px; font-size: 1.1rem; }
.ts-form .btn { justify-self: start; }
.ts-note { color: var(--ink-dim); font-size: .92rem; }
.ts-exemple { color: var(--ink-soft); font-size: .98rem; }
.ts-exemple button { padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.ts-exemple button:hover { color: var(--gold-hi); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Attente */
.ts-attente { padding: clamp(28px, 4vw, 44px); background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.ts-attente-titre { font-size: 1.15rem; margin-bottom: 20px; overflow-wrap: anywhere; }
.ts-etapes { display: grid; gap: 14px; }
.ts-etapes li { position: relative; padding-left: 36px; color: var(--ink-dim); transition: color .3s var(--ease); }
.ts-etapes li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); }
.ts-etapes li.en-cours { color: var(--ink); }
.ts-etapes li.en-cours::before { box-shadow: inset 0 0 0 2px var(--gold); border-top-color: transparent; animation: ts-tourne 1s linear infinite; background: conic-gradient(var(--gold) 0 25%, transparent 25%); -webkit-mask: radial-gradient(circle, transparent 7px, #000 8px); mask: radial-gradient(circle, transparent 7px, #000 8px); }
.ts-etapes li.fait { color: var(--ink-soft); }
.ts-etapes li.fait::before { background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%2308192A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: none; }
@keyframes ts-tourne { to { transform: rotate(360deg); } }

/* Problème (site injoignable, réseau social…) */
.ts-probleme { padding: clamp(24px, 3.4vw, 40px); background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 22px; }
.ts-probleme p { font-size: 1.1rem; }
.ts-probleme-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Résultat */
.ts-resultat { display: grid; gap: clamp(28px, 4vw, 48px); }
.ts-res-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.ts-res-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); overflow-wrap: anywhere; }
.ts-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 0; box-shadow: 0 0 0 1px var(--line); }
.ts-carte { padding: clamp(24px, 3vw, 36px); display: grid; align-content: start; gap: 18px; }
.ts-carte + .ts-carte { box-shadow: -1px 0 0 var(--line); }
.ts-vitesse { background: linear-gradient(180deg, var(--panel), var(--bg-2)); justify-items: center; text-align: center; }
.ts-jauge { position: relative; width: 168px; height: 168px; --c: var(--ink-dim); }
.ts-jauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ts-jauge circle { fill: none; stroke-width: 10; }
.ts-jauge .fond { stroke: var(--line-strong); }
.ts-jauge .valeur { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.2s var(--ease), stroke .3s; }
.ts-jauge[data-etat="attente"] svg { animation: ts-tourne 1.6s linear infinite; }
.ts-jauge[data-etat="attente"] .valeur { stroke: var(--gold); stroke-dashoffset: 260; }
.ts-jauge[data-etat="rapide"] { --c: #6FCF97; }
.ts-jauge[data-etat="moyen"] { --c: var(--gold); }
.ts-jauge[data-etat="lent"] { --c: #FF8A80; }
.ts-note-vitesse { position: absolute; inset: 0; display: grid; place-content: center; line-height: 1.1; }
.ts-note-vitesse b { font: 700 3rem/1 var(--display); font-stretch: 115%; color: var(--ink); font-variant-numeric: tabular-nums; }
.ts-note-vitesse span { font-size: .85rem; color: var(--ink-dim); margin-top: 4px; }
.ts-vitesse-texte { color: var(--ink-soft); max-width: 26em; }
.ts-indic { display: grid; gap: 10px; }
.ts-indic li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.ts-indic li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; }
.ts-indic li.oui::before { background: rgba(111, 207, 151, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%236FCF97' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.ts-indic li.non::before { background: var(--gold-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%23D6AA4E' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ts-indic li.non { color: var(--ink-soft); }
.ts-indic small { display: block; color: var(--ink-dim); font-size: .85rem; }

.ts-bloc h3, .ts-email h3, .ts-cta h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 18px; }
.ts-forts { display: grid; gap: 10px; }
.ts-forts li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.ts-forts li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%236FCF97' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.ts-pistes { display: grid; gap: 14px; counter-reset: piste; }
.ts-pistes li { counter-increment: piste; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 18px; padding: clamp(20px, 2.6vw, 28px); background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.ts-pistes li::before { content: counter(piste); grid-row: span 3; width: 40px; height: 40px; display: grid; place-content: center; border-radius: 50%; background: var(--gold-wash); color: var(--gold); font: 700 1.1rem/1 var(--display); }
.ts-pistes h4 { margin: 0 0 6px; font: 600 1.12rem/1.3 var(--display); font-stretch: 110%; color: var(--ink); }
.ts-pistes p { color: var(--ink-soft); }
.ts-pistes .gain { margin-top: 8px; color: var(--ink); }
.ts-pistes .gain b { color: var(--gold); }
.ts-pistes li.nouveau { animation: rise .8s var(--ease) both; }
.ts-rien { color: var(--ink-soft); }

/* E-mail puis appel à l'action principal */
.ts-email { padding: clamp(24px, 3vw, 36px); background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 14px; }
.ts-email h3 { margin-bottom: 0; }
.ts-email > p { color: var(--ink-soft); }
.ts-email-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.ts-email input[type="email"] { width: 100%; min-height: 52px; padding: 12px 14px; background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 2px; font: 400 1rem/1.4 var(--body); }
.ts-email input[type="email"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.ts-email [aria-invalid="true"] { border-color: #FF8A80; }
.ts-email .check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--ink-soft); font-size: .95rem; }
.ts-email .check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold); }
.ts-email .check a { color: var(--gold); }
.ts-email .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts-email .form-status.ok { color: #6FCF97; }
.ts-email.envoye .ts-email-ligne, .ts-email.envoye .check { display: none; }
.ts-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; padding: clamp(28px, 4vw, 48px); background: radial-gradient(ellipse 80% 140% at 100% 0%, rgba(214, 170, 78, .16), transparent 60%), var(--panel); box-shadow: 0 0 0 1px var(--gold-wash), inset 3px 0 0 var(--gold); }
.ts-cta h3 { margin-bottom: 10px; }
.ts-cta p { color: var(--ink-soft); }
.ts-btn-attente[disabled] { opacity: .6; cursor: progress; }

.ts-explique { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.ts-explique h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 24px; }
.ts-explique ul { display: grid; gap: 12px; color: var(--ink-soft); }
.ts-explique b { color: var(--ink); }
.ts-a-resultat .ts-intro { display: none; }

@media (max-width: 760px) {
  .ts-grille { grid-template-columns: minmax(0, 1fr); }
  .ts-carte + .ts-carte { box-shadow: 0 -1px 0 var(--line); }
  .ts-cta { grid-template-columns: minmax(0, 1fr); }
  .ts-email-ligne { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ts-pistes li { grid-template-columns: minmax(0, 1fr); }
  .ts-pistes li::before { grid-row: auto; margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-jauge[data-etat="attente"] svg, .ts-etapes li.en-cours::before { animation: none; }
  .ts-jauge .valeur { transition: none; }
}

/* Haut de page en deux colonnes (01/12/2026) : formulaire à gauche, ce que le test regarde à droite */
.ts.sec { padding-block: clamp(28px, 4vw, 48px) clamp(56px, 7vw, 96px); background: radial-gradient(ellipse 55% 90% at 100% 0%, rgba(214, 170, 78, .08), transparent 60%), var(--bg); }
.ts-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.ts-gauche { display: grid; gap: 18px; align-content: start; }
.ts-gauche .crumbs { margin-bottom: 0; }
.ts-titre { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.04; letter-spacing: -.035em; }
.ts-lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 32em; }
.ts-form { gap: 14px; padding: clamp(20px, 2.4vw, 28px); }
.ts-form .form-status:empty { display: none; }
.ts-resultat { margin-top: 0; }

.ts-visuel { padding: clamp(18px, 2vw, 24px); background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.ts-visuel-titre { font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: 14px; }
.ts-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ts-v { padding: 12px 14px 14px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 4px; align-content: start; }
.ts-v-large { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 16px; align-items: center; }
.ts-v-large .ts-illu { grid-row: span 2; }
.ts-v h3 { font-size: .98rem; letter-spacing: -.01em; }
.ts-v p { font-size: .86rem; line-height: 1.4; color: var(--ink-dim); }
.ts-illu { height: 78px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; border-radius: 4px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); overflow: hidden; }
.v-jauge { width: 92px; height: 54px; }
.v-jauge text { font: 700 22px var(--display); fill: var(--ink); }
.v-chip { padding: 3px 8px; border-radius: 99px; background: rgba(111, 207, 151, .15); color: #6FCF97; font-size: .78rem; font-weight: 700; }
.v-tel { position: relative; width: 34px; height: 60px; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--ink-soft); display: grid; align-content: start; gap: 4px; padding: 9px 6px; }
.v-tel i { display: block; height: 4px; border-radius: 2px; background: var(--ink-dim); }
.v-tel .l1 { width: 80%; background: var(--ink); } .v-tel .l2 { width: 100%; } .v-tel .l3 { width: 65%; }
.v-tel .b { height: 8px; width: 70%; margin-top: 4px; background: var(--gold); }
.v-tel-ko { margin-left: 8px; opacity: .5; padding: 9px 3px; } .v-tel-ko i { height: 2px; } .v-tel-ko .l2 { width: 140%; }
.v-tel::after { content: ""; position: absolute; right: -9px; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: #6FCF97 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%2308192A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.v-tel-ko::after { background: #FF8A80 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%2308192A' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ts-illu:has(.v-bouton) { flex-direction: column; gap: 6px; }
.v-bouton { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 2px; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: .82rem; }
.v-bouton svg { width: 14px; height: 14px; }
.v-champ { width: 78%; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink-dim); font-size: .74rem; background: var(--bg); }
.ts-illu:has(.v-barre) { flex-direction: column; gap: 8px; }
.v-barre { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-soft); font-size: .76rem; }
.v-barre svg { width: 13px; height: 13px; }
.v-etoiles { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }
.v-etoiles small { color: var(--ink-soft); letter-spacing: 0; font-size: .78rem; font-weight: 700; }
.v-google { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px 12px; height: auto; min-height: 78px; background: #fff; }
.v-google span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Arial, sans-serif; }
.g-url { color: #202124; font-size: .72rem; }
.g-titre { color: #1A0DAB; font-size: .9rem; }
.g-desc { color: #4D5156; font-size: .74rem; }

@media (max-width: 960px) {
  .ts-intro { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .ts-v-large { grid-template-columns: minmax(0, 1fr); }
  .ts-v-large .ts-illu { grid-row: auto; }
  .ts-v p { display: none; }
  .ts-illu { gap: 6px; padding-inline: 6px; }
  .v-jauge { width: 72px; height: 44px; }
  .v-chip { display: none; }
  .v-champ, .v-barre { white-space: nowrap; font-size: .66rem; }
  .v-champ { width: 92%; overflow: hidden; text-overflow: ellipsis; }
  .v-barre { padding: 3px 7px; }
}
