/* ==========================================================================
   Jean-Manuel Millin — Agent Général Allianz
   Direction artistique : métal brossé (bleu / blanc / argent) + bleu marine + or
   ========================================================================== */

:root {
  /* Palette */
  --copper: #6E90B5;
  --copper-light: #A9C3DA;
  --copper-rose: #7FA1C4;
  --silver: #C8CBD0;
  --silver-light: #E5E7EB;
  --navy: #0A1F44;
  --navy-deep: #002B5C;
  --navy-darker: #061530;
  --gold: #C9A24B;
  --gold-light: #D4AF37;
  --cream: #F7F3EC;
  --slate-text: #3A3F4B;

  /* Typographie */
  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--slate-text);
  background: var(--cream);
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
}

.gold-text { color: var(--gold-light) !important; }

/* ==========================================================================
   Textures métalliques réutilisables
   ========================================================================== */

.bg-metal {
  position: relative;
  background:
    repeating-linear-gradient(100deg,
      rgba(255,255,255,0.35) 0px,
      rgba(255,255,255,0.08) 1.5px,
      transparent 3px,
      transparent 6px),
    linear-gradient(135deg, var(--copper-light) 0%, var(--silver-light) 45%, var(--copper) 75%, var(--silver) 100%);
  color: var(--navy);
}

.bg-cream { background: var(--cream); }

.bg-navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--silver-light);
}

.bg-navy-deep {
  background: linear-gradient(160deg, var(--navy-darker) 0%, var(--navy) 100%);
  color: var(--silver-light);
}

/* Motif halftone (points dégradés) dans les coins */
.bg-metal::before,
.bg-navy::before,
.bg-navy-deep::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 320px; height: 320px;
  pointer-events: none;
  background-image: radial-gradient(circle, currentColor 1.4px, transparent 1.6px);
  background-size: 14px 14px;
  color: var(--gold);
  opacity: 0.18;
  -webkit-mask-image: radial-gradient(circle at top right, black 0%, transparent 70%);
          mask-image: radial-gradient(circle at top right, black 0%, transparent 70%);
}

.bg-metal::before { color: var(--navy); opacity: 0.12; }

.section { position: relative; padding: 120px 0; overflow: hidden; }

.kicker {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 28px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4), 0 -1px 0 rgba(0,0,0,0.06);
}

.section-title.light { color: #FDFBF7; text-shadow: 0 1px 8px rgba(212,175,55,0.25); }

.center { text-align: center; }
.section-title.center, .kicker.center { max-width: 720px; margin-left: auto; margin-right: auto; }

.intro-text {
  max-width: 640px;
  margin: 0 auto 56px;
  opacity: 0.85;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.btn-small { padding: 10px 22px; font-size: 0.85rem; }
.btn-full { width: 100%; }

.btn-gold {
  background: linear-gradient(120deg, #E9CD82, var(--gold-light) 45%, var(--gold) 80%, #B8893A);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(201,162,75,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(201,162,75,0.5), inset 0 1px 0 rgba(255,255,255,0.6);
}

.btn-outline-silver {
  background: transparent;
  color: var(--silver-light);
  border: 1px solid rgba(200,203,208,0.6);
}

.btn-outline-silver:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   En-tête
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 31, 68, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212,175,55,0.25);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-group { display: flex; align-items: center; gap: 14px; }

/* Prêt pour le logo officiel Allianz une fois fourni (voir commentaire dans index.html) */
.header-logo { height: 34px; width: auto; display: block; }

.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-serif); font-size: 1.25rem; color: #FDFBF7; font-weight: 600; }
.brand-sub { font-size: 0.7rem; letter-spacing: 0.08em; color: var(--gold-light); text-transform: uppercase; }

.main-nav { display: flex; gap: 18px; flex: 1; justify-content: center; }
.main-nav a {
  font-size: 0.78rem;
  color: var(--silver-light);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold-light);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--gold-light); }
.main-nav a:hover::after { width: 100%; }

