/* Polices hebergees sur le site (licence OFL), pas de Google Fonts. */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-weight: 400; font-display: swap; src: url('/assets/fonts/dm-serif-display-latin-400-normal.woff2') format('woff2'); }

:root {
  --navy: #1a3a5c;
  --navy-deep: #0f2440;
  --navy-light: #2a5a8c;
  --blue-accent: #3b82f6;
  --blue-soft: #dbeafe;
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --green: #16a34a;
  --green-light: #dcfce7;
  --orange: #d97706;
  --orange-light: #fef3c7;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 24px rgba(15, 36, 64, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 36, 64, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--gray-800);
  background: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ NAV ============ */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { height: 36px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--gray-600);
  font-weight: 500; font-size: 0.95rem; transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative;
}
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--navy);
  position: absolute; left: 0; transition: 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 50px; font-weight: 600;
  font-size: 0.95rem; text-decoration: none; transition: all 0.3s ease;
  cursor: pointer; border: none; font-family: inherit;
}
.btn-primary {
  background: var(--navy); color: var(--white);
  box-shadow: 0 4px 16px rgba(26, 58, 92, 0.25);
}
.btn-primary:hover {
  background: var(--navy-deep); transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 58, 92, 0.35);
}
.btn-outline {
  background: transparent; color: var(--navy); border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white {
  background: var(--white); color: var(--navy);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.15); }
.btn-teal {
  background: var(--teal); color: var(--white);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}
.btn-teal:hover {
  background: #0f766e; transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.4);
}

/* ============ HERO ============ */
.hero {
  padding: 140px 32px 60px; max-width: 900px; margin: 0 auto; text-align: center;
}
.hero-logo { max-width: 340px; height: auto; margin-bottom: 28px; animation: fadeUp 0.6s ease-out; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-light); color: var(--teal);
  padding: 8px 16px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
  animation: fadeUp 0.6s ease-out 0.1s both;
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px; background: var(--teal);
  border-radius: 50%; animation: pulse 2s infinite;
}

h1 {
  font-family: 'DM Serif Display', serif; font-size: 3.2rem;
  line-height: 1.1; color: var(--navy-deep); margin-bottom: 20px;
  animation: fadeUp 0.6s ease-out 0.2s both;
}
h1 span {
  background: linear-gradient(135deg, var(--blue-accent), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-desc {
  font-size: 1.1rem; line-height: 1.7; color: var(--gray-600);
  margin-bottom: 32px; max-width: 640px; margin-left: auto; margin-right: auto;
  animation: fadeUp 0.6s ease-out 0.3s both;
}

/* ============ VIDEO ============ */
.video-section {
  max-width: 900px; margin: 0 auto 80px; padding: 0 32px;
  animation: fadeUp 0.6s ease-out 0.4s both;
}
.video-wrapper {
  position: relative; padding-bottom: 56.25%; /* 16:9 */
  background: var(--navy-deep); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.video-wrapper iframe, .video-wrapper video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: none;
}
.video-placeholder {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--white); gap: 16px;
}
.play-btn {
  width: 80px; height: 80px; background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; cursor: pointer; transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.play-btn:hover {
  background: rgba(255,255,255,0.25); border-color: var(--white);
  transform: scale(1.1);
}
.video-placeholder p { font-size: 0.95rem; opacity: 0.7; }

/* ============ SECTION COMMON ============ */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--blue-accent); margin-bottom: 16px;
}
h2 {
  font-family: 'DM Serif Display', serif; font-size: 2.5rem;
  color: var(--navy-deep); margin-bottom: 16px; line-height: 1.2;
}
.section-desc {
  font-size: 1.05rem; color: var(--gray-600); line-height: 1.7;
  max-width: 640px; margin-bottom: 48px;
}

/* ============ PROBLEMS ============ */
.problems { padding: 80px 32px; max-width: 1200px; margin: 0 auto; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem-card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--gray-200); transition: all 0.3s;
  position: relative; overflow: hidden;
}
.problem-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #ef4444, #f97316);
  transform: scaleX(0); transition: transform 0.3s;
}
.problem-card:hover::before { transform: scaleX(1); }
.problem-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.problem-icon { font-size: 2rem; margin-bottom: 16px; }
.problem-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.problem-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }

/* ============ FEATURES ============ */
.features { padding: 100px 32px; max-width: 1200px; margin: 0 auto; }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; margin-bottom: 100px;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-visual {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius); padding: 40px; min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.feature-visual-content {
  position: relative; z-index: 1; color: var(--white); text-align: center;
}
.feature-emoji { font-size: 4rem; margin-bottom: 16px; }
.feature-visual-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.feature-vis-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.feature-vis-stat {
  background: rgba(255,255,255,0.12); border-radius: 12px; padding: 16px;
}
.feature-vis-stat-val { font-size: 1.6rem; font-weight: 800; }
.feature-vis-stat-label { font-size: 0.7rem; opacity: 0.7; margin-top: 2px; }
.feature-content h3 {
  font-family: 'DM Serif Display', serif; font-size: 2rem;
  color: var(--navy-deep); margin-bottom: 16px; line-height: 1.2;
}
.feature-content p {
  font-size: 1rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 24px;
}
.feature-checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.95rem; color: var(--gray-600);
}
.check-icon {
  width: 22px; height: 22px; background: var(--teal-light);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.check-icon svg { width: 12px; height: 12px; stroke: var(--teal); }

/* ============ SIMULATOR ============ */
.simulator-section {
  padding: 80px 32px; background: linear-gradient(180deg, var(--off-white), var(--gray-100));
}
.simulator-inner { max-width: 900px; margin: 0 auto; }
.simulator-inner .section-label { text-align: center; display: block; }
.simulator-inner h2 { text-align: center; }
.simulator-inner .section-desc { text-align: center; margin-left: auto; margin-right: auto; }

.sim-card {
  background: var(--white); border-radius: var(--radius); padding: 40px;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-card);
}

