:root {
  --primary: #0f766e;
  --secondary: #38bdf8;
  --orange: #22c55e;
  --dark: #334155;
  --black: #0f172a;
  --light: #e2e8f0;
  --white: #f8fafc;
  --shadow-soft: 0 0 10px rgba(0, 0, 0, 0.2);
  --shadow-strong: 0 0 15px rgba(0, 0, 0, 0.35);
  --radius-xl: 300px;
  --radius-lg: 150px;
  --radius-md: 50px;
  --radius-sm: 20px;
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0 0 1rem; color: var(--black); line-height: 1.15; }
h1 { font-size: clamp(3rem, 6vw, 5.2rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }

.site-shell { overflow: clip; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.section-space { padding: 100px 0; }
.center { text-align: center; }
.align-center { align-items: center; }
.reverse-mobile { }
.light h2, .light .eyebrow, .light p { color: var(--white); }
.text-secondary { color: var(--secondary); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 20px 0;
  background: transparent;
}
.header-inner {
  min-height: 60px;
  background: var(--black);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
}
.brand img { height: 66px; width: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.site-nav a {
  color: var(--white);
  padding: 15px;
  font-weight: 500;
  transition: color .3s ease, transform .3s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--secondary); }
.header-cta { margin-left: 10px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--white);
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 0;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0,0,0,.3);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease, color .3s ease;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.cta-button-dark { background: var(--dark); }
.cta-button-dark:hover { background: var(--black); }
.cta-button-gold { background: var(--orange); color: var(--black); }
.text-link { color: var(--primary); font-weight: 700; }
.text-link:hover { color: var(--orange); }

.hero {
  background: var(--white);
  border-radius: 0 0 var(--radius-xl) 0;
  margin-top: -110px;
  padding: 200px 0 100px;
  position: relative;
}
.hero-grid, .split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}
.eyebrow {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: .35rem;
}
.section-divider {
  width: 60px;
  height: 10px;
  background: var(--primary);
  margin: 0 0 10px;
  border-radius: 999px;
}
.center .section-divider { margin-inline: auto; }
.hero-copy h1 span { color: var(--secondary); }
.hero-text { font-size: 1.05rem; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.hero-visual { display: flex; justify-content: center; }
.hero-collage {
  position: relative;
  width: min(100%, 520px);
  min-height: 470px;
}
.hero-card {
  position: absolute;
  inset: auto;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}
.hero-card-left {
  left: 0; top: 50px; width: 32%; height: 320px;
  background: var(--secondary) url('https://selectividad-meknes.com/wp-content/uploads/2025/05/Design-sans-titre-3.jpg') center/cover no-repeat;
}
.hero-card-center {
  left: 34%; top: 0; width: 32%; height: 420px;
  background: var(--primary) url('https://selectividad-meknes.com/wp-content/uploads/2025/05/Design-sans-titre-6.jpg') center/cover no-repeat;
}
.hero-card-right {
  right: 0; top: 50px; width: 32%; height: 320px;
  background: var(--orange) url('https://selectividad-meknes.com/wp-content/uploads/2025/06/Votre-texte-de-paragraphe-4.png') center/cover no-repeat;
}
.hero-pill {
  position: absolute;
  border-radius: 999px;
  background: rgba(248,190,23,.45);
  filter: blur(1px);
  animation: floatY 7s ease-in-out infinite;
}
.hero-pill-1 { width: 170px; height: 170px; top: 20px; right: -40px; }
.hero-pill-2 { width: 130px; height: 130px; left: -35px; bottom: 30px; background: rgba(172,25,27,.2); animation-delay: -2s; }
.hero-shape {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  opacity: .4;
}
.hero-shape-1 { width: 260px; height: 260px; background: rgba(248,190,23,.25); top: 70px; right: -90px; }
.hero-shape-2 { width: 180px; height: 180px; background: rgba(243,145,4,.15); bottom: 40px; left: -70px; }

.video-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.video-card:hover { box-shadow: var(--shadow-strong); }
.video-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(250,250,250,.85);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 2rem;
  z-index: 2;
}

