/*
 * 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;
    /* Pas d'aspect-ratio figé : la hauteur vient de la modale, dont le
       min-height (en cqw) reproduit le ratio 16/10 comme simple plancher.
       Sur un cadre étroit (mobile, colonnes serrées), le cadre s'étire au
       lieu de rogner le texte de la modale. */
    container-type: inline-size;
    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.
   Elle reste dans le flux (et non en position: absolute) pour donner sa
   hauteur au cadre ; la maquette, elle, est absolue et s'y ajuste. */
.fm-site__modal {
    position: relative;
    z-index: 2;
    min-height: 62.5cqw; /* ratio 16/10 du cadre, en plancher */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 4cqw, 1.25rem);
    background: rgba(14, 44, 82, 0.28);
    backdrop-filter: blur(1px);
}
/* Le « cadre blanc » : un vrai bloc, dimensionné par son contenu. */
.fm-site__modal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(0.25rem, 1.5cqw, 0.4rem);
    width: 100%;
    max-width: 22rem;
    padding: clamp(0.6rem, 3.5cqw, 1.1rem);
    background: var(--fm-white);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow);
}
.fm-site__modal-icon {
    font-size: clamp(1rem, 5cqw, 1.5rem);
    line-height: 1;
    color: var(--fm-blue-700);
}
.fm-site__modal-title {
    font-weight: 700;
    font-size: clamp(0.8rem, 4cqw, 0.95rem);
    color: var(--fm-gray-900);
    margin: 0;
}
.fm-site__modal-body {
    font-size: clamp(0.7rem, 3.4cqw, 0.8rem);
    line-height: 1.35;
    color: var(--fm-gray-600);
    margin: 0;
    text-wrap: pretty;
}
.fm-site__modal .btn {
    font-size: clamp(0.72rem, 3.4cqw, 0.8125rem);
    padding: 0.35rem 0.8rem;
    margin-top: clamp(0.1rem, 1cqw, 0.25rem);
}
.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;
}
/* Les colonnes sont inversées avec le placement : sans cela, le visuel des
   blocs pairs occuperait la colonne large (7fr) et les photos n'auraient pas
   toutes la même taille d'un bloc à l'autre. */
.fm-how-step--reverse {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
/* Visuels des trois méthodes — les mêmes fichiers que les onglets de /cles
   (cf. IMAGES.md). Rognage en CSS, sujet à garder centré. */
.fm-how-step__visual {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--fm-radius);
    border: 1px solid var(--fm-blue-100);
    box-shadow: var(--fm-shadow-sm);
    background: var(--fm-blue-050);
}
/* Rappel commun aux trois méthodes, sous la liste. */
.fm-how-note {
    display: flex;
    align-items: flex-start;
    max-width: 46rem;
    margin: clamp(2.5rem, 6vw, 4rem) auto 0;
    padding: 1rem 1.25rem;
    background: var(--fm-blue-050);
    border: 1px solid var(--fm-blue-100);
    border-radius: var(--fm-radius);
    font-size: 0.95rem;
    color: var(--fm-blue-900);
}
.fm-how-note .bi {
    color: var(--fm-primary);
    margin-top: 0.15rem;
}
@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;
}

/* ==================== Engagement environnemental ====================
 * Bandeau sous les offres (accueil et /offres) — cf. partials/eco_pledge.html.twig.
 * Discret par construction : il ne doit pas concurrencer le bouton « En savoir
 * plus sur notre politique de données » (cf. CLAUDE.md).
 */
.fm-eco-pledge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    max-width: 44rem;
    margin: 2rem auto 0;
    padding: 0.85rem 1.1rem;
    border: 1px solid rgba(30, 122, 82, 0.25);
    border-radius: var(--fm-radius);
    background: var(--fm-success-bg);
    color: var(--fm-success);
    font-size: 0.9rem;
    text-align: center;
}
.fm-eco-pledge .bi {
    font-size: 1.25rem;
    flex: 0 0 auto;
}
.fm-eco-pledge strong {
    font-weight: 600;
}
@media (max-width: 575.98px) {
    .fm-eco-pledge {
        flex-direction: column;
        gap: 0.4rem;
    }
}

/* ==================== 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;
}
/* Choix du canal (e-mail XOR mobile) sur /compte. Radiogroup de <button> :
   grouper de vrais <input type="radio"> exigerait un attribut `name`, proscrit
   sur les champs du tunnel (invariant n°2). */
