/* =========================================================
   MAZEGO – pages publiques France (templates/home_france)
   Mobile d'abord. Préfixe hf- pour ne rien casser ailleurs.
   ========================================================= */
:root {
    --hf-navy: #0b1437;
    --hf-navy-2: #12205a;
    --hf-blue: #2348c8;
    --hf-green: #059669;
    --hf-green-soft: #e7f6f0;
    --hf-yellow: #facc15;
    --hf-yellow-hover: #eab308;
    --hf-wa: #25d366;
    --hf-ink: #0f172a;
    --hf-text: #334155;
    --hf-muted: #64748b;
    --hf-line: #e2e8f0;
    --hf-bg: #ffffff;
    --hf-bg-soft: #f5f7fb;
    --hf-radius: 16px;
    --hf-radius-sm: 10px;
    --hf-shadow: 0 10px 30px rgba(11, 20, 55, .08);
    --hf-shadow-lg: 0 24px 60px rgba(11, 20, 55, .18);
    --hf-header-h: 64px;
    --hf-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hf-header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    font-family: var(--hf-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--hf-text);
    background: var(--hf-bg);
    overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--hf-blue); }
h1, h2, h3 { color: var(--hf-ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 6.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 4.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--hf-blue); outline-offset: 2px; border-radius: 4px; }

.hf-skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--hf-navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.hf-skip:focus { left: 8px; }

.hf-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.hf-container--etroit { max-width: 820px; }
@media (min-width: 768px) { .hf-container { padding: 0 32px; } }

.hf-ico { flex: none; }

/* ---------- Boutons ---------- */
.hf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px;
    border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
    cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.hf-btn:active { transform: translateY(1px); }
.hf-btn--primary { background: var(--hf-yellow); color: var(--hf-navy); box-shadow: 0 6px 18px rgba(250, 204, 21, .35); }
.hf-btn--primary:hover { background: var(--hf-yellow-hover); color: var(--hf-navy); }
.hf-btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.hf-btn--outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.hf-btn--ghost { background: #fff; color: var(--hf-navy); border-color: var(--hf-line); }
.hf-btn--ghost:hover { border-color: var(--hf-navy); color: var(--hf-navy); }
.hf-btn--sm { min-height: 42px; padding: 8px 16px; font-size: .92rem; }
.hf-btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.hf-btn--block { width: 100%; }
.hf-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; color: var(--hf-blue); }
.hf-link:hover { text-decoration: underline; }
.hf-linklike { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: none; }
.hf-linklike:hover { text-decoration: underline; }

/* ---------- En-tête ---------- */
.hf-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.hf-header.is-scrolled { border-bottom-color: var(--hf-line); box-shadow: 0 4px 20px rgba(11, 20, 55, .06); }
.hf-header__inner { display: flex; align-items: center; gap: 12px; height: var(--hf-header-h); }
.hf-logo img { height: 34px; width: auto; }
.hf-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hf-header__tel { display: none; align-items: center; gap: 6px; font-weight: 700; color: var(--hf-navy); text-decoration: none; white-space: nowrap; }
.hf-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--hf-navy); border-radius: 10px; cursor: pointer; }
.hf-burger__close { display: none; }
.hf-burger[aria-expanded="true"] .hf-burger__open { display: none; }
.hf-burger[aria-expanded="true"] .hf-burger__close { display: inline-flex; }

.hf-nav {
    position: fixed; inset: var(--hf-header-h) 0 auto 0;
    display: none; flex-direction: column; gap: 2px;
    padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--hf-line); box-shadow: var(--hf-shadow);
}
.hf-nav.is-open { display: flex; }
.hf-nav a { padding: 12px 8px; color: var(--hf-ink); font-weight: 600; text-decoration: none; border-radius: 8px; }
.hf-nav a:hover { background: var(--hf-bg-soft); }
.hf-nav__tel { display: flex; align-items: center; gap: 8px; color: var(--hf-green) !important; }

