@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    /* COLOURS — bloc hérité du gabarit d'origine, mort : aucun de ces tokens
       n'est référencé, hors --dark qui est aussitôt écrasé par --ft-text.
       La palette réelle du site est le bloc :root « bleu postal & jaune »
       plus bas — c'est là qu'il faut aller pour changer les couleurs. */
    --primary: #19E9FF;
    --primary-hover: #16c6d9;
    --secondary: #141e2c;
    --secondary-hover: #1e2d42;
    --dark: #0f1620;
    /* #363f45 */
    --danger: #da3743;
    --warning: #ffca28;
    --success: #00B67A;

    --white: #ffffff;
    --light: #F7F6F9;
    --xtra-light: #f7f7f7;
    --grey: #616c7a;
    --lightgrey: rgba(255, 255, 255, 0.70);
    --inputs: #abb1b8;
    --border: #e5e7eb;

    --links: #0077A6;
    --links-hover: #015c80;

    /* FONT FAMILY / TYPOGRAPHY
       Tout en sans, comme les opérateurs postaux : le serif faisait « maison
       d'édition », pas « service public ». Figtree porte les titres
       d'affichage — humaniste, apertures ouvertes, grande hauteur d'x, elle
       tient les très grosses graisses sans devenir agressive. Inter reste sur
       le texte courant, où sa neutralité est un atout. */
    --ff-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-heading: "Figtree", "Inter", system-ui, -apple-system, sans-serif;

    /* FONT WEIGHTS */
    --fw-300: 300;
    --fw-400: 400;
    --fw-500: 500;
    --fw-600: 600;
    --fw-700: 700;
    --fw-800: 800;
    --fw-900: 900;

    /* TYPE SCALE */
    --text-hero: clamp(2.8rem, 9vw, 5.5rem);
    --text-h1: clamp(2.2rem, 6vw, 3.5rem);
    --text-h2: clamp(1.8rem, 4.5vw, 2.8rem);
    --text-h3: clamp(1.4rem, 3.5vw, 2.1rem);
    --text-h4: clamp(1.2rem, 3vw, 1.65rem);
    --text-h5: clamp(1rem, 2.5vw, 1.3rem);
    --text-nav: clamp(0.875rem, 0.25vw, 1rem);
    --text-title: clamp(1.6rem, 4.5vw, 2.2rem);
    --text-base: 1rem;
    --text-md: 0.9rem;
    --text-sm: 0.8rem;
    --text-xs: 0.7rem;

    /* SECTIONS PADDING */
    --space-xl: clamp(8em, 10vw, 14em);
    --space-lg: clamp(6em, 8vw, 12em);
    --space-base: clamp(4em, 6vw, 8em);
    --space-md: clamp(4em, 4vw, 5em);
    --space-sm: clamp(2em, 3vw, 3.6em);
    --space-xs: clamp(1.2em, 2vw, 2.6em);
    --space-xxs: clamp(1rem, 1.5vw, 2em);

    /* BLOCK PADDING */
    --padding-lg: clamp(2em, 4vw, 3.6em);
    --padding-md: clamp(1.5em, 3vw, 2.6em);
    --padding-sm: clamp(1.2em, 2vw, 2.2em);
    --padding-xs: clamp(1em, 1.5vw, 2em);

    /* BORDER RADIUS */
    --br-base: 1rem;
    --br-sm: 0.325rem;
    --br-rd: 999rem;

    /* BOX SHADOW */
    --shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000,
        0px 2px 20px 0px rgba(68, 68, 68, 0.12);

    /* TRANSITIONS */
    --transition: all 0.3s ease-in-out;
    --transition-slow: all 0.4s ease-in-out;
}

html {
    -webkit-text-size-adjust: 100%;
}

html,
body {
    font-family: var(--ff-family);
    color: var(--dark);
    overflow-x: clip;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0 !important;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

section {
    padding: var(--space-base) var(--space-xs);
}

@media screen and (min-width: 991.98px) {
    section {
        padding: var(--space-lg);
    }
}

.bg-ft-light-blue {
    background-color: var(--ft-blue-light);
}

section .text-ft-blue {
    color: var(--ft-blue);
}
/*------------------------------------------------------------
  [ TEXT ]
  ------------------------------------------------------------*/

  h1.hero-title {
    font-size: var(--text-h1);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--ff-family);
    overflow-wrap: break-word;
    letter-spacing: -0.02em;
}

/*
 * Figtree est réservée aux titres d'affichage : les <h1> et les <h2> de section
 * marqués .h-display. Les nombreux <h2> qui servent d'intitulé de carte ou
 * d'étape restent en Inter — à 0,9 rem l'écart entre les deux ne se lit plus,
 * et Inter y est mieux ajustée.
 *
 * Les titres d'affichage sont volontairement très gras : c'est ce qui donne le
 * ton institutionnel postal. Le !important est nécessaire face aux utilitaires
 * Bootstrap .fw-* qui sont eux-mêmes déclarés !important.
 */
h1,
.h1,
.h-display {
    font-family: var(--font-heading);
    font-weight: var(--fw-800) !important;
    letter-spacing: -0.02em;
}

h1,
.h1 {
    font-size: var(--text-h1);
    font-weight: var(--fw-800);
    line-height: 1.05;
}

h2,
.h2 {
    font-size: var(--text-h2);
    font-weight: var(--fw-700);
    letter-spacing: -0.015em;
}

h3,
.h3 {
    font-size: var(--text-h3);
    font-weight: var(--fw-700);
}

h4,
.h4 {
    font-size: var(--text-h4);
    font-weight: var(--fw-600);
}

h5,
.h5 {
    font-size: var(--text-h5);
    font-weight: var(--fw-500);
}

h5,
.h5 {
    font-size: var(--text-h6);
    font-weight: var(--fw-500);
}

p,
.p {
    font-size: var(--text-base);
    font-weight: var(--fw-400);
    margin-bottom: 1rem;
}

small,
.small {
    font-size: var(--text-sm);
    font-weight: var(--fw-400);
}

.fs-medium {
    font-size: var(--text-md);
}

.fs-small {
    font-size: var(--text-sm);
}

.fs-xsmall {
    font-size: var(--text-xs);
}

/* ============================================================
   Feuille de style principale
   Bootstrap 5.3.8 + surcharges personnalisées
   ============================================================ */

/* ---------- Variables ---------- */
/*
 * Palette « bleu postal & jaune ».
 *
 * Les noms de tokens (--ft-blue, --ft-yellow) sont hérités du prototype et
 * conservés volontairement : ils sont référencés dans ~47 règles ci-dessous et
 * dans les styles inline des pages. Ce sont des rôles, pas des couleurs —
 * --ft-blue est la couleur primaire, --ft-yellow la couleur d'accent.
 *
 * On assume ici le registre visuel commun aux opérateurs postaux — bleu
 * institutionnel porteur, jaune en accent, angles peu arrondis. Ce registre
 * n'appartient à personne, contrairement au logotype, à la signature et aux
 * teintes exactes de La Poste : rien de tout cela n'est repris, et le site ne
 * doit jamais laisser croire à un lien avec l'opérateur. Voir le point 9 de
 * docs/open-questions.md.
 *
 * Toutes les paires texte/fond du site ont été mesurées et passent le niveau
 * WCAG AA. Les variantes assombries plus bas existent précisément pour ça :
 * le jaune est superbe en aplat, mais illisible dès qu'il porte du texte.
 */
:root {
    --ft-blue: #00457c;        /* primaire — bleu postal (9,8:1 sur blanc) */
    --ft-blue-dark: #003158;   /* primaire, état hover + texte sur jaune */
    --ft-blue-light: #e4edf5;  /* teinte claire du primaire (fonds, badges) */
    --ft-yellow: #ffc400;      /* accent — jaune postal */
    --ft-yellow-dark: #e8ae00; /* accent, état hover (aplats uniquement) */
    /* Le jaune ne contraste pas du tout sur blanc (1,6:1) : il ne porte jamais
       de texte. Cet ambre assombri (5,5:1) le remplace partout où l'accent doit
       être typographique sur fond clair — sur-titres, valeurs mises en avant. */
    --ft-accent-on-light: #8a6200;

    /* Bouton d'action : jaune plein, libellé bleu foncé (8,3:1). C'est
       l'élément le plus reconnaissable du registre postal, et le seul endroit
       où le jaune passe en surface porteuse. Le libellé n'est donc jamais
       blanc — d'où --ft-cta-text, à utiliser partout où --ft-cta est un fond. */
    --ft-cta: #ffc400;
    --ft-cta-hover: #ffd23d;
    --ft-cta-text: #003158;

    /* Troisième teinte, en petites touches : badges de section, pastilles
       d'icône. Jaune adouci, pour poser un fond sans crier. */
    --ft-sun: #ffd766;
    --ft-sun-soft: #fff5d6;

    --ft-green: #00795c;
    --ft-teal: #0f7fa8;
    --ft-gray-bg: #f2f6fa;     /* fond de section — gris bleuté */
    --ft-border: #d5e0ea;
    --ft-text: #17242f;
    --ft-muted: #566674;

    /* Angles courts : le rayon de 14px faisait « app grand public ». 8px tient
       le registre administratif sans tomber dans l'angle vif. */
    --ft-radius: 8px;
    --ft-radius-sm: 4px;
    --ft-shadow: 0 2px 12px rgba(0, 49, 88, .09);
    --ft-shadow-md: 0 4px 24px rgba(0, 49, 88, .14);
}

/* ---------- Base ---------- */
body {
    font-family: var(--ff-family);
    color: var(--ft-text);
    background: #fff;
}

