/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #C0392B;
  --red-dark: #922b21;
  --red-light: #e74c3c;
  --brown: #7B3F00;
  --dark: #1a1a1a;
  --dark-2: #2c2c2c;
  --grey: #5a5a5a;
  --grey-light: #f5f5f5;
  --white: #ffffff;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.2);
  --radius: 12px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================
   TYPOGRAPHY
   ============================ */
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

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

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--dark); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { border-color: var(--white); }

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(20,20,20,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  background: var(--white);
  border-radius: 8px;
  padding: 3px 6px;
}

.nav-logo-img--footer {
  height: 40px;
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh;
  background: url('fond.png') top center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 68px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(192,57,43,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  color: var(--white);
  max-width: 680px;
  margin-left: 8vw;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red-light);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-content h1 { margin-bottom: 1.2rem; }
.hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================
   PHILOSOPHY
   ============================ */
.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  align-items: center;
  gap: 4rem;
}

.philosophy-image { position: relative; }
.philosophy-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

.philosophy-badge {
  position: absolute;
  bottom: 2rem;
  right: -1.5rem;
  background: var(--red);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 50%;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: var(--shadow);
}

.philosophy-content h2 { margin-bottom: 2rem; }

.philosophy-items { display: flex; flex-direction: column; gap: 1.5rem; }

.philosophy-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.philosophy-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--grey-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.philosophy-item strong { display: block; margin-bottom: 0.3rem; }
.philosophy-item p { font-size: 0.9rem; color: var(--grey); }

/* ============================
   APPROACH
   ============================ */
.approach {
  background: var(--grey-light);
  padding: 5rem 1.5rem;
}

.approach-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.approach-header p { color: var(--grey); margin-top: 0.75rem; }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.approach-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.approach-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.approach-card-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.approach-card h3 { margin-bottom: 0.5rem; }
.approach-card p { font-size: 0.88rem; color: var(--grey); }

.approach-card--red { background: var(--red); color: var(--white); }
.approach-card--red p { color: rgba(255,255,255,0.8); }

.approach-card--dark { background: var(--dark-2); color: var(--white); }
.approach-card--dark p { color: rgba(255,255,255,0.7); }

.approach-card--brown { background: var(--brown); color: var(--white); }
.approach-card--brown p { color: rgba(255,255,255,0.8); }

.approach-card--mentors .mentors-photos {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.approach-card--mentors .mentors-photos img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
}

.approach-cta {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

/* ============================
   TESTIMONIALS CAROUSEL
   ============================ */
.testimonials {
  padding: 5rem 0;
  background: var(--dark);
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1.5rem;
}
.testimonials-header h2 { color: var(--white); }
.testimonials-header p { color: rgba(255,255,255,0.55); margin-top: 0.5rem; }
.testimonials-header .section-tag { color: var(--red-light); }

/* Carousel wrapper */
.carousel-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 4rem;
}

.carousel-overflow {
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Each slide */
.carousel-slide {
  min-width: 100%;
  display: flex;
  gap: 3rem;
  align-items: center;
  padding: 0 0.5rem;
}

.carousel-slide-photo {
  flex-shrink: 0;
  width: 280px;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.carousel-slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.carousel-slide-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(192,57,43,0.35) 0%, transparent 50%);
}

.carousel-slide-content {
  flex: 1;
  color: var(--white);
}

.carousel-quote-icon {
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--red);
  line-height: 0.6;
  margin-bottom: 1.2rem;
  display: block;
  opacity: 0.7;
}

.carousel-slide-content blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  margin-bottom: 2rem;
  border: none;
  padding: 0;
}

.carousel-author-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.carousel-author-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-light);
}

/* Prev / Next buttons */
.carousel-btn {
  position: absolute;
  top: calc(50% - 1.5rem); /* center relative to slide photo height */
  transform: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  z-index: 10;
  line-height: 1;
}
.carousel-btn:hover {
  background: var(--red);
  border-color: var(--red);
}
.carousel-btn--prev { left: 0; }
.carousel-btn--next { right: 0; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.carousel-dot.active {
  background: var(--red);
  transform: scale(1.3);
}

/* Responsive */
@media (max-width: 700px) {
  .carousel-wrapper { padding: 0 2.5rem; }
  .carousel-slide { flex-direction: column; gap: 1.5rem; }
  .carousel-slide-photo { width: 100%; height: 220px; }
  .carousel-slide-content blockquote { font-size: 0.95rem; }
}

/* ============================
   FAQ
   ============================ */
.faq {
  background: var(--grey-light);
  padding: 5rem 1.5rem;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--grey-light); }
