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

:root {
  --bg: #f8f8f8;
  --fg: #000000;
  --primary: #000000;
  --surface-dark: #181818;
  --surface-mid: #303030;
  --surface-blue: #084060;
  --surface-blue-dark: #082030;
  --surface-light: #e8e8e8;
  --surface-off: #f0f0f0;
  --accent-green: #e8f0e8;
  --accent-slate: #405068;
  --white: #ffffff;

  --font-display: 'Bricolage Grotesque', 'Bricolage Grotesque Fallback', sans-serif;
  --font-body: Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 100px;

  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-card: 0 4px 32px rgba(0,0,0,0.10);

  --max-width: 1200px;
  --nav-h: 68px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 780px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #222;
  border-color: #222;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}

.btn-ghost:hover {
  background: var(--fg);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--surface-light);
}

.btn-secondary:hover {
  background: var(--surface-light);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--surface-off);
}

.btn-large {
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
}

.btn-full {
  width: 100%;
}

/* ===== NAV ===== */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--surface-light);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo-link {
  flex-shrink: 0;
}

.nav-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  opacity: 0.8;
  transition: opacity 0.15s;
}

.nav-link:hover {
  opacity: 1;
}

.nav-cta {
  flex-shrink: 0;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s;
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--surface-light);
  background: var(--bg);
}

.nav-mobile-menu.open {
  display: flex;
}

/* ===== HERO ===== */
.hero-section {
  background: var(--bg);
  padding: 5rem 1.5rem 0;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-rating {
  font-size: 0.85rem;
  color: var(--fg);
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.hero-accent {
  position: relative;
  display: inline-block;
}

.hero-sub {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
  max-width: 520px;
}

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

/* Hero Form */
.hero-right {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.hero-form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  border: 1px solid var(--surface-light);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--fg);
}

.form-subtitle {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--surface-light);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-success {
  text-align: center;
  padding: 1rem 0;
}

.success-icon {
  width: 56px;
  height: 56px;
  background: var(--fg);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: #555;
  font-size: 0.9rem;
}

/* Hero Photos */
.hero-photos {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  overflow: hidden;
}

.photo-grid {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
}

.photo-grid::-webkit-scrollbar {
  display: none;
}

.photo-item {
  width: 180px;
  height: 135px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ===== SECTIONS COMMON ===== */
section {
  padding: 5rem 0;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1.5rem;
}

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--fg);
}

.section-h2.light {
  color: var(--white);
}

.section-p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-p.light {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===== PARTNERS ===== */
.partners-section {
  background: var(--white);
  padding: 3rem 0;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
  margin-top: 1rem;
}

.partner-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.2s, opacity 0.2s;
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ===== STATS ===== */
.stats-section {
  background: var(--surface-dark);
  padding: 5rem 0;
}

.stats-section .section-h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}

/* ===== INSTRUCTORS ===== */
.instructors-section {
  background: var(--bg);
}

.instructors-photos {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.instructor-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

/* ===== FORMATIONS ===== */
.formations-section {
  background: var(--surface-off);
}

.formations-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--surface-light);
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: all 0.15s;
}

.tab-btn:hover,
.tab-btn.tab-active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.formations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.formation-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: box-shadow 0.2s, transform 0.15s;
}

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

.formation-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface-off);
  color: #555;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.8rem;
  width: fit-content;
}

.formation-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}

.formation-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
}

.formation-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meta-tag {
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 500;
  background: var(--accent-green);
  color: #2a5a2a;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
}

.formations-cta-row {
  margin-top: 2.5rem;
  text-align: center;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  background: var(--bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-stars {
  color: #f4a100;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.65;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial-author strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: #777;
}

/* ===== TOOLS ===== */
.tools-section {
  background: var(--surface-dark);
  padding: 5rem 0;
}

.tools-section .section-h2 {
  color: var(--white);
}

.tools-section .section-p {
  color: rgba(255,255,255,0.75);
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tool-tag {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.1rem;
  transition: background 0.15s;
}

.tool-tag:hover {
  background: rgba(255,255,255,0.18);
}

/* ===== FINANCEMENT ===== */
.financement-section {
  background: var(--bg);
  padding: 5rem 0;
}

.financement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.financement-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.financement-icon {
  font-size: 2rem;
}

.financement-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.financement-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* ===== SUR MESURE ===== */
.surmesure-section {
  background: var(--surface-off);
}

.surmesure-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--surface-light);
  line-height: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

.step-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section {
  background: var(--bg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
  border: 1px solid var(--surface-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--surface-light);
}

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

.faq-item summary {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: #999;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--surface-off);
}

.faq-a {
  padding: 1rem 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  background: var(--white);
  border-top: 1px solid var(--surface-light);
}

.faq-a a {
  color: var(--fg);
  text-decoration: underline;
}

/* ===== SESSION / CTA SECTION ===== */
.session-section {
  background: var(--surface-blue);
  color: var(--white);
  padding: 6rem 1.5rem;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--surface-dark);
  color: var(--white);
  padding: 4rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  filter: invert(1);
  opacity: 0.9;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 360px;
}

.footer-links-group {
  display: flex;
  gap: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .hero-section {
    padding: 3rem 1.5rem 0;
  }

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

  .hero-right {
    position: static;
  }

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

  .hero-ctas {
    flex-direction: column;
  }

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

  .photo-item {
    width: 140px;
    height: 105px;
  }

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

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

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

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

  .surmesure-steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links-group {
    gap: 2rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .instructors-photos {
    gap: 0.5rem;
  }

  .instructor-photo {
    width: 70px;
    height: 70px;
  }

  .partners-grid {
    gap: 1.5rem 2rem;
  }

  .partner-logo {
    height: 28px;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 1.6rem;
  }

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

  .stat-card {
    padding: 1.25rem 1rem;
  }

  .hero-form-card {
    padding: 1.5rem;
  }

  .formations-tabs {
    gap: 0.4rem;
  }

  .tab-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
  }
}