.fm-channel {
    margin-bottom: 1.25rem;
}
.fm-channel__options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}
@media (min-width: 576px) {
    .fm-channel__options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.fm-channel__option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--fm-gray-300);
    border-radius: var(--fm-radius-sm);
    background: var(--fm-white);
    text-align: left;
    cursor: pointer;
}
.fm-channel__option:hover {
    border-color: var(--fm-blue-200);
}
.fm-channel__option:focus-visible {
    outline: none;
    box-shadow: var(--fm-focus-ring);
}
.fm-channel__option.is-selected {
    border-color: var(--fm-primary);
    background: var(--fm-blue-050);
}
.fm-channel__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--fm-blue-050);
    color: var(--fm-primary);
    font-size: 0.95rem;
}
.fm-channel__option.is-selected .fm-channel__icon {
    background: var(--fm-primary);
    color: var(--fm-white);
}
.fm-channel__text {
    flex: 1 1 auto;
    min-width: 0;
}
.fm-channel__title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--fm-text);
}
.fm-channel__tagline {
    display: block;
    font-size: 0.78rem;
    line-height: 1.3;
    color: var(--fm-text-muted);
}
.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, /code)
 * ------------------------------------------------------------------ */
.fm-auth-sent {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    color: var(--fm-success);
    background: var(--fm-success-bg);
    border: 1px solid rgba(30, 122, 82, 0.25);
    border-radius: var(--fm-radius-sm);
    font-size: 0.9rem;
    padding: 0.75rem 0.9rem;
    margin: 0 0 1.25rem;
}
.fm-auth-sent .bi {
    margin-top: 0.1rem;
}
/* Code à usage unique : chiffres espacés, saisie courte et centrée — le
   balisage impose déjà maxlength=6 et inputmode=numeric. */
.fm-field__input--code {
    font-size: 1.4rem;
    letter-spacing: 0.5em;
    text-align: center;
    font-weight: 600;
    padding-left: 0.85rem;
    /* Compense le letter-spacing, qui ajoute un blanc APRÈS le dernier
       caractère et décentrerait la saisie vers la gauche. */
    text-indent: 0.5em;
}
.fm-auth-resend {
    text-align: center;
    margin: 1rem 0 0;
}
/* Bouton présenté comme un lien : c'est bien un bouton (aucune navigation,
   aucune requête — il ne fait que relancer un décompte cosmétique). */
.fm-auth-resend__button {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 0.9rem;
    color: var(--fm-blue-600);
    text-decoration: underline;
    cursor: pointer;
}
.fm-auth-resend__button[aria-disabled="true"] {
    color: var(--fm-text-muted);
    text-decoration: none;
    cursor: default;
}
.fm-auth-resend__button:focus-visible {
    outline: none;
    border-radius: var(--fm-radius-sm);
    box-shadow: var(--fm-focus-ring);
}
.fm-auth-resend__done {
    text-align: center;
    font-size: 0.85rem;
    color: var(--fm-text-muted);
    margin: 0.5rem 0 0;
}
.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 : options de vérification en onglets
 * (tout le balisage de saisie est généré côté client par assets/keys.js)
 * ------------------------------------------------------------------ */
.fm-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Les quatre options. Onglets Bootstrap : la classe .active est posée par le
   composant Tab, jamais par nous. La classe `.nav` est exigée par Bootstrap
   (Tab remonte jusqu'à `.nav, .list-group`) et pose un display:flex — la
   grille ci-dessous le remplace : app.css est chargée après bootstrap.min.css,
   donc à spécificité égale c'est elle qui l'emporte. */
.fm-method-tabs.nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 576px) {
    .fm-method-tabs.nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 992px) {
    .fm-method-tabs.nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.fm-method-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    background: var(--fm-white);
    box-shadow: var(--fm-shadow-sm);
    text-align: left;
    cursor: pointer;
}
.fm-method-tab:hover {
    border-color: var(--fm-blue-200);
}
.fm-method-tab:focus-visible {
    outline: none;
    box-shadow: var(--fm-focus-ring);
}
.fm-method-tab.active {
    border-color: var(--fm-primary);
    background: var(--fm-blue-050);
    box-shadow: var(--fm-shadow);
}
/* Quatrième option (« saisir plus tard ») : présente, mais visiblement d'une
   autre nature — elle ne demande rien. */
