/* ============ TOKENS ============ */
:root {
  --navy: #0f2a5c;
  --navy-dark: #0b1f45;
  --navy-soft: #eef1f8;
  --red: #e2233c;
  --red-dark: #c81830;
  --gold: #f0b429;
  --bg: #f5f7fb;
  --white: #ffffff;
  --text: #1a2340;
  --text-muted: #6b7280;
  --border: #e6e9f2;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(15, 42, 92, .15);
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  transition: background .3s ease, color .3s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}


/* Sections: alignement par défaut à gauche. Centrage uniquement pour éléments spécifiques (infobar, CTA, footer). */
.section {
  text-align: left;
}

.hero-copy {
  text-align: left;
}

.values-intro {
  text-align: left;
}

.section-head>div {
  text-align: left;
}

.cta-left>div {
  text-align: left;
}

.section-head .link-arrow {
  margin-left: 0;
}

/* Les grilles de cartes restent alignées à gauche pour la lisibilité */
.program-grid,
.news-grid,
.values-grid,
.stats-grid,
.gt-grid {
  text-align: left;
}

/* Footer layout: center the grid container, but keep column text left-aligned for readability */
.site-footer .footer-grid {
  justify-items: center;
}

.site-footer .footer-grid>* {
  text-align: left;
}

.footer-bottom-inner {
  justify-content: center;
}

.section {
  padding: 88px 0;
}

.accent {
  color: var(--red);
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--red);
  margin-bottom: 10px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(226, 35, 60, .55);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-outline-light {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--navy);
}

.btn-portal {
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  font-size: .85rem;
}

.btn-portal:hover {
  background: var(--navy-dark);
}

.btn-dark-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
  padding: 12px 20px;
  font-size: .88rem;
}

.btn-dark-outline:hover {
  background: var(--navy);
  color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: .92rem;
}

.link-arrow svg {
  transition: transform .18s ease;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.link-arrow.small {
  font-size: .85rem;
  color: var(--red);
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 42, 92, .18);
  overflow: hidden;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.1;
  white-space: normal;
}

.brand-text>strong {
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-text>span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-text strong {
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--text-muted);
  font-weight: 700;
}

.brand-text span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

.brand-text.light strong {
  color: rgba(255, 255, 255, .6);
}

.brand-text.light span {
  color: #fff;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  position: relative;
}

.main-nav a.active {
  color: var(--red);
  font-weight: 600;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  height: 2px;
  background: var(--red);
}

.main-nav .chev {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 52px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--navy-soft);
  cursor: pointer;
  color: var(--navy);
}

.theme-toggle svg {
  stroke-width: 2;
}

.theme-toggle.is-dark {
  background: var(--navy);
}

.theme-toggle.is-dark {
  color: #fff;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding-top: 64px;
  min-height: auto;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity .8s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.login-panel {
  position: relative;
  top: auto;
  align-self: start;
}

/* keep portal layout scrollable: do not force sticky, allow natural page flow */
.portal-hero-inner {
  position: relative;
  top: auto;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(11, 26, 58, .92) 0%, rgba(11, 26, 58, .55) 55%, rgba(11, 26, 58, .15) 100%);
}

.hero-slider-controls {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 8px 10px;
}

.hero-slider-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}

.hero-slider-btn:hover {
  background: rgba(255, 255, 255, .24);
  transform: translateY(-1px);
}

.hero-slider-dots {
  display: flex;
  gap: 7px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
  cursor: pointer;
  padding: 0;
  transition: transform .2s ease, background .2s ease;
}

.hero-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 24px;
  padding: 28px 24px 24px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(226, 35, 60, .18);
  border: 1px solid rgba(226, 35, 60, .4);
  color: #ffb0ba;
  font-size: .78rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

.hero-copy h1 {
  color: #fff;
  font-size: 3.6rem;
  line-height: 1.05;
  margin-bottom: 18px;
  font-weight: 700;
}

.hero-copy p {
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
}

/* Improve hero text layout and responsiveness */
.hero-copy {
  max-width: 620px;
  margin: 0;
  text-align: left;
  justify-self: start;
  padding-left: 0;
}

.hero-copy h1 .accent {
  display: block;
  color: var(--red);
  font-size: 4.6rem;
  line-height: 1;
  margin-top: 6px;
}

/* Portal app-like static layout (applied when <body class="portal-static">) */
body.portal-static {
  height: 100vh;
  /* viewport fixed */
  overflow: hidden;
  /* disable page scroll to make it app-like */
}

