/* ================================================================
   SIRAPRO — Design system mobile-first (Elegant refresh)
   Bleu : #2563EB → #00B2FF · Navy : #0D1B3D · Orange : #FF7A00 → #FFC107
   Typography : Playfair Display (headings) + DM Sans (body)
   ================================================================ */

/* ── Google Fonts ─────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..700;1,9..40,400..700&family=Playfair+Display:ital,wght@0,500..800;1,500..800&display=swap");

/* ── CSS Variables (PRESERVED) ───────────────────────────────── */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff4ff;
    --accent: #ff7a00;
    --accent-dark: #e06d00;
    --accent-light: #fff7f0;
    --navy: #0d1b3d;
    --text: #1a2540;
    --text-soft: #5c6b7a;
    --bg: #f5f7fa;
    --white: #ffffff;
    --border: #dfe4ec;
    --danger: #d64545;
    --danger-light: #fdf0f0;
    --success: #1f9d55;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 4px 20px rgba(13, 27, 61, 0.08);
    --shadow-lg: 0 10px 40px rgba(13, 27, 61, 0.14);
    --shadow-hover: 0 8px 30px rgba(13, 27, 61, 0.16);
}

/* ── Reset ───────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family:
        "DM Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 18px;
}

/* ── Headings (Playfair Display) ─────────────────────────────── */
h1,
h2,
h3,
h4,
.display-heading {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ── Keyframes ────────────────────────────────────────────────── */
@keyframes pricePulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes drawLine {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* ── Scroll Reveal System (via IntersectionObserver) ──────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition:
        opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition:
        opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.88);
    transition:
        opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays */
.reveal-delay-1 {
    transition-delay: 0.1s;
}
.reveal-delay-2 {
    transition-delay: 0.2s;
}
.reveal-delay-3 {
    transition-delay: 0.3s;
}
.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ── Blobs Overlay (contient les débordements) ────────────────── */
.blobs-overlay {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* ── Decorative Background Blobs ──────────────────────────────── */
.decorative-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
    opacity: 0.55;
}

.blob-primary {
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.18) 0%,
        transparent 70%
    );
    width: 280px;
    height: 280px;
}

.blob-accent {
    background: radial-gradient(
        circle,
        rgba(255, 122, 0, 0.15) 0%,
        transparent 70%
    );
    width: 240px;
    height: 240px;
}

.blob-navy {
    background: radial-gradient(
        circle,
        rgba(13, 27, 61, 0.12) 0%,
        transparent 70%
    );
    width: 300px;
    height: 300px;
}

.blob-top-right {
    top: -60px;
    right: -80px;
    animation: float 8s ease-in-out infinite;
}

.blob-bottom-left {
    bottom: -40px;
    left: -60px;
    animation: float 7s ease-in-out 1s infinite;
}

.blob-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 9s ease-in-out 2s infinite;
}

/* ── Header : Glassmorphism sticky nav ────────────────────────── */
.site-header {
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(223, 228, 236, 0.6);
    position: sticky;
    top: 0;
    z-index: 60;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 24px rgba(13, 27, 61, 0.08);
}

@supports not (backdrop-filter: blur(18px)) {
    .site-header {
        background: rgba(255, 255, 255, 0.97);
    }
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.logo img {
    display: block;
}

.logo span {
    color: var(--primary);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 18px;
}

.header-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    background: rgba(13, 27, 61, 0.04);
    padding: 5px 10px;
    border-radius: 100px;
    text-decoration: none;
    color: var(--text);
}

.header-note .flags {
    font-size: 18px;
    line-height: 1;
}

a.header-note:hover {
    background: rgba(13, 27, 61, 0.08);
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family:
        "DM Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.3px;
}

.btn:active {
    transform: scale(0.96);
}

.btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.06);
}

