/* ==========================================================================
   Calculatrice Mauricette — Feuille de style principale
   Palette : fond #F0F4F8 · texte noir · boutons bleus
   ========================================================================== */

:root {
  /* Couleurs demandées */
  --bg: #F0F4F8;
  --text: #0A0A0A;
  --text-muted: #52606D;

  /* Bleu du site (boutons, liens, accents) */
  --blue-900: #123B8C;
  --blue-700: #1E52C7;
  --blue-600: #2F6FED;
  --blue-500: #4C86F5;
  --blue-100: #DCE7FC;
  --blue-50:  #EEF3FE;

  /* Neutres */
  --white: #FFFFFF;
  --line: #D7E0EA;
  --line-soft: #E4EAF1;
  --shadow-sm: 0 1px 2px rgba(18, 40, 79, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 40, 79, 0.08);
  --shadow-lg: 0 20px 48px rgba(18, 40, 79, 0.14);

  /* Statuts */
  --ok: #1E8E5A;
  --ok-bg: #E6F6EE;
  --warn: #B4590E;
  --warn-bg: #FCEEDD;

  /* Typo */
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rayons / rythme */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); }

p { color: var(--text); }
.muted { color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-700);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}

.section {
  padding-block: clamp(40px, 7vw, 76px);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.section-head.center { margin-inline: auto; text-align: center; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-600);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-700); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: var(--white);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-700); }

.btn-soft {
  background: var(--blue-50);
  color: var(--blue-700);
  border-color: var(--blue-100);
}
.btn-soft:hover { background: var(--blue-100); }

.btn-sm { padding: 8px 14px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-icon {
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { border-color: var(--blue-500); color: var(--blue-700); }

/* ==========================================================================
   HEADER — logo centré + navigation
   ========================================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  padding-block: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 42px; height: 42px;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand-text span { color: var(--blue-600); }

.main-nav {
  width: 100%;
  display: flex;
  justify-content: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  padding-block: 6px;
}
.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: var(--blue-50);
  color: var(--blue-700);
}

.nav-toggle {
  display: none;
  position: absolute;
  right: var(--gutter);
  top: 16px;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .header-inner { position: relative; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    max-height: 0;
    overflow: hidden;
  }
  .main-nav.is-open {
    display: flex;
    max-height: 400px;
  }
  .nav-list { flex-direction: column; width: 100%; align-items: stretch; }
  .nav-list a { text-align: center; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding-block: clamp(28px, 6vw, 56px) 8px;
  text-align: center;
}
.hero .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.badge svg { width: 14px; height: 14px; color: var(--ok); flex-shrink: 0; }

.hero h1 {
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.1rem);
  max-width: 820px;
  margin-inline: auto;
}
.hero h1 em { font-style: normal; color: var(--blue-600); }
.hero-sub {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   OUTIL — carte calculatrice
   ========================================================================== */
.tool-section { padding-top: clamp(20px, 4vw, 36px); }

.calc-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calc-tabs {
  display: flex;
  background: var(--blue-50);
  border-bottom: 1px solid var(--line-soft);
}
.calc-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.calc-tab:hover { color: var(--blue-700); }
.calc-tab.active {
  color: var(--blue-700);
  background: var(--white);
  border-bottom-color: var(--blue-600);
}

.calc-body { padding: clamp(16px, 4vw, 30px); }
.calc-panel { display: none; }
.calc-panel.active { display: block; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.calc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  align-items: center;
}
.calc-toolbar .spacer { flex: 1; }

/* --- Gauge 35h (élément signature) --- */
.gauge-wrap {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.gauge-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.gauge-label { font-weight: 700; font-size: 0.85rem; color: var(--blue-900); }
.gauge-value { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--blue-700); }
.gauge-track {
  position: relative;
  height: 12px;
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.gauge-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-600));
  border-radius: var(--radius-pill);
  transition: width 0.35s ease, background 0.35s ease;
}
.gauge-fill.over { background: linear-gradient(90deg, #E08A2E, #C96A15); }
.gauge-mark {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--blue-900);
  opacity: 0.35;
}
.gauge-note { margin-top: 8px; font-size: 0.82rem; color: var(--text-muted); }
.gauge-note strong { color: var(--blue-900); }

/* --- Day card (used in daily + weekly) --- */
.day-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--white);
}
.day-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--blue-50);
  cursor: pointer;
}
.day-card-head-left { display: flex; align-items: center; gap: 10px; }
.day-card-head input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue-600); }
.day-name { font-weight: 700; font-size: 0.95rem; }
.day-card-head-right { display: flex; align-items: center; gap: 10px; }
.day-total-pill {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--blue-700);
  background: var(--white);
  border: 1px solid var(--blue-100);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  min-width: 68px;
  text-align: center;
}
.day-caret { transition: transform 0.2s ease; color: var(--text-muted); }
.day-card.collapsed .day-caret { transform: rotate(-90deg); }
.day-card-body {
  padding: 14px;
  border-top: 1px solid var(--line-soft);
}
.day-card.collapsed .day-card-body { display: none; }
.day-card.day-off .day-card-body { opacity: 0.55; }

