html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  font-family: var(--ec-font);
}

/* ── EduCycle Admin Shell ─────────────────────────────────── */
.ec-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.ec-sidebar {
  width: 252px;
  min-width: 252px;
  background: var(--ec-sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width .2s ease, min-width .2s ease;
}

/* ── Focus mode (collapsed) ───────────────────────────────── */
.ec-sidebar.is-collapsed {
  width: 56px;
  min-width: 56px;
}
.ec-sidebar.is-collapsed .ec-brand-text,
.ec-sidebar.is-collapsed .ec-search-form,
.ec-sidebar.is-collapsed .ec-nav-section,
.ec-sidebar.is-collapsed .ec-nav-label,
.ec-sidebar.is-collapsed .ec-user-info,
.ec-sidebar.is-collapsed .ec-logout-btn {
  display: none;
}
.ec-sidebar.is-collapsed .ec-brand {
  justify-content: center;
  padding: 18px 0;
}
.ec-sidebar.is-collapsed .ec-nav-link,
.ec-sidebar.is-collapsed .ec-focus-btn {
  justify-content: center;
  padding: 8px 0;
  border-left-color: transparent;
}
.ec-sidebar.is-collapsed .ec-nav-link.active {
  border-left-color: transparent;
  background: rgba(255,255,255,.13);
}
.ec-sidebar.is-collapsed .ec-sidebar-user {
  justify-content: center;
  padding: 12px 0;
}

/* ── Search form ──────────────────────────────────────────── */
.ec-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 4px;
  padding: 6px 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  transition: background .15s, border-color .15s;
}
.ec-search-form:focus-within {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}
.ec-search-icon {
  font-size: 1.1rem;
  color: rgba(255,255,255,.45);
  flex-shrink: 0;
  font-variation-settings: 'FILL' 0, 'wght' 300;
}
.ec-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: .8rem;
  min-width: 0;
}
.ec-search-input::placeholder { color: rgba(255,255,255,.38); }

/* ── Focus toggle button ──────────────────────────────────── */
.ec-focus-btn {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  margin-top: auto;
  color: rgba(255,255,255,.38);
  padding-bottom: 6px;
}
.ec-focus-btn:hover {
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.07);
}
.ec-focus-btn .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300;
}

/* Brand */
.ec-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.ec-brand-icon {
  font-size: 1.75rem;
  color: #93c5fd;
  flex-shrink: 0;
  font-variation-settings: 'FILL' 1;
}

.ec-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ec-brand-name {
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  letter-spacing: .01em;
  line-height: 1;
}

.ec-brand-baseline {
  font-size: .62rem;
  color: rgba(255,255,255,.42);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Nav */
.ec-nav {
  flex: 1;
  padding: 8px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  list-style: none;
  margin: 0;
}

.ec-nav-section {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 18px 6px 4px;
  user-select: none;
  font-family: var(--ec-font);
}

.ec-nav-section:first-child { padding-top: 8px; }

.ec-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 8px;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  border-radius: 7px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: -.01em;
  border-left: 2px solid transparent;
  transition: background .13s, color .13s, border-color .13s;
  font-family: var(--ec-font);
}

.ec-nav-link .material-symbols-outlined {
  font-size: 1.4rem;
  flex-shrink: 0;
  font-variation-settings: 'FILL' 0, 'wght' 300;
  transition: font-variation-settings .13s;
}

.ec-nav-link:hover {
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.92);
  text-decoration: none;
  border-left-color: rgba(255,255,255,.2);
}

.ec-nav-link.active {
  background: rgba(255,255,255,.13);
  color: #fff;
  font-weight: 600;
  border-left-color: #60a5fa;
}

.ec-nav-link.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400;
  color: #93c5fd;
}

.ec-nav-link.disabled { pointer-events: none; opacity: .3; }

/* User footer */
.ec-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.15);
  flex-shrink: 0;
}

.ec-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .05em;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

.ec-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ec-user-name {
  font-size: .74rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ec-user-role {
  font-size: .63rem;
  color: rgba(255,255,255,.42);
}

.ec-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
  transition: color .13s, background .13s;
  flex-shrink: 0;
}

.ec-logout-btn:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.ec-logout-btn .material-symbols-outlined { font-size: 1.15rem; }

.ec-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--ec-bg);
  padding: 2rem;
  overflow-y: auto;
  min-height: 100vh;
}

.ec-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.ec-page-header h1 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

/* ── Student Hero ─────────────────────────────────────────── */
.ec-student-hero {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.ec-avatar {
  width: 120px;
  height: 120px;
  border-radius: .625rem;
  object-fit: cover;
  flex-shrink: 0;
}

.ec-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #94a3b8;
}

.ec-avatar-wrap {
  position: relative;
  display: block;
  cursor: pointer;
  border-radius: .625rem;
  overflow: hidden;
}

