@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");

:root {
    /* COLOURS */
    --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 */
    --ff-family: "Manrope", 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(--font-heading);
    color: var(--color-gray-950);
    overflow-wrap: break-word;
    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 ---------- */
:root {
    --ft-blue: #1a2e8a;
    --ft-blue-dark: #0F172A;
    --ft-blue-light: #e8ecf8;
    --ft-red: #E50006;
    --ft-red-dark: rgb(199, 0, 7);
    --ft-green: #2e9e6b;
    --ft-teal: #0ab3b8;
    --ft-gray-bg: #f4f6fb;
    --ft-border: #dde3f0;
    --ft-text: #1a1a2e;
    --ft-muted: #6b7280;

    --ft-radius: 14px;
    --ft-radius-sm: 8px;
    --ft-shadow: 0 2px 12px rgba(26, 46, 138, .08);
    --ft-shadow-md: 0 4px 24px rgba(26, 46, 138, .13);
}

/* ---------- Base ---------- */
body {
    font-family: 'Marianne', 'Segoe UI', system-ui, sans-serif;
    color: var(--ft-text);
    background: #fff;
}

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: 1px solid #E2E8F0;
    background: #fff;
    box-shadow: none;
}

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

.ft-navbar .navbar-brand img {
    /* width: 38px;
    height: 38px; */
    margin-right: 8px;
}

.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-red);
    color: var(--ft-blue-dark) !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-red-dark);
    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-red);
}

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

/* Timbre card in hero */
.ft-hero-stamp {
    background: var(--ft-red);
    border-radius: var(--ft-radius);
    padding: 2rem 1.75rem;
    text-align: center;
    border: 4px dashed rgba(26, 46, 138, .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: #fef9e0;
    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 #f5d97a;
    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: #fef9e0;
    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-red);
    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: #1a7fc1;
}

.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: 800;
}

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

/* ---------- Commander page ---------- */
.ft-step-badge {
    width: 34px;
    height: 34px;
    background: var(--ft-red);
    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(26, 46, 138, .35); }
    100% { box-shadow: 0 0 0 12px rgba(26, 46, 138, 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(26, 46, 138, .08);
}

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

.ft-selectable .check-icon {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 24px;
    height: 24px;
    background: var(--ft-green, #3fa535);
    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(26, 46, 138, .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-red);
    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-red);
    background: #fffdf0;
}

.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-red);
    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(26, 46, 138, .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-red);
    color: var(--ft-blue-dark);
    font-weight: 700;
    border: none;
    border-radius: var(--ft-radius-sm);
    padding: .75rem 1.75rem;
    transition: background .2s, transform .15s;
}

.btn-ft-primary:hover {
    background: var(--ft-red-dark);
    color: var(--ft-blue-dark);
    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-blue-light);
    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-red);
    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 #cdd5e8;
    z-index: 0;
}

/* ---------- Info alert ---------- */
.ft-info-alert {
    background: #eef2ff;
    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, #0a3d7a);
}

.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: 800;
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.15;
}

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

.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, #3fa535);
}

.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-red, #ffcd00);
    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, #0a3d7a);
}

