/* ═══════════════════════════════════════════════
   COURS EN VISIO — Feuille de style globale
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #ffffff;
  --bg-soft:       #f7f7f5;
  --bg-card:       #ffffff;
  --border:        rgba(0,0,0,0.10);
  --border-strong: rgba(0,0,0,0.18);
  --text:          #1a1a1a;
  --muted:         #6b6b6b;
  --faint:         #767676;
  --success-bg:    #eaf3de;
  --success-text:  #27500a;
  --info-bg:       #e6f1fb;
  --info-text:     #0c447c;
  --warn-bg:       #faeeda;
  --warn-text:     #633806;
  --r-md:          8px;
  --r-lg:          12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

/* ── NAV ── */
.nav {
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo { text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-espace-eleve {
  font-size: 16px; font-weight: 500;
  color: var(--text);
  border: 0.5px solid var(--border-strong);
  padding: 7px 16px; border-radius: var(--r-md);
  text-decoration: none; transition: background .15s, color .15s;
}
.nav-espace-eleve:hover { background: var(--bg-soft); color: var(--text); }
.nav-cta {
  font-size: 16px; font-weight: 500;
  background: var(--text); color: #fff;
  padding: 8px 18px; border-radius: var(--r-md);
  text-decoration: none; transition: opacity .15s;
}
.nav-cta:hover { opacity: .85; }
/* ── NAV ESPACE PARENT ── */
.nav-espace-parent {
  font-size: 16px; font-weight: 500;
  color: var(--muted);
  text-decoration: none; transition: color .15s;
}
.nav-espace-parent:hover { color: var(--text); }

/* ── NAV BURGER (mobile) ── */
.nav-burger {
  display: none;
  background: none;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  padding: 7px 10px;
  color: var(--text);
  line-height: 0;
  flex-shrink: 0;
}

/* ── MOBILE MENU ── */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: var(--bg);
  border-top: 0.5px solid var(--border);
  padding: 8px 24px 16px;
}
.nav-mobile-menu a {
  font-size: 16px; color: var(--muted);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border);
  display: block; transition: color .15s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--text); }
.nav-mobile-menu .nav-espace-parent { color: var(--text); font-weight: 500; }
.nav-mobile-menu .nav-espace-eleve  { color: var(--text); font-weight: 500; }
.nav-mobile-menu .nav-cta {
  margin-top: 8px; display: block; text-align: center;
  background: var(--text); color: #fff;
  padding: 12px 24px; border-radius: var(--r-md);
  border-bottom: none; font-weight: 500; font-size: 14px;
}
.nav-mobile-menu .nav-cta:hover { opacity: .85; color: #fff; }
.mobile-nav-section { display: flex; flex-direction: column; }
.mobile-nav-section-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--faint);
  padding: 14px 20px 6px; pointer-events: none;
}
.mobile-nav-divider { height: 0.5px; background: var(--border); margin: 8px 0; }
.nav-burger-icon-open  { display: block; }
.nav-burger-icon-close { display: none; }
.nav.nav-open .nav-burger-icon-open  { display: none; }
.nav.nav-open .nav-burger-icon-close { display: block; }

@media (max-width: 900px) {
  .nav-links  { display: none; }
  .nav-actions { display: none; }
  .nav-burger { display: flex; align-items: center; }
  .nav.nav-open .nav-mobile-menu { display: flex; }
}

/* ── LAYOUT ── */
.page-wrap { max-width: 860px; margin: 0 auto; padding: 40px 20px 80px; }