.header-cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold-light);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 22% 12%, rgba(38,72,130,0.85) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 88%, rgba(0,18,46,0.7) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 20%, #0F2C5C 0%, var(--navy) 45%, var(--navy-darker) 100%);
  overflow: hidden;
  padding: 120px 32px 60px;
}

/* Vignettage : assombrit légèrement les bords pour donner du volume au fond */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(2,8,20,0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  will-change: transform;
}

.hero-bg-skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  opacity: 0.9;
  z-index: 2;
  will-change: transform;
}
.hero-bg-skyline svg { width: 100%; height: auto; }

/* Halo doré diffus derrière le titre, pour le faire ressortir du fond */
.hero-glow {
  position: absolute;
  top: 36%;
  left: 50%;
  width: min(900px, 90vw);
  height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.32) 0%, rgba(212,175,55,0.1) 40%, transparent 72%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 820px;
}

/* Emblème / médaillon de l'agence — logo officiel fourni par Allianz */
.hero-emblem {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto 36px;
  border-radius: 50%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  box-shadow: 0 0 0 1px rgba(212,175,55,0.35), 0 0 50px 10px rgba(212,175,55,0.22), 0 18px 44px rgba(0,0,0,0.4);
  opacity: 0;
  transform: scale(0.88);
  animation: heroEmblemIn 1s ease 0.15s forwards;
}

@keyframes heroEmblemIn {
  to { opacity: 1; transform: scale(1); }
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  color: #FDFBF7;
  line-height: 1.2;
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(212,175,55,0.2);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--silver-light);
  opacity: 0.85;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}
.scroll-cue span {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ==========================================================================
   Sections génériques : split (texte / média)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.photo-frame {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border: 1px solid rgba(201,162,75,0.55);
  border-radius: 12px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(150deg, var(--silver-light), var(--copper-light));
  box-shadow: 0 20px 45px rgba(10,31,68,0.22), inset 0 0 0 1px rgba(255,255,255,0.4);
}

.photo-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.split-text p { margin-bottom: 16px; }

.quote-callout {
  margin-top: 28px;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  border-left: 3px solid var(--gold-light);
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(10,31,68,0.25);
}

/* ==========================================================================
   Cartes de services
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.card-metal {
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,0.5) 0px, rgba(255,255,255,0.1) 1.5px, transparent 3px, transparent 6px),
    linear-gradient(160deg, var(--silver-light), var(--copper-light) 90%);
  border-radius: 6px;
  padding: 40px 32px;
  box-shadow: 0 10px 28px rgba(10,31,68,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(255,255,255,0.5);
}

.card-metal:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(10,31,68,0.2), 0 0 0 1px rgba(212,175,55,0.5), inset 0 1px 0 rgba(255,255,255,0.7);
}

.card-icon { width: 48px; height: 48px; margin-bottom: 22px; }

.card-metal h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.card-metal ul li {
  padding: 7px 0;
  border-top: 1px solid rgba(10,31,68,0.1);
  font-size: 0.92rem;
}
.card-metal ul li:first-child { border-top: none; }

/* ==========================================================================
   Moments importants
   ========================================================================== */

.moments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 28px;
  margin-top: 56px;
}

.moment-item { text-align: center; }
.moment-item svg { width: 44px; height: 44px; margin: 0 auto 16px; }
.moment-item p { font-size: 0.92rem; }

/* ==========================================================================
   Méthode
   ========================================================================== */

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  position: relative;
}

.method-step {
  position: relative;
  padding: 32px 24px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(10,31,68,0.08);
  border-top: 3px solid var(--gold-light);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--copper);
  opacity: 0.8;
  margin-bottom: 12px;
}

.method-step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.method-step p { font-size: 0.9rem; }

/* ==========================================================================
   Mes repères — totems
   ========================================================================== */

.totems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.totem {
  position: relative;
  text-align: center;
  padding: 48px 20px 36px;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(212,175,55,0.06), rgba(212,175,55,0.01));
}

