/* ===== TDPNet — habillage du site public, chargé après style.css =====
   Thème sombre, grand titre en dégradé, grille de cartes, boutons arrondis.
   L'espace client et l'admin ont leurs propres feuilles de style. */

:root {
  color-scheme: dark;
  --bg: #120b0e;
  --bg-2: #170f12;
  --surface: #1f1519;
  --header-bg: rgba(18, 11, 14, .85);
  --grille: rgba(242, 232, 213, .035);
  --accent-doux: rgba(196, 38, 74, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 12px 32px -18px rgba(0, 0, 0, .6);
  --shadow-haute: 0 2px 4px rgba(0, 0, 0, .3), 0 22px 44px -20px rgba(0, 0, 0, .75);
  --radius: 14px;
}


h1, h2, h3 { letter-spacing: -.02em; }
.eyebrow { padding: .35em 1em; margin-bottom: 1rem; border-radius: 999px; background: var(--accent-doux); font-size: .7rem; letter-spacing: .06em; }

/* En-tête */
.header { background: var(--header-bg); }
.header__inner { justify-content: space-between; gap: 20px; }
.nav { flex: 0 1 auto; justify-content: center; }
.nav > a, .nav__drop > summary { color: var(--text); font-size: .9rem; }
.nav > a:hover, .nav__drop > summary:hover, .nav > a.is-active { color: var(--red-light); background: var(--bg-2); }
.nav__menu { border-radius: var(--radius); }
.header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header__espace { white-space: nowrap; }
.burger { margin-left: 0; }
.burger span { background: var(--text); }
@media (max-width: 980px) { .nav__menu { background: var(--bg-2); } }
@media (max-width: 380px) { .logo__text { display: none; } }

/* Boutons */
.btn { border-radius: 999px; font-size: .92rem; }
.btn:hover { transform: none; }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: var(--shadow); }
.btn--ghost:hover { border-color: var(--border-strong); color: var(--text); box-shadow: var(--shadow-haute); }
.btn--light { background: #fff; color: var(--bordeaux); }
.btn--light:hover { background: #fff; box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .6); }
.cta { color: #fff; border-radius: 18px; }
.cta p { color: rgba(255, 255, 255, .85); }
.cta .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; box-shadow: none; }

/* Accueil : titre en dégradé à gauche, sphère à droite */
.v-hero, .page-hero { position: relative; background-color: var(--bg); border-bottom: 0; }
.page-hero { text-align: center; background-image: radial-gradient(800px 340px at 50% -40px, var(--accent-doux), transparent 70%); }
.v-hero { overflow: hidden; padding: clamp(48px, 7vw, 90px) 0; background-image: radial-gradient(760px 480px at 78% 40%, var(--accent-doux), transparent 70%), radial-gradient(700px 300px at 12% 0, var(--accent-doux), transparent 70%); }
.v-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; min-height: min(62vh, 560px); }
.v-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; line-height: 1.14; color: var(--text); }
.accent, h1 .accent, h2 .accent { background: linear-gradient(90deg, var(--red-light), #ff9d6c); -webkit-background-clip: text; background-clip: text; color: transparent; }
#v-mots { display: inline-block; transition: opacity .25s, transform .25s; }
#v-mots.sort { opacity: 0; transform: translateY(8px); }
.v-hero__lead { max-width: 34em; margin: 22px 0 0; font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--muted); }
.v-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.v-sphere { position: relative; width: min(100%, 480px); aspect-ratio: 1; justify-self: center; }
.v-sphere canvas { display: block; width: 100%; height: 100%; }
.v-sphere__mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 0 44px var(--glow); }
.v-sphere__mark .logo__mark { width: 66%; }
.v-centre { margin-top: 36px; text-align: center; }