.btn-accent {
    background: linear-gradient(135deg, #ff7a00, #e06d00);
    color: #fff;
    font-weight: 800;
}

.btn-accent:hover {
    filter: brightness(1.06);
}

.btn-outline {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    border-color: var(--primary-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--text-soft);
    font-weight: 600;
}

.btn-ghost:hover {
    color: var(--navy);
    background: rgba(13, 27, 61, 0.04);
}

.btn-sm {
    padding: 10px 16px;
    font-size: 14px;
    width: auto;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Bouton action secondaire (download, share) */
.btn-download {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    font-weight: 700;
}

.btn-download:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    background: #1ebe57;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Shimmer CTA button */
.btn-shimmer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 800;
    z-index: 1;
}

.btn-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 25%,
        transparent 50%
    );
    background-size: 200% 100%;
    animation: shimmer 2.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

.btn-shimmer:hover {
    filter: brightness(1.08);
}

/* ── Hero + Services wrapper (fond uniforme) ─────────────────── */
.hero-services-wrap {
    background: linear-gradient(
        170deg,
        var(--white) 0%,
        var(--primary-light) 50%,
        #dbeafe 100%
    );
    padding-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.hero-services-wrap::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.08) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

.hero-services-wrap::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(
        circle,
        rgba(255, 122, 0, 0.08) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

/* ── Hero (landing) ───────────────────────────────────────────── */
.hero {
    padding: 44px 0 12px;
    text-align: center;
    position: relative;
    background: transparent;
}

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

.hero h1 {
    font-size: clamp(28px, 7vw, 42px);
    font-weight: 800;
    line-height: 1.18;
    color: var(--navy);
    letter-spacing: -0.8px;
    margin-bottom: 14px;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.hero h1 em {
    color: var(--primary);
    font-style: normal;
    background: linear-gradient(135deg, #2563eb 0%, #00b2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero stat compact (compteur animé) ────────────────────────── */
.hero__stat-compact {
    display: inline-flex;
    align-items: flex-end;
    gap: 6px;
    font-size: 16px;
    color: var(--text-soft);
    font-weight: 500;
    font-family: "DM Sans", sans-serif;
    margin-bottom: 8px;
}

.hero__stat-compact .num {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 800;
    color: var(--accent);
    font-size: 22px;
}

.hero .subtitle {
    font-size: 17px;
    color: var(--text-soft);
    margin-bottom: 8px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ff7a00;
    background: linear-gradient(
        135deg,
        rgba(255, 122, 0, 0.1),
        rgba(255, 122, 0, 0.05)
    );
    border: 1px solid rgba(255, 122, 0, 0.15);
    padding: 7px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero__eyebrow i {
    font-size: 10px;
    animation: pulseSoft 2s ease-in-out infinite;
}

@keyframes pulseSoft {
    0%,
    100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.hero-price {
    display: inline-block;
    background: linear-gradient(135deg, #ff7a00, #ffc107);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 9px 22px;
    border-radius: 100px;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(255, 122, 0, 0.35);
    animation: pricePulse 2.5s ease-in-out infinite;
}

.hero-price strong {
    color: #fff;
    font-weight: 800;
}

.hero-price strong {
    color: var(--white);
}

/* ── Choice Cards ─────────────────────────────────────────────── */
.choice-cards {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

@media (min-width: 560px) {
    .choice-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.choice-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.choice-card:hover,
.choice-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.choice-card:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.choice-card .icon {
    font-size: 40px;
    display: block;
    margin-bottom: 14px;
    width: 58px;
    height: 58px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choice-card .title {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy);
    display: block;
    margin-bottom: 4px;
    font-family: "Playfair Display", Georgia, serif;
}

.choice-card .desc {
    font-size: 14px;
    color: var(--text-soft);
    display: block;
    margin-bottom: 14px;
}

.choice-card .price {
    display: inline-block;
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 14px;
    border-radius: 100px;
    align-self: flex-start;
}

/* ── Payment Badges ───────────────────────────────────────────── */
.payment-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 600;
}

.payment-badges .badge {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.payment-badges .badge img {
    height: 38px;
    width: auto;
    border-radius: 8px;
}

.badge-wave {
    /* keep for backward compat, overridden by img */
}
.badge-om {
    /* keep for backward compat, overridden by img */
}
.badge::before {
    content: "✓";
    font-size: 12px;
}
/* Badges with images — hide the checkmark */
.payment-badges .badge:has(img)::before {
    display: none;
}

/* ── Sections landing ─────────────────────────────────────────── */
.section {
    padding: 40px 0;
    position: relative;
}

.section-alt {
    /* fond uniforme avec le body */
}

.section h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    margin-bottom: 26px;
    letter-spacing: -0.4px;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ── Elegant Section Dividers ─────────────────────────────────── */
.section-divider {
    position: relative;
    text-align: center;
    margin: 48px 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-divider::before {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--border) 30%,
        var(--border) 70%,
        transparent 100%
    );
}

.section-divider span {
    display: inline-block;
    padding: 0 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    white-space: nowrap;
    font-family: "DM Sans", sans-serif;
}

.section-divider.dark::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 30%,
        rgba(255, 255, 255, 0.15) 70%,
        transparent 100%
    );
}

.section-divider.dark span {
    color: rgba(255, 255, 255, 0.8);
}

/* ── Elegant Divider (template) ────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 28px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.divider__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* ── Service Cards (template design) ──────────────────────────── */
.services {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow:
        0 1px 3px rgba(13, 27, 61, 0.04),
        0 1px 2px rgba(13, 27, 61, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 122, 0, 0.03),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover,
.service-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 122, 0, 0.2);
}

.service-card:hover::before,
.service-card:active::before {
    opacity: 1;
}

.service-card--featured {
    border-color: rgba(255, 122, 0, 0.25);
    box-shadow:
        var(--shadow),
        0 0 0 1px rgba(255, 122, 0, 0.08);
}

.service-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #00b2ff);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.service-card__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.service-card--cv .service-card__icon {
    background: linear-gradient(
        135deg,
        rgba(13, 27, 61, 0.08),
        rgba(13, 27, 61, 0.03)
    );
    color: var(--navy);
}

.service-card--lm .service-card__icon {
    background: linear-gradient(
        135deg,
        rgba(255, 122, 0, 0.12),
        rgba(255, 122, 0, 0.04)
    );
    color: var(--accent-dark);
}

.service-card__title-group {
    flex: 1;
}

.service-card__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
    line-height: 1.2;
}

.service-card__subtitle {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.4;
}

.service-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-soft);
    background: rgba(13, 27, 61, 0.03);
    padding: 6px 11px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.feature-tag i {
    font-size: 9px;
    color: var(--primary);
}

.service-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.service-card__price {
    display: flex;
    flex-direction: column;
}

.service-card__price-amount {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.service-card__price-note {
    font-size: 11px;
    color: var(--text-soft);
    margin-top: 3px;
}

.service-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: "DM Sans", sans-serif;
    text-decoration: none;
}

.service-card--cv .service-card__cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 27, 61, 0.25);
}

