/* =============================================================================
   CHARTE GRAPHIQUE — excel-exercice.com
   Feuille de style maîtresse (site-wide). À charger depuis le child-theme.
   -----------------------------------------------------------------------------
   Où l'installer (au choix) :
   - Apparence → Personnaliser → CSS additionnel  (rapide, mais limité)
   - infinite-child/style.css  (recommandé : versionné, prioritaire)
   - ou un fichier dédié enqueué :
       wp_enqueue_style('charte',
         get_stylesheet_directory_uri().'/css/charte-graphique.css',
         array(), '1.0.0');

   PRINCIPE DE COULEUR
   - VERT  #107C41 = marque / navigation / apprentissage (Quiz, Formation, liens)
   - AMBRE #8F6316 = commerce / action / premium (Boutique, achat, CTA)
   - BLEU  #185ABD = réservé au badge Microsoft MVP uniquement
   ============================================================================= */

/* ── POLICES ─────────────────────────────────────────────────────────────── */
/* Titres &amp; corps : Inter · Labels : Space Mono (validé). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ── TYPAGE @property (évite le bug Chrome sur transitions + variables) ───── */
@property --c-accent      { syntax: '<color>'; inherits: true; initial-value: #8F6316; }
@property --c-accent-hover{ syntax: '<color>'; inherits: true; initial-value: #7B5513; }
@property --c-brand       { syntax: '<color>'; inherits: true; initial-value: #107C41; }

/* ── TOKENS ──────────────────────────────────────────────────────────────── */
:root {
  /* Marque (vert) */
  --c-brand:        #107C41;
  --c-brand-dark:   #0b5a2f;
  --c-brand-soft:   #dceee3;
  --c-brand-pale:   #eef6f1;
  --c-brand-ink:    #0e3a22;

  /* Accent commerce (ambre) */
  --c-accent:       #a8741a;   /* accent / liens commerce / pastilles */
  --c-accent-dark:  #855a12;
  --c-accent-soft:  #f5ecd6;
  --c-accent-pale:  #fbf6e9;
  --c-accent-ink:   #4d370a;

  /* Boutons d'achat (ambre foncé, meilleur contraste sur blanc) */
  --c-btn:          #8F6316;
  --c-btn-hover:    #7B5513;

  /* Bleu MVP (badge uniquement) */
  --c-mvp:          #185ABD;

  /* Encre & texte */
  --c-ink:          #0e1814;   /* titres */
  --c-text:         #36443e;   /* corps */
  --c-muted:        #677571;   /* secondaire */
  --c-border:       #d4dcd7;

  /* Fonds */
  --c-bg:           #fbf7ef;   /* fond de page (crème) */
  --c-bg-alt:       #f3ead9;   /* bandeaux / footer */
  --c-surface:      #ffffff;   /* cartes */
  --c-hero-1:       #fffefc;   /* dégradé hero (haut) */
  --c-hero-2:       #fefcf6;   /* dégradé hero (bas) */

  /* Couleurs par type de fichier (liserés / vignettes) */
  --t-xls:  #107C41;  --t-xls-bg:  #eaf4ee;
  --t-doc:  #185ABD;  --t-doc-bg:  #eaf0f9;
  --t-ppt:  #C43E1C;  --t-ppt-bg:  #fbeee9;
  --t-pbi:  #E8B400;  --t-pbi-bg:  #fdf4c6;
  --t-quiz: #107C41;  --t-quiz-bg: #e6f3ec;

  /* Type */
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Échelle typographique (fluide) */
  --fs-h1: clamp(36px, 5vw, 56px);
  --fs-h2: clamp(28px, 3.4vw, 40px);
  --fs-h3: clamp(20px, 2.2vw, 26px);
  --fs-h4: 18px;
  --fs-lede: clamp(17px, 1.6vw, 19px);
  --fs-body: 16px;       /* interface : menus, boutons, UI */
  --fs-reading: 19px;    /* corps des articles (zone de lecture longue) */
  --fs-small: 13.5px;
  --fs-label: 12px;

  /* Forme & profondeur */
  --radius:    14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow:    0 1px 0 rgba(14,24,20,.03), 0 2px 4px rgba(14,24,20,.05), 0 12px 28px -16px rgba(14,24,20,.14);
  --shadow-hover: 0 12px 32px -12px rgba(14,24,20,.18);

  /* Rythme */
  --maxw: 1180px;
  --gutter: 28px;
}

/* ── BASE TYPOGRAPHIQUE ──────────────────────────────────────────────────────
   Réglages doux et site-wide. Adapter la portée des sélecteurs si le thème
   nécessite plus de spécificité (préfixer par body, #content, .pagewrap…). */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { text-wrap: pretty; }

/* ── CONTENU D'ARTICLE (zone de lecture) ─────────────────────────────────────
   L'interface reste à --fs-body (16px) ; le corps des articles passe à une
   taille de lecture confortable (--fs-reading, 19px). Conteneur réel des
   articles = .module-post-content (confirmé par le Custom CSS Themify). */
.module-post-content,
.module-post-content p,
.module-post-content li {
  font-size: var(--fs-reading);
}

/* Emphase serif en accent (motif récurrent des titres) */
h1 em, h2 em, .display em {
  font-style: italic;
  font-weight: 500;
  color: var(--c-accent);
}

a { color: var(--c-brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

strong, b { font-weight: 600; color: var(--c-ink); }

/* Conteneur centré standard */
.wrap, .container-charte {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── PASTILLE (label majuscules) ─────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-pill);
  color: var(--c-brand-dark); background: var(--c-brand-soft);
  white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-brand); }
/* Variante commerce */
.pill.pill--accent { color: var(--c-accent-dark); background: var(--c-accent-soft); }
.pill.pill--accent .dot { background: var(--c-accent); }

/* ── BOUTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  padding: 13px 24px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; text-decoration: none;
  transition: box-shadow .15s, transform .15s; /* JAMAIS background-color (bug Chrome + vars) */
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

/* Action principale d'apprentissage (vert) : Quiz, Formation */
.btn--brand { background: var(--c-brand); color: #fff; box-shadow: 0 8px 22px -6px rgba(16,124,65,.45); }
.btn--brand:hover { background: var(--c-brand-dark); box-shadow: 0 10px 26px -6px rgba(16,124,65,.55); }

/* Action commerce (ambre) : acheter, souscrire, premium */
.btn--buy { background: var(--c-btn); color: #fff; box-shadow: 0 8px 22px -6px rgba(143,99,22,.45); }
.btn--buy:hover { background: var(--c-btn-hover); box-shadow: 0 10px 26px -6px rgba(143,99,22,.55); }

/* Bouton fantôme (secondaire) */
.btn--ghost { background: transparent; color: var(--c-accent-dark); border: 1px solid rgba(0,0,0,.18); }
.btn--ghost:hover { color: var(--c-accent); border-color: var(--c-accent); background: transparent; }

/* Bouton inactif / désactivé (ex. « Suivant » tant qu'aucune réponse) */
.btn--disabled, .btn:disabled { background: #c8d0cb; color: #fff; box-shadow: none; cursor: not-allowed; pointer-events: none; }

/* ── CARTE ───────────────────────────────────────────────────────────────── */
.card {
  position: relative; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--c-accent); box-shadow: var(--shadow-hover); }

/* Liseré coloré en haut (couleur par type) */
.card--ruled::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px;
  height: 3px; border-radius: 0 0 3px 3px; background: var(--ruled, var(--c-brand));
}
.card--xls  { --ruled: var(--t-xls); }
.card--doc  { --ruled: var(--t-doc); }
.card--ppt  { --ruled: var(--t-ppt); }
.card--pbi  { --ruled: var(--t-pbi); }
.card--quiz { --ruled: var(--t-quiz); }

/* ── BADGE FORMAT (token monospace) ──────────────────────────────────────── */
.fmt-token {
  font-family: var(--font-mono); font-weight: 700; font-size: 20px; letter-spacing: .06em;
}
.fmt-chip {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px;
}
.fmt-xls  { color: var(--t-xls);  background: var(--t-xls-bg); }
.fmt-doc  { color: var(--t-doc);  background: var(--t-doc-bg); }
.fmt-ppt  { color: var(--t-ppt);  background: var(--t-ppt-bg); }
.fmt-pbi  { color: #8a6a00; background: var(--t-pbi-bg); }
.fmt-quiz { color: var(--t-quiz); background: var(--t-quiz-bg); }

/* ── BANDEAU STATS ───────────────────────────────────────────────────────── */
.stats-band {
  display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 52px; align-items: center;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 34px 44px; box-shadow: var(--shadow);
}
.stats-band .stat b { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--c-ink); line-height: 1; display: block; }
.stats-band .stat span { font-size: 13px; color: var(--c-muted); margin-top: 7px; display: block; }

/* ── FAQ (details/summary) ───────────────────────────────────────────────── */
.faq details { border-bottom: 1px solid var(--c-border); padding: 20px 0; }
.faq details:first-child { border-top: 1px solid var(--c-border); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-weight: 600; font-size: 16.5px; color: var(--c-ink);
}
.faq summary::-webkit-details-marker { display: none; }
/* Indicateur d'accordéon : chevron qui pivote (cf. page Résultats quiz).
   Parfaitement centré, pas de +/x dans un rond. */
.faq summary .qk {
  width: 20px; height: 20px; flex-shrink: 0; display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23677571' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  transition: transform .2s;
}
.faq details[open] summary .qk { transform: rotate(180deg); }
.faq details p { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--c-text); }

/* ── FENÊTRE "MOCK" SOMBRE (démos, captures stylisées) ───────────────────── */
.mock-window {
  background: #0a1a12; border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; overflow: hidden; box-shadow: 0 24px 48px -20px rgba(0,0,0,.35);
}
.mock-window .chrome {
  height: 36px; border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
  font-family: var(--font-mono); font-size: 11px; color: #7e948a;
}
.mock-window .chrome .c-dot { width: 9px; height: 9px; border-radius: 50%; }
.mock-window .body { padding: 22px; color: #cdd9d2; }

/* ── DÉMO QUIZ (fenêtre CLAIRE — reprend le code couleur des quiz du site) ──
   À préférer au .mock-window sombre pour illustrer un quiz. */
.quiz-demo { background: #f3f9f5; border: 1px solid #dce8e1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.quiz-demo .qd-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid #dce8e1; background: #eaf4ee; }
.quiz-demo .qd-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-brand-dark); }
.quiz-demo .qd-count { font-family: var(--font-mono); font-size: 12px; color: var(--c-muted); }
.quiz-demo .qd-body { padding: 18px; }
.quiz-demo .qd-q { font-size: 15px; line-height: 1.5; color: #33689f; font-weight: 500; margin: 0 0 14px; }
.quiz-demo .qd-opt { display: flex; align-items: center; gap: 12px; border: 1px solid #dce8e1; border-radius: 8px; padding: 11px 14px; margin-bottom: 8px; background: #fff; font-size: 14px; color: #2b3a35; }
.quiz-demo .qd-opt code { font-family: var(--font-mono); font-size: 13px; color: inherit; }
.quiz-demo .qd-opt .radio { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c9d2ce; }
.quiz-demo .qd-opt.sel { border-color: #b985dd; background: #f6e2ff; }
.quiz-demo .qd-opt.sel .radio { border-color: #9a5cc6; background: radial-gradient(circle, #9a5cc6 0 5px, #fff 6px); }
.quiz-demo .qd-actions { display: flex; gap: 10px; margin-top: 14px; }
.quiz-demo .qd-btn { padding: 11px 22px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: #fff; cursor: pointer; border: none; }
.quiz-demo .qd-btn.primary { background: var(--c-brand); }
.quiz-demo .qd-btn.disabled { background: #c8d0cb; cursor: not-allowed; }

/* ── HERO (fond crème clair) ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--c-hero-1) 0%, var(--c-hero-2) 100%);
  border-bottom: 1px solid #efe1c2;
}

/* ── HELPERS ─────────────────────────────────────────────────────────────── */
.text-muted { color: var(--c-muted); }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--c-text); }
.mono { font-family: var(--font-mono); }
.section { padding: 72px 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   INTÉGRATION THEMIFY — bases site-wide + ARTICLES (gabarit « Post White »)
   -----------------------------------------------------------------------------
   Méthode = SPÉCIFICITÉ (PAS l'ordre de chargement, trop fragile avec la
   concaténation Themify). On rehausse les sélecteurs pour battre Themify même si
   la charte est chargée AVANT lui. AUCUN `!important`.
     • `html body`                    = 0,0,2  bat  `body` (Arial/Lora/fond blanc)
     • `.module-post-title .tbp_title` = 0,2,0  bat  `.tbp_title` (titre vert)
     • `html body .module-post-content …` rehausse corps & sous-titres
   Vérifié en direct, charte placée AVANT Themify (cas défavorable) → gagne.
   Décisions Fred (04/06/2026) : titres d'articles = vert de marque #107C41 ; texte en Inter.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Bases site-wide rehaussées (battent le body Arial/Lora + fond blanc de Themify) */
html body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
}

/* Titres d'articles : vert de marque + Inter */
.module-post-title .tbp_title,
html body .module-post-content :is(h1, h2, h3, h4, h5, h6) {
  color: var(--c-brand);
  font-family: var(--font-display);
}

/* POLICE Inter sur TOUS les titres du site (élimine Fraunces ET JetBrains Mono
   des gabarits quiz/formation/etc.). Ancrage sur l'ID #pagewrap → spécificité (1,0,x)
   qui bat les règles Themify à classes SANS `!important`. Validé en direct sur le quiz.
   ⚠️ Ne s'applique PAS aux titres en style INLINE (ex page Formation) : ceux-là se
   corrigent en reconstruisant la page (export/import JSON Builder), pas en CSS. */
html body #pagewrap :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-display);
}

/* Corps d'article : police Inter (bat Arial/Trebuchet/Poppins) */
html body .module-post-content,
html body .module-post-content :is(p, li, a, strong, em, blockquote, td, th, dd, dt) {
  font-family: var(--font-body);
}

/* Cadre de l'article = carte BLANCHE sur le fond crème.
   Sinon le cadre (transparent) laisse voir le crème → tout se confond.
   `:has()` cible la colonne Themify qui contient le contenu de l'article
   (vérifié en direct : 2 colonnes ciblées sur 13, aucune autre touchée). */
html body .module_column:has(.module-post-content) {
  background: var(--c-surface);
}

/* Widgets de la sidebar = cartes blanches (même logique que le cadre article).
   ⚠️ MEDIAVINE : on ne stylise QUE les `.widget`, JAMAIS la colonne `.mv-sidebar`
   elle-même (= emplacement publicitaire Mediavine, qui reste 100% intact —
   vérifié en direct : la colonne garde son fond transparent). */
html body .mv-sidebar .widget {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

/* ── FINITIONS du contenu d'article (testées en direct) ──────────────────── */
/* Blocs de code (--VRAI, =SOMMEPROD…) : police Space Mono.
   Le style « terminal » (fond foncé / texte vert vif) du Custom CSS est conservé. */
html body .module-post-content code,
html body .module-post-content pre {
  font-family: var(--font-mono);
}

/* Listes : couleur de texte de la charte (remplace le vert foncé #113111 hérité de Themify) */
html body .module-post-content :is(ul, ol, li) {
  color: var(--c-text);
}

/* Méta de l'article (Catégorie, date, temps de lecture, vues) : police Inter
   (remplace Poppins). La couleur #36443e vient déjà de la base charte. */
html body .tbp_post_meta_item,
html body .tbp_post_meta_item * {
  font-family: var(--font-body);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO 2 — CADRE QUIZ (Quiz Maker / AYS) affiché à 75 %
   -----------------------------------------------------------------------------
   Carte façon charte + zoom 75 % pour qu'un quiz Quiz Maker ne prenne pas toute
   la hauteur de l'accueil. Usage dans un module « Texte » Themify :
     <div class="ee-quiz-frame">
       <div class="ee-quiz-frame__top">
         <span class="tag"><span class="dot"></span>Quiz · essayez en 30 s</span>
         <span class="hint">Testez vos bases Excel, tout de suite</span>
       </div>
       <div class="ee-quiz-frame__body"><div class="ee-quiz-zoom">[ays_quiz id='29']</div></div>
     </div>
   (zoom géré par Chrome, Edge, Safari et Firefox récents.)
   ═══════════════════════════════════════════════════════════════════════════ */
.ee-quiz-frame {
  max-width: 780px; margin: 24px auto;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(14,24,20,.03), 0 18px 40px -22px rgba(14,24,20,.22);
}
/* Filet de sécurité : on NE touche PAS au style interne de Quiz Maker.
   On garantit juste que ses images (illustrations de question) restent visibles. */
.ee-quiz-frame img { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE D'ACCUEIL — composant complet, scopé .ee-home (mutualisé via la charte).
   Le fichier Themify d'import ne contient que du HTML propre (classes ee-/charte)
   + les shortcodes [sheetskills] et [ays_quiz]. Tout le style vit ICI.
   ═══════════════════════════════════════════════════════════════════════════ */
.ee-home{
  --radius:16px; --radius-sm:9px; --radius-pill:999px; --maxw:1200px; --gutter:26px;
  --shadow:0 1px 0 rgba(14,24,20,.03),0 2px 4px rgba(14,24,20,.05),0 18px 40px -22px rgba(14,24,20,.22);
  --shadow-hover:0 22px 48px -18px rgba(14,24,20,.28);
  --c-mvp-bg:#eaf0f9;
  font-family:var(--font-body); font-size:16px; line-height:1.6; color:var(--c-text); background:transparent;
}
.ee-home *{box-sizing:border-box}
/* En colonnes Themify : les cartes remplissent la hauteur de leur colonne. */
.ee-home .tile{height:100%}
.ee-home .ee-stat{display:flex;flex-direction:column;justify-content:center;text-align:center;background:var(--c-surface);border:1px solid var(--c-border);border-radius:14px;box-shadow:var(--shadow);padding:28px 14px;height:100%}
.ee-home .ee-stat b{font-family:var(--font-display);font-weight:800;font-size:30px;color:var(--c-ink);line-height:1}
.ee-home .ee-stat span{font-size:12.5px;color:var(--c-muted);margin-top:7px}
.ee-home h1,.ee-home h2,.ee-home h3,.ee-home h4{font-family:var(--font-display);color:var(--c-ink);line-height:1.08;letter-spacing:-.025em;font-weight:800;margin:0}
.ee-home a{text-decoration:none;color:inherit}
.ee-home .wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter)}
.ee-home .section{padding:60px 0}
.ee-home .head{margin-bottom:26px}
.ee-home .head p{font-size:15px;color:var(--c-muted);margin:6px 0 0}
.ee-home .pill{display:inline-flex;align-items:center;gap:8px;font-size:11.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;padding:6px 13px;border-radius:var(--radius-pill);color:var(--c-brand-dark);background:var(--c-brand-soft)}
.ee-home .pill .dot{width:6px;height:6px;border-radius:50%;background:var(--c-brand)}
.ee-home .pill--accent{color:var(--c-accent-ink);background:var(--c-accent-soft)}
.ee-home .pill--accent .dot{background:var(--c-accent)}
.ee-home .pill--new{color:#fff;background:var(--c-brand)}
.ee-home .pill--new .dot{background:#fff}
.ee-home .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-family:var(--font-body);font-size:15px;font-weight:600;padding:14px 26px;border-radius:var(--radius-sm);border:none;cursor:pointer;transition:box-shadow .15s,transform .15s}
.ee-home .btn:hover{transform:translateY(-1px)}
.ee-home .btn svg{width:18px;height:18px}
.ee-home .btn--brand{background:var(--c-brand);color:#fff;box-shadow:0 8px 22px -6px rgba(16,124,65,.5)}
.ee-home .btn--brand:hover{background:var(--c-brand-dark)}
.ee-home .btn--buy{background:var(--c-btn);color:#fff;box-shadow:0 8px 22px -6px rgba(143,99,22,.5)}
.ee-home .btn--buy:hover{background:var(--c-btn-hover)}
.ee-home .btn--light{background:#fff;color:var(--c-ink);box-shadow:var(--shadow)}
.ee-home .hero{position:relative;overflow:hidden;background:radial-gradient(1200px 500px at 80% -10%,rgba(16,124,65,.10),transparent 60%),radial-gradient(900px 500px at 0% 110%,rgba(143,99,22,.10),transparent 55%),linear-gradient(180deg,#fffefb,#fbf7ef)}
.ee-home .hero .wrap{padding-top:54px;padding-bottom:46px}
.ee-home .hero-top{text-align:center;max-width:880px;margin:0 auto 30px}
.ee-home .hero h1{font-size:clamp(34px,5vw,60px);font-weight:900;letter-spacing:-.035em;margin:18px 0 16px}
.ee-home .hero h1 em{font-style:normal;color:var(--c-brand);position:relative;white-space:nowrap}
.ee-home .hero h1 em::after{content:"";position:absolute;left:0;right:0;bottom:.06em;height:.18em;background:var(--c-brand-soft);z-index:-1;border-radius:4px}
.ee-home .hero .lede{font-size:clamp(17px,1.7vw,20px);color:var(--c-text);max-width:60ch;margin:0 auto 24px}
.ee-home .hero .cta-row{display:flex;gap:13px;justify-content:center;flex-wrap:wrap}
.ee-home .hero .micro{margin-top:16px;font-size:13.5px;color:var(--c-muted);display:flex;gap:8px;justify-content:center;align-items:center}
.ee-home .hero .micro svg{width:16px;height:16px;color:var(--c-brand)}
.ee-home .ee-embed{max-width:880px;margin:8px auto 0;background:#fff;border:1px solid var(--c-border);border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.ee-home .ee-embed__bar{display:flex;align-items:center;gap:8px;padding:9px 14px;background:#f6f8f5;border-bottom:1px solid var(--c-border)}
.ee-home .ee-embed__dots{display:flex;gap:6px}
.ee-home .ee-embed__dots i{width:10px;height:10px;border-radius:50%;display:block}
.ee-home .ee-embed__name{font-family:var(--font-mono);font-size:11.5px;color:var(--c-muted)}
.ee-home .ee-embed__live{margin-left:auto;font-family:var(--font-mono);font-size:11px;font-weight:700;color:var(--c-brand);display:inline-flex;align-items:center;gap:6px}
.ee-home .ee-embed__live i{width:7px;height:7px;border-radius:50%;background:var(--c-brand);display:block}
.ee-home .hero-cta{text-align:center;margin-top:16px}
.ee-home .bento{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:minmax(150px,auto);gap:16px;grid-template-areas:"ia ia exos exos" "ia ia form quiz" "prem prem stats stats"}
.ee-home .tile{position:relative;border-radius:var(--radius);border:1px solid var(--c-border);background:var(--c-surface);padding:24px;box-shadow:var(--shadow);transition:transform .18s,box-shadow .18s;overflow:hidden;display:flex;flex-direction:column}
.ee-home .tile:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
.ee-home .tile h3{font-size:20px;margin-bottom:6px}
.ee-home .tile p{font-size:14px;color:var(--c-text);margin:0}
.ee-home .tile .lk{margin-top:auto;padding-top:14px;font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:6px}
.ee-home .tile .lk svg{width:15px;height:15px}
.ee-home .t-ico{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;margin-bottom:14px}
.ee-home .t-ico svg{width:22px;height:22px}
.ee-home .tile.ia{grid-area:ia;background:linear-gradient(165deg,#fffdf7,var(--c-accent-pale));border-color:#ecdcb6}
.ee-home .tile.ia .t-ico{background:var(--c-accent-soft);color:var(--c-accent-ink)}
.ee-home .tile.ia .lk{color:var(--c-accent-ink)}
.ee-home .ia-report{margin-top:16px;background:#fff;border:1px solid #ecdcb6;border-radius:12px;padding:16px;display:flex;gap:18px;align-items:center}
.ee-home .ring{--p:82;width:84px;height:84px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--c-accent) calc(var(--p)*1%),#efe3c6 0)}
.ee-home .ring .in{width:64px;height:64px;border-radius:50%;background:#fff;display:grid;place-items:center;text-align:center;line-height:1}
.ee-home .ring .in b{font-family:var(--font-display);font-size:22px;font-weight:800;color:var(--c-ink)}
.ee-home .ring .in span{font-family:var(--font-mono);font-size:9px;color:var(--c-muted);letter-spacing:.05em}
.ee-home .ia-insights{font-size:13px;color:var(--c-text);margin:0;padding:0}
.ee-home .ia-insights li{display:flex;gap:8px;align-items:flex-start;margin-bottom:7px;list-style:none}
.ee-home .ia-insights li svg{width:15px;height:15px;flex-shrink:0;margin-top:2px;color:var(--c-brand)}
.ee-home .tile.exos{grid-area:exos;background:linear-gradient(120deg,#fff,var(--c-brand-pale));border-color:#cfe3d6}
.ee-home .tile.exos .t-ico{background:var(--c-brand-soft);color:var(--c-brand)}
.ee-home .tile.exos .lk{color:var(--c-brand-dark)}
.ee-home .tile.exos .badge{position:absolute;top:18px;right:18px}
.ee-home .tile.form{grid-area:form}
.ee-home .tile.form .t-ico{background:var(--c-mvp-bg);color:var(--c-mvp)}
.ee-home .tile.form .lk{color:var(--c-mvp)}
.ee-home .tile.quiz{grid-area:quiz}
.ee-home .tile.quiz .t-ico{background:var(--c-brand-soft);color:var(--c-brand)}
.ee-home .tile.quiz .lk{color:var(--c-brand-dark)}
.ee-home .tile.prem{grid-area:prem;background:linear-gradient(150deg,#13150f,#211a0c);border-color:#3a2f15;color:#f4eede;justify-content:center}
.ee-home .tile.prem h3{color:#fff;font-size:24px}
.ee-home .tile.prem p{color:#cfc6ad}
.ee-home .tile.prem .price{font-family:var(--font-display);font-weight:900;font-size:30px;color:#fff;margin:8px 0 14px}
.ee-home .tile.prem .price small{font-size:14px;font-weight:500;color:#b7ac8d}
.ee-home .tile.prem .pill{background:rgba(255,255,255,.1);color:#f0d9a3}
.ee-home .tile.prem .pill .dot{background:var(--c-accent)}
.ee-home .tile.stats{grid-area:stats;display:grid;grid-template-columns:repeat(3,1fr);align-items:stretch;gap:16px;padding:0;background:transparent;border:none;box-shadow:none}
.ee-home .tile.stats:hover{transform:none;box-shadow:none}
.ee-home .tile.stats .s{display:flex;flex-direction:column;justify-content:center;text-align:center;background:var(--c-surface);border:1px solid var(--c-border);border-radius:14px;box-shadow:var(--shadow);padding:22px 12px}
.ee-home .tile.stats .s b{font-family:var(--font-display);font-weight:800;font-size:26px;color:var(--c-ink);line-height:1}
.ee-home .tile.stats .s span{font-size:11.5px;color:var(--c-muted);margin-top:6px}
.ee-home .final{background:linear-gradient(160deg,#0d2a1c,#0a1a12);color:#e8efe9;text-align:center;border-radius:22px;padding:56px 28px;box-shadow:0 24px 48px -20px rgba(0,0,0,.4)}
.ee-home .final h2{color:#fff;font-size:clamp(26px,3vw,38px);font-weight:900;margin-bottom:12px}
.ee-home .final p{color:#b8c9bf;max-width:54ch;margin:0 auto 24px}
.ee-home .final .cta-row{display:flex;gap:13px;justify-content:center;flex-wrap:wrap}
@media(max-width:880px){
  .ee-home .bento{grid-template-columns:1fr 1fr;grid-template-areas:"ia ia" "exos exos" "form quiz" "prem prem" "stats stats"}
  .ee-home .tile.ia{min-height:auto}
}
@media(max-width:560px){
  .ee-home .bento{grid-template-columns:1fr;grid-template-areas:"ia" "exos" "form" "quiz" "prem" "stats"}
}
.ee-quiz-frame__top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; background: var(--c-brand-soft); border-bottom: 1px solid var(--c-border);
}
.ee-quiz-frame__top .tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--c-brand-dark); display: inline-flex; align-items: center; gap: 7px;
}
.ee-quiz-frame__top .tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-brand); }
.ee-quiz-frame__top .hint { font-size: 12.5px; color: var(--c-muted); }
.ee-quiz-frame__body { padding: 8px; }
.ee-quiz-zoom { zoom: .75; }
