/* ============================================================
   POLYCREATIFS — Design System
   Extrait de polycreatifs-home et landing-page-fusion
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --orange:        #F7841E;
  --orange-dark:   #D96A0A;
  --orange-light:  #FFF4EA;
  --orange-glow:   rgba(247, 132, 30, 0.15);

  --anthracite:    #2B2B2B;
  --dark:          #1A1A1A;
  --dark-2:        #222222;

  --grey-light:    #F5F5F3;
  --grey-mid:      #E2E1DC;
  --grey-text:     #6B6864;
  --grey-border:   #DEDBD5;

  --white:         #FFFFFF;
  --text:          #1A1A1A;

  --radius:        8px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  --shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
  --shadow:        0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 48px rgba(0,0,0,0.12);
  --shadow-dark:   0 8px 32px rgba(0,0,0,0.3);

  --transition:    all 0.25s ease;

  --container:     1140px;
  --container-pad: 24px;

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  background: var(--dark); /* évite la bande blanche sous le footer */
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange-dark); }
ul { list-style: none; }

/* ── Platform pages (auth, admin, dashboard, course) ──────── */
/* Admin/private templates use white text — give main a dark bg */
main {
  background: var(--dark);
  color: var(--white);
  min-height: calc(100vh - 68px);
}

/* Auth forms (login, account) */
.auth-container {
  max-width: 480px;
  margin: 4rem auto;
  padding: 2.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
}
.auth-container h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.75rem;
}
.auth-form .form-group {
  margin-bottom: 1.25rem;
}
.auth-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  transition: var(--transition);
}
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="text"]:focus,
.auth-form input:focus {
  outline: none;
  border-color: var(--orange);
  background: #1e1e1e !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
/* Override browser autofill white background */
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #1e1e1e inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
}

/* Flash messages — defined once, second block at line ~347 is authoritative */

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section { padding: 88px 0; }
.section-light { background: var(--grey-light); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 700; }

p { line-height: 1.7; }

.text-orange { color: var(--orange); }

.section-label-top {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 48px;
  color: var(--dark);
}

.section-title.light { color: var(--white); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  padding: 12px 24px;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(247,132,30,0.4);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-sm { font-size: 0.82rem; padding: 8px 18px; }
.btn-large { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── Tags ─────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.12);
}

.tag-orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* ── HEADER ───────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}

#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-text {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--white);
}

.brand-accent { color: var(--orange); }

.brand-flame { flex-shrink: 0; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.nav-link:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ── MAIN CONTENT (offset for fixed header) ───────────────── */
main {
  padding-top: 68px;
  min-height: calc(100vh - 68px - 120px);
}

/* ── FLASH MESSAGES ───────────────────────────────────────── */
.flash {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 998;
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 4px solid;
  animation: flashIn 0.3s ease, flashOut 0.5s ease 5s forwards;
}

@keyframes flashIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes flashOut {
  from { opacity: 1; }
  to   { opacity: 0; pointer-events: none; }
}

.flash p { margin: 0; line-height: 1.5; }
.flash p + p { margin-top: 4px; }

.flash-success {
  background: #16a34a;
  border-color: #15803d;
  color: #fff;
}

.flash-error {
  background: #dc2626;
  border-color: #b91c1c;
  color: #fff;
}

/* ── FOOTER ───────────────────────────────────────────────── */
#footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--orange); }

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
}

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HOME PAGE — HERO ─────────────────────────────────────── */
#hero {
  position: relative;
  background: var(--dark);
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

#hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(247,132,30,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 760px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-inner h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.tool-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
}

.tool-tag--more {
  border-color: rgba(247,132,30,0.4);
  color: var(--orange);
  background: rgba(247,132,30,0.08);
}

/* ── HOME PAGE — DOMAINES ─────────────────────────────────── */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.domain-card {
  background: var(--white);
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}

.domain-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(247,132,30,0.1);
  transform: translateY(-2px);
}

.domain-card--soon {
  background: var(--grey-light);
  border-style: dashed;
}

.domain-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.domain-card h3 {
  color: var(--dark);
  margin-bottom: 10px;
  font-size: 1rem;
}

.domain-card p {
  font-size: 0.88rem;
  color: var(--grey-text);
  line-height: 1.65;
}

.domain-card--soon h3 {
  color: var(--grey-text);
}

/* ── HOME PAGE — COURSE CARD ──────────────────────────────── */
#formation {
  background: var(--anthracite);
}

