/* ============================================
   Sophie Malfait — sophiemalfait.lu
   Design system mix-aquarelle Corpoream
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --teal: #1A5D68;
  --teal-light: #2A8090;
  --teal-pale: #E8F4F6;
  --gold: #9F790B;
  --gold-light: #D4A91E;
  --gold-pale: #FBF5E6;
  --navy: #0F2B4C;
  --text: #3A3A3A;
  --text-light: #6B7280;
  --bg-cream: #FDFBF7;
  --bg-warm: #F9F6F0;
  --sage: #7BA48E;
  --sage-pale: #E8F0EB;
  --rose: #C4A4B3;
  --rose-pale: #F5EDF1;
  --terre: #8B6F4E;
  --eau: #4A90A4;
  --air: #A8C5D6;
  --feu: #C4713B;
  --radius: 12px;
  --radius-lg: 24px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--bg-cream);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

a { color: var(--teal); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

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

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

/* === FLOATING DECORATIONS === */
.floating-leaf {
  position: fixed;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  font-size: 100px;
}
.floating-leaf:nth-child(1) { top: 10%; left: 5%; animation: float1 20s ease-in-out infinite; }
.floating-leaf:nth-child(2) { top: 40%; right: 8%; font-size: 80px; animation: float2 25s ease-in-out infinite; }
.floating-leaf:nth-child(3) { bottom: 20%; left: 15%; animation: float1 30s ease-in-out infinite reverse; }

@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(20px) rotate(-8deg); }
}

/* === NAVIGATION === */
.sophie-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(159, 121, 11, 0.08);
  transition: box-shadow 0.3s;
}

.sophie-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--teal);
  letter-spacing: 2px;
  font-weight: 500;
}

.nav-logo-sub {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-top: -3px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--teal); }

.nav-cta {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  white-space: nowrap;
  border: 1.5px solid var(--teal);
  border-radius: 30px;
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--teal);
  color: white;
}

.nav-membre-cta {
  display: inline-block;
  padding: 8px 18px;
  background: var(--gold);
  color: white !important;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background 0.3s;
}
.nav-membre-cta:hover {
  background: var(--gold-light);
  color: white !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--teal);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--teal-pale) 50%, var(--bg-cream) 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid var(--gold-light);
  border-radius: 30px;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 52px;
  color: var(--teal);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

.hero p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.8;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.4s;
  box-shadow: 0 8px 30px rgba(26, 93, 104, 0.2);
  text-decoration: none;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(26, 93, 104, 0.3);
  color: white;
}

.hero-secondary {
  display: inline-block;
  margin-left: 16px;
  padding: 16px 36px;
  background: transparent;
  border: 1.5px solid var(--teal);
  border-radius: 50px;
  color: var(--teal);
  font-size: 15px;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.hero-secondary:hover {
  background: var(--teal);
  color: white;
}

/* === SECTIONS === */
.section {
  padding: 80px 40px;
  position: relative;
}

.section--warm { background: var(--bg-warm); }
.section--teal-pale { background: var(--teal-pale); }
.section--navy { background: var(--navy); color: white; }
.section--navy h2, .section--navy h3 { color: white; }
.section--navy p { color: rgba(255,255,255,0.7); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  color: var(--teal);
  margin-bottom: 12px;
}

.section--navy .section-header h2 { color: white; }

.section-header .divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 550px;
  margin: 0 auto;
  font-weight: 300;
}

/* === CONTENT BLOCKS === */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  font-size: 36px;
  color: var(--teal);
  margin-bottom: 20px;
}

.content-block h3 {
  font-size: 24px;
  color: var(--navy);
  margin-top: 40px;
  margin-bottom: 12px;
}

.content-block p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
  font-weight: 300;
}

.content-block ul, .content-block ol {
  margin: 16px 0;
  padding-left: 24px;
}

.content-block li {
  margin-bottom: 8px;
  font-weight: 300;
  line-height: 1.7;
}

/* === CARDS === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.cards-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

.card-icon {
  margin-bottom: 16px;
  display: block;
}

.card-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--teal);
  stroke-width: 1.5;
  fill: none;
}

.card h3 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.7;
}

/* Livres */
.livre-cover {
  width: auto;
  height: 260px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}