.ec-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
  border-radius: .625rem;
}

.ec-avatar-wrap:hover .ec-avatar-overlay { opacity: 1; }

.ec-hero-body { flex: 1; min-width: 0; }

.ec-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ec-hero-name { font-size: 1.75rem; font-weight: 700; margin: 0 0 .25rem; }
.ec-hero-sub  { color: #64748b; font-size: .875rem; margin: 0; }

.ec-hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.ec-stat { display: flex; flex-direction: column; gap: .15rem; }
.ec-stat-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; font-weight: 600; }
.ec-stat-value { font-size: .9rem; font-weight: 600; color: #1e293b; }

/* ── Badges ───────────────────────────────────────────────── */
.ec-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ec-badge-active   { background: #dcfce7; color: #15803d; }
.ec-badge-inscrit  { background: #dbeafe; color: #1d4ed8; }
.ec-badge-archived { background: #e2e8f0; color: #475569; }
.ec-badge-leave    { background: #ffdad9; color: #92001f; border: 1px solid rgba(146,0,31,.2); }
.ec-badge-inactive { background: rgba(196,198,205,.3); color: #44474c; border: 1px solid rgba(116,119,125,.2); }

/* ── Definition list ──────────────────────────────────────── */
.ec-dl { margin: 0; }
.ec-dl-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .6rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: .875rem;
}
.ec-dl-row:last-child { border-bottom: none; }
.ec-dl-row dt { color: #64748b; font-weight: 400; flex-shrink: 0; }
.ec-dl-row dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }

/* ── Parent card ──────────────────────────────────────────── */
.ec-parent-card {
  background: #f8fafc;
  border-radius: .5rem;
  padding: .75rem;
}
.ec-parent-card:last-child { margin-bottom: 0 !important; }

/* ── List avatar (initiales) ──────────────────────────────── */
.ec-list-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* ── Classe card ──────────────────────────────────────────── */
.ec-classe-card { transition: box-shadow .15s; }
.ec-classe-card:hover { box-shadow: 0 4px 16px rgba(4,22,39,.1); }

.ec-classe-icon {
  width: 44px;
  height: 44px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── KPI card (dashboard) ─────────────────────────────────── */
.ec-kpi-card { transition: box-shadow .15s, transform .15s; }
.ec-kpi-card:hover { box-shadow: 0 4px 16px rgba(4,22,39,.1); transform: translateY(-1px); }

/* ── KPI inline (Notes, Finance…) ────────────────────────── */
.ec-kpi-val {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--ec-text);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.ec-kpi-lbl {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ec-subtle);
  font-weight: 600;
}

/* ── Tabs (Notes, Finance…) ───────────────────────────────── */
.ec-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0;
}

.ec-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  transition: color .13s, border-color .13s, background .13s;
}

.ec-tab:hover {
  color: #1e293b;
  background: #f1f5f9;
  text-decoration: none;
}

.ec-tab.active {
  color: var(--ec-primary);
  border-bottom-color: var(--ec-primary);
  font-weight: 600;
}

.ec-tab-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: .62rem;
  font-weight: 700;
  background: #dbeafe;
  color: #1d4ed8;
  letter-spacing: .02em;
}

/* ── Notes rows ───────────────────────────────────────────── */
.ec-notes-row:hover { background: #f8fafc; }

/* ── Année scolaire selector ──────────────────────────────── */
.ec-annee-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: background .13s, color .13s, border-color .13s;
}
.ec-annee-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
  text-decoration: none;
}
.ec-annee-btn.active {
  background: var(--ec-primary);
  color: #fff;
  border-color: var(--ec-primary);
  font-weight: 600;
}

/* ── Sort links ───────────────────────────────────────────── */
.ec-sort-link {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.ec-sort-link:hover { color: #1d4ed8; text-decoration: none; }

/* ─── Mobile hamburger & overlay (admin layout) ──────────── */
.ec-shell-toggle {
  display: none;
  position: fixed;
  top: 14px; left: 14px;
  z-index: 300;
  background: var(--ec-sidebar-bg);
  border: none;
  border-radius: 10px;
  width: 40px; height: 40px;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.ec-shell-toggle .material-symbols-outlined { font-size: 1.3rem; }

.ec-shell-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.40);
  z-index: 250;
}
.ec-shell-overlay.open { display: block; }

/* ════════════════════════════════════════════════════════════
   VITRINE ANONYME — Design magazine académique caribéen
   ════════════════════════════════════════════════════════════ */

/* ── Hero cinématique ──────────────────────────────────────── */
.ec-vitrine-hero {
  position: relative;
  background: linear-gradient(145deg, var(--ec-primary-xdark) 0%, var(--ec-primary-dark) 45%, #1a5fbe 100%);
  overflow: hidden;
  padding-bottom: 0;
}

/* Orbes lumineux */
.ec-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ec-orb-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(147,197,253,.18) 0%, transparent 70%);
  animation: orbFloat 8s ease-in-out infinite;
}
.ec-orb-2 {
  width: 400px; height: 400px;
  bottom: 0; left: -120px;
  background: radial-gradient(circle, rgba(29,111,219,.25) 0%, transparent 70%);
  animation: orbFloat 11s ease-in-out infinite reverse;
}
.ec-orb-3 {
  width: 200px; height: 200px;
  top: 30%; left: 40%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  animation: orbFloat 6s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* Grille de fond subtile */
.ec-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Eyebrow */
.ec-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ec-sidebar-accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeSlideDown .6s ease both;
}
.ec-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ec-sidebar-accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(147,197,253,.6); }
  50%       { box-shadow: 0 0 0 6px rgba(147,197,253,0); }
}

