/* ==========================================================
   THEME "PROFOND" (clair, contrasté)
   À charger APRÈS css/styles.css, un seul thème à la fois :
   <link rel="stylesheet" href="css/styles.css">
   <link rel="stylesheet" href="css/theme-profond.css">

   - Garde l'identité turquoise, en plus foncé (texte lisible : AA).
   - Fond de page légèrement teinté : les cartes blanches ressortent.
   - Bordures et ombres plus marquées, bandeaux presque noirs.
   - Mise en avant : titre « Parlez à votre courtier » et titres
     des menus déroulants (FAQ).
   ========================================================== */

:root {
  --background: #f1f6f6;
  --foreground: #0a1b1e;
  --card: #ffffff;
  --card-foreground: #0a1b1e;
  --popover: #ffffff;
  --muted: #e6eeee;
  --muted-foreground: #46585a;
  --border: #c5d6d5;
  --input: #b4c9c8;

  --primary: #00736a;
  --primary-foreground: #ffffff;
  --secondary: #e0f1ee;
  --accent: #e0f1ee;
  --ring: #00736a;

  --brand-teal: #00736a;            /* contraste ~5,7:1 sur blanc */
  --brand-teal-text: #00736a;       /* si une règle .text-brand-teal l'utilise */
  --brand-teal-light: #6fe0d3;      /* texte sur fonds sombres */
  --brand-teal-soft: #e0f1ee;

  --brand-orange: #d4500b;
  --brand-orange-dark: #b84208;

  --brand-anthracite: #0a1b1e;
  --brand-text: #14292c;

  --gradient-brand: linear-gradient(120deg, #005a56 0%, #00877a 50%, #2f9e6a 100%);
  --gradient-anthracite: linear-gradient(135deg, #061214, #0e3a3d);
  --shadow-soft: 0 8px 28px -8px rgba(0, 115, 106, .38);
  --shadow-card: 0 4px 18px -6px rgba(10, 27, 30, .24);

  --brand-green: #2f9e6a;
  --brand-green-light: #7fd9a8;
}

/* ---------- Ambiance générale ---------- */
header.sticky {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 16px -10px rgba(10, 27, 30, .45);
}
h1.font-light, h2.font-light { font-weight: 400; }          /* titres un peu plus présents */
.bg-brand-teal-soft\/40 { background-color: #deeeec; }        /* sections alternées plus nettes */
.bg-brand-teal-soft\/30 { background-color: #e6f2f0; }
.bg-brand-anthracite { border-bottom: 1px solid rgba(111, 224, 211, .35); }

:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 2px; }

/* Fonds décoratifs écrits en ligne dans le HTML */
#top > div[aria-hidden="true"] {
  background:
    radial-gradient(60% 50% at 10% 10%, rgba(0, 115, 106, .16) 0%, transparent 60%),
    radial-gradient(50% 40% at 90% 0%, rgba(47, 158, 106, .14) 0%, transparent 60%) !important;
}
section.bg-gradient-anthracite > div[aria-hidden="true"] {
  background: radial-gradient(40% 50% at 80% 30%, #00a597 0%, transparent 60%) !important;
}

/* ---------- Mise en avant : « Parlez à votre courtier » ---------- */
#formulaire .rounded-2xl.border {
  border-top: 4px solid var(--brand-teal);
  box-shadow: 0 20px 48px -20px rgba(0, 115, 106, .5);
}
#formulaire h2 {
  width: fit-content;
  position: relative;
  padding-bottom: .65rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
#formulaire h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-orange);
}
@media (min-width: 40rem) { #formulaire h2 { font-size: 1.75rem; } }

/* ---------- Mise en avant : titres des menus déroulants (FAQ) ---------- */
h3[data-orientation] > button {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.005em;
  color: var(--brand-anthracite);
}
h3[data-orientation] > button svg { color: var(--brand-teal); }
h3[data-state="open"] > button { color: var(--brand-teal); }

div[data-state][data-orientation="vertical"].rounded-xl {
  border-left-width: 4px;
  border-color: var(--border);
}
div[data-state="open"][data-orientation="vertical"].rounded-xl {
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-soft);
}

/* ---------- Animations dont les couleurs étaient en dur ---------- */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 115, 106, .5); }
  50%      { box-shadow: 0 0 0 14px rgba(0, 115, 106, 0); }
}
@keyframes soft-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 115, 106, .4); }
  50%      { box-shadow: 0 0 0 8px rgba(0, 115, 106, 0); }
}
.cta-halo:after { background: rgba(0, 115, 106, .38); }
@media (pointer: coarse) { .cta-halo:after { background: rgba(0, 115, 106, .24); } }
.bg-gradient-brand-animated {
  background: linear-gradient(120deg, #005a56, #00877a, #2f9e6a, #00877a, #005a56) 0 0 / 300% 300%;
  animation: 8s infinite shimmer-bg;
}
.lift-card:hover {
  border-color: rgba(0, 115, 106, .55);
  box-shadow: 0 20px 40px -18px rgba(10, 27, 30, .35);
}
