:root {
  --blue: #2f8fe5;
  --blue-dark: #176bb8;
  --green: #63c744;
  --yellow: #f8df16;
  --navy: #17324d;
  --text: #243447;
  --muted: #68788a;
  --surface: #ffffff;
  --surface-soft: #f5f9fc;
  --border: #e4edf4;
  --shadow: 0 20px 55px rgba(31, 74, 111, 0.12);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
}

body.no-scroll { overflow: hidden; }

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

button, a { font: inherit; }

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

button { cursor: pointer; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228,237,244,.85);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand img {
  width: 112px;
  height: 66px;
  object-fit: contain;
  background: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: .9rem;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width .25s ease;
}

.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  padding: 12px 18px !important;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--blue-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px;
  background: var(--navy);
  transition: transform .2s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 90% 20%, rgba(99,199,68,.12), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #fff 55%, #f8fff5 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 65px;
  align-items: center;
  padding-block: 80px;
}

.hero-content { position: relative; z-index: 2; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-cta h2 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.hero h1 span,
.section-heading h2 span,
.contact-cta h2 span {
  color: var(--blue);
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 80, 120, .13);
}

.btn-primary {
  color: #fff;
  background: var(--blue);
}

.btn-secondary {
  color: var(--navy);
  background: #fff;
  border-color: var(--border);
}

.hero-values {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}

.hero-values span::before {
  content: "•";
  margin-right: 7px;
  color: var(--green);
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  border: 9px solid #fff;
  border-radius: 36px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 510px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  max-width: 240px;
  padding: 15px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 35px rgba(0,0,0,.12);
}

.hero-badge strong,
.hero-badge span {
  display: block;
}

.hero-badge strong { color: var(--blue); }
.hero-badge span { margin-top: 3px; font-size: .78rem; color: var(--muted); }

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: .7;
}

.hero-shape-one {
  width: 160px;
  height: 160px;
  right: 2%;
  top: 8%;
  background: rgba(248,223,22,.2);
}

.hero-shape-two {
  width: 240px;
  height: 240px;
  left: -100px;
  bottom: -100px;
  background: rgba(99,199,68,.14);
}