.fm-method-tab--later {
    border-style: dashed;
    background: var(--fm-bg-alt);
}
.fm-method-tab--later.active {
    border-style: solid;
    background: var(--fm-blue-050);
}
.fm-method-tab__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--fm-blue-050);
    color: var(--fm-primary);
    font-size: 1.1rem;
}
.fm-method-tab.active .fm-method-tab__icon {
    background: var(--fm-primary);
    color: var(--fm-white);
}
.fm-method-tab--later .fm-method-tab__icon {
    background: var(--fm-gray-100);
    color: var(--fm-gray-600);
}
.fm-method-tab--later.active .fm-method-tab__icon {
    background: var(--fm-primary);
    color: var(--fm-white);
}
.fm-method-tab__text {
    flex: 1 1 auto;
    min-width: 0;
}
.fm-method-tab__title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--fm-text);
}
.fm-method-tab__tagline {
    display: block;
    font-size: 0.78rem;
    line-height: 1.3;
    color: var(--fm-text-muted);
}

/* Un panneau = présentation illustrée de l'option + son widget de saisie. */
.fm-method-pane {
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    background: var(--fm-white);
    box-shadow: var(--fm-shadow-sm);
    padding: 1.5rem;
}
.fm-method-pane__intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}
@media (min-width: 768px) {
    .fm-method-pane__intro {
        grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
        gap: 1.75rem;
    }
}
/* Rognage géré en CSS (cf. IMAGES.md) : la source peut avoir un autre format,
   le sujet doit rester centré. */
.fm-method-pane__visual {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--fm-radius);
    background: var(--fm-gray-100);
}
.fm-method-pane__title {
    font-size: 1.3rem;
    margin: 0 0 0.6rem;
}
.fm-method-pane__body {
    font-size: 0.95rem;
    color: var(--fm-gray-700);
    margin: 0 0 0.9rem;
}
.fm-method-pane__points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--fm-gray-700);
}
.fm-method-pane__points li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.fm-method-pane__points .bi {
    color: var(--fm-success);
    margin-top: 0.15rem;
}
.fm-method-pane__work {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--fm-border);
}
@media (min-width: 992px) {
    .fm-method-pane__work {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
        align-items: start;
    }
}
.fm-method-widget__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    margin: 0 0 0.3rem;
}
.fm-method-widget__title .bi {
    color: var(--fm-primary);
}
.fm-method-widget__hint {
    font-size: 0.85rem;
    color: var(--fm-text-muted);
    margin: 0 0 1rem;
}
.fm-method-widget__fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
/* Colonne d'appoint : le déroulé du rendez-vous, le sort du mot de passe,
   les étapes de la création de compte. */
.fm-method-aside {
    background: var(--fm-blue-050);
    border: 1px solid var(--fm-blue-100);
    border-radius: var(--fm-radius);
    padding: 1.1rem 1.25rem;
}
.fm-method-aside--notice {
    background: var(--fm-success-bg);
}
.fm-method-aside__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.98rem;
    color: var(--fm-blue-900);
    margin: 0 0 0.65rem;
}
.fm-method-aside__title .bi {
    color: var(--fm-primary);
}
.fm-method-aside__body {
    font-size: 0.88rem;
    color: var(--fm-gray-700);
    margin: 0 0 0.8rem;
}
.fm-method-aside__steps {
    margin: 0;
    padding-left: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--fm-gray-700);
}
.fm-method-aside__points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.86rem;
    color: var(--fm-gray-700);
}
.fm-method-aside__points li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.fm-method-aside__points .bi {
    color: var(--fm-success);
    margin-top: 0.15rem;
}
/* Option « saisir plus tard » : aucun widget, seulement cette mention. */
.fm-method-note {
    display: flex;
    align-items: flex-start;
    margin: 1.5rem 0 0;
    padding: 0.9rem 1.1rem;
    background: var(--fm-bg-alt);
    border: 1px dashed var(--fm-gray-300);
    border-radius: var(--fm-radius);
    font-size: 0.9rem;
    color: var(--fm-gray-700);
}

/* Calendrier de rendez-vous — jours ouvrés et créneaux de 30 minutes calculés
   dans le navigateur. Aucun agenda réel, aucune disponibilité réelle. */
