/* ---------- Polices hébergées sur le site (sous-ensemble latin) ---------- */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/jakarta-var.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-600.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-600-italic.woff2") format("woff2"); font-weight: 500 700; font-style: italic; font-display: swap; }

/* ---------- Brand tokens: change these to rebrand ---------- */
:root {
  --ink: #13203d;
  --ink-soft: #4a5170;
  --muted: #8b90a8;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --line: #ebe5da;
  --brand: #2a62b0;
  --brand-dark: #1d4789;
  --accent: #f6be16;
  --accent-soft: #fff4cc;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(19, 24, 43, 0.08);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--surface); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.row-between { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.link-arrow { font-weight: 700; color: var(--brand); }
.link-arrow::after { content: " →"; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #c9cde0; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.logo-badge {
  width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-family: var(--font-body); font-size: .8rem; font-weight: 800;
  box-shadow: 4px 4px 0 var(--accent);
}
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--accent-soft); }
.nav .btn { margin-left: 8px; color: #fff; padding: 11px 20px; }
.nav .btn:hover { background: var(--brand-dark); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); padding: 16px; border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .topbar .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 90px) 0 clamp(64px, 8vw, 100px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--brand); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .22em; background: var(--accent); z-index: -1; border-radius: 4px;
}
.hero .lead { font-size: 1.15rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 36px; }
.hero-trust { display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--ink-soft); }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--bg); margin-left: -10px;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff;
}
.avatars span:first-child { margin-left: 0; }
.hero-art { position: relative; aspect-ratio: 1 / 1.05; }
.hero-blob {
  position: absolute; inset: 6% 4% 0 8%; border-radius: 42% 58% 46% 54% / 50% 44% 56% 50%;
  background: var(--brand);
  overflow: hidden;
}
.hero-blob img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero-blob .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.7); font-weight: 600; text-align: center; padding: 20px; }
.float-card {
  position: absolute; background: var(--surface); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: center; font-size: .88rem; animation: bob 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 1.05rem; color: var(--ink); }
.float-card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--accent-soft); }
.float-card.one { top: 10%; left: -4%; }
.float-card.two { bottom: 8%; right: -2%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; margin-inline: auto; width: 100%; }
  .float-card.one { left: 0; }
  .float-card.two { right: 0; }
}

/* ---------- Stats strip ---------- */
.stats { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -40px; position: relative; z-index: 2; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--accent); }
.stat span { color: #c9cde0; font-size: .9rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.cat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s; display: block;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cat .ic { font-size: 2rem; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: var(--accent-soft); margin-bottom: 18px; }
.cat h3 { margin-bottom: 4px; }
.cat p { margin: 0; font-size: .9rem; }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.course {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.course:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.course-cover { height: 170px; position: relative; display: grid; place-items: center; color: #fff; overflow: hidden; }
.course-cover::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.35), transparent 40%),
              repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px);
}
.course-cover .big { font-size: 3.4rem; position: relative; }
.course-cover .tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.95); color: var(--ink);
  padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700;
}
.course-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.course-meta { display: flex; gap: 14px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.course-body h3 { margin-bottom: 8px; }
.course-body p { font-size: .92rem; flex: 1; }
.course-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 6px; font-size: .9rem; }
.course-foot .price { font-weight: 800; color: var(--ink); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; align-items: center; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: .9rem; cursor: pointer; font-family: inherit; color: var(--ink-soft);
}
.chip.active, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.search {
  margin-left: auto; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  font-family: inherit; font-size: .9rem; min-width: 220px; background: var(--surface);
}
@media (max-width: 700px) { .search { margin-left: 0; width: 100%; } }

