/* =======================================================
   0) FONT
======================================================= */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

/* =======================================================
   1) RESET & BASE
======================================================= */
*{margin:0;padding:0;box-sizing:border-box;font-family:"Inter",sans-serif}
html{scroll-behavior:smooth}
body{background:#f8fafc;color:#0f172a;line-height:1.6}
img{max-width:100%;display:block}
a{text-decoration:none}
section[id]{scroll-margin-top:110px}

/* =======================================================
   2) TOKENS + CONTAINER
======================================================= */
:root{
  --primary:#2563eb;
  --primary-dark:#1d4ed8;
  --text:#0f172a;
  --muted:#64748b;
  --bg:#f8fafc;
  --card:#ffffff;
  --border:#e2e8f0;

  --container:1200px;
  --pad:8%;
  --radius:18px;
}

.container{
  width:min(var(--container), 100% - 2*var(--pad));
  margin-inline:auto;
}

.section-title{
  font-size:34px;
  font-weight:800;
  text-align:center;
  letter-spacing:-0.6px;
  margin-bottom:12px;
}
.section-sub{
  text-align:center;
  max-width:760px;
  margin:0 auto 34px;
  font-size:16px;
  color:var(--muted);
}

/* =======================================================
   3) HEADER
======================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 0;
  z-index: 1000;
  transition: 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92%);
  margin: 0 auto;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
header.scrolled{
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.main-logo{
  height:46px;
  color:#fff;
  transition:.25s ease;
}
header.scrolled .main-logo{color:#1d3557}

.nav a{
  color:#fff;
  font-weight:600;
  margin-left:18px;
  opacity:.95;
}
.nav a:hover{opacity:1;color:#facc15}
header.scrolled .nav a{color:#0f172a}
header.scrolled .nav a:hover{color:var(--primary)}

.burger{
  display:none;
  width:42px;height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08);
  cursor:pointer;
}
.burger span{
  display:block;
  height:2px;width:18px;
  background:#fff;
  margin:5px auto;
  border-radius:999px;
}
header.scrolled .burger{
  border-color:rgba(15,23,42,.12);
  background:rgba(15,23,42,.04);
}
header.scrolled .burger span{background:#0f172a}

.mobile-nav{
  display:none;
  background:#fff;
  border-top:1px solid rgba(15,23,42,.08);
  box-shadow:0 20px 50px rgba(0,0,0,.08);
  padding:10px 0;
}
.mobile-nav a{
  display:block;
  padding:12px var(--pad);
  color:#0f172a;
  font-weight:700;
}
.mobile-nav a:hover{background:#f1f5f9}
.mobile-nav.open{display:block}

/* =======================================================
   4) HERO
======================================================= */
.hero {
 min-height: 100vh;
 display: flex;
 align-items: center;
 justify-content: center;
 padding-top: 80px;
 text-align: center;
 color: white;
 background-image:
   linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
   url("../images/hero-bg.png");
 background-size: cover;
 background-position: center;
 background-repeat: no-repeat;
}

.hero-inner{max-width:860px}
.hero h1{
  font-size:44px;
  line-height:1.05;
  letter-spacing:-.8px;
  margin-bottom:14px;
}
.hero p{
  font-size:17px;
  opacity:.92;
  margin-bottom:20px;
}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.hero-points{
  display:flex;gap:10px;justify-content:center;flex-wrap:wrap;
  margin-top:16px;
}
.hero-point{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  padding:9px 12px;
  border-radius:999px;
  font-size:13px;
}

.hero h1 {
  animation: fadeUp 1s ease forwards;
}

.hero p {
  animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
/* =======================================================
   5) BUTTONS
======================================================= */
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  font-weight:800;
  transition:.25s ease;
}
.btn-outline{
  background:transparent;
  color:#fff;
  border:2px solid #fff;
}
.btn-outline:hover{
  background:#fff;
  color:var(--primary);
  transform:translateY(-2px);
}
.btn-primary{
  background:var(--primary);
  color:#fff;
  border:2px solid var(--primary);
}
.btn-primary:hover{
  background:var(--primary-dark);
  border-color:var(--primary-dark);
  transform:translateY(-2px);
}
.full-btn{width:100%;text-align:center}

/* =======================================================
   6) GENERIC SECTION SPACING
======================================================= */
section{padding:64px 0}

/* =======================================================
   7) CARDS
======================================================= */
.cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}
.card{
  background:var(--card);
  border:1px solid #eef2f7;
  border-radius:16px;
  padding:18px;
  box-shadow:0 12px 35px rgba(2,6,23,.06);
  transition:.25s ease;
}
.card:hover{transform:translateY(-5px);box-shadow:0 18px 45px rgba(2,6,23,.10)}
.card h3{font-size:18px;margin-bottom:8px}
.card p{color:var(--muted);font-size:14px;margin-bottom:10px}
.card ul{list-style:none;margin-top:10px}
.card ul li{
  position:relative;
  padding-left:20px;
  margin-bottom:6px;
  font-size:13.5px;
  color:#475569;
}
.card ul li::before{
  content:"✓";
  position:absolute;left:0;top:0;
  color:var(--primary);
  font-weight:900;
}

