/*
 * app.css — feuille de style du site france-majorite.com
 *
 * Registre visuel : faux service institutionnel « corporate rassurant ».
 * Bleus et gris institutionnels, sans-serif neutre (Public Sans, auto-hébergée),
 * beaucoup de blanc, badges de confiance. La forme doit être SINCÈRE et crédible :
 * l'ironie naît du contraste forme/fond, jamais du visuel.
 *
 * INTERDIT (cf. CLAUDE.md) : bloc-marque Marianne, DSFR, typo Marianne, tout
 * signe évoquant une administration réelle. Aucune police distante, aucun CDN.
 */

/* ------------------------------------------------------------------ *
 * Polices auto-hébergées — Public Sans (SIL Open Font License 1.1)
 * Fichiers dans app/assets/fonts/ ; les URL sont résolues par l'AssetMapper.
 * ------------------------------------------------------------------ */
@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/PublicSans-Regular-96vNZjz.woff2") format('woff2');
}
@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/PublicSans-Medium-CaV9iSu.woff2") format('woff2');
}
@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/PublicSans-SemiBold-XbM5_gK.woff2") format('woff2');
}
@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/PublicSans-Bold-3zPgxdY.woff2") format('woff2');
}

/* ------------------------------------------------------------------ *
 * Variables de thème
 * ------------------------------------------------------------------ */
:root {
    /* Bleu institutionnel — sobre, sérieux, rassurant. Aucun tricolore. */
    --fm-blue-900: #0e2c52;
    --fm-blue-800: #123761;
    --fm-blue-700: #17457a; /* couleur primaire */
    --fm-blue-600: #1d5599;
    --fm-blue-500: #2a6bb8;
    --fm-blue-200: #bcd4ec;
    --fm-blue-100: #e4eef8;
    --fm-blue-050: #f2f7fc;

    /* Gris institutionnels */
    --fm-gray-900: #1a2430;
    --fm-gray-800: #263140;
    --fm-gray-700: #3a4658;
    --fm-gray-600: #556172;
    --fm-gray-500: #6b7684;
    --fm-gray-400: #96a0ad;
    --fm-gray-300: #cdd5df;
    --fm-gray-200: #e2e8f0;
    --fm-gray-100: #eef2f7;
    --fm-gray-050: #f7f9fc;
    --fm-white: #ffffff;

    /* Sémantique */
    --fm-success: #1e7a52;
    --fm-success-bg: #e7f4ee;

    --fm-text: var(--fm-gray-900);
    --fm-text-muted: var(--fm-gray-500);
    --fm-bg: var(--fm-white);
    --fm-bg-alt: var(--fm-gray-050);
    --fm-border: var(--fm-gray-200);
    --fm-primary: var(--fm-blue-700);
    --fm-primary-hover: var(--fm-blue-800);

    --fm-radius: 0.5rem;
    --fm-radius-sm: 0.3rem;
    --fm-shadow-sm: 0 1px 2px rgba(15, 44, 82, 0.06), 0 1px 3px rgba(15, 44, 82, 0.08);
    --fm-shadow: 0 4px 12px rgba(15, 44, 82, 0.08);
    --fm-focus-ring: 0 0 0 3px rgba(42, 107, 184, 0.35);

    --fm-font-sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --fm-maxw: 1140px;
}

/* Bootstrap : réaligner les couleurs de la classe utilitaire text-primary/bg-primary
   sur le bleu institutionnel du site, sans dépendre du build Sass. */
:root {
    --bs-primary: var(--fm-primary);
    --bs-primary-rgb: 23, 69, 122;
    --bs-link-color: var(--fm-blue-600);
    --bs-link-color-rgb: 29, 85, 153;
    --bs-link-hover-color: var(--fm-blue-800);
    --bs-body-font-family: var(--fm-font-sans);
    --bs-body-color: var(--fm-text);
}

/* ------------------------------------------------------------------ *
 * Base
 * ------------------------------------------------------------------ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fm-font-sans);
    color: var(--fm-text);
    background-color: var(--fm-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    letter-spacing: -0.011em;
    color: var(--fm-gray-900);
}

a {
    color: var(--fm-blue-600);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
a:hover {
    color: var(--fm-blue-800);
}

/* Accessibilité : lien d'évitement */
.fm-skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 2000;
    background: var(--fm-blue-700);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 0 0 var(--fm-radius-sm) 0;
    font-weight: 600;
}
.fm-skip-link:focus {
    left: 0;
    color: #fff;
}

/* Anneau de focus homogène et visible (crédibilité + accessibilité) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.fm-lang-switch a:focus-visible,
.navbar-toggler:focus-visible {
    outline: none;
    box-shadow: var(--fm-focus-ring);
    border-radius: var(--fm-radius-sm);
}

/* ------------------------------------------------------------------ *
 * Bandeau de transparence (permanent, discret) — invariant du projet
 * ------------------------------------------------------------------ */