#formation .section-label-top {
  color: rgba(247,132,30,0.9);
}

.course-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 48px;
  border-left: 4px solid var(--orange);
}

.course-logo {
  height: 28px;
  width: auto;
  opacity: 0.7;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.course-card-body h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--white);
  margin-bottom: 14px;
  font-weight: 800;
}

.course-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 24px;
}

.course-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.price-old {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-decoration: line-through;
  white-space: nowrap;
}

.price-main {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.price-badge {
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
}

.course-card-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 160px;
  padding-top: 8px;
}

.cstat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cstat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cstat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.03em;
  line-height: 1;
}

.cstat-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* ── LANDING PAGE — HERO (slideshow version) ──────────────── */
.hero-bg-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-bg-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: clamp(560px, 55vw, 860px);
  max-width: calc(100vw - 48px);
  margin: 0 auto;
  background: rgba(15, 15, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--orange);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 44px 48px 44px 36px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  text-align: center;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.hero-price-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.price-old {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-decoration: line-through;
  white-space: nowrap;
}

.price-main {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-urgency {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}

.urgency-dot {
  width: 8px;
  height: 8px;
  background: #4CAF50;
  border-radius: 50%;
  animation: urgency-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes urgency-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-software-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.software-logo {
  height: 32px;
  width: auto;
  opacity: 0.7;
  filter: brightness(0) invert(1);
}

.hero-visual { display: none; }

/* ── LANDING PAGE — STATS ─────────────────────────────────── */
#stats {
  padding: 0;
  background: var(--anthracite);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 3px solid var(--orange);
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 36px 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-plus {
  font-size: 1.4rem;
  vertical-align: super;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ── LANDING PAGE — PROBLÈME ──────────────────────────────── */
#probleme {
  text-align: center;
  position: relative;
  overflow: hidden;
}

#probleme::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/fusion-360-sketch-bg.jpg');
  background-position: top right;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

#probleme .container {
  position: relative;
  z-index: 1;
}

#probleme .section-title {
  max-width: 640px;
  margin: 0 auto 48px;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.problem-item {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
}

.problem-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.problem-item p {
  font-size: 0.9rem;
  color: var(--grey-text);
  line-height: 1.6;
}

.problem-resolution {
  background: linear-gradient(135deg, var(--dark), var(--anthracite));
  color: var(--white);
  border-left: 4px solid var(--orange);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  max-width: 640px;
  margin: 0 auto;
}

.problem-resolution p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

/* ── LANDING PAGE — AVANTAGES ─────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.benefit-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(247, 132, 30, 0.25);
  transform: translateY(-3px);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-glow);
  border: 1px solid rgba(247, 132, 30, 0.2);
  border-radius: var(--radius);
  color: var(--orange);
  margin-bottom: 18px;
}

.benefit-card h3 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1rem;
}

.benefit-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ── LANDING PAGE — PROGRAMME ─────────────────────────────── */
.programme-intro {
  color: var(--dark);
  margin-bottom: 40px;
}

.programme-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.programme-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  z-index: 0;
}

.session-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.session-card:hover {
  border-color: rgba(247, 132, 30, 0.35);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.session-featured {
  border-color: var(--orange);
  background: var(--orange-light);
}

.session-featured:hover {
  border-color: var(--orange-dark);
}

.session-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.05em;
  line-height: 1;
  min-width: 44px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.session-content { flex: 1; }

.session-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.session-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-text);
}

.session-type-special { color: var(--orange-dark); }

.session-star {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  background: rgba(247, 132, 30, 0.1);
  padding: 2px 8px;
  border-radius: 100px;
}

.session-content h3 {
  color: var(--text);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.session-content p {
  font-size: 0.875rem;
  color: var(--grey-text);
  margin-bottom: 14px;
}

.session-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.session-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(247, 132, 30, 0.08);
  color: var(--orange-dark);
  border: 1px solid rgba(247, 132, 30, 0.2);
}

.session-img {
  flex-shrink: 0;
  width: 281px;
  height: 204px;
  border-radius: var(--radius);
  overflow: hidden;
  align-self: center;
}

.session-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── LANDING PAGE — RÉSULTATS ─────────────────────────────── */
#resultats {
  background: var(--anthracite);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.results-text .section-title { margin-bottom: 28px; }

.results-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.result-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