/* ── PROPS GRID (landing pages) ── */
.props-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px;
}
@media (max-width: 700px) { .props-grid { grid-template-columns: 1fr; } }
.prop-card {
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: var(--r-lg); padding: 24px 28px;
}
.prop-card h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.prop-card p  { font-size: 16px; color: var(--muted); line-height: 1.6; }
.prop-icon {
  width: 44px; height: 44px; min-width: 44px; background: var(--info-bg);
  border-radius: var(--r-md); display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px;
}
.prop-icon svg { width: 22px; height: 22px; color: var(--info-text); }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 16px; color: var(--faint); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* ── CARD ── */
.card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; font-size: 16px; font-weight: 500;
  background: var(--text); color: #fff;
  padding: 13px 26px; border-radius: var(--r-md);
  text-decoration: none; transition: opacity .15s; cursor: pointer; border: none;
}
.btn-primary:hover { opacity: .85; }
.btn-secondary {
  display: inline-block; font-size: 16px; color: var(--muted);
  border: 0.5px solid var(--border-strong);
  padding: 13px 26px; border-radius: var(--r-md);
  text-decoration: none; transition: color .15s, border-color .15s; background: none; cursor: pointer;
}
.btn-secondary:hover { color: var(--text); border-color: var(--text); }
.btn-sm {
  display: inline-block; font-size: 16px; font-weight: 500;
  background: var(--text); color: #fff;
  padding: 9px 18px; border-radius: var(--r-md);
  text-decoration: none; transition: opacity .15s;
}
.btn-sm:hover { opacity: .85; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ── BADGES ── */
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-md); }
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-info    { background: var(--info-bg);    color: var(--info-text); }
.badge-warn    { background: var(--warn-bg);    color: var(--warn-text); }
.badge-neutral { background: var(--bg-soft);    color: var(--muted); }

/* ── STEP TAG ── */
.step-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  background: var(--bg-soft); color: var(--muted);
  padding: 5px 14px; border-radius: var(--r-md); margin-bottom: 16px;
}
.step-tag svg { width: 14px; height: 14px; }

/* ── SECTION HEADER ── */
.section-header { padding: 32px 36px 0; }
.section-title  { font-size: 24px; font-weight: 600; line-height: 1.3; color: var(--text); margin-bottom: 12px; }
.section-lead   { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 640px; margin-bottom: 24px; }

/* ── DIVIDER ── */
.divider { height: 0.5px; background: var(--border); margin: 0 36px; }

/* ── DETAIL GRID ── */
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 0 36px 28px;
}
.detail-item { padding: 20px 20px 20px 0; }
.detail-item:nth-child(even) { padding-left: 32px; border-left: 0.5px solid var(--border); }
.detail-item:nth-child(n+3) { border-top: 0.5px solid var(--border); }
.detail-icon {
  width: 36px; height: 36px; background: var(--bg-soft);
  border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.detail-icon svg { width: 18px; height: 18px; }
.detail-item h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.detail-item p  { font-size: 16px; color: var(--muted); line-height: 1.6; }
@media (max-width: 600px) {
  .detail-grid { grid-template-columns: 1fr; padding: 0 24px 24px; }
  .detail-item:nth-child(even) { padding-left: 0; border-left: none; border-top: 0.5px solid var(--border); }
  .detail-item:nth-child(2) { border-top: 0.5px solid var(--border); }
}

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  margin: 0 36px 28px;
  background: var(--bg-soft); border-radius: var(--r-lg);
  border: 0.5px solid var(--border); padding: 16px 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.highlight-box svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; margin-top: 2px; }
.highlight-box p { font-size: 16px; color: var(--muted); line-height: 1.6; }
.highlight-box strong { font-weight: 600; color: var(--text); }

/* ── MOCK INTERFACE ── */
.mock-interface {
  margin: 4px 36px 28px;
  background: var(--bg-soft); border-radius: var(--r-lg);
  border: 0.5px solid var(--border); padding: 18px 20px;
}
.mock-header {
  font-size: 12px; font-weight: 600; color: var(--muted);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border);
  display: flex; align-items: center; gap: 7px;
}
.mock-header svg { width: 14px; height: 14px; }
.mock-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 0.5px solid var(--border); font-size: 16px;
}
.mock-row:last-child { border-bottom: none; }
.mock-label { color: var(--muted); }
.mock-val   { font-weight: 600; color: var(--text); }

/* ── PROGRESS ── */
.prog-row { margin-top: 12px; }
.prog-label-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.prog-track { height: 5px; background: var(--border-strong); border-radius: 3px; overflow: hidden; }
.prog-fill  { height: 100%; border-radius: 3px; background: var(--text); }

/* ── CONNECTOR ── */
.step-connector { display: flex; align-items: center; justify-content: center; padding: 4px 0; color: var(--faint); }
.step-connector svg { width: 22px; height: 22px; }

