/* ==========================================================================
   Orbis Finances — Design system « fintech éditorial 2026 »
   Clair, aérien, bleus lumineux. Header pilule flottante en verre,
   mesh pastel, cartes soft-shadow, mouvement maîtrisé. Sans framework/CDN.
   ========================================================================== */

/* ---------- Fontes ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --blue-950: #0a1e3c;
  --blue-900: #0e2a52;
  --blue-800: #123468;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --sky-400: #38bdf8;
  --sky-200: #bae3fd;
  --sky-100: #e0f2fe;
  --peri-300: #a5b8f6;
  --accent-grad: linear-gradient(120deg, #38bdf8 0%, #3b82f6 55%, #2563eb 100%);
  --btn-grad: linear-gradient(120deg, #2f6ee8 0%, #2563eb 50%, #1d4ed8 100%);
  --ice: #f5f9fd;
  --ice-deep: #eaf2fb;
  --ink: #142a47;
  --muted: #5b7192;
  --line: #dfe8f4;
  --line-navy: rgba(255, 255, 255, 0.12);
  --success-bg: #e7f5ed;
  --success-fg: #1c6b3f;
  --error-bg: #fbeaea;
  --error-fg: #a12626;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(14, 42, 82, 0.06);
  --shadow-md: 0 16px 44px -14px rgba(14, 42, 82, 0.16);
  --shadow-blue: 0 14px 38px -12px rgba(37, 99, 235, 0.38);
  --maxw: 1160px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--blue-950);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.5rem, 5.8vw, 4.3rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.02rem; letter-spacing: 0.02em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue-600);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 300;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

::selection { background: var(--sky-200); color: var(--blue-950); }

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-align: center;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
              filter 0.25s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Balayage lumineux */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.4) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }

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

/* Bouton accent (classe historique .btn-gold conservée dans le HTML) */
.btn-gold {
  background: var(--btn-grad);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-gold:hover { filter: brightness(1.07); }

.btn-outline { background: transparent; color: var(--blue-800); border-color: rgba(37, 99, 235, 0.45); }
.btn-outline:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }

/* Utilisé sur le hero clair comme sur les bandes sombres */
.btn-outline-light {
  background: rgba(255, 255, 255, 0.65);
  color: var(--blue-800);
  border-color: rgba(37, 99, 235, 0.35);
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: var(--blue-950); color: #fff; border-color: var(--blue-950); }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-block { display: block; width: 100%; }

/* ---------- Header : pilule flottante en verre ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 0 0.4rem;
  background: transparent;
  pointer-events: none; /* réactivé sur la pilule */
}
.site-header .container {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
  max-width: min(1280px, calc(100vw - 32px));
  padding: 0.35rem 0.6rem 0.35rem 1.4rem;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  box-shadow: 0 8px 30px -12px rgba(14, 42, 82, 0.18);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
@supports (backdrop-filter: blur(16px)) {
  .site-header .container { background: rgba(255, 255, 255, 0.62); backdrop-filter: blur(16px) saturate(1.5); }
}
.site-header.scrolled .container {
  box-shadow: 0 14px 40px -14px rgba(14, 42, 82, 0.28);
  background: rgba(255, 255, 255, 0.88);
}
@supports (backdrop-filter: blur(16px)) {
  .site-header.scrolled .container { background: rgba(255, 255, 255, 0.72); }
}

.brand {
  font-family: var(--font-display);
  color: var(--blue-950);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .brand-mark {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Navigation par profil : trois menus déroulants, deux liens, l'espace
   client. Le bouton « Demander un devis » est hors du menu : il reste
   visible à toutes les largeurs, à côté du bouton burger. */
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; }
.nav-list { display: flex; align-items: center; gap: 0.1rem; }
.main-nav a,
.nav-group-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink);
  white-space: nowrap;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-group-toggle::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  margin-top: -0.2em;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.nav-group.open > .nav-group-toggle::after { transform: rotate(-135deg); margin-top: 0.2em; }
.main-nav a:hover,
.nav-group-toggle:hover,
.nav-group.open > .nav-group-toggle { color: var(--blue-700); background: var(--sky-100); text-decoration: none; }
.main-nav a.active,
.nav-group.is-current > .nav-group-toggle { color: var(--blue-700); }
.main-nav a:focus-visible,
.nav-group-toggle:focus-visible,
.header-cta:focus-visible,
.nav-toggle:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }

.nav-group { position: relative; }
.nav-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 50%;
  width: 340px;
  padding: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 120;
}
/* Pont invisible : la souris passe du bouton au panneau sans le refermer. */
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -0.8rem; height: 0.8rem; }
.nav-group.open > .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1241px) {
  .nav-group:hover > .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.nav-panel ul { display: flex; flex-direction: column; gap: 0.1rem; }
.main-nav .nav-panel a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  white-space: normal;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
}
.nav-panel strong { font-weight: 600; color: var(--blue-950); font-size: 0.93rem; }
.nav-panel span { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.main-nav .nav-panel a:hover strong { color: var(--blue-700); }

.nav-account { margin-left: 0.3rem; display: flex; align-items: center; }
.main-nav .nav-account a {
  color: var(--blue-700);
  border: 1px solid rgba(37, 99, 235, 0.35);
  padding: 0.45rem 0.8rem;
  font-size: 0.84rem;
}
.main-nav .nav-account a:hover { color: var(--blue-800); background: var(--sky-100); border-color: rgba(37, 99, 235, 0.5); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.header-cta { padding: 0.62rem 1.15rem; font-size: 0.9rem; line-height: 1.2; white-space: nowrap; }
.header-cta .cta-short { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--sky-100);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 999px;
  color: var(--blue-800);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .site-header .container { padding-right: 0.45rem; }
  .main-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    max-height: calc(100svh - 110px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: none;
    padding: 0.7rem;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .main-nav a,
  .nav-group-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    white-space: normal;
    padding: 0.85rem 0.95rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    text-align: left;
  }
  /* Sur mobile, les profils s'ouvrent en accordéon dans le menu. */
  .nav-panel {
    position: static;
    width: auto;
    padding: 0 0 0.4rem 0.6rem;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-panel::before { display: none; }
  .nav-group.open > .nav-panel { display: block; transform: none; }
  .main-nav .nav-panel a { padding: 0.6rem 0.9rem; border-left: 2px solid var(--sky-200); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .nav-account { margin: 0.5rem 0 0; }
  .main-nav .nav-account a { justify-content: center; }
}
/* Petits écrans : « Devis » à l'œil, l'intitulé complet reste lu par les
   lecteurs d'écran. */
@media (max-width: 520px) {
  .site-header .container { padding-left: 1.1rem; }
  .brand { font-size: 1.18rem; }
  .header-cta { padding: 0.6rem 1rem; }
  .header-cta .cta-full {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .header-cta .cta-short { display: inline; }
}

/* ---------- Hero clair : mesh pastel ---------- */
.hero, .page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ice);
  color: var(--ink);
  margin-top: -96px;         /* le hero passe sous la pilule flottante */
  padding-top: 96px;
}
/* Hero d'accueil : plein écran, image finance + voile bleu */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(8, 24, 48, 0.78) 0%, rgba(10, 30, 60, 0.45) 45%, rgba(14, 42, 82, 0.12) 100%),
    url('../assets/img/hero-finance-1920.webp') center 30% / cover no-repeat var(--blue-950);
}
@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(160deg, rgba(8, 24, 48, 0.82) 0%, rgba(10, 30, 60, 0.6) 60%, rgba(14, 42, 82, 0.35) 100%),
      url('../assets/img/hero-finance-960.webp') center 30% / cover no-repeat var(--blue-950);
  }
}

/* Mesh pastel animé (pages internes uniquement) */
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -25%;
  background:
    radial-gradient(34% 38% at 20% 25%, rgba(56, 189, 248, 0.28) 0%, transparent 70%),
    radial-gradient(38% 42% at 80% 12%, rgba(165, 184, 246, 0.35) 0%, transparent 72%),
    radial-gradient(30% 34% at 65% 85%, rgba(59, 130, 246, 0.18) 0%, transparent 70%),
    radial-gradient(26% 30% at 8% 80%, rgba(186, 227, 253, 0.5) 0%, transparent 70%);
  filter: blur(42px);
  animation: mesh 24s ease-in-out infinite alternate;
}
/* Grain très léger */
.hero::after, .page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px 160px;
  opacity: 0.028;
  pointer-events: none;
}
@keyframes mesh {
  0%   { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(3%, 3%, 0) rotate(3deg) scale(1.07); }
  100% { transform: translate3d(-2%, 2%, 0) rotate(-2deg) scale(1.03); }
}