.fm-transparency {
    background-color: var(--fm-gray-100);
    border-bottom: 1px solid var(--fm-border);
    color: var(--fm-gray-700);
    font-size: 0.8125rem;
    line-height: 1.3;
}
.fm-transparency__inner {
    max-width: var(--fm-maxw);
    margin: 0 auto;
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.fm-transparency .bi {
    color: var(--fm-blue-600);
    flex: 0 0 auto;
}
.fm-transparency strong {
    color: var(--fm-gray-800);
    font-weight: 600;
}

/* ------------------------------------------------------------------ *
 * Navbar
 * ------------------------------------------------------------------ */
.fm-navbar {
    background-color: var(--fm-white);
    border-bottom: 1px solid var(--fm-border);
    box-shadow: var(--fm-shadow-sm);
}
.fm-navbar .navbar-nav .nav-link {
    color: var(--fm-gray-700);
    font-weight: 500;
    padding-inline: 0.9rem;
}
.fm-navbar .navbar-nav .nav-link:hover,
.fm-navbar .navbar-nav .nav-link:focus {
    color: var(--fm-blue-700);
}
.fm-navbar .navbar-nav .nav-link.active {
    color: var(--fm-blue-700);
    font-weight: 600;
}

/* Bloc-marque texte — PAS de Marianne, PAS de DSFR. Marque abstraite neutre. */
.fm-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}
.fm-brand:hover {
    text-decoration: none;
}
.fm-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--fm-radius-sm);
    background: linear-gradient(160deg, var(--fm-blue-600), var(--fm-blue-800));
    color: #fff;
    font-size: 1.15rem;
    flex: 0 0 auto;
}
.fm-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.fm-brand__name {
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--fm-gray-900);
    letter-spacing: -0.01em;
}
.fm-brand__tagline {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--fm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Sélecteur de langue */
.fm-lang-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-sm);
    overflow: hidden;
}
.fm-lang-switch a {
    padding: 0.25rem 0.6rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fm-gray-600);
    text-decoration: none;
    background: var(--fm-white);
    line-height: 1.4;
}
.fm-lang-switch a + a {
    border-left: 1px solid var(--fm-border);
}
.fm-lang-switch a:hover {
    background: var(--fm-gray-050);
    color: var(--fm-blue-700);
}
.fm-lang-switch a[aria-current="true"] {
    background: var(--fm-blue-700);
    color: #fff;
}

/* ------------------------------------------------------------------ *
 * Boutons — surcharge sobre du primaire Bootstrap
 * ------------------------------------------------------------------ */
.btn-primary {
    --bs-btn-bg: var(--fm-primary);
    --bs-btn-border-color: var(--fm-primary);
    --bs-btn-hover-bg: var(--fm-primary-hover);
    --bs-btn-hover-border-color: var(--fm-primary-hover);
    --bs-btn-active-bg: var(--fm-blue-900);
    --bs-btn-active-border-color: var(--fm-blue-900);
    --bs-btn-disabled-bg: var(--fm-blue-500);
    --bs-btn-disabled-border-color: var(--fm-blue-500);
    font-weight: 600;
}
.btn-outline-primary {
    --bs-btn-color: var(--fm-primary);
    --bs-btn-border-color: var(--fm-primary);
    --bs-btn-hover-bg: var(--fm-primary);
    --bs-btn-hover-border-color: var(--fm-primary);
    --bs-btn-active-bg: var(--fm-primary-hover);
    --bs-btn-active-border-color: var(--fm-primary-hover);
    font-weight: 600;
}
.btn {
    border-radius: var(--fm-radius-sm);
}

/* ------------------------------------------------------------------ *
 * Badges de confiance
 * ------------------------------------------------------------------ */
.fm-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
}
.fm-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fm-gray-700);
}
.fm-trust-badge .bi {
    color: var(--fm-success);
    font-size: 1rem;
}
/* Variante lien (navbar) : même apparence que le badge inerte. */
.fm-trust-badge--link {
    text-decoration: none;
}
.fm-trust-badge--link:hover,
.fm-trust-badge--link:focus-visible {
    color: var(--fm-blue-900);
    text-decoration: underline;
}

/* ------------------------------------------------------------------ *
 * Fil d'Ariane du tunnel (stepper)
 * ------------------------------------------------------------------ */
.fm-stepper {
    background: var(--fm-bg-alt);
    border-bottom: 1px solid var(--fm-border);
}
.fm-stepper__inner {
    max-width: var(--fm-maxw);
    margin: 0 auto;
    padding: 0.85rem 1rem;
}
.fm-stepper__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: fm-step;
}
.fm-stepper__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--fm-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}
.fm-stepper__item:not(:last-child)::after {
    content: "";
    width: 1.5rem;
    height: 1px;
    background: var(--fm-gray-300);
    margin-inline: 0.25rem;
}
.fm-stepper__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--fm-gray-200);
    color: var(--fm-gray-600);
    font-size: 0.8125rem;
    font-weight: 700;
    flex: 0 0 auto;
}
.fm-stepper__item--done .fm-stepper__num {
    background: var(--fm-success-bg);
    color: var(--fm-success);
}
.fm-stepper__item--current {
    color: var(--fm-blue-800);
    font-weight: 600;
}
.fm-stepper__item--current .fm-stepper__num {
    background: var(--fm-blue-700);
    color: #fff;
}

/* ------------------------------------------------------------------ *
 * Sections utilitaires
 * ------------------------------------------------------------------ */
.fm-section {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.fm-section--alt {
    background: var(--fm-bg-alt);
}
.fm-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fm-blue-600);
    margin-bottom: 0.6rem;
}
.fm-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--fm-gray-700);
}

/* Encart de réassurance (bloc « Vos données sont protégées » et similaires) */
.fm-card {
    background: var(--fm-white);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-sm);
    padding: 1.5rem;
}

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */
.fm-footer {
    background: var(--fm-blue-900);
    color: var(--fm-blue-100);
    padding-block: 2.5rem 1.5rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.fm-footer a {
    color: #fff;
    text-decoration: none;
}
.fm-footer a:hover {
    color: var(--fm-blue-200);
    text-decoration: underline;
}
.fm-footer__brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}
.fm-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
}
.fm-footer__satire {
    color: var(--fm-blue-200);
    font-size: 0.85rem;
    line-height: 1.5;
}
.fm-footer__divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-block: 1.4rem;
}
.fm-footer__bottom {
    color: var(--fm-blue-200);
    font-size: 0.8rem;
}

/* ================================================================== *
 * VITRINE (page d'accueil) — phase 5
 * Registre corporate rassurant. L'ironie est dans le texte, jamais dans
 * le visuel : formes lisses, sobres, crédibles.
 * ================================================================== */