/* ── FAQ ACCORDION ── */
details { border-top: 0.5px solid var(--border); }
details:last-of-type { border-bottom: 0.5px solid var(--border); }
summary {
  font-size: 16px; font-weight: 500; color: var(--text);
  padding: 16px 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 18px; color: var(--muted); flex-shrink: 0; margin-left: 16px; }
details[open] summary::after { content: "−"; }
.faq-answer { font-size: 14px; color: var(--muted); line-height: 1.7; padding-bottom: 18px; }

/* ── FOOTER ── */
footer { background: var(--bg); border-top: 0.5px solid var(--border); padding: 40px 24px; }
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.footer-desc  { font-size: 16px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.footer-sap {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--success-bg); color: var(--success-text);
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: var(--r-md);
}
.footer-sap svg { width: 13px; height: 13px; }
.footer-col-title { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 12px; letter-spacing: .04em; text-transform: uppercase; }
.footer-col a { display: block; font-size: 16px; color: var(--muted); text-decoration: none; margin-bottom: 7px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1080px; margin: 32px auto 0; padding-top: 20px;
  border-top: 0.5px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--faint);
}
.footer-bottom a { color: inherit; text-decoration: none; margin-right: 12px; }
.footer-bottom a:hover { color: var(--text); }

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 640px) {
  .section-header { padding: 24px 24px 0; }
  .divider { margin: 0 24px; }
  .highlight-box, .mock-interface { margin-left: 24px; margin-right: 24px; }
}

/* ── NAV DROPDOWNS ── */
.has-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.nav-dropdown-trigger .chev { width: 13px; height: 13px; transition: transform 0.2s; flex-shrink: 0; }
.has-dropdown.open .nav-dropdown-trigger .chev { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: -16px;
  background: var(--bg); border: 0.5px solid var(--border);
  border-radius: var(--r-lg); box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  min-width: 240px; padding: 6px;
  list-style: none;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
}
.has-dropdown.open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.nav-dropdown li a {
  display: block; padding: 9px 12px; border-radius: var(--r-md);
  font-size: 16px; color: var(--muted); text-decoration: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.nav-dropdown li a:hover { background: var(--bg-soft); color: var(--text); }
.dropdown-divider { height: 0.5px; background: var(--border); margin: 5px 8px; }
.dropdown-header { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); padding: 10px 12px 4px; }
.nav-dropdown > .dropdown-header:first-child { padding-top: 4px; }
/* Menu Connexion (fusion parent/élève) dans la barre d'actions */
.nav-login .nav-dropdown-trigger { font-size: 14px; color: var(--muted); transition: color .15s; }
.nav-login.open .nav-dropdown-trigger, .nav-login .nav-dropdown-trigger:hover { color: var(--text); }
.nav-login .nav-dropdown { left: auto; right: 0; min-width: 190px; }

@media (max-width: 900px) {
  .nav-dropdown {
    position: static; box-shadow: none; border: none; border-radius: 0;
    padding: 0 0 0 12px; opacity: 1; visibility: visible;
    pointer-events: auto; transform: none;
    display: none; min-width: 0;
  }
  .has-dropdown.open .nav-dropdown { display: block; }
  .nav-dropdown li a { font-size: 14px; color: var(--muted); border-bottom: none; padding: 8px 0; }
  .dropdown-divider { display: none; }
}

