/* ===================================================================
   EduWeb — Family & Coaching · Feuille de style
   =================================================================== */

:root {
  --primary: #1E9E57;
  --primary-dark: #0E6B3A;
  --primary-light: #E2F3E8;
  --amber: #F08A24;
  --amber-soft: #FCE7D2;
  --ink: #1A2A1A;
  --ink-light: #7A8A7A;
  --bg: #F4F6F0;
  --card: #FFFFFF;
  --border: #D4DED4;
  --danger: #DC3545;
  --success: #10B981;
  --warning: #F59E0B;
  --info: #2563EB;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(14, 107, 58, 0.08);
  --shadow-lg: 0 12px 40px rgba(14, 107, 58, 0.14);
  --shadow-sm: 0 2px 8px rgba(14, 107, 58, 0.06);
  --t: 0.2s ease;

  --font-title: 'Fraunces', Georgia, serif;
  --font-body: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; line-height: 1.2; color: var(--ink); }

a { color: var(--primary-dark); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary); }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.main { min-height: 60vh; }
.mt { margin-top: 18px; }
.muted { color: var(--ink-light); font-size: 0.9em; }
.inline { display: inline; }
.icon { vertical-align: middle; flex-shrink: 0; }

/* ───────────── Boutons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 11px 20px; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: all var(--t); white-space: nowrap; line-height: 1;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--amber { background: var(--amber); color: #fff; }
.btn--amber:hover { background: #d9761a; color: #fff; transform: translateY(-1px); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #b52a37; color: #fff; }
.btn--ghost { background: transparent; color: var(--primary-dark); border-color: var(--border); }
.btn--ghost:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.btn--glass { background: rgba(255,255,255,0.18); color: #fff; border-color: rgba(255,255,255,0.5); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255,255,255,0.3); color: #fff; }
.btn--lg { padding: 14px 28px; font-size: 1.02rem; }
.btn--sm { padding: 8px 14px; font-size: 0.85rem; }
.btn--block { width: 100%; }

.icon-btn { background: transparent; border: none; cursor: pointer; color: var(--ink-light); padding: 6px; border-radius: 8px; display: inline-flex; transition: all var(--t); }
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.icon-btn--danger:hover { background: #fde8ea; color: var(--danger); }

/* ───────────── Header ───────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { height: 40px; width: 40px; object-fit: cover; border-radius: 10px; }
/* En-tête : logo agrandi (slogan lisible), sans rognage ni coins arrondis */
.brand--header .brand__logo { height: 64px; width: auto; object-fit: contain; border-radius: 0; }
.brand__name { font-family: var(--font-title); font-weight: 700; font-size: 1.35rem; color: var(--primary-dark); }
.brand__name span { color: var(--amber); }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__name span { color: var(--amber); }
.brand--footer .brand__logo { height: 56px; width: auto; object-fit: contain; border-radius: 12px; background: #fff; padding: 8px 12px; }

.site-nav { display: flex; align-items: center; gap: 14px; }
.site-nav > a { font-weight: 500; color: var(--ink); font-size: 0.9rem; white-space: nowrap; }
.site-nav > a:hover, .site-nav > a.active { color: var(--primary); }
.nav-user__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.nav-user__avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-user__avatar--lg { width: 48px; height: 48px; font-size: 1.2rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }

/* Menu utilisateur (avatar cliquable) */
.user-menu { position: relative; }
.user-menu__trigger { display: flex; align-items: center; gap: 4px; background: none; border: 1.5px solid var(--border); border-radius: 50px; padding: 3px 8px 3px 3px; cursor: pointer; color: var(--ink-light); transition: all var(--t); }
.user-menu__trigger:hover { border-color: var(--primary); color: var(--primary-dark); }
.user-menu__dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; z-index: 120; animation: fade .15s ease; }
.user-menu__head { display: flex; gap: 10px; align-items: center; padding: 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-menu__id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.user-menu__id strong { font-size: 0.92rem; }
.user-menu__id .muted { font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.user-menu__id .badge { width: fit-content; margin-top: 3px; text-transform: capitalize; }
.user-menu__links { display: flex; flex-direction: column; }
.user-menu__dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.user-menu__dropdown a:hover { background: var(--primary-light); color: var(--primary-dark); }
.user-menu__divider { height: 1px; background: var(--border); margin: 6px 0; }
.user-menu__logout { color: var(--danger) !important; }
.user-menu__logout:hover { background: #fdecee !important; color: var(--danger) !important; }

/* ───────────── Flash ───────────── */
.flash-wrap { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 200; width: min(92%, 560px); }
.flash { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-weight: 500; animation: flashIn .3s ease; background: #fff; border-left: 4px solid var(--info); }
.flash__icon { display: inline-flex; }
.flash__close { margin-left: auto; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: inherit; opacity: .6; line-height: 1; }
.flash--success { border-left-color: var(--success); color: var(--primary-dark); background: #ecfdf3; }
.flash--error { border-left-color: var(--danger); color: #842029; background: #fdecee; }
.flash--warning { border-left-color: var(--warning); color: #8a5a00; background: #fff7e6; }
.flash--info { border-left-color: var(--info); color: #1e3a8a; background: #eef2ff; }
.flash--out { animation: flashOut .4s ease forwards; }
@keyframes flashIn { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes flashOut { to { opacity: 0; transform: translate(-50%, -12px); } }
.flash-wrap { left: 50%; }

/* ───────────── Hero ───────────── */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #0E6B3A 0%, #1E9E57 60%, #2bb267 100%);
  padding: 90px 0 0;
}
.hero__overlay {
  position: absolute; inset: 0;
  /* Photo de fond + voile vert (lisibilité + charte). Le dégradé du .hero
     reste visible en repli automatique si l'image est absente. */
  background-image:
    radial-gradient(circle at 82% 18%, rgba(240,138,36,0.22), transparent 42%),
    linear-gradient(125deg, rgba(14,107,58,0.84) 0%, rgba(14,107,58,0.72) 42%, rgba(30,158,87,0.52) 100%),
    url('/images/hero.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center right;
  background-repeat: no-repeat;
}
.hero__content { position: relative; text-align: center; max-width: 820px; padding-bottom: 50px; }
.hero__badge {
  display: inline-block; padding: 8px 18px; border-radius: 50px;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px); font-size: 0.85rem; font-weight: 600; letter-spacing: .3px; margin-bottom: 22px;
}
.hero__title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; color: #fff; margin-bottom: 18px; }
.hero__title span { color: var(--amber-soft); font-style: italic; }
.hero__subtitle { font-size: clamp(1rem, 2vw, 1.18rem); color: rgba(255,255,255,0.92); max-width: 640px; margin: 0 auto 30px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Bandes défilantes */
.marquee { overflow: hidden; white-space: nowrap; position: relative; }
.marquee--flags { background: rgba(255,255,255,0.10); padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.15); }
.marquee--disciplines { background: rgba(14,107,58,0.35); padding: 12px 0; }
.marquee__track { display: inline-flex; gap: 14px; align-items: center; animation: scroll 90s linear infinite; padding-left: 14px; }
.marquee__track--reverse { animation: scrollReverse 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--flags .fi { width: 34px; height: 24px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.chip-disc { display: inline-block; padding: 6px 14px; border-radius: 50px; background: rgba(255,255,255,0.16); color: #fff; font-size: 0.85rem; font-weight: 500; }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes scrollReverse { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ───────────── Sections ───────────── */
.section { padding: 70px 0; }
.section--alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { text-align: center; max-width: 600px; margin: 0 auto 44px; }
.section__title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.section__sub { color: var(--ink-light); font-size: 1.05rem; }

/* Cartes de rôle */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.role-card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 26px; transition: all var(--t);
  display: flex; flex-direction: column; gap: 12px; overflow: hidden;
}
.role-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--primary); }
.role-card--coach::before { background: var(--primary-dark); }
.role-card--admin::before { background: var(--amber); }
.role-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.role-card__icon { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary-dark); }
.role-card--admin .role-card__icon { background: var(--amber-soft); color: var(--amber); }
.role-card h3 { font-size: 1.4rem; }
.role-card p { color: var(--ink-light); font-size: 0.95rem; flex: 1; }
.role-card__link { font-weight: 600; color: var(--primary-dark); display: inline-flex; align-items: center; gap: 4px; }
.role-card--admin .role-card__link { color: var(--amber); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { text-align: center; }
.feature__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--primary-light); color: var(--primary-dark); display: grid; place-items: center; margin: 0 auto 14px; }
.feature h4 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--ink-light); font-size: 0.9rem; }

/* ───────────── Statistiques ───────────── */
.stats { background: #fff; border-bottom: 1px solid var(--border); padding: 36px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-light); color: var(--primary-dark); display: grid; place-items: center; margin-bottom: 4px; }
.stat__num { font-family: var(--font-title); font-size: 2.4rem; font-weight: 700; color: var(--primary-dark); line-height: 1; }
.stat__label { font-size: 0.9rem; color: var(--ink-light); font-weight: 500; }

/* ───────────── Compteurs temps réel ───────────── */
.live-stats { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 30px 0; }
.live-stats__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.live-stats__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(255, 255, 255, 0.16); padding: 6px 14px; border-radius: 999px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); animation: livePulse 1.8s infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.live-stats__grid { display: grid; grid-template-columns: repeat(2, minmax(180px, 240px)); gap: 18px; width: 100%; max-width: 560px; }
.live-stat { text-align: center; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius-lg); padding: 20px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.live-stat__icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, 0.18); color: #fff; display: grid; place-items: center; margin-bottom: 2px; }
.live-stat__num { font-family: var(--font-title); font-size: 2.6rem; font-weight: 700; line-height: 1; color: #fff; }
.live-stat__label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); font-weight: 500; }

/* ───────────── Coachs en vedette ───────────── */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.showcase-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); transition: all var(--t); }
.showcase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.showcase-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.showcase-card__avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; flex-shrink: 0; overflow: hidden; }
.showcase-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.showcase-card__name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.showcase-card__spec { font-size: 0.85rem; color: var(--primary-dark); font-weight: 600; }
.showcase-card__meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--ink-light); margin-bottom: 12px; }
.showcase-card__meta .rating { color: var(--amber); font-weight: 700; }
.showcase-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; min-height: 26px; }