/* Le .text-warning de Bootstrap (#ffc107) ne fait que 1,6:1 sur blanc : il est
   illisible partout où il sert d'étiquette de statut (« En traitement »,
   « En attente de réponse »). On le renvoie sur l'ambre assombri de la palette,
   qui tient le même signal à 5,5:1. */
.text-warning {
    color: var(--ft-accent-on-light) !important;
}

a {
    color: var(--ft-blue);
    text-decoration: none;
}

a:hover {
    color: var(--ft-blue-dark);
}


/* ---------- Cookies ---------- */
.ft-cookie-banner {
    padding: 1rem;
    border: 1px solid var(--ft-border);
    box-shadow: var(--ft-shadow-md);
}

/* ---------- Navbar ---------- */
.ft-navbar {
    border-bottom: 3px solid var(--ft-yellow);
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}

.ft-navbar .navbar-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ft-blue);
    letter-spacing: -.5px;
}

/* LOCKUP DE MARQUE
 *
 * Le timbre tient lieu de capitale : « [timbre]imbreo » doit se lire
 * « Timbreo ». Pour ça, le T DANS la vignette — pas la vignette — doit avoir la
 * hauteur de capitale du texte voisin, et poser sur la même ligne de base. Trois
 * nombres, tous dérivés des métriques de Figtree 800 (cap 700/1000, T large de
 * 568) et de la géométrie de logo.svg (T haut de 24 sur une vignette de 40) :
 *
 *   height       0,70 em de capitale ÷ 0,6 (part du T dans la vignette) = 1,167 em
 *   vertical-align  le T pose à 32/40, donc la vignette déborde de 0,2 × 1,167 em
 *                   sous la ligne de base
 *   margin-right    l'approche se mesure depuis le BORD DU CARTOUCHE, pas depuis
 *                   le T : viser l'approche typographique du « Ti » (0,065 em)
 *                   colle le i au bleu, et son point mord dedans. Le i est un
 *                   voisin de bloc plein, pas de lettre. 0,13 em + les 0,05 em
 *                   d'approche gauche du i laissent ~0,18 em d'air, réglé au
 *                   rendu : en deçà le i touche, au-delà le lockup se scinde en
 *                   deux objets et le mot cesse de se lire d'un trait.
 *
 * Toucher au T de logo.svg sans refaire ces trois calculs décale le mot.
 * Le lockup se cale sur la ligne de base, donc il ne doit PAS être posé dans un
 * conteneur flex (align-items: center écraserait le calage). */
.brand-lockup {
    white-space: nowrap;
}

.brand-mark {
    width: 1.167em;
    height: 1.167em;
    vertical-align: -.233em;
    margin-right: .13em;
}

.ft-navbar .nav-link {
    color: var(--ft-text);
    font-weight: 500;
    padding: .5rem 1rem;
    transition: color .2s;
}

.ft-navbar .nav-link:hover,
.ft-navbar .nav-link.active {
    color: var(--ft-blue);
}

.ft-navbar .nav-link.active {
    border-bottom: 2px solid var(--ft-blue);
}

.btn-acheter {
    background: var(--ft-cta);
    color: var(--ft-cta-text) !important;
    font-weight: 700;
    border-radius: var(--ft-radius-sm);
    padding: .5rem 1.25rem;
    transition: background .2s, transform .15s;
}

.btn-acheter:hover {
    background: var(--ft-cta-hover);
    transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.ft-hero {
    background: var(--ft-blue);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
}

.ft-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
}

.ft-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .03);
}

.ft-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}

.ft-hero h1 span.highlight {
    color: var(--ft-yellow);
}

.ft-hero p.lead {
    color: rgba(255, 255, 255, .82);
    max-width: 520px;
}

/* Timbre card in hero */
.ft-hero-stamp {
    background: var(--ft-yellow);
    border-radius: var(--ft-radius);
    padding: 2rem 1.75rem;
    text-align: center;
    border: 4px dashed rgba(0, 69, 124, .25);
    max-width: 220px;
    box-shadow: var(--ft-shadow-md);
}

.ft-hero-stamp .stamp-price {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--ft-blue);
    line-height: 1;
}

.ft-hero-stamp .stamp-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--ft-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: .35rem;
}

/* ---------- Section badges / labels ---------- */
.section-badge {
    display: inline-block;
    background: var(--ft-sun-soft);
    color: var(--ft-blue);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: .35rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--ft-sun);
    margin-bottom: 1rem;
}

/* ---------- Service cards (homepage) ---------- */
.ft-service-card {
    background: #fff;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius);
    padding: 2rem 1.5rem;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
}

.ft-service-card:hover {
    box-shadow: var(--ft-shadow-md);
    transform: translateY(-3px);
}

.ft-service-icon {
    width: 52px;
    height: 52px;
    background: var(--ft-sun-soft);
    border-radius: var(--ft-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
}

/* ---------- Steps section ---------- */
.ft-steps-section {
    background: #fff;
}

.ft-step-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ft-blue);
    border: 3px solid var(--ft-yellow);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* ---------- Advantages section ---------- */
.ft-advantages-section {
    background: var(--ft-gray-bg);
}

.ft-advantage-card {
    background: #fff;
    border-radius: var(--ft-radius);
    padding: 1.75rem;
    border: 1px solid var(--ft-border);
    transition: box-shadow .2s;
}

.ft-advantage-card:hover {
    box-shadow: var(--ft-shadow-md);
}

/* ---------- Letter choice cards (choice-letter) ---------- */
.ft-letter-card {
    border-radius: var(--ft-radius);
    overflow: hidden;
    border: 1px solid var(--ft-border);
    transition: box-shadow .2s;
}

.ft-letter-card:hover {
    box-shadow: var(--ft-shadow-md);
}

.ft-letter-card .card-img-top {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ft-letter-card.green .card-img-top {
    background: var(--ft-green);
}

.ft-letter-card.tracked .card-img-top {
    background: var(--ft-teal);
}

.ft-letter-card.plus .card-img-top {
    background: var(--ft-teal);
}

.ft-letter-card .card-body {
    padding: 1.5rem;
}

.ft-letter-card .card-body h5 {
    font-weight: 800;
    color: var(--ft-blue);
}

.ft-letter-card .card-body p.sub {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ft-muted);
    margin-bottom: .75rem;
}

/* ---------- Page hero banner ---------- */
.ft-page-hero {
    background: var(--ft-blue);
    padding: 1.5rem 0 2rem;
}

.ft-page-hero h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 400;
}

.ft-page-hero p {
    color: rgba(255, 255, 255, .8);
    margin: 0;
}

/* ---------- Commander page ---------- */
.ft-step-badge {
    width: 34px;
    height: 34px;
    background: var(--ft-yellow);
    color: var(--ft-blue-dark);
    font-weight: 800;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    margin-right: .6rem;
    flex-shrink: 0;
}

.ft-section-card {
    background: #fff;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius);
    padding: 1.75rem;
    text-align: left;
    margin-bottom: 1.25rem;
    box-shadow: var(--ft-shadow);
}

/* Surbrillance brève de l'étape suivante (guidage du formulaire, cf. step-flow.js) */
.ft-step-active {
    animation: ftStepPulse 1.2s ease;
}

@keyframes ftStepPulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 69, 124, .35); }
    100% { box-shadow: 0 0 0 12px rgba(0, 69, 124, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .ft-step-active {
        animation: none;
    }
}

.ft-form-card {
    background: #fff;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius);
    padding: 1.75rem;
    text-align: left;
    margin-bottom: 1.25rem;
    box-shadow: var(--ft-shadow);
}

.ft-form-card .ft-card--title {
    font-size: var(--text-h5);
    color: var(--ft-blue);
    font-weight: bold;
}

/* Selectable letter type cards */
.ft-selectable {
    border: 2px solid var(--ft-border);
    border-radius: var(--ft-radius);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    position: relative;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ft-selectable:hover {
    border-color: var(--ft-blue);
    box-shadow: 0 0 0 3px rgba(0, 69, 124, .08);
}

.ft-selectable.selected {
    border-color: var(--ft-blue);
    box-shadow: 0 0 0 3px rgba(0, 69, 124, .12);
}

.ft-selectable .check-icon {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 24px;
    height: 24px;
    background: var(--ft-green, #00795c);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .75rem;
}

.ft-selectable.selected .check-icon {
    display: flex;
}

.ft-selectable .letter-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    background: var(--ft-gray-bg);
    border-radius: var(--ft-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ft-selectable .letter-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ft-selectable .price-from {
    text-align: right;
    white-space: nowrap;
}

.ft-selectable .price-from small {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ft-muted);
}

.ft-selectable .price-from strong {
    font-size: 1.3rem;
    color: var(--ft-blue);
    font-weight: 800;
}

/* Format timbre selectable cards (small) */
.ft-format-card {
    border: 2px solid var(--ft-border);
    border-radius: var(--ft-radius);
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    transition: border-color .2s;
    position: relative;
}

.ft-format-card.selected {
    border-color: var(--ft-blue);
    box-shadow: 0 0 0 3px rgba(0, 69, 124, .1);
}

.ft-format-card .check-icon {
    position: absolute;
    top: .6rem;
    right: .6rem;
    width: 22px;
    height: 22px;
    background: var(--ft-blue);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .7rem;
}

.ft-format-card.selected .check-icon {
    display: flex;
}

/* ---------- Sidebar commande / recap ---------- */
.ft-sidebar-recap {
    background: var(--ft-gray-bg);
    border: 2px solid var(--ft-yellow);
    border-radius: var(--ft-radius);
    padding: 1.5rem;
    position: sticky;
    top: 80px;
}

.ft-sidebar-recap .recap-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ft-blue);
    margin-bottom: 1rem;
}

.ft-recap-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: .55rem 0;
    border-bottom: 1px solid var(--ft-border);
    font-size: .9rem;
}

