/* KICKEURE v2 — même ambiance que l'ancien site (noir et rouge) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #A8141A; --red-lt: #c91820; --dark: #080808; --dark2: #100808; --dark3: #180a0a; --dark4: #220d0d;
  --text: #f0e8e8; --muted: #b09090; --green: #27ae60; --blue: #4da3ff; --gold: #d9b45a;
  --line: rgba(255,255,255,.09); --radius: 12px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: radial-gradient(1200px 500px at 50% -120px, #2a0b0d 0%, var(--dark) 60%) fixed; color: var(--text); line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
main { flex: 1; padding-top: 28px; padding-bottom: 60px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.45rem; margin: 34px 0 14px; }
h3 { font-size: 1.1rem; }
.muted { color: var(--muted); }
.red { color: var(--red-lt); }

/* En-tête */
.header { position: sticky; top: 0; z-index: 20; background: rgba(8,8,8,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand img { height: 40px; width: auto; }
.links { display: flex; gap: 4px; margin-left: 12px; flex: 1; overflow-x: auto; }
.links a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.links a.on { color: #fff; background: var(--red); }
.badge-v2 { font-size: .72rem; color: var(--gold); border: 1px solid rgba(217,180,90,.4); padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: .82rem; text-align: center; }
.footer code { color: var(--gold); }

/* Onglets de phase */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.tab { padding: 8px 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.04); font-size: .88rem; color: var(--muted); }
.tab:hover { border-color: var(--red-lt); color: var(--text); }
.tab.on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }

/* Podium */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 8px; }
.pod { background: linear-gradient(180deg, var(--dark4), var(--dark2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; text-align: center; position: relative; }
.pod .medal { font-size: 1.7rem; }
.pod .nom { font-family: 'Playfair Display', serif; font-size: 1.25rem; margin: 4px 0; display: block; }
.pod .pts { font-size: 1.9rem; font-weight: 700; }
.pod.r1 { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(217,180,90,.25), 0 10px 40px rgba(168,20,26,.25); }
.pod.r1 .pts { color: var(--gold); }
.pod.r2 .pts { color: #cfd3d8; } .pod.r3 .pts { color: #c98a52; }
.pod small { color: var(--muted); display: block; font-size: .78rem; font-weight: 400; }

/* Tableaux */
.card { background: var(--dark3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tscroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: center; font-weight: 600; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 11px 10px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.05); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(168,20,26,.12); }
td.l, th.l { text-align: left; }
td.rang { font-weight: 700; color: var(--muted); width: 48px; }
tr.top1 td.rang { color: var(--gold); }
.pseudo { font-weight: 600; }
.pseudo:hover { color: var(--red-lt); }
.def { font-weight: 700; color: var(--green); font-size: 1rem; }
td.brut { font-weight: 700; color: var(--gold); }
td.maj { font-size: 1.08rem; }                         /* colonne servant au tri en cours */
th.sortable a { display: block; cursor: pointer; opacity: .75; text-decoration: underline dotted; text-underline-offset: 4px; }
th.sortable a:hover { opacity: 1; color: var(--text); }
th.sortable.actif a { opacity: 1; color: var(--text); text-decoration-style: solid; }
.up { color: var(--green); font-weight: 600; } .down { color: #e5484d; font-weight: 600; } .flat { color: var(--muted); }
.zero { color: rgba(255,255,255,.18); }
.crown { cursor: help; }
/* Tables finales : couleur du pseudo selon la position (mêmes couleurs que l'ancien site) */
.pseudo.tf1 { color: #c9a84c; border-left: 3px solid #c9a84c; padding-left: 8px; }
.pseudo.tf2 { color: #3498db; border-left: 3px solid #3498db; padding-left: 8px; }
.pseudo.tf3 { color: #9b59b6; border-left: 3px solid #9b59b6; padding-left: 8px; }
.pseudo.tf1:hover, .pseudo.tf2:hover, .pseudo.tf3:hover { filter: brightness(1.25); }
.pseudo.tf1, .pseudo.tf2, .pseudo.tf3 { font-weight: 700; }
.dot.tf1 { background: #c9a84c; } .dot.tf2 { background: #3498db; } .dot.tf3 { background: #9b59b6; }
.tfleg { margin: 12px 2px 0; }
.stars { cursor: help; font-size: .78rem; letter-spacing: 1px; margin-left: 5px; color: var(--gold); white-space: nowrap; }
.sticky-col { position: sticky; left: 0; background: var(--dark3); z-index: 1; }
thead .sticky-col { background: #1d1010; }

/* Calendrier */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 14px; }
.cal-head h2 { margin: 0; text-transform: capitalize; }
.btn { display: inline-block; text-align: center; padding: 8px 16px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: .88rem; }
.btn:hover { border-color: var(--red-lt); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dow { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 4px 0; }
.day { min-height: 92px; background: var(--dark3); border: 1px solid var(--line); border-radius: 10px; padding: 6px 7px; display: flex; flex-direction: column; gap: 4px; }
.day.out { opacity: .35; }
.day.today { border-color: var(--red-lt); box-shadow: 0 0 0 1px var(--red-lt) inset; }
.day .n { font-size: .8rem; color: var(--muted); }
.chip { display: block; font-size: .72rem; line-height: 1.25; padding: 3px 6px; border-radius: 6px; border-left: 3px solid; background: rgba(255,255,255,.05); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.ent { border-color: var(--blue); } .chip.tour { border-color: var(--red-lt); background: rgba(168,20,26,.25); font-weight: 600; }
.chip:hover { background: rgba(255,255,255,.12); }
.legend { display: flex; gap: 18px; font-size: .82rem; color: var(--muted); margin: 10px 0 0; flex-wrap: wrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dot.ent { background: var(--blue); } .dot.tour { background: var(--red-lt); }

/* Historique */
details.phase { background: var(--dark3); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
details.phase summary { cursor: pointer; padding: 14px 18px; font-family: 'Playfair Display', serif; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; list-style: none; }
details.phase summary::-webkit-details-marker { display: none; }
details.phase summary::after { content: '▾'; color: var(--red-lt); }
details.phase[open] summary::after { content: '▴'; }
details.phase .count { font-family: 'Inter', sans-serif; font-size: .8rem; color: var(--muted); }
.seance-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px solid rgba(255,255,255,.05); }
.seance-row:hover { background: rgba(168,20,26,.1); }
.pill { font-size: .72rem; padding: 2px 9px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); }
.pill.tour { color: #fff; background: var(--red); border-color: var(--red); }
.pill.ok { color: var(--green); border-color: rgba(39,174,96,.4); }

/* Cartes tournois / membres */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tcard { background: linear-gradient(180deg, var(--dark4), var(--dark2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.tcard:hover { border-color: var(--red-lt); }
.tcard .date { font-family: 'Playfair Display', serif; font-size: 1.3rem; }
.bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: var(--red-lt); }
.search { width: 100%; max-width: 360px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--dark3); color: var(--text); font: inherit; margin: 8px 0 18px; }
.mcard { background: var(--dark3); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mcard:hover { border-color: var(--red-lt); }
.mcard .pseudo { font-size: 1.02rem; }
.mcard small { color: var(--muted); display: block; font-size: .78rem; }

/* Fiche membre */
.fiche-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 24px; background: linear-gradient(135deg, var(--dark4), var(--dark2)); border: 1px solid var(--line); border-radius: var(--radius); }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-family: 'Playfair Display', serif; font-size: 2.3rem; font-weight: 900; }
.fiche-hero .info { flex: 1; min-width: 220px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: .76rem; padding: 3px 10px; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--muted); }
.tag.gold { color: var(--gold); border-color: rgba(217,180,90,.45); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { background: var(--dark3); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat b { display: block; font-size: 1.7rem; font-family: 'Playfair Display', serif; }
.stat span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding: 12px 16px 6px; }
.spark .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 26px; }
.spark .col i { width: 100%; max-width: 38px; background: linear-gradient(180deg, var(--red-lt), var(--red)); border-radius: 5px 5px 0 0; display: block; }
.spark .col small { font-size: .62rem; color: var(--muted); }
.spark .col em { font-size: .7rem; font-style: normal; }
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); font-size: .88rem; }
.back:hover { color: var(--text); }
.note { background: rgba(217,180,90,.08); border: 1px solid rgba(217,180,90,.3); color: #e8d8a8; padding: 12px 16px; border-radius: 10px; font-size: .88rem; margin: 14px 0; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* ===== Bannière d'accueil (reprise de l'ancien site) ===== */
.hero { position: relative; min-height: calc(100vh - 64px); display: flex; align-items: center; overflow: hidden; }
@media (max-width: 1024px) { .hero__cards { display: none; } }
.hero__bg { position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(204,17,17,.15) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(100,0,0,.15) 0%, transparent 50%), linear-gradient(135deg, #080808 0%, #100808 50%, #0d0505 100%); }
.hero__overlay { position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a017' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero__content { position: relative; z-index: 2; padding-top: 30px; padding-bottom: 60px; }
.hero__eyebrow { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red-lt); margin-bottom: 12px; }
.hero__title { font-size: clamp(3rem, 8vw, 7rem); font-weight: 900; line-height: 1.05; margin-bottom: 8px; }
.hero__logo { height: 200px; width: auto; object-fit: contain; display: block; margin: 0 0 14px -6px; }
.hero__subtitle { font-size: 1.15rem; color: var(--muted); max-width: 500px; margin-bottom: 34px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn.lg { padding: 16px 36px; font-size: 1rem; }
.btn.gold { background: linear-gradient(135deg, var(--red), var(--red-lt)); border-color: transparent; color: #fff; font-weight: 600; }
.btn.gold:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn.outline { background: transparent; border: 2px solid var(--red); color: var(--red-lt); font-weight: 600; }
.btn.outline:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 1.4rem; color: var(--red-lt); animation: bounce 2s ease-in-out infinite; z-index: 3; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
.titre-classement { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 4px; scroll-margin-top: 84px; }

/* Cartes qui flottent (dessinées en CSS, sans image externe) */
.hero__cards { display: flex; justify-content: flex-start; margin-bottom: 32px; }
.pcard { position: relative; width: 90px; aspect-ratio: 5 / 7; background: #fbfbf8; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.6); margin-left: -22px; animation: float 3s ease-in-out infinite; font-family: Georgia, 'Times New Roman', serif; user-select: none; }
.pcard:first-child { margin-left: 0; }
.pcard.noire { color: #15151a; } .pcard.rouge { color: #c8102e; }
.pcard b { position: absolute; top: 6px; left: 8px; font-size: 1.35rem; line-height: 1; }
.pcard i { position: absolute; top: 28px; left: 8px; font-style: normal; font-size: 1.05rem; line-height: 1; }
.pcard span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; opacity: .92; }
.pcard--1 { animation-delay: 0s;  rotate: -8deg; } .pcard--2 { animation-delay: .2s; rotate: -4deg; }
.pcard--3 { animation-delay: .4s; rotate: 0deg; }  .pcard--4 { animation-delay: .6s; rotate: 4deg; }
.pcard--5 { animation-delay: .8s; rotate: 8deg; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== Rejoignez le club / Nous trouver ===== */
.bloc { margin-top: 70px; scroll-margin-top: 84px; }
.bloc h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; background: linear-gradient(135deg, var(--dark4), var(--dark2)); border: 1px solid var(--line); border-radius: 16px; padding: 38px; }
.signup__text p { color: var(--muted); margin-bottom: 16px; }
.signup__perks { list-style: none; display: grid; gap: 8px; }
.signup__perks li { color: var(--text); }
.signup__form { display: flex; flex-direction: column; gap: 12px; }
.signup__form label { display: block; font-size: .82rem; color: var(--muted); }
.signup__form input { display: block; width: 100%; margin-top: 4px; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--dark); color: var(--text); font: inherit; }
.signup__form input:focus { outline: 2px solid var(--red-lt); }
.signup__form input.bad { border-color: #c0392b; }
.signup__form .btn.full { width: 100%; cursor: pointer; margin-top: 4px; font: inherit; font-weight: 600; }
.signup__form .btn[disabled] { opacity: .6; cursor: wait; }
.form-legal { font-size: .76rem; color: var(--muted); }
.form-error { background: rgba(168,20,26,.15); border: 1px solid #c0392b; border-radius: 8px; color: #ff8a8a; padding: 12px 16px; font-size: .88rem; }
.form-success { background: rgba(39,174,96,.12); border: 1px solid rgba(39,174,96,.4); border-radius: 8px; color: #9be3b7; padding: 12px 16px; font-size: .9rem; }
.form-error[hidden], .form-success[hidden] { display: none; }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center; }
.contact__info p { color: var(--muted); margin-bottom: 16px; }
.contact__list { list-style: none; display: grid; gap: 10px; margin-bottom: 20px; }
.contact__list a:hover { color: var(--red-lt); }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); }
.social-links a:hover { border-color: var(--red-lt); color: #fff; background: var(--red); }
.contact__map iframe { display: block; width: 100%; background: var(--dark3); }

/* Mentions légales */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; padding-top: 6px; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.legal p { margin: 8px 0; color: var(--text); }
.legal ul { margin: 8px 0 8px 22px; display: grid; gap: 5px; }
.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: #fff; }

/* Lien « signaler une erreur » */
.signal { margin: 34px 0 0; text-align: center; }
.signal .btn { border-color: rgba(217,180,90,.45); color: var(--gold); }
.signal .btn:hover { background: rgba(217,180,90,.12); }
.footer__signal { font-size: .84rem; color: var(--muted); }
.footer__signal a { text-decoration: underline; text-underline-offset: 3px; }
.footer__signal a:hover { color: var(--text); }

/* Pied de page */
.footer { margin-top: 70px; padding: 34px 0 30px; text-align: center; background: var(--dark2); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer__logo img { height: 90px; width: auto; }
.footer__tagline { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--text); }
.footer__legal { font-size: .82rem; color: var(--muted); }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--text); }
@media (max-width: 860px) { .signup, .contact { grid-template-columns: 1fr; gap: 24px; } .signup { padding: 24px 18px; } }

/* Page des règles */
.hands { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.hand { display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; align-items: center; background: var(--dark3); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.hand__rank { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.hand__name { font-weight: 600; }
.hand__cards { color: var(--muted); letter-spacing: .08em; font-size: .92rem; }
.hand__cards .rouge, .rouge { color: #ff5c6a; }
.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 14px; align-items: flex-start; background: var(--dark3); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.step__num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-lt)); display: grid; place-items: center; font-weight: 700; }
.step p { color: var(--muted); font-size: .92rem; }

/* Avatars ronds (photo, illustration ou initiale) */
.av { --s: 34px; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; vertical-align: middle; margin-right: 9px; background: #1a1a1a; border: 2px solid rgba(168,20,26,.45); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av b { font-size: calc(var(--s) * .42); font-weight: 700; color: var(--red-lt); line-height: 1; }
.av:not(.sans) b { visibility: hidden; }
.fiche-hero .av { margin-right: 0; border-width: 3px; }
.avpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin: 10px 0; }
.avpick form { margin: 0; }
.avbtn { width: 100%; cursor: pointer; background: var(--dark); border: 2px solid var(--line); border-radius: 12px; padding: 6px 4px 4px; color: var(--muted); font: inherit; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.avbtn img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.avbtn small { font-size: .66rem; line-height: 1.1; text-align: center; }
.avbtn:hover { border-color: var(--red-lt); color: var(--text); }
.avbtn.on { border-color: var(--gold); color: var(--gold); }
.avcur { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.avcur .av { margin: 0; }

/* Compte dans l'en-tête */
.acct { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.acct .btn { padding: 7px 14px; font-size: .86rem; white-space: nowrap; }
.acct-me.on { border-color: var(--red-lt); }
.acct-me span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
.acct-out { font-size: .8rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.acct-out:hover { color: var(--text); }
.nav .links { flex: 0 1 auto; }

/* Pages de connexion / activation / compte */
.auth { max-width: 480px; margin: 20px auto 0; background: linear-gradient(135deg, var(--dark4), var(--dark2)); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.auth h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth p.muted { margin-bottom: 14px; font-size: .92rem; }
.auth label, .mcompte label { display: block; font-size: .82rem; color: var(--muted); margin: 10px 0; }
.auth input:not([type=checkbox]), .mcompte input:not([type=checkbox]), .mcompte select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--dark); color: var(--text); font: inherit; }
.auth input:focus, .mcompte input:focus { outline: 2px solid var(--red-lt); }
.auth .check, .mcompte .check { display: flex; align-items: flex-start; gap: 8px; color: var(--text); font-size: .86rem; }
.auth .check input, .mcompte .check input { width: auto; margin: 3px 0 0; }
.auth .btn, .mcompte .btn { cursor: pointer; font: inherit; font-weight: 600; margin-top: 8px; color: var(--text); }
.auth .btn.gold, .mcompte .btn.gold { color: #fff; }
.auth .alt { margin-top: 16px; font-size: .86rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.auth .alt a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.mflash { padding: 12px 16px; border-radius: 10px; margin: 0 0 14px; font-size: .92rem; border: 1px solid; }
.mflash.ok { background: rgba(39,174,96,.12); border-color: rgba(39,174,96,.4); color: #9be3b7; }
.mflash.err { background: rgba(229,72,77,.12); border-color: rgba(229,72,77,.45); color: #ffb1b3; }
.mcompte .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.mcompte .panel { background: var(--dark3); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.mcompte .panel h3 { margin-bottom: 8px; }
.mcompte .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tstat { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.06); }
.tstat:first-of-type { border-top: 0; }
.tstat form { margin: 0; }
.tstat .btn { margin: 0; padding: 7px 14px; font-size: .84rem; }
@media (max-width: 860px) { .mcompte .grid2, .mcompte .two { grid-template-columns: 1fr; } }

/* Navigation smartphone : cachée sur ordinateur */
.mnav { display: none; }

@media (max-width: 720px) {
  .podium { grid-template-columns: 1fr; }
  .nav { gap: 10px; height: 54px; } .brand img { height: 34px; }
  .badge-v2 { display: none; }
  .links { display: none; }                       /* plus de menu défilant */
  .hero { min-height: auto; }
  .hero__cards { display: none; }                 /* comme sur l'ancien site : pas de cartes sur petit écran */
  .hero__logo { height: 110px; }
  .hero__content { padding-top: 40px; padding-bottom: 54px; }
  .hero__cta .btn { width: 100%; }
  .mnav-sub { gap: 14px; }
  .mnav { display: block; position: sticky; top: 54px; z-index: 19; background: rgba(8,8,8,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 10px 0 8px; }
  .mnav-main { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mbtn { text-align: center; padding: 13px 8px; border-radius: 12px; font-weight: 700; font-size: 1rem; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); }
  .mbtn.on { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 18px rgba(168,20,26,.4); }
  .mnav-sub { display: flex; justify-content: center; gap: 22px; margin-top: 8px; font-size: .84rem; }
  .mnav-sub a { color: var(--muted); padding: 2px 0; border-bottom: 2px solid transparent; }
  .mnav-sub a.on { color: var(--text); border-color: var(--red-lt); }
  .day { min-height: 64px; padding: 4px; } .chip { font-size: .62rem; padding: 2px 4px; }
  .seance-row { grid-template-columns: 1fr; gap: 4px; }
}