/* ───────────── Étapes ───────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 24px; text-align: center; }
.step__num { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: #fff; display: grid; place-items: center; font-family: var(--font-title); font-weight: 700; box-shadow: var(--shadow); }
.step__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--primary-light); color: var(--primary-dark); display: grid; place-items: center; margin: 10px auto 16px; }
.step h4 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-light); font-size: 0.92rem; }

/* ───────────── Profils Parent / Coach ───────────── */
.profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.profiles--3 { grid-template-columns: repeat(3, 1fr); }
.profile-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.profile-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--primary); }
.profile-card--parent::before { background: var(--amber); }
.profile-card--coach::before { background: linear-gradient(90deg, var(--amber), var(--primary)); }
.profile-card--commercial::before { background: var(--primary); }
.profile-card--commercial .profile-card__icon { background: var(--primary-light); color: var(--primary-dark); }

/* Lien d'invitation (parrainage) */
.invite-link { display: flex; gap: 8px; flex-wrap: wrap; }
.invite-link input { flex: 1; min-width: 200px; font-family: monospace; font-size: 0.85rem; background: var(--bg); }
.invite-share { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-card__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--primary-light); color: var(--primary-dark); display: grid; place-items: center; margin-bottom: 16px; }
.profile-card--parent .profile-card__icon { background: var(--amber-soft); color: var(--amber); }
.profile-card--coach .profile-card__icon { background: var(--amber-soft); color: var(--primary-dark); }
.profile-card h3 { font-size: 1.5rem; margin-bottom: 18px; }
.profile-card__list { list-style: none; margin-bottom: 24px; }
.profile-card__list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 0.95rem; }
.profile-card__list li svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* ───────────── CTA final ───────────── */
.cta-band { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 70px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(240,138,36,0.25), transparent 45%); }
.cta-band__inner { position: relative; max-width: 640px; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 1.08rem; margin-bottom: 28px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 6 garanties */
.features--6 { grid-template-columns: repeat(3, 1fr); }

/* ───────────── Footer ───────────── */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); margin-top: 70px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; padding: 50px 20px 36px; }
.site-footer__slogan { margin-top: 12px; color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.site-footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer__col a, .site-footer__col p { display: block; color: rgba(255,255,255,0.78); font-size: 0.9rem; margin-bottom: 8px; }
.site-footer__col a:hover { color: var(--amber-soft); }
.site-footer__col p { display: flex; align-items: center; gap: 8px; }
.site-footer__col p a { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.site-footer__col .wa-link:hover { color: #25D366; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 16px 0; font-size: 0.85rem; color: rgba(255,255,255,0.6); text-align: center; }

/* ───────────── Auth ───────────── */
.page-auth { background:
  radial-gradient(circle at 15% 15%, rgba(30,158,87,0.12), transparent 40%),
  radial-gradient(circle at 85% 85%, rgba(240,138,36,0.12), transparent 40%), var(--bg); min-height: 100vh; }
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: clamp(56px, 8vh, 80px) clamp(12px, 4vw, 24px) clamp(24px, 5vh, 48px); position: relative; }
.auth-back { position: absolute; top: clamp(12px, 3vw, 22px); left: clamp(12px, 3vw, 22px); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; z-index: 2; }
.auth-card { width: 100%; max-width: 460px; margin: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(24px, 5vw, 40px) clamp(20px, 5vw, 36px); }
.auth-logo { position: relative; margin: 0 auto 14px; display: grid; place-items: center; }
.auth-logo img { max-height: clamp(96px, 20vh, 170px); max-width: 100%; width: auto; border-radius: 14px; position: relative; z-index: 1; }
.auth-logo__halo { position: absolute; width: clamp(150px, 42vw, 230px); height: clamp(150px, 42vw, 230px); border-radius: 50%; background: radial-gradient(circle, rgba(30,158,87,0.35), transparent 65%); animation: halo 3s ease-in-out infinite; }
.auth-logo__fallback { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.8rem, 6vw, 2.4rem); color: var(--primary-dark); position: relative; z-index: 1; }
.auth-logo__fallback span { color: var(--amber); }
@keyframes halo { 0%,100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.15); opacity: 1; } }
.auth-title { text-align: center; font-size: clamp(1.5rem, 5vw, 1.8rem); }
.auth-sub { text-align: center; color: var(--ink-light); margin-bottom: clamp(18px, 4vh, 26px); font-size: 0.92rem; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 0.92rem; color: var(--ink-light); }
.auth-foot a { font-weight: 600; }
.auth-forgot { text-align: center; margin-top: 14px; font-size: 0.88rem; }
.auth-forgot a { color: var(--ink-light); font-weight: 600; }
.auth-forgot a:hover { color: var(--primary); }
.resend { margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 14px; }
.resend summary { cursor: pointer; font-size: 0.88rem; color: var(--ink-light); font-weight: 500; }
.resend__form { margin-top: 12px; }