.ft-recap-row:last-of-type {
    border-bottom: none;
}

.ft-recap-row .label {
    color: var(--ft-muted);
}

.ft-recap-row .value {
    font-weight: 600;
    color: var(--ft-blue);
    text-align: right;
    max-width: 55%;
}

.ft-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: .85rem;
    margin-top: .5rem;
    border-top: 2px solid var(--ft-blue);
    font-weight: 800;
    font-size: 1.05rem;
}

.ft-total-row .total-price {
    color: var(--ft-blue);
    font-size: 1.2rem;
}

/* ---------- Abonnements ---------- */
.ft-pricing-card {
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius);
    padding: 2rem;
    position: relative;
    transition: box-shadow .2s;
}

.ft-pricing-card.popular {
    border: 2px solid var(--ft-yellow);
    background: var(--ft-sun-soft);
}

.ft-pricing-card:hover {
    box-shadow: var(--ft-shadow-md);
}

.ft-popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ft-blue);
    color: var(--ft-yellow);
    font-size: .75rem;
    font-weight: 700;
    padding: .35rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
}

.ft-pricing-card .price-big {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--ft-blue);
    line-height: 1;
}

.ft-pricing-card .price-big sup {
    font-size: 2rem;
    font-weight: 700;
    top: -.25rem;
}

.ft-pricing-card .price-big span.per-month {
    font-size: .9rem;
    font-weight: 500;
    color: var(--ft-muted);
    letter-spacing: .1ch;
    margin-left: .5ch;;
}

.ft-pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ft-pricing-card ul li {
    padding: .45rem 0;
    font-size: .9rem;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

.ft-pricing-card ul li .check {
    color: var(--ft-green);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: .05rem;
}

/* ---------- Paiement ---------- */
.ft-payment-method {
    border: 2px solid var(--ft-border);
    border-radius: var(--ft-radius-sm);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: border-color .2s;
    position: relative;
}

.ft-payment-method.selected {
    border-color: var(--ft-blue);
    box-shadow: 0 0 0 3px rgba(0, 69, 124, .1);
}

.ft-payment-method .pm-check {
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: 20px;
    height: 20px;
    background: var(--ft-blue);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .65rem;
}

.ft-payment-method.selected .pm-check {
    display: flex;
}

form .form-check-input {
    width: 1.5em;
    height: 1.5em;
}

/* ---------- Buttons ---------- */
.btn-ft-primary {
    background: var(--ft-cta);
    color: var(--ft-cta-text);
    font-weight: 800;
    border: none;
    border-radius: var(--ft-radius-sm);
    padding: .75rem 1.75rem;
    transition: background .2s, transform .15s;
}

.btn-ft-primary:hover {
    background: var(--ft-cta-hover);
    color: var(--ft-cta-text);
    transform: translateY(-1px);
}

.btn-ft-outline {
    background: transparent;
    color: var(--ft-blue);
    font-weight: 700;
    border: 2px solid var(--ft-blue);
    border-radius: var(--ft-radius-sm);
    padding: .7rem 1.75rem;
    transition: background .2s, color .2s;
}

.btn-ft-outline:hover {
    background: var(--ft-blue);
    color: #fff;
}

/* ---------- Footer ---------- */
.ft-footer {
    background: var(--ft-blue-dark);
    color: rgba(255, 255, 255, .75);
    padding: 3.5rem 0 1.5rem;
}

.ft-footer .footer-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.ft-footer .footer-tagline {
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
    max-width: 260px;
    margin-top: .5rem;
}

.ft-footer .footer-list--title {
    color: var(--ft-yellow);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.ft-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ft-footer ul li {
    margin-bottom: .5rem;
}

.ft-footer ul li a {
    color: rgba(255, 255, 255, .65);
    font-size: .9rem;
    transition: color .2s;
}

.ft-footer ul li a:hover {
    color: #fff;
}

.ft-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .4);
    text-align: center;
}

/* ---------- Process steps (comment utiliser) ---------- */
.ft-process-section {
    background: #fff;
}

.ft-process-step {
    text-align: center;
    padding: 1rem;
    position: relative;
}

.ft-process-step .step-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 1rem;
}

.ft-process-num {
    width: 32px;
    height: 32px;
    background: var(--ft-yellow);
    color: var(--ft-blue);
    border-radius: 50%;
    font-weight: 800;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .65rem;
}

/* dashed connector */
.ft-process-connector {
    position: absolute;
    top: 55px;
    right: -30%;
    width: 60%;
    border-top: 2px dashed var(--ft-border);
    z-index: 0;
}

/* ---------- Info alert ---------- */
.ft-info-alert {
    background: var(--ft-blue-light);
    border-left: 4px solid var(--ft-blue);
    border-radius: var(--ft-radius-sm);
    padding: 1rem 1.25rem;
    font-size: .9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .ft-hero {
        padding: 3rem 0 2.5rem;
    }

    .ft-hero h1 {
        font-size: 1.75rem;
    }

    .ft-hero-stamp {
        margin: 2rem auto 0;
    }

    .ft-process-connector {
        display: none;
    }
}


/* HOME PAGE */

.ft-hero-v2 {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 5rem 0 4.5rem;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(255, 255, 255, .10), transparent 60%),
        radial-gradient(700px 380px at -10% 110%, rgba(255, 255, 255, .07), transparent 60%),
        var(--ft-blue, #00457c);
}

.ft-hero-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.5px);
    background-size: 26px 26px;
    opacity: .25;
    pointer-events: none;
}

.ft-hero-v2 .container {
    position: relative;
    z-index: 1;
}

.ft-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: .35rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.ft-hero-v2 h1 {
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.15;
}