.livre-card:hover .livre-cover {
  transform: scale(1.03);
}
.livre-amazon {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
}
.livre-card:hover .livre-amazon {
  text-decoration: underline;
}

.card-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* === SOIN CARDS === */
.soin-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.soin-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.soin-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.soin-card-header {
  padding: 24px 28px 16px;
}

.soin-card-header h3 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 4px;
}

.soin-card-subtitle {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 12px;
}

.soin-card-body {
  padding: 0 28px 20px;
}

.soin-card-body p {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.7;
}

.soin-card-footer {
  padding: 16px 28px;
  border-top: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.soin-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--teal);
  font-weight: 500;
}

.soin-duration {
  font-size: 13px;
  color: var(--text-light);
  background: var(--teal-pale);
  padding: 4px 12px;
  border-radius: 20px;
}

.soin-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.soin-cta:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
  color: white;
}

/* === FAQ ACCORDION === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--navy);
  font-weight: 500;
  transition: color 0.3s;
}

.faq-question:hover { color: var(--teal); }

.faq-question .faq-icon {
  font-size: 20px;
  color: var(--gold);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
}

/* === ENGAGEMENT BOX === */
.engagement-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
  margin: 40px 0;
}

.engagement-box h3 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 16px;
}

.engagement-box ul {
  list-style: none;
  padding: 0;
}

.engagement-box li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-weight: 300;
}

.engagement-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 600;
}

/* === MODALITES BOX === */
.modalites-box {
  background: var(--teal-pale);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  margin: 40px 0;
}

.modalites-box h3 {
  font-size: 22px;
  color: var(--teal);
  margin-bottom: 16px;
}

.modalites-box ul {
  list-style: none;
  padding: 0;
}

.modalites-box li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 15px;
  font-weight: 300;
}

.modalites-box li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* === CAL.COM PLACEHOLDER === */
.booking-placeholder {
  background: white;
  border: 2px dashed rgba(26, 93, 104, 0.2);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  margin: 40px 0;
}

.booking-placeholder h3 {
  font-size: 24px;
  color: var(--teal);
  margin-bottom: 12px;
}

.booking-placeholder p {
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 20px;
}

.booking-placeholder .phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.booking-placeholder .phone-link:hover { color: var(--gold); }

/* === PAYMENT INFO === */
.payment-info {
  background: var(--gold-pale);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin: 24px 0;
  font-size: 14px;
}

.payment-info strong { color: var(--gold); }

.bank-info {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin: 16px 0;
  font-size: 14px;
}

.bank-info h4 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}

/* === PASSERELLE (subtle link to corpoream.fr) === */
.passerelle {
  margin: 60px auto;
  max-width: 700px;
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, var(--teal-pale), var(--bg-warm));
  border-radius: var(--radius-lg);
}

.passerelle h3 {
  font-size: 22px;
  color: var(--teal);
  margin-bottom: 12px;
}

.passerelle p {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 20px;
}

.passerelle-link {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--teal);
  border-radius: 30px;
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 1px;
  transition: all 0.3s;
  text-decoration: none;
}

.passerelle-link:hover {
  background: var(--teal);
  color: white;
}

/* === CONTACT SECTION === */
.contact-section {
  text-align: center;
}

.contact-info {
  max-width: 500px;
  margin: 0 auto;
}

.contact-info p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 300;
}

.contact-info .contact-phone {
  font-size: 24px;
  color: var(--teal);
  font-weight: 600;
  margin: 16px 0;
}

.contact-info .contact-address {
  font-style: italic;
  color: var(--text-light);
}

.contact-note {
  margin-top: 20px;
  padding: 16px 24px;
  background: var(--gold-pale);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--gold);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* === FOOTER === */
.sophie-footer {
  padding: 50px 40px;
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: white;
  margin-bottom: 6px;
  letter-spacing: 3px;
}

.footer-tagline {
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: white; }

.footer-passerelle {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-passerelle a {
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: none;
}

.footer-passerelle a:hover { color: var(--gold-light); }

/* === LEGAL PAGES === */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 60vh;
}

.legal-content h1 {
  font-size: 40px;
  color: var(--teal);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 24px;
  color: var(--navy);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
  font-weight: 300;
}

