/* ═══════════════════════════════════════════════════════════
   ECOLES PAGE — Editorial premium design
   Premium gold + navy + cream, asymmetric layouts
   ═══════════════════════════════════════════════════════════ */

:root {
  --ec-navy: #0B1426;
  --ec-charcoal: #202124;
  --ec-gold: #D4A24C;
  --ec-gold-light: #E5BB6A;
  --ec-cream: #FAFAF9;
  --ec-grey-50: #F5F5F4;
  --ec-grey-100: #E7E5E4;
  --ec-grey-500: #78716C;
  --ec-grey-700: #44403C;

  --ec-font-display: 'Playfair Display', Georgia, serif;
  --ec-font-body: 'Inter', system-ui, sans-serif;
}

/* ─── HERO split asymétrique ─────────────────────────────── */

.ec-hero {
  position: relative;
  background: var(--ec-cream);
  padding: 100px 0 80px;
  overflow: hidden;
}

.ec-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 70% 30%, rgba(212, 162, 76, 0.08), transparent),
    linear-gradient(180deg, var(--ec-cream) 0%, #F0EDE8 100%);
  pointer-events: none;
}

.ec-hero__container {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
  z-index: 1;
}

.ec-hero__kicker {
  display: inline-block;
  font-family: var(--ec-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ec-gold);
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ec-gold);
}

.ec-hero__title {
  font-family: var(--ec-font-display);
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ec-navy);
  margin: 0 0 28px;
}

.ec-hero__title-accent {
  display: block;
  color: var(--ec-charcoal);
  font-style: italic;
  margin-top: 8px;
}

.ec-hero__lead {
  font-family: var(--ec-font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ec-grey-700);
  margin: 0 0 36px;
  max-width: 560px;
}

.ec-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ec-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ec-charcoal);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.btn-link:hover { color: var(--ec-gold); }

.btn-link--inverse {
  color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.btn-link--inverse:hover { color: var(--ec-gold); border-bottom-color: var(--ec-gold); }

.ec-hero__portrait {
  position: relative;
}

.ec-hero__photo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 4px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.05),
    0 20px 40px rgba(11, 20, 38, 0.15),
    0 0 0 8px var(--ec-cream),
    8px 8px 0 8px var(--ec-gold);
  display: block;
  margin-left: auto;
}

.ec-hero__signature {
  margin-top: 32px;
  text-align: right;
  padding-right: 16px;
}

.ec-hero__sig-name {
  display: block;
  font-family: var(--ec-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ec-navy);
  font-style: italic;
}

.ec-hero__sig-role {
  display: block;
  font-family: var(--ec-font-body);
  font-size: 13px;
  color: var(--ec-grey-500);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .ec-hero { padding: 60px 0 50px; }
  .ec-hero__container { grid-template-columns: 1fr; gap: 40px; }
  .ec-hero__photo { max-width: 280px; margin: 0 auto; }
  .ec-hero__signature { text-align: center; padding-right: 0; }
}

/* ─── BANDEAU STATS ──────────────────────────────────────── */

.ec-stats {
  background: var(--ec-navy);
  padding: 56px 0;
  color: white;
  position: relative;
}

.ec-stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ec-gold) 50%, transparent);
}