.service-card--cv .service-card__cta:hover {
    background: #2563eb;
    box-shadow: 0 6px 20px rgba(13, 27, 61, 0.3);
    transform: translateY(-1px);
}

.service-card--lm .service-card__cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 8px 30px rgba(255, 122, 0, 0.25);
}

.service-card--lm .service-card__cta:hover {
    box-shadow: 0 10px 35px rgba(255, 122, 0, 0.35);
    transform: translateY(-1px);
}

.service-card__cta i {
    font-size: 12px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card__cta:hover i {
    transform: translateX(3px);
}

/* Shimmer effect on CTA hover */
.service-card__cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card__cta:hover::after {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out infinite;
}

/* ── Steps (Connected vertical) ───────────────────────────────── */
.steps {
    display: grid;
    gap: 16px;
}

@media (min-width: 560px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    text-align: center;
    padding: 18px 14px;
    position: relative;
}

.step .num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.step h3 {
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
}

.step p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.5;
}

/* ── Timeline Steps (vertical connected) ──────────────────────── */
.timeline-steps {
    position: relative;
    padding-left: 44px;
}

.timeline-steps::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        var(--primary) 0%,
        var(--border) 30%,
        var(--border) 70%,
        var(--accent) 100%
    );
    border-radius: 1px;
}