/* ── LANDING PAGE — HERO ── */
.lp-hero {
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: var(--r-lg); padding: 56px 44px;
  text-align: center; margin-bottom: 16px;
}
.lp-hero-badge {
  display: inline-block;
  background: var(--info-bg); color: var(--info-text);
  font-size: 12px; font-weight: 700; padding: 5px 14px;
  border-radius: 50px; margin-bottom: 22px;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.lp-hero h1 {
  font-size: 40px; font-weight: 800; line-height: 1.15;
  color: var(--text); margin-bottom: 18px; max-width: 720px; margin-left: auto; margin-right: auto;
}
.lp-hero h1 b { color: #378ADD; }
.lp-hero-sub {
  font-size: 18px; color: var(--muted); line-height: 1.7;
  max-width: 620px; margin: 0 auto 32px;
}
.lp-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.lp-trust-row {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  font-size: 12px; color: var(--faint);
}
.lp-trust-row span { display: flex; align-items: center; gap: 5px; }
.lp-trust-row span::before { content: "✓"; color: var(--success-text); font-weight: 700; }
@media (max-width: 700px) {
  .lp-hero { padding: 40px 24px; }
  .lp-hero h1 { font-size: 28px; }
  .lp-hero-sub { font-size: 16px; }
}

/* ── LANDING PAGE — PROGRAMME ── */
.lp-program-card {
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: var(--r-lg); padding: 36px 44px; margin-bottom: 16px;
}
.lp-program-card h2 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.lp-program-card .lead { font-size: 16px; color: var(--muted); margin-bottom: 24px; line-height: 1.7; }
.program-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.program-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; background: var(--bg-soft); border-radius: var(--r-md);
  border: 0.5px solid var(--border);
}
.program-item-icon {
  width: 34px; height: 34px; min-width: 34px; background: var(--info-bg); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
}
.program-item-icon svg { width: 16px; height: 16px; color: var(--info-text); }
.program-item-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.program-item-desc { font-size: 16px; color: var(--muted); line-height: 1.5; }
@media (max-width: 700px) {
  .lp-program-card { padding: 28px 24px; }
}

/* ── LANDING PAGE — FORM ── */
.lp-form-card {
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: var(--r-lg); padding: 36px 44px; margin-bottom: 16px;
  scroll-margin-top: 80px;
}
.lp-form-card h2 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.lp-form-card .lead { font-size: 16px; color: var(--muted); margin-bottom: 28px; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 16px; font-weight: 500; color: var(--text); }
.form-control {
  padding: 11px 14px; border: 0.5px solid var(--border-strong);
  border-radius: var(--r-md); font-size: 14px; font-family: var(--font);
  color: var(--text); background: var(--bg); transition: border-color 0.15s; outline: none;
  -webkit-appearance: none; appearance: none;
}
.form-control:focus { border-color: #378ADD; box-shadow: 0 0 0 3px rgba(55,138,221,0.12); }
.form-control::placeholder { color: var(--faint); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 24 24' stroke='%236b6b6b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px; cursor: pointer;
}
textarea.form-control { resize: vertical; min-height: 90px; line-height: 1.6; }
.form-note { font-size: 12px; color: var(--faint); margin-top: 16px; line-height: 1.5; }
.form-submit-row { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-success {
  display: none; background: var(--success-bg); color: var(--success-text);
  border-radius: var(--r-lg); padding: 20px 24px; font-size: 16px; font-weight: 500;
  line-height: 1.6; border: 0.5px solid rgba(39,80,10,0.15);
}
.form-error {
  display: none; background: #fde8e8; color: #7f1d1d;
  border-radius: var(--r-md); padding: 14px 18px; font-size: 14px; margin-top: 12px;
}
@media (max-width: 700px) {
  .lp-form-card { padding: 28px 24px; }
}

/* ── LANDING PAGE — STAGE SCHEDULE ── */
.stage-schedule {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px;
}
@media (max-width: 640px) { .stage-schedule { grid-template-columns: 1fr; } }
.stage-day {
  background: var(--bg-soft); border-radius: var(--r-md); border: 0.5px solid var(--border);
  padding: 18px; text-align: center;
}
.stage-day-label {
  font-size: 12px; font-weight: 700; color: var(--info-text);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.stage-day-content { font-size: 16px; color: var(--text); line-height: 1.6; }

/* ── CTA SECTION (landing pages) ── */
.lp-cta-section {
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: var(--r-lg); padding: 48px 44px; text-align: center; margin-bottom: 16px;
}
.lp-cta-section h2 { font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.lp-cta-section p { font-size: 16px; color: var(--muted); max-width: 480px; margin: 0 auto 24px; line-height: 1.7; }
@media (max-width: 700px) {
  .lp-cta-section { padding: 32px 24px; }
  .lp-hero-cta a { width: 100%; text-align: center; }
}