/* ───────────── Formulaires ───────────── */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label { font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.field-label { display: block; margin-bottom: 10px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], select, textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; transition: border-color var(--t), box-shadow var(--t); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
textarea { resize: vertical; }
.input-sm, .select-sm { padding: 7px 10px; font-size: 0.88rem; width: auto; }

.checkbox { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--primary); }

/* Pills radio / checkbox */
.radio-pills, .role-pills, .op-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill { position: relative; cursor: pointer; }
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill span { display: inline-block; padding: 9px 18px; border: 1.5px solid var(--border); border-radius: 50px; font-size: 0.9rem; font-weight: 500; transition: all var(--t); }
.radio-pill input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }

.role-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-pill { cursor: pointer; }
.role-pill input { position: absolute; opacity: 0; }
.role-pill__body { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; border: 1.5px solid var(--border); border-radius: var(--radius); transition: all var(--t); text-align: center; color: var(--ink-light); }
.role-pill__body strong { color: var(--ink); font-size: 1rem; }
.role-pill__body small { font-size: 0.78rem; }
.role-pill input:checked + .role-pill__body { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.role-pill input:checked + .role-pill__body strong { color: var(--primary-dark); }

.op-pill input { position: absolute; opacity: 0; }
.op-pill span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--border); border-radius: 50px; font-size: 0.88rem; font-weight: 600; border-left: 4px solid var(--op, var(--primary)); transition: all var(--t); }
.op-pill input:checked + span { background: var(--primary-light); border-color: var(--primary); }

.check-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.check-pill { cursor: pointer; }
.check-pill input { position: absolute; opacity: 0; }
.check-pill span { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 50px; font-size: 0.85rem; transition: all var(--t); }
.check-pill input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }

.info-banner { display: block; padding: 12px 14px; background: var(--primary-light); border-radius: var(--radius-sm); font-size: 0.85rem; line-height: 1.55; color: var(--primary-dark); }
.info-banner .icon { vertical-align: -3px; margin-right: 6px; }
.info-banner strong { font-weight: 700; }
.info-banner--danger { background: #fdecee; color: #842029; }
.learner-context { margin-bottom: 18px; }
.learner-context .tag { vertical-align: middle; }
.learner-context__clear { margin-left: 8px; font-weight: 700; text-decoration: underline; }
.hint { font-size: 0.82rem; }

/* ───────────── Espaces (dashboard) ───────────── */
.space { padding: 36px 20px 60px; }
.space__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.space__title { font-size: clamp(1.6rem, 3vw, 2.1rem); display: flex; align-items: center; gap: 10px; }
.space__sub { color: var(--ink-light); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.kpi { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.kpi__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.kpi__icon--green { background: var(--primary-light); color: var(--primary-dark); }
.kpi__icon--amber { background: var(--amber-soft); color: var(--amber); }
.kpi__value { font-family: var(--font-title); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.kpi__label { font-size: 0.82rem; color: var(--ink-light); margin-top: 4px; }

/* Onglets */
.tabs__nav { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 12px 18px; background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; color: var(--ink-light); white-space: nowrap; transition: all var(--t); }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.tab-panel { display: none; animation: fade .3s ease; }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Panneaux */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.panel__head h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 9px; }
.panel__head h2 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 0.9rem; font-family: var(--font-body); }

.empty { text-align: center; padding: 40px 20px; color: var(--ink-light); }
.empty svg { color: var(--border); margin-bottom: 10px; }

/* Commissions (admin/finance) */
.seg-tabs { display: inline-flex; gap: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.seg-tab { padding: 7px 18px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--ink-light); }
.seg-tab:hover { color: var(--ink); }
.seg-tab.is-active { background: var(--primary); color: #fff; }
.seg-tab.is-active:hover { color: #fff; }
.comm-parrain { display: flex; align-items: center; gap: 12px; }
.comm-parrain__pay { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comm-parrain__pay form, .table td form { margin: 0; display: inline; }
.table td form { white-space: nowrap; }

/* Learner cards */
.learner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.learner-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: all var(--t); }
.learner-card:hover { box-shadow: var(--shadow); border-color: var(--primary-light); }
.learner-card__top { display: flex; align-items: center; gap: 12px; }
.learner-card__avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; flex-shrink: 0; }
.learner-card__avatar.is-f { background: #d6457f; }
.learner-card__avatar.is-m { background: var(--info); }
.learner-card__title { font-weight: 700; }
.learner-card__meta { font-size: 0.82rem; color: var(--ink-light); }
.learner-card__del { margin-left: auto; }
.learner-card__loc { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--ink-light); margin: 12px 0; }
.learner-card__needs { display: flex; flex-wrap: wrap; gap: 6px; }
.learner-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.learner-card__actions .btn { flex: 1; min-width: 130px; }

.tag { display: inline-block; padding: 4px 11px; border-radius: 50px; background: var(--primary-light); color: var(--primary-dark); font-size: 0.78rem; font-weight: 600; }
.tag--lg { padding: 6px 14px; font-size: 0.85rem; }
.tag--amber { background: var(--amber-soft); color: #a45a10; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Besoins */
.need-block { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; transition: box-shadow 0.3s ease, border-color 0.3s ease; scroll-margin-top: 90px; }
.need-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.need-block__title { font-size: 1rem; }
.need-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.need-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; background: var(--bg); border-radius: var(--radius-sm); }
.need-edit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.need-item .tag--lg { flex-shrink: 0; }
.flash-target { animation: flashTarget 1.6s ease; }
@keyframes flashTarget { 0%, 100% { box-shadow: var(--shadow-sm); border-color: var(--border); } 25% { box-shadow: 0 0 0 3px var(--primary-light); border-color: var(--primary); } }
.need-form__opts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.disc-picker { position: relative; }
.disc-picker__box { margin-top: 10px; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; max-height: 320px; overflow-y: auto; background: var(--bg); }

/* Accordéons */
.acc { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; background: #fff; }
.acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #fff; border: none; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.acc__head:hover { background: var(--bg); }
.acc__head svg { transition: transform var(--t); }
.acc.open .acc__head svg { transform: rotate(180deg); }
.acc__body { display: none; padding: 12px 14px; border-top: 1px solid var(--border); }
.acc.open .acc__body { display: block; }
.acc__group { margin-bottom: 14px; }
.acc__group-label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-light); margin-bottom: 8px; }

.disc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.disc-row__tarif { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eur-conv { font-size: 0.8rem; color: var(--ink-light); min-width: 64px; }
.rate-eur { font-size: 0.8rem; color: var(--amber); font-weight: 600; }
.mission-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.fx-status { font-size: 0.82rem; margin: -8px 0 22px; display: flex; align-items: center; gap: 6px; }

/* Espace coach : tête de page + complétion */
.profil-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.complete-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.complete-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.86rem; font-weight: 600; color: var(--ink-light); transition: all var(--t); }
.complete-item:hover { border-color: var(--primary); }
.complete-item.is-done { color: var(--primary-dark); border-color: var(--primary-light); background: var(--primary-light); }
.complete-item.is-done svg { color: var(--success); }
.coach-sidenav__cta { background: var(--primary-light); color: var(--primary-dark) !important; border-radius: var(--radius-sm); margin-top: 8px; font-weight: 700; }

/* À propos */
.about-contact { text-align: center; max-width: 520px; margin: 0 auto; }
.about-contact p { padding: 8px 0; font-size: 1rem; }

/* Avis / évaluation */
.avis-list { display: flex; flex-direction: column; gap: 12px; }
.avis-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.avis-item__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.avis-stars { color: var(--amber); font-size: 0.95rem; letter-spacing: 1px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 1.6rem; color: var(--border); cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--amber); }
.revenue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.cycle-tarif { background: var(--primary-light); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.cycle-tarif .field-label { margin-bottom: 8px; }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.gps-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.gps-hint { font-size: 0.82rem; }

/* Paiement */
.pay-form { max-width: 560px; }
.pay-conv { font-size: 0.88rem; color: var(--primary-dark); font-weight: 600; }

/* Tableaux */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; padding: 11px 12px; border-bottom: 2px solid var(--border); color: var(--ink-light); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .3px; }
.table td { padding: 12px; border-bottom: 1px solid var(--border); }
.table tr:hover td { background: var(--bg); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 50px; font-size: 0.76rem; font-weight: 700; border: none; cursor: default; }
.badge--ok { background: #d1fae5; color: #065f46; }
.badge--pending { background: var(--amber-soft); color: #a45a10; }
.badge--no { background: #fde2e4; color: #842029; }
.badge--certif { background: linear-gradient(135deg, var(--amber), #f5a623); color: #fff; }
.badge--soft { background: var(--bg); color: var(--ink-light); }
form .badge { cursor: pointer; }

/* ───────────── Coach layout ───────────── */
.coach-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.coach-sidebar { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 104px); overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.coach-sidebar__photo { text-align: center; margin-bottom: 14px; }
.coach-avatar { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 8px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 2.4rem; font-weight: 700; overflow: hidden; }
.coach-avatar img { width: 100%; height: 100%; object-fit: cover; }
.photo-edit { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--primary-dark); cursor: pointer; font-weight: 600; }
.photo-edit input { display: none; }
.coach-sidebar__name { text-align: center; font-size: 1.2rem; margin-bottom: 10px; }
.coach-sidebar__badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.coach-sidebar__stat { background: var(--bg); border-radius: var(--radius); padding: 14px; text-align: center; margin-bottom: 16px; }
.coach-sidebar__stat-label { font-size: 0.78rem; color: var(--ink-light); }
.coach-sidebar__stat-value { font-family: var(--font-title); font-size: 1.4rem; font-weight: 700; color: var(--primary-dark); }
.coach-sidebar__stat-sub { font-size: 0.8rem; color: var(--ink-light); }
.coach-sidebar__docs-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.pill-count { background: var(--primary); color: #fff; border-radius: 50px; padding: 1px 9px; font-size: 0.78rem; }
.coach-sidenav { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.coach-sidenav a { padding: 8px 10px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 500; color: var(--ink); }
.coach-sidenav a:hover { background: var(--primary-light); color: var(--primary-dark); }
.coach-main .panel { scroll-margin-top: 84px; }
.acc--static .acc__head { cursor: pointer; }

/* ───────────── Recherche ───────────── */
.filters { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.filters .field { flex: 1; min-width: 160px; }
.recherche-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: start; }
.recherche-list { display: flex; flex-direction: column; gap: 12px; max-height: 640px; overflow-y: auto; padding-right: 4px; }
.coach-result { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: all var(--t); }
.coach-result:hover { box-shadow: var(--shadow); border-color: var(--primary-light); }
.coach-result__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; flex-shrink: 0; overflow: hidden; }
.coach-result__avatar img { width: 100%; height: 100%; object-fit: cover; }
.coach-result__name { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.coach-result__meta { font-size: 0.82rem; color: var(--ink-light); margin: 3px 0 8px; }
.coach-result__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.coach-result__price { font-size: 0.9rem; }
.recherche-map { position: sticky; top: 84px; }
#map { height: 600px; border-radius: var(--radius-lg); border: 1px solid var(--border); z-index: 1; }
.map-note { margin-top: 8px; text-align: center; }
.map-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.map-toolbar__hint { font-size: 0.82rem; flex: 1; min-width: 160px; }
.coach-result__distance { color: var(--primary-dark); font-weight: 700; }

/* Marqueur avatar « façon Snapchat » */
.avatar-pin { position: relative; width: 50px; height: 50px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.3); display: grid; place-items: center; overflow: visible; }
.avatar-pin::after { content: ''; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 14px; height: 14px; background: #fff; border-right: 3px solid #fff; box-shadow: 3px 3px 6px rgba(0,0,0,0.18); z-index: -1; }
.avatar-pin img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-pin span { color: #fff; font-weight: 700; font-size: 1.25rem; font-family: var(--font-title); }
.avatar-pin--certif { border-color: var(--amber); }
.avatar-pin__badge { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; background: var(--amber); color: #fff; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font-size: 0.65rem; font-style: normal; }

/* Marqueur « vous êtes ici » (point bleu pulsant) */
.user-pin { width: 26px; height: 26px; display: grid; place-items: center; }
.user-pin__dot { width: 16px; height: 16px; background: var(--info); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 rgba(37,99,235,0.5); animation: userPulse 2s infinite; }
@keyframes userPulse { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.5); } 70% { box-shadow: 0 0 0 16px rgba(37,99,235,0); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }
.popup-dist { color: var(--primary-dark); font-weight: 600; }

/* Documents / dropzone */
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 30px; text-align: center; cursor: pointer; transition: all var(--t); color: var(--ink-light); }
.dropzone:hover, .dropzone.is-drag { border-color: var(--primary); background: var(--primary-light); }
.dropzone svg { color: var(--primary); margin-bottom: 8px; }
.dropzone__file { display: block; margin-top: 8px; font-weight: 600; color: var(--primary-dark); }
.doc-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.doc-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.doc-item__info { flex: 1; display: flex; flex-direction: column; }
.doc-item__info a { font-weight: 600; font-size: 0.9rem; }

/* Priorité des disciplines (réordonnancement) */
.prio-block { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--border); }
.prio-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.prio-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.prio-item:first-child { border-color: var(--primary); background: var(--primary-light); }
.prio-rank { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 0.82rem; display: grid; place-items: center; }
.prio-label { flex: 1; min-width: 0; font-size: 0.92rem; font-weight: 500; }
.prio-moves { display: flex; gap: 4px; flex-shrink: 0; }
.prio-move { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius-sm); cursor: pointer; color: var(--ink-light); transition: all var(--t); }
.prio-move:hover { border-color: var(--primary); color: var(--primary); }
.prio-move--up svg { transform: rotate(180deg); }

/* Documents à fournir (checklist cliquable → import direct) */
.doc-req { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.doc-req__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; transition: all var(--t); }
.doc-req__item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.doc-req__item.is-ok { border-color: var(--primary); background: var(--primary-light); }
.doc-req__form { margin: 0; }
.doc-req__pick { display: flex; align-items: center; gap: 10px; padding: 11px 12px; cursor: pointer; }
.doc-req__icon { display: grid; place-items: center; color: var(--ink-light); flex-shrink: 0; }
.doc-req__item:hover .doc-req__icon { color: var(--primary); }
.doc-req__item.is-ok .doc-req__icon { color: var(--primary-dark); }
.doc-req__label { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-req__label .muted { font-size: 0.8rem; }
.doc-req__action { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; font-weight: 600; color: var(--primary-dark); white-space: nowrap; }
.doc-req__pick .badge { flex-shrink: 0; }

/* Guides d'utilisation */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; }
.guide-card__icon { width: 48px; height: 48px; border-radius: var(--radius); display: grid; place-items: center; background: var(--primary-light); color: var(--primary); margin-bottom: 4px; }
.guide-card__title { font-size: 1.1rem; }
.guide-card__desc { font-size: 0.88rem; flex: 1; }
.guide-card__actions { display: flex; gap: 8px; padding-top: 10px; flex-wrap: wrap; }

/* Identifiants d'un compte créé par l'admin (« compte tout prêt ») */
.cred-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.cred-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cred-row__label { width: 140px; flex: none; font-size: 0.85rem; color: var(--ink-light); font-weight: 600; }
.cred-row__value { font-weight: 600; text-transform: capitalize; }
.cred-row__input { flex: 1; min-width: 200px; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9rem; background: #F4F6F0; }
@media (max-width: 560px) { .cred-row__label { width: 100%; } }

/* Bandeau « Support de formation » */
.formation-banner { display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
  border-left: 4px solid var(--primary); background: linear-gradient(90deg, var(--primary-light), transparent 70%); }
.formation-banner__icon { flex: none; width: 52px; height: 52px; border-radius: var(--radius);
  display: grid; place-items: center; background: var(--primary); color: #fff; }
.formation-banner__body { flex: 1 1 auto; min-width: 0; }
.formation-banner__title { font-size: 1.12rem; margin: 0; }
.formation-banner__desc { font-size: 0.88rem; margin: 4px 0 0; }
.formation-banner .btn { flex: none; }
@media (max-width: 560px) { .formation-banner { flex-wrap: wrap; } .formation-banner .btn { width: 100%; justify-content: center; } }

/* Graphique temps réel (accueil) */
.live-chart { margin: 8px auto 0; width: 100%; max-width: 860px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-lg); padding: 12px 18px 12px; }
.live-chart[hidden] { display: none; }
.live-chart__scales { display: flex; justify-content: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.chart-scale { border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: rgba(255, 255, 255, 0.85); border-radius: 999px; padding: 4px 14px; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all var(--t); }
.chart-scale:hover { background: rgba(255, 255, 255, 0.12); }
.chart-scale.is-active { background: #fff; color: var(--primary-dark); border-color: #fff; }
.live-chart__canvas { height: 240px; }
.live-chart__canvas canvas { width: 100% !important; height: 100% !important; }
@media (max-width: 600px) { .live-chart__canvas { height: 190px; } .live-chart { padding: 10px 10px 8px; } }

/* Mini sommaire flottant (table des matières de la page) */
.main > section, .main .panel { scroll-margin-top: 84px; } /* cible alignée sous l'en-tête collant */
.toc-fab { position: fixed; left: 18px; bottom: 18px; z-index: 60; }
.toc-fab__toggle { width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--primary); color: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; cursor: pointer; transition: background var(--t), transform var(--t); }
.toc-fab__toggle:hover { background: var(--primary-dark); transform: translateY(-2px); }
.toc-fab.is-open .toc-fab__toggle { background: var(--primary-dark); }
.toc-fab__menu { position: absolute; bottom: calc(100% + 10px); left: 0; min-width: 240px; max-width: 320px; max-height: 60vh; overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; }
.toc-fab__menu[hidden] { display: none; }
.toc-fab__title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-light); padding: 4px 10px 6px; font-weight: 700; }
.toc-fab__list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-fab__item { width: 100%; text-align: left; border: none; background: none; cursor: pointer; padding: 8px 10px; border-radius: var(--radius-sm); font: inherit; font-size: 0.88rem; color: var(--ink); border-left: 3px solid transparent; transition: background var(--t), color var(--t); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc-fab__item:hover { background: var(--bg); }
.toc-fab__item.is-active { background: var(--primary-light); color: var(--primary-dark); border-left-color: var(--primary); font-weight: 600; }
@media (max-width: 600px) { .toc-fab { left: 12px; bottom: 12px; } .toc-fab__menu { min-width: 200px; max-width: 76vw; } }

/* Bouton d'aide flottant (accès au guide depuis n'importe quelle page) */
.help-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; padding: 11px 16px; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 0.9rem; transition: transform var(--t), background var(--t); }
.help-fab:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.help-fab--raised { bottom: 84px; }
@media (max-width: 600px) { .help-fab { padding: 12px; } .help-fab__label { display: none; } .help-fab--raised { bottom: 78px; } }

/* Bouton flottant « Test de niveau » CERTEL (accueil) — renvoie vers booking.eduweb.ci */
.certel-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 10px; border-radius: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #7C5CFC, #5A3CD8); box-shadow: 0 10px 28px rgba(91, 63, 214, .42);
  transition: transform var(--t), box-shadow var(--t); }
.certel-fab:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(91, 63, 214, .52); }
.certel-fab__icon { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .2); position: relative; }
/* Halo clignotant autour du chapeau académique (l'icône) */
.certel-fab__icon::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); animation: certel-halo 1.5s ease-out infinite; }
@keyframes certel-halo {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); }
  70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) { .certel-fab__icon::after { animation: none; } }