.timeline-step {
    position: relative;
    margin-bottom: 32px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step .step-dot {
    position: absolute;
    left: -44px;
    top: 2px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 0 0 6px var(--bg);
    z-index: 2;
}

.timeline-step:nth-child(even) .step-dot {
    border-color: var(--accent);
    color: var(--accent);
}

.timeline-step .step-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.timeline-step .step-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
    font-family: "Playfair Display", Georgia, serif;
}

.timeline-step .step-content p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.5;
}

/* ── Dark Trust Bar ───────────────────────────────────────────── */
.trust-bar {
    background: var(--navy);
    color: #fff;
    padding: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.trust-bar::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(
        circle,
        rgba(255, 122, 0, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

.trust-bar::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

.trust-bar .container {
    position: relative;
    z-index: 1;
}

.trust-bar h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    font-family: "Playfair Display", Georgia, serif;
    color: #fff;
}

.trust-bar p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 400px) {
    .trust-stats {
        grid-template-columns: 1fr 1fr;
    }
}

.trust-stat {
    padding: 16px 10px;
}

.trust-stat .stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    display: block;
    letter-spacing: -1px;
    font-family: "Playfair Display", Georgia, serif;
}

.trust-stat .stat-lbl {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
    font-weight: 700;
}

/* ── Payment Methods Display Cards ────────────────────────────── */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.payment-method-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 14px;
    text-align: center;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.payment-method-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.payment-method-card .pm-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.payment-method-card .pm-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    font-family: "DM Sans", sans-serif;
}

.payment-method-card .pm-desc {
    font-size: 11px;
    color: var(--text-soft);
    margin-top: 2px;
}

.payment-method-card.popular {
    border-color: var(--accent);
    position: relative;
    overflow: hidden;
}

.payment-method-card.popular::before {
    content: "Populaire";
    position: absolute;
    top: 8px;
    right: -32px;
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 36px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Testimonials (template design) ────────────────────────────── */
.testimonials {
    padding: 0 20px 44px;
}

.testimonials-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 560px) {
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow:
        0 1px 3px rgba(13, 27, 61, 0.04),
        0 1px 2px rgba(13, 27, 61, 0.06);
    position: relative;
}

.testimonial-card__quote {
    font-size: 30px;
    color: rgba(255, 122, 0, 0.25);
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1;
    margin-bottom: 8px;
}

.testimonial-card__text {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.65;
    margin-bottom: 18px;
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg);
}

.testimonial-card__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.testimonial-card__role {
    font-size: 11.5px;
    color: var(--text-soft);
    margin-top: 1px;
    position: absolute;
}

.testimonial-card__stars {
    margin-left: auto;
    display: flex;
    gap: 2px;
    color: var(--accent);
    font-size: 11px;
}

/* ── FAQ (accordion with chevron animation) ───────────────────── */
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0;
    margin-bottom: 10px;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.faq-item[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.faq-item summary {
    font-weight: 700;
    cursor: pointer;
    color: var(--navy);
    font-size: 15px;
    padding: 16px 40px 16px 18px;
    list-style: none;
    position: relative;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    display: none;
    content: "";
}

.faq-item summary::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transition: transform 0.25s ease;
    opacity: 0.6;
}

.faq-item[open] summary::after {
    transform: translateY(-25%) rotate(45deg);
    opacity: 1;
}