/* Grille de cartes */
.v-pourquoi, .v-protection, #tarifs, #jeux { border-top: 1px solid var(--border); }
.v-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.v-carte { grid-column: span 2; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: linear-gradient(145deg, var(--surface-2), var(--surface) 60%); min-width: 0; transition: border-color .2s; }
.v-carte:hover { border-color: var(--red-light); }
.v-carte--large { grid-column: span 3; }
.v-carte--pleine { grid-column: span 6; }
.v-carte__ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 10px; background: var(--accent-doux); color: var(--red-light); }
.v-carte h3 { margin-bottom: .4em; font-size: 1.1rem; }
.v-carte p { margin: 0; color: var(--muted); font-size: .94rem; }
.v-pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.v-pastilles li { padding: .4em .9em; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: .84rem; }
.page-hero { padding: clamp(52px, 7vw, 84px) 0 clamp(36px, 5vw, 56px); }
.page-hero h1 { font-weight: 700; }

/* Cartes */
.feature { padding: 32px 28px; text-align: center; box-shadow: var(--shadow); }
.feature h2 { font-size: 1.3rem; }
.feature:hover { border-color: var(--border); box-shadow: var(--shadow-haute); }
.feature__icon { margin: 0 auto 16px; border: 0; border-radius: 12px; background: var(--accent-doux); }
.contact__card .feature__icon { flex: 0 0 44px; width: 44px; height: 44px; margin: 0; }
.layer, .engine__item, .included__item, .contact__card, .guide, .gm-points article, .gm-steps li, .docs-card, .doc, .faq details, .locations li, .table-wrap, .card { box-shadow: var(--shadow); }
.layer__num, .engine__num, .gm-points span, .gm-steps li::before { background: var(--accent-doux); color: var(--red-light); box-shadow: none; }
.section--alt { border: 0; }
.game-card { border-radius: var(--radius); }
.game-card:hover { transform: none; border-color: var(--border); box-shadow: var(--shadow-haute); }
.game-card__price strong { color: var(--red-light); }
.link-arrow:hover { text-decoration: underline; }