/* ---------- Why us / features ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.feature-list { display: grid; gap: 18px; margin-top: 28px; }
.feature { display: flex; gap: 16px; }
.feature .num {
  flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.feature h4 { font-family: var(--font-body); font-size: 1.05rem; margin-bottom: 2px; font-weight: 700; }
.feature p { margin: 0; font-size: .93rem; }
.media-box {
  border-radius: 28px; aspect-ratio: 4 / 3.4; background: linear-gradient(160deg, var(--accent) 0%, #ff8a4c 100%);
  position: relative; display: grid; place-items: center; color: rgba(19,24,43,.6); font-weight: 600; overflow: hidden;
}
.media-box .badge {
  position: absolute; bottom: 22px; left: 22px; background: var(--surface); padding: 16px 20px; border-radius: 16px; box-shadow: var(--shadow); color: var(--ink);
}
.media-box .badge strong { font-family: var(--font-head); font-size: 1.8rem; display: block; color: var(--brand); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-size: 2.4rem; color: var(--accent); display: block; margin-bottom: 10px; font-weight: 700;
}
.step p { margin: 0; font-size: .92rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Instructors ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.member { text-align: center; }
.member-photo {
  aspect-ratio: 1 / 1.1; border-radius: 24px; margin-bottom: 16px; overflow: hidden; position: relative;
  display: grid; place-items: center; font-family: var(--font-head); font-size: 3rem; color: #fff;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin-bottom: 2px; }
.member .role { color: var(--brand); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.member p { font-size: .88rem; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testi { background: var(--surface); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); position: relative; }
.testi::before { content: "“"; font-family: var(--font-head); font-size: 5rem; line-height: .6; color: var(--accent); display: block; height: 36px; }
.testi blockquote { margin: 0 0 20px; font-size: 1.02rem; color: var(--ink); }
.testi .who { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--muted); }
.testi .who strong { color: var(--ink); display: block; }
.testi .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }

/* ---------- CTA ---------- */
.cta {
  background: var(--brand); color: #fff; border-radius: 32px; padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(255,255,255,.08); right: -90px; top: -120px; }
.cta h2 { color: #fff; }
.cta p { color: #d6dcff; margin: 0; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
.cta .btn-ghost { border-color: #fff; color: #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--brand); }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } .cta .actions { justify-content: flex-start; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a:hover { color: var(--brand); }

/* ---------- Course details ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: 100px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.sidebar .course-cover { height: 180px; }
.sidebar-body { padding: 24px; }
.facts { list-style: none; padding: 0; margin: 0 0 22px; }
.facts li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-weight: 700; }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; color: var(--ink-soft); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--brand); font-weight: 800; font-size: .75rem; display: grid; place-items: center; }
.program { counter-reset: mod; display: grid; gap: 10px; padding: 0; list-style: none; }
.program li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-weight: 600; display: flex; gap: 14px; }
.program li::before { counter-increment: mod; content: "Module " counter(mod); color: var(--brand); font-size: .8rem; font-weight: 800; min-width: 70px; padding-top: 2px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; margin-bottom: 14px; }
.info-card .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.3rem; }
.info-card h4 { font-family: var(--font-body); font-size: .95rem; margin: 0 0 2px; }
.info-card p { margin: 0; font-size: .93rem; }
.form { background: var(--surface); border-radius: 24px; padding: 32px; border: 1px solid var(--line); display: grid; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.form label { font-size: .85rem; font-weight: 700; display: grid; gap: 6px; }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: .95rem; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); }
.form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.map { border-radius: var(--radius); overflow: hidden; margin-top: 40px; height: 340px; background: repeating-linear-gradient(45deg, #efe9de 0 14px, #f6f1e8 14px 28px); display: grid; place-items: center; color: var(--muted); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b9bed4; padding: 72px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: 1rem; margin-bottom: 16px; }
.footer p { color: #b9bed4; font-size: .92rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.footer a:hover { color: var(--accent); }
.footer .logo { color: #fff; margin-bottom: 16px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.socials a:hover { background: var(--accent); color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37, 211, 102, .4);
}
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
}

.empty { text-align: center; padding: 40px; color: var(--muted); grid-column: 1 / -1; }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------- ACME additions ---------- */
.logo-img { height: 46px; width: auto; }
.logo-text { font-family: var(--font-body); font-size: .78rem; font-weight: 700; line-height: 1.2; color: var(--brand); border-left: 2px solid var(--accent); padding-left: 10px; }
.logo-text small { font-weight: 600; color: var(--brand); font-size: .72rem; }
@media (max-width: 420px) { .logo-text { display: none; } }
.footer-logo { width: 240px; margin-bottom: 6px; }
.footer .motto { color: var(--accent); font-style: italic; font-size: .85rem; margin-bottom: 16px; }
.agrement { font-size: .78rem !important; color: var(--accent) !important; }
.block { width: 100%; justify-content: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags .chip { font-size: .85rem; }
.diploma::before { display: none; }
.diploma h3 { font-family: var(--font-head); font-size: 2.4rem; color: var(--brand); margin-bottom: 6px; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .steps.three { grid-template-columns: 1fr; } }
.price-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 600px) { .price-row { grid-template-columns: 1fr; } }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.price-card span { display: block; color: var(--muted); font-weight: 600; }
.price-card strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--brand); }
.media-box.photo { background: none; }
.media-box.photo img { width: 100%; height: 100%; object-fit: cover; }
.info-card a { color: var(--brand); font-weight: 600; }
.count { color: var(--muted); font-size: .9rem; margin: -16px 0 20px; }
.course-body h3 { flex: 1; }
.contact-grid > * { min-width: 0; }
.info-card > div { min-width: 0; }
.info-card p, .info-card a { overflow-wrap: anywhere; }
.form input, .form select, .form textarea { width: 100%; min-width: 0; }
.form label, .form .two > * { min-width: 0; }
@media (max-width: 560px) { .form { padding: 22px; } }
.program.plain li::before { display: none; }
.docs { border: 1.5px dashed var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; margin: 0; }
.docs legend { font-weight: 800; font-size: .88rem; padding: 0 6px; }
.file-field small { font-weight: 500; color: var(--muted); }
.file-field input[type=file] { padding: 10px; background: var(--surface); cursor: pointer; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.consent input { width: auto !important; margin-top: 3px; }
.form-error { background: #fde8ec; color: #a1162f; padding: 12px 16px; border-radius: 12px; margin: 0; font-size: .92rem; }
.progress .bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress .bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.progress p { margin: 8px 0 0; font-size: .88rem; }
.success { background: #e7f8ee; border-radius: 16px; padding: 20px; }
.success h3 { margin-bottom: 6px; }
.wa-btn { background: #25d366; color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 900px) { .contact-grid .form { order: -1; } }

picture { display: contents; }

/* ---------- Cartes avec photo ---------- */
.cat-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cat-cover { height: 150px; position: relative; display: grid; place-items: center; color: #fff; overflow: hidden; }
.cat-cover .big { font-size: 3.4rem; }
.cat-cover img, .course-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-media:hover .cat-cover img, .course:hover .course-cover img { transform: scale(1.06); }
.course-cover.has-photo::before { display: none; }
.course-cover .tag { z-index: 1; }
.cat-cover.has-photo::after, .course-cover.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,22,48,.35), transparent 55%); }
.brand-tag { position: absolute; left: 12px; bottom: 12px; z-index: 1; background: var(--accent); color: var(--ink); font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.cat-body { padding: 0 22px 22px; position: relative; }
.cat-media .ic { margin: -30px 0 12px; position: relative; z-index: 2; background: var(--surface); box-shadow: var(--shadow); }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.g-item { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; background: var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.g-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; color: #fff; font-size: .8rem; font-weight: 600; text-align: left; background: linear-gradient(0deg, rgba(10,22,48,.75), transparent); opacity: 0; transition: opacity .3s; }
.g-item:hover img { transform: scale(1.07); }
.g-item:hover span, .g-item:focus-visible span { opacity: 1; }
@media (hover: none) { .g-item span { opacity: 1; } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,12,28,.92); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; color: #fff; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 12px; object-fit: contain; }
.lightbox figcaption { margin-top: 10px; font-weight: 600; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.agrement-line { overflow-wrap: anywhere; }
.cat-cover:not(.has-photo) .big { display: none; }
.cat-cover:not(.has-photo)::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.35), transparent 40%), repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 12px, transparent 12px 24px); }


/* ---------- Diaporama plein écran « Panorama » ---------- */
:root { --hh: 114px; }
.fs { --ease: cubic-bezier(.22, 1, .36, 1); position: relative; }
.fs ~ .wrap .stats { margin-top: 28px; }
.fs .card-tag { background: var(--accent); color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.fs h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 4.2rem); text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.fs h1 em { color: var(--accent); font-style: italic; }
.fs .eyebrow { color: var(--accent); }
.fs .lead { color: rgba(255,255,255,.88); font-size: 1.08rem; max-width: 540px; }
.fs .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 0; }
.btn-light { border-color: rgba(255,255,255,.8); color: #fff; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-light:hover { background: #fff; color: var(--ink); }
.fs-count { font-family: var(--font-head); color: #fff; white-space: nowrap; }
.fs-count strong { font-size: 2rem; font-weight: 600; }
.fs-count span { opacity: .6; margin-left: 4px; }
.fs-nav { display: flex; gap: 10px; }
.fs-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font-size: 1.15rem; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .35s var(--ease), color .35s, transform .35s var(--ease); }
.fs-nav button:hover { background: #fff; color: var(--ink); transform: scale(1.06); }
.fs .on i { animation: fs-fill var(--dur, 5600ms) linear forwards; }
.fs.paused .on i, .fs.reduced .on i { animation-play-state: paused; }
.fs.reduced .on i { animation-play-state: running; }
@keyframes fs-fill { from { width: 0; } to { width: 100%; } }

@keyframes fs-settle { from { transform: scale(1.22); } to { transform: scale(1.04); } }
/* ---------- Panorama ---------- */
.fs-pano { --w: min(74vw, 1200px); --gap: 22px; min-height: calc(100svh - var(--hh)); background: var(--ink); color: #fff; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 26px 0 24px; overflow: hidden; isolation: isolate; }
.fs-pano::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 50% 0%, rgba(42,98,176,.45), transparent 70%), radial-gradient(40% 40% at 50% 100%, rgba(246,190,22,.18), transparent 70%); }
.pano-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.pano-head h1 { margin: 6px 0 0; font-size: clamp(1.9rem, 3.4vw, 3.1rem); max-width: 760px; }
.pano-head .hero-actions { margin: 0; flex: none; }
.pano-stage { position: relative; min-height: 380px; touch-action: pan-y; }
.pano-track { position: absolute; inset: 0; }
.pano-slide { position: absolute; top: 0; bottom: 0; left: 50%; width: var(--w); margin: 0 0 0 calc(var(--w) / -2); border-radius: 34px; overflow: hidden; background: #1c2a4a; cursor: pointer;
  transform: translateX(calc(var(--d, 0) * (var(--w) + var(--gap)) * .92)) scale(.86); filter: brightness(.55) saturate(.8);
  transition: transform 1.05s var(--ease), filter 1.05s var(--ease), opacity .8s var(--ease); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.pano-slide[data-d="0"] { transform: translateX(0) scale(1); filter: none; z-index: 2; cursor: grab; }
.pano-slide[data-d="far"] { opacity: 0; }
.pano-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.pano-slide[data-d="0"] img { animation: fs-settle calc(var(--dur, 5600ms) + 1.4s) cubic-bezier(.2,.7,.2,1) both; }
.pano-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,18,40,.8) 0%, transparent 45%); pointer-events: none; }
.pano-slide figcaption { position: absolute; left: 30px; bottom: 26px; right: 30px; z-index: 1; display: grid; gap: 10px; justify-items: start; }
.pano-slide figcaption strong { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.4rem, 2.8vw, 2.4rem); line-height: 1.1; }
.pano-slide figcaption > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.pano-slide[data-d="0"] figcaption > * { opacity: 1; transform: none; transition-delay: .4s; }
.pano-foot { display: flex; align-items: center; gap: 22px; }
.pano-progress { flex: 1; display: flex; gap: 6px; }
.pano-progress button { flex: 1; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; cursor: pointer; }
.pano-progress button::before { content: ""; position: absolute; inset: -12px 0; }
.pano-progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; }
.pano-progress .done i { width: 100%; background: rgba(255,255,255,.6); }