.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, #f5f7fa);
    border-radius: 999px;
    padding: .25rem .85rem;
    font-weight: 800;
    font-size: .95rem;
    color: var(--ft-blue, #0a3d7a);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.ft-popular-flag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ft-red, #ffcd00);
    color: var(--ft-blue, #0a3d7a);
    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-red, #ffcd00);
}

/* 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, #0a3d7a);
    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, #0a3d7a);
    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, #3fa535);
}

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

/* É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, #0a3d7a);
    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, #f5f7fa);
}

/* Témoignages */
.ft-quote-card {
    background: #fff;
    border-radius: var(--ft-radius, 14px);
    padding: 1.75rem;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 6px 24px rgba(10, 61, 122, .06);
}

.ft-quote-card .stars {
    color: var(--ft-red, #ffcd00);
    letter-spacing: 2px;
    margin-bottom: .75rem;
}

.ft-quote-card p {
    color: #495057;
    font-size: .95rem;
}

.ft-quote-card .who {
    font-weight: 700;
    color: var(--ft-blue, #0a3d7a);
    font-size: .85rem;
}

/* 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, #0a3d7a);
    padding: 1.1rem 1.4rem;
}

.ft-faq .accordion-button:not(.collapsed) {
    background: var(--ft-gray-bg, #f5f7fa);
    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, #0a3d7a);
}

.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, #3fa535);
    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-red, #ffcd00);
    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, #0a3d7a);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

/* ===== Champs : fond gris clair, focus marqué ===== */
#payments .form-control {
    background: var(--ft-gray-bg, #f5f7fa);
    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, #0a3d7a);
    box-shadow: 0 0 0 .2rem rgba(10, 61, 122, .08);
}

#payments .form-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--ft-blue, #0a3d7a);
    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, #0a3d7a);
}

#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-red, #ffcd00);
    border: 1px solid var(--ft-red, #ffcd00);
    color: var(--ft-blue, #0a3d7a);
    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-red, #ffcd00);
    border-color: var(--ft-red, #ffcd00);
    color: var(--ft-blue, #0a3d7a);
    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, #0a3d7a);
}

/* ===== 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-red, #ffcd00) !important;
    box-shadow: 0 1px 3px rgba(10, 61, 122, .08);
}

#payments .ft-avantages-card h5 {
    color: var(--ft-blue, #0a3d7a);
    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-red, #ffcd00);
}

/* ===== 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, #0a3d7a);
    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, #f5f7fa);
    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, #0a3d7a);
    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, #0a3d7a);
}

/* ===== 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, #0a3d7a);
}

/* 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-red, #ffcd00);
    border-color: var(--ft-red, #ffcd00);
    color: var(--ft-blue, #0a3d7a);
    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-red, #ffcd00);
    border-color: var(--ft-red, #ffcd00);
    color: var(--ft-blue, #0a3d7a);
    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, #0a3d7a);
}

.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, #f5f7fa);
    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, #0a3d7a);
}

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

.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, #0a3d7a);
    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, #0a3d7a);
}

.ft-support-card.selected {
    border-color: var(--ft-blue, #0a3d7a);
    box-shadow: inset 0 0 0 1px var(--ft-blue, #0a3d7a);
    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, #0a3d7a);
}

.ft-weight-option.selected,
.ft-qty-option.selected {
    border-color: var(--ft-blue, #0a3d7a);
    box-shadow: inset 0 0 0 1px var(--ft-blue, #0a3d7a);
    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, #0a3d7a);
    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, #3fa535);
    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, #0a3d7a);
}

.ft-weight-option.selected,
.ft-qty-option.selected {
    border-color: var(--ft-blue, #0a3d7a);
    box-shadow: inset 0 0 0 1px var(--ft-blue, #0a3d7a);
    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, #0a3d7a);
    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, #3fa535);
    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, #0a3d7a) !important;
    border-color: var(--ft-blue, #0a3d7a) !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-red, #ffcd00);
    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-red-dark);
    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-red);
    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(26, 46, 138, .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, #2e9e6b) !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='%232e9e6b' 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(26, 46, 138, .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, #2e9e6b) !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='%232e9e6b' 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-red);
    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(26, 46, 138, .2);
}

/* Timbre numérique — encart d'avertissement */
.ft-digital-note {
    background: #fff8e1;
    border-left: 4px solid var(--ft-red);
    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, #1a2e8a);
    stroke: var(--ft-blue, #1a2e8a);
    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, #0f1f6b);
    background: var(--ft-red, #f5c800);
    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;
    }
}


/* ------------------------------------------ */
/* ----------- NEW QR SITE CSS --------------- */
/* ------------------------------------------ */

/* =========================================================
   QR landing page — styles for the ported home view.
   Append to your existing stylesheet (or load after it).
   ========================================================= */

   :root {
    --qr-ink: #0d1b3e;
    --qr-ink-soft: #6b7a99;
    --qr-blue: #2f6bff;
    --qr-blue-600: #1d4ed8;
    --qr-red: #ef2b2b;
    --qr-red-600: #d61f1f;
    --qr-soft: #eef3ff;
    --qr-line: #e3e9f4;
    --qr-green: #22c55e;
}

/* ---------- Section shell ---------- */
.qr-section { padding: 96px 0; background: #fff; }
.qr-section--soft { background: var(--qr-soft); }

.qr-eyebrow {
    display: block;
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--qr-blue);
    margin-bottom: 14px;
}
.qr-eyebrow--left { text-align: left; }

.qr-h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    color: var(--qr-ink);
    text-align: center;
    margin: 0 0 14px;
}
.qr-h2--left { text-align: left; }

.qr-lead {
    text-align: center;
    color: var(--qr-ink-soft);
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: .95rem;
    line-height: 1.7;
}

/* ---------- Buttons ---------- */
.qr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.qr-btn--block { width: 100%; }
.qr-btn--red { background: var(--qr-red); color: #fff; }
.qr-btn--red:hover, .qr-btn--red:focus { background: var(--qr-red-600); color: #fff; }
.qr-btn--white { background: #fff; color: var(--qr-ink); }
.qr-btn--white:hover, .qr-btn--white:focus { background: #f2f5ff; color: var(--qr-ink); }
.qr-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.qr-btn--ghost:hover, .qr-btn--ghost:focus { background: rgba(255, 255, 255, .12); color: #fff; }
.qr-btn:focus-visible { outline: 3px solid rgba(47, 107, 255, .45); outline-offset: 2px; }

/* ---------- Hero ---------- */
.qr-hero { padding: 72px 0 88px; background: #fff; }
.qr-hero__head { text-align: center; max-width: 760px; margin: 0 auto 40px; }

.qr-badge-pill {
    display: inline-block;
    padding: 6px 15px;
    border: 1px solid #cfdcff;
    border-radius: 999px;
    background: #f5f8ff;
    color: var(--qr-blue);
    font-size: .75rem;
    font-weight: 600;
}

.qr-hero h1 {
    margin: 24px 0 16px;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--qr-ink);
}
.qr-hero__sub { color: var(--qr-ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Generator card ---------- */
.qr-generator {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--qr-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px -38px rgba(13, 27, 62, .45);
}
.qr-generator__form { padding: 26px; }
.qr-generator__preview {
    padding: 26px;
    background: var(--qr-soft);
    border-left: 1px solid var(--qr-line);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
}

.qr-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 24px; }
.qr-tab {
    border: 0;
    background: transparent;
    padding: 7px 15px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--qr-ink-soft);
    cursor: pointer;
}
.qr-tab.is-active { background: var(--qr-blue); color: #fff; }

.qr-field { margin-bottom: 22px; }
.qr-field-label {
    display: block;
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--qr-ink-soft);
    margin-bottom: 8px;
}
.qr-field-label--section { margin-bottom: 12px; }

.qr-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--qr-line);
    border-radius: 10px;
    background: #fff;
    font-size: .9rem;
    color: var(--qr-ink);
}
.qr-input::placeholder { color: #9aa8c2; }
.qr-input:focus {
    outline: none;
    border-color: var(--qr-blue);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .15);
}

.qr-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.qr-pill {
    border: 1px solid var(--qr-line);
    background: #fff;
    color: var(--qr-ink-soft);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}
.qr-pill.is-active { background: var(--qr-blue); border-color: var(--qr-blue); color: #fff; }

.qr-frames { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.qr-frame {
    flex: 0 0 78px;
    height: 88px;
    border: 1px solid var(--qr-line);
    border-radius: 10px;
    background: #fff;
    color: var(--qr-ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}
.qr-frame span { font-size: .55rem; font-weight: 700; letter-spacing: .06em; }
.qr-frame.is-active { border: 2px solid var(--qr-blue); }

.qr-preview-box {
    background: #fff;
    border: 1px solid var(--qr-line);
    border-radius: 12px;
    padding: 16px;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
}
.qr-preview-box img { max-width: 100%; height: auto; display: block; }

@media (max-width: 860px) {
    .qr-generator { grid-template-columns: 1fr; }
    .qr-generator__preview { border-left: 0; border-top: 1px solid var(--qr-line); }
}

/* ---------- Steps ---------- */
.qr-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.qr-step {
    background: #fff;
    border: 1px solid var(--qr-line);
    border-radius: 12px;
    padding: 26px;
}
.qr-step__num { font-size: .8rem; font-weight: 700; color: var(--qr-blue); margin-bottom: 10px; }
.qr-step h3 { font-size: 1.15rem; font-weight: 800; color: var(--qr-ink); margin: 0 0 10px; }
.qr-step p { font-size: .85rem; color: var(--qr-ink-soft); line-height: 1.7; margin: 0; }
@media (max-width: 768px) { .qr-steps { grid-template-columns: 1fr; } }

/* ---------- Type grid ---------- */
.qr-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.qr-type {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--qr-line);
    border-radius: 12px;
    background: #fff;
    font-size: .9rem;
    font-weight: 600;
    color: var(--qr-ink);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.qr-type:hover { border-color: var(--qr-blue); color: var(--qr-ink); box-shadow: 0 8px 20px -14px rgba(13, 27, 62, .5); }
.qr-type svg { color: var(--qr-blue); flex: 0 0 auto; }
@media (max-width: 992px) { .qr-types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .qr-types { grid-template-columns: 1fr; } }

/* ---------- Feature split ---------- */
.qr-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.qr-feature__media img { width: 100%; height: auto; border-radius: 14px; display: block; }
.qr-feature .qr-eyebrow { margin-bottom: 10px; }
.qr-feature .qr-h2 { margin-bottom: 28px; }

.qr-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.qr-check { display: flex; gap: 12px; align-items: flex-start; }
.qr-check__icon { color: var(--qr-green); flex: 0 0 auto; margin-top: 2px; }
.qr-check strong { display: block; font-size: .95rem; font-weight: 700; color: var(--qr-ink); }
.qr-check span { display: block; font-size: .82rem; color: var(--qr-ink-soft); margin-top: 2px; }

@media (max-width: 900px) {
    .qr-feature { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- FAQ (Bootstrap accordion overrides) ---------- */
.qr-faq .accordion-item { border: 1px solid var(--qr-line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.qr-faq .accordion-button { font-weight: 700; color: var(--qr-ink); background: #fff; box-shadow: none; }
.qr-faq .accordion-button:not(.collapsed) { background: var(--qr-soft); color: var(--qr-ink); }
.qr-faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(47, 107, 255, .15); }
.qr-faq .accordion-body { color: var(--qr-ink-soft); font-size: .9rem; line-height: 1.7; }

/* ---------- CTA band ---------- */
.qr-cta { background: var(--qr-blue); padding: 80px 0; text-align: center; }
.qr-cta h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 28px;
}
.qr-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Pricing card — append to qr-landing.css
   (relies on the --qr-* variables declared there)
   ========================================================= */

   .qr-price-card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 28px 64px -44px rgba(13, 27, 62, .5);
}

.qr-price-tag {
    display: inline-block;
    background: var(--qr-blue);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .01em;
    padding: 5px 11px;
    border-radius: 6px;
}

.qr-price {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 22px 0 12px;
}
.qr-price__amount {
    font-size: clamp(2.6rem, 6vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--qr-ink);
}
.qr-price__period {
    font-size: .95rem;
    font-weight: 500;
    color: var(--qr-ink-soft);
}

.qr-price__after {
    font-size: .9rem;
    color: var(--qr-ink-soft);
    margin: 0 0 26px;
}

.qr-price-divider {
    border: 0;
    border-top: 1px solid var(--qr-line);
    opacity: 1;
    margin: 28px 0 22px;
}

.qr-price-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 13px;
}
.qr-price-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .85rem;
    line-height: 1.45;
    color: var(--qr-ink);
}
.qr-price-features .qr-check__icon {
    color: var(--qr-green);
    flex: 0 0 auto;
    margin-top: 1px;
}

@media (max-width: 520px) {
    .qr-price-card { padding: 24px; }
}

/* =========================================================
   Contact page — append to qr-landing.css
   (relies on the --qr-* variables declared there)
   ========================================================= */

/* ---------- Hero variant (no generator card below it) ---------- */
.qr-hero--page { padding: 72px 0 56px; }
.qr-hero--page .qr-hero__head { margin-bottom: 0; max-width: 720px; }
.qr-hero--page .qr-hero__sub + .qr-hero__sub { margin-top: 14px; }
.qr-hero--page .qr-hero__sub { line-height: 1.7; }

.qr-badge-pill { display: inline-flex; align-items: center; gap: 7px; }
.qr-badge-pill svg { flex: 0 0 auto; }

/* ---------- Form card ---------- */
.qr-form-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--qr-line);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 24px 60px -44px rgba(13, 27, 62, .45);
}
.qr-form { display: flex; flex-direction: column; }
.qr-form-card .qr-field { margin-bottom: 18px; }
.qr-form-card .qr-btn { margin-top: 8px; }

.qr-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qr-field-row .qr-field { margin-bottom: 18px; }
@media (max-width: 620px) { .qr-field-row { grid-template-columns: 1fr; gap: 0; } }

.qr-textarea { min-height: 140px; resize: vertical; font-family: inherit; }

/* JustValidate states */
.qr-input.just-validate-error-field { border-color: var(--qr-red); }
.qr-input.just-validate-success-field { border-color: var(--qr-green); }
.just-validate-error-label {
    display: block;
    margin-top: 6px;
    font-size: .78rem;
    color: var(--qr-red);
}

/* Submit spinner (replaces Bootstrap's .spinner-border) */
.qr-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: qr-spin .7s linear infinite;
}
@keyframes qr-spin { to { transform: rotate(360deg); } }

/* ---------- Contact methods ---------- */
.qr-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.qr-method {
    background: #fff;
    border: 1px solid var(--qr-line);
    border-radius: 12px;
    padding: 26px;
}
.qr-method__icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--qr-soft);
    color: var(--qr-blue);
    margin-bottom: 16px;
}
.qr-method h3 { font-size: 1.05rem; font-weight: 800; color: var(--qr-ink); margin: 0 0 10px; }
.qr-method p { font-size: .85rem; line-height: 1.7; color: var(--qr-ink-soft); margin: 0; }
.qr-method a { color: var(--qr-blue); font-weight: 600; text-decoration: none; }
.qr-method a:hover { text-decoration: underline; }
@media (max-width: 900px) { .qr-methods { grid-template-columns: 1fr; } }

/* ---------- Long-form prose blocks ---------- */
.qr-prose { max-width: 760px; margin: 0 auto; }
.qr-prose h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--qr-ink);
    letter-spacing: -.015em;
    margin: 0 0 12px;
}
.qr-prose h2 + p { margin-bottom: 0; }
.qr-prose p {
    font-size: .92rem;
    line-height: 1.8;
    color: var(--qr-ink-soft);
    margin: 0 0 40px;
}
.qr-prose p:last-child { margin-bottom: 0; }
.qr-prose a { color: var(--qr-blue); font-weight: 600; text-decoration: none; }
.qr-prose a:hover { text-decoration: underline; }

/* ---------- CTA additions ---------- */
.qr-cta__sub {
    color: rgba(255, 255, 255, .8);
    font-size: .95rem;
    max-width: 560px;
    margin: -14px auto 28px;
}
.qr-cta__note {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin-top: 28px;
    font-size: .8rem;
    color: rgba(255, 255, 255, .75);
}

/* =========================================================
   Auth pages (login / forgot / register) — append to qr-landing.css
   Requires the form rules from qr-contact.css (.qr-spinner,
   .just-validate-* states). Add that file first if you skipped it.
   ========================================================= */

   .qr-auth {
    background: var(--qr-soft);
    padding: 72px 0 96px;
    min-height: 70vh;
    display: flex;
    align-items: center;
}
.qr-auth__inner { width: 100%; max-width: 440px; margin: 0 auto; }

.qr-auth__head { text-align: center; margin-bottom: 28px; }
.qr-auth__head h1 {
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: var(--qr-ink);
    margin: 18px 0 10px;
}
.qr-auth__head p {
    font-size: .9rem;
    color: var(--qr-ink-soft);
    margin: 0;
}

.qr-auth-card {
    background: #fff;
    border: 1px solid var(--qr-line);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 24px 60px -44px rgba(13, 27, 62, .45);
}
.qr-auth-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--qr-ink);
    margin: 0 0 22px;
}
.qr-auth-card .qr-field { margin-bottom: 18px; }

.qr-auth__forgot {
    display: inline-block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--qr-blue);
    text-decoration: none;
    margin: -4px 0 20px;
}
.qr-auth__forgot:hover { text-decoration: underline; color: var(--qr-blue-600); }

/* Flash messages inside the card */
.qr-auth-card .alert,
.qr-form-card .alert {
    border-radius: 10px;
    border: 1px solid var(--qr-line);
    font-size: .85rem;
    padding: 12px 14px;
    margin-bottom: 20px;
}

@media (max-width: 520px) {
    .qr-auth { padding: 48px 0 64px; }
    .qr-auth-card { padding: 24px; }
}

/* =========================================================
   Language switcher (element: language_select.php)
   Change the colours here to match your brand.
   ========================================================= */
.qr-lang {
    --qr-lang-accent: #e11d48;          /* active item + focus ring */
    --qr-lang-accent-soft: #fff1f2;     /* active item background */
    --qr-lang-text: #18181b;
    --qr-lang-muted: #71717a;
    --qr-lang-border: #e4e4e7;
    --qr-lang-hover: #f4f4f5;

    position: relative;
    display: inline-flex;
}

/* ---------- Button ---------- */
.qr-lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px 0 8px;
    border: 1px solid var(--qr-lang-border);
    border-radius: 999px;
    background: #fff;
    color: var(--qr-lang-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.qr-lang__toggle:hover { background: var(--qr-lang-hover); }
.qr-lang__toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, .25);
    border-color: var(--qr-lang-accent);
}
.qr-lang__toggle[aria-expanded="true"] {
    border-color: var(--qr-lang-accent);
    background: #fff;
}