/* Offres */
.plan { border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.plan:hover { box-shadow: var(--shadow-haute); }
.plan__name { font-size: 1.3rem; font-weight: 700; text-transform: none; letter-spacing: -.01em; color: var(--text); }
.plan__price span { color: var(--red-light); }
.plan__specs, .plan .checklist { text-align: left; }
.plan--featured { box-shadow: 0 0 0 1px var(--red), var(--shadow-haute); background: var(--surface); border: 1px solid var(--red); }
.plan__badge { left: 50%; transform: translateX(-50%); white-space: nowrap; box-shadow: none; }
.plan--image .plan__badge { left: 12px; transform: none; }
.tab { box-shadow: var(--shadow); }
.tab.is-active { color: #fff; }
.compare .no { color: var(--muted); }

/* Divers */
.game-switch a:hover, .faq-nav a:hover { color: var(--red-light); border-color: var(--red-light); }
.game-switch a.is-active:hover { color: #fff; }
.form input, .form select, .form textarea { border-color: var(--border-strong); background: var(--surface); }
.footer { background: var(--bg-2); }
.announce { background: var(--bg-2); border-color: var(--border); color: var(--text); }
.announce--alerte { background: var(--accent-doux); border-color: var(--red); }
.doc code, .doc__body code { overflow-wrap: anywhere; }

/* Pages des jeux : ouverture centrée sur fond clair */
.gm-hero { padding: clamp(48px, 7vw, 76px) 0 0; border-bottom: 0; color: var(--text); background: var(--bg) !important; background-image: linear-gradient(var(--grille) 1px, transparent 1px), linear-gradient(90deg, var(--grille) 1px, transparent 1px) !important; background-size: 44px 44px !important; }
.gm-hero::before, .gm-hero::after { display: none !important; }
.gm-hero__inner { grid-template-columns: 1.05fr 1fr; gap: 48px; }
.gm-chip { background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow); }
.gm-hero__logo { display: inline-block; padding: 16px 28px; border-radius: var(--radius); background: linear-gradient(135deg, var(--g-a), var(--g-b)); }
.gm-hero__img { width: min(360px, 100%); filter: none; margin: 0 auto; }
.gm-hero__tagline { color: var(--text); margin-top: 8px; }
.gm-hero__intro { max-width: 40em; color: var(--muted); }
.gm-hero .btn--ghost { background: var(--surface) !important; border-color: var(--border) !important; color: var(--text) !important; }
.gm-hero__badges li { background: var(--accent-doux) !important; border: 0 !important; color: var(--red-light) !important; border-radius: 999px !important; }
.gm-shot { width: 100%; border-color: var(--border); box-shadow: var(--shadow-haute); }
.gm-switch { margin-top: 36px; background: transparent !important; border: 0; }
.gm-switch a { background: var(--surface) !important; border-color: var(--border) !important; color: var(--text) !important; box-shadow: var(--shadow); }
.gm-switch a.is-active { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }
.game-page .gm-tool { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
.gm-tool:hover { transform: none; border-color: var(--border); box-shadow: var(--shadow-haute); }
.game-page .gm-mode { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
.gm-mode__plan { background: var(--accent-doux); }
.game-page .gm-flow { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
.game-page .gm-flow__filter, .game-page .gm-flow__server { background: var(--bg-2); border-color: var(--border-strong); }
.gm-flow__in--bad { color: var(--red-light); }
.gm-engine__shot { border-color: var(--border); box-shadow: var(--shadow); }
.gm-credit { color: var(--muted); }

@media (max-width: 900px) {
  .v-hero__grid, .gm-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .v-sphere { max-width: 340px; }
  .v-carte, .v-carte--large { grid-column: span 3; }
  .gm-hero__inner { justify-items: center; text-align: center; }
}
@media (max-width: 560px) {
  .v-carte, .v-carte--large, .v-carte--pleine { grid-column: span 6; }
}

/* Haut des pages de jeux : éléments empilés et centrés */
.gm-chip { display: flex; width: fit-content; margin: 0 0 18px; }
.gm-hero__logo { display: block; width: fit-content; margin: 0 0 14px; }

/* Documentation et détails sur fond clair */
.doc__body { color: var(--text); }
.gm-hero__img { width: min(360px, 68vw); max-width: none; }

/* Menu, pied de page et pages Support, Panneau et Protection */
.nav__drop > summary.is-active { color: var(--red-light); background: var(--bg-2); }
.nav__menu .icon { color: var(--red-light); }
.footer__grid { grid-template-columns: 2fr repeat(4, 1fr); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
.v-carte__lien { margin-top: 14px !important; }
.v-carte p a.link-arrow { white-space: nowrap; }
.v-statut { display: flex; gap: 12px; align-items: flex-start; max-width: 720px !important; margin: 26px auto 0 !important; padding: 14px 18px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); text-align: left; font-size: .95rem !important; color: var(--text) !important; }
.v-statut .icon, .v-note .icon { flex: none; color: var(--red-light); }
.v-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }
.v-note .icon { width: 18px; height: 18px; }
.v-note a { color: var(--red-light); text-decoration: underline; }
.layer h3 .tag { margin-left: 6px; vertical-align: middle; font-weight: 600; letter-spacing: 0; }
.guide li strong { white-space: normal; text-align: right; }

/* Lien et page « Sous attaque » */
.nav > a.nav__urgence { display: inline-flex; align-items: center; gap: 6px; color: var(--red-light); font-weight: 600; }
.nav__urgence .icon { width: 16px; height: 16px; }
.form__check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 500 !important; }
.form__check input { width: auto; margin-top: .25em; flex: none; }
.form .v-note { margin: 0; }

/* Bouton « Sous attaque » de l'en-tête : dans le menu sur petit écran, faute de place */
.header__urgence { color: var(--red-light); border-color: var(--red-light); white-space: nowrap; }
.header__urgence:hover { color: #fff; background: var(--red); border-color: var(--red); }
.header__urgence .icon { width: 16px; height: 16px; }
.nav > a.nav__urgence { display: none; }
@media (max-width: 640px) {
  .header__urgence { display: none; }
  .nav.is-open > a.nav__urgence { display: inline-flex; }
}

/* Page « Sous attaque » : étapes et tarifs */
.gm-steps.v-etapes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v-urgence-tarifs { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin-inline: auto; }
.v-urgence-tarifs .plan__desc { min-height: 0; }
.v-urgence-tarifs .pricing__note { margin-top: 14px; }
@media (max-width: 900px) { .gm-steps.v-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gm-steps.v-etapes, .v-urgence-tarifs { grid-template-columns: minmax(0, 1fr); } }

/* Matériel des serveurs, au-dessus des offres */
.v-materiel { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.v-materiel li { display: flex; align-items: center; gap: 8px; padding: .5em 1em; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .86rem; }
.v-materiel strong { color: var(--text); font-weight: 600; }
.v-materiel .icon { width: 17px; height: 17px; color: var(--red-light); }
/* Libellé au-dessus de la valeur : les valeurs tiennent toujours dans la case */
.plan { min-width: 0; }
.plan__specs div { display: block; padding: 8px 0; }
.plan__specs dt { font-size: .76rem; line-height: 1.3; }
.plan__specs dd { text-align: left; line-height: 1.35; }

/* Page « Pourquoi TDPNet » */
.v-comparaison th, .v-comparaison td { text-align: left; }
.v-comparaison td:first-child { font-weight: 600; color: var(--text); }
.v-comparaison td:last-child { color: var(--text); }
.v-comparaison td:nth-child(2) { color: var(--muted); }
.v-carte p a.link-arrow { display: inline-block; margin-top: 4px; }
.checklist strong { color: var(--text); }
@media (max-width: 640px) {
  .v-comparaison thead { display: none; }
  .v-comparaison, .v-comparaison tbody, .v-comparaison tr, .v-comparaison td { display: block; width: 100%; }
  .v-comparaison tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .v-comparaison tr:last-child { border-bottom: 0; }
  .v-comparaison td { padding: 4px 16px; border: 0; }
  .v-comparaison td:nth-child(2)::before { content: "Généraliste, souvent : "; font-weight: 600; }
  .v-comparaison td:last-child::before { content: "TDPNet : "; font-weight: 600; color: var(--red-light); }
}

/* Villes du réseau */
.v-villes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; padding: 0; list-style: none; }
.v-villes li { padding: 18px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); text-align: center; min-width: 0; }
.v-villes strong { display: block; font-size: 1.05rem; }
.v-villes span { display: block; margin-top: 3px; color: var(--muted); font-size: .8rem; }
@media (max-width: 900px) { .v-villes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Page « Réseau » : le chemin d'une connexion */
.v-chemin { max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.v-chemin li { position: relative; display: flex; gap: 16px; padding: 18px 20px; margin-bottom: 26px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface-2), var(--surface) 60%); }
.v-chemin li:not(:last-child)::after { content: "↓"; position: absolute; left: 50%; bottom: -25px; transform: translateX(-50%); color: var(--red-light); font-weight: 700; }
.v-chemin .v-carte__ico { flex: none; margin: 0; }
.v-chemin h3 { margin: 0 0 .25em; font-size: 1.05rem; }
.v-chemin p { margin: 0; color: var(--muted); font-size: .94rem; }
.section__head p .link-arrow { white-space: nowrap; }
.nav > a, .nav__drop > summary { white-space: nowrap; }

/* Page État du réseau */
.v-stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); list-style: none; margin: 0; padding: 0; }
.v-stats li { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.v-stats strong { display: block; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.v-stats span { color: var(--muted); font-size: .88rem; }
.note-maj { margin-top: 12px; color: var(--muted); font-size: .82rem; }
.v-attaques { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); list-style: none; margin: 0; padding: 0; }
.v-attaque { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.v-attaque--live { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), var(--shadow); }
.v-attaque__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.v-attaque__type { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .98rem; }
.v-attaque__type .icon { flex: none; width: 18px; height: 18px; color: var(--red-light); }
.v-attaque__when { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.v-attaque__when strong { color: var(--red-light); }
.v-attaque__bar { position: relative; height: 30px; border-radius: 8px; background: var(--bg-2); overflow: hidden; display: flex; align-items: center; }
.v-attaque__bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, var(--red-dark), var(--red-light)); }
.v-attaque__bar > b { position: relative; margin-left: 12px; font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.v-attaque__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: .86rem; }
.v-attaque__pps { color: var(--muted); font-variant-numeric: tabular-nums; }
.v-attaque__blocked { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }
.v-attaque__blocked .icon { width: 15px; height: 15px; }
#statut-live.statut--attaque strong { color: var(--red-light); }
