/* ============================================================
   MUSOCI — L'assurance qui s'ouvre à vous
   Feuille de style principale
   Palette :
     --navy   #0C3B66  (bleu marine — couleur principale)
     --orange #F2921D  (orange — accent / actions)
     --white  #FFFFFF  (blanc)
     --blue   #378ADD  (bleu clair — liens / accents secondaires)
     --grey   #F1EFE8  (gris chaud — fonds de sections)
   Police : Sora (Google Fonts)
   ============================================================ */

:root {
  --navy: #0C3B66;
  --orange: #F2921D;
  --white: #FFFFFF;
  --blue: #378ADD;
  --grey: #F1EFE8;

  --ink: #23415E;          /* texte courant sur fond clair */
  --muted: #5A6C80;        /* texte secondaire */
  --border: #E7E3D8;       /* bordures discrètes */
  --navy-soft: rgba(12, 59, 102, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 6px 16px rgba(12, 59, 102, 0.08);
  --shadow-md: 0 18px 40px rgba(12, 59, 102, 0.12);
  --shadow-orange: 0 10px 24px rgba(242, 146, 29, 0.30);

  --container: 1240px;
  --transition: 0.25s ease;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: pretty; }

input, select, textarea, button { font-family: inherit; font-size: 14px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 32px);
  padding-right: clamp(20px, 4vw, 32px);
}

.section { padding: clamp(60px, 8vw, 96px) 0 0; }
.section--last { padding-bottom: clamp(60px, 8vw, 100px); }

/* ---------- Titres de sections ---------- */
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  margin-top: 12px;
}