.faq-item p {
    padding: 0 18px 18px;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ── Final CTA Section with gradient ──────────────────────────── */
.cta-final {
    background: linear-gradient(145deg, var(--primary) 0%, var(--navy) 100%);
    color: #fff;
    padding: 56px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

.cta-final::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(
        circle,
        rgba(255, 122, 0, 0.12) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

.cta-final .container {
    position: relative;
    z-index: 1;
}

.cta-final h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    color: #fff;
}

.cta-final p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-final .btn {
    max-width: 360px;
    margin: 0 auto;
}

.cta-final .btn-accent {
    background: linear-gradient(135deg, #ff7a00, #ffb300);
    color: var(--navy);
    box-shadow: 0 6px 24px rgba(255, 122, 0, 0.4);
}

.cta-final .btn-accent:hover {
    box-shadow: 0 8px 30px rgba(255, 122, 0, 0.55);
    filter: brightness(1.08);
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    padding: 28px 0 40px;
    text-align: center;
    font-size: 13px;
    color: var(--text-soft);
}

.site-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ── Toast ────────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: var(--navy);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    z-index: 100;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 8px 30px rgba(13, 27, 61, 0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: var(--danger);
}

/* ================================================================
   BELOW: All existing functional styles for wizard, forms,
   admin panels, etc. — PRESERVED IN FULL
   ================================================================ */

/* ── Wizard ───────────────────────────────────────────────────── */
.wizard-wrap {
    padding: 22px 0 110px;
}

.progress-track {
    height: 8px;
    background: var(--border);
    border-radius: 100px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #00b2ff);
    border-radius: 100px;
    transition: width 0.4s ease;
}

.progress-label {
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 600;
    margin-bottom: 20px;
}

.step-panel {
    animation: slideIn 0.3s ease;
}

.step-panel h2 {
    font-size: 23px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: -0.4px;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.step-panel .step-hint {
    font-size: 15px;
    color: var(--text-soft);
    margin-bottom: 24px;
}

/* ── Toggle switch (checkbox stylisé) ─────────────────────────── */
.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 26px;
    background: var(--border);
    border-radius: 13px;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.toggle-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toggle-label input:checked + .toggle-switch {
    background: var(--primary);
}

.toggle-label input:checked + .toggle-switch::after {
    transform: translateX(18px);
}

/* ── Champs de formulaire ─────────────────────────────────────── */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.field label .optional {
    font-weight: 500;
    color: var(--text-soft);
    font-size: 12px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 15px 15px;
    font-size: 16px;
    font-family:
        "DM Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #b0bcc4;
    opacity: 1;
}

.field select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235c6b78' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: #fcfefe;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field .error-msg {
    display: none;
    color: var(--danger);
    font-size: 13px;
    margin-top: 6px;
    font-weight: 600;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
    border-color: var(--danger);
    background: var(--danger-light);
}

.field.has-error input:focus,
.field.has-error textarea:focus,
.field.has-error select:focus {
    box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12);
}

.field.has-error .error-msg {
    display: block;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Photo ────────────────────────────────────────────────────── */
.photo-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 3px dashed var(--border);
    border-radius: var(--radius);
    padding: 18px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.photo-upload:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.photo-upload .preview {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.photo-upload .preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload .txt {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.4;
}

.photo-upload .txt strong {
    color: var(--primary);
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

/* Spinner dans le bloc photo pendant le chargement */
.photo-upload .photo-spinner {
    width: 40px;
    height: 40px;
    margin: 0;
    border-width: 3px;
}

.photo-upload.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ── Écran de recadrage photo (fullscreen) ────────────────────── */
#cropScreen {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #0d0d0d;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#cropScreen canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.crop-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    z-index: 10;
    pointer-events: none;
}

.crop-topbar > * {
    pointer-events: auto;
}

.crop-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.crop-title {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    margin-left: 12px;
}

.crop-bottombar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 18px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 8px));
    display: flex;
    justify-content: center;
    z-index: 10;
}

.crop-bottombar .btn {
    width: auto;
    min-width: 200px;
    border-radius: 100px;
}

/* ── Prévisualisation après recadrage ────────────────────────── */
#cropPreview {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.crop-preview-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 28px 24px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.3s ease;
    z-index: 1;
}