/* ---------------------- Bannière pré-réservation ---------------------- */
.fm-preorder {
    padding-block: clamp(1.25rem, 3vw, 1.75rem);
    background: linear-gradient(115deg, var(--fm-blue-900), var(--fm-blue-700));
    color: var(--fm-white);
}
.fm-preorder__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    flex-wrap: wrap;
}
.fm-preorder__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 0.6rem;
}
.fm-preorder__catch {
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.fm-preorder__text {
    font-size: 0.95rem;
    color: var(--fm-blue-100);
    max-width: 60ch;
}
.fm-preorder__cta {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--fm-blue-800);
}
.fm-preorder__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}
.fm-preorder__dismiss {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: var(--fm-blue-100);
    cursor: pointer;
}
.fm-preorder__dismiss input {
    accent-color: var(--fm-white);
    cursor: pointer;
}
.fm-preorder[hidden] {
    display: none;
}

/* ---------------------------- Hero ---------------------------- */
.fm-hero {
    padding-block: clamp(2.75rem, 6vw, 5rem);
    background:
        radial-gradient(120% 120% at 100% 0%, var(--fm-blue-050) 0%, var(--fm-white) 55%);
}
.fm-hero__title {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
/* Bannière contexte — fond bleu clair, distinct de la bannière pré-réservation (bleu foncé) */
.fm-context {
    padding-block: clamp(1.5rem, 3.5vw, 2.5rem);
    background: var(--fm-blue-100);
    border-bottom: 1px solid var(--fm-blue-200);
}
.fm-hero__slogan {
    border-left: 3px solid var(--fm-blue-700);
    padding: 0.35rem 0 0.35rem 1rem;
    font-style: italic;
    color: var(--fm-text-muted);
    line-height: 1.55;
    max-width: 44ch;
}
.fm-hero__slogan span {
    display: block;
}
.fm-hero__slogan strong {
    display: block;
    margin-top: 0.35rem;
    font-style: normal;
    font-weight: 700;
    color: var(--fm-blue-800);
}
.fm-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.fm-hero__note {
    font-size: 0.875rem;
    color: var(--fm-text-muted);
}
.fm-hero__visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--fm-radius);
    background: linear-gradient(150deg, var(--fm-blue-100), var(--fm-blue-050) 60%, var(--fm-gray-100));
    border: 1px solid var(--fm-border);
    box-shadow: var(--fm-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.fm-hero__visual-icon {
    font-size: clamp(3.5rem, 9vw, 6rem);
    color: var(--fm-blue-500);
    opacity: 0.55;
}
.fm-hero__visual-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.6rem;
    color: var(--fm-success);
    background: var(--fm-white);
    border-radius: 50%;
    line-height: 1;
    box-shadow: var(--fm-shadow-sm);
}

/* --------------------------- Nos services --------------------------- */
.fm-service {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    border-top: 3px solid var(--fm-blue-700);
}
.fm-service__icon {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.5rem;
    background: var(--fm-blue-700);
    color: var(--fm-white);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-sm);
}
.fm-service__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fm-blue-600);
}

/* --------------------------- Chiffres --------------------------- */
.fm-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.fm-stat__value {
    font-size: clamp(1.75rem, 4.5vw, 2.6rem);
    font-weight: 700;
    color: var(--fm-blue-700);
    line-height: 1;
    letter-spacing: -0.02em;
}
.fm-stat__label {
    font-size: 0.85rem;
    color: var(--fm-text-muted);
    line-height: 1.3;
}

/* --------------------- Icônes de rubrique --------------------- */
.fm-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--fm-radius-sm);
    background: var(--fm-blue-100);
    color: var(--fm-blue-700);
    font-size: 1.3rem;
}
.fm-feature-icon--muted {
    background: var(--fm-gray-100);
    color: var(--fm-gray-600);
}

/* ---------------------------- Étapes ---------------------------- */
.fm-step {
    padding: 0.5rem 0.5rem 0.5rem 0;
}
.fm-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--fm-blue-700);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}

/* -------------------- Encart RU / Australie -------------------- */
.fm-abroad {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    background: var(--fm-blue-900);
    color: var(--fm-blue-100);
    border-radius: var(--fm-radius);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    overflow: hidden;
}
.fm-abroad .fm-eyebrow {
    color: var(--fm-blue-200);
}
.fm-abroad h2 {
    color: #fff;
}
.fm-abroad__visual {
    aspect-ratio: 16 / 10;
    border-radius: var(--fm-radius-sm);
    background: linear-gradient(150deg, var(--fm-blue-800), var(--fm-blue-900));
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fm-abroad__visual-icon {
    font-size: clamp(2.5rem, 7vw, 4rem);
    color: var(--fm-blue-200);
    opacity: 0.7;
}
.fm-abroad .btn-outline-primary {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, 0.55);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-color: var(--fm-blue-900);
    --bs-btn-hover-border-color: #fff;
}
@media (max-width: 767.98px) {
    .fm-abroad {
        grid-template-columns: 1fr;
    }
}

/* ============ « À quoi ressemblera votre internet » ============ */
.fm-internet__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}
@media (max-width: 575.98px) {
    .fm-internet__grid {
        grid-template-columns: 1fr;
    }
}
.fm-internet__disclaimer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--fm-text-muted);
    font-style: italic;
}

.fm-site__frame {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--fm-radius);
    border: 1px solid var(--fm-border);
    background: var(--fm-white);
    box-shadow: var(--fm-shadow-sm);
    overflow: hidden;
    margin: 0;
}
.fm-site--uk .fm-site__frame {
    border: 2px solid var(--fm-blue-500);
    box-shadow: 0 0 0 4px var(--fm-blue-100);
}
.fm-site__region {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--fm-blue-700);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