.sim-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start;
}

.sim-options { display: flex; flex-direction: column; gap: 24px; }

.sim-group { margin-bottom: 0; }
.sim-group label {
  display: block; font-weight: 700; font-size: 0.9rem;
  color: var(--navy); margin-bottom: 10px;
}
.sim-group .sublabel {
  font-weight: 400; font-size: 0.8rem; color: var(--gray-400);
  display: block; margin-top: 2px;
}

/* Stepper */
.stepper {
  display: flex; align-items: center; gap: 16px;
}
.stepper button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--gray-200); background: var(--white);
  font-size: 1.2rem; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--navy);
}
.stepper button:hover { border-color: var(--navy); background: var(--gray-100); }
.stepper .stepper-value {
  font-size: 1.5rem; font-weight: 800; color: var(--navy-deep);
  min-width: 40px; text-align: center;
}

/* Toggle */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--gray-100); border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.2s;
}
.toggle-row:hover { background: var(--gray-200); }
.toggle-row .toggle-label { font-size: 0.9rem; font-weight: 600; color: var(--gray-800); }
.toggle-row .toggle-price { font-size: 0.8rem; color: var(--teal); font-weight: 600; }

.toggle {
  width: 48px; height: 26px; background: var(--gray-200);
  border-radius: 13px; position: relative; transition: background 0.3s;
  flex-shrink: 0; margin-left: 12px;
}
.toggle.active { background: var(--teal); }
.toggle::after {
  content: ''; position: absolute; width: 22px; height: 22px;
  background: var(--white); border-radius: 50%; top: 2px; left: 2px;
  transition: transform 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle.active::after { transform: translateX(22px); }

/* Billing toggle */
.billing-toggle {
  display: flex; justify-content: center; gap: 12px; align-items: center;
  margin-bottom: 32px;
}
.billing-toggle span {
  font-size: 0.9rem; font-weight: 500; color: var(--gray-400);
  cursor: pointer; transition: color 0.2s;
}
.billing-toggle span.active { color: var(--navy-deep); font-weight: 700; }
.billing-badge {
  background: var(--green-light); color: var(--green);
  font-size: 0.7rem; font-weight: 700; padding: 3px 10px;
  border-radius: 50px;
}

/* Quote display */
.sim-quote {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border-radius: var(--radius); padding: 32px; color: var(--white);
  position: sticky; top: 100px;
}
.sim-quote h3 {
  font-size: 1rem; font-weight: 600; opacity: 0.7; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.quote-price {
  font-size: 3rem; font-weight: 800; margin-bottom: 4px;
  line-height: 1;
}
.quote-price .period { font-size: 1rem; font-weight: 500; opacity: 0.6; }
.quote-annual {
  font-size: 0.85rem; opacity: 0.5; margin-bottom: 24px;
}
.quote-line {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}
.quote-line:last-of-type { border-bottom: none; }
.quote-line .ql-label { opacity: 0.7; }
.quote-line .ql-value { font-weight: 700; }
.quote-line .ql-value.discount { color: #4ade80; }
.quote-divider {
  height: 1px; background: rgba(255,255,255,0.2); margin: 16px 0;
}
.quote-total {
  display: flex; justify-content: space-between; font-size: 1.1rem;
  font-weight: 700; padding: 12px 0 0;
}
.quote-cta {
  margin-top: 24px;
}
.quote-cta .btn { width: 100%; padding: 14px; font-size: 1rem; }

/* Callback form */
.callback-form { display: none; margin-top: 20px; }
.callback-form.visible { display: block; }
.callback-form input {
  width: 100%; padding: 12px 16px; border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.9rem;
  background: rgba(255,255,255,0.1); color: var(--white);
  margin-bottom: 10px; transition: border-color 0.2s;
}
.callback-form input::placeholder { color: rgba(255,255,255,0.4); }
.callback-form input:focus {
  outline: none; border-color: var(--teal);
  background: rgba(255,255,255,0.15);
}
.callback-success {
  display: none; text-align: center; padding: 16px;
  background: rgba(74, 222, 128, 0.15); border-radius: var(--radius-sm);
  margin-top: 16px; font-size: 0.9rem;
}
.callback-success.visible { display: block; }

/* ============ FOOTER ============ */
footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.6); padding: 48px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { height: 28px; filter: brightness(10); }
footer p { font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 0.85rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero { padding: 120px 24px 40px; }
  .hero-logo { max-width: 260px; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
  .problem-grid { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr; gap: 40px; direction: ltr;
  }
  .sim-row { grid-template-columns: 1fr; }
  .sim-quote { position: static; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0; background: var(--white);
    padding: 24px; gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .sim-card { padding: 24px; }
}

/* Anciens styles en ligne (interdits par la politique de securite). */
.section-desc.marge-features { margin-bottom: 64px; }
.feature-visual.fond-teal { background: linear-gradient(135deg, var(--teal), #0f766e); }
.feature-visual.fond-violet { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.btn.btn-pleine { width: 100%; margin-top: 4px; }
.cache { display: none !important; }
.callback-erreur { color: #b91c1c; font-size: 0.85rem; margin-top: 8px; min-height: 1.2em; }

/* Section « Etre recontacte » (masquee pour l'instant). */
.contact-section { padding: 80px 32px; }
.contact-inner {
  max-width: 520px; margin: 0 auto; padding: 40px 32px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border-radius: var(--radius); color: var(--white); text-align: center;
}
.contact-inner h2 { color: var(--white); }
.contact-inner .callback-erreur { color: #fecaca; }