.crop-preview-box h3 {
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 16px;
}

.crop-preview-img {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 0 auto 14px;
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
}

.crop-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crop-hint {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.crop-actions {
    display: flex;
    gap: 10px;
}

.crop-actions .btn-ghost {
    flex-shrink: 0;
}

.crop-actions .btn-primary {
    flex: 1;
}

/* Supprimer les anciens styles crop */
.crop-dialog,
.crop-viewport,
.crop-frame,
.crop-controls,
.crop-backdrop {
    /* overridden by #cropScreen — keep for backward compat */
}

/* ── Cartes répétables (expériences, formations) ──────────────── */
.item-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    position: relative;
    transition: box-shadow 0.15s ease;
}

.item-card:hover {
    box-shadow: var(--shadow-lg);
}

.item-card .item-title {
    font-weight: 800;
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 2px;
    padding-right: 60px;
}

.item-card .item-sub {
    font-size: 13px;
    color: var(--text-soft);
}

.item-card .item-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 6px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.icon-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.icon-btn.danger:hover {
    border-color: var(--danger);
    background: var(--danger-light);
}

.add-item-btn {
    width: 100%;
    padding: 16px;
    border: 2px dashed var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-bottom: 10px;
    transition:
        background 0.2s ease,
        border-style 0.2s ease;
}

.add-item-btn:hover {
    background: #d5ecec;
    border-style: solid;
}

/* ── Tags (compétences, langues) ──────────────────────────────── */
.tag-input-wrap {
    display: flex;
    gap: 8px;
}

.tag-input-wrap input {
    flex: 1;
}

.tag-input-wrap button {
    flex-shrink: 0;
    width: auto;
    padding: 0 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 14px;
    padding: 9px 10px 9px 16px;
    border-radius: 100px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    animation: fadeInUp 0.25s ease;
}

.tag button {
    border: none;
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.tag button:hover {
    background: rgba(214, 69, 69, 0.25);
    color: var(--danger);
}

/* ── Bouton IA ────────────────────────────────────────────────── */
.ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(120deg, #5b3df5, #8b5cf6);
    color: var(--white);
    border: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 100px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 14px rgba(91, 61, 245, 0.35);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.ai-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(91, 61, 245, 0.45);
}

.ai-btn:active {
    transform: scale(0.97);
}

.ai-btn:disabled {
    opacity: 0.6;
    filter: none;
}

.ai-note {
    font-size: 12px;
    color: var(--text-soft);
    margin-top: 6px;
}

/* ── Barre de navigation du wizard (fixe en bas) ───────────────── */
.wizard-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 12px 18px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 8px));
    display: flex;
    z-index: 50;
    box-shadow: 0 -4px 20px rgba(13, 27, 61, 0.06);
}

.wizard-nav .btn-back {
    width: auto;
    flex-shrink: 0;
    padding: 16px 20px;
}

.wizard-nav .btn-next {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
}

.wizard-nav-inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    width: 100%;
}

/* ── Aperçu ────────────────────────────────────────────────────── */
.apercu-wrap {
    padding: 16px 0 130px;
    overflow-x: hidden;
}

.apercu-frame-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}

.apercu-frame-box:hover {
    box-shadow: var(--shadow-hover);
}

.apercu-frame-box iframe {
    width: 100%;
    height: calc(100dvh - 270px);
    min-height: 320px;
    max-height: 900px;
    border: none;
    display: block;
    background: #eef2f3;
}

.template-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 16px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.template-chips::-webkit-scrollbar {
    display: none;
}

/* Indicateur « scroll moi » : gradient de fondu à droite */
.template-chips-wrap {
    position: relative;
}

.template-chips-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 12px;
    width: 40px;
    background: linear-gradient(90deg, transparent, var(--bg));
    pointer-events: none;
    border-radius: 0 4px 4px 0;
}

@media (max-width: 559px) {
    .template-chips-wrap::after {
        display: block;
    }
}