.qr-lang__chevron {
    color: var(--qr-lang-muted);
    transition: transform .2s;
}
.qr-lang__toggle[aria-expanded="true"] .qr-lang__chevron { transform: rotate(180deg); }

/* ---------- Flags ---------- */
.qr-lang__flag {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
.qr-lang__toggle .qr-lang__flag { width: 24px; height: 24px; }

/* ---------- Menu ---------- */
.qr-lang__menu.dropdown-menu {
    list-style: none;
    min-width: 220px;
    margin-top: 8px !important;
    padding: 6px;
    border: 1px solid var(--qr-lang-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(9, 9, 11, .12), 0 2px 6px rgba(9, 9, 11, .06);
}
.qr-lang__menu.dropdown-menu.show { animation: qr-lang-in .15s ease-out; }

@keyframes qr-lang-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.qr-lang__heading {
    padding: 8px 10px 6px;
    color: var(--qr-lang-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.qr-lang__item.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--qr-lang-text);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}
.qr-lang__item.dropdown-item:hover,
.qr-lang__item.dropdown-item:focus {
    background: var(--qr-lang-hover);
    color: var(--qr-lang-text);
}
.qr-lang__item.dropdown-item:active { background: var(--qr-lang-border); color: var(--qr-lang-text); }

.qr-lang__name { flex: 1 1 auto; }

.qr-lang__badge {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--qr-lang-hover);
    color: var(--qr-lang-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
}

/* Active language */
.qr-lang__item.dropdown-item.is-active {
    background: var(--qr-lang-accent-soft);
    color: var(--qr-lang-accent);
    font-weight: 600;
}
.qr-lang__item.is-active .qr-lang__badge {
    background: #fff;
    color: var(--qr-lang-accent);
}
.qr-lang__check { flex: 0 0 auto; color: var(--qr-lang-accent); }

/* ---------- Mobile (inside the collapsed navbar) ---------- */
@media (max-width: 991.98px) {
    .qr-lang { width: 100%; }
    .qr-lang__toggle { width: 100%; justify-content: flex-start; height: 44px; border-radius: 12px; }
    .qr-lang__chevron { margin-left: auto; }
    .qr-lang__menu.dropdown-menu { width: 100%; position: static !important; transform: none !important; box-shadow: none; }
}

/* =========================================================
   Checkout pages (details + payment) — append to the end of
   your stylesheet. Relies on the --qr-* variables and the
   .qr-hero / .qr-generator / .qr-field / .qr-btn components.
   ========================================================= */

/* ---------- Page shell ---------- */
.qr-hero--checkout {
    background: var(--qr-soft);
    padding: 48px 0 88px;
}
.qr-hero--checkout .qr-hero__head { margin-bottom: 32px; }
.qr-hero--checkout h1 {
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    margin: 22px 0 12px;
}
.qr-hero--checkout .qr-hero__sub {
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}
.qr-hero--checkout .alert {
    max-width: 1000px;
    margin: 0 auto 20px;
    border-radius: 10px;
}

/* ---------- Progress: Design -> Your details -> Payment ---------- */
.qr-progress {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--qr-line);
    border-radius: 999px;
}
.qr-progress li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 5px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--qr-ink-soft);
}
.qr-progress__num {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--qr-soft);
    font-size: .7rem;
    font-weight: 700;
}
.qr-progress .is-done .qr-progress__num { background: var(--qr-green); color: #fff; }
.qr-progress .is-current { background: var(--qr-blue); color: #fff; }
.qr-progress .is-current .qr-progress__num { background: #fff; color: var(--qr-blue); }

/* ---------- Two-column card (reuses .qr-generator) ---------- */
.qr-generator--checkout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.qr-generator--checkout .qr-generator__form { padding: 32px; }
.qr-generator--checkout .qr-generator__preview {
    justify-content: flex-start;
    gap: 16px;
    padding: 32px 28px;
}
.qr-generator--checkout .qr-preview-box {
    width: 100%;
    max-width: 230px;
    margin: 0 auto;
    padding: 14px;
    aspect-ratio: auto;
}
.qr-generator--checkout .qr-preview-box img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
}
.qr-generator--checkout .qr-field { margin-bottom: 18px; }
.qr-generator--checkout .qr-input { min-height: 46px; }

/* Expiry + CVV stay side by side on phones too */
.qr-field-row--keep { grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Form details ---------- */
.qr-help {
    margin: 6px 0 0;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--qr-ink-soft);
}

/* CakePHP server-side errors (details page) */
.qr-input.form-error { border-color: var(--qr-red); }
.qr-checkout-form .error-message {
    margin-top: 6px;
    font-size: .78rem;
    color: var(--qr-red);
}

/* Inputs with an icon on the left. The icon is anchored to the top of the
   wrapper so it stays put when a validation message appears underneath. */
.qr-input-wrap { position: relative; }
.qr-input-wrap > svg {
    position: absolute;
    left: 14px;
    top: 23px;
    transform: translateY(-50%);
    color: #9aa8c2;
    pointer-events: none;
    transition: color .15s ease;
}
.qr-input-wrap:focus-within > svg { color: var(--qr-blue); }
.qr-input-wrap > .qr-input { padding-left: 42px; }

/* Cardholder name in capitals, like on the card */
#payment-form #name { text-transform: uppercase; }
#payment-form #name::placeholder { text-transform: none; }

/* Terms checkbox (cgv element) */
.qr-consent {
    margin: 4px 0 22px;
    font-size: .82rem;
    line-height: 1.55;
    color: var(--qr-ink-soft);
}
.qr-consent a { color: var(--qr-blue); font-weight: 600; }
.qr-consent .form-check-input:checked {
    background-color: var(--qr-blue);
    border-color: var(--qr-blue);
}
.qr-consent .form-check-input:focus {
    border-color: var(--qr-blue);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .15);
}

/* ---------- Amount header ---------- */
.qr-pay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--qr-line);
}
.qr-pay-head .qr-field-label { margin-bottom: 6px; }
.qr-pay-head__amount {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--qr-ink);
    font-variant-numeric: tabular-nums;
}
.qr-pay-head img { flex: 0 0 auto; height: auto; }

