/* Césaire Assurances — direction 2026
   Confiance navy · CTA verts · accents orange · verre transparent */

:root {
  --leaf: #8dcc3f;
  --leaf-bright: #b8f46f;
  --leaf-deep: #417b25;
  --leaf-action: #6fb52f;
  --leaf-action-dark: #4f8f25;
  --leaf-soft: #eff9e7;
  --leaf-line: rgba(218, 255, 177, 0.42);
  --navy-deep: #0a1c3d;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 18px 50px rgba(19, 44, 91, 0.10);
}

body {
  background:
    radial-gradient(circle at 4% 18%, rgba(141, 204, 63, 0.07), transparent 25rem),
    var(--bg);
}

::selection { background: rgba(141, 204, 63, 0.34); color: var(--navy); }

:focus-visible {
  outline: 3px solid rgba(141, 204, 63, 0.72);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--leaf-action), var(--leaf-deep));
  color: #fff;
  box-shadow: 0 8px 22px rgba(111, 181, 47, 0.30);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7fc941, var(--leaf-action-dark));
  color: #fff;
}

.btn-primary:focus-visible {
  outline-color: rgba(184, 244, 111, 0.82);
}

.site-footer .btn-primary,
.site-footer .btn-primary:hover {
  color: #fff;
}

/* En-tête vitré */
.site-header {
  background: rgba(248, 252, 246, 0.82);
  border-bottom-color: rgba(141, 204, 63, 0.20);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 8px 30px rgba(19, 44, 91, 0.05);
}

.main-nav a.nav-link:hover,
.nav-menu a:hover { background: rgba(141, 204, 63, 0.10); }

.nav-menu {
  background: rgba(251, 254, 249, 0.94);
  border-color: rgba(141, 204, 63, 0.22);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
}

/* Hero corporate : un message, deux parcours, de l'espace pour le film d'agence. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 64px 0 0;
  color: #fff;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  background: var(--navy-deep);
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video,
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-media img {
  filter: saturate(0.92) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 21, 48, 0.94) 0%, rgba(9, 27, 58, 0.80) 55%, rgba(8, 24, 50, 0.38) 100%),
    linear-gradient(180deg, transparent 65%, rgba(7, 21, 48, 0.30));
}

.hero .container { position: relative; z-index: 2; }
.hero-inner { position: relative; min-height: 420px; }
.hero-copy { max-width: 680px; }

.hero .kicker {
  color: #ffb27a;
  letter-spacing: 0.10em;
  margin-bottom: 22px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(48px, 6.2vw, 80px);
  letter-spacing: -0.045em;
  line-height: 1.07;
  margin-bottom: 24px;
}

.hero-intro {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}

.hero-response-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero-response-badge span { color: #ffb27a; font-size: 14px; line-height: 1; }

.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.hero-action { min-width: 0; }
.hero-cta { justify-content: center; gap: 12px; padding: 14px 18px; min-height: 58px; border-radius: 12px; font-size: 15px; }
.hero-action-estimate .hero-cta { min-width: 248px; min-height: 52px; padding: 12px 15px; font-size: 14px; }
.hero-action-detailed .hero-cta { min-width: 184px; min-height: 52px; padding: 11px 14px; font-size: 14px; }
.hero-cta-estimate {
  color: #fff;
  background: var(--leaf-action);
  border: 1px solid var(--leaf-action);
  box-shadow: none;
}
.hero-cta-estimate:hover { color: #fff; background: var(--leaf-action-dark); border-color: var(--leaf-action-dark); }
.hero-cta-detailed {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 30px rgba(7, 21, 48, 0.16);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}
.hero-cta-detailed:hover { color: #fff; background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.78); }
.hero-eligible-note { max-width: 610px; margin: 20px 0 0; color: rgba(255, 255, 255, 0.84); font-size: 13px; line-height: 1.45; }
.hero-eligible-note a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.hero-devis-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(430px, 37vw);
  padding: 34px 34px 32px;
  border-radius: 20px 20px 0 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.20);
  text-align: center;
}
.hero-devis-panel h2 { margin: 0 0 24px; color: var(--navy-deep); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.12; }
.hero-devis-panel .btn { min-width: 220px; }

.journey-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #ff9a3d, var(--orange));
  font-size: 10px;
  font-weight: 800;
}

/* Les engagements conservent leur verre transparent. */
.argu {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008) 55%, rgba(255, 255, 255, 0.025));
  /* Clear glass: preserve the image/video colours and visible detail behind it. */
  -webkit-backdrop-filter: blur(3px) saturate(110%);
  backdrop-filter: blur(3px) saturate(110%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 12px 36px rgba(4, 15, 33, 0.12);
}