.chip {
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: 100px;
    border: 2px solid var(--border);
    background: var(--white);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-soft);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.chip.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    box-shadow: 0 2px 10px rgba(13, 27, 61, 0.2);
}

/* ── Barre de paiement fixe (aperçu) ───────────────────────────── */
.pay-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 12px 18px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 8px));
    z-index: 50;
    box-shadow: 0 -6px 30px rgba(13, 27, 61, 0.12);
}

.pay-bar-inner {
    max-width: 640px;
    margin: 0 auto;
}

.pay-bar .price-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 600;
}

.pay-bar .price-line strong {
    font-size: 18px;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.pay-bar .price-line .original {
    text-decoration: line-through;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    margin-right: 6px;
}

.secure-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-soft);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ── Logos de paiement stylisés ────────────────────────────────── */
.pay-logo {
    display: inline-block;
    height: 25px;
    width: auto;
    vertical-align: middle;
    border: 0.3px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    padding: 1px;
}

.pay-brand {
    white-space: nowrap;
}

/* ── Pages statut / merci ──────────────────────────────────────── */
.status-page {
    min-height: 80vh;
    min-height: 80dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0 60px;
}

.status-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px 28px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    animation: fadeInUp 0.4s ease;
}

.status-card .big-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    animation: fadeInUp 0.4s ease 0.1s both;
}

.status-card h1 {
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: -0.4px;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    animation: fadeInUp 0.4s ease 0.15s both;
}

.status-card p {
    color: var(--text-soft);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
    animation: fadeInUp 0.4s ease 0.2s both;
}

.status-card .btn {
    margin-bottom: 10px;
    animation: fadeInUp 0.4s ease 0.25s both;
}

/* Hiérarchie des boutons sur merci : principal > secondaire > tertiaire */
.status-card .btn-accent {
    font-size: 18px;
    padding: 18px 24px;
}

.status-card .btn-outline {
    margin-top: 4px;
}

/* Séparateur entre boutons principal et cross-sell */
.btn-divider {
    width: 40px;
    height: 1px;
    background: var(--border);
    margin: 16px auto;
    display: block;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-right-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 0.8s linear infinite;
}

/* ── Admin ─────────────────────────────────────────────────────── */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 18px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    transition: box-shadow 0.15s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow);
}

.stat-card .val {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
    font-family: "Playfair Display", Georgia, serif;
}

.stat-card .lbl {
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 2px;
}

.stat-card.highlight {
    border-color: var(--accent);
    background: var(--accent-light);
}

.stat-card.highlight .val {
    color: var(--accent-dark);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: 14px;
    box-shadow: var(--shadow);
}

th,
td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--navy);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #fafbfb;
}

tr:nth-child(even) td {
    background: #f8fafa;
}

tr:nth-child(even):hover td {
    background: #f0f4f4;
}

.pill {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.pill.paid {
    background: #e2f5ea;
    color: var(--success);
}

.pill.draft {
    background: #f4f5f7;
    color: var(--text-soft);
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

/* ── Liens d'administration ────────────────────────────────────── */
.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border-radius: 100px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.15s ease;
}

.admin-link:hover {
    background: var(--primary-light);
}

/* ── Utilitaires ───────────────────────────────────────────────── */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.hidden {
    display: none !important;
}

/* ── Responsive extra ──────────────────────────────────────────── */
@media (max-width: 380px) {
    .choice-card {
        padding: 20px 16px;
    }
    .status-card {
        padding: 30px 20px;
    }
    .field-row {
        grid-template-columns: 1fr;
    }
    .trust-stats {
        grid-template-columns: 1fr;
    }
    .payment-methods-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 560px) {
    .timeline-steps {
        padding-left: 52px;
    }
    .timeline-steps::before {
        left: 23px;
    }
    .timeline-step .step-dot {
        left: -52px;
        width: 48px;
        height: 48px;
        font-size: 17px;
    }
}