/* ---------- Buttons ---------- */
.qr-btn--lg { padding: 15px 24px; font-size: .95rem; }
.qr-checkout-form .qr-btn:disabled { opacity: .85; cursor: progress; }

.qr-statement {
    margin: 14px 0 0;
    text-align: center;
    font-size: .75rem;
    line-height: 1.5;
    color: var(--qr-ink-soft);
}

/* ---------- Order summary ---------- */
.qr-summary-note {
    margin: -4px 0 0;
    text-align: center;
    font-size: .75rem;
    color: var(--qr-ink-soft);
}
.qr-summary {
    margin: 0;
    padding: 2px 16px;
    background: #fff;
    border: 1px solid var(--qr-line);
    border-radius: 12px;
}
.qr-summary > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--qr-line);
    font-size: .82rem;
}
.qr-summary > div:last-child { border-bottom: 0; }
.qr-summary dt { flex: 0 0 auto; font-weight: 600; color: var(--qr-ink-soft); }
.qr-summary dd {
    margin: 0;
    min-width: 0;
    text-align: right;
    font-weight: 700;
    color: var(--qr-ink);
    overflow-wrap: anywhere;
}

.qr-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(13, 27, 62, .18);
    border-radius: 4px;
    vertical-align: middle;
}
.qr-swatch + .qr-swatch { margin-left: 4px; }