body.portal-static .hero-slide {
  /* ensure background covers viewport and is fixed */
  background-attachment: fixed;
  background-position: center left;
}

body.portal-static .hero-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
}

/* Fix the left text block in place */
body.portal-static .hero-copy {
  position: fixed;
  left: 60px;
  top: 110px;
  max-width: 560px;
  z-index: 2;
}

/* Fix the login panel on the right, centered vertically */
body.portal-static .login-panel {
  position: fixed;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  z-index: 3;
}

/* Make hero-inner a simple container only when portal-static is active */
body.portal-static .portal-hero-inner {
  display: block;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 22px 24px 18px;
  }

  .hero-copy {
    max-width: 640px;
    text-align: left;
    padding-left: 0;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .hero-copy p {
    max-width: 560px;
    font-size: 1rem;
  }

  .hero-infobar {
    margin: 16px auto 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stats-grid,
  .program-grid,
  .news-grid,
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .values-grid {
    gap: 16px;
  }

  .gt-grid,
  .preinscription-inner,
  .cta-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 32px;
  }

  .stats,
  .values,
  .programs,
  .news,
  .video-section,
  .preinscription,
  .gallery-testimonials,
  .cta-banner {
    padding-left: 0;
    padding-right: 0;
  }

  .stats-grid,
  .program-grid,
  .news-grid,
  .values-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    padding: 20px;
    gap: 16px;
  }

  .stat {
    gap: 12px;
  }

  .values-intro h2,
  .section-head h2,
  .gallery-block h2,
  .testimonial-block h2 {
    font-size: 1.5rem;
  }

  .value-card,
  .program-card,
  .news-card,
  .testimonial-card,
  .preinscription-form {
    border-radius: 14px;
  }

  .program-body,
  .news-body {
    padding: 16px 16px 20px;
  }

  .gallery-photos {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .gp-1,
  .gp-2,
  .gp-3 {
    min-height: 140px;
  }

  .testimonial-card {
    padding: 24px 18px;
  }

  .preinscription-form {
    padding: 20px;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    padding: 16px 12px 12px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-copy h1 {
    font-size: 1.5rem;
    line-height: 1.12;
    margin-bottom: 12px;
  }

  .hero-copy h1 .accent {
    font-size: 1.8rem;
    margin-top: 4px;
  }

  .hero-copy p {
    font-size: .92rem;
    margin-bottom: 16px;
  }

  .eyebrow-pill {
    padding: 6px 12px;
    font-size: .72rem;
    margin-bottom: 12px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-infobar {
    width: 100%;
    grid-template-columns: 1fr;
    margin: 14px auto 0;
    padding: 10px;
    border-radius: 16px;
    overflow: visible;
  }

  .info-item {
    padding: 12px 10px;
    border-right: none;
    border-bottom: none;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .info-item:last-child {
    border-bottom: none;
  }

  .info-item>span:last-child {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    font-size: .74rem;
    white-space: normal;
  }

  .info-item strong,
  .info-item small {
    display: inline;
    margin: 0;
    white-space: normal;
    font-size: .74rem;
  }
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-photo {
  position: relative;
}

.hero-photo .photo-placeholder {
  aspect-ratio: 5/4;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .6);
}

.hero-infobar {
  position: relative;
  z-index: 2;
  background: var(--navy-dark);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 960px;
  margin: -48px auto 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stats-grid {
  max-width: 960px;
  margin: 24px auto;
}

.values-grid,
.program-grid,
.news-grid,
.gt-grid,
.preinscription-inner,
.cta-inner,
.footer-grid {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* Forcer les éléments grid internes à occuper 100% de ce max-width */
.values-grid>*,
.program-grid>*,
.news-grid>*,
.gt-grid>* {
  width: 100%;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 26px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
}

.info-item:last-child {
  border-right: none;
}

.info-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .1);
  border-radius: 10px;
  color: #fff;
}

.info-icon svg {
  width: 18px;
  height: 18px;
}

.info-item strong {
  display: block;
  font-size: .88rem;
  font-weight: 600;
}

.info-item small {
  display: block;
  font-size: .78rem;
  color: rgba(255, 255, 255, .6);
}

/* generic photo placeholder */
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg, #eef1f8, #eef1f8 10px, #e4e8f2 10px, #e4e8f2 20px);
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 500;
  border-radius: inherit;
}

/* ============ STATS ============ */
.stats {
  padding-top: 96px;
  padding-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.stat {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-blue {
  background: #e3edff;
  color: #3b6fe0;
}

.stat-purple {
  background: #eee5ff;
  color: #8a5cf6;
}

.stat-navy {
  background: #e4e9f7;
  color: var(--navy);
}

.stat-red {
  background: #ffe4e8;
  color: var(--red);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--navy);
  font-family: var(--font-display);
}

.stat small {
  color: var(--text-muted);
  font-size: .85rem;
}

/* ============ VALEURS ============ */
.values-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

.values-intro h2 {
  font-size: 1.9rem;
  margin-bottom: 14px;
}

.values-intro p {
  color: var(--text-muted);
  margin-bottom: 22px;
  font-size: .95rem;
}

.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 6px;
  min-height: 0;
  height: auto;
  align-self: start;
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin: 0 0 10px;
}

.value-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  line-height: 1.15;
}

.value-card p {
  color: var(--text-muted);
  font-size: .86rem;
  text-align: left;
  width: 100%;
  margin: 0;
}

.value-icon svg {
  width: 22px;
  height: 22px;
}

/* ============ SECTION HEAD ============ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-head {
  max-width: 960px;
  margin: 0 auto 36px;
}

.section-head h2 {
  font-size: 1.9rem;
}

.section-head>div {
  max-width: 820px;
}

/* ============ PROGRAMS ============ */
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.program-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}