/* Lueur dorée diffuse derrière l'icône */
.totem-glow {
  position: absolute;
  top: 36px;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.5) 0%, rgba(212,175,55,0.15) 55%, transparent 75%);
  filter: blur(3px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s ease;
}

.totem-icon {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.totem-svg {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.totem:hover .totem-svg {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(212,175,55,0.75));
}

.totem:hover .totem-glow {
  background: radial-gradient(circle, rgba(212,175,55,0.75) 0%, rgba(212,175,55,0.25) 55%, transparent 75%);
}

.totem h3 { color: #FDFBF7; font-size: 1.15rem; }

/* ==========================================================================
   Chiffres Allianz
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 10px;
  white-space: nowrap;
}

.stat-item p { font-size: 0.85rem; opacity: 0.8; }

/* ==========================================================================
   Formulaires génériques (simulateur + contact)
   ========================================================================== */

.contact-form {
  background: #fff;
  padding: 36px;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(10,31,68,0.12);
}

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(10,31,68,0.18);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--slate-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ==========================================================================
   Simulateur — Wizard de diagnostic patrimonial
   ========================================================================== */

.wizard {
  background: #fff;
  border-radius: 10px;
  padding: 44px 48px;
  box-shadow: 0 18px 44px rgba(10,31,68,0.14);
  max-width: 760px;
  margin: 40px auto 0;
}

.wizard-progress {
  height: 6px;
  background: rgba(10,31,68,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}

.wizard-progress-bar {
  height: 100%;
  width: 14.28%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.4s ease;
}

.wizard-step-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 32px;
}

.wizard-step { display: none; animation: wizardStepIn 0.4s ease; }
.wizard-step.active { display: block; }

@keyframes wizardStepIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

.wizard-step-title {
  font-size: 1.3rem;
  margin-bottom: 26px;
}

.option-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.option-cards-vertical { flex-direction: column; }

.option-card {
  padding: 14px 20px;
  border: 1px solid rgba(10,31,68,0.18);
  border-radius: 6px;
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: left;
  color: var(--slate-text);
  transition: border-color 0.2s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.option-card:hover { border-color: var(--gold-light); }

.option-card.selected {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #FDFBF7;
  border-color: var(--gold-light);
  box-shadow: 0 8px 20px rgba(10,31,68,0.25), inset 0 1px 0 rgba(212,175,55,0.25);
}

.risk-slider {
  width: 100%;
  margin: 22px 0 10px;
  accent-color: var(--gold-light);
}

.risk-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  opacity: 0.65;
  margin-bottom: 24px;
}

.risk-current { font-size: 0.95rem; }

.wizard-error {
  color: #B3261E;
  font-size: 0.85rem;
  margin-top: 18px;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 38px;
}

/* ==========================================================================
   Simulateur — Écran de résultats
   ========================================================================== */

.wizard-results { margin-top: 56px; }

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.results-header h3 { font-size: 1.6rem; }

.result-block { margin-bottom: 48px; }
.result-block h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 18px;
}

.capital-card {
  background: linear-gradient(135deg, #E9CD82, var(--gold-light) 45%, var(--gold) 80%, #B8893A);
  padding: 42px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 22px 48px rgba(201,162,75,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
}

.capital-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: rgba(10,31,68,0.7);
  margin-bottom: 12px;
}

.capital-value {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 14px;
}

.capital-sub { color: var(--navy); opacity: 0.85; margin-bottom: 10px; }
.capital-note { font-size: 0.85rem; color: var(--navy); opacity: 0.75; font-style: italic; }

#rendementChart {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Graphique d'évolution du capital dans le temps */

.evolution-chart-card {
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,0.5) 0px, rgba(255,255,255,0.1) 1.5px, transparent 3px, transparent 6px),
    linear-gradient(160deg, var(--silver-light), var(--copper-light) 90%);
  border-radius: 10px;
  padding: 28px 24px 20px;
  box-shadow: 0 14px 34px rgba(10,31,68,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.5);
}

.evolution-chart-wrap {
  position: relative;
  width: 100%;
}