.certel-fab__text { display: flex; flex-direction: column; line-height: 1.18; }
.certel-fab__title { font-weight: 700; font-size: 0.96rem; }
.certel-fab__sub { font-size: 0.72rem; opacity: .9; }
@media (max-width: 600px) { .certel-fab { padding: 9px 13px 9px 9px; } .certel-fab__sub { display: none; } }

/* Cartes outils du tableau de bord (aide + langue) */
.dash-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.dash-tool { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0; }
.dash-tool__icon { width: 42px; height: 42px; border-radius: var(--radius); display: grid; place-items: center; background: var(--primary-light); color: var(--primary); flex-shrink: 0; }
.dash-tool__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-tool__body strong { font-size: 0.95rem; }
.dash-tool__body .muted { font-size: 0.82rem; }
.dash-tool__select { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; max-width: 170px; background: var(--card); }
@media (max-width: 768px) { .dash-tools { grid-template-columns: 1fr; } }

/* Widget festif « 66e anniversaire de l'indépendance » (accueil, temporaire) */
.ci66 { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 300;
  width: 76px; cursor: grab; touch-action: none; transition: width .28s cubic-bezier(.22,1,.36,1); }
.ci66:active { cursor: grabbing; }
.ci66:hover { width: 250px; }
.ci66__img { display: block; width: 100%; height: auto; border-radius: 10px; border: 2px solid #F77F00;
  box-shadow: 0 8px 26px rgba(0,0,0,.38); }
.ci66__close { position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: #0E1E3A; color: #fff; font-size: 14px; line-height: 22px; text-align: center;
  cursor: pointer; z-index: 3; padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,.45); }
.ci66__close:hover { background: #C1121F; }
.ci66__fx { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 1; }
.ci66__spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%); animation: ci66-spark .9s ease-out forwards; box-shadow: 0 0 6px currentColor; }
@keyframes ci66-spark {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .ci66__spark { display: none; } .ci66 { transition: none; } }
@media (max-width: 600px) { .ci66 { width: 62px; top: 70px; } .ci66:hover { width: 190px; } }

/* Sens de lecture droite-à-gauche (arabe) */
[dir="rtl"] .help-fab { right: auto; left: 18px; }
[dir="rtl"] .certel-fab { right: auto; left: 18px; }
[dir="rtl"] .user-menu__dropdown { right: auto; left: 0; }
[dir="rtl"] .chat-new__menu { right: auto; left: 0; }

/* Paramètres (super-admin) */
.settings-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.settings-meta form { margin: 0; }

/* Review (admin) */
.review-status { display: flex; gap: 8px; margin-bottom: 18px; }
.review-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.review-col { display: flex; flex-direction: column; }
.kv { list-style: none; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.kv li span { color: var(--ink-light); }
.panel--actions { position: sticky; top: 84px; }

/* ───────────── Country picker modal ───────────── */
.country-trigger { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); transition: all var(--t); }
.country-trigger:hover { border-color: var(--primary); }
.country-trigger .fi { width: 26px; height: 19px; border-radius: 3px; }
.country-trigger__caret { margin-left: auto; color: var(--ink-light); }