.result-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(247, 132, 30, 0.15);
  border: 1.5px solid rgba(247, 132, 30, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--orange);
  font-weight: 700;
  margin-top: 1px;
}

.results-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
  width: 100%;
}

.visual-caption {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ── LANDING PAGE — FORMATEUR ─────────────────────────────── */
.instructor-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}

.instructor-photo-wrapper { position: relative; }

.instructor-photo {
  border-radius: var(--radius-xl);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.instructor-name-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  white-space: nowrap;
  border-bottom: 3px solid var(--orange);
}

.instructor-name-badge strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.instructor-name-badge span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.instructor-section-header { margin-bottom: 40px; }

.instructor-bio { padding-top: 0; }

.instructor-bio h2 { margin: 8px 0 20px; }

.instructor-bio p {
  font-size: 0.95rem;
  color: var(--grey-text);
  margin-bottom: 16px;
}

.instructor-stats {
  display: flex;
  gap: 24px;
  margin: 28px 0;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-border);
  flex-wrap: wrap;
}

.istat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.istat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.03em;
}

.istat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey-text);
}

/* ── LANDING PAGE — TARIF ─────────────────────────────────── */
#tarif { background: var(--dark); }

#tarif .section-title {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--grey-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--orange);
  box-shadow: 0 16px 56px rgba(247, 132, 30, 0.12);
}

.pricing-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--grey-border);
}

.pricing-logo {
  height: 36px;
  width: auto;
  margin: 0 auto 16px;
}

.pricing-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.pricing-header h3 span { color: var(--orange); }

.pricing-header p {
  font-size: 0.85rem;
  color: var(--grey-text);
  margin-top: 6px;
}

.pricing-price-block {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.price-old-big {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--grey-text);
  text-decoration: line-through;
}

.price-main-big {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;
}

.price-badge-inline {
  background: var(--orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  align-self: center;
}

.pricing-includes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pricing-includes li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text);
}

.pricing-includes .check {
  color: var(--orange);
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

.pricing-reassurance {
  text-align: center;
  font-size: 0.78rem;
  color: var(--grey-text);
  margin-top: 16px;
  line-height: 1.6;
}

.pricing-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.pricing-side--dark .side-point strong { color: var(--white); }
.pricing-side--dark .side-point p { color: rgba(255,255,255,0.55); }
.pricing-side--dark .side-point p a { color: var(--orange); }

.side-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.side-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.side-point strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text);
}

.side-point p {
  font-size: 0.875rem;
  color: var(--grey-text);
  line-height: 1.6;
}

/* ── LANDING PAGE — FORMULAIRE INSCRIPTION ────────────────── */
#inscription { background: var(--anthracite); }

#inscription .section-title,
#inscription .section-label-top,
#inscription .section-intro {
  text-align: center;
}

#inscription .section-intro {
  margin: 0 auto 40px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--grey-text);
  max-width: 600px;
  margin-bottom: 48px;
}

.section-intro.light { color: rgba(255,255,255,0.75); }

.form-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--anthracite);
}

.required { color: var(--orange); font-weight: 900; }

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--grey-text);
  font-size: 0.78rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--grey-light);
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: var(--transition);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6864' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e74c3c;
  background: #fff8f8;
}

.btn-loader {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-message {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.6;
}

.form-success {
  background: #f0fff4;
  border: 1.5px solid #27ae60;
  color: #1a6635;
}

.form-error {
  background: #fff5f5;
  border: 1.5px solid #e74c3c;
  color: #8b1a1a;
}

.form-error a { color: #c0392b; }

/* ── LANDING PAGE — FAQ ───────────────────────────────────── */
#faq .section-title { margin-bottom: 48px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(247, 132, 30, 0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 16px;
  transition: var(--transition);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  line-height: 1;
}

.faq-item[open] .faq-question::after { transform: rotate(45deg); }

.faq-item[open] .faq-question { color: var(--orange); }

.faq-answer {
  padding: 0 24px 22px;
  border-top: 1px solid var(--grey-border);
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--grey-text);
  line-height: 1.75;
  padding-top: 18px;
}

.faq-answer strong { color: var(--text); }

/* ── LANDING PAGE — CTA FINAL ─────────────────────────────── */
#cta-final {
  position: relative;
  background: var(--dark);
  text-align: center;
  padding: 100px 0;
  overflow: hidden;
}

.cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }

#cta-final h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

