@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@700&display=swap');

:root {
  --navy: #1e293b;
  --blue: #2563eb;
  --blue-light: #1d4ed8;
  --blue-dark: #1e40af;
  --blue-glow: rgba(37, 99, 235, 0.15);
  --white: #ffffff;
  --gray-50: #eef3fb;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --gradient: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--blue);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Comfortaa', cursive;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.01em;
}

.nav-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-logo .wordmark { line-height: 1; }
.nav-logo .f { color: #5AB4E8; }
.nav-logo .c { color: #1A6EA8; }

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

.nav-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gray-900);
  background: var(--gray-50);
}

.nav-links a.active {
  color: var(--blue);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.75rem;
  opacity: 0.6;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.75rem 0.5rem 0.5rem;
  min-width: 200px;
  display: none;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.dropdown-menu a:hover { color: var(--gray-900); background: var(--gray-50); }

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px !important;
}

.nav-cta:hover { background: var(--blue-dark) !important; }

/* Hamburger */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

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

.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: 0.25rem;
}

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

.nav-mobile a {
  color: var(--gray-400);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.nav-mobile a:hover, .nav-mobile a.active { color: var(--gray-900); background: var(--gray-50); }
.nav-mobile a.active { color: var(--blue); }
.nav-mobile .mobile-section {
  color: var(--gray-400);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem 0.25rem;
  margin-top: 0.5rem;
}

/* ── HERO ── */
.hero {
  background: var(--gradient);
  padding: 9rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(59,130,246,0.05) 0%, transparent 50%);
}

.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.25);
  color: var(--blue);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray-400);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(37,99,235,0.25);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(37,99,235,0.35);
}

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--blue);
  color: var(--blue);
}

.btn-ghost {
  background: var(--gray-50);
  color: var(--gray-900);
  border: 1px solid var(--card-border);
}

.btn-ghost:hover { background: var(--gray-100); }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 1.5rem;
}

.section-sm { padding: 3rem 1.5rem; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--blue-dark);
}

.section-subtitle {
  color: var(--gray-400);
  font-size: 1.05rem;
  max-width: 580px;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-subtitle {
  margin: 0 auto;
}

/* ── GRID ── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-top: 3px solid #3b82f6;
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card:hover {
  border: 1px solid rgba(37,99,235,0.35);
  border-top: 3px solid var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.1);
}

.card.card-green { border-top-color: #10b981; }
.card.card-green:hover { border-top-color: #059669; }
.card.card-orange { border-top-color: #f59e0b; }
.card.card-orange:hover { border-top-color: #d97706; }

.card-icon {
  width: 48px;
  height: 48px;
  background: #dbeafe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--gray-900); }
.card p { color: var(--gray-400); font-size: 0.9rem; }

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.card-link > .card {
  flex: 1;
}

/* ── TAGS / BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-orange { background: #fef3c7; color: #b45309; }
.badge-red { background: #fee2e2; color: #b91c1c; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--card-border); }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

thead th {
  background: var(--gray-50);
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

tbody td {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.9rem;
  color: var(--gray-700);
}

tbody tr:hover { background: var(--gray-50); }

.check { color: #16a34a; }
.cross { color: #dc2626; }
.neutral { color: var(--gray-400); }

/* ── STEPS ── */
.steps { display: flex; flex-direction: column; gap: 1.5rem; }

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  margin-top: 0.1rem;
}

.step-content h3 { font-size: 1rem; margin: 0 0 0.35rem; color: var(--gray-900); }
.step-content p { color: var(--gray-400); font-size: 0.9rem; }

/* ── ACCORDION / FAQ ── */
.faq-item {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  color: var(--gray-900);
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--gray-50); }

.faq-question .faq-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #dbeafe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--blue);
  transition: transform 0.3s;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  border-top: 1px solid var(--card-border);
  color: var(--gray-700);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer { display: block; }

/* ── CALCULATOR ── */
.calc-box {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 750px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.form-group label span {
  color: var(--gray-400);
  font-weight: 400;
  font-size: 0.82rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

input[type="number"],
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--gray-900);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

select option { background: var(--white); color: var(--gray-900); }

textarea { resize: vertical; min-height: 120px; }

.range-group { display: flex; align-items: center; gap: 1rem; }
input[type="range"] {
  flex: 1;
  padding: 0;
  height: 6px;
  border-radius: 3px;
  accent-color: var(--blue);
  background: var(--gray-200);
}

.range-value {
  min-width: 60px;
  text-align: right;
  font-weight: 700;
  color: var(--blue);
}

.result-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  display: none;
}

.result-box.show { display: block; }

.result-main {
  text-align: center;
  margin-bottom: 1.5rem;
}

.result-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue);
}

.result-label {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.result-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--card-border);
  padding-top: 1.5rem;
}

.result-item { text-align: center; }
.result-item .val { font-size: 1.3rem; font-weight: 700; color: var(--gray-900); }
.result-item .lbl { font-size: 0.8rem; color: var(--gray-400); margin-top: 0.2rem; }

/* ── ALERT ── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* ── PAGE HERO (non-index) ── */
.page-hero {
  background: var(--gradient);
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.06) 0%, transparent 60%);
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.page-hero p {
  color: var(--gray-400);
  font-size: 1.05rem;
  max-width: 600px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.breadcrumb a { color: var(--gray-400); text-decoration: none; }
.breadcrumb a:hover { color: var(--gray-900); }
.breadcrumb span { color: var(--blue); }

/* ── PROSE ── */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; color: var(--gray-900); }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; color: var(--blue); }
.prose p { color: var(--gray-700); margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--gray-700); }
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--gray-900); }
.prose a { color: var(--blue); }
.prose code {
  background: #eff6ff;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--blue);
}

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box h4 { margin-bottom: 0.5rem; color: var(--blue); }
.highlight-box p { color: var(--gray-700); font-size: 0.9rem; margin: 0; }

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h2 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--gray-900); }
.contact-info p { color: var(--gray-400); margin-bottom: 2rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 3.5rem 1.5rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin: 0.75rem 0 1.5rem;
  max-width: 260px;
}

.footer-logo {
  font-family: 'Comfortaa', cursive;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo .f { color: #7DCEF5; }
.footer-logo .c { color: #5AB4E8; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ── UTILITIES ── */
.text-blue { color: var(--blue); }
.text-muted { color: var(--gray-400); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.divider { border: none; border-top: 1px solid var(--card-border); margin: 2rem 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 8rem 1.25rem 4rem; }
  .section { padding: 3.5rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .calc-box { padding: 1.5rem; }
  .result-value { font-size: 2.25rem; }
}

/* ── OPTION A — Accent visuel ── */

/* Bordure bleue gauche sur les cartes cliquables */
.card-link > .card {
  border-left: 3px solid var(--blue) !important;
}

/* Underline bleu sous les titres de section centrés */
.section-header.center .section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin: 0.5rem auto 0;
}

/* Stat cards (homepage) */
.stat-card {
  background: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.18),
    0 2px 6px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.stat-card-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.stat-card-label {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: 0.35rem;
}