.cp-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cp-modal[hidden] { display: none; }
.cp-modal__backdrop { position: absolute; inset: 0; background: rgba(26,42,26,0.55); backdrop-filter: blur(4px); }
.cp-modal__dialog { position: relative; background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 480px; max-height: 80vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: modalIn .25s ease; overflow: hidden; }
.cp-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cp-modal__head h3 { font-size: 1.15rem; }
.cp-modal__close { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink-light); line-height: 1; }
.cp-modal__search { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.cp-modal__list { overflow-y: auto; padding: 8px 12px 16px; }
.cp-group__title { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-light); padding: 12px 8px 6px; }
.cp-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: none; background: none; cursor: pointer; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.92rem; color: var(--ink); text-align: left; }
.cp-item:hover { background: var(--primary-light); }
.cp-item.is-selected { background: var(--primary-light); font-weight: 600; }
.cp-item .fi { width: 28px; height: 21px; border-radius: 3px; flex-shrink: 0; }
.cp-empty { text-align: center; color: var(--ink-light); padding: 30px; }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }

/* ───────────── Modal générique ───────────── */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(26,42,26,0.55); backdrop-filter: blur(4px); }
.modal__dialog { position: relative; background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalIn .25s ease; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal__head h3 { font-size: 1.25rem; }
.modal__close { background: none; border: none; font-size: 1.7rem; cursor: pointer; color: var(--ink-light); line-height: 1; }
.modal__body { padding: 24px; }

.error-page { padding: 90px 20px; }
.error-card { text-align: center; max-width: 480px; margin: 0 auto; }
.error-code { font-family: var(--font-title); font-size: 5rem; font-weight: 900; color: var(--primary-light); line-height: 1; }
.error-card h1 { font-size: 1.8rem; margin: 8px 0 12px; }
.error-card p { color: var(--ink-light); margin-bottom: 24px; }

/* ───────────── Admin : dashboard remasterisé ───────────── */
.space__head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kpi--link { text-decoration: none; color: inherit; cursor: pointer; transition: all var(--t); }
.kpi--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); color: inherit; }
.kpi__go { display: block; font-size: 0.74rem; color: var(--primary); font-weight: 700; margin-top: 2px; opacity: 0; transform: translateX(-4px); transition: all var(--t); }
.kpi--link:hover .kpi__go { opacity: 1; transform: none; }
.kpi--alert { border-color: var(--amber); }
.kpi--alert .kpi__value { color: var(--amber); }

.admin-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-bottom: 22px; }

.bar-stat { margin-bottom: 16px; }
.bar-stat__row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; }
.bar { height: 12px; background: var(--bg); border-radius: 50px; overflow: hidden; }
.bar__fill { height: 100%; border-radius: 50px; transition: width 0.9s cubic-bezier(.22,1,.36,1); }
.bar__fill--green { background: var(--primary); }
.bar__fill--amber { background: var(--amber); }
.bar__fill--dark { background: var(--primary-dark); }

.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.donut { --valide: 0; --pending: 0; width: 140px; height: 140px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(
    var(--primary) 0 calc(var(--valide) * 1%),
    var(--amber) calc(var(--valide) * 1%) calc((var(--valide) + var(--pending)) * 1%),
    var(--danger) calc((var(--valide) + var(--pending)) * 1%) 100%);
  display: grid; place-items: center; position: relative; }
