/* ==========================================================================
   Groupe Mutuelle — thème 2026 (header, footer, cadre de page)
   ========================================================================== */
:root {
  --gm-primary: #4a5fc1;
  --gm-primary-dark: #3a4da8;
  --gm-primary-soft: #eef0fb;
  --gm-ink: #2f3a4a;
  --gm-ink-2: #5b6576;
  --gm-muted: #8a93a3;
  --gm-line: #e6e9f0;
  --gm-bg: #f5f6fa;
  --gm-white: #fff;
  --gm-dark: #232b38;
  --gm-dark-2: #2c3544;
  --gm-accent: #fde9e3;
  --gm-radius: 12px;
  --gm-shadow: 0 10px 30px rgba(35, 43, 56, .08);
  --gm-container: 1200px;
  --gm-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gm-font-title: "Poppins", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.gm {
  margin: 0;
  font-family: var(--gm-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--gm-ink);
  background: var(--gm-bg);
}
.gm a { color: var(--gm-primary); text-decoration: none; }
.gm a:hover { color: var(--gm-primary-dark); }
.gm img { max-width: 100%; height: auto; }
.gm-container { width: 100%; max-width: var(--gm-container); margin: 0 auto; padding: 0 20px; }
.gm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gm-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--gm-primary); color: #fff !important; padding: 10px 16px; }
.gm-skip:focus { left: 10px; top: 10px; }
.gm svg { flex-shrink: 0; }