.faq-question .faq-chevron { font-size: 1rem; transition: transform var(--transition); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 0.9rem;
  color: var(--grey);
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.2rem;
}

/* ============================
   CONTACT BAND
   ============================ */
.contact-band {
  background: var(--dark);
  color: var(--white);
  padding: 5rem 1.5rem;
}

.contact-band-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-band h2 { margin-bottom: 1rem; }
.contact-band p { color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.contact-band-buttons { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

.contact-band-info h3 { margin-bottom: 1.2rem; font-size: 1.1rem; }
.contact-band-info p { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }

/* ============================
   FOOTER
   ============================ */
.footer {
  background: #111;
  color: rgba(255,255,255,0.5);
  padding: 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand .nav-logo { color: var(--white); font-size: 1rem; }
.footer-brand p { font-size: 0.8rem; margin-top: 0.3rem; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

/* ============================
   PAGE HERO (subpages)
   ============================ */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 8rem 1.5rem 4rem;
  text-align: center;
}
.page-hero span { display: block; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.7); margin-top: 0.75rem; }

/* ============================
   COURS PAGE
   ============================ */
.cours-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.cours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.cours-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.cours-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.cours-card-img {
  height: 200px;
  background: var(--dark-2);
  overflow: hidden;
}
.cours-card-img img { width: 100%; height: 100%; object-fit: cover; }

.cours-card-body { padding: 1.5rem; }
.cours-card-level {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(192,57,43,0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.cours-card h3 { margin-bottom: 0.5rem; }
.cours-card p { font-size: 0.88rem; color: var(--grey); margin-bottom: 1.2rem; }

.cours-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--grey);
  border-top: 1px solid var(--grey-light);
  padding-top: 1rem;
}

/* ============================
   TARIFS PAGE
   ============================ */
.tarifs-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.tarif-card {
  border-radius: var(--radius);
  border: 2px solid var(--grey-light);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.tarif-card:hover { border-color: var(--red); box-shadow: var(--shadow); }
.tarif-card.featured {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}
.tarif-card.featured p, .tarif-card.featured .tarif-feature { color: rgba(255,255,255,0.85); }

.tarif-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--dark);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.tarif-card h3 { margin-bottom: 0.5rem; }
.tarif-price {
  font-size: 2.8rem;
  font-family: var(--font-heading);
  font-weight: 900;
  margin: 1rem 0;
}
.tarif-price span { font-size: 1rem; font-weight: 400; opacity: 0.7; }

.tarif-features {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.tarif-feature { font-size: 0.88rem; display: flex; align-items: center; gap: 0.5rem; }
.tarif-feature::before { content: '✓'; color: var(--red); font-weight: 700; }
.tarif-card.featured .tarif-feature::before { color: var(--white); }

/* ============================
   INSCRIPTION PAGE
   ============================ */
.inscription-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.form-grid .full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit { margin-top: 1.5rem; }

/* ============================
   CONTACT PAGE
   ============================ */
.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info h3 { margin-bottom: 1.5rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(192,57,43,0.1);
  color: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-info-item strong { display: block; margin-bottom: 0.2rem; }
.contact-info-item p { font-size: 0.88rem; color: var(--grey); }

/* ============================
   REGLEMENTS PAGE
   ============================ */
.reglements-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.reglement-item {
  background: var(--grey-light);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.reglement-item h4 { margin-bottom: 0.6rem; font-size: 1rem; }
.reglement-desc { font-size: 0.88rem; color: var(--grey); line-height: 1.7; }
.reglement-desc strong { color: var(--dark); font-weight: 600; }
.reglement-desc ul {
  padding-left: 1.3rem;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.reglement-desc li { list-style: disc; }
.reglement-item--important {
  background: #fff8f7;
  border-left-color: var(--red);
  border: 1px solid rgba(192,57,43,0.2);
  border-left: 4px solid var(--red);
}
.reglement-item--important h4 { color: var(--red); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy { grid-template-columns: 1fr; }
  .philosophy-badge { right: 1rem; }
  .contact-band-content { grid-template-columns: 1fr; gap: 2rem; }
  .contact-section { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--dark);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .nav-toggle { display: block; }
  .navbar .btn { display: none; }
  .approach-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .approach-cta { flex-direction: column; align-items: flex-start; }
  .footer-container { flex-direction: column; }
}