.donut__hole { width: 92px; height: 92px; background: var(--card); border-radius: 50%; display: grid; place-items: center; text-align: center; }
.donut__hole span { font-family: var(--font-title); font-size: 1.7rem; font-weight: 700; color: var(--primary-dark); line-height: 1; }
.donut__hole small { font-size: 0.72rem; color: var(--ink-light); }
.legend { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.legend strong { margin-left: auto; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--primary); } .dot--amber { background: var(--amber); }
.dot--red { background: var(--danger); } .dot--gold { background: #f5a623; }

.ministat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.ministat { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.ministat strong { font-family: var(--font-title); font-size: 1.4rem; display: block; line-height: 1; color: var(--ink); }
.ministat span { font-size: 0.78rem; color: var(--ink-light); }
.ministat--link { transition: all var(--t); }
.ministat--link:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.btn-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--amber); color: #fff; font-size: 0.72rem; font-weight: 700; margin-left: 4px; }

.activity { display: flex; flex-direction: column; }
.activity__item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.activity__item:last-child { border-bottom: none; }
.activity__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex-shrink: 0; }
.activity__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.activity__body strong { font-size: 0.92rem; }
.activity__date { font-size: 0.82rem; }
.role-parent { background: var(--primary); }
.role-coach { background: var(--amber); }
.role-admin { background: var(--primary-dark); }
.role-commercial { background: #6d28d9; }

/* Gestion utilisateurs */
.userbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.userbar__tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-filter { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 50px; border: 1.5px solid var(--border); background: #fff; font-size: 0.88rem; font-weight: 600; color: var(--ink); transition: all var(--t); }
.chip-filter span { background: var(--bg); border-radius: 50px; padding: 1px 8px; font-size: 0.78rem; color: var(--ink-light); }
.chip-filter:hover { border-color: var(--primary); color: var(--primary-dark); }
.chip-filter.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-filter.active span { background: rgba(255,255,255,0.25); color: #fff; }
.userbar__search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 0 12px; color: var(--ink-light); min-width: 240px; }
.userbar__search input { border: none; padding: 10px 0; }
.userbar__search input:focus { outline: none; box-shadow: none; }
.user-cell { display: flex; align-items: center; gap: 12px; }
.table--users select { padding: 6px 10px; font-size: 0.85rem; }
.inline-role { margin: 0; }
.role-pills { grid-template-columns: repeat(3, 1fr); }

/* Mon compte */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }

/* Gestion des administrateurs */
.admins-list { display: flex; flex-direction: column; gap: 14px; }
.admin-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.admin-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.admin-card__id { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.admin-card__perms { display: flex; flex-direction: column; gap: 12px; }
.admin-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Réservation */
.reserve-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; align-items: start; }
.reserve-coach { display: flex; align-items: center; gap: 14px; }
.coach-result__book { margin-top: 12px; width: 100%; }
.invoice { background: var(--primary-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 4px 0 4px; }
.invoice__row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 0.95rem; }
.invoice__row--total { border-top: 1px dashed var(--primary); margin-top: 6px; padding-top: 12px; font-size: 1.05rem; }
.invoice__row--total strong { color: var(--primary-dark); font-family: var(--font-title); font-size: 1.25rem; }
.invoice__note { font-size: 0.78rem; color: var(--ink-light); margin-top: 8px; }

/* ───────────── Page Tarifs ───────────── */
.tarifs-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 64px 0 54px; text-align: center; position: relative; overflow: hidden; }
.tarifs-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(240,138,36,0.22), transparent 45%); }
.tarifs-hero .container { position: relative; }
.tarifs-hero__title { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin: 14px 0 10px; }
.tarifs-hero__sub { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: all var(--t); display: flex; flex-direction: column; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pricing-card--featured { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.pricing-card__flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--amber); color: #fff; font-size: 0.74rem; font-weight: 700; padding: 5px 14px; border-radius: 50px; white-space: nowrap; }
.pricing-card__title { font-size: 1.35rem; margin-bottom: 14px; }
.pricing-card__price { display: flex; flex-direction: column; }
.pricing-card__price strong { font-family: var(--font-title); font-size: 2.2rem; color: var(--primary-dark); line-height: 1; }
.pricing-card__unit { font-size: 0.88rem; color: var(--ink-light); margin-top: 4px; }
.pricing-card__eur { font-size: 0.82rem; color: var(--amber); font-weight: 600; margin: 6px 0 12px; }
.pricing-card__desc { color: var(--ink-light); font-size: 0.92rem; margin-bottom: 16px; }
.pricing-card__list { list-style: none; margin-bottom: 22px; flex: 1; }
.pricing-card__list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 0.9rem; }
.pricing-card__list li svg { color: var(--success); flex-shrink: 0; }
.tarifs-notes { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.coach-result__price--official { font-size: 0.85rem; color: var(--ink-light); display: flex; align-items: center; gap: 6px; }
.coach-result__price--official a { font-weight: 700; }

/* ───────────── Publicité — EduWeb Éditions ───────────── */
.editions { position: relative; overflow: hidden; padding: 70px 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(240,138,36,0.14), transparent 40%),
    radial-gradient(circle at 88% 80%, rgba(30,158,87,0.18), transparent 42%),
    linear-gradient(135deg, #0c241a 0%, #0E6B3A 55%, #0c2a1c 100%);
  color: #fff;
}
.editions__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.editions__eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #f5c860; background: rgba(245,200,96,0.12); border: 1px solid rgba(245,200,96,0.4); padding: 6px 16px; border-radius: 50px; margin-bottom: 16px; }
.editions__title { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 10px; }
.editions__title::after { content: ''; display: block; width: 70px; height: 3px; margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, #f5c860, transparent); }
.editions__sub { color: rgba(255,255,255,0.85); font-size: 1.05rem; }

.editions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 900px; margin: 0 auto; }
.book { background: rgba(255,255,255,0.04); border: 1px solid rgba(245,200,96,0.25); border-radius: var(--radius-lg); padding: 16px; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.book:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0,0,0,0.45); border-color: #f5c860; }
.book__cover { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 26px rgba(0,0,0,0.45); background: #0c241a; }
.book__cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.book__ph { display: none; }
.book__cover--ph .book__ph { display: flex; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 18px;
  background: radial-gradient(circle at 50% 30%, rgba(240,138,36,0.25), transparent 60%), linear-gradient(160deg, #0E6B3A, #0c241a); }
.book__ph-brand { font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: #f5c860; font-weight: 700; }
.book__ph-title { font-family: var(--font-title); font-size: 1.2rem; font-weight: 700; color: #fff; }
.book__ph-level { font-size: 0.95rem; color: #f5c860; font-weight: 700; border: 1px solid rgba(245,200,96,0.5); border-radius: 8px; padding: 4px 12px; }
.book__info { text-align: center; margin-top: 14px; }
.book__info h3 { color: #fff; font-size: 1.05rem; }
.book__info h3 span { color: #f5c860; }
.book__info p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-top: 2px; }

.editions__cta { text-align: center; margin-top: 38px; }
.editions__note { display: block; margin-top: 14px; color: rgba(255,255,255,0.7); font-size: 0.88rem; }

/* ───────────── Animations de défilement (tout le site) ───────────── */
body { animation: pageFade 0.4s ease; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.22,1,.36,1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee__track { animation: none !important; }
}

/* ───────────── Responsive ───────────── */
/* Le nom complet est masqué sur les écrans moyens (barre horizontale serrée) */
@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-user__name { display: none; }
}

@media (max-width: 1024px) {
  .coach-layout { grid-template-columns: 240px 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .recherche-layout { grid-template-columns: 1fr; }
  .recherche-map { position: static; }
  #map { height: 420px; }
  .panel--actions { position: static; }

  /* Menu en hamburger dès 1024px pour éviter l'entassement (menu admin) */
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 78px; left: 0; right: 0; max-height: calc(100vh - 86px); max-height: calc(100dvh - 86px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #fff; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: none; z-index: 90; }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 8px 4px; font-size: 0.95rem; }
  .site-nav .btn { width: 100%; }
  /* Menu utilisateur : à plat dans le menu mobile */
  .user-menu { width: 100%; }
  .user-menu__trigger { width: 100%; justify-content: flex-start; border-radius: var(--radius-sm); padding: 8px; }
  .user-menu__dropdown { position: static; width: 100%; max-height: none; overflow: visible; box-shadow: none; border: none; padding: 0; margin-top: 6px; }
}

@media (max-width: 768px) {
  .role-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .coach-layout { grid-template-columns: 1fr; }
  .coach-sidebar { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .reserve-grid { grid-template-columns: 1fr; }
  .complete-grid { grid-template-columns: 1fr; }
  .ministat-grid { grid-template-columns: 1fr 1fr; }
  .profiles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .features--6 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .editions__grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .userbar { flex-direction: column; align-items: stretch; }
  .userbar__search { min-width: 0; }

  /* Country picker → bottom-sheet */
  .cp-modal { align-items: flex-end; padding: 0; }
  .cp-modal__dialog { max-width: 100%; max-height: 85vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; animation: sheetIn .3s ease; }
  @keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
}

@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 22px; }
  .role-pills { grid-template-columns: 1fr; }
  .editions__grid { grid-template-columns: 1fr; max-width: 300px; }
  .hero { padding-top: 60px; }
}

/* ───────────── Messagerie ───────────── */
.nav-msg { position: relative; display: inline-flex; align-items: center; color: var(--ink); }
.nav-msg:hover, .nav-msg.active { color: var(--primary); }
.nav-msg__badge { position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 0.66rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }

.chat { padding-top: 24px; padding-bottom: 24px; }
.chat__panes { display: grid; grid-template-columns: 320px 1fr; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; height: calc(100vh - 200px); min-height: 460px; }
.chat__list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; }
.chat__list-head { padding: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chat__title { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.chat__convs { overflow-y: auto; flex: 1; }
.chat__empty-list { padding: 18px; }
.chat-conv { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: none; background: none; cursor: pointer; text-align: left; border-bottom: 1px solid var(--border); transition: background var(--t); }
.chat-conv:hover { background: var(--bg); }
.chat-conv.is-active { background: var(--primary-light); }
.chat-conv__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-conv__body strong { font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conv__last { font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conv__badge { background: var(--primary); color: #fff; min-width: 20px; height: 20px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; flex-shrink: 0; }

.chat-new { position: relative; }
.chat-new > summary { list-style: none; cursor: pointer; }
.chat-new > summary::-webkit-details-marker { display: none; }
.chat-new__menu { position: absolute; right: 0; top: calc(100% + 6px); width: 280px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 20; padding: 10px; }
.chat-new__search { width: 100%; margin-bottom: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; }
.chat-new__items { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.chat-contact { display: flex; align-items: center; gap: 10px; padding: 8px; border: none; background: none; cursor: pointer; text-align: left; border-radius: var(--radius-sm); }
.chat-contact:hover { background: var(--bg); }
.chat-contact__name { font-size: 0.9rem; }

.chat__thread { display: flex; flex-direction: column; min-width: 0; }
.chat__placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ink-light); text-align: center; padding: 30px; }
.chat__placeholder svg { color: var(--border); }
.chat__active { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat__thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.chat__thread-head .muted { font-size: 0.8rem; text-transform: capitalize; }
.chat__messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.bubble { max-width: 72%; padding: 9px 13px; border-radius: 14px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow-sm); }
.bubble__text { font-size: 0.92rem; white-space: pre-wrap; word-break: break-word; }
.bubble__time { font-size: 0.68rem; opacity: 0.7; align-self: flex-end; }
.bubble--them { background: var(--card); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble--me { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat__composer { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat__composer-row { display: flex; align-items: flex-end; gap: 8px; }
.chat__composer textarea { flex: 1; resize: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; font: inherit; font-size: 0.92rem; max-height: 120px; }
.chat__composer textarea:focus { outline: none; border-color: var(--primary); }
.chat__send { padding: 10px 14px; flex-shrink: 0; }
.chat__attach { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--border); color: var(--ink-light); cursor: pointer; flex-shrink: 0; transition: all var(--t); }
.chat__attach:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.chat__filechip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: var(--primary-light); color: var(--primary-dark); border-radius: 999px; padding: 4px 6px 4px 10px; font-size: 0.82rem; max-width: 100%; }
.chat__filechip > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.chat__filechip button { border: none; background: rgba(14,107,58,.12); color: var(--primary-dark); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; display: grid; place-items: center; }
.chat__filechip button:hover { background: var(--primary); color: #fff; }

/* L'attribut [hidden] doit l'emporter sur les display: flex/grid ci-dessus */
.chat__placeholder[hidden], .chat__active[hidden], .chat__filechip[hidden], .chat-contact[hidden], .nav-msg__badge[hidden], .bulk-bar[hidden] { display: none; }

/* Pièces jointes dans les bulles */
.bubble__imgwrap { display: block; }
.bubble__img { max-width: 220px; max-height: 220px; border-radius: 10px; display: block; }
.bubble__file { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.06); color: inherit; font-size: 0.86rem; word-break: break-all; }
.bubble--me .bubble__file { background: rgba(255,255,255,.2); color: #fff; }
.bubble--me .bubble__file:hover { color: #fff; }

/* ───────────── Actions par lot (admin utilisateurs) ───────────── */
.col-check { width: 36px; text-align: center; }
.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--primary-light); border: 1px solid var(--primary); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; }
.bulk-bar__count { font-size: 0.9rem; color: var(--primary-dark); font-weight: 500; }
.bulk-bar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Refus groupé de coachs : barre rouge + champ motif pleine largeur */
.bulk-bar--refuse { background: #fdecee; border-color: var(--danger); }
.bulk-bar--refuse .bulk-bar__count { color: var(--danger); }
.bulk-bar__motif { flex: 1 1 100%; width: 100%; min-height: 46px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; font: inherit; font-size: 0.9rem; resize: vertical; }
.bulk-bar__motif:focus { outline: none; border-color: var(--danger); }
.th-check { width: 36px; }

@media (max-width: 768px) {
  .chat__panes { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .chat__list { border-right: none; border-bottom: 1px solid var(--border); max-height: 38vh; }
  .chat__active { height: 60vh; }
  .chat__placeholder { min-height: 30vh; }
  .chat-new__menu { right: auto; left: 0; }
}

/* ───────────── Espace de jeu (accueil) ───────────── */
.games-app { max-width: 760px; margin: 0 auto; }
.games-fallback { text-align: center; color: var(--ink-light); }
.games-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; }
.games-bar__label { font-weight: 600; color: var(--ink-light); font-size: 0.9rem; }
.games-levels { display: flex; flex-wrap: wrap; justify-content: center; max-width: 100%; gap: 6px; background: var(--bg); padding: 4px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.games-level { border: none; background: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--ink-light); padding: 6px 14px; border-radius: 999px; transition: background var(--t), color var(--t); }
.games-level:hover { color: var(--primary-dark); }
.games-level.is-active { background: var(--primary); color: #fff; }

/* Rubriques en accordéon — groupe connecté (une seule ouverte à la fois) */
.games-rubrics { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.games-rubric + .games-rubric { border-top: 1px solid var(--border); }
.games-rubric__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: none; border: none; cursor: pointer; font: inherit; text-align: left; padding: 8px 14px; transition: background var(--t); }
.games-rubric__head:hover { background: var(--bg); }
.games-rubric.is-open .games-rubric__head { background: var(--primary-light); }
.games-rubric__title { font-family: var(--font-title); font-size: 0.98rem; font-weight: 700; line-height: 1.2; color: var(--primary-dark); }
.games-rubric__chevron { display: inline-flex; color: var(--ink-light); transition: transform var(--t); }
.games-rubric.is-open .games-rubric__chevron { transform: rotate(180deg); color: var(--primary-dark); }
.games-rubric__body { display: none; padding: 4px 14px 14px; }
.games-rubric.is-open .games-rubric__body { display: block; }
.games-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.game-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); cursor: pointer; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.game-card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.game-card__icon--num { background: #1E9E57; }
.game-card__icon--calc { background: #2563eb; }
.game-card__icon--read { background: #db2777; }
.game-card__icon--fr { background: #d9761a; }
.game-card__icon--logic { background: #7c3aed; }
.game-card__name { font-family: var(--font-title); font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.game-card__desc { color: var(--ink-light); font-size: 0.88rem; }
.game-card__best { margin-top: 6px; font-size: 0.8rem; font-weight: 700; color: var(--amber); }
.game-card__best--none { color: var(--primary-dark); }

.game-play, .game-result { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px; }
.game-play__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.game-quit { border: none; background: none; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink-light); padding: 4px 6px; border-radius: var(--radius-sm); }
.game-quit:hover { color: var(--danger); }
.game-play__title { font-weight: 600; font-size: 0.9rem; color: var(--ink-light); }
.game-play__score { font-size: 0.9rem; color: var(--ink-light); }
.game-play__score strong { color: var(--primary-dark); font-size: 1.05rem; }
.game-play__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.game-badge { font-size: 0.75rem; font-weight: 700; color: var(--primary-dark); background: var(--primary-light); padding: 3px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.game-timer { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; font-weight: 700; color: var(--ink-light); font-variant-numeric: tabular-nums; }
.game-timer__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: livePulse 1.6s ease-in-out infinite; }
.game-meta-right { display: inline-flex; align-items: center; gap: 10px; }
.game-sound { border: none; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 4px; border-radius: var(--radius-sm); }
.game-sound:hover { background: var(--bg); }
.game-say { border: 1px solid var(--border); background: var(--card); cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--primary-dark); padding: 4px 10px; border-radius: 999px; white-space: nowrap; transition: background var(--t), border-color var(--t); }
.game-say:hover { background: var(--primary-light); border-color: var(--primary); }
.game-progress { height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; margin: 12px 0 6px; }
.game-progress span { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s ease; }
.game-count { text-align: center; font-size: 0.78rem; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.05em; }
.game-note { text-align: center; color: var(--ink-light); margin-top: 8px; }
.game-q { text-align: center; font-family: var(--font-title); font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.6rem); color: var(--ink); margin: 14px 0 22px; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.game-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game-opt { padding: 16px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--card); cursor: pointer; font: inherit; font-weight: 700; font-size: 1.15rem; color: var(--ink); transition: background var(--t), border-color var(--t), transform var(--t); }
.game-opt:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-light); transform: translateY(-1px); }
.game-opt:disabled { cursor: default; }
.game-opt.is-correct { border-color: var(--success); background: #ecfdf3; color: var(--primary-dark); }
.game-opt.is-wrong { border-color: var(--danger); background: #fdecee; color: var(--danger); }

.game-result { text-align: center; }
.game-result__stars { font-size: 2.4rem; color: var(--amber); letter-spacing: 4px; }
.game-result__stars-off { color: var(--border); }
.game-result__score { font-family: var(--font-title); font-weight: 900; font-size: 2.6rem; color: var(--primary-dark); margin: 6px 0; }
.game-result__msg { font-size: 1.1rem; color: var(--ink); }
.game-result__record { display: inline-block; background: var(--amber); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }
.game-result__meta { color: var(--ink-light); font-size: 0.85rem; margin-top: 4px; }
.game-result__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

@media (max-width: 460px) {
  .game-options { grid-template-columns: 1fr; }
}
