/* =========================================================================
   My First Assurance — agence d'assurances (Lille / Valenciennes) — site.css
   Archétype : « assurance / confiance — corporate moderne & rassurant ».
   Signature : MOTIF BOUCLIER (clip-path) sur les icônes & badges + grands écussons
   en filigrane, palette navy + teal-mint, typo Schibsted Grotesk.
   ANTI-FOOTPRINT : aucune classe custom — uniquement classes/ids Bootstrap existants,
   éléments et pseudo-éléments.
   ========================================================================= */

:root {
  --mf-navy: #1f2a5b;           /* navy profond (dominante) */
  --mf-navy-rgb: 31, 42, 91;
  --mf-navy-2: #161f44;
  --mf-navy-3: #2e3c77;
  --mf-teal: #19c3b2;           /* teal-mint (accent / confiance) */
  --mf-teal-rgb: 25, 195, 178;
  --mf-teal-deep: #109a8c;
  --mf-bg: #f5f8fa;            /* gris clair (fond) */
  --mf-paper: #ffffff;
  --mf-ink: #1a2342;
  --mf-muted: #6b7493;
  --mf-line: #e3e8f0;

  --bs-primary: #1f2a5b;
  --bs-primary-rgb: 31, 42, 91;

  --bs-body-bg: var(--mf-bg);
  --bs-body-color: #45506e;
  --bs-body-font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --bs-body-font-size: 1.04rem;
  --bs-body-line-height: 1.68;

  --bs-heading-color: var(--mf-navy);
  --bs-link-color: var(--mf-navy);
  --bs-link-hover-color: var(--mf-teal-deep);
  --bs-border-color: var(--mf-line);

  --mf-shadow: 0 26px 54px -32px rgba(22, 31, 68, 0.4), 0 6px 16px -10px rgba(22, 31, 68, 0.18);
  --mf-shield: polygon(50% 0%, 100% 16%, 100% 60%, 50% 100%, 0% 60%, 0% 16%);
}

body { background-color: var(--mf-bg); -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif; font-weight: 700;
  line-height: 1.16; letter-spacing: -0.01em; color: var(--mf-navy);
}
p { text-wrap: pretty; }
::selection { background: var(--mf-teal); color: var(--mf-navy); }
a { transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease, border-color 0.16s ease; }

#sec-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; position: relative; padding-bottom: 0.9rem; }
#sec-title::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--mf-teal); }

/* =========================================================================
   TOP BAR + NAVBAR
   ========================================================================= */
#topbar { background: var(--mf-navy-2); color: #b9c2e0; font-size: 0.84rem; }
#topbar a { color: #b9c2e0; text-decoration: none; }
#topbar-tel { font-weight: 600; }
#topbar .bi { color: var(--mf-teal); }

.navbar.sticky-top {
  background-color: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--mf-line);
  box-shadow: 0 8px 24px -20px rgba(22, 31, 68, 0.5);
}
#brand-logo { height: auto; max-height: 48px; width: auto; }
.navbar .nav-link {
  font-family: 'Schibsted Grotesk', sans-serif; font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.02em; color: var(--mf-navy) !important; position: relative; padding-inline: 0.7rem;
}
.navbar .nav-link::after { content: ''; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.3rem; height: 2px; background: var(--mf-teal); transform: scaleX(0); transform-origin: left; transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1); }
.navbar .nav-link:hover::after, .navbar .nav-link:focus::after { transform: scaleX(1); }
.navbar .nav-link:hover { color: var(--mf-teal-deep) !important; }

/* =========================================================================
   BOUTONS
   ========================================================================= */
.btn { --bs-btn-font-family: 'Schibsted Grotesk', sans-serif; --bs-btn-font-weight: 700; border-radius: 8px; }
.btn-lg { padding: 0.7rem 1.7rem; }
.btn-primary { --bs-btn-bg: var(--mf-teal); --bs-btn-color: var(--mf-navy); --bs-btn-border-color: var(--mf-teal); --bs-btn-hover-bg: var(--mf-teal-deep); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--mf-teal-deep); box-shadow: 0 12px 24px -14px rgba(25, 195, 178, 0.7); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline-light:hover { color: var(--mf-navy) !important; }

/* =========================================================================
   HERO + BOUCLIER (signature)
   ========================================================================= */
#hero { position: relative; overflow: hidden; background: linear-gradient(125deg, var(--mf-navy), var(--mf-navy-2)); padding: 5rem 0; }
#hero-shield, #servizi-shield { position: absolute; z-index: 0; pointer-events: none; background: var(--mf-teal); opacity: 0.08; clip-path: var(--mf-shield); }
#hero-shield { width: 460px; height: 540px; top: -90px; right: -90px; }
#hero .container, #servizi .container { z-index: 1; }
#hero-eyebrow { display: inline-block; color: var(--mf-teal); font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: 0.92rem; margin-bottom: 1rem; }
#hero-title { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
#hero-intro { color: #c5cce6; font-size: 1.2rem; margin: 1.2rem 0 2rem; max-width: 38rem; }
#hero-badge { width: 220px; height: 250px; margin: 0 auto; background: linear-gradient(160deg, var(--mf-teal), var(--mf-teal-deep)); clip-path: var(--mf-shield); display: flex; align-items: center; justify-content: center; box-shadow: 0 30px 60px -30px rgba(25, 195, 178, 0.6); }
#hero-badge .bi { color: #fff; font-size: 5.5rem; }