/* Rythme éditorial et cartes */
.service-stories { display: grid; gap: 0; }
.service-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  grid-template-areas: "copy media";
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  padding: 58px 0;
  border-top: 1px solid rgba(19, 44, 91, 0.12);
}
.service-story:nth-child(even) {
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  grid-template-areas: "media copy";
}
.service-story-copy { grid-area: copy; min-width: 0; }
.service-story-index { display: block; margin-bottom: 16px; color: var(--orange-dark); font-size: 14px; font-weight: 700; letter-spacing: 0.055em; }
.service-story h3 { margin: 0 0 18px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.035em; }
.service-story-description { max-width: 440px; margin: 0 0 24px; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.service-story-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; list-style: none; padding: 0; margin: 0 0 28px; }
.service-story-links li { border-bottom: 1px solid rgba(19, 44, 91, 0.10); }
.service-story-links a { display: block; padding: 12px 0; color: var(--navy); font-size: 14px; font-weight: 600; text-decoration: none; }
.service-story-links a:hover { color: var(--leaf-deep); text-decoration: underline; text-underline-offset: 4px; }
.insurance-arrow { display: inline-block; margin-left: 3px; font-size: 0.76em; font-weight: 900; line-height: 1; transform: translateY(-0.08em); }
.service-story-copy > .btn { gap: 20px; }
.service-story-media { grid-area: media; position: relative; margin: 0; width: 100%; max-width: 460px; min-width: 0; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 26px; background: var(--navy-deep); box-shadow: 0 20px 48px rgba(10, 28, 61, 0.12); }
.service-video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .service-story,
  .service-story:nth-child(even) { grid-template-columns: 1fr; grid-template-areas: "copy" "media"; gap: 28px; padding: 38px 0; }
  .service-story-description { max-width: 600px; }
  .service-story-media { aspect-ratio: 16 / 9; border-radius: 22px; }
}
@media (max-width: 400px) {
  .service-story-links { grid-template-columns: 1fr; }
}
.section { padding: 92px 0; }
.section-tight { padding: 66px 0; }
.kicker { color: var(--orange-dark); }

.card {
  border-color: rgba(141, 204, 63, 0.15);
  box-shadow: var(--shadow);
}

.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--leaf), rgba(184, 244, 111, 0.08));
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(141, 204, 63, 0.34);
  box-shadow: 0 24px 62px rgba(19, 44, 91, 0.14);
}

.service-list li::before { color: var(--leaf-deep); }

.intro-photo,
.agency-shots { border-radius: 28px; }

.intro-photo {
  box-shadow: 18px 18px 0 rgba(141, 204, 63, 0.10), 0 20px 48px rgba(19, 44, 91, 0.12);
}

