/* Kreative Monster Academy · styles partages (DA claire, accent rouge) */
/* Alignee sur la home : Clash Display en accent, ease cinematique, focus ring, contrastes WCAG. */
:root {
  --white: #FFFFFF; --black: #111111; --red: #AE0000; --red-dark: #8E0000;
  --gray-txt: #555555; --gray-bg: #F2F2F2; --line: #E6E6E6;
  --muted: #6A6A6A; /* gris accessible (>=4.5:1 sur blanc), remplace var(--muted)/#888 */
  --font-h: 'Benzin', 'Arial Narrow', sans-serif;
  --font-accent: 'Clash Display', 'Benzin', sans-serif; /* police accent de la home */
  --font-b: 'Satoshi', system-ui, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1); /* ease de la home */
  --focus: 0 0 0 3px rgba(174,0,0,.28); /* anneau de focus commun */
  --warn: #8A5A00; --warn-bg: #FCF7EC; --ok: #0A7D33; --err: #B00020;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--white); color: var(--black); font-family: var(--font-b); line-height: 1.6; }
a { color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }

/* Nav */
.ac-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; row-gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); z-index: 50; }
.ac-logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-h); font-weight: 800; font-size: .92rem; text-decoration: none; letter-spacing: .02em; }
.ac-logo span { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; background: var(--red); color: #fff; border-radius: 3px; font-size: .82rem; transition: transform .2s var(--ease); }
.ac-logo:hover span { transform: rotate(-6deg); }
.ac-nav-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ac-nav-links a { font-family: var(--font-accent); font-weight: 700; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--gray-txt); transition: color .2s var(--ease); }
.ac-nav-links a:hover { color: var(--black); }
.ac-nav-cta { background: var(--red); color: var(--white) !important; padding: 10px 16px; }
/* Mobile : on garde les liens visibles et tappables (plus de display:none) */
@media (max-width: 640px) {
  .ac-nav { padding: 12px 16px; }
  .ac-nav-links { gap: 6px 16px; }
  .ac-nav-links a { font-size: .68rem; padding: 8px 0; }
  .ac-nav-cta { padding: 9px 14px; }
}

/* Conteneur */
.ac-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.ac-wrap-narrow { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* Boutons */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: var(--white); border: none; font-family: var(--font-accent); font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: 16px 28px; cursor: pointer; min-height: 48px; transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.ac-btn:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(174,0,0,.22); }
.ac-btn:disabled { background: #CCC; cursor: default; }
.ac-btn-ghost { background: transparent; color: var(--black); border: 1.5px solid var(--line); }
.ac-btn-ghost:hover { border-color: var(--red); color: var(--red); background: transparent; }

/* Typo */
.ac-kicker { font-family: var(--font-accent); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.ac-h1 { font-family: var(--font-h); font-weight: 800; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.08; letter-spacing: .005em; }
.ac-h2 { font-family: var(--font-h); font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 18px; }
.ac-h3 { font-family: var(--font-h); font-weight: 700; font-size: 1rem; }
.ac-lead { color: var(--gray-txt); font-size: 1.05rem; max-width: 620px; }

/* Sections */
.ac-hero { padding: 72px 0 48px; }
/* Cover photo en bas du hero de classe (filet rouge signature) */
.ac-hero-cover { margin-top: 38px; border-top: 4px solid var(--red); line-height: 0; }
.ac-hero-cover img { width: 100%; height: auto; max-height: 440px; object-fit: cover; object-position: center 32%; display: block; }
/* Vignette photo en tete des cartes de classe du catalogue */
.ac-card-cover { display: block; margin: -26px -26px 18px; border-bottom: 3px solid var(--red); overflow: hidden; }
.ac-card-cover img { width: 100%; height: 158px; object-fit: cover; object-position: center 32%; display: block; transition: transform .3s var(--ease); }
.ac-grid .ac-card:hover .ac-card-cover img { transform: scale(1.04); }
/* Rangee 2 boutons sur les cartes de classe : payer + en savoir plus */
.ac-card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ac-card-actions .ac-btn { flex: 1 1 0; justify-content: center; text-align: center; white-space: nowrap; }
/* Heros de l'accueil Academy uniquement (fond createur + voile clair) */
.ac-hero--home {
    position: relative;
    padding: 96px 0 72px;
    overflow: hidden;
    background-color: var(--white);
    background-image: url("img/academy-hero.jpg");
    background-image: image-set(url("img/academy-hero.webp") type("image/webp"), url("img/academy-hero.jpg") type("image/jpeg"));
    background-size: cover;
    background-position: right center;
}
.ac-hero--home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 44%, rgba(255,255,255,.62) 72%, rgba(255,255,255,.28) 100%);
    z-index: 0;
}
.ac-hero--home .ac-wrap { position: relative; z-index: 1; }
.ac-section { padding: 48px 0; border-top: 1px solid var(--line); }