/* ---------- Boutons ---------- */
.gm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 14px/1.2 var(--gm-font); white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.gm .gm-btn-primary { background: var(--gm-primary); color: #fff; }
.gm .gm-btn-primary:hover { background: var(--gm-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(74, 95, 193, .3); }
.gm .gm-btn-light { background: #fff; color: var(--gm-ink); }
.gm .gm-btn-light:hover { color: var(--gm-primary); transform: translateY(-1px); }
.gm .gm-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.gm .gm-btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Logo ---------- */
.gm-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--gm-ink) !important; }
.gm-logo svg { width: 46px; height: 46px; }
.gm-logo-text { font: 800 17px/1 var(--gm-font-title); letter-spacing: .02em; text-transform: uppercase; }
.gm-logo-text span { display: block; }
.gm-logo-text span + span { margin-top: 2px; }
.gm-logo--light { color: #fff !important; }
.gm-logo--light .gm-logo-dark { fill: #fff; }
.gm-logo--light .gm-logo-dark-stroke { stroke: #fff; }

/* ---------- Topbar ---------- */
.gm-topbar { background: var(--gm-dark); color: #d5dae3; font-size: 12.5px; }
.gm-topbar .gm-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.gm-topbar p { margin: 0; display: flex; align-items: center; gap: 8px; }
.gm-topbar ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.gm-topbar li { display: flex; align-items: center; gap: 7px; }
.gm-topbar a { color: #fff !important; }
.gm-topbar a:hover { color: #c6cdf2 !important; }

/* ---------- Header ---------- */
.gm-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--gm-line); transition: box-shadow .25s; }
.gm-header.is-scrolled { box-shadow: 0 6px 24px rgba(35, 43, 56, .08); }
.gm-header .gm-container { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.gm-header .gm-logo { flex-shrink: 0; }
.gm-nav { flex: 1; display: flex; justify-content: center; }
.gm-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gm-menu > li { position: relative; }
.gm-menu > li > a, .gm-menu > li > button {
  display: flex; align-items: center; gap: 5px; padding: 10px 12px; border: 0; background: none;
  font: 500 14.5px/1.2 var(--gm-font); color: var(--gm-ink); cursor: pointer; border-radius: 8px; white-space: nowrap;
}
.gm-menu > li > a:hover, .gm-menu > li > button:hover, .gm-menu > li.is-active > a, .gm-menu > li.is-active > button { color: var(--gm-primary); }
.gm-menu .gm-caret { width: 10px; height: 10px; transition: transform .2s; }
.gm-sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; margin: 0; padding: 10px; list-style: none;
  background: #fff; border: 1px solid var(--gm-line); border-radius: var(--gm-radius); box-shadow: var(--gm-shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.gm-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.gm-sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--gm-ink); font-size: 14px; }
.gm-sub a:hover { background: var(--gm-primary-soft); color: var(--gm-primary); }
.gm-menu > li:hover > .gm-sub, .gm-menu > li:focus-within > .gm-sub, .gm-menu > li.is-open > .gm-sub { opacity: 1; visibility: visible; transform: none; }
.gm-menu > li:hover .gm-caret, .gm-menu > li.is-open .gm-caret { transform: rotate(180deg); }
.gm-header-actions { display: flex; align-items: center; gap: 18px; }
.gm-call { display: flex; align-items: center; gap: 10px; color: var(--gm-ink) !important; line-height: 1.2; white-space: nowrap; }
.gm-call-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gm-primary-soft); color: var(--gm-primary); }
.gm-call small { display: block; font-size: 11.5px; color: var(--gm-muted); }
.gm-call strong { font-size: 14.5px; }
.gm-burger { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--gm-line); border-radius: 10px; background: #fff; color: var(--gm-ink); cursor: pointer; place-items: center; }

/* ---------- Cadre de page ---------- */
.gm-main { padding: 36px 0 64px; }
.gm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.gm-content {
  background: #fff; border: 1px solid var(--gm-line); border-radius: var(--gm-radius);
  padding: 32px 36px; overflow-wrap: anywhere; min-width: 0;
}
.gm-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.gm-card { background: #fff; border: 1px solid var(--gm-line); border-radius: var(--gm-radius); padding: 22px; }
.gm-card h3 { margin: 0 0 8px; font: 600 17px/1.35 var(--gm-font-title); color: var(--gm-ink); }
.gm-card p { margin: 0 0 16px; color: var(--gm-ink-2); font-size: 14px; }
.gm-card--cta { background: var(--gm-primary); border-color: var(--gm-primary); color: #fff; }
.gm-card--cta h3, .gm-card--cta p { color: #fff; }
.gm-card--cta .gm-btn { width: 100%; }
.gm-card--accent { background: var(--gm-accent); border-color: #f8d6cc; }
.gm-card-phone { display: flex; align-items: center; gap: 12px; color: var(--gm-ink) !important; }
.gm-card-phone strong { display: block; font: 700 19px/1.2 var(--gm-font-title); }
.gm-card-phone small { color: var(--gm-ink-2); }
.gm-card ul { margin: 0; padding: 0; list-style: none; }
.gm-card li + li { border-top: 1px solid var(--gm-line); }
.gm-card li a { display: block; padding: 9px 0; color: var(--gm-ink); font-size: 14px; }
.gm-card li a:hover { color: var(--gm-primary); }

/* ---------- Contenu hérité (anciens articles) ---------- */
.gm-content h1, .gm-content h2, .gm-content h3, .gm-content h4,
.gm-content .componentheading, .gm-content .contentheading { font-family: var(--gm-font-title); color: var(--gm-ink); line-height: 1.3; }
.gm-content h1, .gm-content .componentheading { font-size: 30px; font-weight: 700; margin: 0 0 18px; }
.gm-content h2, .gm-content .contentheading { font-size: 23px; font-weight: 600; margin: 28px 0 12px; }
.gm-content h3 { font-size: 19px; font-weight: 600; margin: 24px 0 10px; }
.gm-content > :first-child, .gm-content .page-header:first-child h1, .gm-content .page-header:first-child h2 { margin-top: 0; }
.gm-content h1 a, .gm-content h2 a, .gm-content .contentheading a { color: inherit; }
.gm-content p { margin: 0 0 14px; }
.gm-content *:not(svg):not(path) { font-family: inherit !important; }
.gm-content h1, .gm-content h2, .gm-content h3, .gm-content h4,
.gm-content .contentheading, .gm-content .componentheading { font-family: var(--gm-font-title) !important; }
.gm-content span, .gm-content font { font-size: inherit !important; }
.gm-content p, .gm-content div, .gm-content span, .gm-content li, .gm-content td { line-height: 1.7 !important; }
.gm-content p, .gm-content div { text-align: left !important; }
.gm-content [style*="text-align: center"], .gm-content [align="center"] { text-align: center !important; }
.gm-content ul, .gm-content ol { padding-left: 22px; }
.gm-content table { max-width: 100%; border-collapse: collapse; }
.gm-content table[width] { width: 100% !important; }
.gm-content td, .gm-content th { vertical-align: top; }
.gm-content .sectiontableheader { background: var(--gm-primary-soft); color: var(--gm-ink); font-weight: 600; padding: 10px 12px; text-align: left; }
.gm-content .sectiontableentry1 td, .gm-content .sectiontableentry2 td { padding: 10px 12px; border-bottom: 1px solid var(--gm-line); }
.gm-content .sectiontableentry2 td { background: #fafbfd; }
.gm-content .createdate, .gm-content .small, .gm-content .modifydate, .gm-content .article-info { color: var(--gm-muted); font-size: 13px; }
.gm-content .article_separator, .gm-content .item-separator { height: 1px; margin: 24px 0; background: var(--gm-line); }
.gm-content .blog-featured .items-leading > div + div { margin-top: 28px; }
.gm-content .readmore a, .gm-content a.readon {
  display: inline-block; margin-top: 6px; padding: 8px 16px; border-radius: 999px; background: var(--gm-primary-soft); font-weight: 600; font-size: 13.5px;
}
.gm-content .pagination, .gm-content .pagenav { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; }
.gm-content .pagination a, .gm-content .pagenav a { padding: 6px 12px; border: 1px solid var(--gm-line); border-radius: 8px; }
.gm-content input[type=text], .gm-content input[type=email], .gm-content select, .gm-content textarea {
  min-height: 42px; padding: 8px 12px; border: 1px solid #d6dae3; border-radius: 8px; font: 14px var(--gm-font); color: var(--gm-ink); background: #fff;
  max-width: 100%;
}
.gm-content input:focus, .gm-content select:focus { outline: 2px solid rgba(74, 95, 193, .35); border-color: var(--gm-primary); }
.gm-content input[type=submit] { background: var(--gm-primary); color: #fff; border: 0; border-radius: 999px; padding: 0 26px; font: 600 15px var(--gm-font); cursor: pointer; }
.gm-content input[type=submit]:hover { background: var(--gm-primary-dark); }
.gm-content input[type=reset] { background: #fff; color: var(--gm-ink-2); border: 1px solid var(--gm-line); border-radius: 999px; padding: 0 18px; cursor: pointer; }

/* ---------- Footer ---------- */
.gm-footer { background: var(--gm-dark); color: #b7bfcc; font-size: 14px; padding-top: 56px; }
.gm-cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin: 0 auto; padding: 34px 40px; border-radius: 18px;
  background: linear-gradient(120deg, var(--gm-primary) 0%, #5d70d4 100%); color: #fff;
  box-shadow: 0 20px 40px rgba(74, 95, 193, .25);
}
.gm-cta-band h2 { margin: 0 0 4px; font: 700 24px/1.3 var(--gm-font-title); color: #fff; }
.gm-cta-band p { margin: 0; color: #e3e7fa; }
.gm-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.gm-footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 0 0 48px; margin-top: 52px; }
.gm-footer h4 { margin: 0 0 16px; font: 600 15px/1.3 var(--gm-font-title); color: #fff; }
.gm-footer ul { margin: 0; padding: 0; list-style: none; }
.gm-footer li + li { margin-top: 10px; }
.gm-footer a { color: #b7bfcc; }
.gm-footer a:hover { color: #fff; }
.gm-footer-about p { margin: 16px 0 20px; max-width: 340px; line-height: 1.7; }
.gm-footer-contact { display: grid; gap: 12px; }
.gm-footer-contact div { display: flex; align-items: center; gap: 12px; }
.gm-footer-contact .gm-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gm-dark-2); color: #fff; }
.gm-footer-contact strong { display: block; color: #fff; font-size: 15px; }
.gm-footer-contact small { font-size: 12.5px; }
.gm-footer-bottom { border-top: 1px solid #36404f; }
.gm-footer-bottom .gm-container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; font-size: 13px; }
.gm-footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.gm-footer-bottom li + li { margin-top: 0; }
.gm-totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--gm-primary); color: #fff; box-shadow: var(--gm-shadow); cursor: pointer;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.gm-totop.is-visible { opacity: 1; visibility: visible; }

/* ---------- Hero (toutes les pages) ---------- */
.gm-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.12) 0, rgba(255,255,255,0) 35%),
    linear-gradient(115deg, #2f3a4a 0%, #3a4da8 55%, #4a5fc1 80%, #6b7fe0 100%);
}
.gm-hero::before {
  content: ""; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.gm-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: end; min-height: 330px; }
.gm-hero-text { align-self: center; padding: 44px 0 48px; }
.gm-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13.5px; }
.gm-breadcrumb li { display: flex; align-items: center; color: #dfe4fb; }
.gm-breadcrumb li + li::before { content: ""; width: 6px; height: 6px; margin: 0 12px; border-top: 1.5px solid rgba(255,255,255,.6); border-right: 1.5px solid rgba(255,255,255,.6); transform: rotate(45deg); }
.gm .gm-breadcrumb a { color: #fff; opacity: .85; }
.gm .gm-breadcrumb a:hover { color: #fff; opacity: 1; text-decoration: underline; }
.gm-breadcrumb [aria-current] span { color: #fff; font-weight: 600; opacity: 1; }
.gm-hero h1 { margin: 0 0 14px; font: 700 clamp(26px, 3.4vw, 42px)/1.2 var(--gm-font-title); color: #fff; letter-spacing: -.01em; max-width: 760px; }
.gm-hero p { margin: 0; max-width: 640px; font-size: 16.5px; line-height: 1.7; color: #e3e7fa; }
.gm-hero-media { position: relative; align-self: end; height: 100%; min-height: 330px; }
.gm-hero-blob { position: absolute; left: 50%; bottom: 24px; width: 300px; height: 300px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,255,255,.28) 0%, rgba(255,255,255,.08) 60%, rgba(255,255,255,0) 72%); }
.gm-hero-media img { position: absolute; left: 50%; bottom: 0; width: auto; max-width: none; height: 310px; transform: translateX(-50%); filter: drop-shadow(0 18px 30px rgba(20, 26, 40, .35)); }
.gm-hero-media.is-empty img { display: none; }
.gm-main { padding-top: 40px; }
@media (max-width: 991px) {
  .gm-hero-inner { grid-template-columns: minmax(0, 1fr) 260px; min-height: 280px; }
  .gm-hero-media { min-height: 280px; }
  .gm-hero-media img { height: 250px; }
  .gm-hero-blob { width: 230px; height: 230px; }
  .gm-hero-text { padding: 36px 0 40px; }
}
@media (max-width: 700px) {
  .gm-hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .gm-hero-text { padding: 28px 0 8px; }
  .gm-hero p { font-size: 15px; }
  .gm-hero-media { min-height: 0; height: 210px; }
  .gm-hero-media img { height: 205px; }
  .gm-hero-blob { width: 190px; height: 190px; bottom: 10px; }
  .gm-hero-media.is-empty { display: none; }
  .gm-hero-text { padding-bottom: 32px; }
  .gm-hero-media:not(.is-empty) ~ * { display: none; }
}

/* ---------- Hero : CTA + Trustpilot ---------- */
.gm-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 26px; }
.gm .gm-btn-cta {
  padding: 15px 28px; font-size: 16px; color: #2b2410;
  background: linear-gradient(95deg, #ffd23f 0%, #ffae2b 55%, #ff8a1f 100%);
  box-shadow: 0 10px 24px rgba(255, 138, 31, .38); border: 0;
}
.gm .gm-btn-cta:hover { color: #2b2410; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 138, 31, .5); filter: saturate(1.1); }
.gm .gm-btn-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.gm-btn-cta svg:last-child { transition: transform .2s; }
.gm-btn-cta:hover svg:last-child { transform: translateX(3px); }
.gm-trust { display: flex; flex-direction: column; gap: 6px; }
.gm-tp-stars { display: inline-flex; gap: 3px; }
.gm-tp-box {
  display: grid; place-items: center; width: 24px; height: 24px;
  background: linear-gradient(90deg, #00b67a var(--fill), rgba(255,255,255,.3) var(--fill));
}
.gm-tp-box svg { width: 17px; height: 17px; }
.gm-trust-text { font-size: 13.5px; color: #e3e7fa; }
.gm-trust-text strong { color: #fff; font-size: 14.5px; }
.gm-tp-brand { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: #fff; }
.gm-tp-brand svg { width: 16px; height: 16px; }
@media (max-width: 600px) {
  .gm-hero-actions { gap: 16px; margin-top: 20px; }
  .gm .gm-btn-cta { width: 100%; }
}

/* ---------- Ajustements hero : avis au-dessus du CTA, image centrée ---------- */
.gm-hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 22px; }
.gm-trust { order: -1; flex-direction: row; align-items: center; gap: 8px; white-space: nowrap; }
.gm-tp-stars { gap: 2px; }
.gm-tp-box { width: 17px; height: 17px; }
.gm-tp-box svg { width: 12px; height: 12px; }
.gm-trust-text { font-size: 12.5px; }
.gm-trust-text strong { font-size: 13px; }
.gm-tp-brand svg { width: 13px; height: 13px; }
.gm-hero-inner { align-items: center; }
.gm-hero-media { align-self: center; display: grid; place-items: center; height: 300px; min-height: 0; }
.gm-hero-media picture { position: relative; z-index: 1; display: block; }
.gm-hero-media img { position: static; transform: none; height: 280px; width: auto; max-width: 100%; }
.gm-hero-blob { top: 50%; bottom: auto; transform: translate(-50%, -50%); }
@media (max-width: 991px) {
  .gm-hero-media { height: 260px; }
  .gm-hero-media img { height: 240px; }
}
@media (max-width: 700px) {
  .gm-hero-media { height: 220px; }
  .gm-hero-media img { height: 205px; }
  .gm-hero-actions { align-items: stretch; }
}
@media (max-width: 400px) {
  .gm-trust { white-space: normal; flex-wrap: wrap; }
}

/* ---------- Pages légales + consentement ---------- */
.gm-content mark.gm-todo { background: #fff3c4; color: #7a5a00; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.gm-content .gm-legal-table { width: 100%; margin: 8px 0 24px; border: 1px solid var(--gm-line); border-radius: 10px; overflow: hidden; }
.gm-content .gm-legal-table th, .gm-content .gm-legal-table td { padding: 11px 14px; border-bottom: 1px solid var(--gm-line); text-align: left; }
.gm-content .gm-legal-table th { width: 34%; background: #fafbfd; font-weight: 600; color: var(--gm-ink); }
.gm-content .gm-legal-table thead th { background: var(--gm-primary-soft); width: auto; }
.gm-content .gm-consent { margin: 18px 0 6px; padding: 14px 16px; border: 1px solid var(--gm-line); border-radius: 10px; background: #fafbfd; text-align: left !important; }
.gm-content .gm-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.gm-content .gm-consent input[type=checkbox] { width: 18px; height: 18px; min-height: 0; margin-top: 3px; flex-shrink: 0; accent-color: var(--gm-primary); }
.gm-content .gm-consent p { margin: 8px 0 0 28px; font-size: 12.5px; color: var(--gm-ink-2); line-height: 1.55 !important; }
.gm-footer-bottom span a { color: #fff; text-decoration: underline; }
@media (max-width: 600px) { .gm-content .gm-legal-table th { width: 40%; } }

/* ---------- Page devis : hero + formulaire suspendu ---------- */
.gm-hero--form { padding: 44px 0 130px; text-align: center; }
.gm-hero--form h1 { max-width: 900px; margin: 0 auto; font: 700 clamp(26px, 3.6vw, 44px)/1.2 var(--gm-font-title); color: #fff; }
.gm-devis { position: relative; z-index: 2; margin-top: -92px; padding-bottom: 8px; }
.gm-devis-card {
  background: #fff; border-radius: 18px; box-shadow: 0 26px 60px rgba(35, 43, 56, .18);
  border: 1px solid rgba(255,255,255,.6); padding: 30px 34px 26px;
}
.gm-devis-head { text-align: center; margin-bottom: 22px; }
.gm-devis-kicker {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; padding: 6px 14px;
  border-radius: 999px; background: #e8f7ef; color: #14804a; font-size: 13px; font-weight: 600;
}
.gm-devis-lead { margin: 0; color: var(--gm-ink-2); font-size: 15px; }
.gm-devis-erreur { margin: 0 0 18px; padding: 12px 16px; border: 1px solid #d9534f; border-radius: 10px; background: #fdecea; color: #a4342f; font-weight: 600; font-size: 14px; }
.gm-fieldset { margin-bottom: 22px; }
.gm-fieldset h2 {
  display: flex; align-items: center; gap: 9px; margin: 0 0 14px; padding-bottom: 9px;
  border-bottom: 1px solid var(--gm-line); font: 600 15px/1.3 var(--gm-font-title); color: var(--gm-primary);
}
.gm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.gm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gm-field--full { grid-column: 1 / -1; }
.gm-field[hidden] { display: none; }
.gm-field label { font-size: 13.5px; font-weight: 500; color: var(--gm-ink); }
.gm-field small { font-size: 12px; color: var(--gm-muted); }
.gm-input { position: relative; display: flex; }
.gm-input-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--gm-muted); pointer-events: none; display: flex; }
.gm-input input, .gm-input select {
  width: 100%; height: 48px; padding: 0 14px 0 42px; border: 1px solid #d6dae3; border-radius: 10px;
  font: 15px var(--gm-font); color: var(--gm-ink); background: #fff; appearance: none; -webkit-appearance: none;
}
.gm-input select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a93a3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.gm-input input:focus, .gm-input select:focus { outline: 3px solid rgba(74, 95, 193, .25); border-color: var(--gm-primary); }
.gm-input input:focus + .gm-input-ico { color: var(--gm-primary); }
.gm-civilite { display: flex; gap: 12px; flex-wrap: wrap; }
.gm-radio { flex: 1 1 160px; }
.gm-radio input { position: absolute; opacity: 0; pointer-events: none; }
.gm-radio span {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 16px;
  border: 1px solid #d6dae3; border-radius: 10px; font-size: 15px; color: var(--gm-ink-2); cursor: pointer; transition: .2s;
}
.gm-radio span:hover { border-color: var(--gm-primary); color: var(--gm-primary); }
.gm-radio input:checked + span { border-color: var(--gm-primary); background: var(--gm-primary-soft); color: var(--gm-primary); font-weight: 600; }
.gm-radio input:focus-visible + span { outline: 3px solid rgba(74, 95, 193, .3); }
.gm-devis-card .gm-consent { margin: 4px 0 20px; padding: 14px 16px; border: 1px solid var(--gm-line); border-radius: 10px; background: #fafbfd; }
.gm-devis-card .gm-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.gm-devis-card .gm-consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--gm-primary); }
.gm-devis-card .gm-consent p { margin: 8px 0 0 28px; font-size: 12.5px; color: var(--gm-ink-2); }
.gm-hp { position: absolute; left: -9999px; }
.gm-devis-submit { text-align: center; }
.gm-devis-submit .gm-btn { min-width: 300px; }
.gm-devis-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 0; font-size: 12.5px; color: var(--gm-muted); }
.gm-devis-reassurance {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 0; padding: 0; list-style: none;
}
.gm-devis-reassurance li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--gm-line); border-radius: 12px; }
.gm-devis-reassurance svg { color: var(--gm-primary); }
.gm-devis-reassurance strong { display: block; font: 600 15px/1.3 var(--gm-font-title); color: var(--gm-ink); }
.gm-devis-reassurance span { font-size: 12.5px; color: var(--gm-ink-2); }
.gm-page-devis .gm-main { padding-top: 34px; }
@media (max-width: 860px) {
  .gm-devis-reassurance { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .gm-hero--form { padding: 30px 0 110px; }
  .gm-devis { margin-top: -86px; }
  .gm-devis-card { padding: 22px 18px 20px; border-radius: 14px; }
  .gm-grid { grid-template-columns: 1fr; gap: 14px; }
  .gm-devis-submit .gm-btn { width: 100%; min-width: 0; }
}

/* ---------- Bulles flottantes sur l'image du hero ---------- */
.gm-bulle {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 14px; background: #fff;
  box-shadow: 0 14px 30px rgba(20, 26, 40, .22); white-space: nowrap;
  animation: gm-flotte 4.5s ease-in-out infinite;
}
.gm-bulle strong { display: block; font: 600 13.5px/1.25 var(--gm-font-title); color: var(--gm-ink); }
.gm-bulle small { font-size: 11.5px; color: var(--gm-ink-2); }
.gm-bulle-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.gm-bulle-ico--vert { background: #e8f7ef; color: #14804a; }
.gm-bulle-ico--orange { background: #fff1dc; color: #b96a00; }
.gm-bulle--1 { top: 9%; left: -72px; }
.gm-bulle--2 { bottom: 15%; right: -54px; animation-delay: -2.2s; }
@keyframes gm-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 1140px) {
  .gm-bulle { padding: 8px 12px 8px 9px; gap: 8px; }
  .gm-bulle strong { font-size: 12.5px; }
  .gm-bulle small { font-size: 11px; }
  .gm-bulle-ico { width: 30px; height: 30px; }
  .gm-bulle--1 { top: 6%; left: -48px; }
  .gm-bulle--2 { right: -30px; }
}
@media (max-width: 991px) {
  .gm-bulle--1 { top: 8%; left: -18px; }
  .gm-bulle--2 { bottom: 8%; right: -10px; }
  .gm-bulle small { display: none; }
}
@media (max-width: 700px) {
  .gm-bulle { padding: 7px 11px 7px 8px; }
  .gm-bulle--1 { top: 4%; left: 0; }
  .gm-bulle--2 { bottom: 4%; right: 0; }
}
@media (prefers-reduced-motion: reduce) { .gm-bulle { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .gm-call { display: none; }
  .gm-menu > li > a, .gm-menu > li > button { padding: 10px 9px; font-size: 14px; }
}
@media (min-width: 992px) and (max-width: 1120px) {
  .gm-header .gm-container { gap: 14px; }
  .gm-menu > li > a, .gm-menu > li > button { padding: 10px 6px; font-size: 13.5px; }
  .gm-header-actions .gm-btn { padding: 10px 14px; }
  .gm-logo-text { font-size: 15px; }
}
@media (max-width: 991px) {
  .gm-topbar .gm-topbar-info { display: none; }
  .gm-topbar .gm-container { justify-content: center; }
  .gm-header .gm-container { min-height: 66px; gap: 12px; }
  .gm-burger { display: grid; }
  .gm-header-actions .gm-btn { display: none; }
  .gm-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 200; background: #fff;
    padding: 80px 20px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease;
    box-shadow: -20px 0 40px rgba(0,0,0,.12);
  }
  .gm-nav-open .gm-nav { transform: none; }
  .gm-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(35, 43, 56, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .gm-nav-open .gm-overlay { opacity: 1; visibility: visible; }
  .gm-nav-open { overflow: hidden; }
  .gm-nav-close { position: absolute; top: 18px; right: 18px; }
  .gm-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .gm-menu > li { border-bottom: 1px solid var(--gm-line); }
  .gm-menu > li > a, .gm-menu > li > button { width: 100%; justify-content: space-between; padding: 15px 4px; font-size: 16px; }
  .gm-sub { position: static; display: none; min-width: 0; padding: 0 0 12px 8px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .gm-menu > li.is-open > .gm-sub { display: block; }
  .gm-menu > li:hover > .gm-sub { display: none; }
  .gm-menu > li.is-open:hover > .gm-sub { display: block; }
  .gm-nav-mobile-cta { display: grid !important; gap: 10px; margin-top: 24px; }
  .gm-layout { grid-template-columns: 1fr; }
  .gm-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .gm-footer-main { grid-template-columns: 1fr 1fr; }
  .gm-footer-about { grid-column: 1 / -1; }
}
@media (min-width: 992px) {
  .gm-nav-close, .gm-overlay, .gm-nav-mobile-cta { display: none !important; }
}
@media (max-width: 600px) {
  .gm-footer { padding-top: 36px; }
  body.gm { font-size: 15px; }
  .gm-container { padding: 0 16px; }
  .gm-topbar ul { gap: 14px; }
  .gm-topbar .gm-topbar-hours { display: none; }
  .gm-logo svg { width: 40px; height: 40px; }
  .gm-logo-text { font-size: 15px; }
  .gm-main { padding: 20px 0 40px; }
  .gm-content { padding: 22px 18px; }
  .gm-content h1, .gm-content .componentheading { font-size: 24px; }
  .gm-content h2, .gm-content .contentheading { font-size: 20px; }
  .gm-cta-band { padding: 26px 22px; }
  .gm-cta-band h2 { font-size: 20px; }
  .gm-cta-actions, .gm-cta-actions .gm-btn { width: 100%; }
  .gm-footer-main { grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
  .gm-footer-bottom .gm-container { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