/* === PROGRAMS PAGE === */
.programs-hero {
  padding-top: 120px;
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-cream), var(--sage-pale));
}

.program-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.program-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--teal-pale), var(--sage-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.program-card-body {
  padding: 24px;
}

.program-card-body h3 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 8px;
}

.program-card-body p {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.7;
}

/* === NEWSLETTER / SUBSTACK === */
.newsletter-block {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9) !important;
  font-weight: 600;
  margin-bottom: 16px;
}

.newsletter-block p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.newsletter-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.newsletter-cta:hover {
  background: #e0b85e;
  transform: translateY(-2px);
}

.newsletter-note {
  margin-top: 16px;
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.45) !important;
}

/* === FADE IN ANIMATION === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === PAYMENT SUCCESS/CANCEL === */
.payment-result {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px;
}

.payment-result-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
}

.payment-result-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.payment-result-card h2 {
  font-size: 32px;
  color: var(--teal);
  margin-bottom: 16px;
}

.payment-result-card p {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 24px;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .sophie-nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .hero { padding: 100px 24px 60px; }
  .section { padding: 60px 24px; }
  .section-header h2 { font-size: 32px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-3 { grid-template-columns: 1fr; }
  .content-block h2 { font-size: 28px; }
  .hero-secondary { margin-left: 0; margin-top: 12px; display: block; }
  .engagement-box { padding: 28px 24px; }
  .modalites-box { padding: 24px; }
  .soin-card-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .section-header h2 { font-size: 28px; }
  .faq-question { font-size: 17px; }
  .footer-links { flex-direction: column; gap: 12px; }
}


/* ============================================================
   ESPACE FORMATION — Membre area
   ============================================================ */

/* --- Login --- */
.formation-login-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.formation-login-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  max-width: 440px;
  width: 100%;
  padding: 48px 40px;
}
.formation-login-header { text-align: center; margin-bottom: 32px; }
.formation-login-header h1 { font-family: 'Cormorant Garamond', serif; font-size: 32px; color: #1A5D68; margin-bottom: 8px; }
.formation-login-header p { color: #666; font-size: 15px; }
.formation-login-form .form-group { margin-bottom: 20px; }
.formation-login-form label { display: block; font-size: 14px; font-weight: 500; color: #333; margin-bottom: 6px; }
.formation-login-form input {
  width: 100%; padding: 12px 16px;
  border: 1px solid #ddd; border-radius: 8px;
  font-size: 15px; font-family: 'Nunito', sans-serif;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.formation-login-form input:focus { border-color: #1A5D68; outline: none; box-shadow: 0 0 0 3px rgba(26,93,104,0.1); }
.formation-login-footer { text-align: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid #eee; }
.formation-login-footer p { color: #999; font-size: 14px; margin-bottom: 12px; }

/* --- Buttons --- */
.formation-btn {
  display: inline-block; padding: 12px 28px;
  border-radius: 8px; font-family: 'Nunito', sans-serif;
  font-size: 15px; font-weight: 600; text-decoration: none;
  cursor: pointer; border: none; transition: all 0.2s;
  text-align: center;
}
.formation-btn-primary { background: #1A5D68; color: white; }
.formation-btn-primary:hover { background: #155058; }
.formation-btn-outline { background: transparent; color: #1A5D68; border: 2px solid #1A5D68; padding: 10px 26px; }
.formation-btn-outline:hover { background: #1A5D68; color: white; }
.formation-btn-danger { background: #c0392b; color: white; }
.formation-btn-danger:hover { background: #a93226; }
.formation-btn-small { padding: 8px 18px; font-size: 13px; }

/* --- Alerts --- */
.formation-alert {
  padding: 12px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px;
}
.formation-alert-error { background: #fdf0f0; color: #c0392b; border: 1px solid #f5c6cb; }
.formation-alert-info { background: #eef6f7; color: #1A5D68; border: 1px solid #b8dadf; }

/* --- Hero formation --- */
.formation-hero {
  background: linear-gradient(135deg, #1A5D68 0%, #0F2B4C 100%);
  color: white; padding: 48px 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  margin-top: 64px;
}
.formation-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 400; margin-bottom: 8px; }
.formation-welcome { opacity: 0.85; font-size: 15px; margin-bottom: 12px; }
.formation-stats { display: flex; gap: 20px; }
.formation-stats span {
  background: rgba(255,255,255,0.15); padding: 6px 14px;
  border-radius: 20px; font-size: 13px;
}
.formation-hero-actions { display: flex; gap: 10px; }
.formation-hero-actions .formation-btn-small { color: white; border-color: rgba(255,255,255,0.4); }
.formation-hero-actions .formation-btn-small:hover { background: rgba(255,255,255,0.15); }

/* --- Module cards --- */
.formation-modules { max-width: 900px; margin: 32px auto; padding: 0 20px; }
.formation-module-card {
  background: white; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 16px; overflow: hidden;
}
.formation-module-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer;
  transition: background 0.2s;
}
.formation-module-header:hover { background: #f9f9f9; }
.formation-module-icon { font-size: 28px; }
.formation-module-info { flex: 1; }
.formation-module-info h2 { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: #0F2B4C; margin: 0; }
.formation-module-count { font-size: 13px; color: #999; }
.formation-module-toggle { color: #999; font-size: 14px; }
.formation-module-lessons { border-top: 1px solid #f0f0f0; }
.formation-lesson-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px 14px 64px;
  text-decoration: none; color: #333;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
}
.formation-lesson-item:hover { background: #f0f8f9; }
.formation-lesson-title { font-size: 15px; }
.formation-lesson-badge {
  background: #eef6f7; color: #1A5D68;
  padding: 3px 10px; border-radius: 12px;
  font-size: 12px; white-space: nowrap;
}

/* --- Leçon layout --- */
.formation-lecon-layout {
  display: flex; min-height: calc(100vh - 64px);
  margin-top: 64px;
}

/* Sidebar */
.formation-sidebar {
  width: 300px; min-width: 300px;
  background: #f8f9fa; border-right: 1px solid #e8e5e0;
  padding: 24px 0; overflow-y: auto;
  position: sticky; top: 64px; height: calc(100vh - 64px);
}
.formation-sidebar-back {
  display: block; padding: 8px 24px 20px;
  color: #1A5D68; text-decoration: none; font-size: 14px;
  border-bottom: 1px solid #e8e5e0; margin-bottom: 12px;
}
.formation-sidebar-back:hover { color: #155058; }
.sidebar-module { margin-bottom: 4px; }
.sidebar-module-title {
  padding: 10px 24px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #0F2B4C;
}
.sidebar-module-title:hover { background: #eee; }
.sidebar-module-active .sidebar-module-title { color: #1A5D68; }
.sidebar-lessons { display: none; list-style: none; padding: 0; margin: 0; }
.sidebar-lessons-open, .sidebar-module-open .sidebar-lessons { display: block; }
.sidebar-lessons li a {
  display: block; padding: 8px 24px 8px 40px;
  font-size: 13px; color: #555; text-decoration: none;
  border-left: 3px solid transparent;
}
.sidebar-lessons li a:hover { background: #eee; color: #1A5D68; }
.sidebar-lesson-active { background: #eef6f7 !important; color: #1A5D68 !important; border-left-color: #1A5D68 !important; font-weight: 600; }

/* Main leçon */
.formation-lecon-main {
  flex: 1; padding: 32px 48px; max-width: 860px;
}
.formation-breadcrumb {
  font-size: 13px; color: #999; margin-bottom: 24px;
}
.formation-breadcrumb a { color: #1A5D68; text-decoration: none; }
.formation-breadcrumb a:hover { text-decoration: underline; }
.formation-breadcrumb span { margin: 0 6px; }
.formation-lecon-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px; color: #0F2B4C; margin-bottom: 28px;
  font-weight: 400;
}

/* Vidéos */
.formation-videos { margin-bottom: 32px; }
.formation-video-wrapper { margin-bottom: 24px; }
.formation-video-label { font-size: 14px; color: #666; margin-bottom: 8px; font-weight: 500; }
.formation-video-embed {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 10px; background: #000;
}
.formation-video-embed iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}

/* PDFs */
.formation-pdfs { margin-bottom: 24px; }
.formation-pdf-link {
  display: inline-block; padding: 10px 18px;
  background: #f0f8f9; border: 1px solid #b8dadf;
  border-radius: 8px; color: #1A5D68;
  text-decoration: none; font-size: 14px;
  margin-right: 10px; margin-bottom: 8px;
}
.formation-pdf-link:hover { background: #e0f0f2; }

/* Contenu leçon */
.formation-lecon-content {
  font-family: 'Nunito', sans-serif;
  font-size: 16px; line-height: 1.75; color: #333;
}
.formation-lecon-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; color: #1A5D68; margin-top: 36px; margin-bottom: 16px;
}
.formation-lecon-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; color: #0F2B4C; margin-top: 28px; margin-bottom: 12px;
}
.formation-lecon-content p { margin-bottom: 16px; }
.formation-lecon-content ul, .formation-lecon-content ol { margin-bottom: 16px; padding-left: 24px; }
.formation-lecon-content li { margin-bottom: 6px; }
.formation-lecon-content strong { color: #0F2B4C; }
.formation-lecon-content blockquote {
  border-left: 4px solid #9F790B; padding: 12px 20px;
  background: #fdf8ef; margin: 20px 0; font-style: italic; color: #555;
}

/* Nav prev/next */
.formation-nav-prevnext {
  display: flex; justify-content: space-between;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid #eee; gap: 16px;
}
.formation-nav-prev, .formation-nav-next {
  font-size: 14px; color: #1A5D68; text-decoration: none;
  padding: 10px 18px; border-radius: 8px;
  background: #f0f8f9; max-width: 45%;
}
.formation-nav-prev:hover, .formation-nav-next:hover { background: #e0f0f2; }
.formation-nav-next { text-align: right; }

/* Mobile sidebar toggle */
.formation-sidebar-toggle {
  display: none; position: fixed; bottom: 20px; left: 20px;
  background: #1A5D68; color: white;
  border: none; border-radius: 24px;
  padding: 12px 20px; font-size: 14px;
  cursor: pointer; z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* --- Compte --- */
.formation-compte-section {
  min-height: 70vh; display: flex; align-items: center;
  justify-content: center; padding: 100px 20px 60px;
}
.formation-compte-card {
  background: white; border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  max-width: 560px; width: 100%; padding: 40px;
}
.formation-compte-card h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; color: #1A5D68; margin-bottom: 28px;
}
.formation-compte-info { margin-bottom: 32px; }
.formation-compte-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid #f0f0f0;
}
.formation-compte-label { font-size: 14px; color: #999; font-weight: 500; }
.formation-badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 12px; font-size: 13px; font-weight: 500;
}
.formation-badge-active { background: #d4edda; color: #155724; }
.formation-badge-warning { background: #fff3cd; color: #856404; }
.formation-badge-canceled { background: #f8d7da; color: #721c24; }
.formation-badge-manual { background: #e2e3e5; color: #383d41; }
.formation-compte-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Succès abonnement --- */
.formation-succes-section {
  min-height: 70vh; display: flex; align-items: center;
  justify-content: center; padding: 100px 20px 60px;
}
.formation-succes-card {
  background: white; border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  max-width: 560px; width: 100%; padding: 48px 40px;
  text-align: center;
}
.formation-succes-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #d4edda; color: #155724;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 24px;
}
.formation-succes-card h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; color: #1A5D68; margin-bottom: 16px;
}
.formation-succes-next {
  background: #f8f9fa; border-radius: 12px;
  padding: 24px; margin: 28px 0; text-align: left;
}
.formation-succes-next h2 { font-size: 18px; color: #0F2B4C; margin-bottom: 12px; }
.formation-succes-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Responsive formation --- */
@media (max-width: 900px) {
  .formation-sidebar { display: none; }
  .formation-sidebar-open {
    display: block !important;
    position: fixed; top: 64px; left: 0; bottom: 0;
    z-index: 99; width: 300px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }
  .formation-sidebar-toggle { display: block; }
  .formation-lecon-main { padding: 24px 20px; }
  .formation-hero { padding: 32px 20px; flex-direction: column; }
}

@media (max-width: 600px) {
  .formation-login-card { padding: 32px 24px; }
  .formation-compte-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .formation-nav-prevnext { flex-direction: column; }
  .formation-nav-prev, .formation-nav-next { max-width: 100%; }
}