/* Cartes */
.ac-card { border: 1px solid var(--line); padding: 26px; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.ac-grid .ac-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(17,17,17,.07); }
.ac-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .ac-grid-2 { grid-template-columns: 1fr 1fr; } .ac-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Listes check / cross */
.ac-list { list-style: none; }
.ac-list li { padding: 8px 0 8px 28px; position: relative; color: var(--gray-txt); }
.ac-list li::before { content: '·'; color: var(--red); position: absolute; left: 8px; font-weight: 700; }
.ac-list-yes li::before { content: '✓'; }
.ac-list-no li::before { content: '×'; color: var(--muted); }

/* Footer */
.ac-footer { text-align: center; font-size: .72rem; color: var(--gray-txt); padding: 40px 16px; border-top: 1px solid var(--line); }
.ac-footer a { color: var(--red); text-decoration: none; }

/* Diagnostic */
.dg-progress { height: 4px; background: var(--line); margin-bottom: 32px; }
.dg-progress-fill { height: 100%; background: var(--red); width: 0; transition: width .3s; }
.dg-step { display: none; }
.dg-step.active { display: block; }
.dg-q { font-family: var(--font-h); font-weight: 800; font-size: clamp(1.2rem, 3vw, 1.5rem); margin-bottom: 20px; }
.dg-opt { display: block; width: 100%; text-align: left; border: 1.5px solid var(--line); background: var(--white); padding: 16px 18px; margin-bottom: 10px; font-family: var(--font-b); font-size: .98rem; cursor: pointer; transition: border-color .15s, background .15s; }
.dg-opt:hover { border-color: var(--red); }
.dg-opt.selected { border-color: var(--red); background: #FBF3F3; }
.dg-opt:focus-visible { outline: none; box-shadow: var(--focus); }
.dg-count { font-family: var(--font-h); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.dg-score-ring { font-family: var(--font-h); font-weight: 800; font-size: 3.4rem; color: var(--red); line-height: 1; }
.dg-dim { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dg-dim-label { width: 120px; font-size: .85rem; }
.dg-dim-bar { flex: 1; height: 8px; background: var(--line); }
.dg-dim-bar span { display: block; height: 100%; background: var(--red); }
.dg-dim-val { width: 48px; text-align: right; font-family: var(--font-h); font-weight: 700; font-size: .8rem; }
.dg-prio { border-left: 3px solid var(--red); background: var(--gray-bg); padding: 14px 18px; margin-bottom: 10px; }
.dg-prio strong { font-family: var(--font-h); }
.dg-field { width: 100%; font-family: var(--font-b); font-size: 1rem; padding: 14px 16px; border: 1px solid #DDD; margin-bottom: 12px; }
.dg-field:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(174,0,0,.22); }

/* Mission list (page de vente) */
.ac-mission { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.ac-mission:first-child { border-top: none; }
.ac-mission-num { font-family: var(--font-h); font-weight: 800; color: var(--red); font-size: .85rem; width: 32px; flex-shrink: 0; }
.ac-mission-body h4 { font-family: var(--font-h); font-weight: 700; font-size: .95rem; }
.ac-mission-body p { color: var(--gray-txt); font-size: .88rem; }
.ac-mission-time { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* Prix */
.ac-price { font-family: var(--font-h); font-weight: 800; font-size: 2.6rem; }
.ac-price-old { color: var(--muted); text-decoration: line-through; font-size: 1.2rem; font-weight: 600; margin-left: 10px; }
.ac-price-note { color: var(--gray-txt); font-size: .85rem; }

/* Paths (landing) */
.ac-path { border: 1px solid var(--line); padding: 22px; }
.ac-path h3 { font-family: var(--font-h); font-weight: 800; margin-bottom: 8px; }
.ac-path.locked { opacity: .55; }
.ac-badge { display: inline-block; font-family: var(--font-accent); font-weight: 700; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); }
.ac-badge-live { color: var(--red); border-color: var(--red); }

/* Accessibilite : respecter le reglage systeme de reduction du mouvement (comme la home) */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .ac-btn:hover, .ac-grid .ac-card:hover { transform: none; }
}

/* Exit-intent : pop-in sobre, rejetable (academy charge academy.css, pas styles.css) */
.km-exit-overlay {
    position: fixed; inset: 0; z-index: 320;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(17,17,17,.6);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    animation: km-exit-fade .22s ease both;
}
.km-exit-card {
    position: relative; width: 100%; max-width: 440px;
    background: var(--white); color: var(--black);
    border: 1px solid rgba(0,0,0,.10); border-left: 3px solid var(--red);
    box-shadow: 0 24px 60px rgba(0,0,0,.32);
    padding: 34px 30px 26px;
    animation: km-exit-rise .26s ease both;
}
.km-exit-x {
    position: absolute; top: 8px; right: 8px;
    width: 38px; height: 38px; background: none; border: none;
    color: var(--gray-txt); font-size: 1.55rem; line-height: 1; cursor: pointer;
    opacity: .6; transition: opacity .2s ease;
}
.km-exit-x:hover { opacity: 1; }
.km-exit-kicker {
    font-family: var(--font-accent); font-weight: 700; font-size: .72rem;
    letter-spacing: .08em; text-transform: uppercase; color: var(--red);
    margin: 0 0 10px;
}
.km-exit-title {
    font-family: var(--font-h); font-weight: 800;
    font-size: clamp(1.25rem, 4.4vw, 1.55rem); line-height: 1.12;
    color: var(--black); margin: 0 0 10px;
}
.km-exit-text {
    font-family: var(--font-b); font-size: .96rem; line-height: 1.6;
    color: var(--gray-txt); margin: 0 0 20px;
}
.km-exit-form { display: flex; flex-direction: column; gap: 12px; }
.km-exit-srlabel {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.km-exit-input {
    width: 100%; font-family: var(--font-b); font-size: 1rem;
    padding: 14px 15px; color: var(--black); background: var(--white);
    border: 1px solid rgba(0,0,0,.20); border-radius: 0;
    transition: border-color .2s ease;
}
.km-exit-input:focus { outline: none; border-color: var(--red); }
.km-exit-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.km-exit-submit {
    width: 100%; font-family: var(--font-b); font-weight: 800;
    text-transform: uppercase; letter-spacing: .04em; font-size: .82rem;
    color: #fff; background: var(--red); border: none; cursor: pointer;
    padding: 15px 20px; min-height: 48px; transition: opacity .2s ease;
}
.km-exit-submit:hover { opacity: .9; }
.km-exit-submit:disabled { opacity: .6; cursor: default; }
.km-exit-msg { font-family: var(--font-b); font-size: .82rem; line-height: 1.5; color: var(--gray-txt); margin: 4px 0 0; min-height: 1px; }
.km-exit-msg.is-err { color: var(--red); }
.km-exit-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2px 0 0; }
.km-exit-choice-btn {
    font-family: var(--font-b); font-weight: 700; font-size: .92rem;
    color: var(--black); background: var(--white); cursor: pointer;
    border: 1px solid rgba(0,0,0,.20); padding: 16px 12px; min-height: 52px;
    transition: border-color .2s ease, color .2s ease;
}
.km-exit-choice-btn:hover { border-color: var(--red); color: var(--red); }
.km-exit-no {
    display: block; margin: 16px auto 0; padding: 4px;
    font-family: var(--font-b); font-size: .82rem; color: var(--gray-txt);
    background: none; border: none; cursor: pointer; text-decoration: none;
}
.km-exit-no:hover { color: var(--black); text-decoration: underline; }
@keyframes km-exit-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes km-exit-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.km-exit-nomotion, .km-exit-nomotion .km-exit-card { animation: none !important; }
@media (max-width: 480px) {
    .km-exit-overlay { align-items: flex-end; padding: 0; }
    .km-exit-card { max-width: none; padding: 30px 22px 24px; }
}