/* La maquette floutée : décorative (aria-hidden). */
.fm-mockup {
    position: absolute;
    inset: 0;
    filter: blur(4px);
    transform: scale(1.04); /* masque les bords que le flou éclaircit */
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    user-select: none;
    pointer-events: none;
}
.fm-mk-topbar {
    height: 14%;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-inline: 0.4rem;
    flex: 0 0 auto;
}
.fm-mk-topbar--warm { background: #e8863b; }
.fm-mk-topbar--dark { background: var(--fm-gray-900); }
.fm-mk-topbar--light { background: var(--fm-gray-100); border-bottom: 1px solid var(--fm-gray-300); }
.fm-mk-logo { width: 22%; height: 45%; background: rgba(255, 255, 255, 0.85); border-radius: 2px; }
.fm-mk-topbar--light .fm-mk-logo { background: var(--fm-gray-400); }
.fm-mk-logo--wide { width: 40%; }
.fm-mk-logo--round { border-radius: 50%; width: 10%; aspect-ratio: 1; height: auto; }
.fm-mk-search { flex: 1; height: 40%; background: rgba(255, 255, 255, 0.55); border-radius: 999px; }
.fm-mk-topbar--light .fm-mk-search { background: var(--fm-white); border: 1px solid var(--fm-gray-300); }
.fm-mk-body { flex: 1; display: flex; gap: 0.4rem; min-height: 0; }
.fm-mk-tiles {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
}
.fm-mk-tile { display: flex; flex-direction: column; gap: 0.2rem; }
.fm-mk-thumb { flex: 1; background: var(--fm-gray-200); border-radius: 3px; min-height: 1.2rem; }
.fm-mk-aside { width: 26%; display: flex; flex-direction: column; gap: 0.3rem; }
.fm-mk-line { height: 0.5rem; background: var(--fm-gray-300); border-radius: 2px; }
.fm-mk-line--short { width: 60%; }
.fm-mk-block { height: 2.5rem; background: var(--fm-gray-200); border-radius: 3px; margin-top: auto; }
.fm-mk-lead { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.4rem; }
.fm-mk-headline { height: 0.9rem; background: var(--fm-gray-800); border-radius: 2px; width: 85%; }
.fm-mk-cols { display: flex; gap: 0.5rem; flex: 1; }
.fm-mk-col { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }

/* Maquette jeu vidéo */
.fm-mk-game { flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.fm-mk-viewport {
    flex: 1;
    position: relative;
    background: linear-gradient(160deg, #2a3550, #46351f);
    border-radius: 3px;
    min-height: 2rem;
}
.fm-mk-hud { position: absolute; top: 0.3rem; left: 0.3rem; width: 30%; height: 0.5rem; background: rgba(255, 255, 255, 0.6); border-radius: 999px; }
.fm-mk-hud--right { left: auto; right: 0.3rem; width: 18%; }
.fm-mk-panel { height: 34%; display: flex; gap: 0.4rem; }
.fm-mk-players { width: 30%; display: flex; flex-direction: column; gap: 0.25rem; }
.fm-mk-player { flex: 1; background: var(--fm-gray-200); border-radius: 2px; }
.fm-mk-chat { flex: 1; background: var(--fm-gray-100); border-radius: 3px; padding: 0.25rem; display: flex; flex-direction: column; gap: 0.25rem; }

/* Maquette encyclopédie (Wikipédia / RU) */
.fm-mk-wiki-nav { width: 20%; display: flex; flex-direction: column; gap: 0.3rem; }
.fm-mk-wiki-main { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.fm-mk-wiki-info { width: 24%; display: flex; flex-direction: column; gap: 0.3rem; border: 1px solid var(--fm-gray-200); border-radius: 3px; padding: 0.25rem; }

/* La modale de vérification, par-dessus la maquette floutée. */
.fm-site__modal {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
    padding: 1.25rem;
    background: rgba(14, 44, 82, 0.28);
    backdrop-filter: blur(1px);
}
.fm-site__modal::before {
    content: "";
    position: absolute;
    inset: 12% 10%;
    background: var(--fm-white);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow);
    z-index: -1;
}
.fm-site__modal-icon {
    font-size: 1.5rem;
    color: var(--fm-blue-700);
}
.fm-site__modal-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--fm-gray-900);
    margin: 0;
}
.fm-site__modal-body {
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--fm-gray-600);
    margin: 0;
    max-width: 20rem;
}
.fm-site__label {
    margin-top: 0.85rem;
}
.fm-site__name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--fm-gray-900);
}
.fm-site__caption {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--fm-gray-600);
}

/* ==================== Avis « Trust Biloute » ==================== */
.fm-reviews__header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.fm-reviews__score {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    background: var(--fm-white);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-sm);
    padding: 0.85rem 1.25rem;
}
.fm-reviews__score-num {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--fm-blue-700);
    line-height: 1;
}
.fm-reviews__score-out {
    font-size: 1rem;
    color: var(--fm-text-muted);
    font-weight: 600;
}
.fm-reviews__brand {
    font-size: 1.4rem;
    margin: 0 0 0.15rem;
}
.fm-reviews__count {
    font-size: 0.9rem;
    color: var(--fm-gray-700);
    font-weight: 600;
}
.fm-reviews__tagline {
    font-size: 0.875rem;
    color: var(--fm-text-muted);
    font-style: italic;
}

/* Étoiles : bleu institutionnel — PAS l'étoile verte de Trustpilot. */
.fm-stars {
    display: inline-flex;
    gap: 0.1rem;
    color: var(--fm-blue-700);
    font-size: 0.95rem;
    line-height: 1;
}
.fm-stars .bi-star {
    color: var(--fm-gray-300);
}

.fm-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.fm-reviews__grid--extra {
    margin-top: 1.25rem;
}
@media (max-width: 991.98px) {
    .fm-reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .fm-reviews__grid { grid-template-columns: 1fr; }
}

.fm-review {
    background: var(--fm-white);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}