#evolutionChart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: linear-gradient(150deg, #0F2C5C, var(--navy-deep));
  color: #FDFBF7;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.55;
  box-shadow: 0 10px 24px rgba(10,31,68,0.35);
  border: 1px solid rgba(212,175,55,0.4);
  white-space: nowrap;
  transform: translate(-50%, -115%);
  z-index: 5;
}

.evolution-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--navy);
}

.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.legend-swatch-brut { background: var(--gold-light); }
.legend-swatch-reel { background: repeating-linear-gradient(90deg, #8C929B 0 3px, transparent 3px 6px); }
.legend-swatch-versements { background: var(--navy); }
.legend-swatch-interets { background: rgba(212,175,55,0.4); }

.evolution-synthese {
  margin-top: 18px;
  font-size: 0.92rem;
  opacity: 0.85;
}

.frais-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 16px;
}

.frais-bar-wrap p { font-size: 0.85rem; margin-bottom: 8px; }

.frais-bar {
  height: 14px;
  border-radius: 7px;
  background: rgba(10,31,68,0.08);
  overflow: hidden;
  margin-bottom: 8px;
}

.frais-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 1s ease;
}

.frais-bar-fill-alt { background: linear-gradient(90deg, var(--copper), var(--copper-light)); }

.frais-value { font-weight: 600; font-size: 0.9rem; }
.frais-ecart { font-size: 0.9rem; opacity: 0.8; }

.health-block { text-align: center; }

.health-gauge-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 28px;
}

.health-gauge { width: 100%; height: 100%; transform: rotate(-90deg); }
.health-gauge-bg { fill: none; stroke: rgba(10,31,68,0.08); stroke-width: 14; }
.health-gauge-fill {
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s ease;
}

.health-gauge-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: var(--font-serif);
}

#healthScoreValue { font-size: 2.6rem; color: var(--navy); font-weight: 700; }
.health-gauge-suffix { font-size: 1rem; opacity: 0.6; }

.health-diagnostic {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  background: #fff;
  padding: 26px 30px;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(10,31,68,0.1);
  border-left: 3px solid var(--gold-light);
}

.health-diagnostic-intro {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 18px;
}

.health-diagnostic-block { margin-top: 18px; }
.health-diagnostic-block:first-of-type { margin-top: 0; }

.health-diagnostic-block h5 {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.7;
  margin-bottom: 10px;
}

.health-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.health-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--slate-text);
}

.health-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.health-list-points li::before { background: var(--gold-light); }
.health-list-axes li::before { background: var(--navy); opacity: 0.55; }

.solutions-list { display: flex; flex-direction: column; gap: 16px; }

.solution-item {
  background: #fff;
  padding: 22px 26px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(10,31,68,0.08);
  border: 1px solid rgba(10,31,68,0.06);
}

.solution-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.solution-name { font-family: var(--font-serif); font-size: 1.05rem; color: var(--navy); }
.stars-filled { color: var(--gold-light); letter-spacing: 2px; }
.stars-empty { color: rgba(10,31,68,0.15); letter-spacing: 2px; }
.solution-reason { font-size: 0.88rem; opacity: 0.8; }

.recontact-block { max-width: 700px; margin: 0 auto 48px; }

.recontact-intro {
  text-align: center;
  opacity: 0.8;
  margin-bottom: 26px;
}

.recontact-form {
  background: #fff;
  padding: 36px;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(10,31,68,0.12);
  border-left: 3px solid var(--gold-light);
}

.recontact-consent-row { margin-bottom: 24px; }

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--slate-text);
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold-light);
  cursor: pointer;
}

.consent-label a { color: var(--gold); text-decoration: underline; }
.consent-label a:hover { color: var(--copper); }