/* Titre hero — lignes animées */
.ec-hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.045em;
  color: #fff;
  margin-bottom: 1.5rem;
  gap: .1em;
}
.ec-hero-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
.ec-hero-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.ec-hero-line-accent {
  color: var(--ec-sidebar-accent);
}

/* Sous-titre */
.ec-hero-sub {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 2rem;
  animation: fadeSlideDown .7s .35s ease both;
}

/* Boutons hero */
.ec-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeSlideDown .6s .5s ease both;
}
.ec-btn-hero-primary {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--ec-primary-xdark);
  font-weight: 700;
  font-size: .9rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  letter-spacing: -.01em;
}
.ec-btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  color: var(--ec-primary-xdark);
  text-decoration: none;
}
.ec-btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.25);
  transition: background .2s, border-color .2s, transform .25s cubic-bezier(.22,1,.36,1);
  backdrop-filter: blur(8px);
}
.ec-btn-hero-ghost:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.45);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Stats rapides hero */
.ec-hero-stats-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  animation: fadeSlideDown .6s .65s ease both;
}
.ec-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ec-hero-stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1;
}
.ec-hero-stat-lbl {
  font-size: .68rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.ec-hero-stat-sep {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,.18);
}

/* Carte actualité flottante */
.ec-actu-float {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 1.5rem;
  animation: fadeSlideLeft .7s .4s ease both;
}
.ec-actu-float-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(147,197,253,.2);
  color: var(--ec-sidebar-accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: .85rem;
}
.ec-actu-float-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}
.ec-actu-float-sub {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ec-actu-float-date {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
}

/* Vague de transition */
.ec-hero-wave {
  position: relative;
  height: 60px;
  margin-top: -1px;
}
.ec-hero-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Animations globales ───────────────────────────────────── */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Cartes cycles v2 ──────────────────────────────────────── */
.ec-cycles-row .col-md-4 {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1);
}
.ec-cycles-row .col-md-4.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ec-cycle-card-v2 {
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform .35s cubic-bezier(.22,1,.36,1),
    box-shadow .3s ease;
  box-shadow: var(--ec-shadow-md);
  text-decoration: none;
}
.ec-cycle-card-v2:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 50px rgba(15,61,140,.22);
}
.ec-cycle-card-inner {
  padding: 2rem 1.75rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Couleurs par cycle */
.ec-cycle-c1 { background: linear-gradient(145deg, var(--ec-primary-xdark) 0%, #1a4fa0 100%); }
.ec-cycle-c2 { background: linear-gradient(145deg, #1a4fa0 0%, var(--ec-primary) 100%); }
.ec-cycle-c3 { background: linear-gradient(145deg, var(--ec-primary) 0%, #3b82f6 100%); }

.ec-cycle-icon-wrap {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.25rem;
}
.ec-cycle-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,.08);
  line-height: 1;
  position: absolute;
  top: 1rem; right: 1.5rem;
  letter-spacing: -.06em;
  pointer-events: none;
}
.ec-cycle-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: .6rem;
}
.ec-cycle-desc {
  font-size: .85rem;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}
.ec-cycle-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: gap .2s ease, color .2s;
}
.ec-cycle-card-v2:hover .ec-cycle-cta {
  gap: 10px;
  color: #fff;
}

/* ── Section programmes ────────────────────────────────────── */
.ec-programmes-section {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--ec-shadow-sm);
  border: 1px solid var(--ec-border);
}
.ec-programmes-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.ec-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ec-text);
  letter-spacing: -.03em;
  margin: 0 0 .25rem;
}
.ec-section-sub {
  font-size: .82rem;
  color: var(--ec-muted);
  margin: 0;
}
.ec-link-arrow {
  display: inline-flex;
  align-items: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ec-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: gap .2s;
  gap: 4px;
}
.ec-link-arrow:hover {
  color: var(--ec-primary-dark);
  text-decoration: none;
  gap: 8px;
}