/* =========================================================================
   BIENVENUE
   ========================================================================= */
#bienvenue-sopra { display: inline-block; font-family: 'IBM Plex Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.84rem; color: var(--mf-teal-deep); font-weight: 600; margin-bottom: 0.8rem; }
#bienvenue-sopra strong { color: var(--mf-navy); }
#bienvenue-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
#bienvenue-text { color: #45506e; font-size: 1.12rem; margin-top: 1rem; }

/* =========================================================================
   NOS ASSURANCES — cartes à icône bouclier
   ========================================================================= */
#ass-card { background: var(--mf-paper); border: 1px solid var(--mf-line); border-radius: 16px; padding: 2rem; box-shadow: var(--mf-shadow); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
#ass-card:hover { transform: translateY(-6px); border-color: var(--mf-teal); box-shadow: 0 34px 60px -34px rgba(22, 31, 68, 0.5); }
#ass-icon { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4.4rem; background: rgba(25, 195, 178, 0.14); color: var(--mf-teal-deep); font-size: 1.7rem; clip-path: var(--mf-shield); margin-bottom: 1.1rem; }
#ass-card:hover #ass-icon { background: var(--mf-teal); color: #fff; }
#ass-title { font-size: 1.25rem; font-weight: 700; color: var(--mf-navy); margin-bottom: 0.7rem; }
#ass-more { font-family: 'Schibsted Grotesk', sans-serif; font-weight: 600; color: var(--mf-teal-deep); font-size: 0.9rem; }

/* =========================================================================
   NOS SERVICES (section navy)
   ========================================================================= */
#servizi { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--mf-navy), var(--mf-navy-2)); }
#servizi-shield { width: 360px; height: 420px; bottom: -120px; left: -90px; }
#servizi-title { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
#servizi-text { color: #c5cce6; max-width: 44rem; margin: 0.8rem auto 0; }
#canale-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; transition: transform 0.18s ease, background 0.18s ease; }
#canale-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.12); }
#canale-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.6rem; background: var(--mf-teal); color: var(--mf-navy); font-size: 1.4rem; clip-path: var(--mf-shield); margin-bottom: 0.9rem; }
#canale-label { color: #fff; font-size: 1.05rem; margin-bottom: 0.3rem; }
#canale-val { color: #b9c2e0; font-size: 0.92rem; word-break: break-word; }

/* =========================================================================
   NOS PARTENAIRES
   ========================================================================= */
#part-logo { background: #fff; border: 1px solid var(--mf-line); border-radius: 12px; padding: 1rem; height: 5.5rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--mf-shadow); }
#part-logo img { max-height: 100%; width: auto; object-fit: contain; }
#part-chip { font-family: 'IBM Plex Sans', sans-serif; font-size: 0.82rem; font-weight: 500; color: var(--mf-navy); background: var(--mf-paper); border: 1px solid var(--mf-line); padding: 0.35rem 0.8rem; border-radius: 999px; }

/* =========================================================================
   SEO + FOOTER
   ========================================================================= */
#seo { background: var(--mf-paper); border-top: 1px solid var(--mf-line); }
#seo h2 { color: var(--mf-navy); }
#seo p { color: var(--mf-muted); }

footer#colophon { background: var(--mf-navy-2); color: #aeb7d6; padding: 3.6rem 0 2rem; border-top: 4px solid var(--mf-teal); }
#footer-name { color: #fff; font-family: 'Schibsted Grotesk', sans-serif; font-weight: 800; }
#footer-name .bi { color: var(--mf-teal); }
#footer-ecoute { color: #aeb7d6; font-size: 0.95rem; }
#footer-label { color: var(--mf-teal); letter-spacing: 0.08em; font-family: 'Schibsted Grotesk', sans-serif; }
footer#colophon a, footer#colophon li { color: #aeb7d6 !important; }
footer#colophon a:hover { color: #fff !important; }
footer#colophon .bi { color: var(--mf-teal); }
#footer-social { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-size: 1.2rem; }
#footer-social:hover { background: var(--mf-teal); }
#footer-social:hover .bi { color: var(--mf-navy); }
#footer-legale li { color: #8e98bd; }
#footer-rule { border-top-color: rgba(255, 255, 255, 0.12); opacity: 1; }
#copyright { color: #8e98bd; }

/* a11y */
a:focus-visible, .btn:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--mf-teal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