/* ---------- Téléphone ---------- */
@media (max-width: 900px) {
  .pano-head { flex-direction: column; align-items: start; }
}
@media (max-width: 700px) {
  .fs .lead { display: none; }
  .fs h1 { font-size: 2.05rem; }
  .fs .hero-actions { flex-wrap: nowrap; gap: 8px; }
  .fs .hero-actions .btn { padding: 12px 15px; font-size: .88rem; white-space: nowrap; }
  .fs-count strong { font-size: 1.4rem; }
  .fs-nav button { width: 44px; height: 44px; }
  .fs-pano { --w: 84vw; --gap: 12px; gap: 14px; padding-top: 18px; }
  .fs-pano .eyebrow { display: none; }
  .pano-head h1 { font-size: 1.75rem; }
  .pano-stage { min-height: 340px; }
  .pano-slide { border-radius: 26px; }
  .pano-slide figcaption { left: 18px; bottom: 18px; }
}
.pano-badge { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 7px 14px; border-radius: 999px; background: rgba(246,190,22,.16); border: 1px solid rgba(246,190,22,.45); color: #fff; font-size: .92rem; }
.pano-badge strong { color: var(--accent); }
@media (max-width: 700px) { .pano-badge { font-size: .8rem; margin-top: 8px; padding: 6px 12px; } }
.fb-float {
  position: fixed; right: 20px; bottom: 90px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #1877f2; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(24, 119, 242, .4);
  transition: transform .25s;
}
.fb-float svg { width: 30px; height: 30px; }
.fb-float:hover, .wa-float:hover { transform: translateY(-3px); }
@media (max-width: 700px) { .fb-float { width: 52px; height: 52px; bottom: 84px; right: 18px; } .fb-float svg { width: 27px; height: 27px; } }
[hidden] { display: none !important; }