#cta-final p {
  color: rgba(255,255,255,0.6);
  max-width: 540px;
  margin: 0 auto 36px;
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cta-guarantees {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-guarantees span {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .domains-grid { grid-template-columns: repeat(2, 1fr); }

  .course-card { grid-template-columns: 1fr; }

  .course-card-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    min-width: auto;
  }

  .cstat {
    border-bottom: none;
    padding-bottom: 0;
    min-width: 120px;
  }

  .instructor-grid {
    grid-template-columns: 300px 1fr;
    gap: 40px;
  }

  .pricing-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pricing-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .header-nav { display: none; }
  .nav-toggle { display: flex; }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  /* Home hero */
  .hero-inner {
    padding-top: 110px;
    padding-bottom: 72px;
  }

  /* Domains */
  .domains-grid { grid-template-columns: 1fr; }

  /* Course card */
  .course-card { padding: 32px 24px; }

  /* Landing hero */
  .hero-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: var(--radius-lg);
    background: rgba(15, 15, 15, 0.65);
    border-left: 1px solid rgba(255,255,255,0.07);
    padding: 32px 20px;
  }

  .hero-tags .tag { font-size: 0.65rem; padding: 4px 8px; }
  .hero-urgency { flex-wrap: nowrap; font-size: 0.75rem; }
  .hero-software-badge { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* Stats */
  .stats-inner { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .stat-divider { display: none; }

  /* Problems */
  .problems-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Benefits */
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* Programme */
  .session-img { display: none; }

  /* Résultats */
  .results-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Instructor */
  .instructor-grid { grid-template-columns: 1fr; gap: 48px; }
  .instructor-photo-wrapper { max-width: 320px; margin: 0 auto; }
  .instructor-stats { flex-wrap: wrap; gap: 16px; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .form-wrapper { padding: 28px 20px; }

  /* Pricing */
  .pricing-card { padding: 28px 22px; }
  .pricing-side { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --container-pad: 16px; }

  section { padding: 52px 0; }

  .hero-inner h1 { font-size: 1.9rem; }
  .hero-tools { gap: 8px; }

  .problems-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 20px 32px; }
  .programme-timeline::before { display: none; }
  .session-card { flex-direction: column; gap: 12px; }
  .session-num { font-size: 1.4rem; }
  .session-img { display: block; height: 200px; }
  .pricing-price-block { flex-direction: column; align-items: center; gap: 8px; }
  .price-main-big { font-size: 2.4rem; }
  .btn-full { white-space: normal; text-align: center; }
  .cta-actions .btn { white-space: normal; text-align: center; }
}

/* ── Markdown rendered content ────────────────────────────── */
.markdown-content {
  line-height: 1.75;
  color: #e8e8e8;
}
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  font-family: var(--font);
  font-weight: 800;
  color: #fff;
  margin: 2rem 0 0.75rem;
  line-height: 1.25;
}
.markdown-content h1 { font-size: 2rem; }
.markdown-content h2 { font-size: 1.5rem; }
.markdown-content h3 { font-size: 1.2rem; }
.markdown-content p  { margin: 0 0 1rem; }
.markdown-content ul,
.markdown-content ol {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
}
.markdown-content ul { list-style: disc; }
.markdown-content ol { list-style: decimal; }
.markdown-content li { margin-bottom: 0.35rem; }
.markdown-content li > ul,
.markdown-content li > ol {
  margin-top: 0.35rem;
  margin-bottom: 0;
}
.markdown-content blockquote {
  border-left: 3px solid var(--orange);
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: rgba(247, 132, 30, 0.07);
  color: rgba(255,255,255,0.75);
  font-style: italic;
}
.markdown-content blockquote p { margin: 0; }
.markdown-content code {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875em;
  color: #f0c070;
}
.markdown-content pre {
  background: rgba(0,0,0,0.35);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 0 0 1rem;
}
.markdown-content pre code {
  background: none;
  padding: 0;
  color: #e8e8e8;
  font-size: 0.875rem;
}
.markdown-content a {
  color: var(--orange);
  text-decoration: underline;
}
.markdown-content a:hover { color: var(--orange-dark); }
.markdown-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0.5rem 0;
}
.markdown-content hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 1.5rem 0;
}
.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}
.markdown-content th,
.markdown-content td {
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.markdown-content th {
  background: rgba(255,255,255,0.06);
  font-weight: 700;
  color: #fff;
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  #site-header, #cta-final, #footer { display: none; }
}