/* Cartes programmes avec reveal */
.ec-prog-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.22,1,.36,1);
}
.ec-prog-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.ec-prog-card {
  padding: .9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--ec-border);
  background: var(--ec-surface);
  color: var(--ec-text);
  transition:
    border-color .2s,
    box-shadow .2s,
    transform .25s cubic-bezier(.22,1,.36,1);
}
.ec-prog-card:hover {
  border-color: var(--ec-primary-mid);
  box-shadow: 0 4px 16px rgba(29,111,219,.1);
  transform: translateX(4px);
  color: var(--ec-text);
}
.ec-prog-icon {
  width: 36px; height: 36px;
  background: var(--ec-primary-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-primary);
  font-size: 1rem;
  flex-shrink: 0;
  transition: background .2s;
}
.ec-prog-card:hover .ec-prog-icon {
  background: var(--ec-primary-mid);
}
.ec-prog-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ec-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.01em;
}
.ec-prog-meta {
  font-size: .72rem;
  color: var(--ec-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.ec-prog-meta-sep { opacity: .4; }
.ec-prog-arrow {
  color: var(--ec-muted);
  font-size: .75rem;
  flex-shrink: 0;
  margin-left: auto;
  transition: transform .2s, color .2s;
}
.ec-prog-card:hover .ec-prog-arrow {
  transform: translateX(3px);
  color: var(--ec-primary);
}

/* ── CTA final ─────────────────────────────────────────────── */
.ec-vitrine-cta {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ec-primary-xdark) 0%, var(--ec-primary-dark) 60%, var(--ec-primary) 100%);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
}
.ec-cta-orb {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ec-cta-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.04em;
  margin-bottom: .6rem;
  position: relative;
}
.ec-cta-sub {
  color: rgba(255,255,255,.68);
  font-size: .95rem;
  margin-bottom: 1.75rem;
  position: relative;
}
.ec-btn-cta-primary {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--ec-primary-xdark);
  font-weight: 700;
  font-size: .9rem;
  padding: .8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  position: relative;
}
.ec-btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  color: var(--ec-primary-xdark);
  text-decoration: none;
}
.ec-btn-cta-ghost {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: .9rem;
  padding: .8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.22);
  transition: background .2s, transform .25s cubic-bezier(.22,1,.36,1);
  position: relative;
}
.ec-btn-cta-ghost:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ec-hero-line, .ec-prog-reveal, .ec-cycles-row .col-md-4,
  .ec-orb, .ec-eyebrow-dot { animation: none !important; transition: none !important; }
  .ec-hero-line, .ec-prog-reveal, .ec-cycles-row .col-md-4 {
    opacity: 1 !important; transform: none !important;
  }
}

/* ── Responsive vitrine ────────────────────────────────────── */
@media (max-width: 767px) {
  .ec-vitrine-hero { padding-top: 0; }
  .ec-hero-title { font-size: 2rem; }
  .ec-hero-actions { flex-direction: column; }
  .ec-btn-hero-primary, .ec-btn-hero-ghost { width: 100%; justify-content: center; }
  .ec-vitrine-cta { padding: 2.5rem 1.25rem; }
  .ec-programmes-section { padding: 1.25rem; }
  .ec-hero-stats-row { gap: 1rem; }
}

/* ─── Responsive ≤767px ──────────────────────────────────── */
@media (max-width: 767px) {
  .ec-shell-toggle { display: flex; }

  .ec-sidebar {
    position: fixed;
    top: 0; left: -270px;
    height: 100vh;
    z-index: 260;
    box-shadow: none;
    transition: left .25s ease;
  }
  .ec-sidebar.open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,.15);
  }

  .ec-content {
    padding: 64px 1rem 1.5rem;
  }

  .ec-hero-slide {
    min-height: 360px;
    padding: 4.5rem 1.25rem 6rem;
  }
  .ec-hero-slide h1,
  .ec-hero-slide h2 {
    font-size: 1.75rem !important;
  }
  .ec-cycle-cards { margin-top: -2.5rem; }

  /* Hero étudiant — responsive */
  .ec-student-hero {
    flex-direction: column;
    gap: 1rem;
  }
  .ec-hero-avatar { align-self: center; }
  .ec-avatar, .ec-avatar-placeholder { width: 80px; height: 80px; }
  .ec-hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
  .ec-hero-top > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    width: 100%;
  }
  .ec-hero-top > div:last-child .btn,
  .ec-hero-top > div:last-child form { flex: 1 1 auto; }
  .ec-hero-top > div:last-child form .btn { width: 100%; }
  .ec-hero-name { font-size: 1.35rem; }
  .ec-hero-stats { gap: 1rem; }
}