.hero { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.hero .container { padding-top: clamp(2.5rem, 6vw, 4rem); }
.hero h1 { max-width: 18ch; text-wrap: balance; color: #fff; }
.hero h1 .gold-i {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, #7dd3fc 0%, #38bdf8 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 60ch;
  margin: 1.5rem 0 2.3rem;
}
/* Composants du hero en version sombre */
.hero .hero-eyebrow {
  color: #7dd3fc;
  background: rgba(10, 30, 60, 0.45);
  border-color: rgba(125, 211, 252, 0.35);
  backdrop-filter: blur(8px);
}
.hero .hero-badges { border-top-color: rgba(255, 255, 255, 0.2); }
.hero .hero-badges li { color: rgba(255, 255, 255, 0.82); }
.hero .btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.hero .btn-outline-light:hover { background: #fff; color: var(--blue-950); border-color: #fff; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blue-600);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 1.1rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--sky-200);
  border-radius: 999px;
}
.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-grad);
}

/* Badges de confiance sous le hero */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(37, 99, 235, 0.15);
  list-style: none;
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.hero-badges li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--accent-grad);
}

/* Pages métier : hero photo avec voile bleu nuit */
.page-hero.has-photo { color: #fff; min-height: 46svh; display: flex; align-items: flex-end; }
.page-hero.has-photo::before { display: none; } /* pas de mesh sur photo */
.page-hero.has-photo h1 { color: #fff; }
.page-hero.has-photo p { color: rgba(255, 255, 255, 0.88); }
.page-hero.has-photo .breadcrumb { color: rgba(255, 255, 255, 0.65); }
.page-hero.has-photo .breadcrumb a { color: rgba(255, 255, 255, 0.9); }

.hero-photo-assurance {
  background:
    linear-gradient(100deg, rgba(8, 24, 48, 0.82) 0%, rgba(10, 30, 60, 0.5) 50%, rgba(14, 42, 82, 0.18) 100%),
    url('../assets/img/hero-assurance-1920.webp') center 60% / cover no-repeat var(--blue-950);
}
.hero-photo-conseil {
  background:
    linear-gradient(100deg, rgba(8, 24, 48, 0.84) 0%, rgba(10, 30, 60, 0.55) 50%, rgba(14, 42, 82, 0.22) 100%),
    url('../assets/img/hero-conseil-1920.webp') center 35% / cover no-repeat var(--blue-950);
}
.hero-photo-patrimoine {
  background:
    linear-gradient(100deg, rgba(8, 24, 48, 0.82) 0%, rgba(10, 30, 60, 0.5) 50%, rgba(14, 42, 82, 0.18) 100%),
    url('../assets/img/hero-patrimoine-1920.webp') center 45% / cover no-repeat var(--blue-950);
}
@media (max-width: 768px) {
  .hero-photo-assurance {
    background:
      linear-gradient(160deg, rgba(8, 24, 48, 0.86) 0%, rgba(10, 30, 60, 0.62) 60%, rgba(14, 42, 82, 0.4) 100%),
      url('../assets/img/hero-assurance-960.webp') center 60% / cover no-repeat var(--blue-950);
  }
  .hero-photo-conseil {
    background:
      linear-gradient(160deg, rgba(8, 24, 48, 0.86) 0%, rgba(10, 30, 60, 0.62) 60%, rgba(14, 42, 82, 0.4) 100%),
      url('../assets/img/hero-conseil-960.webp') center 35% / cover no-repeat var(--blue-950);
  }
  .hero-photo-patrimoine {
    background:
      linear-gradient(160deg, rgba(8, 24, 48, 0.86) 0%, rgba(10, 30, 60, 0.62) 60%, rgba(14, 42, 82, 0.4) 100%),
      url('../assets/img/hero-patrimoine-960.webp') center 45% / cover no-repeat var(--blue-950);
  }
}

/* Hero secondaire (pages internes) */
.page-hero { padding-bottom: clamp(2.6rem, 6vw, 4rem); }
.page-hero .container { padding-top: clamp(2.6rem, 6vw, 4.2rem); }
.page-hero h1 { max-width: 24ch; text-wrap: balance; }
.page-hero p { color: var(--muted); max-width: 65ch; margin-top: 1rem; font-size: 1.05rem; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.9rem; letter-spacing: 0.03em; }
.breadcrumb a { color: var(--blue-600); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 7.5vw, 6rem) 0; }
.section-soft { background: var(--ice); }

.section-head { max-width: 66ch; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { text-wrap: balance; }
.section-head p { color: var(--muted); margin-top: 0.8rem; font-size: 1.06rem; }

/* ---------- Grilles / cartes ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  box-shadow: 0 10px 30px -18px rgba(14, 42, 82, 0.14);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
              border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 26px 60px -24px rgba(37, 99, 235, 0.3);
}
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card-actions { margin-top: auto; padding-top: 1.3rem; }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  background: var(--btn-grad);
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.55);
}

/* ---------- Liste avantages ---------- */
.feature-list { list-style: none; }
.feature-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, transform 0.35s var(--ease-out);
}
.feature-list li:hover { border-color: rgba(59, 130, 246, 0.4); transform: translateY(-2px); }
.feature-list .tick {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 0.1rem;
  border-radius: 50%;
  font-size: 0.72rem;
  color: #fff;
  background: var(--btn-grad);
  font-weight: 700;
}
.feature-list strong { color: var(--blue-950); }

/* ---------- Contact / infos ---------- */
.contact-info { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.6rem; }
.info-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.info-item > span:first-child { font-size: 1.15rem; margin-top: 0.05rem; }
.info-item strong { display: block; color: var(--blue-950); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.1rem; }
.info-item a { word-break: break-all; }

/* ---------- Formulaires ---------- */
.form-wrap {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.3rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.form-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--accent-grad);
}

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full, .form-grid > .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-field label { font-weight: 600; font-size: 0.9rem; color: var(--blue-950); }
.req { color: var(--blue-600); }

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ice);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  width: 100%;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.92rem;
  background: var(--ice);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
}
.consent input { margin-top: 0.28rem; accent-color: var(--blue-600); width: 1.05rem; height: 1.05rem; flex: none; }
.consent label { color: var(--ink); }