/* =======================================================
   8) APPROACH MODERN
======================================================= */
.approach-modern{background:#fff}
.approach-container{
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:30px;
  align-items:center;
}
.approach-text h2{
  font-size:38px;
  line-height:1.1;
  letter-spacing:-.8px;
  margin-bottom:14px;
}
.approach-text h2 span{color:var(--primary)}
.approach-sub{color:var(--muted);font-size:16px;max-width:560px;margin-bottom:16px}
.approach-list{list-style:none;margin-bottom:18px}
.approach-list li{
  padding-left:22px;
  position:relative;
  margin-bottom:10px;
  font-weight:700;
  color:#1e293b;
  font-size:14.5px;
}
.approach-list li::before{
  content:"✓";
  position:absolute;left:0;top:0;
  color:var(--primary);
  font-weight:900;
}
.approach-image img{
  border-radius:24px;
  box-shadow:0 45px 90px rgba(2,6,23,.18);
}

/* =======================================================
   9) SUBJECTS CAROUSEL
======================================================= */
.subjects{background:var(--bg)}
.subjects-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}
.subjects-cta{margin-top:10px}
.subjects-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  color:var(--primary);
  padding:10px 14px;
  border-radius:14px;
  background:rgba(37,99,235,.10);
  border:1px solid rgba(37,99,235,.18);
}
.subjects-link:hover{background:rgba(37,99,235,.14)}
.subjects-shell{position:relative}
.subjects-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:46px;height:46px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.95);
  box-shadow:0 14px 40px rgba(0,0,0,.12);
  cursor:pointer;
  z-index:2;
  font-size:26px;
}
.subjects-nav.prev{left:-12px}
.subjects-nav.next{right:-12px}

.subjects-rail{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:270px;
  gap:18px;
  overflow-x:auto;
  padding:10px 6px 18px;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}