.fm-review__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.fm-review__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    flex: 0 0 auto;
    background: var(--fm-blue-600); /* repli */
}
/* Initiales colorées — aucune photo (cf. contraintes du widget). */
.fm-review__avatar--r1 { background: #3a6ea5; }
.fm-review__avatar--r2 { background: #7a5195; }
.fm-review__avatar--r3 { background: #2f8f6b; }
.fm-review__avatar--r4 { background: #bc5090; }
.fm-review__avatar--r5 { background: #c77f2a; }
.fm-review__avatar--r6 { background: #556172; }
.fm-review__avatar--r7 { background: #4c78a8; }
.fm-review__avatar--r8 { background: #6a8532; }
.fm-review__avatar--r9 { background: #8a4b4b; }
.fm-review__avatar--r10 { background: #3f7d78; }
.fm-review__id {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
    margin-right: auto;
}
.fm-review__author {
    font-weight: 600;
    font-size: 0.925rem;
    color: var(--fm-gray-900);
}
.fm-review__place {
    font-size: 0.775rem;
    color: var(--fm-text-muted);
}
/* Badge « Avis vérifié » proéminent (la meilleure blague du bloc). */
.fm-review__verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--fm-success-bg);
    color: var(--fm-success);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
    flex: 0 0 auto;
}
.fm-review__verified .bi {
    font-size: 0.85rem;
}
.fm-review__rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.fm-review__date {
    font-size: 0.75rem;
    color: var(--fm-text-muted);
}
.fm-review__body {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--fm-gray-700);
    margin: 0;
}
.fm-review__body--followup {
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--fm-gray-900);
}

/* Repli « Voir tous les avis » — natif, aucun JS. */
.fm-reviews__more {
    margin-top: 1.25rem;
}
.fm-reviews__more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--fm-blue-700);
    background: var(--fm-white);
    border: 1px solid var(--fm-blue-200);
    border-radius: var(--fm-radius-sm);
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
}
.fm-reviews__more-btn::-webkit-details-marker { display: none; }
.fm-reviews__more-btn:hover { background: var(--fm-blue-050); }
.fm-reviews__more-btn:focus-visible { outline: none; box-shadow: var(--fm-focus-ring); }
.fm-reviews__more[open] .fm-reviews__more-btn .bi { transform: rotate(180deg); }
.fm-reviews__more-btn .bi { transition: transform 0.15s ease; }

/* Avis pivot (1 étoile) — dernier visible, pleine largeur, avant la grille. */
.fm-review--pivot {
    margin-top: 1.5rem;
    border-color: var(--fm-gray-400);
    border-left: 4px solid var(--fm-blue-700);
    background: var(--fm-gray-050);
}

/* ==================== Encart « Données protégées » ==================== */
.fm-data {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    background: var(--fm-blue-050);
    border: 1px solid var(--fm-blue-100);
    border-radius: var(--fm-radius);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.fm-data__visual {
    aspect-ratio: 4 / 3;
    border-radius: var(--fm-radius);
    background: linear-gradient(150deg, var(--fm-blue-200), var(--fm-blue-100) 60%, var(--fm-white));
    border: 1px solid var(--fm-blue-100);
    box-shadow: var(--fm-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fm-data__visual-icon {
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--fm-blue-700);
    opacity: 0.75;
}
.fm-data__promises {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.fm-data__promises li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.975rem;
    color: var(--fm-gray-800);
}
.fm-data__promises .bi {
    color: var(--fm-success);
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex: 0 0 auto;
}
/* Le CTA d'échappatoire ne doit JAMAIS être moins visible que les autres. */
.fm-data__cta {
    box-shadow: var(--fm-shadow);
}
@media (max-width: 767.98px) {
    .fm-data {
        grid-template-columns: 1fr;
    }
}

/* ============== Page « Comment ça marche ? » ============== */
.fm-how-step {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}
.fm-how-step + .fm-how-step {
    margin-top: clamp(2.5rem, 6vw, 4rem);
}
/* Alternance gauche/droite par placement de grille explicite : l'ordre DOM
   (visuel puis texte) reste constant — jamais d'order/row-reverse, qui
   désynchroniserait l'ordre de lecture de l'ordre visuel. */
.fm-how-step__visual {
    grid-column: 1;
    grid-row: 1;
}
.fm-how-step__body {
    grid-column: 2;
    grid-row: 1;
}
.fm-how-step--reverse .fm-how-step__visual {
    grid-column: 2;
}
.fm-how-step--reverse .fm-how-step__body {
    grid-column: 1;
}
.fm-how-step__visual {
    aspect-ratio: 4 / 3;
    border-radius: var(--fm-radius);
    background: linear-gradient(150deg, var(--fm-blue-200), var(--fm-blue-100) 60%, var(--fm-white));
    border: 1px solid var(--fm-blue-100);
    box-shadow: var(--fm-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fm-how-step__visual-icon {
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--fm-blue-700);
    opacity: 0.75;
}
@media (max-width: 767.98px) {
    .fm-how-step {
        grid-template-columns: 1fr;
    }
    .fm-how-step__visual,
    .fm-how-step__body,
    .fm-how-step--reverse .fm-how-step__visual,
    .fm-how-step--reverse .fm-how-step__body {
        grid-column: auto;
        grid-row: auto;
    }
}

/* FAQ — accordéon natif <details>, aucun JS (même approche que
   .fm-reviews__more). */
.fm-faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 780px;
    margin-inline: auto;
}
.fm-faq__item {
    background: var(--fm-white);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-sm);
    box-shadow: var(--fm-shadow-sm);
    padding: 0 1.25rem;
}
.fm-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--fm-gray-900);
    padding: 1rem 0;
}
.fm-faq__q::-webkit-details-marker { display: none; }
.fm-faq__q:focus-visible { outline: none; box-shadow: var(--fm-focus-ring); }
.fm-faq__q .bi {
    transition: transform 0.15s ease;
    flex: 0 0 auto;
    color: var(--fm-blue-700);
}
.fm-faq__item[open] .fm-faq__q .bi { transform: rotate(180deg); }
.fm-faq__a {
    margin: 0;
    padding: 0 0 1.1rem;
    color: var(--fm-gray-700);
}

/* ==================== Grille tarifaire ==================== */
.fm-plan {
    position: relative;
    background: var(--fm-white);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-sm);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.fm-plan--featured {
    border-color: var(--fm-blue-500);
    box-shadow: 0 8px 24px rgba(15, 44, 82, 0.14);
}
.fm-plan__badge {
    position: absolute;
    top: -0.85rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fm-blue-700);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}
.fm-plan__icon {
    font-size: 1.75rem;
    color: var(--fm-blue-600);
    margin-bottom: 0.5rem;
}
.fm-plan__name {
    font-size: 1.35rem;
    margin: 0 0 0.15rem;
}
.fm-plan__capacity {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.fm-plan__price {
    margin: 1rem 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.fm-plan__amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fm-gray-900);
    line-height: 1;
    letter-spacing: -0.02em;
}
.fm-plan__period {
    font-size: 0.8rem;
    color: var(--fm-text-muted);
}
.fm-plan__features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    text-align: left;
    flex: 1 0 auto;
}
.fm-plan__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--fm-gray-700);
}
.fm-plan__features .bi {
    font-size: 1.05rem;
    margin-top: 0.05rem;
    flex: 0 0 auto;
}