.program-card:hover {
  transform: translateY(-4px);
}

.program-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy-soft);
}

.program-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.program-card:hover .program-photo img {
  transform: scale(1.04);
}

.program-photo .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

.program-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.program-body h3 {
  font-size: 1.05rem;
}

.program-body p {
  color: var(--text-muted);
  font-size: .85rem;
  padding-right: 40px;
}

.round-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.round-arrow:hover {
  background: var(--red-dark);
}

/* ============ NEWS ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-photo {
  position: relative;
  aspect-ratio: 4/3;
}

.date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
}

.date-badge small {
  display: block;
  font-size: .6rem;
  font-weight: 600;
}

.news-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-body h3 {
  font-size: .98rem;
}

.news-body p {
  color: var(--text-muted);
  font-size: .83rem;
}

/* ============ GALERIE + TEMOIGNAGES ============ */
.gt-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 60px;
}

.gallery-block h2,
.testimonial-block h2 {
  font-size: 1.7rem;
  margin-bottom: 20px;
}

.gallery-photos {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
  height: 280px;
}

.gp-1 {
  grid-row: 1/3;
  border-radius: var(--radius-md);
}

.gp-2 {
  border-radius: var(--radius-md);
}

.gp-3 {
  border-radius: var(--radius-md);
}

.testimonial-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  box-shadow: var(--shadow);
}

.quote-mark {
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 3rem;
  color: rgba(255, 255, 255, .15);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card>p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 26px;
  font-style: italic;
  color: rgba(255, 255, 255, .92);
  transition: opacity .22s ease;
  min-height: 5.5em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .15);
  border: 1px dashed rgba(255, 255, 255, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: rgba(255, 255, 255, .7);
}

.testimonial-author strong {
  display: block;
  font-size: .92rem;
  transition: opacity .22s ease;
}

.testimonial-author small {
  color: rgba(255, 255, 255, .6);
  font-size: .8rem;
  transition: opacity .22s ease;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  display: block;
}

.dots i.active {
  background: var(--red);
  width: 18px;
  border-radius: 4px;
}

.arrows {
  display: flex;
  gap: 8px;
}

.arrows button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.arrows button:hover {
  background: rgba(255, 255, 255, .12);
}

/* ============ CTA BANNER ============ */
.cta-banner {
  background: var(--navy);
  padding: 44px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: nowrap;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Keep CTA text and button on same line on desktop, stack on small screens */
@media (max-width: 768px) {
  .cta-inner {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }

  .cta-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cta-inner>a.btn {
    width: 100%;
    max-width: 320px;
  }
}

.cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-icon svg {
  width: 26px;
  height: 26px;
}

.cta-left h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.cta-left p {
  color: rgba(255, 255, 255, .7);
  font-size: .92rem;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .75);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 64px 24px 40px;
}