.section-lead {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  margin: 16px 0 0;
  max-width: 640px;
}

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section-head--center { text-align: center; justify-content: center; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

.link-arrow { font-size: 14px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.link-arrow:hover { color: var(--navy); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--orange { background: var(--orange); color: var(--white); box-shadow: var(--shadow-orange); }
.btn--orange:hover { background: var(--navy); color: var(--white); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--white); background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--navy); color: var(--white); }

.btn--block { width: 100%; }
.btn--sm { padding: 12px 20px; font-size: 14px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  font-weight: 300;
  padding: 9px 0;
}

.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.topbar-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-left .sep { color: rgba(255, 255, 255, 0.3); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-phone { color: var(--orange); font-weight: 500; }

.topbar-socials { display: flex; gap: 8px; }
.topbar-socials a {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
}
.topbar-socials a:hover { border-color: var(--orange); color: var(--orange); }

@media (max-width: 720px) { .topbar { display: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 46px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  padding: 10px 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover { background: var(--grey); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 3px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

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

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* (menu mobile : voir le bloc @media 1180px plus bas) */

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before { top: -140px; right: -120px; width: 520px; height: 520px; background: var(--blue); opacity: 0.22; }
.hero::after { bottom: -180px; left: -90px; width: 380px; height: 380px; background: var(--orange); opacity: 0.12; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 56px;
  align-items: center;
  padding-top: clamp(56px, 7vw, 84px);
  padding-bottom: clamp(80px, 9vw, 120px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 700; margin-top: 22px; }
.hero h1 .accent { color: var(--orange); }

.hero-lead {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  max-width: 500px;
  margin: 20px 0 0;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  flex-wrap: wrap;
}
.hero-trust .check { color: var(--orange); font-weight: 600; }
.hero-trust .dot { color: rgba(255, 255, 255, 0.25); }

/* Visuel héro : carte d'adhérent stylisée */
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }

.member-card {
  width: min(420px, 100%);
  border-radius: 20px;
  background: linear-gradient(135deg, #12518C 0%, var(--navy) 55%, #082944 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px rgba(3, 18, 33, 0.5);
  padding: 26px 28px;
  transform: rotate(-3deg);
}
.member-card-top { display: flex; justify-content: space-between; align-items: center; }
.member-card-logo { background: var(--white); border-radius: 10px; padding: 7px 10px; }
.member-card-logo img { height: 24px; }
.member-card-type { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.member-card-chip { width: 44px; height: 32px; border-radius: 7px; margin-top: 26px; background: linear-gradient(135deg, #F2C94C, var(--orange)); position: relative; }
.member-card-chip::after { content: ""; position: absolute; inset: 7px 9px; border: 1px solid rgba(12, 59, 102, 0.4); border-radius: 4px; }
.member-card-num { font-size: 17px; font-weight: 600; letter-spacing: 0.14em; margin-top: 16px; color: rgba(255, 255, 255, 0.92); }
.member-card-bottom { display: flex; justify-content: space-between; margin-top: 22px; font-size: 11px; }
.member-card-bottom .label { color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.08em; font-size: 9.5px; }
.member-card-bottom .value { color: var(--white); font-weight: 500; margin-top: 3px; font-size: 12.5px; }

.hero-float {
  position: absolute;
  background: var(--white);
  color: var(--navy);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 22px 44px rgba(4, 24, 44, 0.28);
  display: flex;
  align-items: center;
  gap: 13px;
  animation: floatY 5s ease-in-out infinite;
}
.hero-float--1 { left: 0; bottom: 18px; }
.hero-float--2 { right: 0; top: 8px; animation-delay: 2.2s; }

.hero-float .kpi {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grey);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
  color: var(--blue);
  flex: 0 0 auto;
}
.hero-float .t1 { font-size: 14px; font-weight: 600; }
.hero-float .t2 { font-size: 12px; font-weight: 300; color: var(--muted); }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 560px) {
  .hero-float--2 { display: none; }
  .hero-visual { min-height: 340px; }
}

/* Bandeau de points forts sous le héro */
.feature-bar { position: relative; z-index: 2; margin-top: -56px; }
.feature-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 46px; height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--navy-soft);
  color: var(--blue);
  display: grid; place-items: center;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 15.5px; font-weight: 600; }
.feature-card p { font-size: 13px; font-weight: 300; color: var(--muted); margin: 6px 0 0; line-height: 1.55; }

/* ---------- Bandeau chiffres ---------- */
.stats { background: var(--grey); margin-top: clamp(60px, 8vw, 96px); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  padding: 46px 0;
  text-align: center;
}
.stat-value { font-size: clamp(32px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.stat-value .suffix { color: var(--orange); }
.stat-label { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* ---------- Cartes formules ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.plan-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.plan-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.plan-card--featured { border-color: var(--orange); box-shadow: var(--shadow-md); }

.plan-flag {
  align-self: flex-start;
  background: var(--orange);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.plan-name { font-size: 22px; font-weight: 600; }
.plan-pitch { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.6; margin: 10px 0 0; min-height: 66px; }

.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; }
.plan-price .amount { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.plan-price .period { font-size: 13px; font-weight: 300; color: var(--muted); }

.plan-sep { height: 1px; background: var(--grey); margin: 22px 0; }

.plan-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; flex: 1; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 300; color: var(--ink); line-height: 1.5; }
.plan-list li::before { content: "✓"; color: var(--blue); font-weight: 600; flex: 0 0 auto; }

.plan-exclusions { margin-top: 20px; font-size: 12.5px; color: #8A7F6C; line-height: 1.6; }
.plan-card .btn { margin-top: 24px; }

/* ---------- Simulateur ---------- */
.simulator {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 52px);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(32px, 5vw, 52px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.simulator::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.2;
}
.simulator > * { position: relative; }
.simulator h2 { font-size: clamp(26px, 3.1vw, 34px); font-weight: 700; margin-top: 12px; }
.simulator .section-lead { color: rgba(255, 255, 255, 0.78); }

.sim-result {
  margin-top: 28px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
}
.sim-result .label { font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.sim-result .value { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; color: var(--orange); margin-top: 6px; letter-spacing: -0.02em; }
.sim-result .sub { font-size: 12.5px; font-weight: 300; color: rgba(255, 255, 255, 0.6); margin-top: 6px; }

.sim-panel {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.sim-row-head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 500; margin-bottom: 10px; }
.sim-row-head output { color: var(--orange); font-weight: 600; }
.sim-panel input[type="range"] { width: 100%; accent-color: var(--orange); cursor: pointer; }

.sim-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sim-choice {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
}
.sim-choice:hover { border-color: var(--blue); }
.sim-choice.is-active { border-color: var(--orange); background: rgba(242, 146, 29, 0.08); color: var(--navy); font-weight: 600; }

/* ---------- Étapes ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 40px;
  counter-reset: step;
}
.step-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; position: relative; background: var(--white); }
.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 40px;
  font-weight: 700;
  color: var(--grey);
  -webkit-text-stroke: 1px var(--orange);
  display: block;
}
.step-card h3 { font-size: 16.5px; font-weight: 600; margin-top: 14px; }
.step-card p { font-size: 13.5px; font-weight: 300; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }

/* ---------- Section double (à propos, réseau…) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(36px, 5vw, 60px);
  align-items: center;
}

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 30px; }
.value-card { background: var(--grey); border-radius: var(--radius-md); padding: 22px; }
.value-card h3 { font-size: 15.5px; font-weight: 600; }
.value-card p { font-size: 13.5px; font-weight: 300; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }

/* Bloc réseau (fond gris) */
.network-block {
  background: var(--grey);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 48px);
}
.cities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.city-chip {
  background: var(--white);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
}
.city-chip span { font-size: 12.5px; font-weight: 400; color: var(--orange); }

/* ---------- Témoignages ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.testimonial-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testimonial-stars { color: var(--orange); font-size: 14px; letter-spacing: 2px; }
.testimonial-text { font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--ink); flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grey);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
  color: var(--blue);
}
.testimonial-name { font-size: 14.5px; font-weight: 600; }
.testimonial-role { font-size: 12.5px; font-weight: 300; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--white); }
.faq-item.is-open { border-color: var(--blue); }
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 20px 24px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-icon { color: var(--orange); font-size: 20px; font-weight: 400; flex: 0 0 auto; transition: transform var(--transition); }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 24px 22px; font-size: 14.5px; font-weight: 300; line-height: 1.7; color: var(--muted); }

/* ---------- Articles ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.article-card { display: flex; flex-direction: column; gap: 14px; }
.article-cover {
  height: 200px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.article-cover svg { width: 56px; height: 56px; opacity: 0.9; }
.article-cover--1 { background: linear-gradient(135deg, var(--blue), var(--navy)); }
.article-cover--2 { background: linear-gradient(135deg, var(--orange), #C96F08); }
.article-cover--3 { background: linear-gradient(135deg, var(--navy), #082944); }
.article-meta { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.article-title { font-size: 19px; font-weight: 600; line-height: 1.3; }
.article-excerpt { font-size: 14px; font-weight: 300; line-height: 1.65; color: var(--muted); }

/* ---------- CTA final ---------- */
.cta-banner {
  background: var(--orange);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -60px; bottom: -100px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.cta-banner h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
.cta-banner p { font-size: 16px; font-weight: 300; margin: 16px 0 0; color: rgba(255, 255, 255, 0.92); line-height: 1.65; }
.cta-actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; position: relative; }

/* ---------- Bannière de page interne ---------- */
.page-hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute;
  top: -160px; right: -100px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.2;
}
.page-hero-inner { position: relative; padding-top: clamp(46px, 6vw, 64px); padding-bottom: clamp(46px, 6vw, 64px); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; margin-top: 12px; }
.page-hero p { font-size: 16.5px; font-weight: 300; color: rgba(255, 255, 255, 0.8); max-width: 660px; margin: 14px 0 0; line-height: 1.65; }
.breadcrumb { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); margin-top: 18px; }
.breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- Comparateur ---------- */
.compare-wrap { border: 1px solid var(--border); border-radius: 18px; overflow-x: auto; margin-top: 26px; }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.compare-table thead th {
  background: var(--navy);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  padding: 18px 22px;
  text-align: center;
}
.compare-table thead th:first-child { text-align: left; }
.compare-table thead th.is-featured { background: rgba(242, 146, 29, 0.9); }
.compare-table tbody td { padding: 16px 22px; text-align: center; border-top: 1px solid var(--grey); font-weight: 300; color: var(--ink); }
.compare-table tbody td:first-child { text-align: left; font-weight: 500; color: var(--navy); }
.compare-table tbody td.is-featured { background: #FBF7F1; font-weight: 500; }

.doc-links { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.doc-link {
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: border-color var(--transition);
}
.doc-link:hover { border-color: var(--blue); color: var(--navy); }

/* ---------- Annuaire réseau ---------- */
.directory-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 18px;
  background: var(--grey);
  border-radius: var(--radius-md);
}
.directory-search {
  flex: 1 1 260px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--navy);
  outline: none;
}
.directory-search:focus { border-color: var(--blue); }

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  padding: 11px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-pill:hover { border-color: var(--blue); }
.filter-pill.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.directory-count { font-size: 13.5px; color: var(--muted); margin: 22px 0 0; }

.directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 18px; }
.centre-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  background: var(--white);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.centre-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.centre-type {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
}
.centre-type--CLI { background: rgba(55, 138, 221, 0.12); color: var(--blue); }
.centre-type--PHA { background: rgba(242, 146, 29, 0.14); color: #C96F08; }
.centre-type--LAB { background: rgba(12, 59, 102, 0.1); color: var(--navy); }
.centre-type--DEN { background: rgba(46, 160, 100, 0.14); color: #1E7A4A; }
.centre-name { font-size: 17px; font-weight: 600; margin-top: 14px; }
.centre-meta { font-size: 13.5px; font-weight: 300; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.centre-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.centre-tag { font-size: 11.5px; background: var(--grey); color: var(--ink); padding: 5px 10px; border-radius: 100px; }
.directory-empty { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 15px; display: none; }

/* ---------- Formulaires ---------- */
.form-card { border: 1px solid var(--border); border-radius: 20px; padding: clamp(24px, 4vw, 36px); background: var(--white); }
.form-title { font-size: 20px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 24px; }

.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--navy);
  outline: none;
  background: var(--white);
  transition: border-color var(--transition);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: #D64545; }
.field textarea { resize: vertical; }
.field--full { grid-column: 1 / -1; }

.form-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.6; }
.form-consent input { margin-top: 3px; accent-color: var(--orange); flex: 0 0 auto; }
.form-note { text-align: center; font-size: 12px; font-weight: 300; color: #8A7F6C; margin-top: 14px; }
.form-error { display: none; margin-top: 16px; background: rgba(214, 69, 69, 0.08); border: 1px solid rgba(214, 69, 69, 0.3); color: #B23030; font-size: 13.5px; border-radius: 10px; padding: 13px 16px; }
.form-error.is-visible { display: block; }

/* Confirmation d'envoi */
.form-success { display: none; background: var(--grey); border-radius: var(--radius-md); padding: 36px; text-align: center; }
.form-success.is-visible { display: block; }
.form-success .check-badge {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 24px;
  margin: 0 auto;
}
.form-success h3 { font-size: 22px; font-weight: 600; margin-top: 18px; }
.form-success p { font-size: 14.5px; font-weight: 300; color: var(--muted); line-height: 1.7; margin: 10px 0 0; }
.form-success .btn { margin-top: 22px; }

/* Colonne latérale devis / contact */
.aside-stack { display: flex; flex-direction: column; gap: 18px; }
.aside-card { border: 1px solid var(--border); border-radius: 18px; padding: 28px; background: var(--white); }
.aside-card--navy { background: var(--navy); color: var(--white); border: 0; }
.aside-card--grey { background: var(--grey); border: 0; }
.aside-card .label { font-size: 13px; color: var(--muted); }
.aside-card--navy .label { color: rgba(255, 255, 255, 0.7); }
.aside-card .big { font-size: 24px; font-weight: 700; color: var(--orange); margin-top: 8px; letter-spacing: -0.02em; }
.aside-card .sub { font-size: 13px; font-weight: 300; margin-top: 8px; line-height: 1.6; }
.aside-card--navy .sub { color: rgba(255, 255, 255, 0.72); }
.aside-card h3 { font-size: 16px; font-weight: 600; }

.mini-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.mini-step { display: flex; gap: 14px; align-items: flex-start; }
.mini-step .n {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grey);
  color: var(--blue);
  font-size: 12.5px; font-weight: 600;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.mini-step p { font-size: 13.5px; font-weight: 300; color: var(--muted); line-height: 1.6; margin: 0; }

/* Coordonnées (contact) */
.contact-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; background: var(--white); }
.contact-card .label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.contact-card .value { font-size: 15.5px; font-weight: 500; margin-top: 10px; line-height: 1.5; }
.contact-card .value a { color: var(--navy); }
.contact-card .value a:hover { color: var(--orange); }

.map-placeholder {
  height: 260px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(12, 59, 102, 0.82), rgba(12, 59, 102, 0.82)),
    repeating-linear-gradient(45deg, #E3EFFB 0 14px, #D2E4F7 14px 28px);
  display: grid;
  place-items: center;
  color: var(--white);
  text-align: center;
  padding: 20px;
}
.map-placeholder .pin { font-size: 30px; }
.map-placeholder p { font-size: 13.5px; font-weight: 300; margin: 10px 0 0; color: rgba(255, 255, 255, 0.85); }

/* ---------- À propos ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 28px; }
.timeline-item {
  display: flex;
  gap: 20px;
  align-items: baseline;
  border-bottom: 1px solid var(--grey);
  padding: 14px 0;
}
.timeline-year { font-size: 15px; font-weight: 700; color: var(--orange); flex: 0 0 60px; }
.timeline-text { font-size: 14.5px; font-weight: 300; color: var(--ink); line-height: 1.6; }

.mission-visual {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy) 0%, #12518C 70%, var(--blue) 130%);
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.mission-visual::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.15;
  bottom: -120px; right: -80px;
}
.mission-visual img { max-height: 90px; width: auto; background: var(--white); padding: 18px 24px; border-radius: 16px; box-shadow: var(--shadow-md); position: relative; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 32px; }
.team-card { text-align: center; }
.team-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 0 auto;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  border: 4px solid var(--grey);
}
.team-avatar--1 { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.team-avatar--2 { background: linear-gradient(135deg, var(--orange), #C96F08); }
.team-avatar--3 { background: linear-gradient(135deg, var(--blue), var(--navy)); }
.team-avatar--4 { background: linear-gradient(135deg, #12518C, var(--navy)); }
.team-name { font-size: 16.5px; font-weight: 600; margin-top: 16px; }
.team-role { font-size: 13.5px; font-weight: 300; color: var(--muted); margin-top: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); margin-top: clamp(60px, 8vw, 100px); }

.footer-newsletter {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 44px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-newsletter h3 { font-size: 20px; font-weight: 600; color: var(--white); }
.footer-newsletter p { font-size: 13.5px; font-weight: 300; margin: 6px 0 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--white);
  outline: none;
  min-width: 250px;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.newsletter-form input:focus { border-color: var(--orange); }
.newsletter-msg { font-size: 13px; color: var(--orange); width: 100%; display: none; }
.newsletter-msg.is-visible { display: block; }

.footer-grid {
  padding: 52px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 40px;
}
.footer-brand .logo-box { background: var(--white); border-radius: 12px; padding: 12px 14px; display: inline-block; }
.footer-brand .logo-box img { height: 38px; }
.footer-brand p { font-size: 13.5px; font-weight: 300; line-height: 1.7; margin: 18px 0 0; max-width: 300px; }
.footer h4 { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 11px; margin-top: 18px; }
.footer-links a { font-size: 13.5px; font-weight: 300; color: rgba(255, 255, 255, 0.72); }
.footer-links a:hover { color: var(--orange); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom-inner {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 300;
}
.footer-bottom-inner a { color: rgba(255, 255, 255, 0.72); }
.footer-bottom-inner a:hover { color: var(--orange); }

/* ---------- Bouton retour en haut ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--orange);
  color: var(--white);
  border: 0;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--navy); }

/* ---------- Animations au défilement ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   V2 — Espaces photos, Actualités, FAQ, Espace assuré, Chatbot
   ============================================================ */

/* ---------- Header : groupe d'actions ---------- */
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.btn--portal { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn--portal:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn--portal svg { width: 16px; height: 16px; }

.nav-mobile-portal { display: none !important; }

@media (max-width: 1180px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 20px;
    gap: 4px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 14px; }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: var(--grey); border-left: 3px solid var(--orange); }
  .nav-toggle { display: flex; }
  .header-actions { display: none; }
  .nav-mobile-portal { display: block !important; color: var(--blue) !important; font-weight: 600 !important; }
}

/* ---------- Emplacements photos ---------- */
.photo-slot {
  position: relative;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, #E9F1FA 0%, var(--grey) 100%);
  border: 1px dashed #BFD2E4;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  overflow: hidden;
  padding: 20px;
}
.photo-slot .ps-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.photo-slot svg { width: 34px; height: 34px; color: var(--blue); opacity: 0.7; }
.photo-slot .ps-label { font-size: 12.5px; font-weight: 400; line-height: 1.5; max-width: 240px; }
/* Dès qu'une vraie photo est glissée dans le slot, elle recouvre le placeholder */
.photo-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.photo-slot--tall { min-height: 460px; border-radius: var(--radius-lg); }
.photo-slot--wide { aspect-ratio: 16 / 9; }
.photo-slot--cover { height: 210px; padding: 12px; }
.photo-slot--portrait { aspect-ratio: 3 / 4; }
.photo-slot--avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto; padding: 10px; }
.photo-slot--avatar svg { width: 26px; height: 26px; }
.photo-slot--avatar .ps-label { display: none; }

/* Bande galerie (accueil) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.gallery-grid .photo-slot { height: 230px; }
.gallery-grid .photo-slot:first-child { grid-row: span 2; height: 100%; min-height: 320px; }

/* ---------- Page Actualités ---------- */
.news-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--grey);
  border-radius: var(--radius-md);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 30px;
}

.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.news-card .photo-slot { border-radius: 0; border: 0; border-bottom: 1px dashed #BFD2E4; }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.news-badge {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
}
.news-badge--prevention { background: rgba(55, 138, 221, 0.12); color: var(--blue); }
.news-badge--mutuelle { background: rgba(242, 146, 29, 0.14); color: #C96F08; }
.news-badge--conseils { background: rgba(12, 59, 102, 0.1); color: var(--navy); }
.news-badge--entreprise { background: rgba(46, 160, 100, 0.14); color: #1E7A4A; }

.news-title { font-size: 18px; font-weight: 600; line-height: 1.35; }
.news-excerpt { font-size: 13.5px; font-weight: 300; color: var(--muted); line-height: 1.65; flex: 1; }
.news-meta { font-size: 12px; color: #8A94A3; }
.news-more { font-size: 13.5px; font-weight: 600; color: var(--blue); }
.news-more:hover { color: var(--navy); }
.news-empty { text-align: center; padding: 60px 20px; color: var(--muted); display: none; }

/* ---------- Page FAQ ---------- */
.faq-search-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: var(--grey);
  border-radius: var(--radius-md);
}
.faq-search {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--navy);
  outline: none;
}
.faq-search:focus { border-color: var(--blue); }

.faq-group { margin-top: 44px; }
.faq-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.faq-group-head .fg-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--navy-soft);
  color: var(--blue);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.faq-group-head .fg-icon svg { width: 20px; height: 20px; }
.faq-group-head h2 { font-size: 21px; font-weight: 700; }
.faq-no-result { text-align: center; padding: 50px 20px; color: var(--muted); display: none; }

/* ---------- Page Espace assuré ---------- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.portal-features { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.portal-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.portal-feature:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.portal-feature .pf-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--navy-soft);
  color: var(--blue);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.portal-feature .pf-icon svg { width: 20px; height: 20px; }
.portal-feature h3 { font-size: 15.5px; font-weight: 600; }
.portal-feature p { font-size: 13px; font-weight: 300; color: var(--muted); margin: 5px 0 0; line-height: 1.6; }

.portal-login {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 38px);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.portal-login .logo-line { display: flex; justify-content: center; margin-bottom: 22px; }
.portal-login .logo-line img { height: 42px; }
.portal-notice {
  display: none;
  margin-top: 18px;
  background: rgba(55, 138, 221, 0.08);
  border: 1px solid rgba(55, 138, 221, 0.3);
  color: var(--navy);
  font-size: 13.5px;
  line-height: 1.6;
  border-radius: 10px;
  padding: 14px 16px;
}
.portal-notice.is-visible { display: block; }
.portal-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13px; flex-wrap: wrap; }

/* ---------- Chatbot ---------- */
.chatbot-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: 0;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(12, 59, 102, 0.35);
  display: grid;
  place-items: center;
  z-index: 95;
  transition: transform var(--transition), background var(--transition);
}
.chatbot-btn:hover { transform: scale(1.06); background: var(--orange); }
.chatbot-btn svg { width: 26px; height: 26px; }
.chatbot-btn .cb-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--white);
}

.chatbot-panel {
  position: fixed;
  right: 22px;
  bottom: 94px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px));
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(4, 24, 44, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 96;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chatbot-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }

.chatbot-head {
  background: var(--navy);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chatbot-head .ch-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--orange);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.chatbot-head .ch-avatar svg { width: 20px; height: 20px; }
.chatbot-head .ch-name { font-size: 15px; font-weight: 600; }
.chatbot-head .ch-status { font-size: 11.5px; font-weight: 300; color: rgba(255, 255, 255, 0.7); display: flex; align-items: center; gap: 6px; }
.chatbot-head .ch-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4CD97B; }
.chatbot-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: var(--white);
  width: 32px; height: 32px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 16px;
  display: grid; place-items: center;
  transition: background var(--transition);
}
.chatbot-close:hover { background: rgba(255, 255, 255, 0.25); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FAF9F5;
}
.chat-msg { max-width: 85%; padding: 12px 15px; border-radius: 14px; font-size: 13.5px; line-height: 1.6; animation: chatIn 0.3s ease both; }
.chat-msg--bot { align-self: flex-start; background: var(--white); border: 1px solid var(--border); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-msg--user { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.chat-msg a { color: var(--orange); font-weight: 600; }
.chat-msg a:hover { text-decoration: underline; }
.chat-msg ul { margin: 8px 0 0; padding-left: 18px; }
.chat-msg li { margin-top: 4px; }

@keyframes chatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.chat-typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; border-bottom-left-radius: 4px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); opacity: 0.4; animation: typing 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }

.chatbot-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 12px; background: #FAF9F5; }
.chat-chip {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}
.chat-chip:hover { border-color: var(--orange); color: var(--orange); }

.chatbot-input {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.chatbot-input input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--navy);
  outline: none;
  transition: border-color var(--transition);
}
.chatbot-input input:focus { border-color: var(--blue); }
.chatbot-input button {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background var(--transition);
}
.chatbot-input button:hover { background: var(--navy); }
.chatbot-input button svg { width: 18px; height: 18px; }

/* Le bouton retour en haut se décale au-dessus du chatbot */
.back-to-top { bottom: 94px; right: 28px; }

/* ---------- Icônes utilitaires ---------- */
.inline-ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; color: var(--blue); }

/* ---------- Focus visible (accessibilité) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-float { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