.recontact-form .btn[disabled],
.contact-form .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.recontact-form .btn[disabled]:hover,
.contact-form .btn[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.form-confirmation-pending { color: var(--navy); opacity: 0.7; }
.form-confirmation-error { color: #8a6d2f; }

.recontact-success {
  text-align: center;
  background: #fff;
  padding: 26px 30px;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(10,31,68,0.12);
  border-left: 3px solid var(--gold-light);
  font-size: 1rem;
}

.contact-success-message {
  text-align: center;
  background: #fff;
  padding: 26px 30px;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(10,31,68,0.12);
  border-left: 3px solid var(--gold-light);
  font-size: 1rem;
}

.disclaimer {
  font-size: 0.78rem;
  opacity: 0.6;
  font-style: italic;
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
  line-height: 1.6;
}

.results-cta { text-align: center; }
.btn-large { padding: 18px 44px; font-size: 1.05rem; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-info li {
  margin-top: 22px;
  font-size: 0.95rem;
}
.contact-info li strong {
  display: block;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-info a:hover { color: var(--copper); }

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

/* Liens sociaux réutilisés dans la section Contact et le pied de page */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.social-icon { width: 20px; height: 20px; flex-shrink: 0; }

.form-confirmation {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #2E7D32;
  font-weight: 600;
  min-height: 1.2em;
}

/* ==========================================================================
   Pied de page
   ========================================================================== */

.site-footer {
  background: var(--navy-darker);
  color: var(--silver);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.4fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}

.footer-name { font-family: var(--font-serif); font-size: 1.2rem; color: #FDFBF7; margin-bottom: 6px; }
.footer-title { font-size: 0.85rem; opacity: 0.75; margin-bottom: 14px; }
.footer-address, .footer-phone { font-size: 0.85rem; opacity: 0.75; margin-bottom: 6px; }
.footer-phone a:hover { color: var(--gold-light); }

.footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-social a { font-size: 0.85rem; opacity: 0.75; }
.footer-social a:hover { color: var(--gold-light); opacity: 1; }

.footer-legal { display: flex; align-items: flex-start; gap: 20px; }

.footer-emblem {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  box-shadow: 0 0 0 1px rgba(212,175,55,0.3), 0 0 22px 4px rgba(212,175,55,0.15);
}

.footer-legal-text { flex: 1; min-width: 0; }
.footer-legal p { font-size: 0.78rem; opacity: 0.65; margin-bottom: 8px; line-height: 1.5; }
.footer-legal a { text-decoration: underline; }
.footer-signature {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light) !important;
  opacity: 1 !important;
  margin-top: 12px !important;
}

.site-footer .container > p { text-align: center; padding-top: 24px; font-size: 0.75rem; opacity: 0.5; }

/* ==========================================================================
   Animation au défilement
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Page Mentions légales
   ========================================================================== */

.legal-back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--navy);
  opacity: 0.75;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.legal-back-link:hover { color: var(--gold); opacity: 1; }

.legal-content {
  max-width: 820px;
  margin: 48px auto 0;
}

.legal-content h2 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.4rem;
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212,175,55,0.35);
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  margin-bottom: 14px;
  line-height: 1.7;
  word-break: break-word;
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
}
.legal-content a:hover { color: var(--copper); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .moments-grid { grid-template-columns: repeat(3, 1fr); }
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .totems-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }

  .main-nav.mobile-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(6, 21, 48, 0.98);
    flex-direction: column;
    padding: 24px 32px;
    gap: 18px;
    border-bottom: 1px solid rgba(212,175,55,0.25);
  }

  .main-nav.mobile-open a {
    font-size: 0.86rem;
  }

  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; max-width: 320px; margin: 0 auto; }

  .hero-emblem { width: 160px; height: 160px; margin-bottom: 30px; }

  .wizard { padding: 36px 28px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .frais-compare { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .moments-grid { grid-template-columns: repeat(2, 1fr); }
  .method-steps { grid-template-columns: 1fr; }
  .totems-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: center; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }

  .hero-emblem { width: 120px; height: 120px; margin-bottom: 26px; }

  .wizard { padding: 28px 20px; }
  .wizard-nav { flex-direction: column-reverse; }
  .wizard-nav .btn { width: 100%; }
  .risk-labels { font-size: 0.62rem; }
  .health-gauge-wrap { width: 170px; height: 170px; }
}