.ec-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.ec-stat {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ec-stat:last-child { border-right: none; }

.ec-stat__num {
  font-family: var(--ec-font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  color: var(--ec-gold);
  margin-bottom: 8px;
}

.ec-stat__plus {
  font-size: 0.6em;
  vertical-align: top;
  margin-left: 2px;
}

.ec-stat__label {
  font-family: var(--ec-font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .ec-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .ec-stat:nth-child(2) { border-right: none; }
}

/* ─── 4 CŒURS ────────────────────────────────────────────── */

.ec-cores-section {
  background: white;
}

.ec-cores {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.ec-core {
  position: relative;
  padding: 48px 36px 40px;
  background: white;
  border: 1px solid var(--ec-grey-100);
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ec-core::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  background: var(--ec-gold);
  border-radius: 4px 0 0 4px;
}

.ec-core:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -12px rgba(11, 20, 38, 0.15);
  border-color: var(--ec-gold);
}

.ec-core__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 24px;
}

.ec-core--ai .ec-core__icon { background: rgba(26, 115, 232, 0.08); color: #1A73E8; }
.ec-core--cyber .ec-core__icon { background: rgba(234, 67, 53, 0.08); color: #C5221F; }
.ec-core--net .ec-core__icon { background: rgba(52, 168, 83, 0.08); color: #1E8E3E; }
.ec-core--bi .ec-core__icon { background: rgba(212, 162, 76, 0.12); color: #B8801A; }

.ec-core__icon svg { width: 32px; height: 32px; }

.ec-core__num {
  position: absolute;
  top: 36px;
  right: 36px;
  font-family: var(--ec-font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ec-gold);
  font-style: italic;
}

.ec-core h3 {
  font-family: var(--ec-font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ec-navy);
  margin: 0 0 16px;
}

.ec-core p {
  font-family: var(--ec-font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ec-grey-700);
  margin: 0;
}

@media (max-width: 800px) {
  .ec-cores { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .ec-core { padding: 32px 24px 28px; }
}

/* ─── BIO 2 colonnes ─────────────────────────────────────── */

.ec-bio {
  padding: 100px 0;
  background: var(--ec-cream);
}

.ec-bio__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.ec-bio__sidebar { position: sticky; top: 100px; }

.ec-bio__kicker {
  font-family: var(--ec-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ec-gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.ec-bio__name {
  font-family: var(--ec-font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--ec-navy);
  margin: 0 0 12px;
}

.ec-bio__role {
  font-family: var(--ec-font-body);
  font-size: 15px;
  color: var(--ec-grey-700);
  margin: 0 0 32px;
  font-weight: 500;
}

.ec-bio__quick {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ec-grey-100);
}

.ec-bio__quick li {
  font-family: var(--ec-font-body);
  font-size: 14px;
  color: var(--ec-grey-700);
  padding: 14px 0;
  border-bottom: 1px solid var(--ec-grey-100);
}

.ec-bio__quick strong {
  color: var(--ec-navy);
  font-weight: 600;
  margin-right: 6px;
}

.ec-bio__body p {
  font-family: var(--ec-font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ec-charcoal);
  margin: 0 0 24px;
}

.ec-bio__body p:first-child::first-letter {
  font-family: var(--ec-font-display);
  font-size: 60px;
  font-weight: 700;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
  color: var(--ec-gold);
}

@media (max-width: 900px) {
  .ec-bio { padding: 60px 0; }
  .ec-bio__grid { grid-template-columns: 1fr; gap: 40px; }
  .ec-bio__sidebar { position: static; }
  .ec-bio__name { font-size: 36px; }
}

/* ─── TIMELINE PARCOURS ──────────────────────────────────── */

.ec-timeline-section {
  background: white;
  padding-bottom: 100px;
}

.ec-timeline {
  list-style: none;
  padding: 0;
  margin: 60px 0 0;
  position: relative;
}

.ec-timeline::before {
  content: '';
  position: absolute;
  left: 100px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--ec-grey-100);
}

.ec-tl {
  position: relative;
  padding: 16px 0 16px 140px;
  margin-bottom: 8px;
}

.ec-tl::before {
  content: '';
  position: absolute;
  left: 95px;
  top: 22px;
  width: 12px;
  height: 12px;
  background: white;
  border: 2px solid var(--ec-gold);
  border-radius: 50%;
  z-index: 1;
}

.ec-tl--current::before { background: var(--ec-gold); }

.ec-tl__year {
  position: absolute;
  left: 0;
  top: 18px;
  width: 80px;
  text-align: right;
  font-family: var(--ec-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ec-gold);
  font-style: italic;
}

.ec-tl h4 {
  font-family: var(--ec-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ec-navy);
  margin: 0 0 4px;
}

.ec-tl p {
  font-family: var(--ec-font-body);
  font-size: 14px;
  color: var(--ec-grey-700);
  margin: 0;
}

.ec-tl__badge {
  display: inline-block;
  font-family: var(--ec-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--ec-grey-50);
  color: var(--ec-grey-700);
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}

.ec-tl__badge--gold {
  background: rgba(212, 162, 76, 0.12);
  color: #B8801A;
}

@media (max-width: 700px) {
  .ec-timeline::before { left: 12px; }
  .ec-tl { padding: 12px 0 12px 40px; }
  .ec-tl::before { left: 7px; }
  .ec-tl__year { position: static; width: auto; text-align: left; display: block; margin-bottom: 4px; }
}

/* ─── RÉFÉRENCES (logos pastilles) ───────────────────────── */

.ec-refs {
  background: var(--ec-cream);
  padding: 80px 0;
}

.ec-refs__intro {
  font-family: var(--ec-font-body);
  font-size: 16px;
  color: var(--ec-grey-700);
  max-width: 600px;
  margin: 16px auto 0;
}

.ec-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  max-width: 900px;
  margin: 50px auto 0;
}

.ec-logo {
  display: inline-block;
  font-family: var(--ec-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ec-grey-700);
  background: white;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid var(--ec-grey-100);
  transition: all 0.2s;
  white-space: nowrap;
}

.ec-logo:hover {
  border-color: var(--ec-gold);
  color: var(--ec-navy);
  transform: translateY(-2px);
}

.ec-refs__note {
  text-align: center;
  margin-top: 32px;
  font-family: var(--ec-font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--ec-grey-500);
}

/* ─── LANGUES — banner horizontale ───────────────────────── */

.ec-langs {
  background: var(--ec-navy);
  color: white;
  padding: 70px 0;
  text-align: center;
}

.ec-langs__title {
  font-family: var(--ec-font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: white;
  margin: 0 0 40px;
}

.ec-langs__row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px 56px;
  margin-bottom: 32px;
}

.ec-lang {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ec-lang__code {
  font-family: var(--ec-font-display);
  font-size: 36px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.ec-lang__level {
  font-family: var(--ec-font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.ec-lang--highlight .ec-lang__code { color: var(--ec-gold); }
.ec-lang--highlight .ec-lang__level { color: var(--ec-gold); }

.ec-langs__note {
  font-family: var(--ec-font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── AUDIENCE — liste asymétrique ───────────────────────── */

.ec-audience {
  list-style: none;
  padding: 0;
  margin: 50px 0 0;
}

.ec-audience li {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--ec-grey-100);
  align-items: baseline;
}

.ec-audience li:last-child { border-bottom: 1px solid var(--ec-grey-100); }

.ec-audience strong {
  font-family: var(--ec-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ec-navy);
  letter-spacing: -0.01em;
}

.ec-audience span {
  font-family: var(--ec-font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ec-grey-700);
}

@media (max-width: 700px) {
  .ec-audience li { grid-template-columns: 1fr; gap: 8px; }
}

/* ─── TARIFS — tableau ───────────────────────────────────── */

.ec-pricing__intro {
  font-family: var(--ec-font-body);
  font-size: 15px;
  color: var(--ec-grey-700);
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ec-pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 50px 0 24px;
  font-family: var(--ec-font-body);
}

.ec-pricing-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ec-gold);
  padding: 12px 16px;
  border-bottom: 2px solid var(--ec-navy);
}

.ec-pricing-table td {
  padding: 18px 16px;
  font-size: 15px;
  color: var(--ec-grey-700);
  border-bottom: 1px solid var(--ec-grey-100);
}

.ec-pricing-table td:first-child {
  width: 220px;
  color: var(--ec-navy);
}

.ec-pricing-table td:nth-child(2) {
  width: 120px;
  font-weight: 500;
  color: var(--ec-charcoal);
}

.ec-pricing-table tr:hover td { background: var(--ec-grey-50); }

@media (max-width: 700px) {
  .ec-pricing-table th, .ec-pricing-table td { padding: 12px 8px; font-size: 13px; }
  .ec-pricing-table td:first-child { width: auto; }
}

/* ─── CTA FINAL ──────────────────────────────────────────── */

.ec-cta {
  background: linear-gradient(135deg, var(--ec-navy) 0%, #1A2842 100%);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.ec-cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212, 162, 76, 0.12), transparent 70%);
  pointer-events: none;
}

.ec-cta__inner {
  max-width: 720px;
  text-align: center;
  position: relative;
}

.ec-cta__title {
  font-family: var(--ec-font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: white;
  margin: 0 0 20px;
}

.ec-cta__desc {
  font-family: var(--ec-font-body);
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 36px;
}

.ec-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
