:root {
  --bordeaux-dark: #6e0c1f;
  --bordeaux: #86142b;
  --bordeaux-light: #a81c38;
  --blue-accent: #2b4c9c;
  --ink: #201418;
  --grey: #6b6169;
  --grey-light: #efe9ea;
  --cream: #fbf7f6;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(110, 12, 31, 0.10);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar */
.topbar {
  background: var(--bordeaux-dark);
  color: #f1d9de;
  font-size: 0.8rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Header */
header.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  color: var(--bordeaux);
  white-space: nowrap;
}
.logo img { height: 42px; width: auto; }
.logo span { color: var(--bordeaux); font-weight: 800; font-size: 1em; letter-spacing: inherit; }

.partner-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--grey);
  font-weight: 600;
}
.partner-badge img { height: 26px; width: auto; }

.partner-strip {
  background: var(--white);
  border-top: 1px solid var(--grey-light);
  border-bottom: 1px solid var(--grey-light);
  padding: 22px 0;
}
.partner-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}
.partner-strip span {
  font-size: 0.85rem;
  color: var(--grey);
  font-weight: 600;
}
.partner-strip img { height: 40px; width: auto; }

.footer-partners {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.footer-partners img { height: 34px; width: auto; background: var(--white); border-radius: 8px; padding: 4px 8px; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
nav.main-nav a.active,
nav.main-nav a:hover { color: var(--bordeaux); }
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--bordeaux);
  border-radius: 3px;
}

.nav-actions { display: flex; align-items: center; gap: 20px; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--bordeaux);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--bordeaux-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--bordeaux);
  color: var(--bordeaux);
}
.btn-outline:hover { background: var(--bordeaux); color: var(--white); }
.btn-light {
  background: var(--white);
  color: var(--bordeaux);
}
.btn-light:hover { transform: translateY(-2px); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bordeaux-dark), var(--bordeaux) 60%, var(--blue-accent));
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 2.7rem;
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero p.lead {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 480px;
  margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(4px);
}
.hero-card .waveform {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 90px;
  margin-bottom: 20px;
}
.hero-card .waveform span {
  flex: 1;
  background: rgba(255,255,255,0.55);
  border-radius: 4px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}
.hero-stats div strong { display: block; font-size: 1.5rem; }
.hero-stats div span { font-size: 0.75rem; opacity: 0.85; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--white); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .tag {
  color: var(--bordeaux);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
}
.section-head h2 {
  font-size: 2rem;
  margin: 10px 0 12px;
}
.section-head p { color: var(--grey); }

/* Cards grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-light);
}
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--grey-light);
  color: var(--bordeaux);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.card p { color: var(--grey); margin: 0; font-size: 0.95rem; }

/* Formation highlight */
.formation-band {
  background: var(--bordeaux-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 20px; }
.pill {
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.formation-band ul { margin: 0; padding-left: 20px; }
.formation-band li { margin-bottom: 8px; font-size: 0.92rem; }

/* Trust bar */
.trust-bar {
  background: var(--grey-light);
  padding: 26px 0;
}
.trust-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--grey);
  font-weight: 600;
}
.trust-bar strong { color: var(--bordeaux-dark); }
.trust-bar span, .trust-bar strong { text-decoration: none; }

/* Program table (formations page) */
.week-title {
  font-size: 1.3rem;
  color: var(--bordeaux-dark);
  margin: 40px 0 18px;
  font-weight: 800;
}
.program-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.program-table th, .program-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--grey-light);
  font-size: 0.9rem;
}
.program-table th {
  background: var(--bordeaux);
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.program-table tr:last-child td { border-bottom: none; }
.tag-volet {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grey-light);
  color: var(--bordeaux-dark);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Info grid (fiche pratique) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.info-grid .item {
  background: var(--white);
  border-left: 4px solid var(--bordeaux);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.info-grid .item h4 {
  margin: 0 0 6px;
  color: var(--bordeaux-dark);
  font-size: 0.95rem;
}
.info-grid .item p { margin: 0; font-size: 0.88rem; color: var(--grey); }

/* Steps (objectifs) */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--bordeaux);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--bordeaux-dark), var(--blue-accent));
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { margin: 0 0 12px; font-size: 1.8rem; }
.cta-band p { opacity: 0.9; margin: 0 0 28px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--bordeaux-dark);
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ddd0d3;
  font-family: inherit;
  font-size: 0.92rem;
  margin-bottom: 18px;
  background: var(--cream);
}
.contact-form textarea { resize: vertical; min-height: 110px; }

.contact-info .item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}
.contact-info .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bordeaux);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-info h4 { margin: 0 0 4px; font-size: 0.95rem; }
.contact-info p { margin: 0; color: var(--grey); font-size: 0.9rem; }

.map-box {
  height: 220px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--grey-light), var(--grey-light) 10px, var(--cream) 10px, var(--cream) 20px);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 20px;
  border: 1px dashed #d8c9cd;
}

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: #cfc3c7;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h5 {
  color: var(--white);
  font-size: 0.9rem;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: #8f8489;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--bordeaux);
  cursor: pointer;
  padding: 4px 6px;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--grey-light);
  padding: 6px 24px 18px;
}
.mobile-nav a {
  padding: 14px 0;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--grey-light);
}
.mobile-nav a.active { color: var(--bordeaux); }
.mobile-nav.open { display: flex; }
.mobile-nav .btn { margin-top: 10px; text-align: center; border-bottom: none; }

/* Responsive */
@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-actions { gap: 10px; }
  .nav-actions .partner-badge,
  .nav-actions .btn-primary { display: none; }
  .topbar { font-size: 0.72rem; }
  .topbar .container { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero-grid, .contact-grid, .formation-band { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .info-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .program-table { display: block; overflow-x: auto; white-space: nowrap; }
}
