/* Guardian France - charte : marine #0F3456 dominant, rouge #D02824 réservé aux boutons d'action, police unique sans empattement. */
:root {
    --gf-navy: #0F3456;
    --gf-navy-deep: #0A2540;
    --gf-red: #D02824;
    --gf-ink: #1B2B3C;
    --gf-mist: #F3F6F9;
    --gf-line: #E1E8EF;
    --gf-radius: 14px;
    --gf-shadow: 0 12px 32px rgba(10, 37, 64, .12);
    --primary: #0F3456;
    --secondary: #0F3456;
}

html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .btn, .nav-link, .dropdown-item, input, select, textarea {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
body { color: var(--gf-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { color: var(--gf-navy); letter-spacing: -.02em; }
img { max-width: 100%; height: auto; }

/* Couleurs héritées du gabarit */
.text-primary { color: var(--gf-navy) !important; }
.bg-primary, .bg-dark { background-color: var(--gf-navy) !important; }
.border-primary { border-color: var(--gf-navy) !important; }

/* Boutons : rouge uniquement pour l'action */
.btn { font-weight: 700; border-radius: 10px; letter-spacing: .01em; }
.btn-primary { color: #fff; background-color: var(--gf-red); border-color: var(--gf-red); box-shadow: 0 6px 16px rgba(208, 40, 36, .28); }
.btn-primary:hover, .btn-primary:focus { color: #fff; background-color: #b11f1b; border-color: #b11f1b; }
.btn-navy, .btn-secondary, .btn-success { color: #fff; background: var(--gf-navy); border-color: var(--gf-navy); }
.btn-navy:hover, .btn-secondary:hover { color: #fff; background: var(--gf-navy-deep); }
.btn-outline-navy { color: var(--gf-navy); border: 2px solid var(--gf-navy); background: transparent; }
.btn-outline-navy:hover { color: #fff; background: var(--gf-navy); }
.btn-outline-secondary { color: var(--gf-navy); border-color: var(--gf-navy); }
.swal2-confirm, .my-confirm-button-class { background-color: var(--gf-navy) !important; }

/* ---------- En-tête ---------- */
.gf-topbar { background: var(--gf-navy-deep); color: #cfdae6; font-size: .82rem; }
.gf-topbar a { color: #fff; text-decoration: none; }
.gf-topbar .gf-top-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.gf-topbar i { opacity: .7; margin-right: 6px; }

.gf-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--gf-line); transition: box-shadow .2s; }
.gf-header.is-stuck { box-shadow: 0 6px 24px rgba(10, 37, 64, .1); }
.gf-header .navbar { padding: 10px 0; }
.gf-header .navbar-brand img { height: 52px; width: auto; }
.gf-header .nav-link { color: var(--gf-navy); font-weight: 600; font-size: .95rem; padding: 10px 12px !important; position: relative; }
.gf-header .nav-link:hover, .gf-header .nav-link.show { color: var(--gf-red); }
.gf-header .dropdown-menu { border: 0; border-radius: 12px; box-shadow: var(--gf-shadow); padding: 8px; min-width: 240px; }
.gf-header .dropdown-item { border-radius: 8px; padding: 8px 12px; font-weight: 500; color: var(--gf-ink); }
.gf-header .dropdown-item:hover { background: var(--gf-mist); color: var(--gf-navy); }
.gf-header .nav-link-recrutement { background: var(--gf-navy); color: #fff !important; border-radius: 999px; padding: 8px 16px !important; margin: 0 6px; }
.gf-header .nav-link-recrutement:hover { background: var(--gf-navy-deep); }
.gf-header .navbar-toggler { border: 0; font-size: 1.4rem; color: var(--gf-navy); }
@media (min-width: 1200px) { .gf-header .dropdown:hover > .dropdown-menu { display: block; } }
@media (max-width: 1199.98px) {
    .gf-header .navbar-collapse { padding: 12px 0 18px; }
    .gf-header .gf-nav-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
}

/* ---------- Hero accueil ---------- */
.gf-hero-home { position: relative; background: var(--gf-navy); color: #fff; overflow: hidden; }
.gf-hero-home .gf-hero-grid { display: flex; min-height: 600px; }
.gf-hero-copy { width: 52%; padding: 72px 48px 120px 0; align-self: center; position: relative; z-index: 2; }
.gf-hero-copy h1 { color: #fff; font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.08; margin: 18px 0; }
.gf-hero-copy .lead { color: #d3dfeb; font-size: 1.15rem; max-width: 520px; margin-bottom: 28px; }
.gf-hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; min-height: 360px; }
.gf-hero-photo picture, .gf-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 40%; }
.gf-hero-photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--gf-navy) 0%, rgba(15, 52, 86, 0) 38%); }
.gf-hero-badge { position: absolute; z-index: 2; right: 24px; bottom: 112px; background: rgba(255, 255, 255, .96); color: var(--gf-navy); border-radius: 12px; padding: 12px 16px; font-size: .85rem; font-weight: 700; box-shadow: var(--gf-shadow); }
.gf-hero-badge small { display: block; font-weight: 500; color: #5b6c7e; }

/* Signature : départements */
.gf-deps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.gf-deps li { font-weight: 800; font-size: .9rem; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; }
.gf-deps.is-dark li { border-color: var(--gf-navy); color: var(--gf-navy); }
.gf-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gf-navy); }
.gf-hero-home .gf-eyebrow { color: #9fb6cd; }

/* ---------- Bandeau de chiffres ---------- */
.gf-stats-wrap { position: relative; z-index: 3; margin-top: -64px; }
.gf-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--gf-radius); box-shadow: var(--gf-shadow); overflow: hidden; }
.gf-stat { padding: 26px 20px; text-align: center; border-right: 1px solid var(--gf-line); }
.gf-stat:last-child { border-right: 0; }
.gf-stat strong { display: block; font-size: 1.7rem; line-height: 1.1; font-weight: 800; color: var(--gf-navy); }
.gf-stat span { font-size: .88rem; color: #5b6c7e; }

/* ---------- Sections ---------- */
.gf-section { padding: 88px 0; }
.gf-section.alt { background: var(--gf-mist); }
.gf-section.navy { background: var(--gf-navy); color: #fff; }
.gf-section.navy h2, .gf-section.navy h3 { color: #fff; }
.gf-title { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 8px 0 14px; }
.gf-sub { color: #5b6c7e; font-size: 1.05rem; max-width: 640px; }
.gf-section.navy .gf-sub { color: #cfdae6; }
.gf-block { padding: 56px 0; }
.gf-block.alt { background: var(--gf-mist); }
.gf-block h2 { color: var(--gf-navy); font-weight: 800; margin-bottom: 18px; }

/* Cartes métiers */
.gf-metier-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 26px; background: #fff; border: 1px solid var(--gf-line); border-radius: var(--gf-radius); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.gf-metier-card:hover { transform: translateY(-4px); box-shadow: var(--gf-shadow); border-color: var(--gf-navy); color: inherit; }
.gf-metier-card .gf-ico { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--gf-navy); color: #fff; font-size: 1.25rem; margin-bottom: 18px; }
.gf-metier-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.gf-metier-card p { font-size: .92rem; color: #5b6c7e; margin-bottom: 14px; }
.gf-metier-card .gf-more { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--gf-navy); }
.gf-metier-card .gf-more i { transition: transform .2s; margin-left: 4px; }
.gf-metier-card:hover .gf-more i { transform: translateX(4px); }
.gf-metier-card.is-cta { background: var(--gf-navy); border-color: var(--gf-navy); }
.gf-metier-card.is-cta h3, .gf-metier-card.is-cta p, .gf-metier-card.is-cta .gf-more { color: #fff; }

/* Arguments */
.gf-why { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--gf-line); }
.gf-why:last-child { border-bottom: 0; }
.gf-why .gf-ico-sm { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #e7eef5; color: var(--gf-navy); }
.gf-why h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 4px; }
.gf-why p { margin: 0; color: #5b6c7e; font-size: .94rem; }
.gf-agrement { background: var(--gf-navy); color: #fff; border-radius: var(--gf-radius); padding: 36px; position: relative; overflow: hidden; }
.gf-agrement::after { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .06); }
.gf-agrement h3 { color: #fff; font-weight: 800; }
.gf-agrement .num { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 1rem; background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 10px 14px; display: inline-block; margin: 10px 0 16px; word-break: break-all; }
.gf-agrement p { color: #cfdae6; font-size: .88rem; }

/* Zones */
.gf-dep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.gf-dep { display: block; padding: 18px 10px; text-align: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; color: #fff; text-decoration: none; transition: background .2s; }
.gf-dep:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.gf-dep strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.gf-dep span { font-size: .78rem; opacity: .75; }
.gf-chip { display: inline-block; margin: 0 8px 10px 0; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--gf-line); color: var(--gf-navy); font-weight: 700; text-decoration: none; transition: all .2s; }
.gf-chip:hover { background: var(--gf-navy); color: #fff; border-color: var(--gf-navy); }

/* Confiance */
.gf-trust { background: #fff; border-top: 1px solid var(--gf-line); border-bottom: 1px solid var(--gf-line); }
.gf-trust img { height: 58px; width: auto; object-fit: contain; filter: grayscale(.2); }
.gf-faq .accordion-item { border: 1px solid var(--gf-line); border-radius: 12px !important; margin-bottom: 10px; overflow: hidden; }
.gf-faq .accordion-button { font-weight: 700; color: var(--gf-navy); background: #fff; box-shadow: none; }
.gf-faq .accordion-button:not(.collapsed) { color: #fff; background: var(--gf-navy); }

/* Timeline délai */
.gf-steps-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.gf-steps-line > div { position: relative; background: #fff; border: 1px solid var(--gf-line); border-radius: var(--gf-radius); padding: 24px 22px 22px; }
.gf-steps-line > div::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--gf-navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.gf-steps-line h3 { font-size: 1.05rem; font-weight: 800; }
.gf-steps-line p { margin: 0; color: #5b6c7e; font-size: .94rem; }

/* Hero pages internes */
.gf-hero { position: relative; background: linear-gradient(135deg, #0F3456 0%, #0A2540 100%); color: #fff; overflow: hidden; }
.gf-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); }
.gf-hero .container { position: relative; z-index: 1; }
.gf-hero h1 { color: #fff; font-weight: 800; letter-spacing: -.02em; }
.gf-hero .lead { color: #d3dfeb; }
.gf-crumbs { font-size: .85rem; color: #9fb6cd; }
.gf-crumbs a { color: #cfdae6; text-decoration: none; }

/* CTA devis */
.gf-cta-points { list-style: none; padding: 0; margin: 24px 0 0; }
.gf-cta-points li { display: flex; gap: 10px; margin-bottom: 12px; color: #dbe6f0; }
.gf-cta-points i { color: #fff; margin-top: 4px; }

/* Actualités */
.gf-news-card { display: block; height: 100%; background: #fff; border: 1px solid var(--gf-line); border-radius: var(--gf-radius); overflow: hidden; color: inherit; text-decoration: none; }
.gf-news-card img { width: 100%; height: 190px; object-fit: cover; }
.gf-news-card div { padding: 20px; }

/* ---------- Pied de page ---------- */
.gf-footer { background: var(--gf-navy-deep); color: #cfdae6; padding-top: 64px; font-size: .94rem; }
.gf-footer h3 { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 18px; }
.gf-footer a { color: #cfdae6; text-decoration: none; }
.gf-footer a:hover { color: #fff; }
.gf-footer ul { list-style: none; padding: 0; margin: 0; }
.gf-footer li { margin-bottom: 9px; }
.gf-footer .gf-news-form .form-control { border-radius: 10px 0 0 10px; border: 0; padding: 12px 14px; }
.gf-footer .gf-news-form .btn { border-radius: 0 10px 10px 0; }
.gf-legal { margin-top: 48px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #9fb6cd; }
.gf-legal strong { color: #fff; }

/* Mobile */
.call-fab { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; padding: 16px; text-align: center; font-weight: 800; color: #fff; background: var(--gf-red); text-decoration: none; box-shadow: 0 -6px 20px rgba(0, 0, 0, .18); }
.call-fab:hover { color: #fff; }
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 1050; max-width: 560px; padding: 18px; color: #fff; background: var(--gf-navy); border-radius: 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, .35); font-size: .9rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner a { color: #fff; text-decoration: underline; }
@media (min-width: 992px) { .cookie-banner { left: 20px; right: auto; bottom: 20px; } }

@media (max-width: 991.98px) {
    .gf-hero-home .gf-hero-grid { display: block; min-height: 0; }
    .gf-hero-copy { width: auto; padding: 36px 0 90px; }
    .gf-hero-photo { position: relative; width: auto; height: 300px; min-height: 0; }
    .gf-hero-home .container { padding: 0; }
    .gf-hero-home .gf-hero-copy { padding-left: 16px; padding-right: 16px; }
    .gf-hero-photo::before { background: linear-gradient(0deg, var(--gf-navy) 0%, rgba(15, 52, 86, 0) 35%); }
    .gf-hero-badge { display: none; }
    .gf-stats-wrap { margin-top: -28px; }
    .gf-stats { grid-template-columns: repeat(2, 1fr); }
    .gf-stat:nth-child(2) { border-right: 0; }
    .gf-stat:nth-child(-n+2) { border-bottom: 1px solid var(--gf-line); }
    .gf-section { padding: 60px 0; }
    .gf-steps-line { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 767.98px) {
    body { padding-bottom: 56px; }
    .gf-hero-copy .btn { display: block; width: 100%; margin: 0 0 10px !important; }
    .gf-stat strong { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.gf-form-card { background: #fff; border-radius: 18px; padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.gf-form-card .gf-stepper { box-shadow: none; }
.gf-departements { letter-spacing: .15em; font-weight: 800; }

/* Devis en 3 étapes */
.gf-stepper { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 4px 24px rgba(15, 52, 86, .12); }
.gf-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: .8rem; font-weight: 700; }
.gf-steps li { flex: 1; padding: 6px 4px; text-align: center; border-bottom: 4px solid #d9e1ea; color: #6b7c8f; }
.gf-steps li.is-active, .gf-steps li.is-done { border-color: var(--gf-navy); color: var(--gf-navy); }
.gf-step { display: none; border: 0; padding: 0; margin: 0; }
.gf-step.is-active { display: block; }
.gf-step legend { color: var(--gf-navy); font-weight: 800; margin-bottom: 14px; }
.gf-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gf-card { position: relative; display: flex; align-items: center; min-height: 64px; padding: 12px 14px; border: 2px solid #d9e1ea; border-radius: 8px; cursor: pointer; font-weight: 700; color: var(--gf-navy); }
.gf-card:hover { border-color: var(--gf-navy); }
.gf-card-input { position: absolute; opacity: 0; }
.gf-card:has(.gf-card-input:checked) { border-color: var(--gf-navy); background: #eaf0f6; }
.gf-card:has(.gf-card-input:focus-visible) { outline: 3px solid var(--gf-red); }
.gf-stepper label.required::after { content: ' *'; }


/* Neutralise les graisses ultra-fines du gabarit d'origine */
h1, h2, .fw-bold { font-weight: 800 !important; }
h3, h4, .fw-semi-bold { font-weight: 700 !important; }
h5, h6 { font-weight: 700; }
.gf-topbar i, .gf-topbar strong { color: inherit; }
.gf-topbar a, .gf-topbar a strong { color: #fff; }
.gf-cta-points a, .gf-cta-points span { color: #dbe6f0; }

/* ---------- Refonte : en-tête compact, heroes de pages ---------- */
.gf-header .nav-link { white-space: nowrap; font-size: .9rem; padding: 10px 9px !important; }
.gf-header .gf-nav-actions { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; }
.gf-header .gf-nav-actions .btn { white-space: nowrap; padding: 8px 14px; font-size: .9rem; }
.gf-header .nav-link-recrutement { margin: 0 4px; }
.gf-header .navbar-brand img { height: 46px; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .gf-header .container { max-width: 1240px; } }

.gf-hero-simple .container { padding-top: 56px; padding-bottom: 56px; }
.gf-hero-simple h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 0; }
.gf-hero-page .container { padding-top: 56px; padding-bottom: 56px; }
.gf-hero-page h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.1; }
.gf-hero-page .lead { max-width: 560px; }
.gf-hero-img { border-radius: var(--gf-radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); aspect-ratio: 3 / 2; background: var(--gf-navy-deep); }
.gf-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.gf-hero-simple .gf-deps, .gf-hero-page .gf-deps { justify-content: flex-start; }

/* Gabarit hérité : fin des soulignements animés et des fonds-photos */
.section-title::before, .section-title::after, .section-title-1::before, .section-title-1::after { display: none !important; }
.container-fluid > .container.py-5 h5.text-primary.text-uppercase { font-size: .8rem; letter-spacing: .12em; }
.gf-hero + .container-fluid, .gf-hero + div { padding-top: 56px !important; }
.gf-form-card .form-label, .gf-form-card label { color: var(--gf-navy); font-weight: 600; }

/* ---------- Inspirations Securitas / Fiducial : sous-menu, secteurs en photos, piliers, bandeau CTA ---------- */
.gf-subnav { position: sticky; top: 66px; z-index: 1020; background: #fff; border-bottom: 1px solid var(--gf-line); overflow-x: auto; white-space: nowrap; }
.gf-subnav .container { display: flex; gap: 4px; }
.gf-subnav a { padding: 14px 16px; font-size: .88rem; font-weight: 700; color: var(--gf-navy); text-decoration: none; border-bottom: 3px solid transparent; }
.gf-subnav a:hover { border-bottom-color: var(--gf-navy); }
section[id] { scroll-margin-top: 130px; }

.gf-sector-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.gf-sector { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--gf-radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--gf-navy); }
.gf-sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gf-sector::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 37, 64, .92) 0%, rgba(10, 37, 64, 0) 60%); }
.gf-sector span { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.gf-sector:hover { color: #fff; }
.gf-sector:hover img { transform: scale(1.06); }
@media (max-width: 991.98px) { .gf-sector-grid { grid-template-columns: repeat(2, 1fr); } .gf-subnav { top: 60px; } }

.gf-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gf-pillars > div { padding: 28px 24px; border-top: 4px solid var(--gf-navy); background: #fff; border-radius: 0 0 var(--gf-radius) var(--gf-radius); box-shadow: var(--gf-shadow); }
.gf-pillars i { font-size: 1.8rem; color: var(--gf-navy); margin-bottom: 14px; }
.gf-pillars h3 { font-size: 1.1rem; font-weight: 800; }
.gf-pillars p { margin: 0; color: #5b6c7e; font-size: .94rem; }
@media (max-width: 991.98px) { .gf-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .gf-pillars { grid-template-columns: 1fr; } }

.gf-cta-band { background: var(--gf-navy-deep); color: #fff; padding: 48px 0; }
.gf-cta-band .container { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.gf-cta-band h2 { color: #fff; font-size: 1.8rem; margin: 0 0 6px; }
.gf-cta-band p { margin: 0; color: #cfdae6; }
.gf-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
