/* ============================================================
   CalcAutoEntrepreneur.fr — Design System
   Palette: Bleu #2563EB | Vert #10B981 | Ambre #F59E0B
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@700;800&display=swap');

/* ---- Reset & Variables ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --primary-border: #BFDBFE;
  --secondary: #10B981;
  --secondary-light: #ECFDF5;
  --accent: #F59E0B;
  --accent-light: #FFFBEB;
  --danger: #EF4444;
  --danger-light: #FEF2F2;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --border-focus: #93C5FD;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-blue: 0 4px 20px rgba(37,99,235,0.20);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-main: 'Inter', system-ui, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-muted); line-height: 1.7; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
strong { color: var(--text); font-weight: 600; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Header / Navbar ---- */
.navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { color: white; }
.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: var(--radius-sm) !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); box-shadow: var(--shadow-blue); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 50%, #FFFBEB 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,0.07) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--secondary); border-radius: 50%; animation: pulse 2s infinite; }
.hero h1 { margin-bottom: 1.1rem; letter-spacing: -0.02em; }
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.1rem; max-width: 580px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--primary); font-family: var(--font-heading); }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--primary-dark); color: white; box-shadow: 0 6px 24px rgba(37,99,235,0.35); }
.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--primary-border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-success { background: var(--secondary); color: white; }
.btn-success:hover { background: #059669; color: white; box-shadow: 0 4px 16px rgba(16,185,129,0.3); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: 0.6rem; border-radius: var(--radius-sm); }

/* ---- Cards ---- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-focus); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg); }

.tool-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7C3AED);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tool-card:hover::before { transform: scaleX(1); }
.tool-card:hover { box-shadow: var(--shadow-lg); border-color: var(--border-focus); transform: translateY(-3px); }
.tool-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: var(--transition);
}
.tool-card:hover .tool-card-icon { transform: scale(1.1); }
.tool-card h3 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--text); }
.tool-card p { font-size: 0.85rem; margin-bottom: 1rem; }
.tool-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.tool-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--accent-light);
  color: #92400E;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  border: 1px solid #FDE68A;
}

/* ---- Sections ---- */
section { padding: 4rem 0; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.section-title { margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1.05rem; max-width: 560px; }
.section-header { margin-bottom: 2.5rem; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ---- Tools Grid ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.tools-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

/* ---- Feature Strip ---- */
.feature-strip {
  background: linear-gradient(135deg, var(--primary), #1E40AF);
  padding: 2.5rem 0;
  color: white;
}
.feature-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.feature-item svg { color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.feature-item strong { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.feature-item span { font-size: 0.82rem; color: rgba(255,255,255,0.75); }

/* ---- Calculator Layout ---- */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) { .calc-layout { grid-template-columns: 1fr; } }

.calc-panel {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.calc-panel-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary-light), white);
}
.calc-panel-header h2 { font-size: 1.15rem; color: var(--text); }
.calc-panel-body { padding: 1.75rem; }

.result-panel {
  background: white;
  border-radius: var(--radius-xl);
  border: 2px solid var(--primary-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.result-panel.visible { opacity: 1; transform: translateY(0); }
.result-panel-header {
  padding: 1.25rem 1.75rem;
  background: linear-gradient(135deg, var(--primary), #1D4ED8);
  color: white;
}
.result-panel-header h3 { color: white; font-size: 1rem; }
.result-panel-body { padding: 1.75rem; }

/* ---- Form Elements ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.form-label .tooltip-icon { color: var(--text-light); cursor: help; }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-control::placeholder { color: var(--text-light); }

.form-control-lg { padding: 0.9rem 1.1rem; font-size: 1.05rem; font-weight: 600; }
.input-prefix {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  transition: var(--transition);
}
.input-prefix:focus-within {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.input-prefix-symbol {
  padding: 0 0.9rem;
  background: var(--border);
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  font-size: 1rem;
  border-right: 1.5px solid var(--border);
}
.input-prefix input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.75rem 0.9rem;
}
.input-prefix input:focus { outline: none; }

.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem; cursor: pointer; }

.form-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
}
.form-check:hover { border-color: var(--primary); background: var(--primary-light); }
.form-check.checked { border-color: var(--primary); background: var(--primary-light); }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.form-check-label { font-size: 0.9rem; font-weight: 500; cursor: pointer; color: var(--text); }

.radio-group { display: flex; flex-direction: column; gap: 0.6rem; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
}
.radio-option:hover { border-color: var(--primary-border); background: var(--primary-light); }
.radio-option.selected { border-color: var(--primary); background: var(--primary-light); }
.radio-option input { accent-color: var(--primary); cursor: pointer; width: 16px; height: 16px; }
.radio-option-label { font-size: 0.9rem; font-weight: 500; color: var(--text); flex: 1; }
.radio-option-rate { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; background: var(--border); padding: 0.15rem 0.5rem; border-radius: 100px; }

/* ---- Result Components ---- */
.result-big {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}
.result-big.green { background: var(--secondary-light); border: 1px solid #A7F3D0; }
.result-big.blue { background: var(--primary-light); border: 1px solid var(--primary-border); }
.result-big.amber { background: var(--accent-light); border: 1px solid #FDE68A; }
.result-big.red { background: var(--danger-light); border: 1px solid #FECACA; }
.result-big-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.result-big.green .result-big-label { color: #065F46; }
.result-big.blue .result-big-label { color: var(--primary-dark); }
.result-big.amber .result-big-label { color: #92400E; }
.result-big.red .result-big-label { color: #991B1B; }
.result-big-value { font-size: 2rem; font-weight: 800; font-family: var(--font-heading); line-height: 1; }
.result-big.green .result-big-value { color: #065F46; }
.result-big.blue .result-big-value { color: var(--primary); }
.result-big.amber .result-big-value { color: #92400E; }
.result-big.red .result-big-value { color: #991B1B; }
.result-big-sub { font-size: 0.78rem; color: var(--text-muted); }

.result-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.result-table tr { border-bottom: 1px solid var(--border); }
.result-table tr:last-child { border-bottom: none; }
.result-table td { padding: 0.65rem 0.25rem; font-size: 0.875rem; }
.result-table td:last-child { text-align: right; font-weight: 700; color: var(--text); font-family: var(--font-heading); }
.result-table .total-row td { font-weight: 700; color: var(--primary); padding-top: 0.85rem; font-size: 1rem; }
.result-table .total-row { border-top: 2px solid var(--primary-border); }

/* ---- Progress Bar (Plafond) ---- */
.progress-wrap { margin: 1.5rem 0; }
.progress-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.progress-pct { font-size: 1.1rem; font-weight: 800; color: var(--text); font-family: var(--font-heading); }
.progress-track {
  height: 20px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}
.progress-bar {
  height: 100%;
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--secondary), #34D399);
  position: relative;
}
.progress-bar.warn { background: linear-gradient(90deg, var(--accent), #FBBF24); }
.progress-bar.danger { background: linear-gradient(90deg, var(--danger), #F87171); animation: flashRed 1.5s infinite; }
.progress-bar::after {
  content: '';
  position: absolute;
  top: 3px; left: 8px; right: 8px;
  height: 7px;
  background: rgba(255,255,255,0.35);
  border-radius: 100px;
}
.progress-markers { display: flex; justify-content: space-between; margin-top: 0.35rem; }
.progress-marker { font-size: 0.7rem; color: var(--text-light); }

/* ---- Pie Chart ---- */
.pie-wrap { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin: 1rem 0; }
.pie-chart { min-width: 120px; }
.pie-legend { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.pie-legend-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; }
.pie-legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.pie-legend-pct { margin-left: auto; font-weight: 700; color: var(--text); }

/* ---- Alert / Notice ---- */
.alert {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin: 1rem 0;
}
.alert-icon { flex-shrink: 0; margin-top: 1px; }
.alert-info { background: var(--primary-light); border: 1px solid var(--primary-border); color: var(--primary-dark); }
.alert-success { background: var(--secondary-light); border: 1px solid #A7F3D0; color: #065F46; }
.alert-warning { background: var(--accent-light); border: 1px solid #FDE68A; color: #92400E; }
.alert-danger { background: var(--danger-light); border: 1px solid #FECACA; color: #991B1B; }

/* ---- Tooltip ---- */
.tooltip-wrap { position: relative; display: inline-block; }
.tooltip-content {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  font-size: 0.78rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 50;
  max-width: 220px;
  white-space: normal;
  text-align: center;
}
.tooltip-wrap:hover .tooltip-content { opacity: 1; }

/* ---- Action Row (Copy, Reset, Share) ---- */
.action-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ---- Disclaimer ---- */
.disclaimer {
  font-size: 0.78rem;
  color: var(--text-light);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* ---- SEO Content Section ---- */
.seo-content {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}
.seo-content h2 { margin-bottom: 0.75rem; font-size: 1.3rem; }
.seo-content p { margin-bottom: 1rem; }
.seo-content ul { padding-left: 1.25rem; color: var(--text-muted); }
.seo-content ul li { margin-bottom: 0.4rem; }

/* ---- FAQ ---- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary-border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  transition: var(--transition);
  gap: 1rem;
}
.faq-q:hover { background: var(--bg); color: var(--primary); }
.faq-q svg { flex-shrink: 0; transition: transform 0.25s ease; color: var(--text-muted); }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--primary); }
.faq-item.open .faq-q { color: var(--primary); background: var(--primary-light); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
  padding: 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  background: var(--bg);
}
.faq-item.open .faq-a { max-height: 400px; padding: 1rem 1.25rem 1.25rem; }

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.testimonial-stars { color: var(--accent); margin-bottom: 0.85rem; letter-spacing: 2px; font-size: 1rem; }
.testimonial-text { font-size: 0.9rem; margin-bottom: 1.1rem; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: white;
}
.testimonial-name { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

/* ---- Ad Placeholder ---- */
.ad-zone {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-light);
  font-size: 0.75rem;
  padding: 1rem;
  margin: 1.5rem 0;
}
.ad-zone-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem; display: block; }

/* ---- Page Header (Tool Pages) ---- */
.page-header {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}
.page-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.breadcrumb-sep { color: var(--border); }
.page-header h1 { margin-bottom: 0.75rem; }
.page-header p { font-size: 1rem; max-width: 680px; }
.page-header-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.65rem; border-radius: 100px;
}
.badge-blue { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border); }
.badge-green { background: var(--secondary-light); color: #065F46; border: 1px solid #A7F3D0; }
.badge-amber { background: var(--accent-light); color: #92400E; border: 1px solid #FDE68A; }

/* ---- Footer ---- */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1rem; color: white; margin-bottom: 0.75rem;
}
.footer-desc { font-size: 0.85rem; line-height: 1.6; max-width: 260px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.9); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom p { font-size: 0.8rem; }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: white; }

/* ---- Animations ---- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}
@keyframes flashRed {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.animate-fadeInUp { animation: fadeInUp 0.5s ease forwards; }
.animate-scaleIn { animation: scaleIn 0.35s ease forwards; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.78rem; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ---- Copy feedback ---- */
.copy-feedback {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; font-weight: 600; color: var(--secondary);
  animation: fadeInUp 0.2s ease;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .calc-layout { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .pie-wrap { flex-direction: column; align-items: flex-start; }
}

/* ---- Cookie Banner RGPD ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1E293B;
  color: #F1F5F9;
  z-index: 9999;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  flex-wrap: wrap;
  border-top: 3px solid var(--primary);
  animation: fadeInUp 0.4s ease;
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 900px;
  width: 100%;
  flex-wrap: wrap;
}
.cookie-inner p {
  margin: 0;
  font-size: 0.875rem;
  flex: 1;
  min-width: 200px;
  color: #CBD5E1;
  line-height: 1.5;
}
.cookie-inner a { color: #93C5FD; text-decoration: underline; }
.cookie-inner a:hover { color: white; }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