.ft-hero-v2 .highlight {
    color: var(--ft-yellow, #ffc400);
}

.ft-hero-checks {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
}

.ft-hero-checks li {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    color: rgba(255, 255, 255, .9);
    margin-bottom: .5rem;
    font-size: 1.02rem;
}

.ft-hero-checks li::before {
    content: "✓";
    font-weight: 800;
    color: var(--ft-green, #00795c);
}

.ft-hero-proof {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.75rem;
    color: rgba(255, 255, 255, .8);
    font-size: .9rem;
}

.ft-hero-proof .stars {
    color: var(--ft-yellow, #ffc400);
    letter-spacing: 2px;
}

.ft-hero-stamp-img {
    max-height: 400px;
}

/* Hero resserré sur mobile : on réduit les marges verticales et la taille du
   timbre pour garder le CTA et la preuve sociale au-dessus de la ligne de flottaison. */
@media (max-width: 767.98px) {
    /* Le hero occupe l'écran : contenu en haut, timbre collé en bas. */
    .ft-hero-home {
        display: flex;
        min-height: calc(100vh - 60px);
        min-height: calc(100svh - 60px);
        padding: 2.25rem 0 0;
        overflow: hidden;
    }

    .ft-hero-home > .container {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .ft-hero-home .row {
        flex: 1 1 auto;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
    }

    .ft-hero-home .ft-hero-badge {
        margin-bottom: .85rem;
    }

    .ft-hero-home .ft-hero-checks {
        margin: 1rem 0 1.25rem;
    }

    /* En bloc (et non flex) : la coche reste collée au texte et l'ensemble
       se centre, même quand la ligne passe sur deux lignes. */
    .ft-hero-home .ft-hero-checks li {
        display: block;
        font-size: .95rem;
        margin-bottom: .35rem;
    }

    .ft-hero-home .ft-hero-checks li::before {
        margin-right: .4rem;
    }

    /* Étoiles / preuve sociale masquées sur mobile */
    .ft-hero-home .ft-hero-proof {
        display: none;
    }

    /* Un peu de marge à gauche du contenu principal */
    .ft-hero-text-col {
        padding-left: 1.25rem;
    }

    /* Timbre poussé tout en bas, centré dans le viewport, avec une marge en bas.
       Colonne en pleine largeur (on annule le align-items:center de la row qui
       la réduisait au contenu) pour un centrage fiable. */
    .ft-hero-stamp-col {
        margin-top: auto;
        margin-bottom: 1.25rem;
        width: 100%;
        align-self: stretch;
        justify-content: center;
    }

    .ft-hero-stamp-wrap {
        display: block !important;
        width: 100%;
        text-align: center;
    }

    .ft-hero-stamp-img {
        width: 100% !important;
        position: relative;
        left: .75rem;
        max-width: 360px;
        max-height: none;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Bandeau de confiance */
.ft-trust-strip {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.ft-trust-item {
    padding: 1.25rem .5rem;
    text-align: center;
}

.ft-trust-item .num {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--ft-blue, #00457c);
}

.ft-trust-item .lbl {
    font-size: .82rem;
    color: #6c757d;
}

/* Cartes service v2 */
.ft-service-card-v2 {
    background: #fff;
    border-radius: var(--ft-radius, 14px);
    padding: 2rem 1.75rem;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 6px 24px rgba(10, 61, 122, .06);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ft-service-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(10, 61, 122, .12);
}

.ft-service-card-v2 .price-chip {
    display: inline-block;
    background: var(--ft-gray-bg, #f2f6fa);
    border-radius: 999px;
    padding: .25rem .85rem;
    font-weight: 800;
    font-size: .95rem;
    color: var(--ft-blue, #00457c);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.ft-popular-flag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ft-yellow, #ffc400);
    color: var(--ft-blue, #00457c);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: .3rem .9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    white-space: nowrap;
}

.ft-service-card-v2.is-popular {
    border: 2px solid var(--ft-yellow, #ffc400);
}

/* Table des tarifs */
.ft-price-table {
    border-radius: var(--ft-radius, 14px);
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(10, 61, 122, .06);
}

.ft-price-table table {
    margin-bottom: 0;
}

.ft-price-table thead {
    background: var(--ft-blue, #00457c);
    color: #fff;
}

.ft-price-table thead th {
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: .9rem 1.25rem;
    border: 0;
}

.ft-price-table tbody td {
    padding: .95rem 1.25rem;
    vertical-align: middle;
}

.ft-price-table .price {
    font-weight: 800;
    color: var(--ft-blue, #00457c);
    white-space: nowrap;
}

.ft-price-table .tag {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-radius: 999px;
    padding: .2rem .6rem;
    white-space: nowrap;
}

.ft-price-table .tag.green {
    background: rgba(63, 165, 53, .12);
    color: var(--ft-green, #00795c);
}

.ft-price-table .tag.teal {
    background: rgba(0, 165, 165, .12);
    color: var(--ft-teal, #0f7fa8);
}

/* Étapes avec ligne de liaison */
.ft-steps-wrap {
    position: relative;
}

@media (min-width: 768px) {
    .ft-steps-wrap::before {
        content: "";
        position: absolute;
        top: 24px;
        left: 12.5%;
        right: 12.5%;
        border-top: 2px dashed rgba(10, 61, 122, .25);
        z-index: 0;
    }
}

.ft-step-v2 {
    position: relative;
    z-index: 1;
}

.ft-step-num-v2 {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--ft-blue, #00457c);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px var(--ft-gray-bg, #f2f6fa);
}

/*
 * Sur mobile, les 4 étapes tenaient sur deux colonnes de ~150 px, texte centré :
 * le drapeau était illisible (mots orphelins, césures hasardeuses) et les
 * cartes finissaient à des hauteurs très inégales. On repasse en une colonne,
 * numéro en gouttière à gauche et texte ferré à gauche — ça se lit comme la
 * procédure numérotée que c'est.
 *
 * L'icône est masquée ici : elle double le numéro, qui suffit au repérage, et
 * elle coûtait une ligne de hauteur par étape.
 *
 * Les !important sont nécessaires face aux utilitaires Bootstrap (.text-center
 * et les largeurs de .col-6 sont eux-mêmes déclarés !important).
 */
@media (max-width: 767.98px) {
    .ft-steps-wrap > .ft-step-v2 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-template-areas:
            "num title"
            ".   text";
        column-gap: 1rem;
        text-align: left !important;
    }

    .ft-step-v2 .ft-step-num-v2 {
        grid-area: num;
        width: 40px;
        height: 40px;
        margin: 0;
        box-shadow: none;
    }

    .ft-step-v2 .ft-ic-block {
        display: none;
    }

    .ft-step-v2 h3 {
        grid-area: title;
        align-self: center;
        margin-bottom: .35rem;
    }

    .ft-step-v2 p {
        grid-area: text;
        margin-bottom: 0;
    }
}

/* FAQ */
.ft-faq .accordion-item {
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--ft-radius, 14px) !important;
    overflow: hidden;
    margin-bottom: .75rem;
    box-shadow: 0 4px 16px rgba(10, 61, 122, .04);
}

.ft-faq .accordion-button {
    font-weight: 700;
    color: var(--ft-blue, #00457c);
    padding: 1.1rem 1.4rem;
}

.ft-faq .accordion-button:not(.collapsed) {
    background: var(--ft-gray-bg, #f2f6fa);
    box-shadow: none;
}

.ft-faq .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(10, 61, 122, .2);
}

.ft-faq .accordion-body {
    color: #6c757d;
    font-size: .95rem;
}

/* CTA final */
.ft-cta-v2 {
    background:
        radial-gradient(700px 300px at 50% -40%, rgba(255, 255, 255, .12), transparent 65%),
        var(--ft-blue, #00457c);
}

.ft-cta-reassure {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.75rem;
    justify-content: center;
    color: rgba(255, 255, 255, .8);
    font-size: .9rem;
    margin-top: 1.5rem;
}

.ft-cta-reassure span::before {
    content: "✓ ";
    color: var(--ft-green, #00795c);
    font-weight: 800;
}

/* Animations d'entrée */
@keyframes ftFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.ft-fade {
    animation: ftFadeUp .7s ease both;
}

.ft-fade.d1 {
    animation-delay: .1s;
}

.ft-fade.d2 {
    animation-delay: .2s;
}

.ft-fade.d3 {
    animation-delay: .3s;
}

.ft-fade.d4 {
    animation-delay: .4s;
}

@media (prefers-reduced-motion: reduce) {
    .ft-fade {
        animation: none;
    }
}

/* PAYMENT PAGE */

#payments .form-control,
#payments .form-select,
#payments .btn,
#payments .ft-card,
#payments .ft-avantages-card {
    border-radius: 2px !important;
}

/* ===== Carte du formulaire : accent de marque ===== */
#payments .ft-card {
    background: #fff;
    border-top: 3px solid var(--ft-yellow, #ffc400);
    box-shadow: 0 1px 3px rgba(10, 61, 122, .08);
    padding: 1.5rem 1.5rem 1.25rem;
}

/* ===== En-tête : montant + cartes acceptées ===== */
#payments .ft-paiement-header {
    border-bottom: 1px solid rgba(10, 61, 122, .1);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

#payments .ft-paiement-header .montant-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #98a1ad;
    display: block;
    margin-bottom: .1rem;
}

#payments .ft-paiement-header .montant-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ft-blue, #00457c);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

/* ===== Champs : fond gris clair, focus marqué ===== */
#payments .form-control {
    background: var(--ft-gray-bg, #f2f6fa);
    border-color: rgba(10, 61, 122, .15);
    min-height: 48px;
    font-size: .95rem;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

#payments .form-control:focus {
    background: #fff;
    border-color: var(--ft-blue, #00457c);
    box-shadow: 0 0 0 .2rem rgba(10, 61, 122, .08);
}

#payments .form-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--ft-blue, #00457c);
    margin-bottom: .35rem;
}

/* Nom du titulaire en capitales, comme sur la carte */
#payments #name {
    text-transform: uppercase;
}

/* ===== Icônes dans les champs (à gauche) =====
       L'icône est ancrée en haut du wrapper (top = moitié des 48px du champ)
       pour rester alignée même quand un message d'erreur s'affiche dessous. */
#payments .ft-input-icon {
    position: relative;
}

#payments .ft-input-icon .field-icon {
    position: absolute;
    left: 1rem;
    top: 24px;
    transform: translateY(-50%);
    font-size: 1.05rem;
    color: #98a1ad;
    pointer-events: none;
    z-index: 5;
    transition: color .15s ease;
}

#payments .ft-input-icon:focus-within .field-icon {
    color: var(--ft-blue, #00457c);
}

#payments .ft-input-icon .form-control {
    padding-left: 2.7rem;
}

/* Messages d'erreur JustValidate : respiration sous le champ */
#payments .just-validate-error-label {
    font-size: .78rem;
    margin-top: .3rem;
}

/* ===== Bouton payer : jaune, texte bleu ===== */
#payments #btn-payer {
    background: var(--ft-cta);
    border: 1px solid var(--ft-cta);
    color: var(--ft-cta-text);
    padding-top: .85rem;
    padding-bottom: .85rem;
    font-weight: 800;
    letter-spacing: .2px;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

#payments #btn-payer:hover,
#payments #btn-payer:focus {
    background: var(--ft-cta);
    border-color: var(--ft-cta);
    color: var(--ft-cta-text);
    filter: brightness(.96);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(10, 61, 122, .2);
}

#payments #btn-payer:disabled {
    opacity: .75;
    transform: none;
    box-shadow: none;
}

#payments #btn-payer .spinner-border {
    color: var(--ft-blue, #00457c);
}

/* ===== Bandeau de confiance sous le bouton ===== */
#payments .ft-trust-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem 1.25rem;
    margin-top: .85rem;
    font-size: .72rem;
    color: #98a1ad;
}

#payments .ft-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

/* ===== Bloc Avantages (colonne droite) ===== */
#payments .ft-avantages-card {
    border: 1px solid rgba(10, 61, 122, .08) !important;
    border-top: 3px solid var(--ft-yellow, #ffc400) !important;
    box-shadow: 0 1px 3px rgba(10, 61, 122, .08);
}

#payments .ft-avantages-card h5 {
    color: var(--ft-blue, #00457c);
    font-weight: 700;
}

/* ===== Rayons plafonnés à 2px sur toute la page ===== */
.ft-condensed .ft-form-card,
.ft-condensed .ft-section-card,
.ft-condensed .ft-sidebar-recap,
.ft-condensed .form-select,
.ft-condensed .form-control,
.ft-condensed .btn {
    border-radius: 2px !important;
}

.ft-condensed .ft-section-card ,
.ft-condensed .ft-form-card {
    padding: 1.5rem 1.5rem 1.25rem;
    margin-bottom: .85rem;
}

/* Annotations : taille unique */
.ft-condensed .ft-footnote,
.ft-condensed .form-text,
.ft-stamp-preview-caption,
.ft-recap-fixed-note {
    font-size: .75rem;
}

/* ===== Carte de paiement : accent de marque ===== */
#step-paiement {
    border-top: 3px solid var(--ft-yellow, #ffc400);
}

/* ===== En-tête du paiement : montant + cartes acceptées ===== */
.ft-paiement-header {
    border-bottom: 1px solid rgba(10, 61, 122, .1);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.ft-paiement-header .montant-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #98a1ad;
    display: block;
    margin-bottom: .1rem;
}

.ft-paiement-header .montant-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ft-blue, #00457c);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

/* ===== Champs : labels flottants, fond gris clair ===== */
.ft-condensed .form-floating>.form-control {
    min-height: 56px;
    font-size: .95rem;
}

.ft-condensed .form-control {
    background: var(--ft-gray-bg, #f2f6fa);
    border-color: rgba(10, 61, 122, .15);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.ft-condensed .form-control:focus {
    background: #fff;
    border-color: var(--ft-blue, #00457c);
    box-shadow: 0 0 0 .2rem rgba(10, 61, 122, .08);
}

.ft-condensed .form-floating>label {
    font-size: .85rem;
    color: #6c757d;
}

/* Le label flottant reste lisible sur le fond gris */
.ft-condensed .form-floating>.form-control:focus~label,
.ft-condensed .form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--ft-blue, #00457c);
}

/* ===== Icônes dans les champs (à gauche) ===== */
.ft-input-icon {
    position: relative;
}

.ft-input-icon>.field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.05rem;
    color: #98a1ad;
    pointer-events: none;
    z-index: 5;
    transition: color .15s ease;
}

.ft-input-icon:focus-within>.field-icon {
    color: var(--ft-blue, #00457c);
}

/* Décale le texte et le label pour laisser la place à l'icône */
.ft-input-icon>.form-control {
    padding-left: 2.7rem;
}

.ft-input-icon>label {
    padding-left: 2.7rem;
}

/* Nom du titulaire en capitales, comme sur la carte */
.ft-condensed #input-titulaire {
    text-transform: uppercase;
}

/* ===== Bouton payer : jaune, toujours actif ===== */
.ft-condensed #btn-payer {
    background: var(--ft-cta);
    border-color: var(--ft-cta);
    color: var(--ft-cta-text);
    padding-top: .85rem;
    padding-bottom: .85rem;
    font-weight: 800;
    letter-spacing: .2px;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.ft-condensed #btn-payer:hover {
    background: var(--ft-cta);
    border-color: var(--ft-cta);
    color: var(--ft-cta-text);
    filter: brightness(.96);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(10, 61, 122, .2);
}

/* ===== Bandeau de confiance sous le bouton ===== */
.ft-trust-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem 1.25rem;
    margin-top: .85rem;
    font-size: .72rem;
    color: #98a1ad;
}

.ft-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

/* ===== Sidebar collante ===== */
.ft-sidebar-sticky {
    position: sticky;
    top: 1.5rem;
    z-index: 10;
}

/* ===== Aperçu du timbre (SVG façon vrai timbre, sans ombre) ===== */
.ft-stamp-preview {
    max-width: 170px;
    margin: .5rem auto 1rem;
}

.ft-stamp-preview svg {
    display: block;
    width: 100%;
    height: auto;
}

.ft-stamp-preview .svg-marque {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .8px;
    fill: var(--ft-blue, #00457c);
}

.ft-stamp-preview-caption {
    text-align: center;
    color: #6c757d;
    margin-bottom: .75rem;
    overflow-wrap: anywhere;
}

.ft-recap-fixed-note {
    color: #98a1ad;
    text-align: center;
    margin-bottom: .75rem;
}

/* ===== Récap ===== */
.ft-sidebar-recap .ft-recap-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
    font-size: .85rem;
}

.ft-sidebar-recap .ft-recap-row .label {
    flex: 0 0 auto;
}

.ft-sidebar-recap .ft-recap-row .value {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

/* ===== Mobile ===== */
@media (max-width: 767.98px) {
    .ft-page-hero {
        padding: 1.1rem 0;
    }

    .ft-page-hero h1 {
        font-size: 1.3rem;
        margin-bottom: .2rem;
    }

    .ft-page-hero p {
        font-size: .85rem;
        margin-bottom: 0;
    }

    .ft-condensed .ft-section-card {
        padding: 1rem .9rem;
        margin-bottom: .6rem;
    }

    .ft-paiement-header .montant-value {
        font-size: 1.35rem;
    }

    .ft-stamp-preview {
        max-width: 150px;
    }

    .ft-stamp-preview-caption,
    .ft-recap-fixed-note {
        margin-bottom: .4rem;
    }
}

@media (max-width: 991.98px) {
    .ft-sidebar-sticky {
        position: static;
    }
}

.ft-sidebar-recap img,
.ft-section-card img {
    max-width: 100%;
    height: auto;
}


/* ORDER_LONG PAGE */

.ft-fixed-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--ft-gray-bg, #f2f6fa);
    border: 1px solid rgba(10, 61, 122, .12);
    border-radius: var(--ft-radius, 14px);
    padding: 1rem 1.25rem;
    position: relative;
}

/* ===== Galerie de visuels ===== */
.ft-visual-option {
    border: 1px solid rgba(10, 61, 122, .2);
    border-radius: var(--ft-radius, 14px);
    background: #fff;
    padding: 6px;
    cursor: pointer;
    position: relative;
    transition: border-color .15s ease, box-shadow .15s ease;
    user-select: none;
}

.ft-visual-option:hover {
    border-color: var(--ft-blue, #00457c);
}

.ft-visual-option.selected {
    border-color: var(--ft-blue, #00457c);
    box-shadow: inset 0 0 0 1px var(--ft-blue, #00457c);
}

.ft-visual-option img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.ft-visual-option .visual-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--ft-blue, #00457c);
    text-align: center;
    padding: .4rem .2rem .2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Cartes de support d'impression ===== */
.ft-support-card {
    border: 1px solid rgba(10, 61, 122, .2);
    border-radius: var(--ft-radius, 14px);
    background: #fff;
    padding: 1rem 1.1rem;
    cursor: pointer;
    position: relative;
    height: 100%;
    transition: border-color .15s ease, box-shadow .15s ease;
    user-select: none;
}

.ft-support-card:hover {
    border-color: var(--ft-blue, #00457c);
}

.ft-support-card.selected {
    border-color: var(--ft-blue, #00457c);
    box-shadow: inset 0 0 0 1px var(--ft-blue, #00457c);
    background: rgba(10, 61, 122, .03);
}

/* ===== Tuiles radio : poids & quantité ===== */
.ft-weight-option,
.ft-qty-option {
    border: 1px solid rgba(10, 61, 122, .2);
    border-radius: var(--ft-radius, 14px);
    background: #fff;
    text-align: center;
    padding: .9rem .5rem;
    cursor: pointer;
    position: relative;
    height: 100%;
    transition: border-color .15s ease, box-shadow .15s ease;
    user-select: none;
}

.ft-weight-option:hover,
.ft-qty-option:hover {
    border-color: var(--ft-blue, #00457c);
}

.ft-weight-option.selected,
.ft-qty-option.selected {
    border-color: var(--ft-blue, #00457c);
    box-shadow: inset 0 0 0 1px var(--ft-blue, #00457c);
    background: rgba(10, 61, 122, .04);
}

.ft-weight-option .weight-num,
.ft-qty-option .qty-num {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ft-blue, #00457c);
    line-height: 1.2;
}

.ft-weight-option .weight-lbl,
.ft-qty-option .qty-lbl {
    font-size: .7rem;
    color: #6c757d;
}

/* ===== Pastille de validation commune ===== */
.ft-visual-option .check-icon,
.ft-support-card .check-icon,
.ft-weight-option .check-icon,
.ft-qty-option .check-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ft-green, #00795c);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    z-index: 1;
}

.ft-visual-option.selected .check-icon,
.ft-support-card.selected .check-icon,
.ft-weight-option.selected .check-icon,
.ft-qty-option.selected .check-icon {
    display: flex;
}

/*  ORDER PAGE (condensed landing page version) */

.ft-condensed .ft-section-card,
.ft-condensed .ft-sidebar-recap,
.ft-condensed .ft-selectable,
.ft-condensed .ft-qty-option,
.ft-condensed .ft-weight-option,
.ft-condensed .ft-fixed-badge,
.ft-condensed .form-select,
.ft-condensed .form-control,
.ft-condensed .btn {
    border-radius: 2px !important;
}

/* NB : les pastilles de coche et les badges d'étape restent ronds
       volontairement ; ajoutez-les ci-dessus pour les aplatir aussi. */

/* ===== Compaction générale ===== */
.ft-condensed .ft-section-card {
    padding: 1.1rem 1.25rem;
    margin-bottom: .85rem;
}

/* Annotations : taille unique sur toute la page */
.ft-condensed .ft-footnote,
.ft-condensed .form-text,
.ft-stamp-preview-caption,
.ft-recap-fixed-note {
    font-size: .75rem;
}

/* ===== Cartes « Nature » resserrées ===== */
.ft-condensed .ft-selectable {
    padding: .8rem .9rem;
    height: 100%;
}

.ft-condensed .ft-selectable strong {
    font-size: .92rem;
    overflow-wrap: anywhere;
}

.ft-condensed .ft-selectable ul {
    font-size: .75rem;
    margin-bottom: 0;
}

.ft-condensed .ft-selectable .price-from small {
    font-size: .6rem;
}

.ft-condensed .ft-selectable .price-from strong {
    font-size: 1rem;
}

.ft-condensed .ft-selectable .flex-grow-1 {
    min-width: 0;
}

/* ===== Tuiles radio : poids & quantité ===== */
.ft-weight-option,
.ft-qty-option {
    border: 1px solid rgba(10, 61, 122, .2);
    background: #fff;
    text-align: center;
    padding: .65rem .4rem;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
    position: relative;
    height: 100%;
    user-select: none;
}

.ft-weight-option:hover,
.ft-qty-option:hover {
    border-color: var(--ft-blue, #00457c);
}

.ft-weight-option.selected,
.ft-qty-option.selected {
    border-color: var(--ft-blue, #00457c);
    box-shadow: inset 0 0 0 1px var(--ft-blue, #00457c);
    background: rgba(10, 61, 122, .04);
}

.ft-weight-option .weight-num,
.ft-qty-option .qty-num {
    font-weight: 800;
    font-size: 1rem;
    color: var(--ft-blue, #00457c);
    line-height: 1.1;
}

.ft-weight-option .weight-lbl,
.ft-qty-option .qty-lbl {
    font-size: .7rem;
    color: #6c757d;
    overflow-wrap: anywhere;
}

/* ===== Pastille de validation commune (reste ronde) ===== */
.ft-condensed .ft-selectable .check-icon,
.ft-weight-option .check-icon,
.ft-qty-option .check-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ft-green, #00795c);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    z-index: 1;
}

.ft-condensed .ft-selectable.selected .check-icon,
.ft-weight-option.selected .check-icon,
.ft-qty-option.selected .check-icon {
    display: flex;
}

/* ===== Bouton paiement : garde son style primaire même désactivé ===== */
.ft-condensed #btn-paiement.disabled {
    pointer-events: none;
    opacity: .5;
    background: var(--ft-blue, #00457c) !important;
    border-color: var(--ft-blue, #00457c) !important;
    color: #fff !important;
}

/* ===== Email : champ plus grand et plus confortable ===== */
.ft-condensed #input-email {
    padding: .7rem 1rem;
    font-size: .95rem;
    min-height: 48px;
}

/* =====================================================
       Mobile ultra-condensé : tout le formulaire tient
       quasiment sur un écran.
       ===================================================== */
@media (max-width: 767.98px) {

    /* Héro réduit */
    .ft-page-hero {
        padding: 1.1rem 0;
    }

    .ft-page-hero h1 {
        font-size: 1.3rem;
        margin-bottom: .2rem;
    }

    .ft-page-hero p {
        font-size: .85rem;
        margin-bottom: 0;
    }

    /* Sections resserrées */
    .ft-condensed .ft-section-card {
        padding: .85rem .8rem;
        margin-bottom: .6rem;
    }

    .ft-condensed .ft-section-card h5 {
        font-size: .95rem;
    }

    /* Étape 1 — Nature : cartes réduites à une ligne (titre + prix),
           les puces descriptives sont masquées sur mobile */
    .ft-condensed .ft-selectable {
        padding: .85rem 1rem;
        align-items: center !important;
        flex-wrap: nowrap;
    }

    .ft-condensed .ft-selectable ul {
        display: none;
    }

    .ft-condensed .ft-selectable .price-from {
        margin-top: 0;
        flex: 0 0 auto;
        text-align: right;
    }

    .ft-condensed .ft-selectable .price-from small {
        display: none;
    }

    .ft-condensed .ft-selectable .price-from strong {
        font-size: .95rem;
    }

    /* Tuiles poids / quantité : mini, libellés masqués
           (5 et 6 tuiles tiennent sur une seule ligne) */
    .ft-weight-option,
    .ft-qty-option {
        padding: .5rem .15rem;
    }

    .ft-weight-option .weight-num,
    .ft-qty-option .qty-num {
        font-size: .88rem;
    }

    .ft-weight-option .weight-lbl,
    .ft-qty-option .qty-lbl {
        display: none;
    }

    .ft-weight-option .check-icon,
    .ft-qty-option .check-icon {
        top: -6px;
        right: -6px;
        width: 16px;
        height: 16px;
        font-size: .6rem;
    }

    /* Récap : timbre plus petit, notes resserrées */
    .ft-stamp-preview {
        max-width: 150px;
    }

    .ft-stamp-preview-caption,
    .ft-recap-fixed-note {
        margin-bottom: .4rem;
    }
}

/* Cookie banner */
.ft-cookie-banner {
    border: 1px solid rgba(0, 0, 0, .06);
    border-top: 3px solid var(--ft-yellow, #ffc400);
    border-radius: var(--ft-radius, 14px);
    box-shadow: 0 16px 40px rgba(10, 61, 122, .14);
    padding: 1.25rem;
}

.ft-section{
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

/* Page "Créez votre timbre" : on resserre l'espace avant la première carte sur mobile */
@media (max-width: 767.98px) {
    .ft-order-long-page {
        padding-top: 1.5rem;
    }

    /* Page "Créer un compte" : hero et section resserrés sur mobile */
    .ft-hero-v2.ft-create-hero {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }

    .ft-section.ft-create-section {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }
}

/* ---------- Settings tabs (connected space) ---------- */
.ft-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: .35rem;
    overflow-x: auto;
    padding: .35rem;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius);
    box-shadow: var(--ft-shadow);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ft-tabs::-webkit-scrollbar {
    display: none;
}

.ft-tabs .ft-tab {
    flex: 0 0 auto;
    display: block;
    padding: .55rem 1.1rem;
    border-radius: var(--ft-radius-sm);
    font-weight: 600;
    font-size: .95rem;
    color: var(--ft-muted);
    white-space: nowrap;
    text-align: center;
    transition: background .15s, color .15s;
}

.ft-tabs .ft-tab:hover {
    color: var(--ft-blue);
    background: var(--ft-blue-light);
}

.ft-tabs .ft-tab.active {
    background: var(--ft-blue);
    color: #fff;
}

@media (max-width: 575.98px) {
    .ft-tabs .ft-tab {
        flex: 1 0 auto;
    }
}

/* ---------- "Pourquoi nous choisir" alternating rows ---------- */
.ft-why-row {
    margin-bottom: 3.5rem;
}

.ft-why-row:last-child {
    margin-bottom: 0;
}

.ft-why-eyebrow {
    display: inline-block;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ft-accent-on-light);
    margin-bottom: .6rem;
}

.ft-why-media {
    position: relative;
    border-radius: var(--ft-radius);
    background: var(--ft-blue-light);
    padding: 2.5rem;
    text-align: center;
    overflow: hidden;
}

.ft-why-media::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--ft-yellow);
    opacity: .18;
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.ft-why-media img {
    position: relative;
    max-height: 340px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 14px 30px rgba(0, 69, 124, .22));
    transform: rotate(-3deg);
    transition: transform .35s ease;
}

.ft-why-media--left img {
    transform: rotate(3deg);
}

.ft-why-media img:hover {
    transform: rotate(0);
}

/* ---------- Order page (/acheter-timbre) tweaks ---------- */
/* Smaller, balanced page header */
.ft-page-hero--compact {
    padding: 1.5rem 0;
}

@media (max-width: 767.98px) {
    .ft-page-hero--compact {
        padding: .9rem 0;
    }
}

/* Tighten cards so the email field is reachable with less scrolling */
.ft-order-page .ft-section-card {
    margin-bottom: .75rem;
}

/* Equal-height nature cards: align their bottoms */
.ft-selectable.h-100 {
    margin-bottom: 0;
}

/* Email validation feedback (green check) — kept working inside .ft-condensed */
.ft-condensed .form-control.is-valid {
    border-color: var(--ft-green, #00795c) !important;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2300795c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M3 8.5l3.2 3.2L13 5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 1.05rem;
    padding-right: 2.5rem !important;
}

.ft-condensed .form-control.is-invalid {
    border-color: var(--danger, #da3743) !important;
}

/* ---------- Fixed mobile CTA (eSIM style) ---------- */
.ft-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 1rem;
    padding-bottom: calc(.65rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--ft-border);
    box-shadow: 0 -4px 20px rgba(0, 69, 124, .12);
}

.ft-mobile-cta .ft-mobile-cta-total {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.ft-mobile-cta .ft-mobile-cta-total .lbl {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 700;
    color: var(--ft-muted);
}

.ft-mobile-cta .ft-mobile-cta-total .val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ft-blue);
    font-variant-numeric: tabular-nums;
}

.ft-mobile-cta .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* ---------- Long order page (/mon-timbre) ---------- */
/* Email validation feedback (green check) — same look as the short order page */
.ft-order-long-page .form-control.is-valid {
    border-color: var(--ft-green, #00795c) !important;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2300795c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M3 8.5l3.2 3.2L13 5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 1.05rem;
    padding-right: 2.5rem !important;
}

.ft-order-long-page .form-control.is-invalid {
    border-color: var(--danger, #da3743) !important;
}

/* Nature de l'envoi (mobile) : vignette + prix sur la ligne du haut,
   contenu principal en dessous, pleine largeur */
@media (max-width: 575.98px) {
    .ft-order-long-page .ft-selectable {
        padding: .85rem 1rem;
        flex-wrap: wrap;
        align-items: center;
        column-gap: .7rem;
        row-gap: .65rem;
    }

    .ft-order-long-page .ft-selectable .letter-thumb {
        order: 1;
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        padding: .35rem !important;
    }

    .ft-order-long-page .ft-selectable .price-from {
        order: 2;
        margin-left: auto !important;
        text-align: right;
    }

    .ft-order-long-page .ft-selectable .flex-grow-1 {
        order: 3;
        flex-basis: 100%;
        width: 100%;
    }

    /* Pastille de sélection placée sur la vignette pour ne pas chevaucher le prix */
    .ft-order-long-page .ft-selectable .check-icon {
        top: .55rem;
        left: .55rem;
        right: auto;
    }
}

/* ---------- Timbre numérique landing (/timbre-numerique) ---------- */
.ft-digital-card {
    border-top: 4px solid var(--ft-yellow);
    color: var(--ft-text);
}

/* La carte est blanche : on rétablit un texte lisible (le hero impose du blanc) */
.ft-digital-card .form-label {
    color: var(--ft-text);
}

.ft-digital-card .form-text {
    color: var(--ft-muted);
}

.ft-digital-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--ft-blue);
    line-height: 1.1;
    margin: .25rem 0;
}

/* Bascule de format (petite lettre / carte) */
.btn-outline-ft {
    border: 2px solid var(--ft-border);
    background: #fff;
    color: var(--ft-blue);
    font-weight: 600;
}

.btn-outline-ft:hover {
    border-color: var(--ft-blue);
    color: var(--ft-blue);
}

.btn-check:checked + .btn-outline-ft {
    background: var(--ft-blue);
    border-color: var(--ft-blue);
    color: #fff;
}

.btn-check:focus-visible + .btn-outline-ft {
    box-shadow: 0 0 0 .2rem rgba(0, 69, 124, .2);
}

/* Timbre numérique — encart d'avertissement */
.ft-digital-note {
    background: var(--ft-sun-soft);
    border-left: 4px solid var(--ft-yellow);
    border-radius: var(--ft-radius-sm);
    padding: 1rem 1.25rem;
    color: var(--ft-text);
    font-size: .95rem;
}

/* Timbre numérique — carte d'infos (checklist) + révélation CTA */
.ft-digital-checks li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: .55rem;
    color: var(--ft-text);
    font-size: .95rem;
}

.ft-digital-checks li:last-child {
    margin-bottom: 0;
}

.ft-digital-checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ft-green);
    font-weight: 800;
}

.ft-cta-form {
    max-width: 560px;
}

.ft-cta-reveal {
    animation: ftFadeUp .25s ease;
}

@keyframes ftFadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Lisibilité des aides/erreurs de formulaire sur le hero bleu */
.ft-hero-v2 .form-text {
    color: rgba(255, 255, 255, .78);
}

.ft-hero-v2 .invalid-feedback {
    color: #ffc2c2;
    font-weight: 600;
}

/* V3 — message d'erreur en pastille flottante (n'impacte pas la mise en page) */
#email-errors {
    position: relative;
}

#email-errors .just-validate-error-label {
    position: absolute;
    top: .3rem;
    left: 0;
    z-index: 5;
    margin: 0;
    max-width: 100%;
    background: var(--danger, #da3743);
    color: #ffffff95!important;
    font-weight: 600;
    font-size: .8rem;
    line-height: 1.25;
    padding: .3rem .6rem;
    border-radius: var(--ft-radius-sm, 8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}

/* V3 — bouton accolé à droite du champ email (desktop), empilé sur mobile */
.ft-cta-group .ft-cta-btn {
    display: none;
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 700;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
}

.ft-cta-group.is-ready .ft-cta-btn {
    display: inline-flex;
    align-items: center;
}

/* champ entièrement arrondi tant que le bouton est masqué */
.ft-cta-group:not(.is-ready) > .form-control {
    border-top-right-radius: var(--bs-border-radius-lg) !important;
    border-bottom-right-radius: var(--bs-border-radius-lg) !important;
}

@media (max-width: 575.98px) {
    .ft-cta-group.is-ready > .form-control {
        flex: 1 0 100%;
        border-radius: var(--bs-border-radius-lg) !important;
    }
    .ft-cta-group.is-ready > .ft-cta-btn {
        width: 100%;
        margin-top: .5rem;
        justify-content: center;
        border-radius: var(--bs-border-radius-lg) !important;
    }
}

/* Timbre numérique — titre/sous-titre centrés sur mobile/tablette (col empilée),
   la liste à puces reste alignée à gauche */
@media (max-width: 991.98px) {
    .ft-digital-hero-text {
        text-align: center;
    }
    .ft-digital-hero-text .ft-hero-checks {
        display: inline-block;
        text-align: left;
    }
}

/* Timbre numérique — lettre décorative flottante à droite du hero */
.ft-hero-v2 .container {
    position: relative;
    z-index: 2;
}

/* Lettre flottante (lg+) : positionnée PAR RAPPORT À LA COLONNE de la carte
   (.ft-digital-card-col est en position:relative), donc toujours calée sur la
   carte — jamais collée au bord du viewport. Débordement à droite pour ne pas
   masquer le prix centré. */
.ft-hero-letter {
    position: absolute;
    z-index: 3;            /* au-dessus de la carte du formulaire */
    top: 26px;             /* ~niveau du prix */
    right: -126px;          /* déborde à droite de la carte, hors du prix */
    width: 248px;
    max-width: 74%;
    transform: rotate(-4deg);
    opacity: 0;
    pointer-events: auto;
    transition: transform .45s cubic-bezier(.2, .7, .3, 1), filter .45s ease;
    will-change: transform, filter;
    animation: ftLetterFade .8s ease .2s forwards;
}

/* Survol : la lettre se redresse, se soulève et prend une ombre plus marquée */
.ft-hero-letter:hover {
    transform: rotate(0deg) translateY(-14px) scale(1.04);
    filter: drop-shadow(0 28px 48px rgba(0, 0, 0, .4));
    z-index: 3;
}

@keyframes ftLetterFade {
    to { opacity: 1; }
}

/* Élément "lettre" composé de SVG (enveloppe + adresse + code) */
.ft-letter {
    position: relative;
    width: 100%;
    line-height: 0;
}

.ft-letter__base {
    display: block;
    width: 100%;
    height: auto;
}

.ft-letter__address,
.ft-letter__stamp {
    position: absolute;
    height: auto;
}

/* Adresse manuscrite : centre-gauche de l'enveloppe */
.ft-letter__address {
    top: 35%;
    left: 26%;
    width: 30%;
}

/* Code du timbre numérique : haut-droite de l'enveloppe */
.ft-letter__stamp {
    top: 13%;
    left: 49%;
    width: 30%;
}

/* Flottement continu subtil de la lettre (effet "papier qui flotte") */
.ft-letter {
    animation: ftLetterFloat 7s ease-in-out 1.2s infinite;
}

@keyframes ftLetterFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-7px) rotate(.6deg); }
}

/* Le code apparaît "à la main", une lettre à la fois, de gauche à droite.
   Chaque palier révèle UNE lettre (bornes calées sur la position des glyphes
   H K 1 4 D 4 P F), avec un court maintien entre chaque. */
.ft-letter__stamp path {
    fill: var(--ft-blue, #00457c);
    stroke: var(--ft-blue, #00457c);
    stroke-width: .35;
    stroke-linejoin: round;
}

.ft-letter__stamp {
    transform-origin: 62% 50%;
    clip-path: inset(0 100% 0 -6%);
    animation:
        ftStampType 2.8s linear 1s forwards,
        ftStampHighlight 1.1s ease 4s 1;
}

/* Une fois écrit, le code est mis en valeur : léger zoom + surlignage jaune */
@keyframes ftStampHighlight {
    0%   { transform: scale(1);    filter: drop-shadow(0 0 0 rgba(245, 200, 0, 0)); }
    40%  { transform: scale(1.13); filter: drop-shadow(0 0 7px rgba(245, 200, 0, .85)); }
    100% { transform: scale(1);    filter: drop-shadow(0 0 0 rgba(245, 200, 0, 0)); }
}

/* "right %" du clip = portion encore masquée. Chaque lettre est révélée sur sa
   largeur (révélation brève) puis maintenue avant la suivante. */
@keyframes ftStampType {
    0%    { clip-path: inset(0 100% 0 -6%); }
    5%    { clip-path: inset(0 83% 0 -6%); }   /* H */
    12.5% { clip-path: inset(0 83% 0 -6%); }
    17.5% { clip-path: inset(0 72% 0 -6%); }   /* K */
    25%   { clip-path: inset(0 72% 0 -6%); }
    30%   { clip-path: inset(0 67% 0 -6%); }   /* 1 */
    37.5% { clip-path: inset(0 67% 0 -6%); }
    42.5% { clip-path: inset(0 54% 0 -6%); }   /* 4 */
    50%   { clip-path: inset(0 54% 0 -6%); }
    55%   { clip-path: inset(0 40% 0 -6%); }   /* D */
    62.5% { clip-path: inset(0 40% 0 -6%); }
    67.5% { clip-path: inset(0 27% 0 -6%); }   /* 4 */
    75%   { clip-path: inset(0 27% 0 -6%); }
    80%   { clip-path: inset(0 7% 0 -6%); }    /* P */
    87.5% { clip-path: inset(0 7% 0 -6%); }
    92.5% { clip-path: inset(0 -6% 0 -6%); }   /* F */
    100%  { clip-path: inset(0 -6% 0 -6%); }
}

@media (prefers-reduced-motion: reduce) {
    .ft-hero-letter,
    .ft-letter {
        animation: none;
    }
    .ft-hero-letter {
        opacity: 1;
    }
    .ft-letter__stamp {
        animation: none;
        clip-path: none;
    }
}

/* ---------- Mobile/tablette (< lg) : enveloppe entière au-dessus de la carte ---------- */
.ft-digital-card-col {
    position: relative;
}

.ft-digital-card-col > .ft-section-card {
    position: relative;
    z-index: 1;            /* la carte reste au-dessus de la lettre flottante (lg+) */
}

/* Aperçu mobile : l'enveloppe complète, dans le flux, au-dessus de la carte */
.ft-hero-letter-behind {
    position: relative;
    width: 66%;
    max-width: 300px;
    margin: 0 auto .25rem;
    transform: rotate(-2deg);
    pointer-events: none;
    opacity: 0;
    animation: ftLetterFade .8s ease .3s forwards;
}

/* Mobile (< lg) : la lettre est dans le flux, sous le formulaire (markup order).
   Pas de réordonnancement : badge → email + bouton → lettre → détails. */

/* Une fois le code écrit (~3,8s), la lettre fait un petit "jiggle" pour attirer l'œil */
.ft-hero-letter-behind .ft-letter {
    transform-origin: 50% 60%;
    animation: ftLetterJiggle .75s ease-in-out 4s 1;
}

@keyframes ftLetterJiggle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    14%      { transform: translateY(-5px) rotate(-3deg); }
    30%      { transform: translateY(0) rotate(2.4deg); }
    46%      { transform: translateY(-3px) rotate(-1.6deg); }
    62%      { transform: translateY(0) rotate(1deg); }
    80%      { transform: translateY(-1px) rotate(-.4deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ft-hero-letter-behind .ft-letter {
        animation: none;
    }
}

/* ---------- Timbre numérique : titre resserré + enveloppe dans la carte ---------- */
.ft-hero-v2.ft-hero-tight {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

.ft-digital-hero-text h1 {
    margin-top: 0;
    margin-bottom: .5rem;
}

/* Enveloppe placée DANS la carte, sous le badge "TIMBRE NUMÉRIQUE" */
.ft-digital-visual {
    position: relative;
    width: 100%;
    max-width: 290px;
    height: 175px;
    margin: 0 auto 1rem;
}

/* Dans la carte : pas de flottement, juste un petit "jiggle" une fois le code écrit */
.ft-digital-visual .ft-letter {
    transform-origin: 50% 55%;
    animation: ftLetterJiggle .75s ease-in-out 4s 1;
}

/* Aperçu paiement : on rogne le bas vide de l'enveloppe pour la recentrer
   verticalement dans la carte (taille inchangée, débord masqué). */
.ft-digital-visual--clip {
    overflow: hidden;
}

.ft-digital-visual--clip .ft-letter__base {
    margin-bottom: -40px;
}

/* ---- Variante sauvegardée (non utilisée) : cadre "timbre" perforé ----
   Aperçu paiement : cadre "timbre" perforé (SVG) avec un fond dégradé doux,
   sur lequel on affiche uniquement le code du timbre numérique.
   Réactivée via l'élément templates/element/digital_stamp_frame.php */
.ft-digital-stamp {
    position: relative;
    width: 100%;
    max-width: 140px;
    margin: 0 auto 1rem;
}

.ft-digital-stamp__frame {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(13, 31, 107, .14));
}

.ft-digital-stamp__letter {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
}

/* On masque le fond "enveloppe" (et l'adresse) : seul le code du timbre
   reste visible, centré, avec son animation de tracé. */
.ft-digital-stamp__letter .ft-letter {
    animation: none;
}

.ft-digital-stamp__letter .ft-letter__base {
    visibility: hidden;
}

.ft-digital-stamp__letter .ft-letter__address {
    display: none;
}

.ft-digital-stamp__letter .ft-letter__stamp {
    top: 46%;
    left: 15%;
    width: 70%;
}

/* Prix en étiquette, à gauche de l'enveloppe (le code reste en haut à droite) */
.ft-digital-visual .ft-digital-price {
    position: absolute;
    z-index: 3;
    top: 6%;
    left: 4%;
    right: auto;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ft-blue-dark, #003158);
    background: var(--ft-yellow, #ffc400);
    padding: .3rem .7rem;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

@media (prefers-reduced-motion: reduce) {
    .ft-digital-visual .ft-letter {
        animation: none;
    }
}

/* Champ email à la même hauteur que le bouton .btn-ft-primary (padding vertical aligné) */
.ft-digital-card .form-control-lg {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
}

/* ---------- Desktop (lg+) : enveloppe flottante à droite de la carte ----------
   La copie desktop (.d-none.d-lg-block) sort du flux et flotte à droite de la
   carte (ancrée sur .ft-section-card, en position:relative). La copie mobile
   (.d-lg-none) reste dans le flux, sous le formulaire. */
@media (min-width: 992px) {
    .ft-digital-visual.d-lg-block {
        position: absolute;
        top: -20px;
        right: -175px;
        left: auto;
        width: 248px;
        max-width: 78%;
        height: auto;
        margin: 0;
        z-index: 3;
        transform: rotate(-4deg);
        transition: transform .45s cubic-bezier(.2, .7, .3, 1), filter .45s ease;
        will-change: transform, filter;
    }
    /* Survol : la lettre se redresse, se soulève et prend une ombre marquée */
    .ft-digital-visual.d-lg-block:hover {
        transform: rotate(0deg) translateY(-14px) scale(1.04);
        filter: drop-shadow(0 28px 48px rgba(0, 0, 0, .4));
    }
    /* Flottement continu (et non le simple "jiggle") sur desktop */
    .ft-digital-visual.d-lg-block .ft-letter {
        transform-origin: 50% 55%;
        animation: ftLetterFloat 7s ease-in-out 1.2s infinite;
    }
}

/* ---------- Page « Prix et frais » (récapitulatif de l'offre) ----------
   Mise en page documentaire : une colonne étroite, des sections courtes, des
   tableaux sobres. Volontairement plus calme que /tarifs.html, qui vend une
   offre : celle-ci sert de référence sur ce qui est réellement débité. */
.ft-fees-doc {
    background: #fff;
    padding: 2.5rem 0 4rem;
}

.ft-fees-meta {
    font-size: .8rem;
    color: var(--ft-muted);
}

.ft-fees-section {
    margin-top: 2.75rem;
}

.ft-fees-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ft-blue);
    margin-bottom: .5rem;
}

.ft-fees-intro {
    color: var(--ft-muted);
    max-width: 66ch;
}

.ft-fees-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius);
    padding: 1.5rem;
}

.ft-fees-card .label {
    font-weight: 700;
    color: var(--ft-text);
    margin-bottom: .25rem;
}

.ft-fees-card .amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ft-blue);
    line-height: 1.25;
    margin-bottom: .5rem;
}

.ft-fees-card .amount .unit {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ft-muted);
}

.ft-fees-card .note {
    font-size: .875rem;
    color: var(--ft-muted);
    margin: 0;
}

/* Tableaux : en-tête gris clair, filets fins, chiffres alignés en colonne. */
.ft-fees-table {
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius);
    overflow: hidden;
}

.ft-fees-table table {
    margin-bottom: 0;
}

.ft-fees-table thead th {
    background: var(--ft-gray-bg);
    color: var(--ft-muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--ft-border);
}

.ft-fees-table tbody th,
.ft-fees-table tbody td {
    padding: .85rem 1rem;
    border-top: 1px solid var(--ft-border);
    vertical-align: middle;
}

.ft-fees-table tbody tr:first-child th,
.ft-fees-table tbody tr:first-child td {
    border-top: 0;
}

.ft-fees-table tbody th {
    font-weight: 600;
    color: var(--ft-text);
}

.ft-fees-table .num {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--ft-text);
    white-space: nowrap;
}

.ft-fees-note {
    font-size: .8rem;
    color: var(--ft-muted);
    margin: .75rem 0 0;
}

/* ===== Icônes (Lucide, figées dans assets/js/icons.js) =====================
   Elles héritent de la couleur du texte via currentColor : rien à régler au
   cas par cas, un conteneur qui change de couleur emmène son icône avec lui.
   Elles remplacent les emojis, dont le rendu variait selon l'OS. */

.ft-ic {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    vertical-align: -.19em;
    flex: none;
}

.ft-ic-lg {
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: -.35rem;
}

/* Grandes icônes décoratives : trait affiné, sinon elles pèsent trop à cette
   taille — un trait de 2 px conçu pour 24 px devient lourd à 32 px. */
.ft-ic-xl {
    width: 2rem;
    height: 2rem;
    vertical-align: middle;
}

/* Iconify emballe les tracés dans un <g stroke-width="2"> : cet attribut de
   présentation s'applique au groupe, une règle posée sur le <svg> parent ne
   le remplace donc pas. On vise les descendants. */
.ft-ic-xl * {
    stroke-width: 1.5;
}

/* Remplace le <div style="font-size:2.5rem"> qui portait l'emoji. */
.ft-ic-block {
    margin-bottom: .5rem;
    color: var(--ft-blue);
}

.ft-service-icon .ft-ic-xl {
    width: 1.6rem;
    height: 1.6rem;
    color: var(--ft-blue);
}

.ft-step-badge .ft-ic {
    width: 1.15rem;
    height: 1.15rem;
}

/* Les étoiles étaient cinq caractères espacés par letter-spacing ; en SVG
   c'est un gap qui fait l'espacement. */
.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    letter-spacing: normal;
}

.stars .ft-ic {
    width: 1em;
    height: 1em;
}

/* Une icône seule dans un bouton ne doit pas coller au libellé. */
.btn .ft-ic {
    margin-left: .35em;
}

.btn .ft-ic:first-child {
    margin-left: 0;
    margin-right: .35em;
}

/* ===== Le timbre choisi, visible tout au long du parcours =================
   Rendu par assets/js/stamp-visual.js. Il apparaît au récapitulatif de
   paiement, sur la confirmation, dans l'historique de commandes et à la
   préparation d'un envoi : le timbre est ce que l'utilisateur achète, il ne
   doit jamais se réduire à une ligne de texte. */

.ft-stamp-chosen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.ft-stamp-chosen__visual {
    width: 100%;
    max-width: 200px;
}

.ft-stamp-chosen__visual svg {
    display: block;
    width: 100%;
    height: auto;
}

.ft-stamp-chosen__caption {
    margin: 0;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ft-blue);
}

/* Vignette compacte dans une liste de timbres sélectionnables. */
.ft-stamp-mini {
    width: 62px;
    flex: none;
    margin-right: .75rem;
}

.ft-stamp-mini svg {
    display: block;
    width: 100%;
    height: auto;
}