.stats-section {
  position: relative;
  z-index: 5;
  margin-top: -35px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.stat {
  padding: 28px 22px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: 0; }

.stat strong {
  display: block;
  font-family: "Poppins", sans-serif;
  color: var(--blue);
  font-size: 1.75rem;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .82rem;
}

.section { padding: 105px 0; }

.split-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 90px;
  align-items: start;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading > p:last-child,
.about-copy p,
.values-intro > p:last-child,
.split-heading > p {
  color: var(--muted);
}

.about-copy {
  font-size: 1.05rem;
}

.placeholder-note {
  padding: 16px 18px;
  border-left: 4px solid var(--yellow);
  background: #fffdf0;
  font-size: .9rem;
}

.teachings { background: var(--surface-soft); }

.centered {
  max-width: 760px;
  margin: 0 auto 45px;
  text-align: center;
}

.cards-grid.four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(31,74,111,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  font-weight: 800;
}

.card-icon.blue { color: #fff; background: var(--blue); }
.card-icon.green { color: #fff; background: var(--green); }
.card-icon.yellow { color: #4b4700; background: var(--yellow); }
.card-icon.navy { color: #fff; background: var(--navy); }

.feature-card h3,
.value-item h3,
.news-card h3 {
  margin: 0;
  font-family: "Poppins", sans-serif;
}

.feature-card p,
.value-item p,
.news-card p {
  color: var(--muted);
  font-size: .9rem;
}

.text-link {
  color: var(--blue);
  font-size: .86rem;
  font-weight: 800;
}

.text-link span { transition: margin .2s ease; }
.text-link:hover span { margin-left: 5px; }

.values-section {
  background: var(--navy);
  color: #fff;
}

.values-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: center;
}

.values-intro h2 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.values-intro h2 span { color: var(--yellow); }

.values-intro > p:last-child { color: rgba(255,255,255,.72); }

.values-list {
  display: grid;
  gap: 14px;
}

.value-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 23px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}

.value-number {
  color: var(--yellow);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
}

.value-item p { color: rgba(255,255,255,.68); }

.school-life { background: #fff; }

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 45px;
}

.split-heading > p {
  max-width: 450px;
  margin: 0;
}

.media-showcase {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 18px;
}

.media-main,
.video-placeholder {
  min-height: 440px;
  overflow: hidden;
  border-radius: 26px;
}

.media-main {
  position: relative;
  background: #ddd;
}

.media-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 80px 30px 28px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
}

.media-overlay h3 {
  margin: 8px 0 5px;
  font-family: "Poppins", sans-serif;
  font-size: 1.45rem;
}

.media-overlay p { margin: 0; color: rgba(255,255,255,.8); }

.media-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: #3f3a00;
  font-size: .72rem;
  font-weight: 800;
}

.video-placeholder {
  padding: 18px;
  background: #f2f7fb;
  border: 1px solid var(--border);
}

.video-frame {
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 20px;
  color: var(--navy);
  text-align: center;
  background:
    radial-gradient(circle, rgba(47,143,229,.16), transparent 50%),
    linear-gradient(135deg, #eaf5ff, #f5fff0);
}

.video-frame span,
.video-frame strong {
  display: block;
}

.video-frame span {
  color: var(--blue);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.video-frame strong {
  max-width: 220px;
  margin-top: 5px;
  font-family: "Poppins", sans-serif;
}

.play-button {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  padding-left: 4px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(47,143,229,.28);
}

.video-placeholder > p {
  margin: 14px 5px 0;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

.media-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.thumb {
  height: 145px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #eef4f8;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.thumb:hover img { transform: scale(1.04); }

.empty,
.gallery-item.empty {
  display: grid;
  place-items: center;
  color: #91a1af;
  border: 1px dashed #c8d6e1;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.center-action {
  margin-top: 28px;
  text-align: center;
}

.news { background: var(--surface-soft); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.news-image {
  height: 210px;
}

.placeholder-image {
  display: grid;
  place-items: center;
  color: var(--blue);
  background: linear-gradient(135deg, #eaf5ff, #f4ffed);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  letter-spacing: .1em;
}

.news-body { padding: 24px; }

.news-body small {
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .1em;
}

.news-body h3 { margin-top: 7px; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #eef4f8;
}

.gallery-item.large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item span {
  position: absolute;
  left: 15px;
  bottom: 15px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(23,50,77,.8);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
}

.contact-cta {
  padding: 85px 0;
  color: #fff;
  background:
    radial-gradient(circle at 80% 30%, rgba(248,223,22,.18), transparent 28%),
    linear-gradient(120deg, var(--blue-dark), var(--blue));
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 45px;
}

.contact-cta .eyebrow { color: var(--yellow); }

.contact-cta h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.contact-cta p { color: rgba(255,255,255,.8); }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.site-footer {
  padding: 65px 0 0;
  color: #c4d0da;
  background: #102638;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 45px;
  padding-bottom: 50px;
}

.footer-brand img {
  width: 105px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

.footer-brand p {
  margin: 15px 0 3px;
  color: #fff;
  font-weight: 700;
}

.footer-brand span { font-size: .8rem; }

.site-footer h3 {
  margin: 0 0 15px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: .95rem;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 7px 0;
  color: #aebdca;
  font-size: .82rem;
}

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

.muted { color: #8295a5 !important; }

.socials {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin: 0;
  color: #fff;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .72rem;
  color: #8194a5;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(5,18,29,.92);
}

.lightbox.is-open { display: flex; }

.lightbox figure {
  max-width: 1100px;
  max-height: 90vh;
  margin: 0;
}

.lightbox img {
  max-height: 80vh;
  width: auto;
  border-radius: 12px;
}

.lightbox figcaption {
  margin-top: 10px;
  color: #fff;
  text-align: center;
  font-size: .9rem;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  color: #fff;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

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

@media (max-width: 1050px) {
  .main-nav { gap: 14px; }
  .cards-grid.four { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav-wrap { min-height: 72px; }

  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open { display: flex; }

  .main-nav a {
    padding: 12px;
  }

  .nav-cta { text-align: center; margin-top: 6px; }

  .hero { min-height: auto; }

  .hero-grid,
  .split-grid,
  .values-layout,
  .media-showcase {
    grid-template-columns: 1fr;
  }

  .hero-grid { padding-block: 55px 70px; }

  .hero-card,
  .hero-card img {
    min-height: 400px;
  }

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

  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }

  .split-grid,
  .values-layout { gap: 35px; }

  .split-heading,
  .cta-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-main,
  .video-placeholder { min-height: 360px; }

  .video-frame { height: 260px; }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .gallery-item.large { grid-row: span 2; }
}

@media (max-width: 560px) {
  .section { padding: 75px 0; }

  .brand img {
    width: 92px;
    height: 58px;
  }

  .hero h1 { font-size: 2.45rem; }

  .hero-text { font-size: .98rem; }

  .hero-card,
  .hero-card img { min-height: 330px; }

  .cards-grid.four { grid-template-columns: 1fr; }

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

  .stat { padding: 20px 12px; }

  .stat strong { font-size: 1.4rem; }

  .media-thumbs { grid-template-columns: 1fr 1fr; }

  .thumb { height: 120px; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 145px;
  }

  .gallery-item.large { grid-row: span 2; }

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

  .footer-bottom {
    flex-direction: column;
  }

  .lightbox { padding: 15px; }
}

/* =========================================================
   PALETTE CSIC — fonds harmonisés avec le logo
   Bleu #2f8fe5 • Vert #63c744 • Jaune #f8df16
   ========================================================= */

/* Accueil : bleu très clair + touche verte */
.hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(248,223,22,.20), transparent 24%),
    radial-gradient(circle at 8% 88%, rgba(99,199,68,.16), transparent 28%),
    linear-gradient(135deg, #eef8ff 0%, #ffffff 52%, #f2fbed 100%);
}

/* Bandeau chiffres : accent jaune discret */
.stats-grid {
  background: #ffffff;
  border-top: 4px solid var(--yellow);
}

/* Présentation : fond vert très pâle */
.about {
  background: #f4fbed;
}

/* Enseignements : fond bleu très pâle */
.teachings {
  background:
    radial-gradient(circle at 5% 15%, rgba(47,143,229,.10), transparent 25%),
    #eef7ff;
}

/* Valeurs : bleu institutionnel plutôt que bleu marine */
.values-section {
  background:
    radial-gradient(circle at 90% 15%, rgba(248,223,22,.12), transparent 25%),
    linear-gradient(135deg, #176bb8 0%, #2f8fe5 100%);
}

/* Vie scolaire / activités : jaune très léger pour rappeler le logo */
.school-life {
  background:
    radial-gradient(circle at 92% 12%, rgba(248,223,22,.16), transparent 24%),
    #fffdf0;
}

/* Bloc vidéo : mélange bleu + vert très léger */
.video-placeholder {
  background: #f3fbed;
  border-color: rgba(99,199,68,.25);
}

.video-frame {
  background:
    radial-gradient(circle at 50% 45%, rgba(47,143,229,.18), transparent 52%),
    linear-gradient(135deg, #eaf5ff 0%, #f4ffed 100%);
}

/* Actualités : fond vert très pâle */
.news {
  background:
    radial-gradient(circle at 90% 10%, rgba(99,199,68,.10), transparent 24%),
    #f4fbed;
}

/* Galerie : fond bleu très pâle */
.gallery {
  background:
    radial-gradient(circle at 8% 20%, rgba(47,143,229,.10), transparent 24%),
    #f1f8ff;
}

/* Appel à l'action : bleu + vert, avec accent jaune */
.contact-cta {
  background:
    radial-gradient(circle at 82% 25%, rgba(248,223,22,.20), transparent 25%),
    radial-gradient(circle at 10% 90%, rgba(99,199,68,.16), transparent 28%),
    linear-gradient(120deg, #176bb8 0%, #2f8fe5 65%, #3b9cce 100%);
}

/* Cartes : petits accents colorés cohérents avec le logo */
.feature-card:nth-child(1) { border-top: 3px solid var(--green); }
.feature-card:nth-child(2) { border-top: 3px solid var(--blue); }
.feature-card:nth-child(3) { border-top: 3px solid var(--yellow); }
.feature-card:nth-child(4) { border-top: 3px solid var(--blue-dark); }

/* Séparation douce entre les sections */
.about,
.teachings,
.values-section,
.school-life,
.news,
.gallery {
  position: relative;
}