/* ==================== Tunnel — étape 1 : offres ==================== */
.fm-offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 991.98px) {
    .fm-offer-grid {
        grid-template-columns: 1fr;
    }
}
.fm-offer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    background: var(--fm-white);
    border: 2px solid var(--fm-border);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-sm);
    padding: 1.75rem 1.5rem;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.fm-offer-card:hover {
    border-color: var(--fm-blue-500);
    transform: translateY(-2px);
    box-shadow: var(--fm-shadow);
}
.fm-offer-card:focus-visible {
    outline: none;
    box-shadow: var(--fm-focus-ring);
}
.fm-offer-card[aria-checked="true"],
.fm-offer-card.is-checked {
    border-color: var(--fm-blue-700);
    box-shadow: 0 8px 24px rgba(15, 44, 82, 0.14);
}
.fm-offer-card--featured {
    border-color: var(--fm-blue-500);
}
.fm-offer-card__badge {
    position: absolute;
    top: -0.85rem;
    left: 1.5rem;
    background: var(--fm-blue-700);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}
.fm-offer-card__radio {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    border: 2px solid var(--fm-gray-300);
    background: var(--fm-white);
}
.fm-offer-card[aria-checked="true"] .fm-offer-card__radio,
.fm-offer-card.is-checked .fm-offer-card__radio {
    border-color: var(--fm-blue-700);
    background: var(--fm-blue-700);
    box-shadow: inset 0 0 0 3px var(--fm-white);
}
.fm-offer-card__icon {
    font-size: 1.6rem;
    color: var(--fm-blue-600);
    margin-bottom: 0.5rem;
}
/* Vignette d'offre (IMAGES.md §1.3) : source carrée 1:1 rognée 4:3, comme
 * .fm-plan__visual sur la grille tarifaire de l'accueil. */
.fm-offer-card__visual {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--fm-radius-sm);
    margin-bottom: 1rem;
}
.fm-offer-card__name {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fm-gray-900);
}
.fm-offer-card__capacity {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}
.fm-offer-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 1rem 0 1.25rem;
}
.fm-offer-card__amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fm-gray-900);
    letter-spacing: -0.02em;
}
.fm-offer-card__period {
    font-size: 0.8rem;
    color: var(--fm-text-muted);
}
.fm-offer-card__features {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.fm-offer-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--fm-gray-700);
}
.fm-offer-card__features .bi {
    color: var(--fm-blue-600);
    margin-top: 0.1rem;
}
.fm-offer-card__cta {
    margin-top: auto;
    font-weight: 600;
    color: var(--fm-blue-700);
}

/* ==================== Tunnel — étape 2 : compte ==================== */
.fm-offer-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--fm-blue-050);
    border: 1px solid var(--fm-blue-200);
    border-radius: var(--fm-radius);
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.75rem;
    font-size: 0.92rem;
    color: var(--fm-blue-900);
}
.fm-offer-summary__icon {
    color: var(--fm-success);
    font-size: 1.1rem;
    flex: 0 0 auto;
}
.fm-account-panel {
    background: var(--fm-white);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-sm);
    padding: 1.75rem;
}
.fm-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--fm-border);
    margin-bottom: 1.5rem;
}
.fm-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.65rem 0.25rem;
    margin-bottom: -1px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--fm-text-muted);
    cursor: pointer;
}
.fm-tab + .fm-tab {
    margin-left: 1.25rem;
}
.fm-tab:hover {
    color: var(--fm-blue-700);
}
.fm-tab:focus-visible {
    outline: none;
    box-shadow: var(--fm-focus-ring);
    border-radius: var(--fm-radius-sm);
}
.fm-tab.is-active {
    color: var(--fm-blue-700);
    border-bottom-color: var(--fm-blue-700);
}
.fm-field {
    margin-bottom: 1.25rem;
}
.fm-field__label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--fm-gray-800);
    margin-bottom: 0.35rem;
}
.fm-field__input {
    width: 100%;
    border: 1px solid var(--fm-gray-300);
    border-radius: var(--fm-radius-sm);
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--fm-text);
    background: var(--fm-white);
}
.fm-field__input:focus-visible {
    outline: none;
    border-color: var(--fm-blue-600);
    box-shadow: var(--fm-focus-ring);
}
.fm-field__input.is-invalid {
    border-color: #b3261e;
}
.fm-field__input[readonly] {
    background: var(--fm-gray-050);
    color: var(--fm-gray-700);
    font-weight: 600;
    letter-spacing: 0.03em;
}
.fm-field__group {
    display: flex;
    gap: 0.5rem;
}
.fm-field__group .fm-field__input {
    flex: 1 1 auto;
}
.fm-field__hint {
    font-size: 0.8rem;
    color: var(--fm-text-muted);
    margin: 0.35rem 0 0;
}
.fm-field__error {
    font-size: 0.82rem;
    color: #b3261e;
    margin: 0.35rem 0 0;
}
.fm-account-notice {
    font-size: 0.85rem;
    color: var(--fm-text-muted);
    background: var(--fm-bg-alt);
    border-radius: var(--fm-radius-sm);
    padding: 0.75rem 0.9rem;
    margin: 0.5rem 0 1.25rem;
}
.fm-account-submit-error {
    color: #b3261e;
    font-size: 0.85rem;
    text-align: center;
    margin: 0.75rem 0 0;
}