.rows-table { width: 100%; border-collapse: collapse; }
.rows-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
  text-align: center;
  padding: 6px 4px;
}
.rows-table td { padding: 5px 4px; text-align: center; vertical-align: middle; }
.rows-table input[type="time"],
.rows-table input[type="number"].n-input {
  width: 100%;
  padding: 8px 6px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  text-align: center;
  font-size: 0.86rem;
}
.rows-table input[type="time"]:focus,
.rows-table input[type="number"].n-input:focus {
  border-color: var(--blue-500);
  background: var(--white);
}
.row-duration { font-weight: 800; color: var(--blue-700); font-size: 0.88rem; white-space: nowrap; }
.row-remove {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--text-muted);
  font-weight: 700;
}
.row-remove:hover { color: #C0392B; border-color: #C0392B; background: #FDECEA; }

.day-add-row {
  margin-top: 8px;
}

.pause-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.pause-row-label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); }
.pause-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pause-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}
.pause-pill.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.pause-custom {
  width: 90px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  text-align: center;
  font-size: 0.8rem;
}

/* --- Total box --- */
.total-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--blue-900);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 18px;
}
.total-figure .total-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.total-figure .total-value { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
.total-figure .total-decimal { font-size: 0.85rem; opacity: 0.8; margin-top: 2px; }
.total-box .btn-primary { background: #fff; color: var(--blue-900); }
.total-box .btn-primary:hover { background: var(--blue-50); }

.ot-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  display: none;
}
.ot-alert.show { display: block; }
.ot-alert.ok { background: var(--ok-bg); color: var(--ok); }
.ot-alert.warn { background: var(--warn-bg); color: var(--warn); }

/* --- A - B subtraction --- */
.sub-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.sub-section h3 { margin-bottom: 4px; }
.sub-section .muted { font-size: 0.88rem; margin-bottom: 16px; }
.ab-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: end;
}
.ab-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 12px;
}
.ab-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-align: center;
}
.ab-field input {
  width: 100%;
  padding: 9px 6px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  text-align: center;
  background: var(--white);
}
.ab-minus {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-muted);
  padding-bottom: 22px;
  text-align: center;
}
.sub-result {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
#subResultText { font-weight: 800; color: var(--blue-900); }

@media (max-width: 560px) {
  .ab-grid { grid-template-columns: 1fr; }
  .ab-minus { padding-bottom: 0; }
  .rows-table thead { display: none; }
  .rows-table tr { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 6px; align-items: center; margin-bottom: 8px; }
  .rows-table td { padding: 2px; }
}

/* ==========================================================================
   Content sections (SEO / AEO)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 20px;
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.step-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step-card p { color: var(--text-muted); font-size: 0.92rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 12px;
}
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 { font-size: 0.98rem; margin-bottom: 4px; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); }

.law-panel {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 30px);
}
.law-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.law-stat {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.law-stat .num { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--blue-700); }
.law-stat .lbl { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.law-panel p + p { margin-top: 10px; }
.law-panel .source-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; }
.law-panel .source-note a { color: var(--blue-700); text-decoration: underline; }

.answer-box {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-600);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 0.96rem;
}
.answer-box strong { color: var(--blue-900); }

table.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.9rem;
}
table.compare-table caption { text-align: left; padding: 12px 16px; font-size: 0.8rem; color: var(--text-muted); }
table.compare-table th, table.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}
table.compare-table thead th {
  background: var(--blue-900);
  color: #fff;
  font-size: 0.82rem;
}
table.compare-table tbody tr:last-child td { border-bottom: none; }
table.compare-table tbody tr:nth-child(even) { background: var(--bg); }
.tick { color: var(--ok); font-weight: 800; }
.cross { color: var(--text-muted); }
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: transparent;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
}
.faq-q .plus { flex-shrink: 0; transition: transform 0.2s ease; color: var(--blue-600); font-size: 1.3rem; line-height: 1; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.faq-item.open .faq-a { max-height: 320px; padding: 0 18px 18px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 12px auto 20px; max-width: 520px; }
.cta-band .btn-primary { background: #fff; color: var(--blue-900); }
.cta-band .btn-primary:hover { background: var(--blue-50); }

/* Persona strip */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.persona-card {
  border: 1px solid var(--line-soft);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px;
}
.persona-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.persona-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--blue-900);
  color: #EAF0FF;
  margin-top: 40px;
}
.footer-top {
  padding-block: 44px 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 32px;
}
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text span { color: var(--blue-500); }
.footer-tagline {
  margin-top: 12px;
  color: rgba(234,240,255,0.7);
  font-size: 0.9rem;
  max-width: 260px;
}
.footer-heading {
  font-family: var(--font-head);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(234,240,255,0.55);
  margin-bottom: 14px;
}
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover { background: var(--blue-600); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(234,240,255,0.82); font-size: 0.92rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px var(--gutter);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(234,240,255,0.65);
}
.footer-bottom strong { color: #fff; }

@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
}

/* Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media print {
  .site-header, .site-footer, .calc-toolbar, .calc-tabs, .section:not(.tool-section) { display: none !important; }
  body { background: #fff; }
  .calc-card { box-shadow: none; border: 1px solid #000; }
}

/* ==========================================================================
   AMÉLIORATIONS VISUELLES — navigation, hero décoratif, FAB, reveal
   ========================================================================== */

/* --- Nav : icônes + CTA pill + état "scrolled" --- */
.site-header { transition: box-shadow 0.25s ease; }
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(18,40,79,0.08); }

.nav-ic { width: 15px; height: 15px; flex-shrink: 0; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--blue-600);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--blue-700); transform: translateY(-1px); }

@media (max-width: 640px) {
  .main-nav { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-cta { margin-top: 8px; justify-content: center; }
}

/* --- Hero décoratif : blobs, points, vague, chip flottant --- */
.hero { position: relative; overflow: hidden; padding-bottom: 64px; }
.hero-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.55;
}
.blob-1 {
  width: 340px; height: 340px;
  top: -140px; left: -120px;
  background: radial-gradient(circle at 30% 30%, var(--blue-100), transparent 70%);
}
.blob-2 {
  width: 420px; height: 420px;
  top: -80px; right: -160px;
  background: radial-gradient(circle at 70% 30%, var(--blue-50), transparent 70%);
}
.hero-dots { position: absolute; bottom: 40px; left: 6%; opacity: 0.6; display: none; }
@media (min-width: 900px) { .hero-dots { display: block; } }

.hero .wrap { position: relative; z-index: 1; }
.hero-wave {
  position: relative;
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
}

.hero-chip {
  position: relative;
  max-width: 280px;
  margin: 30px auto 0;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px 18px;
  text-align: left;
}
.hero-chip-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 3px 0;
}
.hero-chip-row strong { color: var(--text); font-weight: 700; }
.hero-chip-track {
  height: 6px;
  background: var(--blue-50);
  border-radius: var(--radius-pill);
  margin: 10px 0 8px;
  overflow: hidden;
}
.hero-chip-fill {
  display: block;
  height: 100%;
  width: 61%;
  background: var(--blue-600);
  border-radius: var(--radius-pill);
}
.hero-chip-total {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--blue-900);
  text-align: right;
}
.hero-chip-total em { font-style: normal; color: var(--text-muted); font-weight: 600; font-size: 0.78rem; }

/* --- Byline EEAT --- */
.byline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.byline time { font-weight: 600; color: var(--text); }

/* --- Bouton flottant "Calculer" (FAB) --- */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-600);
  color: #fff;
  padding: 13px 18px 13px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}
.fab.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fab:hover { background: var(--blue-700); }
@media (max-width: 480px) {
  .fab span { display: none; }
  .fab { padding: 14px; }
}

/* --- Reveal au scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fab { transition: none; }
}

/* --- Micro-interactions supplémentaires --- */
.step-card, .feature-card, .persona-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.step-card:hover, .feature-card:hover, .persona-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}
.feature-card { border-left: 3px solid var(--blue-100); }
.feature-card:hover { border-left-color: var(--blue-600); }

/* --- Scrollbar fine (navigateurs webkit) --- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue-100); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--blue-500); }

@media print {
  .fab { display: none !important; }
}