.form-actions { grid-column: 1 / -1; margin-top: 0.3rem; }
.rgpd-note { grid-column: 1 / -1; font-size: 0.8rem; color: var(--muted); line-height: 1.55; }

.form-message { grid-column: 1 / -1; display: none; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.95rem; }
.form-message.show { display: block; }
.form-message.success { background: var(--success-bg); color: var(--success-fg); border: 1px solid rgba(28, 107, 63, 0.25); }
.form-message.error { background: var(--error-bg); color: var(--error-fg); border: 1px solid rgba(161, 38, 38, 0.25); }

/* ---------- Équipe ---------- */
.team-card { text-align: center; align-items: center; }
.founder-card { text-align: left; align-items: flex-start; }
.founder-card .avatar { margin: 0 0 1.2rem; }
/* Bios de longueurs très inégales : chaque carte prend sa hauteur propre. */
.founders-grid { align-items: start; }
.founders-grid .card { height: auto; }  /* neutralise .card{height:100%} */
.founder-card p { color: var(--muted); line-height: 1.65; margin-bottom: 0.9rem; }
.founder-domains { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.3rem; }
.founder-domains li { font-size: 0.9rem; color: var(--muted); padding-left: 1.1rem; position: relative; }
.founder-domains li::before { content: "—"; position: absolute; left: 0; color: var(--blue-500); }
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #fff;
  background: radial-gradient(120% 120% at 30% 25%, var(--blue-500), var(--blue-900));
  border: 3px solid #fff;
  outline: 2px solid var(--sky-200);
  box-shadow: 0 12px 28px -10px rgba(37, 99, 235, 0.45);
}
.team-card .role {
  display: inline-block;
  color: var(--blue-600);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

/* ---------- Bande CTA ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(130% 160% at 20% 0%, var(--blue-800) 0%, var(--blue-950) 70%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40%;
  background: radial-gradient(30% 40% at 80% 30%, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
  filter: blur(40px);
}
.cta-band h2, .cta-band h3 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 55ch; }

/* ---------- Prose (pages légales) ---------- */
.prose { max-width: 76ch; }
.prose h2 { margin: 2.4rem 0 0.9rem; font-size: 1.5rem; }
.prose h3 { margin: 1.7rem 0 0.6rem; }
.prose p, .prose li { color: var(--ink); margin-bottom: 0.8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.9rem; border: 1px solid var(--line); }
.prose th { background: var(--ice-deep); font-weight: 600; }

.todo {
  background: var(--sky-100);
  border: 1px dashed var(--blue-500);
  border-radius: 4px;
  padding: 0 0.35rem;
  font-weight: 600;
  color: var(--blue-700);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(140% 130% at 85% 0%, var(--blue-900) 0%, var(--blue-950) 70%);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.6rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30%;
  background: radial-gradient(26% 34% at 15% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  filter: blur(40px);
}
.site-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px 160px;
  opacity: 0.035;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.2rem;
  padding-bottom: 2.4rem;
}
@media (max-width: 940px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .brand { color: #fff; }
.footer-about p { margin-top: 0.9rem; font-size: 0.94rem; max-width: 34ch; }
.site-footer h4 {
  color: var(--sky-400);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: #fff; }

/* Suivez-nous : réseaux sociaux, au-dessus des mentions légales */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.6rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line-navy);
}
.site-footer .footer-social h4 { margin: 0; }
.social-links { flex-direction: row !important; flex-wrap: wrap; gap: 0.75rem !important; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.social-links svg { width: 21px; height: 21px; fill: currentColor; }
.social-links a:hover {
  color: #fff;
  background: var(--btn-grad);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(56, 189, 248, 0.6);
}
.social-links a:focus-visible { outline: 2px solid var(--sky-400); outline-offset: 3px; }
@media (max-width: 560px) {
  .footer-social { flex-direction: column; align-items: flex-start; }
  .social-links { gap: 0.9rem !important; }
  .social-links a { width: 48px; height: 48px; }
}

.footer-legal-mention {
  padding-top: 1.4rem;
  margin-top: 0.4rem;
  border-top: 1px solid var(--line-navy);
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal-mention p + p { margin-top: 0.5rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.65); }

/* ---------- Bandeau cookies : carte flottante ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transform: translateY(calc(100% + 1.5rem));
  transition: transform 0.5s var(--ease-out);
}
@supports (backdrop-filter: blur(12px)) {
  .cookie-banner { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); }
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
}
.cookie-banner p { flex: 1 1 320px; font-size: 0.88rem; }
.cookie-banner a { color: var(--blue-600); }
.cookie-banner .btn { padding: 0.55rem 1.2rem; font-size: 0.88rem; }

/* ---------- Encadré expertise (accueil) ---------- */
.expertise-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(150deg, #fff 0%, var(--ice-deep) 100%);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.4rem);
  box-shadow: var(--shadow-md);
}
.expertise-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30%;
  background: radial-gradient(28% 36% at 88% 12%, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
  filter: blur(30px);
}
.expertise-panel .panel-eyebrow {
  display: inline-block;
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.expertise-panel h2 { max-width: 30ch; text-wrap: balance; }
.expertise-panel p { color: var(--muted); max-width: 72ch; margin-top: 0.9rem; }
.expertise-panel .hero-actions { margin-top: 1.6rem; }

/* ---------- Étapes de méthode ---------- */
.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 0.7rem; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
  color: var(--ink);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex: none;
}

/* ---------- Bios factuelles (le cabinet) ---------- */
.team-facts {
  list-style: none;
  text-align: left;
  width: 100%;
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.team-facts li { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.team-facts strong {
  display: block;
  color: var(--blue-950);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

/* ---------- Note réglementaire ---------- */
.fine-note { font-size: 0.85rem; color: var(--muted); line-height: 1.6; max-width: 76ch; }

/* ---------- Parcours de demande (accueil, devis, formulaires) ---------- */
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.hero { min-height: 88svh; }
.hero-call { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero-call-number { font-weight: 500; opacity: 0.85; padding-left: 0.6rem; border-left: 1px solid currentColor; }
@media (max-width: 520px) {
  .hero .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-call { flex-direction: column; gap: 0.1rem; line-height: 1.3; }
  .hero-call-number { border-left: 0; padding-left: 0; font-size: 0.92rem; }
  .hero .hero-eyebrow { font-size: 0.68rem; letter-spacing: 0.1em; }
}

.section-tight { padding-top: clamp(2rem, 4vw, 3rem); }
.page-hero-compact { padding-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.page-hero-compact .container { padding-top: clamp(1.8rem, 4vw, 3rem); }

.section-eyebrow {
  display: inline-block;
  color: var(--blue-600);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.page-hero.has-photo .btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.page-hero.has-photo .btn-outline-light:hover { background: #fff; color: var(--blue-950); }
.card ul { padding-left: 1.1rem; margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }
.card-link { font-weight: 600; font-size: 0.93rem; }

/* Cartes profil de l'accueil */
.profile-card h3 { font-size: 1.3rem; margin-bottom: 0.9rem; }
.profile-links { list-style: none; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; }
.profile-links li + li { border-top: 1px solid var(--line); }
.profile-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.1rem;
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.45;
}
.profile-links a::after { content: "→"; color: var(--blue-600); flex: none; transition: transform 0.25s ease; }
.profile-links a:hover { color: var(--blue-700); text-decoration: none; }
.profile-links a:hover::after { transform: translateX(3px); }

/* Étapes en ligne (accueil) */
.steps-row { flex-direction: row; gap: 1.2rem; }
.steps-row li { flex: 1; flex-direction: column; gap: 0.35rem; align-items: flex-start; padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--radius); }
.steps-row li strong { color: var(--blue-950); font-size: 1.05rem; }
.steps-row li span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .steps-row { flex-direction: column; } }

/* Page devis */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.quote-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.2rem; }
.quote-aside h2 { font-size: 1.35rem; }
.aside-contact { background: var(--ice); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; font-size: 0.95rem; }
.aside-contact strong { color: var(--blue-950); }
.aside-phone { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
@media (max-width: 900px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-aside { position: static; }
}

.form-section-title {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--blue-950);
}

/* Choix du profil en pastilles */
.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-group legend { font-weight: 600; font-size: 0.9rem; color: var(--blue-950); margin-bottom: 0.5rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-row label {
  padding: 0.6rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--ice);
  font-size: 0.93rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.choice-row label:hover { border-color: var(--blue-500); }
.choice-row input:checked + label { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.choice-row input:focus-visible + label { outline: 2px solid var(--blue-600); outline-offset: 2px; }

/* Erreurs par champ */
.field-error { color: var(--error-fg); font-size: 0.85rem; font-weight: 500; line-height: 1.4; margin-top: 0.1rem; }
.consent .field-error { flex-basis: 100%; margin-top: 0.4rem; }
.consent.has-error { flex-wrap: wrap; border-color: rgba(161, 38, 38, 0.45); background: var(--error-bg); }
.has-error input:not([type="checkbox"]):not([type="radio"]),
.has-error select,
.has-error textarea { border-color: var(--error-fg); background: #fff; }
.choice-group.has-error .choice-row label { border-color: rgba(161, 38, 38, 0.45); }

.form-message p + p { margin-top: 0.45rem; }
.form-message a { color: inherit; font-weight: 600; text-decoration: underline; }

/* .form-grid impose display:grid, qui l'emporterait sur l'attribut hidden. */
form[hidden] { display: none !important; }

/* Confirmation après prise en charge effective */
.form-confirm { text-align: center; padding: clamp(1rem, 3vw, 2rem) 0.5rem; outline: none; }
.form-confirm-icon {
  width: 60px; height: 60px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success-fg);
  font-size: 1.6rem;
  font-weight: 700;
}
.form-confirm h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.form-confirm-ref { color: var(--muted); margin-bottom: 1.2rem; }
.form-confirm-ref strong { color: var(--blue-950); letter-spacing: 0.04em; }
.form-confirm-next { font-weight: 600; color: var(--blue-950); margin-bottom: 0.2rem; }
.form-confirm p { max-width: 46ch; margin-left: auto; margin-right: auto; }
.form-confirm-help { color: var(--muted); font-size: 0.92rem; margin: 1rem auto 1.4rem; }

/* ---------- Reveals au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Accessibilité / mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