.section-gradient-left,
.section-gradient-dark {
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.section-gradient-left {
  background: linear-gradient(180deg, #38bdf8 0%, #f2295b 100%);
  border-radius: 300px 0 0 0;
}
.section-gradient-dark {
  background: var(--orange);
  border-radius: 300px 0 0 0;
}
.texture-overlay,
.footer-texture {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat url('https://selectividad-meknes.com/wp-content/uploads/2025/05/elements-bg-3FRW9K.png');
  opacity: .3;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.section-head { max-width: 720px; margin: 0 auto 40px; }
.card-grid { display: grid; gap: 30px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card,
.program-card,
.counter-card,
.price-card {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}
.feature-card:hover,
.program-card:hover,
.counter-card:hover,
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.feature-card {
  padding: 40px 30px 0;
  color: var(--white);
  text-align: center;
}
.feature-icon {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 15px;
  background: var(--dark); color: var(--white); display: grid; place-items: center; font-size: 2rem;
}
.feature-card h3 { color: var(--white); }

.testimonial-slider { position: relative; }
.testimonial-track { position: relative; min-height: 300px; }
.testimonial-card {
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(20px); pointer-events: none;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 24px 24px 0 30px;
  transition: opacity .45s ease, transform .45s ease;
}
.testimonial-card.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.testimonial-card p { color: var(--dark); font-size: 1rem; }
.testimonial-meta { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.avatar {
  width: 70px; height: 70px; border-radius: 50%; background: var(--secondary); color: var(--black);
  display: grid; place-items: center; font-weight: 700; font-size: 1.25rem;
}
.testimonial-meta span { color: var(--secondary); display: block; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--primary); font-size: 2.1rem; cursor: pointer; z-index: 3;
}
.slider-arrow:hover { color: var(--orange); }
.slider-arrow.prev { left: -10px; }
.slider-arrow.next { right: -10px; }

.program-card { overflow: hidden; text-align: center; padding-bottom: 20px; }
.program-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px 20px 0 0; }
.program-card h3 { margin-top: 18px; padding: 0 20px; }
.program-card p { padding: 0 20px; }
.program-card.warm { background: linear-gradient(180deg, var(--primary) 0%, var(--orange) 100%); color: var(--white); }
.program-card.warm h3, .program-card.warm p, .program-card.warm .ghost-link { color: var(--white); }
.program-card.light { background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%); }
.ghost-link {
  display: inline-flex; margin-top: 8px; padding: 10px 20px; border-radius: 999px;
  border: 2px solid currentColor; font-weight: 700;
}

.counters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.counter-card {
  background: rgba(250,250,250,.08);
  backdrop-filter: blur(1px);
  padding: 28px 20px;
  color: var(--white);
  text-align: center;
}
.counter-icon {
  width: 80px; height: 80px; border-radius: 50%; background: var(--primary);
  display: grid; place-items: center; margin: 0 auto 12px; font-size: 2rem;
}
.counter-value {
  font-family: "Ubuntu", sans-serif; font-size: 3.75rem; font-weight: 700; line-height: 1;
}
.counter-card p { color: var(--white); margin-top: 12px; }

.price-card {
  text-align: center;
  padding: 60px 60px 50px;
}
.price-card.dark {
  background: linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
  color: var(--white);
}
.price-card.gold {
  background: linear-gradient(180deg, var(--primary) 0%, var(--orange) 100%);
  color: var(--black);
}
.price-card.dark h3, .price-card.dark p { color: var(--white); }
.price-card.gold h3, .price-card.gold p { color: var(--black); }
.small-divider {
  width: 120px; height: 2px; background: var(--white); margin: 10px auto 18px; border-radius: 999px;
}
.small-divider.light { background: var(--black); }
.plan-subtitle { font-weight: 700; text-transform: uppercase; }
.price {
  font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 900; font-family: "Ubuntu", sans-serif; margin-bottom: .5rem;
}
.plan-badge {
  display: inline-block; padding: 6px 22px; border-radius: 999px; border: 2px solid var(--orange);
  color: var(--orange); font-weight: 700; margin: 0 auto 24px;
}
.price-card.gold .plan-badge.outline { color: var(--black); border-color: var(--black); }

.site-footer {
  position: relative;
  background: var(--dark);
  color: var(--white);
}
.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding: 100px 0;
}
.footer-logo { max-width: 220px; margin-bottom: 20px; }
.contact-list, .footer-links { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-list li, .footer-links li { margin: 10px 0; }
.footer-links a { color: var(--white); }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  background: var(--black);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
}
.socials { display: flex; gap: 20px; }
.socials a { color: var(--light); font-size: 1.1rem; }
.socials a:hover { color: var(--orange); }

.page-hero {
  background: var(--white);
  border-radius: 0 0 var(--radius-xl) 0;
  margin-top: -110px;
  padding: 180px 0 80px;
}
.page-hero.simple-dark {
  background: linear-gradient(180deg, var(--white) 0%, #fff8e1 100%);
}
.page-content { padding: 80px 0 100px; }
.content-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 40px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-left { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal.visible { opacity: 1; transform: translate(0,0); }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (max-width: 1024px) {
  .section-space { padding: 80px 0; }
  .hero, .page-hero { border-radius: 0 0 200px 0; }
  .hero { padding: 160px 0 80px; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-card-center { height: 340px; }
  .hero-card-left, .hero-card-right { height: 260px; }
  .price-card { padding: 50px 30px 30px; }
}

@media (max-width: 767px) {
  .container { width: min(var(--container), calc(100% - 24px)); }
  .site-header { padding: 12px 0; }
  .header-inner { padding: 0 14px; flex-wrap: wrap; }
  .brand img { height: 54px; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
  }
  .site-nav a { padding: 12px 8px; }
  .header-cta { display: none; }
  .nav-open .site-nav { display: flex; }
  .hero, .page-hero { margin-top: -160px; border-radius: 0 0 100px 0; }
  .hero { padding: 200px 0 60px; }
  .page-hero { padding: 200px 0 60px; }
  .hero-grid, .split-grid, .footer-top, .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .hero-copy, .about-copy, .testimonial-copy, .spain-copy, .section-head { text-align: center; }
  .hero-copy .section-divider,
  .about-copy .section-divider,
  .testimonial-copy .section-divider,
  .spain-copy .section-divider { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-collage { min-height: 320px; margin-top: 20px; }
  .hero-card-left, .hero-card-center, .hero-card-right { border-radius: 100px; }
  .hero-card-left { top: 30px; height: 180px; }
  .hero-card-center { height: 250px; }
  .hero-card-right { top: 30px; height: 180px; }
  .slider-arrow.prev { left: 0; }
  .slider-arrow.next { right: 0; }
  .testimonial-track { min-height: 360px; }
  .counters { grid-template-columns: 1fr 1fr; gap: 12px; }
  .counter-icon { width: 60px; height: 60px; font-size: 1.5rem; }
  .counter-value { font-size: 2.5rem; }
  .counter-card p { font-size: .85rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .price-card { padding: 40px 20px 30px; }
  .content-card { padding: 24px; }
}

.brand-mark {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; display: grid; place-items: center; font-weight: 900; font-size: 1.15rem;
  box-shadow: var(--shadow-soft);
}
.brand { display:flex; align-items:center; gap:12px; color:var(--white); font-weight:700; }
.brand-label { display:flex; flex-direction:column; line-height:1; }
.brand-label small { font-size:.75rem; font-weight:500; opacity:.8; }
.hero-card-left { background: linear-gradient(180deg, rgba(56,189,248,.15), rgba(15,118,110,.25)), url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=800&q=80') center/cover no-repeat; }
.hero-card-center { background: linear-gradient(180deg, rgba(15,118,110,.15), rgba(34,197,94,.25)), url('https://images.unsplash.com/photo-1515879218367-8466d910aaa4?auto=format&fit=crop&w=900&q=80') center/cover no-repeat; }
.hero-card-right { background: linear-gradient(180deg, rgba(34,197,94,.15), rgba(56,189,248,.25)), url('https://images.unsplash.com/photo-1526379095098-d400fd0bf935?auto=format&fit=crop&w=800&q=80') center/cover no-repeat; }
.video-card img { background:#0f172a; }
.program-card img { background:#0f172a; }
.code-pill { display:inline-flex; align-items:center; gap:8px; padding:8px 16px; border-radius:999px; background:rgba(15,118,110,.12); color:var(--primary); font-weight:700; margin-bottom:18px; }
.faq-list { display:grid; gap:16px; }
.faq-item { background: var(--white); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow-soft); }
.faq-item h3 { margin-bottom: 8px; font-size: 1.1rem; }
.contact-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:30px; }
.contact-panel { background:linear-gradient(180deg, var(--primary), var(--black)); color:var(--white); border-radius:24px; padding:32px; box-shadow:var(--shadow-soft); }
.contact-panel h3, .contact-panel p, .contact-panel li { color:var(--white); }
.form-card { background:var(--white); border-radius:24px; padding:32px; box-shadow:var(--shadow-soft); }
.form-grid { display:grid; gap:14px; }
.form-grid input, .form-grid textarea, .form-grid select { width:100%; padding:14px 16px; border:1px solid #cbd5e1; border-radius:14px; font:inherit; }
.form-grid textarea { min-height: 150px; resize: vertical; }
.timeline { display:grid; gap:18px; }
.timeline-item { display:grid; grid-template-columns:56px 1fr; gap:18px; align-items:start; }
.timeline-step { width:56px; height:56px; border-radius:50%; background:linear-gradient(135deg, var(--primary), var(--secondary)); color:white; display:grid; place-items:center; font-weight:900; }
@media (max-width:767px){ .brand-label{display:none;} .contact-grid{grid-template-columns:1fr;} }