.footer-brand p {
  font-size: .86rem;
  margin: 16px 0 20px;
  color: rgba(255, 255, 255, .55);
  max-width: 280px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.social-icons a:hover {
  background: var(--red);
}

.footer-col h4 {
  color: #fff;
  font-size: .92rem;
  margin-bottom: 18px;
  font-family: var(--font-display);
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col ul a {
  font-size: .86rem;
  color: rgba(255, 255, 255, .6);
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .84rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.4;
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 24px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
}

.footer-bottom-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-bottom-links a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid>* {
    width: 100%;
  }

  .footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand .brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    justify-content: center;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(226, 35, 60, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red-dark);
}

/* ============ DARK MODE ============ */
body.dark {
  background: #0b1224;
  color: #e4e8f2;
}

body.dark .site-header {
  background: #0f172e;
  border-color: #1c2740;
}

body.dark .main-nav a {
  color: #cfd6e6;
}

body.dark .brand-text strong {
  color: #8892ab;
}

body.dark .brand-text span {
  color: #fff;
}

body.dark .stats-grid,
body.dark .value-card,
body.dark .program-card,
body.dark .news-card {
  background: #131c33;
  border-color: #1c2740;
}

body.dark .values-intro h2,
body.dark h2,
body.dark .stat strong,
body.dark .program-body h3,
body.dark .news-body h3 {
  color: #fff;
}

body.dark .theme-toggle {
  background: #1c2740;
}

/* ============ VIDEO SECTION ============ */
.video-wrapper {
  aspect-ratio: 16/9;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(15, 42, 92, .15), transparent 60%),
    repeating-linear-gradient(135deg, #10254e, #10254e 12px, #14305f 12px, #14305f 24px);
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
  font-weight: 500;
}

.play-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(226, 35, 60, .55);
  animation: pulse 2.4s infinite;
  transition: transform .18s ease;
}

.play-btn:hover {
  transform: scale(1.08);
}

.play-btn svg {
  margin-left: 4px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 35, 60, .5);
  }

  70% {
    box-shadow: 0 0 0 22px rgba(226, 35, 60, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(226, 35, 60, 0);
  }
}

/* ============ PRE-INSCRIPTION FORM ============ */
.preinscription-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.preinscription-intro h2 {
  font-size: 1.9rem;
  margin-bottom: 14px;
}

.preinscription-intro p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

.preinscription-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .92rem;
  color: var(--text);
  font-weight: 500;
}

.preinscription-points svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: #e7f8ee;
  color: #1fa15c;
  stroke-width: 2.6;
}

.countdown {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.countdown-label {
  color: rgba(255, 255, 255, .75);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.countdown-box {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 12px 6px;
}

.countdown-box span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.countdown-box small {
  display: block;
  margin-top: 6px;
  font-size: .68rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .6);
  text-transform: uppercase;
}

.preinscription-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--text);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  outline: none;
  transition: border-color .18s ease, background .18s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #e7f8ee;
  color: #1a7a45;
  font-size: .88rem;
  font-weight: 500;
}

.form-success.visible {
  display: block;
}

.form-note {
  margin-top: 14px;
  font-size: .74rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============ FOOTER MAP ============ */
.footer-map {
  margin-top: 18px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  filter: grayscale(.2) contrast(1.05);
}

.footer-map iframe {
  display: block;
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  left: 26px;
  bottom: 26px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(37, 211, 102, .6);
  transition: transform .2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ============ SCROLL REVEAL (fun touch) ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s cubic-bezier(.2, .7, .2, 1), transform .65s cubic-bezier(.2, .7, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width:1100px) {

  .program-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gt-grid {
    grid-template-columns: 1fr;
  }

  .preinscription-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width:900px) {
  .main-nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
  }

  .hero-infobar {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:640px) {
  .hero-copy h1 {
    font-size: 2.1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .program-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .hero-infobar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    left: 16px;
    bottom: 16px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }

  .countdown-grid {
    gap: 6px;
  }

  .countdown-box span {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .hero-infobar {
    grid-template-columns: repeat(4, minmax(140px, auto)) !important;
    grid-auto-flow: column !important;
    overflow-x: auto !important;
    margin: 24px auto 0 !important;
    padding: 12px !important;
  }

  .info-item {
    padding: 14px 10px !important;
    border-right: none !important;
    border-bottom: none !important;
    min-width: 140px !important;
    gap: 8px !important;
  }

  .info-item strong,
  .info-item small {
    display: inline !important;
    font-size: .75rem !important;
    white-space: nowrap !important;
  }
}