/* ------------------------------------------------------------------ *
 * Faux espace de connexion (/connexion, /reinitialisation)
 * ------------------------------------------------------------------ */
.fm-auth-failure {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    color: #b3261e;
    background: #fdecea;
    border: 1px solid #f5c6c0;
    border-radius: var(--fm-radius-sm);
    font-size: 0.9rem;
    padding: 0.75rem 0.9rem;
    margin: 0 0 1.25rem;
}
.fm-auth-failure .bi {
    margin-top: 0.1rem;
}
.fm-auth-links {
    text-align: center;
    font-size: 0.9rem;
    margin: 1rem 0 0;
}
[data-auth-submit].is-loading {
    cursor: progress;
    opacity: 0.85;
}
[data-auth-submit].is-loading [data-auth-submit-icon]::before {
    /* bi-arrow-clockwise pendant la fausse connexion (cosmétique). */
    content: "\f130";
    display: inline-block;
    animation: fm-keys-spin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    [data-auth-submit].is-loading [data-auth-submit-icon]::before {
        animation: none;
    }
}

/* ------------------------------------------------------------------ *
 * Tunnel — étape 3 : identifiants (lignes générées côté client)
 * ------------------------------------------------------------------ */
.fm-keys-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.fm-keys-lines {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.fm-keys-line {
    background: var(--fm-white);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-sm);
    padding: 1.25rem 1.5rem;
}
.fm-keys-line__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.fm-keys-line__num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--fm-blue-700);
    color: var(--fm-white);
    font-weight: 700;
    font-size: 0.9rem;
}
.fm-keys-line__title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--fm-blue-900);
}
.fm-keys-line__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.fm-keys-line__fields .fm-field {
    margin-bottom: 0;
}
/* Bloc identifiant + mot de passe. Quand la case « Créez ce compte pour moi »
   de la ligne est cochée, seul le champ mot de passe est masqué (l'e-mail
   reste demandé : le compte sera créé avec, mot de passe fourni par nos
   soins). */
.fm-keys-line__credentials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.fm-keys-line__credentials > .fm-field[hidden] {
    display: none;
}
@media (min-width: 640px) {
    /* L'adresse du site occupe toute la largeur, les accès se partagent la ligne. */
    .fm-keys-line__credentials {
        grid-template-columns: 1fr 1fr;
    }
    /* Mot de passe masqué (case « Créez ce compte pour moi » cochée) :
       l'e-mail reprend toute la largeur. */
    .fm-keys-line__credentials:has(> .fm-field[hidden]) > .fm-field {
        grid-column: 1 / -1;
    }
}
.fm-keys-create {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--fm-border);
}
.fm-keys-create__choice {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.fm-keys-create__choice .form-check-input {
    margin: 0;
    flex: 0 0 auto;
}
.fm-keys-create__label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--fm-blue-900);
    cursor: pointer;
}
.fm-keys-create__note {
    margin: 0.65rem 0 0;
    padding: 0.7rem 0.9rem;
    background: var(--fm-success-bg);
    border: 1px solid var(--fm-blue-100);
    border-radius: var(--fm-radius-sm);
    font-size: 0.85rem;
    color: var(--fm-blue-900);
}
/* .btn pose un display explicite : sans cette règle, l'attribut hidden posé
   par keys.js (capacité atteinte) ne masquerait pas le bouton. */
.fm-keys-add[hidden] {
    display: none;
}
.fm-keys-add__count {
    margin-left: 0.35rem;
    font-size: 0.85em;
    font-variant-numeric: tabular-nums;
    opacity: 0.75;
}
/* Rappel sous le bouton d'ajout : les usages du pack non consommés restent
   disponibles plus tard (packs uniquement, cf. collect.html.twig). */
.fm-keys-unused {
    margin: -0.35rem 0 0;
    font-size: 0.85rem;
}
.fm-keys-reassurance {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    background: var(--fm-success-bg);
    border: 1px solid var(--fm-blue-100);
    border-radius: var(--fm-radius-sm);
    padding: 0.85rem 1rem;
    margin: 0.5rem 0 1.25rem;
    font-size: 0.88rem;
    color: var(--fm-blue-900);
}
.fm-keys-reassurance .bi {
    color: var(--fm-success);
    margin-top: 0.1rem;
}
.fm-keys-footnote {
    font-size: 0.82rem;
}
[data-keys-submit].is-loading {
    cursor: progress;
    opacity: 0.85;
}
[data-keys-submit].is-loading [data-keys-submit-icon]::before {
    /* bi-arrow-clockwise pendant le faux chargement (cosmétique). */
    content: "\f130";
    display: inline-block;
    animation: fm-keys-spin 0.8s linear infinite;
}
@keyframes fm-keys-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    [data-keys-submit].is-loading [data-keys-submit-icon]::before {
        animation: none;
    }
}

/* ------------------------------------------------------------------ *
 * Tunnel — étape 4 : paiement par redirection vers un partenaire fictif
 * (VérifPay / CryptoRelais) — aucun champ de saisie sur cette page.
 * ------------------------------------------------------------------ */