.qr-next {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--qr-line);
    border-radius: 12px;
}
.qr-next strong {
    display: block;
    margin-bottom: 6px;
    font-size: .88rem;
    color: var(--qr-ink);
}
.qr-next p {
    margin: 0;
    font-size: .8rem;
    line-height: 1.6;
    color: var(--qr-ink-soft);
}

.qr-checkout-link {
    align-self: center;
    font-size: .82rem;
    font-weight: 600;
    color: var(--qr-blue);
    text-decoration: none;
}
.qr-checkout-link:hover { color: var(--qr-blue-600); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .qr-generator--checkout { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .qr-hero--checkout { padding: 28px 0 56px; }
    .qr-hero--checkout .qr-hero__head { margin-bottom: 24px; }

    .qr-generator--checkout .qr-generator__form,
    .qr-generator--checkout .qr-generator__preview { padding: 22px 18px; }

    .qr-pay-head__amount { font-size: 1.6rem; }
    .qr-pay-head img { width: 90px; }

    /* Only the current step keeps its label on small phones */
    .qr-progress li:not(.is-current) { padding-right: 5px; }
    .qr-progress li:not(.is-current) .qr-progress__label { display: none; }
}

.qr-help--center { text-align: center; margin-top: 16px; }
.qr-auth-card .qr-form + .qr-help { margin-bottom: 0; }

/* ---------- Error pages ---------- */
.qr-error__code {
    margin: 0;
    font-size: clamp(4.5rem, 14vw, 7rem);
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1;
    color: var(--qr-blue);
}
.qr-error .qr-auth__head h1 { margin-top: 12px; }
.qr-error__text { line-height: 1.7; overflow-wrap: anywhere; }
.qr-error__text strong { color: var(--qr-ink); }
.qr-error__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.qr-btn--bordered { border-color: var(--qr-line); }