/* ====================================================
   CarliA — CSS Partagé (W2K-Digital)
   ==================================================== */
:root {
  --orange: #E8845C;
  --orange-dark: #c96a42;
  --cream: #FFF8F0;
  --brown: #3d2b1f;
  --brown-light: #7a5c50;
  --green: #4a9e7a;
  --white: #ffffff;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: Arial, sans-serif; color: var(--brown); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
section[data-autoscroll] { min-height: 100vh; }

/* ====== NAVBAR ====== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px; box-shadow: 0 2px 20px rgba(61,43,31,0.08);
}
.nav-logo { font-size: 24px; font-weight: 900; color: var(--orange); letter-spacing: -1px; font-family: Georgia, serif; }
.nav-logo span { color: var(--brown); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--brown-light); font-size: 14px; padding: 8px 14px;
  border-radius: 6px; transition: all 0.2s; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); background: rgba(232,132,92,0.08); }
.nav-cta {
  background: var(--orange) !important; color: white !important;
  padding: 10px 22px !important; border-radius: 50px !important;
  font-weight: 700 !important; font-size: 14px !important;
  transition: background 0.2s, transform 0.2s !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--orange-dark) !important; transform: translateY(-1px) !important; }
.nav-hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--brown); padding: 4px; }
.nav-mobile { display: none; position: fixed; top: 65px; left: 0; right: 0;
  background: white; border-bottom: 1px solid rgba(61,43,31,0.1);
  flex-direction: column; padding: 16px 24px; gap: 4px; z-index: 199;
  box-shadow: 0 8px 24px rgba(61,43,31,0.12);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 16px; border-radius: 8px; font-size: 15px; color: var(--brown); font-weight: 500; }
.nav-mobile a:hover { background: var(--cream); color: var(--orange); }
.nav-mobile .nav-cta { background: var(--orange) !important; color: white !important; text-align: center; margin-top: 8px; }

/* ====== BOUTONS ====== */
.btn-primary {
  display: inline-block; background: var(--orange); color: white;
  padding: 16px 34px; border-radius: 50px; font-size: 16px;
  font-weight: 700; transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(232,132,92,0.35); border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(232,132,92,0.4); }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--brown);
  padding: 15px 34px; border-radius: 50px; font-size: 16px;
  font-weight: 700; border: 2px solid var(--brown-light);
  transition: all 0.2s; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-white {
  display: inline-block; background: white; color: var(--orange);
  padding: 16px 34px; border-radius: 50px; font-size: 16px;
  font-weight: 700; transition: all 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ====== FOOTER ====== */
footer {
  background: var(--brown); color: rgba(255,255,255,0.7);
  padding: 60px 40px 30px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .f-logo { font-size: 22px; font-weight: 900; color: var(--orange); font-family: Georgia, serif; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-col h4 { color: white; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.5); margin-left: 20px; font-size: 12px; }
.footer-bottom a:hover { color: var(--orange); }

/* ====== SECTIONS COMMUNES ====== */
.section-tag {
  display: inline-block; background: rgba(232,132,92,0.12);
  color: var(--orange-dark); padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 20px;
}
.section-title { font-family: Georgia, serif; font-size: clamp(28px,4vw,44px); line-height: 1.2; color: var(--brown); margin-bottom: 20px; }
.section-title em { color: var(--orange); font-style: normal; }
.section-subtitle { font-size: 18px; color: var(--brown-light); line-height: 1.7; max-width: 600px; }

/* ====== PAGE HEADER (pages internes) ====== */
.page-header {
  min-height: 50vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 40px 60px;
  background: linear-gradient(135deg, #fff8f0 0%, #fde8d8 60%, #f8cba8 100%);
  position: relative;
}
.page-header::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,132,92,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.page-header h1 { font-family: Georgia, serif; font-size: clamp(32px,5vw,52px); color: var(--brown); margin-bottom: 20px; }
.page-header p { font-size: 18px; color: var(--brown-light); max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* ====== CTA SECTION ====== */
.cta-section {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 100px 40px; text-align: center; color: white;
}
.cta-section h2 { font-family: Georgia, serif; font-size: clamp(28px,4vw,42px); margin-bottom: 20px; }
.cta-section p { font-size: 18px; opacity: 0.9; max-width: 500px; margin: 0 auto 40px; line-height: 1.6; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ====== AUTO-SCROLL INDICATOR ====== */
.w2k-scroll-indicator {
  position: fixed; bottom: 24px; right: 24px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange); opacity: 0.7; z-index: 500;
  animation: w2k-pulse 2s infinite;
}
.w2k-scroll-indicator.paused { animation: none; opacity: 0.25; }
@keyframes w2k-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

/* ====== MODAL LÉGAL ====== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 1000;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white; border-radius: 16px; padding: 40px;
  max-width: 600px; width: 100%; max-height: 80vh; overflow-y: auto;
}
.modal-box h3 { font-family: Georgia, serif; font-size: 22px; color: var(--brown); margin-bottom: 20px; }
.modal-box p { font-size: 14px; color: var(--brown-light); line-height: 1.7; margin-bottom: 12px; }
.modal-close {
  display: block; margin: 20px auto 0; background: var(--brown);
  color: white; border: none; padding: 10px 28px; border-radius: 50px;
  cursor: pointer; font-size: 14px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .page-header { padding: 100px 24px 50px; min-height: 40vh; }
  .cta-section { padding: 70px 24px; }
  footer { padding: 50px 24px 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom a { margin-left: 0; margin-top: 4px; }
  .btn-primary, .btn-secondary, .btn-white { padding: 14px 24px; font-size: 15px; }
}

/* ── LANG SWITCHER ── */
#lang-switcher { display:flex; gap:4px; align-items:center; }
.lang-flag {
  background:none; border:none; cursor:pointer;
  font-size:1.3rem; padding:3px 5px; border-radius:6px;
  opacity:0.55; transition:opacity .2s, transform .2s;
  line-height:1;
}
.lang-flag:hover { opacity:1; transform:scale(1.15); }
.lang-flag.lang-active { opacity:1; box-shadow:0 0 0 2px var(--orange); border-radius:6px; }
@media(max-width:600px){
  .lang-flag { font-size:1.1rem; padding:2px 4px; }
}

/* ===== SECTION COMMENT ÇA MARCHE (fonctionnalité principale) ===== */
.how-it-works {
  padding: 100px 40px;
  background: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.how-it-works .section-title { color: var(--brown); }
.how-it-works .section-subtitle { color: var(--brown-light); }
.hiw-exclusive {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 64px auto 0;
  position: relative;
}
.hiw-steps::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, rgba(232,132,92,.2) 100%);
}
.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.hiw-icon {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 24px;
  border: 3px solid var(--orange);
  background: white;
  box-shadow: 0 4px 20px rgba(232,132,92,.2);
  flex-shrink: 0;
}
.hiw-step-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hiw-step h3 {
  font-family: Georgia, serif;
  font-size: 17px;
  color: var(--brown);
  margin-bottom: 10px;
  line-height: 1.4;
}
.hiw-step p {
  font-size: 13.5px;
  color: var(--brown-light);
  line-height: 1.7;
}
.hiw-consent {
  margin-top: 56px;
  background: rgba(74,158,122,.08);
  border: 1.5px solid rgba(74,158,122,.25);
  border-radius: 16px;
  padding: 20px 32px;
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hiw-consent-icon { font-size: 28px; flex-shrink: 0; }
.hiw-consent p { font-size: 13.5px; color: var(--brown-light); line-height: 1.6; text-align: left; margin: 0; }
.hiw-consent strong { color: var(--green); }
@media(max-width:900px){
  .hiw-steps { grid-template-columns: repeat(2,1fr); gap: 48px; }
  .hiw-steps::before { display: none; }
}
@media(max-width:480px){
  .hiw-steps { grid-template-columns: 1fr; }
}

/* ===== SECTION PILIERS ===== */
.pillars { background: #1a0a00; padding: 80px 20px; text-align: center; }
.pillars-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 900px; margin: 48px auto 0; }
.pillar-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(210,105,30,0.25); border-radius: 16px; padding: 36px 28px; text-align: center; transition: transform .25s, border-color .25s; }
.pillar-card:hover { transform: translateY(-4px); border-color: rgba(210,105,30,0.6); }
.pillar-icon { font-size: 2.4rem; margin-bottom: 16px; }
.pillar-card h3 { color: #f0a050; font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.pillar-card p { color: #c8a882; font-size: 0.92rem; line-height: 1.6; margin: 0; }
@media (max-width: 600px) { .pillars-grid { grid-template-columns: 1fr; } }