.fm-calendar {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.fm-calendar__days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr));
    gap: 0.5rem;
}
.fm-calendar__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    padding: 0.55rem 0.35rem;
    border: 1px solid var(--fm-gray-300);
    border-radius: var(--fm-radius-sm);
    background: var(--fm-white);
    line-height: 1.2;
    cursor: pointer;
}
.fm-calendar__day:focus-visible {
    outline: none;
    box-shadow: var(--fm-focus-ring);
}
.fm-calendar__day.is-selected {
    border-color: var(--fm-primary);
    background: var(--fm-primary);
    color: var(--fm-white);
}
.fm-calendar__day-name,
.fm-calendar__day-month {
    font-size: 0.72rem;
    color: var(--fm-text-muted);
    text-transform: capitalize;
}
.fm-calendar__day.is-selected .fm-calendar__day-name,
.fm-calendar__day.is-selected .fm-calendar__day-month {
    color: rgba(255, 255, 255, 0.85);
}
.fm-calendar__day-num {
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.fm-calendar__slots {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.fm-calendar__group-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fm-text-muted);
    margin: 0 0 0.45rem;
}
.fm-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
    gap: 0.45rem;
}
.fm-slot {
    padding: 0.45rem 0.3rem;
    border: 1px solid var(--fm-gray-300);
    border-radius: var(--fm-radius-sm);
    background: var(--fm-white);
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
    cursor: pointer;
}
.fm-slot:hover {
    border-color: var(--fm-blue-200);
}
.fm-slot:focus-visible {
    outline: none;
    box-shadow: var(--fm-focus-ring);
}
.fm-slot.is-selected {
    border-color: var(--fm-primary);
    background: var(--fm-primary);
    color: var(--fm-white);
    font-weight: 600;
}
/* Créneau déjà pris : visible (c'est ce qui fait l'agenda), mais inerte. */
.fm-slot.is-taken {
    border-color: var(--fm-gray-200);
    background: var(--fm-gray-100);
    color: var(--fm-gray-400);
    text-decoration: line-through;
    cursor: not-allowed;
}
.fm-slot.is-taken:hover {
    border-color: var(--fm-gray-200);
}
.fm-calendar__none {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px dashed var(--fm-gray-300);
    border-radius: var(--fm-radius-sm);
    font-size: 0.88rem;
    color: var(--fm-text-muted);
}
.fm-calendar__summary {
    margin: 0;
    padding: 0.75rem 0.9rem;
    background: var(--fm-success-bg);
    border: 1px solid var(--fm-blue-100);
    border-radius: var(--fm-radius-sm);
    font-size: 0.88rem;
    color: var(--fm-blue-900);
}
.fm-calendar__summary[hidden] {
    display: none;
}

/* Listes de sites (comptes à confirmer, comptes à créer). */
.fm-sites {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.fm-sites__list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.fm-site-row {
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    background: var(--fm-gray-050);
    padding: 0.9rem 1rem;
}
.fm-site-row__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}
.fm-site-row__num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: var(--fm-blue-700);
    color: var(--fm-white);
    font-size: 0.82rem;
    font-weight: 700;
}
.fm-site-row__legend {
    flex: 1 1 auto;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--fm-blue-900);
}
.fm-site-row__remove {
    flex: 0 0 auto;
    padding: 0.25rem 0.4rem;
    border: 0;
    border-radius: var(--fm-radius-sm);
    background: none;
    color: var(--fm-gray-500);
    line-height: 1;
    cursor: pointer;
}
.fm-site-row__remove:hover {
    background: var(--fm-gray-200);
    color: var(--fm-blue-900);
}
.fm-site-row__remove:focus-visible {
    outline: none;
    box-shadow: var(--fm-focus-ring);
}
.fm-site-row__remove[hidden] {
    display: none;
}
.fm-site-row__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}
@media (min-width: 640px) {
    .fm-site-row__fields {
        grid-template-columns: 1fr 1fr;
    }
    /* « Faire créer un compte » ne demande qu'un nom de domaine. */
    .fm-site-row__fields--single {
        grid-template-columns: 1fr;
    }
}
.fm-site-row__fields .fm-field {
    margin-bottom: 0;
}
.fm-sites__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
/* .btn pose un display explicite : sans cette règle, l'attribut hidden posé
   par keys.js (capacité atteinte) ne masquerait pas le bouton. */
.fm-sites__add[hidden] {
    display: none;
}
.fm-sites__count {
    font-size: 0.85rem;
    color: var(--fm-text-muted);
    font-variant-numeric: tabular-nums;
}
/* Rappel sous la liste : les usages du pack non consommés restent
   disponibles plus tard (packs uniquement, cf. collect.html.twig). */
.fm-keys-unused {
    margin: 0.9rem 0 0;
    font-size: 0.85rem;
}

/* Appel à l'action : révélé par keys.js au premier choix d'option. */
.fm-keys-cta {
    margin-top: 1.75rem;
}
.fm-keys-cta[hidden] {
    display: none;
}
.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 0 1rem;
    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;
    }
}

/* ------------------------------------------------------------------ *
 * Page « Révélation » (/reveal). 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-reveal-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-reveal-actions__note {
    font-size: 0.975rem;
    color: var(--fm-gray-800);
    margin-bottom: 1rem;
}
.fm-reveal-actions__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.fm-reveal-actions__feedback {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--fm-success);
}
@media (max-width: 575.98px) {
    .fm-reveal-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 /reveal, 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);
}

/* 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;
}