/* Équipe : reproduction de la grille de portraits de la référence fournie. */
.team-section { background: #fff; padding: 100px 0; }
.team-heading { margin-bottom: 44px; }
.team-heading h2 { font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -0.045em; line-height: 1.15; margin-bottom: 20px; }
.team-heading > p { margin: 0; color: var(--ink-soft); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; }
.team-portraits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.team-member { min-width: 0; }
.team-portrait { position: relative; overflow: hidden; aspect-ratio: 2 / 3; border-radius: 10px; background: #ece9e2; margin-bottom: 14px; }
/* Recadrage CSS de la photo actuelle : un visage par portrait, source préservée. */
.team-portrait img { position: absolute; width: 750%; max-width: none; height: auto; top: var(--portrait-top); left: var(--portrait-offset); display: block; }
.team-portrait-01 { --portrait-offset: -184.38%; --portrait-top: -72.50%; }
.team-portrait-02 { --portrait-offset: -256.88%; --portrait-top: -95%; }
.team-portrait-03 { --portrait-offset: -334.38%; --portrait-top: -89.58%; }
.team-portrait-04 { --portrait-offset: -413.75%; --portrait-top: -99.17%; }
.team-portrait-05 { --portrait-offset: -493.75%; --portrait-top: -84.17%; }
.team-member-role { margin: 0 0 4px; color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
.team-member h3 { margin: 0 0 7px; color: var(--navy-deep); font-size: 21px; letter-spacing: -0.04em; line-height: 1.2; text-wrap: pretty; }
.team-member-description { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.team-preview-note { margin: 30px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
@media (max-width: 980px) {
  .team-portraits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 22px; }
}
@media (max-width: 640px) {
  .team-section { padding: 60px 0; }
  .team-heading { margin-bottom: 30px; }
  .team-portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
  .team-member h3 { font-size: 20px; }
}

.band-navy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(184, 244, 111, 0.15), transparent 25rem),
    radial-gradient(circle at 88% 90%, rgba(141, 204, 63, 0.10), transparent 30rem),
    var(--navy);
}

.band-navy .grid-3 { gap: 18px; }

.argu {
  border-radius: 22px;
  padding: 26px 22px;
}

.argu .argu-num {
  border-color: rgba(255, 178, 122, 0.95);
  background: rgba(249, 115, 22, 0.16);
  color: #ffb27a;
}

.resil-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid rgba(218, 255, 177, 0.30);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(184, 244, 111, 0.18), rgba(255, 255, 255, 0.06));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.resil-banner h3 { color: #fff; margin-bottom: 5px; }
.resil-banner p { color: rgba(255, 255, 255, 0.70); margin: 0; }
.office-card { border-radius: 28px; }

.cta-final {
  padding: 44px;
  border: 1px solid rgba(141, 204, 63, 0.24);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(239, 249, 231, 0.92), rgba(255, 255, 255, 0.82));
  box-shadow: 0 22px 60px rgba(19, 44, 91, 0.09);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Pages intérieures et formulaires */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0;
  background:
    radial-gradient(circle at 78% 0%, rgba(184, 244, 111, 0.18), transparent 28rem),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: rgba(141, 204, 63, 0.08);
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero .kicker { color: #ffb27a; }
.page-hero a { color: var(--leaf-bright); }

.devis-card,
.devis-reassurance {
  border-color: rgba(141, 204, 63, 0.18);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(19, 44, 91, 0.08);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.chat-composer input:focus,
.dossier-compose textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(141, 204, 63, 0.14);
}

.motif-autre-field.is-hidden { display: none; }

#rdv-form:has(#f-motif option[value="autre"]:checked) .motif-autre-field {
  display: block;
}

.step .dot,
.step.done .dot {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 18px rgba(19, 44, 91, 0.18);
}

.step.active .dot {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.22);
}

.day-cell.selected,
.slot.selected {
  border-color: var(--leaf-deep);
  background: var(--leaf-deep);
  color: #fff;
}

.day-cell.selected .dow,
.day-cell.selected .dnum,
.day-cell.selected .dmon {
  color: #fff;
}

.devis-choice:hover,
.devis-produit:hover,
.day-cell:hover,
.slot:hover { border-color: var(--leaf); }

.devis-choice.selected,
.devis-produit.selected {
  border-color: var(--leaf-deep);
  background: var(--leaf-soft);
}

.consent input { accent-color: var(--leaf-deep); }

/* Lény */
.chat-fab {
  background: rgba(239, 249, 231, 0.88);
  color: var(--navy);
  border: 1px solid rgba(141, 204, 63, 0.38);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 14px 36px rgba(19, 44, 91, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.chat-fab:hover { background: rgba(218, 247, 188, 0.96); color: var(--navy); }
.chat-head { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.chat-head .bot-status::before { background: var(--leaf-bright); }

@media (max-width: 860px) {
  .section { padding: 66px 0; }
  .section-tight { padding: 50px 0; }

  .main-nav {
    background: rgba(249, 253, 247, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .hero { min-height: 530px; padding: 64px 0 56px; align-items: center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(7, 21, 48, 0.92) 0%, rgba(7, 22, 46, 0.82) 100%); }
  .hero-inner { min-height: 0; }
  .hero-devis-panel { position: static; width: min(100%, 520px); margin-top: 34px; border-radius: 18px; }
  .resil-banner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding: 60px 0 50px; }
  .hero h1 { font-size: clamp(36px, 9vw, 54px); }
  .hero .kicker { font-size: 10px; max-width: 310px; margin-bottom: 20px; }
  .hero-intro { font-size: 16px; }
  .hero-response-badge { margin-top: 16px; font-size: 13px; }
  .hero-ctas { flex-direction: column; gap: 12px; margin-top: 26px; }
  .hero-cta { width: 100%; justify-content: flex-start; padding-inline: 14px; font-size: 14px; }
  .hero-action, .hero-action-estimate .hero-cta, .hero-action-detailed .hero-cta { width: 100%; min-width: 0; }
  .hero-action-detailed .hero-cta { min-height: 58px; padding: 14px; font-size: 14px; }
  .hero-devis-panel { padding: 28px 20px; }
  .hero-eligible-note { margin-top: 18px; }
  .cta-final { padding: 30px 22px; }
  .chat-fab { right: 14px; bottom: 14px; padding: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card { transition: none; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .argu { background: rgba(255, 255, 255, 0.035); }
  .resil-banner { background: rgba(31, 66, 48, 0.96); }
  .chat-fab { background: #f3faed; }
}

/* Accès directs et navigation complète */
section[id], .legal-block[id] { scroll-margin-top: 110px; }
.header-inner { max-width: 1280px; gap: 14px; }
.main-nav a.nav-link { padding-inline: 10px; font-size: 14px; }
.nav-drop.open > .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu { top: 100%; }
.hero-followup { background: #fff; }
.hero-support-message { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 24px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.hero-support-message p { margin: 0; color: var(--navy); font-size: 15px; }
.hero-support-message strong { font-weight: 700; }
.hero-support-message a { color: var(--leaf-deep); font-size: 13px; font-weight: 600; }
.hero-support-message a span { margin-left: 6px; }
.section-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.section-links a { padding: 8px 16px; border-radius: 30px; color: var(--navy); font-size: 14px; font-weight: 600; }
.section-links a:hover { background: var(--leaf-soft); text-decoration: none; }
.service-list a { color: var(--ink); display: block; }
.service-list a:hover { color: var(--leaf-deep); }
.preview-notice { padding: 10px 18px; background: #eef5e8; border-bottom: 1px solid #ccddbe; color: #304624; font-size: 14px; text-align: center; }
.hero .container { width: 100%; }
.hero-media video[hidden] { display: none; }
.hero-motion-toggle { position: absolute; right: 22px; bottom: 16px; z-index: 4; border: 1px solid #ffffff60; border-radius: 24px; padding: 8px 14px; color: #fff; background: #102033b3; cursor: pointer; }
.prod-video > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.catalog-card h3 { margin-top: 14px; }
.catalog-card .btn { margin-top: 12px; }
.devis-mode-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.devis-mode-switch a { color: var(--navy); font-weight: 600; font-size: 14px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 30px; background: white; }
.devis-mode-switch a[aria-current] { background: var(--leaf-soft); border-color: var(--leaf-deep); }
@media(max-width: 640px) {
  .brand-name { font-size: 14px; }
  .brand-mark { height: 38px; }
  .header-inner { padding-inline: 16px; }
  .section-links { gap: 2px; padding: 12px; }
  .section-links a { padding: 8px 10px; font-size: 12px; }
  .hero-support-message { flex-direction: column; gap: 8px; padding: 20px 24px; text-align: center; }
  .hero-support-message p { max-width: 360px; font-size: 14px; }
  .intro-photo { box-shadow: 7px 9px 0 rgba(141, 204, 63, 0.10); }
  .office-line { flex-wrap: wrap; gap: 2px 10px; }
  .office-body { padding: 22px; }
  .footer-brand-line .brand-name { font-size: 14px; }
}