.fm-payment-panel {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.fm-payment-notice {
    font-size: 0.85rem;
    color: var(--fm-text-muted);
    background: var(--fm-bg-alt);
    border-radius: var(--fm-radius-sm);
    padding: 0.75rem 0.9rem;
    margin: 0.5rem 0 1.25rem;
}
.fm-partner {
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    background: var(--fm-white);
    padding: 1.25rem 1.4rem;
    margin-bottom: 1rem;
}
.fm-partner__head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}
.fm-partner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    border-radius: var(--fm-radius-sm);
    background: var(--fm-bg-alt);
    color: var(--fm-blue-700);
    font-size: 1.35rem;
}
.fm-partner__identity {
    display: flex;
    flex-direction: column;
}
.fm-partner__name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--fm-blue-900);
}
.fm-partner__tagline {
    font-size: 0.8rem;
    color: var(--fm-text-muted);
}
.fm-partner__description {
    font-size: 0.92rem;
    color: var(--fm-text);
    margin: 0 0 0.85rem;
}
.fm-partner__points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.fm-partner__points li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--fm-text-muted);
}
.fm-partner__points .bi {
    color: var(--fm-blue-700);
}
.fm-partner-redirect-hint {
    font-size: 0.82rem;
}
[data-payment-submit].is-loading {
    cursor: progress;
    opacity: 0.85;
}
[data-payment-submit].is-loading [data-payment-submit-icon]::before {
    /* bi-arrow-clockwise pendant la fausse redirection vers le partenaire
       (cosmétique — aucun site partenaire n'existe ni n'est contacté). */
    content: "\f130";
    display: inline-block;
    animation: fm-keys-spin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    [data-payment-submit].is-loading [data-payment-submit-icon]::before {
        animation: none;
    }
}

/* ------------------------------------------------------------------ *
 * Page « À propos » — la révélation. Bandeau flash discret (la preuve
 * technique n'est pas le fond du propos, elle coupe court à l'accusation
 * d'hameçonnage) + rangée d'actions finale (fiche Cybermalveillance,
 * partage du site).
 * ------------------------------------------------------------------ */
.fm-flash {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--fm-gray-700);
    background: var(--fm-bg-alt);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-sm);
    padding: 0.6rem 0.85rem;
    margin: 0 0 2rem;
}
.fm-flash .bi {
    color: var(--fm-success);
    flex: 0 0 auto;
    margin-top: 0.1rem;
}
.fm-about-actions {
    margin-top: 2.5rem;
    background: var(--fm-white);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    padding: 1.5rem 1.75rem;
}
.fm-about-actions__note {
    font-size: 0.975rem;
    color: var(--fm-gray-800);
    margin-bottom: 1rem;
}
.fm-about-actions__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.fm-about-actions__feedback {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--fm-success);
}
@media (max-width: 575.98px) {
    .fm-about-actions__buttons .btn {
        width: 100%;
    }
}

/* ------------------------------------------------------------------ *
 * Divers
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fm-reviews__more-btn .bi,
    .fm-faq__q .bi {
        transition: none;
    }
}

/* ------------------------------------------------------------------ *
 * Utilitaires de largeur (phase 11)
 *
 * Remplacent les anciens attributs `style="max-width:…"` inline des
 * templates : la CSP stricte (`style-src 'self'`, sans `unsafe-inline`)
 * bloque tout attribut `style=""` présent dans le HTML servi. Les valeurs
 * sont donc externalisées ici plutôt que d'affaiblir la CSP.
 *
 * Chargé APRÈS Bootstrap (cf. base.html.twig) : à spécificité égale, ces
 * règles l'emportent sur les `max-width` responsives de `.container`.
 * ------------------------------------------------------------------ */
.fm-w-page {
    max-width: var(--fm-maxw);
}
.fm-w-780 {
    max-width: 780px;
}
.fm-w-720 {
    max-width: 720px;
}
.fm-w-640 {
    max-width: 640px;
}
.fm-measure-wide {
    max-width: 46rem;
}
.fm-measure {
    max-width: 42rem;
}

/* ==================== Visuels posés (IMAGES.md) ====================
 * Les conteneurs `*__visual` gardent leur ratio propre (rognage par
 * `object-fit: cover`) : la source peut avoir un autre format, le
 * cadrage reste géré ici. Le dégradé des conteneurs subsiste en fond
 * de chargement. */
.fm-visual__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Vignette d'offre : source carrée 1:1 rognée 4:3 pour limiter la hauteur. */
.fm-plan__visual {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--fm-radius-sm);
    margin-bottom: 1rem;
}

/* Révélation : bande pleine largeur au sommet de /a-propos, hauteur bornée. */
.fm-reveal__visual {
    display: block;
    width: 100%;
    height: auto;
    max-height: clamp(240px, 45vh, 520px);
    object-fit: cover;
}

/* Étape « compte » : visuel latéral portrait, visible à partir de lg. */
.fm-account-layout {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
.fm-account-layout__aside {
    display: none;
}
@media (min-width: 992px) {
    .fm-account-layout {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }
    .fm-account-layout__aside {
        display: block;
        position: sticky;
        top: 2rem;
    }
}
.fm-account-layout__visual {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 7;
    object-fit: cover;
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow);
}

/* Étape « paiement » : bandeau au-dessus du faux formulaire. */
.fm-payment-banner {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 3;
    object-fit: cover;
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-sm);
    margin-bottom: 1.5rem;
}

/* Illustrations éditoriales insérées dans le Markdown (pages de contenu). */
.fm-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-sm);
}

/* Confort de lecture de la page « À propos » (dossier long) : corps agrandi,
 * interlignage ample, paragraphes et listes justifiés avec césure automatique
 * (la justification sans césure creuse des rivières ; `hyphens` s'appuie sur
 * le lang FR/EN posé sur <html>). Les titres restent alignés à gauche. */
.fm-content--reading {
    font-size: 1.125rem;
    line-height: 1.75;
}
.fm-content--reading p,
.fm-content--reading li {
    text-align: justify;
    hyphens: auto;
    overflow-wrap: break-word;
}