@media (min-width: 980px) {
    .hf-header__inner { height: 72px; }
    :root { --hf-header-h: 72px; }
    .hf-logo img { height: 40px; }
    .hf-burger { display: none; }
    .hf-nav { position: static; display: flex; flex-direction: row; gap: 4px; padding: 0; margin-left: 28px; background: none; border: 0; box-shadow: none; }
    .hf-nav a { padding: 8px 12px; font-size: .95rem; color: var(--hf-text); }
    .hf-nav a:hover { color: var(--hf-navy); background: none; }
    .hf-nav__login { color: var(--hf-navy) !important; }
    .hf-nav__tel { display: none !important; }
    .hf-header__tel { display: inline-flex; margin-right: 6px; }
}

/* ---------- Hero ---------- */
.hf-hero {
    position: relative; overflow: hidden;
    background: radial-gradient(1200px 500px at 85% -10%, rgba(35, 72, 200, .55), transparent 60%), linear-gradient(160deg, var(--hf-navy) 0%, var(--hf-navy-2) 55%, var(--hf-blue) 130%);
    color: #dbe4ff; padding: 36px 0 48px;
}
.hf-hero h1 { color: #fff; }
.hf-hero__grid { display: grid; gap: 36px; align-items: center; }
.hf-hero__sous { font-size: 1.08rem; color: #c9d4f5; max-width: 38em; }
.hf-hero__btns { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 18px; }
.hf-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hf-green); margin-bottom: 12px; }
.hf-hero .hf-eyebrow { color: var(--hf-yellow); }
.hf-reassurance { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; color: #c9d4f5; }
.hf-reassurance li { display: inline-flex; align-items: center; gap: 6px; }
.hf-reassurance .hf-ico { color: #34d399; }
.hf-hero__visuel { display: flex; justify-content: center; }
.hf-retour { display: table; margin-bottom: 14px; color: #c9d4f5; text-decoration: none; font-size: .92rem; }
.hf-retour:hover { color: #fff; }

@media (min-width: 600px) { .hf-hero__btns { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 980px) {
    .hf-hero { padding: 72px 0 84px; }
    .hf-hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}

/* ---------- Cadre téléphone (vidéos 9:16) ---------- */
.hf-phone {
    position: relative; aspect-ratio: 9 / 16; width: 100%;
    background: #0b1020; border-radius: 34px; padding: 10px;
    box-shadow: var(--hf-shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.hf-phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 6px; transform: translateX(-50%); background: rgba(255, 255, 255, .12); border-radius: 6px; z-index: 3; }
.hf-phone video, .hf-phone__poster { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); border-radius: 26px; object-fit: cover; }
.hf-phone video { z-index: 2; opacity: 0; transition: opacity .35s; background: #0b1020; }
.hf-phone.is-ready video { opacity: 1; }
.hf-phone__poster {
    z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: radial-gradient(circle at 50% 30%, rgba(250, 204, 21, .25), transparent 55%), linear-gradient(170deg, #1b2a6b, #0b1437);
    color: #fff; text-align: center; padding: 20px;
}
.hf-phone__poster-ico { display: inline-flex; width: 84px; height: 84px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--hf-yellow); }
.hf-phone__poster-nom { font-weight: 700; font-size: 1.05rem; }
.hf-phone--lg { max-width: 300px; }
.hf-phone--sm { max-width: 220px; border-radius: 28px; padding: 8px; }
.hf-phone--sm video, .hf-phone--sm .hf-phone__poster { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border-radius: 21px; }
.hf-phone__play {
    position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--hf-yellow); color: var(--hf-navy); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    display: inline-flex; align-items: center; justify-content: center; padding-left: 4px;
    transition: transform .15s, opacity .2s;
}
.hf-phone__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.hf-phone.is-playing .hf-phone__play { opacity: 0; pointer-events: none; }
.hf-phone[data-video-card] { cursor: pointer; }
@media (min-width: 980px) { .hf-phone--lg { max-width: 330px; } }

/* ---------- Sections ---------- */
.hf-section { padding: 56px 0; }
.hf-section--clair { background: var(--hf-bg-soft); }
.hf-section--fonce { background: linear-gradient(170deg, var(--hf-navy), var(--hf-navy-2)); color: #c9d4f5; }
.hf-section--fonce h2, .hf-section--fonce h3 { color: #fff; }
.hf-section--fonce .hf-eyebrow { color: var(--hf-yellow); }
.hf-section__head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.hf-section__head p:last-child { margin-bottom: 0; font-size: 1.05rem; }
@media (min-width: 980px) { .hf-section { padding: 88px 0; } .hf-section__head { margin-bottom: 48px; } }

.hf-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .hf-grid--3, .hf-grid--4 { grid-template-columns: repeat(2, 1fr); } .hf-grid--5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .hf-grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .hf-grid--5 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 980px) { .hf-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } .hf-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.hf-feature { background: #fff; border: 1px solid var(--hf-line); border-radius: var(--hf-radius); padding: 22px; }
.hf-feature p { margin: 0; font-size: .95rem; }
.hf-feature__ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--hf-green-soft); color: var(--hf-green); margin-bottom: 14px; }
.hf-feature--fonce { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.hf-feature--fonce p { color: #b8c4ea; }
.hf-feature--fonce .hf-feature__ico { background: rgba(250, 204, 21, .14); color: var(--hf-yellow); }

/* ---------- Puces métiers ---------- */
.hf-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -16px 24px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.hf-chips::-webkit-scrollbar { display: none; }
.hf-chips--center { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0; }
.hf-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--hf-line); color: var(--hf-navy); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.hf-chip:hover { border-color: var(--hf-navy); }
.hf-chip--alt { background: var(--hf-green-soft); border-color: transparent; color: #047857; }
@media (min-width: 980px) { .hf-chips { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0 0 40px; padding: 0; } }

/* ---------- Cartes métiers ---------- */
.hf-metiers { display: grid; gap: 18px; }
.hf-metier {
    display: grid; grid-template-columns: 116px 1fr; gap: 16px; align-items: start;
    background: #fff; border: 1px solid var(--hf-line); border-radius: var(--hf-radius); padding: 14px;
    box-shadow: 0 2px 6px rgba(11, 20, 55, .03);
}
.hf-metier .hf-phone--sm { border-radius: 18px; padding: 5px; }
.hf-metier .hf-phone--sm::before { display: none; }
.hf-metier .hf-phone--sm video, .hf-metier .hf-phone--sm .hf-phone__poster { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); border-radius: 14px; }
.hf-metier .hf-phone__poster-ico { width: 56px; height: 56px; }
.hf-metier .hf-phone__poster-ico svg { width: 28px; height: 28px; }
.hf-metier .hf-phone__poster-nom { display: none; }
.hf-metier .hf-phone__play { width: 44px; height: 44px; }
.hf-metier__tag { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hf-green); margin: 2px 0 4px; }
.hf-metier h3 { font-size: 1.08rem; }
.hf-metier__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.hf-metier__actions .hf-btn { white-space: normal; }

@media (min-width: 600px) { .hf-metier { grid-template-columns: 170px 1fr; padding: 18px; gap: 22px; } }
@media (min-width: 980px) {
    .hf-metiers { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .hf-metier { grid-template-columns: 190px 1fr; padding: 22px; align-items: center; }
    .hf-metier:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 12px); justify-self: center; }
}

.hf-checks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: .95rem; }
.hf-checks li { display: flex; gap: 8px; align-items: flex-start; }
.hf-checks .hf-ico { color: var(--hf-green); margin-top: 3px; }

.hf-autre {
    display: grid; gap: 16px; align-items: center; margin-top: 28px; padding: 22px;
    border-radius: var(--hf-radius); border: 2px dashed #cbd5e1; background: #fff;
}
.hf-autre h3 { margin-bottom: 4px; }
.hf-autre p { margin: 0; }
.hf-autre__ico { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 14px; background: var(--hf-green-soft); color: var(--hf-green); }
@media (min-width: 768px) { .hf-autre { grid-template-columns: auto 1fr auto; padding: 26px 30px; } }

/* ---------- Pourquoi ---------- */
.hf-why { text-align: center; padding: 20px 12px; }
.hf-why__ico { display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center; border-radius: 50%; background: var(--hf-navy); color: var(--hf-yellow); margin-bottom: 14px; }
.hf-why p { margin: 0; }

/* ---------- Tarifs ---------- */
.hf-pricing { display: grid; gap: 18px; max-width: 1040px; margin: 0 auto; }
.hf-price { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hf-line); border-radius: var(--hf-radius); padding: 28px 24px; }
.hf-price .hf-checks { margin-bottom: 24px; flex: 1; }
.hf-price--pop { border: 2px solid var(--hf-navy); box-shadow: var(--hf-shadow); }
.hf-price__badge { position: absolute; top: -13px; left: 24px; background: var(--hf-yellow); color: var(--hf-navy); font-size: .78rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.hf-price__pour { color: var(--hf-muted); margin-bottom: 10px; }
.hf-price__montant { font-size: 1.8rem; font-weight: 800; color: var(--hf-navy); margin-bottom: 4px; }
.hf-pricing__note { text-align: center; margin: 22px 0 0; color: var(--hf-muted); font-weight: 600; }
@media (min-width: 980px) { .hf-pricing { grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; } }

/* ---------- Étapes ---------- */
.hf-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; display: grid; gap: 16px; counter-reset: none; }
.hf-steps li { position: relative; background: var(--hf-bg-soft); border-radius: var(--hf-radius); padding: 22px 22px 22px 80px; }
.hf-steps p { margin: 0; }
.hf-steps__num { position: absolute; left: 22px; top: 22px; width: 42px; height: 42px; border-radius: 50%; background: var(--hf-yellow); color: var(--hf-navy); font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; }
@media (min-width: 980px) {
    .hf-steps { grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .hf-steps li { padding: 28px; text-align: center; }
    .hf-steps__num { position: static; margin: 0 auto 14px; width: 52px; height: 52px; }
}

/* ---------- Témoignages ---------- */
.hf-temoignage { margin: 0; background: #fff; border-radius: var(--hf-radius); padding: 24px; border: 1px solid var(--hf-line); }
.hf-temoignage blockquote { margin: 0 0 14px; font-size: 1.02rem; color: var(--hf-ink); }
.hf-temoignage figcaption { color: var(--hf-muted); font-size: .92rem; }

/* ---------- FAQ ---------- */
.hf-faq { display: grid; gap: 10px; }
.hf-faq details { background: var(--hf-bg-soft); border-radius: var(--hf-radius-sm); padding: 0 18px; border: 1px solid transparent; }
.hf-faq details[open] { background: #fff; border-color: var(--hf-line); box-shadow: var(--hf-shadow); }
.hf-faq summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 700; color: var(--hf-ink); position: relative; }
.hf-faq summary::-webkit-details-marker { display: none; }
.hf-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--hf-blue); }
.hf-faq details[open] summary::after { content: "−"; }
.hf-faq details p { margin: 0 0 16px; }

/* ---------- Appel final ---------- */
.hf-cta { background: linear-gradient(135deg, var(--hf-navy), var(--hf-blue)); color: #dbe4ff; padding: 56px 0; text-align: center; }
.hf-cta h2 { color: #fff; }
.hf-cta__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hf-cta__inner p { margin: 0 0 6px; font-size: 1.05rem; }
.hf-cta__tel { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; color: #fff; font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 800; text-decoration: none; letter-spacing: .01em; }
.hf-cta__tel:hover { color: var(--hf-yellow); }
@media (min-width: 980px) { .hf-cta { padding: 80px 0; } }

/* ---------- Pied de page ---------- */
.hf-footer { background: #fff; border-top: 1px solid var(--hf-line); padding: 32px 0 96px; font-size: .94rem; }
.hf-footer__pays { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin-bottom: 32px; background: var(--hf-bg-soft); border-radius: var(--hf-radius-sm); color: var(--hf-text); }
.hf-footer__pays p { margin: 0; }
.hf-footer__pays .hf-ico { color: var(--hf-green); margin-top: 2px; }
.hf-footer__pays a { white-space: nowrap; font-weight: 600; color: var(--hf-muted); }
.hf-footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.hf-footer__col--brand { grid-column: 1 / -1; }
.hf-footer__logo { height: 32px; width: auto; margin-bottom: 10px; }
.hf-footer h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--hf-muted); margin-bottom: 10px; }
.hf-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.hf-footer a, .hf-footer .hf-linklike { color: var(--hf-text); text-decoration: none; }
.hf-footer a:hover, .hf-footer .hf-linklike:hover { color: var(--hf-navy); text-decoration: underline; }
.hf-footer__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--hf-line); color: var(--hf-muted); }
.hf-footer__bas p { margin: 0; }
@media (min-width: 980px) {
    .hf-footer { padding-bottom: 40px; }
    .hf-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .hf-footer__col--brand { grid-column: auto; }
}

/* ---------- WhatsApp flottant ---------- */
.hf-wa { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: flex-end; gap: 10px; }
.hf-wa__btn {
    display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%;
    background: var(--hf-wa); color: #fff; box-shadow: 0 10px 28px rgba(37, 211, 102, .45); transition: transform .15s;
}
.hf-wa__btn .hf-ico { width: 32px; height: 32px; }
.hf-wa__btn:hover { transform: scale(1.06); color: #fff; }
.hf-wa__bulle {
    position: relative; margin-bottom: 8px; background: #fff; color: var(--hf-ink); border-radius: 14px 14px 4px 14px;
    padding: 12px 36px 12px 14px; box-shadow: var(--hf-shadow-lg); font-size: .95rem; max-width: 220px; animation: hf-pop .25s ease-out;
}
.hf-wa__bulle a { color: var(--hf-ink); text-decoration: none; }
.hf-wa__bulle strong { color: var(--hf-green); }
.hf-wa__fermer { position: absolute; top: 4px; right: 6px; width: 28px; height: 28px; border: 0; background: none; color: var(--hf-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
@keyframes hf-pop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.hf-cookies-open .hf-wa { bottom: 150px; }

/* ---------- Bandeau cookies ---------- */
.hf-cookies {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
    background: var(--hf-navy); color: #dbe4ff; border-radius: var(--hf-radius); padding: 16px 18px; box-shadow: var(--hf-shadow-lg); font-size: .9rem;
}
.hf-cookies p { margin: 0 0 12px; }
.hf-cookies a { color: #fff; }
.hf-cookies__btns { display: flex; gap: 10px; justify-content: flex-end; }
.hf-cookies .hf-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
@media (min-width: 768px) {
    .hf-cookies { left: 24px; right: auto; bottom: 24px; max-width: 460px; }
    .hf-cookies-open .hf-wa { bottom: 16px; }
}

/* ---------- Fenêtre démo ---------- */
.hf-modal { border: 0; padding: 0; background: transparent; max-width: 520px; width: calc(100% - 24px); }
.hf-modal::backdrop { background: rgba(11, 20, 55, .6); }
.hf-modal__box { position: relative; background: #fff; border-radius: 20px; padding: 28px 22px 22px; box-shadow: var(--hf-shadow-lg); max-height: calc(100vh - 32px); overflow-y: auto; }
.hf-modal h2 { font-size: 1.5rem; padding-right: 32px; }
.hf-modal__intro { color: var(--hf-muted); }
.hf-modal__fermer { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--hf-bg-soft); color: var(--hf-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hf-modal__ou { margin: 16px 0 0; text-align: center; font-size: .92rem; color: var(--hf-muted); }
.hf-modal__ou a { font-weight: 700; color: var(--hf-green); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.hf-modal__merci { text-align: center; padding: 16px 4px 4px; }
.hf-merci__ico { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: var(--hf-green-soft); color: var(--hf-green); margin-bottom: 16px; }
@media (min-width: 600px) { .hf-modal__box { padding: 34px 32px 28px; } }

.hf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.hf-field label { font-weight: 600; font-size: .92rem; color: var(--hf-ink); }
.hf-opt { font-weight: 400; color: var(--hf-muted); }
.hf-field input, .hf-field select {
    width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff;
    font: inherit; font-size: 16px; color: var(--hf-ink);
}
.hf-field input:focus, .hf-field select:focus { border-color: var(--hf-blue); outline: 3px solid rgba(35, 72, 200, .15); outline-offset: 0; }
.hf-field input[aria-invalid="true"], .hf-field select[aria-invalid="true"] { border-color: #dc2626; }
.hf-field-row { display: grid; gap: 0 12px; }
@media (min-width: 600px) { .hf-field-row { grid-template-columns: 1fr 1fr; } }
.hf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hf-form__erreur { background: #fef2f2; color: #b91c1c; border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.hf-btn[disabled] { opacity: .65; cursor: wait; }

/* ---------- Pages légales ---------- */
.hf-legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.hf-legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.hf-legal ul { padding-left: 1.2em; }
.hf-legal__maj { color: var(--hf-muted); }

/* ---------- Espaces réservés (dev uniquement) ---------- */
.hf-todo { display: inline-block; margin: 8px 0; padding: 4px 10px; border: 2px dashed #f59e0b; background: #fffbeb; color: #92400e; border-radius: 6px; font-size: .85rem; font-weight: 600; line-height: 1.4; }
.hf-container > .hf-todo, main > .hf-todo { display: block; max-width: 1200px; margin: 12px auto; }

/* ---------- Prix (v2) ---------- */
.hf-hero__prix { margin: 0 0 16px; color: #dbe4ff; font-size: 1rem; }
.hf-hero__prix strong { color: var(--hf-yellow); font-size: 1.15rem; }
.hf-hero__prix a { color: #fff; font-weight: 600; }
.hf-price__montant small { font-size: .95rem; font-weight: 600; color: var(--hf-muted); }
.hf-price__montant span { display: block; font-size: .9rem; font-weight: 600; color: var(--hf-muted); margin-top: 2px; }
.hf-pro {
    display: grid; gap: 16px; align-items: center; max-width: 1040px; margin: 24px auto 0; padding: 24px;
    border-radius: var(--hf-radius); background: linear-gradient(135deg, var(--hf-navy), var(--hf-navy-2)); color: #c9d4f5;
}
.hf-pro h3 { color: #fff; font-size: 1.3rem; }
.hf-pro p { margin: 0; }
.hf-pro strong { color: #fff; }
.hf-pro .hf-eyebrow { color: var(--hf-yellow); margin-bottom: 6px; }
@media (min-width: 768px) { .hf-pro { grid-template-columns: 1fr auto; padding: 28px 32px; gap: 28px; } }
.hf-cta__btns { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; }
@media (min-width: 600px) { .hf-cta__btns { flex-direction: row; max-width: none; justify-content: center; } }

/* ---------- Matériel et formation ---------- */
.hf-duo { display: grid; gap: 18px; }
.hf-duo__bloc { background: var(--hf-bg-soft); border-radius: var(--hf-radius); padding: 26px; }
.hf-duo__bloc p { margin-bottom: 12px; }
.hf-duo__prix { font-weight: 700; color: var(--hf-navy); }
@media (min-width: 900px) { .hf-duo { grid-template-columns: 1fr 1fr; gap: 24px; } .hf-duo__bloc { padding: 32px; } }

/* ---------- Questionnaire de devis ---------- */
.hf-devis .hf-modal__box { min-height: 420px; display: flex; flex-direction: column; }
.hf-devis__haut { padding-right: 44px; margin-bottom: 18px; }
.hf-devis__etape { margin: 0 0 8px; font-size: .85rem; font-weight: 700; color: var(--hf-green); text-transform: uppercase; letter-spacing: .06em; }
.hf-devis__barre { height: 6px; border-radius: 6px; background: var(--hf-bg-soft); overflow: hidden; }
.hf-devis__barre span { display: block; height: 100%; width: 0; background: var(--hf-yellow); transition: width .25s ease; }
.hf-devis__q { border: 0; margin: 0; padding: 0; min-width: 0; }
.hf-devis__q legend { font-size: 1.4rem; font-weight: 800; color: var(--hf-ink); margin-bottom: 16px; padding: 0; line-height: 1.25; }
.hf-choix { display: grid; gap: 10px; }
@media (min-width: 600px) { .hf-devis__q[data-step="metier"] .hf-choix { grid-template-columns: 1fr 1fr; } }
.hf-choix__btn {
    display: flex; align-items: center; min-height: 54px; padding: 12px 16px; width: 100%; text-align: left;
    border: 2px solid var(--hf-line); border-radius: 12px; background: #fff; color: var(--hf-ink); font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.hf-choix__btn:hover { border-color: var(--hf-navy); }
.hf-choix__btn.is-choisi { border-color: var(--hf-green); background: var(--hf-green-soft); }
.hf-devis__nav { margin-top: auto; padding-top: 14px; }
.hf-devis__retour { color: var(--hf-muted); font-weight: 600; }
.hf-devis__rgpd { margin: 12px 0 0; font-size: .78rem; color: var(--hf-muted); text-align: center; }
.hf-devis__resultat { text-align: center; }
.hf-estim { text-align: left; background: var(--hf-bg-soft); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.hf-estim h3 { font-size: 1.05rem; margin-bottom: 8px; }
.hf-estim ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: .95rem; }
.hf-devis__note { font-size: .82rem; color: var(--hf-muted); }
.hf-devis__rappel { background: var(--hf-green-soft); color: #065f46; border-radius: 10px; padding: 12px 14px; font-size: .95rem; }

/* ---------- Fenêtre avant départ ---------- */
.hf-btn--wa { background: var(--hf-wa); color: #fff; }
.hf-btn--wa:hover { background: #1fb457; color: #fff; }
.hf-depart__sondage { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hf-line); }
.hf-depart__sondage p { font-size: .95rem; color: var(--hf-ink); }
.hf-depart__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-depart__chips .hf-chip { cursor: pointer; font: inherit; font-size: .9rem; font-weight: 600; }

/* ---------- Tableau admin ---------- */
.hf-table-wrap { overflow-x: auto; }
.hf-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: .92rem; }
.hf-table th, .hf-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hf-line); }
.hf-table th { background: var(--hf-bg-soft); color: var(--hf-ink); }

/* ---------- Connexion / Inscription ---------- */
.hf-auth-body { background: var(--hf-bg-soft); }
.hf-auth { min-height: 100vh; display: grid; }
.hf-auth__marque { display: none; }
.hf-auth__main { display: flex; flex-direction: column; align-items: center; padding: 24px 16px 32px; }
.hf-auth__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; }
.hf-auth__logo img { border-radius: 10px; }
.hf-auth__logo--mobile { margin-bottom: 20px; }
.hf-auth__logo--mobile img { border-radius: 0; height: 34px; width: auto; }
.hf-auth__carte { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 28px 22px; box-shadow: var(--hf-shadow); border: 1px solid var(--hf-line); }
.hf-auth__titre { font-size: 1.7rem; margin-bottom: 4px; }
.hf-auth__sous { color: var(--hf-muted); margin-bottom: 22px; }
.hf-auth__sep { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--hf-muted); font-size: .85rem; }
.hf-auth__sep::before, .hf-auth__sep::after { content: ""; flex: 1; height: 1px; background: var(--hf-line); }
.hf-auth__form .hf-field { margin-bottom: 16px; }
.hf-field__entete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hf-field__lien { font-size: .88rem; font-weight: 600; text-decoration: none; }
.hf-field__lien:hover { text-decoration: underline; }
.hf-mdp { position: relative; }
.hf-mdp input { padding-right: 92px; }
.hf-mdp__voir { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--hf-bg-soft); color: var(--hf-navy); font-weight: 600; font-size: .82rem; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.hf-btn--navy { background: var(--hf-navy); color: #fff; }
.hf-btn--navy:hover { background: var(--hf-blue); color: #fff; }
.hf-google {
    display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 18px;
    border: 1.5px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--hf-ink); font-weight: 600; text-decoration: none; transition: border-color .15s, box-shadow .15s, opacity .15s;
}
.hf-google:hover { border-color: var(--hf-navy); box-shadow: 0 4px 14px rgba(11, 20, 55, .08); color: var(--hf-ink); }
.hf-google.is-bloque { opacity: .55; }
.hf-google.is-chargement { pointer-events: none; opacity: .7; }
.hf-auth__mini { margin: 8px 0 0; text-align: center; font-size: .8rem; color: var(--hf-muted); }
.hf-auth__switch { margin: 22px 0 0; text-align: center; color: var(--hf-text); }
.hf-auth__switch a, .hf-auth__demo a { font-weight: 700; }
.hf-auth__demo { margin: 8px 0 0; text-align: center; font-size: .9rem; color: var(--hf-muted); }
.hf-auth__encart { margin-top: 22px; padding: 16px; border-radius: 14px; background: var(--hf-bg-soft); display: grid; gap: 12px; justify-items: start; font-size: .92rem; }
.hf-auth__encart p { margin: 0; }
.hf-auth__bas { margin: 20px 0 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: .88rem; color: var(--hf-muted); }
.hf-auth__bas a { color: var(--hf-muted); text-decoration: none; }
.hf-auth__bas a:hover { color: var(--hf-navy); text-decoration: underline; }
.hf-alerte { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: .92rem; background: var(--hf-bg-soft); }
.hf-alerte--ok { background: var(--hf-green-soft); color: #065f46; }
.hf-alerte--erreur { background: #fef2f2; color: #b91c1c; }
.hf-cgu { padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--hf-line); margin-bottom: 16px; transition: border-color .15s; }
.hf-cgu.is-erreur { border-color: #dc2626; background: #fef2f2; }
.hf-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 600; color: var(--hf-ink); }
.hf-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--hf-navy); }
.hf-cgu__aide { margin: 10px 0 0 30px; font-size: .82rem; color: var(--hf-muted); }
.hf-cgu__erreur { margin: 8px 0 0 30px; font-size: .85rem; color: #b91c1c; font-weight: 600; }

@media (min-width: 960px) {
    .hf-auth { grid-template-columns: minmax(380px, 44%) 1fr; }
    .hf-auth__marque {
        display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px;
        background: radial-gradient(700px 400px at 100% 0%, rgba(35, 72, 200, .6), transparent 60%), linear-gradient(165deg, var(--hf-navy), var(--hf-navy-2));
        color: #c9d4f5; position: sticky; top: 0; height: 100vh;
    }
    .hf-auth__pitch h2 { color: #fff; font-size: 2.1rem; max-width: 14em; }
    .hf-auth__points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; font-size: 1.02rem; }
    .hf-auth__points li { display: flex; gap: 10px; align-items: flex-start; }
    .hf-auth__points .hf-ico { color: var(--hf-yellow); margin-top: 3px; }
    .hf-auth__aide { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .92rem; }
    .hf-auth__aide p { margin: 0; width: 100%; color: #8fa0d6; }
    .hf-auth__aide a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
    .hf-auth__main { justify-content: center; padding: 40px; }
    .hf-auth__logo--mobile { display: none; }
    .hf-auth__carte { padding: 40px 36px; }
}