.subject-card{
  position:relative;
  height:340px;
  border-radius:22px;
  overflow:hidden;
  background:#111827;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  scroll-snap-align:start;
  isolation:isolate;
}
.subject-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.03);
  transition:transform .55s ease;
}
.subject-card:hover img{transform:scale(1.10)}
.subject-overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(2,6,23,0.0) 15%, rgba(2,6,23,.60) 70%, rgba(2,6,23,.85) 100%);
  z-index:1;
}
.subject-content{
  position:absolute;
  left:16px;right:16px;bottom:16px;
  z-index:2;color:#fff;
}
.subject-content h3{font-size:20px;margin-bottom:6px}
.subject-content p{font-size:13.5px;color:rgba(255,255,255,.82);margin-bottom:10px}
.subject-action{color:#93c5fd;font-weight:900}
.subject-action:hover{color:#bfdbfe;text-decoration:underline}

.subjects-dots{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:10px;
}
.subjects-dot{
  width:8px;height:8px;border-radius:999px;
  border:none;
  background:rgba(15,23,42,.18);
  cursor:pointer;
}
.subjects-dot.is-active{width:26px;background:var(--primary)}

/* =======================================================
   10) METHOD TIMELINE
======================================================= */
.method-section{background:#fff}
.timeline{
  position:relative;
  margin-top:26px;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
  text-align:center;
}
.timeline::before{
  content:"";
  position:absolute;
  top:28px;
  left:6%;
  right:6%;
  height:3px;
  background:linear-gradient(to right, var(--primary), var(--primary-dark));
  z-index:0;
}
.timeline-step{position:relative;z-index:2}
.timeline-number{
  width:58px;height:58px;
  margin:0 auto 14px;
  border-radius:50%;
  background:#fff;
  border:3px solid var(--primary);
  display:grid;place-items:center;
  font-weight:900;
  color:var(--primary);
  box-shadow:0 10px 25px rgba(37,99,235,.16);
  transition:.25s ease;
}
.timeline-step:hover .timeline-number{
  background:var(--primary);
  color:#fff;
  transform:scale(1.05);
}
.timeline-step h3{font-size:16px;margin-bottom:8px}
.timeline-step p{font-size:13.5px;color:var(--muted)}

/* =======================================================
   11) RESULTS
======================================================= */
.results-section{background:var(--bg)}
.results-wrapper{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:26px;
  align-items:center;
}
.results-image img{
  border-radius:24px;
  box-shadow:0 30px 70px rgba(0,0,0,.10);
}
.results-content h2{
  font-size:30px;
  line-height:1.15;
  letter-spacing:-.6px;
  margin-bottom:14px;
}
.results-content h2 span{
  background:#c7f0ff;
  padding:3px 8px;
  border-radius:8px;
}
.results-list{list-style:none;margin:0 0 10px;padding:0}
.results-list li{
  margin-bottom:10px;
  font-size:14.5px;
  color:#334155;
}
.results-note{font-size:12.5px;color:var(--muted)}

/* =======================================================
   12) OBJECTIFS TIMELINE
======================================================= */
.progress-section{background:#fff}
.progress-line{
  position:relative;
  margin-top:22px;
  display:flex;
  justify-content:space-between;
  gap:14px;
}
.progress-line::before{
  content:"";
  position:absolute;
  top:22px;
  left:6%;
  right:6%;
  height:3px;
  background:#e5e7eb;
  z-index:0;
}
.progress-step{
  position:relative;
  width:100%;
  max-width:210px;
  z-index:2;
}
.progress-dot{
  width:22px;height:22px;
  margin:0 auto 14px;
  border-radius:50%;
  background:#fff;
  border:3px solid var(--primary);
  box-shadow:0 8px 20px rgba(37,99,235,.12);
}
.step-number{
  display:block;
  font-size:11px;
  letter-spacing:2px;
  color:#94a3b8;
  margin-bottom:4px;
}
.progress-step h3{font-size:15px;margin-bottom:8px}
.progress-step p{font-size:13.5px;color:var(--muted)}
.progress-step.highlight h3{color:var(--primary);font-weight:900}
.progress-step.highlight .progress-dot{background:var(--primary);border-color:var(--primary)}

/* ===========================
  CONTACT COMPACT PRO
=========================== */
.contact-compact{
 padding:90px 0;
 background:#f8fafc;
}
.contact-header{
 text-align:center;
 margin-bottom:50px;
}
.contact-header h2{
 font-size:32px;
 margin-bottom:10px;
}
.contact-header p{
 font-size:15px;
 color:#64748b;
}
.contact-grid-compact{
 max-width:1000px;
 margin:auto;
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:40px;
}
/* Cartes égales */
.card-equal{
 background:white;
 padding:40px;
 border-radius:20px;
 box-shadow:0 25px 60px rgba(15,23,42,0.08);
 display:flex;
 flex-direction:column;
 justify-content:space-between;
}
.card-equal h3{
 font-size:20px;
 margin-bottom:25px;
}
.card-equal{
  min-height:600px;
}
/* FAQ */
.faq-item{
 border-bottom:1px solid #eef2f7;
}

.faq-item{
  padding:4px 0;
}


.faq-question{
 width:100%;
 background:none;
 border:none;
 padding:15px 0;
 text-align:left;
 font-weight:600;
 display:flex;
 justify-content:space-between;
 align-items:center;
 cursor:pointer;
}
.faq-icon{
 width:26px;
 height:26px;
 border-radius:50%;
 background:#f1f5f9;
 display:flex;
 align-items:center;
 justify-content:center;
 transition:0.3s;
}
.faq-answer{
 max-height:0;
 overflow:hidden;
 transition:max-height 0.3s ease;
}
.faq-answer p{
 font-size:14px;
 color:#64748b;
 padding-bottom:15px;
}
.faq-item.active .faq-answer{
 max-height:150px;
}
.faq-item.active .faq-icon{
 background:#2563eb;
 color:white;
 transform:rotate(45deg);
}
.faq-link-equal{
 margin-top:20px;
 font-weight:600;
 color:#2563eb;
 text-decoration:none;
}
/* FORM */
.contact-form-pro .form-group{
 margin-bottom:18px;
}
.form-row{
 display:flex;
 gap:15px;
}
.contact-form-pro input,
.contact-form-pro select,
.contact-form-pro textarea{
 width:100%;
 padding:12px 14px;
 border-radius:10px;
 border:1px solid #e2e8f0;
 font-size:14px;
 transition:0.2s;
}
.contact-form-pro input:focus,
.contact-form-pro select:focus,
.contact-form-pro textarea:focus{
 border-color:#2563eb;
 outline:none;
 box-shadow:0 0 0 3px rgba(37,99,235,0.15);
}
textarea{
 min-height:90px;
 resize:none;
}
.btn-pro{
 width:100%;
 padding:14px;
 background:#2563eb;
 color:white;
 border:none;
 border-radius:12px;
 font-weight:600;
 cursor:pointer;
 transition:0.3s;
}
.btn-pro:hover{
 transform:translateY(-2px);
 box-shadow:0 8px 25px rgba(37,99,235,0.3);
}
/* Responsive */
@media(max-width:900px){
 .contact-grid-compact{
   grid-template-columns:1fr;
 }
}
/* =======================================================
   15) FOOTER
======================================================= */
.footer{
  background:linear-gradient(to right, #0f172a, #0b1120);
  color:#cbd5e1;
  padding:60px 0 30px;
}
.footer-container{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
}
.footer-col h3,
.footer-col h4{color:#fff;margin-bottom:10px}
.footer-col p{color:#94a3b8;font-size:13.5px;line-height:1.6}
.footer-col a{
  display:block;
  color:#cbd5e1;
  margin-bottom:9px;
  font-size:13.5px;
}
.footer-col a:hover{color:#fff}
.footer-bottom{
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.footer-bottom p{font-size:12.5px;color:#94a3b8}
.footer-links a{margin-left:14px;font-size:12.5px;color:#94a3b8}
.footer-links a:hover{color:#fff}


/* =======================================================
   SECTION MUSIQUE (premium / compact / fond partition)
======================================================= */

.music-section{
  position: relative;
  padding: 80px 8%;
  overflow: hidden;
  background: #f8fafc;
}

/* Fond partition (m1.jpg) */
.music-bg{
  position: absolute;
  inset: 0;
  background-image: url("../images/m1.jpg");
  background-repeat: no-repeat;
  background-size: cover;          /* couvre toute la section */
  background-position: center;     /* ✅ évite le décalage droite */
  opacity: 0.10;                   /* léger, premium */
  filter: saturate(0.9) contrast(1.05);
  transform: translateZ(0);
  pointer-events: none;
  z-index: 0;
}

/* voile doux par-dessus le fond pour lisibilité */
.music-section::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(900px 500px at 20% 30%,
              rgba(37,99,235,0.08),
              rgba(248,250,252,0.92) 60%,
              rgba(248,250,252,0.98) 100%);
  z-index: 0;
  pointer-events: none;
}

.music-wrap{
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

/* Texte */
.music-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.18);
  color: #1d4ed8;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 14px;
}

.music-title{
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
  color:#0f172a;
}

.music-accent{
  color:#2563eb;
  position: relative;
}

.music-lead{
  color:#475569;
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 56ch;
}

/* Chips instruments */
.music-chips{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}

.chip{
  display:inline-flex;
  align-items:center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  color:#0f172a;
  font-weight: 600;
  font-size: 13px;
}

/* Actions */
.music-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-top: 6px;
}

.btn-music{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  box-shadow: 0 18px 40px rgba(37,99,235,0.25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-music:hover{
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 22px 55px rgba(37,99,235,0.32);
}

.music-link{
  color:#2563eb;
  font-weight: 700;
  text-decoration:none;
  padding: 8px 0;
}

.music-link:hover{
  text-decoration: underline;
}

/* Image */
.music-media{
  display:flex;
  justify-content: center;
}

.music-photo{
  width: 100%;
  max-width: 360px;
  border-radius: 22px;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 26px 70px rgba(15,23,42,0.18);
  transform: translateZ(0);
}

.music-photo img{
  width: 100%;
  height: 100%;
  display:block;
  object-fit: cover;
  aspect-ratio: 4/5;
  transform: scale(1.02);
  transition: transform .45s ease;
}

.music-photo:hover img{
  transform: scale(1.07);
}

/* Responsive */
@media (max-width: 900px){
  .music-section{ padding: 70px 6%; }

  .music-wrap{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .music-title{ font-size: 28px; }

  .music-photo{
    max-width: 420px;
    margin: 0 auto;
  }
}

/* =======================================================
   16) RESPONSIVE
======================================================= */
@media (max-width: 980px){
  .nav{display:none}
  .burger{display:block}
  .cards{grid-template-columns:1fr}
  .approach-container{grid-template-columns:1fr}
  .results-wrapper{grid-template-columns:1fr}
  .contact-wrapper{grid-template-columns:1fr}
  .exam-compact-wrapper{grid-template-columns:1fr}
  .timeline{grid-template-columns:1fr}
  .timeline::before{display:none}
  .timeline-step{text-align:left}
  .timeline-number{margin:0 0 10px}
  .progress-line{flex-direction:column;align-items:flex-start}
  .progress-line::before{display:none}
  .progress-step{max-width:100%}
}

@media (max-width: 520px){
  .hero h1{font-size:30px}
  .hero p{font-size:15px}
  .subjects-rail{grid-auto-columns:82%}
  .subjects-nav{display:none}
  .footer-container{grid-template-columns:1fr}
}

