/* Panneau d'indépendance des recommandations */
.trust-panel {
    position: relative;
    display: inline-flex;
    gap: 0.85rem;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.35rem;
    margin: 1rem auto 0;
    width: fit-content;
    max-width: min(720px, calc(100% - 32px));
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(213, 223, 218, 0.22);
    box-shadow: 0 8px 20px rgba(15, 47, 34, 0.10);
    backdrop-filter: blur(2px) saturate(120%);
    -webkit-backdrop-filter: blur(2px) saturate(120%);
    color: var(--text-muted);
}

.trust-panel__icon {
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

/* Mise à jour premium: plein largeur paiement/email */
.premium-email-step,
.premium-payment,
#postPaymentForm {
    background: radial-gradient(circle at 30% 30%, rgba(99, 210, 161, 0.35), transparent 62%),
        linear-gradient(145deg, rgba(30, 147, 112, 0.2), rgba(24, 52, 82, 0.12));
    color: #1f8f70;
    box-shadow: 0 12px 22px -12px rgba(15, 47, 34, 0.45);
}

.trust-panel__content {
    display: grid;
    gap: 0.25rem;
}

.trust-panel__title {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1b3d35;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.trust-panel__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--primary);
}

#aucunstrong {
    font-size: 120%;
    color: rgb(185, 14, 14);
}

html[data-theme="dark"] .trust-panel {
    background: rgba(10, 18, 26, 0.06);
    border-color: rgba(99, 210, 161, 0.18);
    box-shadow: 0 12px 32px rgba(5, 12, 20, 0.28);
    color: rgba(225, 240, 234, 0.88);
    backdrop-filter: blur(2px) saturate(120%);
    -webkit-backdrop-filter: blur(2px) saturate(120%);
}

html[data-theme="dark"] .trust-panel__icon {
    background: radial-gradient(circle at 28% 28%, rgba(99, 210, 161, 0.36), transparent 64%),
        linear-gradient(145deg, rgba(30, 147, 112, 0.35), rgba(24, 42, 68, 0.35));
    color: #9ef0d0;
    box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .trust-panel__title {
    color: rgba(188, 248, 226, 0.82);
}

.trust-panel--compact {
    margin-top: 0.85rem;
    padding: 0.8rem 1.1rem;
    border-radius: 18px;
}

.trust-panel--inline {
    margin: 0.9rem auto 0;
    max-width: min(720px, 94vw);
}

@media (max-width: 720px) {
    .trust-panel {
        flex-direction: row;
        align-items: center;
        padding: 0.8rem 1rem;
        gap: 0.6rem;
        width: min(100%, calc(100% - 24px));
        max-width: 560px;
        margin: 0.9rem auto 0;
        border-radius: 16px;
    }

    .trust-panel__text {
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .trust-panel__title {
        font-size: 0.74rem;
    }

    .trust-panel__icon {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.2rem;
        border-radius: 12px;
    }
}

@media (max-width: 420px) {
    .trust-panel {
        padding: 0.80rem 0.80rem;
        width: min(100%, calc(150% - 1px));
    }

    .trust-panel__text {
        font-size: 0.8rem;
    }
}

@media (min-width: 1180px) {
    .site-nav {
        position: fixed;
        inset: auto 16px 18px;
        width: calc(100% - 32px);
        padding: 10px 14px;
        gap: 8px;
        border-radius: 24px;
        background: var(--glass-bg-strong);
        border: 1px solid var(--glass-border);
        box-shadow: var(--glass-shadow);
        flex-wrap: nowrap;
        justify-content: space-between;
        backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
        -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
        margin: 0 auto;
    }

    .site-nav {
        position: sticky;
        top: 12px;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: auto;
        z-index: 1000;
    }
}

@media (max-width: 1179px) {
    .theme-toggle {
        position: static;
        margin-bottom: 0;
        right: auto;
        top: auto;
    }
}

/* Bouton thème double icône */
.theme-toggle-btn {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    gap: 0.65em;
    font-size: 1.1rem;
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.55), rgba(240, 246, 255, 0.28));
    backdrop-filter: blur(8px) saturate(160%);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    box-shadow: 0 8px 24px rgba(15, 47, 34, 0.18), 0 2px 4px rgba(15, 47, 34, 0.12) inset;
    overflow: hidden;
    transition: box-shadow .45s cubic-bezier(.2, .7, .3, 1), border-color .45s, background .45s;
    min-width: 92px;
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 18%, rgba(99, 210, 161, 0.35), transparent 60%),
        radial-gradient(circle at 82% 78%, rgba(232, 93, 4, 0.25), transparent 68%);
    opacity: 0.55;
    pointer-events: none;
    mix-blend-mode: plus-lighter;
}

.theme-toggle-btn::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: conic-gradient(from 0deg, rgba(99, 210, 161, 0.0), rgba(99, 210, 161, 0.15) 25%, rgba(255, 255, 255, 0.0) 40%, rgba(232, 93, 4, 0.18) 55%, rgba(255, 255, 255, 0.0) 70%, rgba(99, 210, 161, 0.15) 85%, rgba(255, 255, 255, 0));
    animation: themeHalo 8s linear infinite;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.6;
}

@keyframes themeHalo {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.theme-toggle-btn .theme-icon-sun,
.theme-toggle-btn .theme-icon-moon {
    position: relative;
    font-size: 1.2em;
    line-height: 1;
    transition: transform .55s cubic-bezier(.2, .7, .3, 1), opacity .45s, filter .45s;
    display: inline-flex;
    width: 1.4em;
    height: 1.4em;
    align-items: center;
    justify-content: center;
}

html[data-theme="dark"] .theme-toggle-btn {
    background: linear-gradient(140deg, rgba(20, 24, 28, 0.65), rgba(38, 46, 52, 0.55));
    border-color: rgba(99, 210, 161, 0.35);
    box-shadow: 0 10px 32px rgba(8, 15, 23, 0.55), 0 0 0 1px rgba(99, 210, 161, 0.25) inset;
}

html[data-theme="dark"] .theme-toggle-btn::before {
    background: radial-gradient(circle at 20% 24%, rgba(99, 210, 161, 0.30), transparent 60%),
        radial-gradient(circle at 82% 78%, rgba(232, 93, 4, 0.25), transparent 70%);
    opacity: 0.45;
}

.theme-toggle-btn[data-theme="light-active"] .theme-icon-sun {
    filter: drop-shadow(0 0 6px rgba(255, 210, 96, 0.55));
    transform: scale(1.15);
}

.theme-toggle-btn[data-theme="light-active"] .theme-icon-moon {
    opacity: 0.35;
    transform: scale(0.85);
}

html[data-theme="dark"] .theme-toggle-btn[data-theme="light-active"] .theme-icon-sun {
    opacity: 0.3;
    transform: scale(0.85);
    filter: none;
}

html[data-theme="dark"] .theme-toggle-btn[data-theme="dark-active"] .theme-icon-moon {
    filter: drop-shadow(0 0 6px rgba(99, 210, 161, 0.65));
    transform: scale(1.18);
}

html[data-theme="dark"] .theme-toggle-btn[data-theme="dark-active"] .theme-icon-sun {
    opacity: 0.35;
    transform: scale(0.82);
}

.theme-toggle-btn:hover {
    box-shadow: 0 14px 40px rgba(15, 47, 34, 0.28), 0 0 0 3px rgba(99, 210, 161, 0.35);
}

html[data-theme="dark"] .theme-toggle-btn:hover {
    box-shadow: 0 16px 46px rgba(8, 15, 23, 0.65), 0 0 0 3px rgba(99, 210, 161, 0.45);
}

.theme-toggle-indicator {
    position: absolute;
    bottom: 6px;
    left: 5px;
    /* par défaut sous le soleil (mode clair) */
    width: calc(50% - 10px);
    height: 5px;
    background: linear-gradient(90deg, rgba(99, 210, 161, 0.6), rgba(232, 93, 4, 0.6));
    border-radius: 999px;
    opacity: 0.9;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
    transform: translateY(12px);
    animation: indicatorSlide 0.6s cubic-bezier(.2, .7, .3, 1) forwards;
    transition: left .35s cubic-bezier(.2, .7, .3, 1), width .35s;
}

/* Glissement de la barre sous le mode sélectionné */
.theme-toggle-btn[data-theme="dark-active"] .theme-toggle-indicator {
    left: calc(50% + 5px);
}


@keyframes indicatorSlide {
    0% {
        transform: translateY(16px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.site-nav__link {
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 18px;
    transition: background var(--transition-fast), color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-nav__link::before {
    content: attr(data-icon);
    font-size: 1rem;
    line-height: 1;
}

.site-nav__link:not([data-icon="💎"]):hover {
    color: var(--text);
    background: var(--bg-muted);
}

.site-nav__link:not([data-icon="💎"]).site-nav__link--active {
    color: var(--text);
    background: var(--primary-soft);
    box-shadow: var(--shadow-sm);
}

.site-nav__link[data-icon="💎"] {
    background: linear-gradient(135deg, rgba(248, 212, 120, 0.98) 0%, rgba(241, 180, 88, 0.96) 60%, rgba(255, 243, 210, 0.98) 100%) !important;
    color: #1a1000 !important;
    font-family: 'Playfair Display', 'Inter', serif;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 18px 36px rgba(232, 180, 72, 0.42);
    padding: 8px 22px;
    border: 1px solid rgba(245, 184, 103, 0.9);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    text-shadow: 0 2px 8px rgba(255, 236, 180, 0.18);
    position: relative;
    z-index: 1;
}

.site-nav__link[data-icon="💎"]:hover,
.site-nav__link[data-icon="💎"]:focus-visible,
.site-nav__link[data-icon="💎"]:active,
.site-nav__link[data-icon="💎"].site-nav__link--active {
    background: linear-gradient(135deg, rgba(248, 212, 120, 0.98) 0%, rgba(241, 180, 88, 0.96) 60%, rgba(255, 243, 210, 0.98) 100%) !important;
    color: #1a1000 !important;
    box-shadow: 0 18px 36px rgba(232, 180, 72, 0.42), 0 0 0 3px rgba(252, 225, 164, 0.22);
    border-color: rgba(245, 184, 103, 0.9);
}

.saved-idea-card-mobile .saved-idea-image {
    display: block;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.saved-idea-card-mobile .saved-idea-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.saved-idea-card-mobile .idea-image-attr {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0 12px;
}

.saved-idea-card-mobile .saved-idea-actions {
    gap: 8px;
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
}

.saved-idea-card-mobile .btn {
    width: 100%;
    font-size: 1em;
    padding: 11px 0;
    border-radius: 10px;
    justify-content: center;
    min-height: 56px;
}

.saved-idea-card-mobile .saved-idea-actions .btn {
    min-height: 56px;
}

.saved-idea-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
    align-items: stretch;
}

.saved-idea-actions .btn {
    width: 100%;
}

#summary:empty {
    display: none !important;
}

.empty-animated {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    gap: 18px;
    animation: fadeIn 1.2s cubic-bezier(.4, 0, .2, 1);
}

.empty-animated .empty-text {
    font-size: 1.08rem;
    color: var(--text-muted);
    text-align: center;
}

.giftbox-anim {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
}

.giftbox-box {
    width: 64px;
    height: 36px;
    background: linear-gradient(135deg, #f7c873 60%, #f9e7b2 100%);
    border-radius: 0 0 12px 12px;
    position: absolute;
    bottom: 0;
    left: 0;
    box-shadow: 0 4px 16px 0 rgba(30, 143, 110, 0.10);
}

.giftbox-lid {
    width: 64px;
    height: 20px;
    background: linear-gradient(135deg, #f7c873 60%, #f9e7b2 100%);
    border-radius: 8px 8px 8px 8px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    animation: giftLid 2.2s infinite cubic-bezier(.4, 0, .2, 1);
    transform-origin: bottom center;
}

.giftbox-ribbon {
    width: 12px;
    height: 36px;
    background: #e85d04;
    border-radius: 6px;
    position: absolute;
    left: 26px;
    bottom: 0;
    z-index: 3;
}

@keyframes giftLid {

    0%,
    90%,
    100% {
        transform: rotate(-6deg);
    }

    10% {
        transform: rotate(-18deg);
    }

    20% {
        transform: rotate(-6deg);
    }

    30% {
        transform: rotate(-12deg);
    }

    40% {
        transform: rotate(-6deg);
    }

    50% {
        transform: rotate(-24deg);
    }

    60% {
        transform: rotate(-6deg);
    }

    70% {
        transform: rotate(-18deg);
    }

    80% {
        transform: rotate(-6deg);
    }
}

#summary:empty {
    display: none !important;
}

/* Masquer les pubs tant qu'elles ne sont pas chargées */
.ad-container {
    display: none !important;
}

/* Astérisque obligatoire */
.required-asterisk {
    color: #b42318;
    font-weight: bold;
    margin-left: 2px;
    font-size: 1.1em;
}

/* Espace entre résultats et formulaire */
#summary {
    margin-top: 0;
}

/* Améliorations mobile globales */
@media (max-width: 600px) {
    body {
        font-size: 1.04em;
        padding: 0;
    }

    .page {
        padding: 16px 4vw 118px;
        gap: 18px;
    }

    .site-header h1 {
        font-size: 1.35rem;
        margin-bottom: 8px;
    }

    .hero-text h1 {
        font-size: 1.3rem;
    }

    .lead {
        font-size: 1em;
        margin-top: 6px;
    }

    .form-card {
        padding: 10px 4vw 18px;
        gap: 12px;
        box-shadow: none;
    }

    .field label {
        font-size: 1em;
        margin-bottom: 2px;
    }

    .field input,
    .field select,
    .field textarea {
        font-size: 1em;
        padding: 11px 10px;
        border-radius: 10px;
    }

    .dropdown-btn {
        font-size: 1em;
        padding: 11px 10px;
        border-radius: 10px;
    }

    .dropdown-list {
        font-size: 1em;
        border-radius: 10px;
        max-height: 180px;
    }

    .dropdown-list label {
        padding: 7px 10px;
        font-size: 1em;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .actions .btn {
        min-height: 60px;
    }

    .actions .request-counter {
        width: 100%;
        min-height: 60px;
    }

    .btn {
        width: 100%;
        font-size: 1em;
        padding: 11px 0;
        border-radius: 10px;
        justify-content: center;
    }

    .idea-selector {
        padding: 20px 16px;
        gap: 16px;
    }

    .idea-card {
        padding: 14px 16px;
        border-radius: 16px;
        gap: 14px;
    }

    .idea-detail-header h2 {
        font-size: 1.2rem;
        margin: 12px 0 4px;
    }
}

/* Dropdown multisélection moderne */
.dropdown-multiselect {
    position: relative;
    margin-bottom: 12px;
}

.dropdown-multiselect label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.dropdown-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.dropdown-btn:after {
    content: "▼";
    font-size: 1.1em;
    color: var(--text-muted);
    margin-left: 8px;
}

.dropdown-btn[aria-expanded="true"] {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.dropdown-list {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    z-index: 1000;
    padding: 10px 0;
    animation: fadeIn 0.25s;
    max-height: 320px;
    overflow-y: auto;
}

/* Mode "portal" (liste détachée et appendue au <body>) pour éviter toute collision/rognage */
.dropdown-list.dropdown-portal-active {
    position: fixed !important;
    /* top/left/width sont définis en inline par JS pour s’aligner parfaitement au bouton */
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
    will-change: top, left, width;
}

/* Assurer superposition correcte au-dessus des champs suivants */
.form-card,
.premium-form {
    position: relative;
}

.dropdown-multiselect {
    position: relative;
    z-index: 10;
}

.dropdown-list {
    z-index: 4000;
}

/* Correction collision: créer un contexte stacking pour les champs suivants */
.field,
.actions,
.saved-idea-actions {
    position: relative;
    z-index: 1;
}

/* Sur mobile, booster encore le z-index si clavier virtuel masque partiellement */
@media (max-width: 600px) {
    .dropdown-list {
        z-index: 5000;
    }
}

.dropdown-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.18s;
}

.dropdown-list label:hover {
    background: var(--primary-soft);
}

.dropdown-list input[type="checkbox"] {
    accent-color: var(--primary);
    width: 22px;
    height: 22px;
    margin-right: 6px;
}

@media (max-width: 600px) {
    .dropdown-list {
        max-height: 220px;
        font-size: 0.98em;
    }

    .dropdown-btn {
        font-size: 0.98em;
        padding: 12px 12px;
    }
}

.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 12px auto 0;
    padding: 8px 16px;
    position: relative;
    background: var(--glass-bg-strong);
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    position: sticky;
    top: 12px;
    z-index: 950;
    transform: translateY(0);
    transition: transform 0.38s cubic-bezier(.4, 0, .2, 1), opacity 0.3s ease, box-shadow 0.3s ease;
}

.site-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid var(--glass-inner-border);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    pointer-events: none;
}

.site-nav--collapsed {
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 601px) {
    .site-nav--collapsed {
        transform: translateY(calc(-100% - 24px));
    }
}

@media (max-width: 600px) {
    .site-nav--collapsed {
        transform: translateY(calc(100% + 32px));
    }
}

.site-nav-toggle {
    position: fixed;
    z-index: 1050;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: var(--text-invert);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(15, 47, 34, 0.24);
    transition: transform 0.32s cubic-bezier(.4, 0, .2, 1), box-shadow 0.32s ease, background 0.32s ease, color 0.32s ease;
}

.site-nav-toggle::before {
    content: "\2212";
    font-size: 1.45rem;
    line-height: 1;
    transform: translateY(-1px);
}

.site-nav-toggle:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 20px 38px rgba(15, 47, 34, 0.28);
}

.site-nav-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 143, 110, 0.35);
}

.site-nav-toggle[aria-expanded="false"] {
    background: rgba(30, 143, 110, 0.12);
    color: var(--primary);
    box-shadow: 0 12px 26px rgba(15, 47, 34, 0.16);
}

.site-nav-toggle[aria-expanded="false"]::before {
    content: "\2630";
    font-size: 1.35rem;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .site-nav-toggle {
        bottom: calc(18px + 72px);
        right: 26px;
    }
}

@media (min-width: 601px) {
    .site-nav-toggle {
        top: 15px;
        right: 84px;
    }
}

html[data-theme="dark"] .site-nav-toggle {
    background: rgba(99, 210, 161, 0.9);
    color: #06281b;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.48);
}

html[data-theme="dark"] .site-nav-toggle[aria-expanded="false"] {
    background: rgba(99, 210, 161, 0.16);
    color: rgba(205, 241, 227, 0.96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.site-footer {
    width: 100%;
    margin-top: auto;
    position: relative;
    background: var(--glass-bg-strong);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -14px 34px rgba(15, 47, 34, 0.12);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0;
    border-top: 1px solid var(--glass-inner-border);
    pointer-events: none;
}

html[data-theme="dark"] .site-footer {
    box-shadow: 0 -14px 32px rgba(0, 0, 0, 0.48);
}

.site-footer__content {
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px clamp(16px, 4vw, 32px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.site-footer__links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.site-footer__links a:hover {
    color: var(--text);
}

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

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

@media (max-width: 600px) {
    .site-footer__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Bannière compacte défilante (générateur/premium) */
.scroll-banner {
    width: min(1040px, 100%);
    margin: 8px auto 14px;
    padding: 6px 0;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(213, 223, 218, 0.22);
    box-shadow: 0 8px 22px rgba(15, 47, 34, 0.12);
    backdrop-filter: blur(2px) saturate(120%);
    -webkit-backdrop-filter: blur(2px) saturate(120%);
}

.scroll-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.28);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    pointer-events: none;
}

.scroll-banner .scroll-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.scroll-banner .scroll-track {
    display: flex;
    gap: 22px;
    align-items: center;
    padding-inline: 16px;
    width: fit-content;
    animation: scrollMarquee 15s linear infinite;
}

.scroll-banner .scroll-track .clone-set {
    display: contents;
}

.scroll-banner .scroll-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    .scroll-banner {
        margin: 4px 0 10px;
        width: 100vw;
        border-radius: 0;
        padding: 6px 0;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .scroll-banner .scroll-inner {
        mask: none;
        -webkit-mask: none;
    }

    .scroll-banner .scroll-track {
        animation: scrollMarqueeMobile 15s linear infinite;
        gap: 18px;
        padding-inline: 22px;
    }

    .scroll-banner .scroll-item {
        font-size: 0.82rem;
        padding: 5px 10px;
    }
}

@media (max-width: 420px) {
    .scroll-banner .scroll-item {
        font-size: 0.78rem;
        padding: 4px 9px;
    }
}

@keyframes scrollMarqueeMobile {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-banner .scroll-track {
        animation: none;
    }
}

html[data-theme="dark"] .scroll-banner {
    background: rgba(10, 18, 26, 0.08);
    border: 1px solid rgba(99, 210, 161, 0.2);
    box-shadow: 0 12px 28px rgba(5, 12, 20, 0.28);
    backdrop-filter: blur(2px) saturate(120%);
    -webkit-backdrop-filter: blur(2px) saturate(120%);
}

html[data-theme="dark"] .scroll-banner::before {
    border-color: rgba(99, 210, 161, 0.26);
}

/* Visually hidden utilitaire */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    /* added line */
    border: 0;
}

/* Loader animé central */
.loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 18px;
    min-height: 220px;
}

#summary.loader-full {
    padding: 0;
    overflow: hidden;
}

#summary.loader-full .loader-container {
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: inherit;
    align-items: stretch;
}

.loader-card {
    position: relative;
    width: min(420px, 100%);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.32));
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(18px);
    padding: 32px 28px;
    box-shadow: 0 28px 60px rgba(15, 47, 34, 0.16);
    overflow: hidden;
}

#summary.loader-full .loader-card {
    width: 100%;
    margin: 0;
    min-height: 100%;
    border-radius: inherit;
}

@media (max-width: 768px) {
    #summary.loader-full {
        margin-left: -22px;
        margin-right: -22px;
        width: calc(100% + 44px);
        border-radius: 0;
    }

    #summary.loader-full .loader-card {
        border-radius: 0;
    }
}

.loader-card::before,
.loader-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(30, 143, 110, 0.42), transparent 72%);
    filter: blur(0.5px);
    opacity: 0.6;
    animation: loaderGlow 6s ease-in-out infinite;
}

.loader-card::before {
    width: 160px;
    height: 160px;
    top: -60px;
    right: -40px;
    animation-delay: -1.8s;
}

.loader-card::after {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: -60px;
}

.loader-gift {
    position: relative;
    width: 84px;
    height: 82px;
    margin: 0 auto 18px;
}

.loader-gift-box,
.loader-gift-lid {
    position: absolute;
    left: 0;
    width: 84px;
    border-radius: 16px;
}

.loader-gift-box {
    bottom: 0;
    height: 54px;
    background: linear-gradient(145deg, #f7c873 45%, #f9e7b2 100%);
    box-shadow: 0 18px 34px rgba(232, 93, 4, 0.24);
}

.loader-gift-lid {
    top: 0;
    height: 28px;
    background: linear-gradient(135deg, #ffa94d 20%, #ff7a45 100%);
    transform-origin: center bottom;
    animation: loaderGiftLid 2.6s cubic-bezier(.42, 0, .25, 1) infinite;
}

.loader-gift-ribbon {
    position: absolute;
    top: 0;
    left: 40px;
    width: 8px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(180deg, #e85d04, #f48c06);
    box-shadow: 0 0 12px rgba(232, 93, 4, 0.35);
}

.loader-gift-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.loader-gift-stars span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #fef9c3;
    opacity: 0;
    animation: loaderSparkle 2.4s ease-in-out infinite;
}

.loader-gift-stars span:nth-child(1) {
    top: -12px;
    left: 12px;
    animation-delay: 0s;
}

.loader-gift-stars span:nth-child(2) {
    top: -18px;
    right: 20px;
    animation-delay: .6s;
}

.loader-gift-stars span:nth-child(3) {
    bottom: 4px;
    right: -6px;
    animation-delay: 1.2s;
}

.loader-title {
    text-align: center;
    font-size: 1.28rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.loader-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.loader-progress {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.loader-progress-bar {
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(120deg, rgba(30, 143, 110, 0.95), rgba(30, 143, 110, 0.55));
    animation: loaderProgress 2.35s cubic-bezier(.45, 0, .25, 1) infinite;
}

@keyframes loaderProgress {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(-10%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes loaderGiftLid {

    0%,
    20%,
    100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(-16deg) translateY(-2px);
    }

    14% {
        transform: rotate(6deg);
    }

    18% {
        transform: rotate(-6deg);
    }
}

@keyframes loaderSparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.6) translateY(0);
    }

    40% {
        opacity: 1;
        transform: scale(1) translateY(-6px);
    }

    70% {
        opacity: 0;
        transform: scale(0.4) translateY(-12px);
    }
}

@keyframes loaderGlow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.12);
    }
}

html[data-theme="dark"] .loader-card {
    background: linear-gradient(145deg, rgba(18, 26, 24, 0.92), rgba(18, 26, 24, 0.72));
    border: 1px solid rgba(99, 210, 161, 0.18);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .loader-card::before,
html[data-theme="dark"] .loader-card::after {
    background: radial-gradient(circle at center, rgba(99, 210, 161, 0.32), transparent 72%);
}

html[data-theme="dark"] .loader-gift-box {
    background: linear-gradient(145deg, rgba(99, 210, 161, 0.85) 45%, rgba(137, 231, 187, 0.85) 100%);
    box-shadow: 0 18px 34px rgba(9, 28, 20, 0.35);
}

html[data-theme="dark"] .loader-gift-lid {
    background: linear-gradient(135deg, rgba(137, 231, 187, 0.95) 20%, rgba(99, 210, 161, 0.95) 100%);
}

html[data-theme="dark"] .loader-gift-ribbon {
    background: linear-gradient(180deg, #f48c06, #ffb347);
    box-shadow: 0 0 14px rgba(244, 140, 6, 0.38);
}

html[data-theme="dark"] .loader-gift-stars span {
    background: rgba(255, 255, 255, 0.75);
}

html[data-theme="dark"] .loader-progress {
    background: rgba(62, 87, 79, 0.55);
}

html[data-theme="dark"] .loader-progress-bar {
    background: linear-gradient(120deg, rgba(99, 210, 161, 0.95), rgba(137, 231, 187, 0.55));
}

/* Animations modernes et satisfaisantes */
.fade-in {
    animation: fadeIn 0.7s cubic-bezier(.4, 0, .2, 1);
    will-change: opacity, transform;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.98);
    }

    60% {
        opacity: 1;
        transform: translateY(-4px) scale(1.03);
    }

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

@media (max-width: 768px) {
    .fade-in {
        animation: fadeInMobile 0.6s cubic-bezier(.4, 0, .2, 1);
    }
}

@keyframes fadeInMobile {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pop {
    animation: pop 0.38s cubic-bezier(.4, 0, .2, 1);
}

@keyframes pop {
    0% {
        transform: scale(0.92);
        opacity: 0.7;
    }

    60% {
        transform: scale(1.08);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Pubs Google AdSense - centralisé */
.ad-banner,
.ad-square-generation {
    margin: 18px 0 12px 0;
    text-align: center;
    animation: fadeIn 0.7s cubic-bezier(.4, 0, .2, 1);
    transition: box-shadow 0.22s, transform 0.18s;
    box-shadow: 0 2px 16px 0 rgba(30, 143, 110, 0.07);
    border-radius: 14px;
    background: var(--bg-soft);
}

.ad-banner-top {
    margin-bottom: 18px;
}

.ad-banner-bottom {
    margin-top: 18px;
}

.ad-square-generation {
    margin: 18px auto 12px auto;
    max-width: 350px;
}

.ad-hide-until-loaded {
    display: none !important;
}

@media (max-width: 600px) {

    .ad-banner,
    .ad-square-generation {
        margin: 10px 0;
    }

    .ad-banner-top,
    .ad-banner-bottom {
        margin: 10px 0;
    }
}

* {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

body::before {
    background:
        radial-gradient(circle at 12% 18%, rgba(247, 200, 115, 0.35) 0, rgba(247, 200, 115, 0) 42%),
        radial-gradient(circle at 82% 16%, rgba(99, 210, 161, 0.32) 0, rgba(99, 210, 161, 0) 55%),
        radial-gradient(circle at 28% 82%, rgba(76, 201, 240, 0.28) 0, rgba(76, 201, 240, 0) 62%),
        radial-gradient(circle at 88% 78%, rgba(157, 78, 221, 0.22) 0, rgba(157, 78, 221, 0) 58%);
    opacity: 0.7;
    filter: saturate(108%);
}

body::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Crect x='20' y='26' width='20' height='20' rx='4' fill='%23f7c873'/%3E%3Crect x='20' y='26' width='20' height='8' rx='4' fill='%23f15bb5'/%3E%3Crect x='146' y='42' width='18' height='18' rx='3' fill='%234cc9f0'/%3E%3Crect x='146' y='42' width='18' height='7' rx='3' fill='%239d4edd'/%3E%3Crect x='88' y='160' width='18' height='18' rx='3' fill='%23ffd166'/%3E%3Crect x='88' y='160' width='18' height='6' rx='3' fill='%23ff7a7a'/%3E%3Crect x='186' y='164' width='4' height='20' rx='2' transform='rotate(28 188 174)' fill='%23f28482'/%3E%3Crect x='38' y='190' width='4' height='20' rx='2' transform='rotate(-28 40 200)' fill='%2363d2a1'/%3E%3Ccircle cx='120' cy='62' r='4' fill='%23f15bb5'/%3E%3Ccircle cx='54' cy='132' r='4' fill='%234cc9f0'/%3E%3Ccircle cx='210' cy='104' r='4' fill='%23ffd166'/%3E%3Crect x='196' y='32' width='3' height='18' rx='1.5' transform='rotate(46 197.5 41)' fill='%23f7c873'/%3E%3Crect x='28' y='80' width='3' height='18' rx='1.5' transform='rotate(-42 29.5 89)' fill='%239d4edd'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 320px 320px;
    opacity: 0.18;
    animation: confettiDrift 48s linear infinite;
}

html[data-theme="dark"] body::before {
    opacity: 0.55;
    filter: saturate(120%) brightness(0.75);
}

html[data-theme="dark"] body::after {
    opacity: 0.12;
}

@media (max-width: 900px) {
    body::after {
        background-size: 240px 240px;
        opacity: 0.16;
    }
}

@keyframes confettiDrift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 320px 360px;
    }
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px 64px;
    gap: 32px;
}

.site-header {
    max-width: 900px;
    text-align: center;
}

.site-header h1 {
    font-size: 1.75rem;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.site-header h2 {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 10px 0 0;
}

.site-header--home {
    max-width: 1120px;
    width: 100%;
    text-align: left;
    margin: 0 auto;
}

/* Présentation futuriste (index) */
.landing-main {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem) clamp(4rem, 7vw, 6rem);
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 6rem);
}

.landing-hero {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4.5rem);
    border-radius: 28px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(111, 63, 214, 0.08) 55%, rgba(14, 165, 233, 0.05) 100%);
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.25), transparent 55%), radial-gradient(circle at 80% 15%, rgba(255, 214, 102, 0.2), transparent 58%);
    opacity: 0.9;
    pointer-events: none;
}

.landing-hero__grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(2.5rem, 6vw, 4rem);
    align-items: stretch;
}

.landing-hero__copy {
    flex: 1 1 360px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: clamp(1.2rem, 2.6vw, 2rem);
}

.landing-hero__badge {
    align-self: flex-start;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--text);
}

.landing-hero__lead {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    color: var(--text-muted);
}

.landing-hero__copy h1 {
    font-size: clamp(2.25rem, 5vw, 3.35rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
}

.landing-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.landing-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 14px;
    background: var(--bg-soft);
    border: 1px solid rgba(59, 130, 246, 0.16);
    font-size: 0.92rem;
    color: var(--text);
}

[data-theme="dark"] .landing-chip {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(59, 130, 246, 0.25);
}

.landing-hero__status {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1.15rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.95rem;
    color: var(--text);
}

.landing-status__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.8);
    animation: landingStatusPulse 2.4s infinite;
}

.landing-hero__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1rem, 2.2vw, 1.5rem);
    align-items: stretch;
    width: 100%;
    margin-top: clamp(1.4rem, 3vw, 2rem);
}

/* Forcer 2 colonnes côte à côte sur desktop */
@media (min-width: 1040px) {
    .landing-hero__actions {
        grid-template-columns: 1fr 1fr;
    }
}

/* Rangée CTA pleine largeur sous le hero */
.landing-hero-cta-row {
    width: min(1180px, 100%);
    margin: clamp(1rem, 3vw, 1.6rem) auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2.2vw, 1.5rem);
    align-items: stretch;
}

@media (max-width: 1024px) {
    .landing-hero-cta-row {
        grid-template-columns: 1fr;
    }
}

/* Forcer les cartes Premium/Offert à s'étirer et occuper 1/2 écran chacune sur desktop */
.landing-hero__actions>.cta-card {
    height: 100%;
}

/* Nouvelles cartes CTA hero */
.cta-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: clamp(1.6rem, 2.8vw, 2.2rem) clamp(1.6rem, 3vw, 2.4rem) clamp(1.8rem, 3.2vw, 2.4rem);
    border-radius: 22px;
    background: linear-gradient(140deg, var(--bg-soft) 0%, var(--bg-muted) 100%);
    border: 1px solid var(--border);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.cta-card:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.55), transparent 60%),
        radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.35), transparent 70%);
    opacity: 0.55;
    pointer-events: none;
}

.cta-card__badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cta-card__title {
    margin: 0;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.cta-card__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.cta-card__actions {
    margin-top: auto;
    display: flex;
}

.cta-card__actions .btn {
    width: 100%;
    justify-content: center;
}

/* Variantes */
.cta-card--premium {
    background: linear-gradient(145deg, rgba(248, 212, 120, 0.18), rgba(241, 180, 88, 0.14), rgba(255, 243, 210, 0.2));
    border-color: rgba(245, 184, 103, 0.55);
}

.cta-card--premium .cta-card__badge {
    background: rgba(245, 184, 103, 0.18);
    border-color: rgba(245, 184, 103, 0.55);
}

.cta-card--free {
    background: linear-gradient(145deg, rgba(30, 143, 110, 0.18), rgba(99, 210, 161, 0.16), rgba(224, 252, 242, 0.25));
    border-color: rgba(30, 143, 110, 0.45);
}

.cta-card--free .cta-card__badge {
    background: rgba(30, 143, 110, 0.20);
    border-color: rgba(30, 143, 110, 0.45);
}

html[data-theme="dark"] .cta-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.72));
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .cta-card:before {
    opacity: 0.25;
}

html[data-theme="dark"] .cta-card--premium {
    background: linear-gradient(145deg, rgba(63, 43, 15, 0.55), rgba(136, 87, 24, 0.42));
    border-color: rgba(249, 180, 64, 0.5);
}

html[data-theme="dark"] .cta-card--free {
    background: linear-gradient(145deg, rgba(15, 47, 34, 0.55), rgba(20, 83, 66, 0.42));
    border-color: rgba(99, 210, 161, 0.4);
}

@media (max-width: 760px) {
    .cta-card {
        padding: 1.25rem 1.1rem 1.5rem;
    }

    .cta-card__title {
        font-size: 1.05rem;
    }

    .cta-card__text {
        font-size: 0.9rem;
    }
}

.landing-hero__visual {
    flex: 1 1 320px;
    min-width: 280px;
    position: relative;
    isolation: isolate;
}

.landing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0);
    opacity: 0.55;
    animation: landingOrbFloat 12s ease-in-out infinite alternate;
}

.landing-orb--one {
    top: -18%;
    right: 8%;
    width: clamp(180px, 32vw, 260px);
    height: clamp(180px, 32vw, 260px);
    background: radial-gradient(circle at 35% 35%, rgba(59, 130, 246, 0.35), transparent 70%);
}

.landing-orb--two {
    bottom: -12%;
    left: 4%;
    width: clamp(200px, 36vw, 300px);
    height: clamp(200px, 36vw, 300px);
    background: radial-gradient(circle at 60% 40%, rgba(236, 72, 153, 0.26), transparent 70%);
    animation-duration: 14s;
}

.landing-console {
    position: relative;
    margin: clamp(1rem, 4vw, 2rem) auto 0;
    max-width: 360px;
    padding: clamp(1.4rem, 3vw, 1.8rem);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: var(--bg);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
}

[data-theme="dark"] .landing-console {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.25);
}

.landing-console__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.landing-console__list {
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
    font-size: 0.98rem;
    color: var(--text);
}

.landing-console__list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 14px;
    background: var(--bg-soft);
}

[data-theme="dark"] .landing-console__list li {
    background: rgba(15, 23, 42, 0.55);
}

.landing-holo {
    position: absolute;
    bottom: clamp(-2rem, -6vw, -1rem);
    right: clamp(-2.5rem, -5vw, -0.5rem);
    width: clamp(180px, 30vw, 240px);
    height: clamp(180px, 30vw, 240px);
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.25);
    display: grid;
    place-items: center;
    opacity: 0.8;
}

.landing-holo__pulse {
    width: 58%;
    height: 58%;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.22);
    animation: landingHalo 6s linear infinite;
}

.landing-holo__pulse--delayed {
    animation-delay: -3s;
}

.landing-widgets {
    border-radius: 26px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    padding: clamp(1.6rem, 4vw, 2.5rem);
    overflow: hidden;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .landing-widgets {
    background: rgba(15, 23, 42, 0.55);
}

.landing-widgets__inner {
    display: flex;
    gap: 2.5rem;
}

.landing-widget-track {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.6rem);
    min-width: 100%;
    flex: 0 0 auto;
    animation: landingMarquee 22s linear infinite;
}

.landing-widget-track--ghost {
    flex: 0 0 auto;
    animation-delay: -11s;
}

.landing-widget {
    min-width: clamp(220px, 30vw, 260px);
    padding: clamp(1.25rem, 3vw, 1.6rem);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .landing-widget {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.25);
}

.landing-widget__icon {
    display: inline-block;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.landing-widget h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.landing-widget p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.98rem;
}

.landing-heading {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 640px;
}

.landing-heading h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.landing-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.landing-modules__grid {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.landing-card {
    position: relative;
    padding: clamp(1.6rem, 3.2vw, 2.2rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}

.landing-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid var(--glass-inner-border);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    pointer-events: none;
}

.landing-card__badge {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
}

.landing-card h3 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.landing-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1 1 auto;
}

.landing-card__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.75rem;
    transition: transform 0.28s cubic-bezier(.4, 0, .2, 1), box-shadow 0.28s ease, color 0.28s ease;
}

.landing-card__link:not(.btn) {
    padding: 0.7rem 1.5rem 0.7rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.78) 0%, rgba(187, 247, 208, 0.82) 52%, rgba(204, 251, 241, 0.86) 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #052028;
    box-shadow: 0 18px 36px rgba(15, 118, 110, 0.18);
    overflow: hidden;
}

.landing-card__link:not(.btn)::before {
    content: "";
    position: absolute;
    inset: -45% 12% -55% -20%;
    background: radial-gradient(36% 48% at 26% 32%, rgba(255, 255, 255, 0.65) 0, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
    mix-blend-mode: screen;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 0;
}

.landing-card__link:not(.btn)::after {
    content: "\2192";
    font-size: 1.15rem;
    transition: transform 0.28s ease;
    z-index: 1;
}

.landing-card__link:not(.btn):hover,
.landing-card__link:not(.btn):focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 24px 44px rgba(15, 118, 110, 0.24), 0 0 0 3px rgba(94, 234, 212, 0.25);
    border-color: rgba(56, 189, 248, 0.6);
    color: #03151c;
}

.landing-card__link:not(.btn):hover::before,
.landing-card__link:not(.btn):focus-visible::before {
    opacity: 0.9;
    transform: translate3d(6%, -8%, 0) scale(1.08);
}

.landing-card__link:not(.btn):hover::after,
.landing-card__link:not(.btn):focus-visible::after {
    transform: translateX(6px);
}

.landing-card__link:not(.btn):active {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(15, 118, 110, 0.18);
}

html[data-theme="dark"] .landing-card__link:not(.btn) {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(34, 197, 94, 0.24) 48%, rgba(45, 212, 191, 0.25) 100%);
    border-color: rgba(94, 234, 212, 0.3);
    color: rgba(226, 232, 240, 0.92);
    box-shadow: 0 20px 42px rgba(13, 148, 136, 0.32);
}

html[data-theme="dark"] .landing-card__link:not(.btn):hover,
html[data-theme="dark"] .landing-card__link:not(.btn):focus-visible {
    color: rgba(240, 249, 255, 0.98);
    border-color: rgba(94, 234, 212, 0.48);
    box-shadow: 0 26px 48px rgba(13, 148, 136, 0.38), 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.landing-guide {
    border-radius: 26px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .landing-guide {
    background: rgba(15, 23, 42, 0.55);
}

.landing-steps {
    list-style: none;
    margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
    padding: 0;
    display: grid;
    gap: clamp(1.2rem, 3vw, 1.8rem);
}

.landing-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: clamp(1.2rem, 3vw, 1.5rem);
    border-radius: 18px;
    border: 1px solid transparent;
    transition: border 0.3s ease, transform 0.3s ease;
}

.landing-step:hover,
.landing-step:focus-within {
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateX(4px);
}

.landing-step__index {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: rgba(59, 130, 246, 0.8);
}

.landing-step__content h3 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.landing-step__content p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.landing-cta {
    position: relative;
}

.landing-cta__panel {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    border-radius: 28px;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(236, 72, 153, 0.12) 55%, rgba(255, 214, 102, 0.1) 100%);
    box-shadow: 0 28px 50px rgba(15, 23, 42, 0.12);
}

.landing-cta__text {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.landing-cta__text h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.6rem);
    letter-spacing: -0.015em;
}

.landing-cta__text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.landing-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.landing-cta__actions .landing-btn {
    flex: 1 1 clamp(220px, 22vw, 280px);
    min-width: clamp(220px, 22vw, 260px);
    max-width: 320px;
    justify-content: center;
    text-align: center;
}

@keyframes landingMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes landingStatusPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.8);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(34, 211, 238, 0);
    }
}

@keyframes landingOrbFloat {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(0, -18px, 0);
    }
}

@keyframes landingHalo {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

@media (max-width: 960px) {
    .landing-main {
        padding-inline: clamp(1.25rem, 6vw, 2.2rem);
    }

    .landing-hero__actions {
        grid-template-columns: 1fr;
    }

    .landing-hero__actions>.home-hero-premium,
    .landing-hero__actions>.home-hero-free {
        grid-column: 1 / -1;
    }

    .landing-cta__actions .landing-btn {
        min-width: 0;
        width: 100%;
    }

    .landing-cta__panel {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .landing-hero {
        padding: clamp(2rem, 6vw, 2.6rem);
    }

    .landing-hero__grid {
        gap: 2rem;
    }

    .landing-hero__visual {
        min-height: 280px;
    }

    .landing-widget-track,
    .landing-widget-track--ghost {
        animation-duration: 18s;
    }

    .landing-widget {
        min-width: 220px;
    }

    .landing-card {
        padding: 1.5rem;
    }

    .landing-steps {
        gap: 1.2rem;
    }

    .landing-step {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
}

@media (max-width: 540px) {
    .landing-main {
        padding-inline: clamp(1rem, 6vw, 1.6rem);
    }

    .landing-chip {
        width: 100%;
        justify-content: center;
    }

    .landing-widgets {
        padding-inline: clamp(1rem, 6vw, 1.6rem);
    }

    .landing-widget-track,
    .landing-widget-track--ghost {
        gap: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .landing-widget-track,
    .landing-widget-track--ghost,
    .landing-orb,
    .landing-holo__pulse,
    .landing-status__indicator {
        animation: none !important;
    }
}

.home-hero {
    margin-top: 6px;
    /* reduce height */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "content content"
        "premium free";
    gap: 18px;
    /* tighter spacing */
    align-items: stretch;
    padding: 18px 20px;
    /* reduce vertical more than horizontal */
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(18, 80, 109, 0.14), rgba(20, 163, 136, 0.1));
    box-shadow: 0 20px 42px rgba(7, 30, 45, 0.24);
    /* softer */
    position: relative;
    overflow: hidden;
}

.home-hero--single {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "content";
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.38), transparent 55%),
        radial-gradient(circle at 78% 12%, rgba(20, 163, 136, 0.28), transparent 55%),
        radial-gradient(circle at 42% 88%, rgba(18, 80, 109, 0.25), transparent 58%);
    opacity: 0.75;
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    z-index: 1;
    grid-area: content;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 16px;
    align-items: stretch;
}

.home-hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.home-hero-intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* -25% */
    padding: 4px 10px;
    /* -33% */
    border-radius: 999px;
    background: rgba(20, 163, 136, 0.18);
    border: 1px solid rgba(20, 163, 136, 0.26);
    font-weight: 600;
    font-size: 0.72rem;
    /* -15% approx */
    letter-spacing: 0.02em;
    color: rgba(15, 23, 42, 0.88);
    text-transform: uppercase;
}

.site-header--home .lead {
    margin: 12px 0 20px;
    /* scaled */
    max-width: 46ch;
    color: rgba(15, 23, 42, 0.75);
    font-size: 0.88rem;
    /* slightly smaller */
}

.home-hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.home-highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    /* -25% */
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(20, 163, 136, 0.1);
    box-shadow: 0 10px 22px rgba(7, 30, 45, 0.12);
    backdrop-filter: blur(5px);
}

.home-highlight-card span {
    font-size: 1.1rem;
    /* -24% */
    line-height: 1;
}

.home-highlight-card p {
    margin: 0;
    font-size: 0.74rem;
    color: rgba(15, 23, 42, 0.8);
}


.home-hero-premium {
    grid-area: premium;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px;
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(255, 248, 232, 0.96), rgba(255, 236, 204, 0.94));
    border: 1px solid rgba(249, 180, 64, 0.38);
    box-shadow: 0 12px 24px rgba(193, 108, 36, 0.18);
    height: 100%;
    position: relative;
    z-index: 1;
}

.home-hero-premium-actions {
    display: flex;
    justify-content: flex-start;
}

.home-hero-premium-text p {
    margin: 0;
    font-size: 0.74rem;
    color: rgba(15, 23, 42, 0.78);
    max-width: 44ch;
}

.home-hero-premium-badge {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    font-size: 0.68rem;
    color: rgba(15, 23, 42, 0.8);
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(18, 80, 109, 0.08);
    margin-bottom: 4px;
}

.home-hero-premium-actions>.btn {
    flex: 0 0 auto;
}

.home-hero-premium-btn {
    border-radius: 999px;
    padding: 7px clamp(12px, 2vw, 18px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: 0.78rem;
}

.home-hero-premium-btn .btn-label {
    max-width: 44ch;
    font-size: 0.78rem;
}

.home-hero-premium-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.home-hero-free-btn {
    border-radius: 999px;
    padding: 7px 12px;
    background: linear-gradient(135deg, rgba(30, 143, 110, 0.18), rgba(99, 210, 161, 0.24));
    color: #0f2f22;
    border: 1px solid rgba(30, 143, 110, 0.3);
    box-shadow: 0 10px 24px rgba(9, 58, 40, 0.16);
    font-weight: 600;
    justify-content: center;
    min-width: 150px;
    font-size: 0.78rem;
}

.home-hero-free-btn:hover,
.home-hero-free-btn:focus-visible {
    box-shadow: 0 18px 36px rgba(7, 30, 45, 0.18);
    transform: translateY(-2px);
}

.home-hero-free {
    grid-area: free;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px;
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(227, 255, 246, 0.96), rgba(186, 247, 220, 0.94));
    border: 1px solid rgba(44, 160, 127, 0.32);
    box-shadow: 0 12px 24px rgba(44, 160, 127, 0.2);
    height: 100%;
    position: relative;
    z-index: 1;
}

.home-hero-free-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-hero-free-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 47, 34, 0.12);
    color: rgba(15, 47, 34, 0.82);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-hero-free-title {
    margin: 0;
    font-size: 0.96rem;
    color: rgba(15, 23, 42, 0.9);
    font-weight: 700;
}

.home-hero-free-text p {
    margin: 0;
    font-size: 0.74rem;
    color: rgba(15, 23, 42, 0.76);
    max-width: 46ch;
}

.home-hero-free-actions {
    display: flex;
    justify-content: flex-start;
}

.home-hero-visual {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.home-hero-card {
    position: relative;
    width: clamp(300px, 38vw, 430px);
    /* +20% desktop approx */
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.16);
    border-radius: 18px;
    padding: 20px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    text-transform: none;
    box-shadow: 0 14px 26px rgba(7, 30, 45, 0.22);
    transition: width 0.25s ease, padding 0.25s ease;
}

.home-card-ribbon {
    position: absolute;
    top: 10px;
    left: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(31, 174, 152, 0.88));
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.24);
}

.home-hero-card h2 {
    margin: 22px 0 2px;
    font-size: 1.06rem;
    color: rgba(15, 23, 42, 0.9);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.24;
}

.home-hero-card ul {
    margin: 0;
    padding: 0 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: rgba(15, 23, 42, 0.78);
    font-size: 0.74rem;
    text-transform: none;
    line-height: 1.35;
}

.home-card-footer {
    margin-top: auto;
    font-size: 0.68rem;
    color: rgba(15, 23, 42, 0.72);
}

@media (min-width: 1180px) {
    .home-hero {
        gap: 20px;
        /* maintain reduced scale */
        padding: 18px 20px;
        /* keep smaller */
    }

    .home-hero-content {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 16px;
    }

    .home-hero-card h2 {
        font-size: 1.38rem;
    }

    .home-hero-card ul {
        font-size: 0.96rem;
        line-height: 1.5;
    }

    .home-card-footer {
        font-size: 0.88rem;
    }
}

@media (max-width: 1040px) {
    .home-hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 16px;
    }

    .landing-hero__actions {
        grid-template-columns: 1fr;
    }

    .landing-cta__actions .landing-btn {
        min-width: 0;
        width: 100%;
    }

    .home-hero-content {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-hero-visual {
        justify-content: center;
    }

    .home-hero-card {
        width: 100%;
        max-width: 360px;
        /* conserve une bonne lisibilité sur tablette */
    }
}

@media (max-width: 720px) {
    .home-hero {
        padding: 14px 14px;
        border-radius: 16px;
        gap: 14px;
    }

    .home-hero-content {
        gap: 12px;
    }

    .home-hero-highlights {
        grid-template-columns: 1fr;
    }

    .home-card-ribbon {
        left: 12px;
    }
}

html[data-theme="dark"] .site-header--home .lead {
    color: rgba(226, 232, 240, 0.82);
}

html[data-theme="dark"] .home-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(20, 163, 136, 0.08));
    box-shadow: 0 34px 70px rgba(2, 6, 23, 0.7);
}

html[data-theme="dark"] .home-hero::after {
    opacity: 0.5;
}

html[data-theme="dark"] .home-hero-badge {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.32);
    color: rgba(226, 232, 240, 0.95);
}

html[data-theme="dark"] .home-highlight-card {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.55);
}

html[data-theme="dark"] .home-highlight-card p,
html[data-theme="dark"] .home-hero-premium-text p,
html[data-theme="dark"] .home-hero-free-title,
html[data-theme="dark"] .home-hero-free-text p,
html[data-theme="dark"] .home-hero-card h2,
html[data-theme="dark"] .home-hero-card ul,
html[data-theme="dark"] .home-card-footer {
    color: rgba(226, 232, 240, 0.9);
}

html[data-theme="dark"] .home-hero-premium {
    background: linear-gradient(145deg, rgba(63, 43, 15, 0.94), rgba(136, 87, 24, 0.78));
    border-color: rgba(249, 180, 64, 0.48);
    box-shadow: 0 26px 52px rgba(8, 8, 6, 0.72);
}

html[data-theme="dark"] .home-hero-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 30px 64px rgba(2, 6, 23, 0.65);
}

html[data-theme="dark"] .home-card-ribbon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(59, 130, 246, 0.92));
    box-shadow: 0 26px 50px rgba(2, 6, 23, 0.7);
}

html[data-theme="dark"] .home-hero-premium-badge {
    color: rgba(224, 231, 255, 0.95);
    background: rgba(59, 130, 246, 0.22);
}

html[data-theme="dark"] .home-hero-free {
    background: linear-gradient(145deg, rgba(12, 64, 52, 0.9), rgba(18, 127, 101, 0.78));
    border-color: rgba(45, 212, 191, 0.5);
    box-shadow: 0 28px 56px rgba(2, 12, 12, 0.7);
}

html[data-theme="dark"] .home-hero-free-badge {
    background: rgba(20, 163, 136, 0.24);
    color: rgba(226, 232, 240, 0.92);
}

html[data-theme="dark"] .home-hero-free-btn {
    background: linear-gradient(135deg, rgba(20, 163, 136, 0.24), rgba(45, 212, 191, 0.28));
    color: rgba(226, 232, 240, 0.95);
    border-color: rgba(45, 212, 191, 0.36);
    box-shadow: 0 22px 44px rgba(2, 6, 23, 0.66);
}

html[data-theme="dark"] .actions .btn-primary {
    background: linear-gradient(135deg, rgba(48, 209, 168, 0.92), rgba(20, 148, 115, 0.94));
    border-color: rgba(59, 242, 197, 0.48);
    box-shadow: 0 26px 52px rgba(3, 36, 27, 0.6);
    color: rgba(236, 253, 245, 0.96);
}

html[data-theme="dark"] .actions .btn-primary .btn-icon {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 24px rgba(3, 36, 27, 0.52);
}

html[data-theme="dark"] .actions .btn-secondary {
    background: linear-gradient(135deg, rgba(24, 32, 46, 0.88), rgba(40, 58, 78, 0.88));
    color: rgba(226, 232, 240, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.38);
    box-shadow: 0 24px 48px rgba(2, 12, 20, 0.55);
}

html[data-theme="dark"] .actions .btn-secondary .btn-icon {
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 12px 26px rgba(2, 12, 20, 0.5);
}

.hero {
    width: 100%;
    max-width: 1050px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 8px 0;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 2.2rem;
    color: var(--text);
    margin: 0;
}

.lead {
    margin-top: 10px;
    color: var(--text-muted);
}

.hero-deco {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, var(--primary-soft), var(--primary));
    box-shadow: var(--shadow-md);
    transform: rotate(8deg);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroBounce 3.6s ease-in-out infinite;
}

.hero-deco .logo-img {
    width: 78%;
    height: auto;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
    animation: logoHop 3.6s ease-in-out infinite;
}

@keyframes heroBounce {

    0%,
    100% {
        transform: rotate(8deg) translateY(0) scale(1);
    }

    30% {
        transform: rotate(6deg) translateY(-8px) scale(1.04);
    }

    60% {
        transform: rotate(9deg) translateY(4px) scale(0.98);
    }
}

@keyframes logoHop {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    35% {
        transform: translateY(-10px) scale(1.05);
    }

    55% {
        transform: translateY(3px) scale(0.98);
    }
}

.content {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 38px;
    align-items: flex-start;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.results-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-column-gap: 24px;
    grid-row-gap: 26px;
}

.form-note-obligatoire {
    margin-top: 24px;
    font-size: 0.95rem;
    text-align: left;
}

@keyframes premiumGoldSheen {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes premiumGoldSparkle {
    0% {
        opacity: 0.35;
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        opacity: 0.82;
        transform: translate3d(10px, -8px, 0) scale(1.08);
    }

    100% {
        opacity: 0.35;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes premiumGoldFloat {
    0% {
        transform: translate3d(-12%, -14%, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(14%, 10%, 0) rotate(180deg);
    }

    100% {
        transform: translate3d(-12%, -14%, 0) rotate(360deg);
    }
}

.btn-premium-gold {
    background: linear-gradient(135deg, rgba(248, 212, 120, 0.98) 0%, rgba(241, 180, 88, 0.96) 60%, rgba(255, 243, 210, 0.98) 100%);
    background-size: 220% 220%;
    color: #1a1000;
    border: 1px solid rgba(245, 184, 103, 0.9);
    box-shadow: 0 36px 72px rgba(232, 180, 72, 0.58);
    animation: premiumGoldSheen 5.4s linear infinite;
    font-family: 'Playfair Display', 'Inter', serif;
    font-size: 1.13rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 16px 32px;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    text-shadow: 0 2px 8px rgba(255, 236, 180, 0.18);
    z-index: 1;
}

.btn-premium-gold .btn-icon {
    font-size: 1.3em;
    margin-right: 10px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 8px rgba(242, 197, 105, 0.32));
}

.btn-premium-gold .btn-label {
    font-family: 'Playfair Display', 'Inter', serif;
    font-size: 1.13rem;
    font-weight: 700;
    color: #1a1000;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px rgba(255, 236, 180, 0.18);
}

.btn-premium-gold:hover,
.btn-premium-gold:focus-visible {
    box-shadow: 0 42px 82px rgba(232, 180, 72, 0.62), 0 0 0 4px rgba(252, 225, 164, 0.28);
    border-color: rgba(245, 184, 103, 0.98);
}

.btn-premium-gold:active {
    box-shadow: 0 24px 48px rgba(232, 180, 72, 0.45);
    border-color: #e2c16b;
}

@media (max-width: 600px) {
    .btn-premium-gold {
        font-size: 1.01rem;
        padding: 12px 18px;
    }
}

.btn-premium-gold::before {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.5), transparent 62%);
}

.btn-premium-gold::after {
    content: '';
    position: absolute;
    inset: -32%;
    background:
        radial-gradient(1.25rem 1.25rem at 18% 28%, rgba(255, 240, 210, 0.95) 0, rgba(255, 240, 210, 0.95) 32%, transparent 62%),
        radial-gradient(1rem 1rem at 72% 24%, rgba(255, 226, 178, 0.78) 0, rgba(255, 226, 178, 0.78) 28%, transparent 58%),
        radial-gradient(1rem 1rem at 60% 74%, rgba(255, 233, 192, 0.7) 0, rgba(255, 233, 192, 0.7) 24%, transparent 62%),
        radial-gradient(0.85rem 0.85rem at 32% 80%, rgba(255, 219, 158, 0.62) 0, rgba(255, 219, 158, 0.62) 30%, transparent 64%);
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: premiumGoldSparkle 3.8s ease-in-out infinite;
    z-index: 1;
}

.btn-premium-gold>span:not(.btn-premium-glow),
.btn-premium-gold>strong,
.btn-premium-gold>div {
    position: relative;
    z-index: 2;
}

.btn-premium-cta {
    position: relative;
    width: 100%;
    padding: 20px 24px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-weight: 600;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-premium-cta .btn-premium-label,
.btn-premium-cta .btn-premium-sub {
    text-align: left;
}

.btn-premium-cta .btn-premium-label {
    color: inherit;
}

.btn-premium-label {
    font-size: 1.18rem;
    font-weight: 700;
}

.btn-premium-sub {
    font-size: 0.94rem;
    color: rgba(19, 68, 50, 0.72);
}

.btn-premium-cta:hover,
.btn-premium-cta:focus-visible {
    transform: translateY(-2px);
}

.btn-premium-cta:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 3px;
}



html[data-theme="dark"] .btn-premium-cta {
    border-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 900px) {
    .content {
        grid-template-columns: 1fr;
    }

    #summary {
        margin-top: 24px;
    }

    .results-column {
        gap: 18px;
    }
}

.content.single-card {
    grid-template-columns: 1fr;
    max-width: 780px;
}

.card {
    padding: 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.form-card {
    padding: 30px clamp(20px, 3vw, 36px) 34px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(213, 223, 218, 0.22);
    box-shadow: 0 8px 20px rgba(15, 47, 34, 0.10);
    backdrop-filter: blur(2px) saturate(120%);
    -webkit-backdrop-filter: blur(2px) saturate(120%);
}

.form-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.32);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    pointer-events: none;
}

html[data-theme="dark"] .form-card {
    background: rgba(10, 18, 26, 0.06);
    border: 1px solid rgba(99, 210, 161, 0.18);
    box-shadow: 0 12px 32px rgba(5, 12, 20, 0.28);
    backdrop-filter: blur(2px) saturate(120%);
    -webkit-backdrop-filter: blur(2px) saturate(120%);
}

html[data-theme="dark"] .form-card::before {
    border-color: rgba(99, 210, 161, 0.3);
}

@media (min-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 28px;
        row-gap: 30px;
    }
}

@media (min-width: 900px) and (max-width: 1023px) {
    .form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 26px;
    }
}

.form-intro {
    grid-column: 1 / -1;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(120deg, rgba(128, 220, 168, 0.25), rgba(226, 249, 241, 0.9));
    color: var(--text);
    display: flex;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(99, 210, 161, 0.4);
    box-shadow: 0 18px 40px rgba(15, 47, 34, 0.18);
}

html[data-theme="dark"] .form-intro {
    background: linear-gradient(120deg, rgba(58, 181, 138, 0.18), rgba(23, 66, 55, 0.3));
    border: 1px solid rgba(99, 210, 161, 0.35);
    box-shadow: 0 20px 45px rgba(15, 47, 34, 0.35);
}

.form-intro__badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.form-intro__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-intro__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.form-intro__subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 20px 40px rgba(15, 47, 34, 0.14);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    grid-column: 1 / -1;
    position: relative;
}

.field:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 210, 161, 0.45);
    box-shadow: 0 24px 52px rgba(15, 47, 34, 0.2);
}

.field.dropdown-open {
    z-index: 1200;
}

.field--half {
    grid-column: span 2;
}

.field--wide {
    grid-column: 1 / -1;
}

.field--stack {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.field-split__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.field input,
.field select,
.field textarea {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.96rem;
    color: var(--text);
    background: var(--bg-soft);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}

.form-actions {
    grid-column: 1 / -1;
}

.actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
    grid-auto-rows: minmax(0, 1fr);
}

.actions .btn {
    width: 100%;
    font-size: 1.03rem;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 100%;
    border-radius: 22px;
    padding: 18px clamp(20px, 3vw, 28px);
    box-shadow: none;
}

.actions .btn::before {
    opacity: 0.35;
    transform: translateX(-140%) skewX(-16deg);
}

.actions .btn:hover::before {
    opacity: 0.65;
}

.actions .request-counter {
    width: 100%;
    max-width: none;
    min-height: 64px;
}

.actions .btn.btn-premium-cta {
    align-items: flex-start;
    justify-content: center;
    padding: 22px clamp(22px, 4vw, 30px);
}

@media (min-width: 640px) {
    .actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .premium-page .actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .premium-page .actions .btn,
    .premium-page .request-counter {
        min-height: 86px;
    }
}

.request-counter {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px 20px;
    border-radius: 22px;
    border: 1px solid rgba(25, 160, 123, 0.35);
    background: linear-gradient(140deg, rgba(37, 201, 164, 0.16), rgba(17, 148, 113, 0.06));
    color: var(--text);
    box-shadow: 0 20px 40px rgba(15, 115, 89, 0.16);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.25s ease, background 0.35s ease;
    min-height: 64px;
    overflow: hidden;
}

.request-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 48px rgba(15, 115, 89, 0.2);
}

.request-counter-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.request-counter-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.2;
}

.request-counter-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--text-muted);
}

.request-counter-numbers {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 700;
}

.request-counter-value {
    font-size: 1.6rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.request-counter-max {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.request-counter-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: rgba(37, 201, 164, 0.22);
    overflow: hidden;
}

.request-counter-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, var(--primary), #2bb584);
    transition: width 0.35s ease;
}

.request-counter--low {
    border-color: rgba(234, 179, 8, 0.45);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.22), rgba(234, 179, 8, 0.08));
    box-shadow: 0 20px 40px rgba(161, 98, 7, 0.18);
}

.request-counter--low .request-counter-label,
.request-counter--low .request-counter-max {
    color: #b45309;
}

.request-counter--low .request-counter-progress {
    background: rgba(217, 119, 6, 0.16);
}

.request-counter--low .request-counter-progress-bar {
    background: linear-gradient(135deg, #fb923c, #f97316);
}

html[data-theme="dark"] .request-counter {
    border-color: rgba(59, 242, 197, 0.38);
    background: linear-gradient(145deg, rgba(10, 68, 55, 0.58), rgba(7, 28, 22, 0.85));
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.56);
}

html[data-theme="dark"] .request-counter-label,
html[data-theme="dark"] .request-counter-max {
    color: rgba(240, 245, 242, 0.7);
}

html[data-theme="dark"] .request-counter--low {
    border-color: rgba(251, 189, 35, 0.55);
    background: linear-gradient(145deg, rgba(106, 56, 9, 0.52), rgba(24, 16, 7, 0.82));
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.58);
}

html[data-theme="dark"] .request-counter--low .request-counter-label,
html[data-theme="dark"] .request-counter--low .request-counter-max {
    color: rgba(252, 211, 77, 0.85);
}

.request-counter--flash {
    animation: requestCounterFlash 0.75s ease;
}

@keyframes requestCounterFlash {
    0% {
        transform: scale(1);
        box-shadow: 0 20px 40px rgba(15, 115, 89, 0.16);
    }

    45% {
        transform: scale(1.04);
        box-shadow: 0 28px 54px rgba(15, 115, 89, 0.22);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 20px 40px rgba(15, 115, 89, 0.16);
    }
}

@media (prefers-reduced-motion: reduce) {
    .request-counter--flash {
        animation: none;
    }

    .request-counter,
    .request-counter-progress-bar {
        transition: none;
    }
}

a.btn {
    text-decoration: none;
}

@keyframes button-press {
    0% {
        transform: translateY(0) scale(1);
    }

    45% {
        transform: translateY(1px) scale(0.985);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: var(--text-invert);
    box-shadow: 0 14px 30px rgba(30, 143, 110, 0.18);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter 0.35s ease;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 60%);
    opacity: 0;
    transform: translateX(-120%) skewX(-16deg);
    transition: opacity 0.45s ease, transform 0.65s ease;
    pointer-events: none;
}

.btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 18px 38px rgba(30, 143, 110, 0.22);
}

.btn:hover::before {
    opacity: 0.55;
    transform: translateX(120%) skewX(-16deg);
}

.btn:active {
    animation: button-press 320ms ease;
    box-shadow: 0 8px 22px rgba(30, 143, 110, 0.18);
}

.btn.btn-premium-gold {
    background: linear-gradient(135deg, rgba(248, 212, 120, 0.98) 0%, rgba(241, 180, 88, 0.96) 60%, rgba(255, 243, 210, 0.98) 100%);
    background-size: 220% 220%;
    color: #1a1000;
    border-color: rgba(245, 184, 103, 0.9);
    box-shadow: 0 36px 72px rgba(232, 180, 72, 0.58);
}

.btn.btn-premium-gold:hover,
.btn.btn-premium-gold:focus-visible {
    box-shadow: 0 42px 82px rgba(232, 180, 72, 0.62), 0 0 0 4px rgba(252, 225, 164, 0.28);
    border-color: rgba(245, 184, 103, 0.98);
}

.btn.btn-premium-gold:active {
    box-shadow: 0 24px 48px rgba(232, 180, 72, 0.45);
    border-color: #e2c16b;
}

.landing-btn.btn-primary {
    position: relative;
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.96) 0%, rgba(56, 189, 248, 0.95) 55%, rgba(129, 140, 248, 0.92) 100%);
    border: 1px solid rgba(94, 234, 212, 0.6);
    color: #062519;
    box-shadow: 0 28px 56px rgba(14, 116, 144, 0.32);
}

.landing-btn.btn-primary::before {
    content: "";
    position: absolute;
    inset: -45%;
    background: radial-gradient(38% 42% at 28% 28%, rgba(255, 255, 255, 0.42) 0, transparent 65%),
        radial-gradient(32% 38% at 72% 32%, rgba(236, 253, 245, 0.4) 0, transparent 62%);
    opacity: 0.75;
    pointer-events: none;
    mix-blend-mode: screen;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 0;
}

.landing-btn.btn-primary:hover,
.landing-btn.btn-primary:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 36px 68px rgba(14, 116, 144, 0.4), 0 0 0 3px rgba(125, 211, 252, 0.26);
    border-color: rgba(94, 234, 212, 0.78);
}

.landing-btn.btn-primary:hover::before,
.landing-btn.btn-primary:focus-visible::before {
    opacity: 1;
    transform: translate3d(3%, -6%, 0) scale(1.08);
}

.landing-btn.btn-primary:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 18px 34px rgba(14, 116, 144, 0.28);
    border-color: rgba(45, 212, 191, 0.8);
}

html[data-theme="dark"] .landing-btn.btn-primary {
    color: #f2fffb;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.88) 0%, rgba(59, 130, 246, 0.88) 55%, rgba(139, 92, 246, 0.88) 100%);
    border-color: rgba(165, 243, 252, 0.4);
    box-shadow: 0 30px 60px rgba(13, 148, 136, 0.42);
}

html[data-theme="dark"] .landing-btn.btn-primary:hover,
html[data-theme="dark"] .landing-btn.btn-primary:focus-visible {
    box-shadow: 0 36px 70px rgba(13, 148, 136, 0.48), 0 0 0 3px rgba(165, 243, 252, 0.28);
    border-color: rgba(165, 243, 252, 0.6);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(30, 143, 110, 0.12), rgba(30, 143, 110, 0.04));
    color: var(--primary);
    border: 1px solid rgba(30, 143, 110, 0.25);
    box-shadow: 0 12px 26px rgba(30, 143, 110, 0.12);
}

.btn-secondary:hover {
    box-shadow: 0 16px 32px rgba(30, 143, 110, 0.16);
}

.actions .btn-primary {
    background: linear-gradient(135deg, rgba(37, 201, 164, 0.95), rgba(17, 148, 113, 0.95));
    border: 1px solid rgba(25, 160, 123, 0.48);
    box-shadow: 0 22px 44px rgba(15, 115, 89, 0.26);
    color: #f3fdf9;
}

.actions .btn-primary:hover,
.actions .btn-primary:focus-visible {
    box-shadow: 0 28px 56px rgba(10, 102, 79, 0.32);
}

.actions .btn-primary .btn-icon {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 20px rgba(10, 102, 79, 0.22);
    backdrop-filter: blur(6px);
}

.actions .btn-secondary {
    background: linear-gradient(135deg, rgba(242, 244, 247, 0.95), rgba(222, 228, 236, 0.96));
    color: rgba(15, 30, 46, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 18px 36px rgba(15, 30, 46, 0.12);
}

.actions .btn-secondary:hover,
.actions .btn-secondary:focus-visible {
    box-shadow: 0 24px 44px rgba(15, 30, 46, 0.16);
}

.actions .btn-secondary .btn-icon {
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 20px rgba(15, 30, 46, 0.12);
}

.actions .btn .btn-label {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.btn-tertiary {
    background: rgba(30, 143, 110, 0.08);
    color: var(--primary);
    border: 1px solid rgba(30, 143, 110, 0.18);
    border-radius: 12px;
    padding: 12px 22px;
}

.btn-tertiary:hover {
    box-shadow: 0 14px 26px rgba(30, 143, 110, 0.16);
}

.btn-brand {
    box-shadow: 0 16px 32px rgba(15, 47, 34, 0.18);
}

.btn-brand:hover {
    box-shadow: 0 22px 38px rgba(15, 47, 34, 0.22);
}

.btn-brand:active {
    animation: button-press 300ms ease;
}

.btn-brand-amazon {
    background: linear-gradient(135deg, #ffb347, #ff9900);
    color: #111317;
}

.btn-brand-google {
    background: linear-gradient(135deg, #4285f4, #0b57d0);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(11, 87, 208, 0.26);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 16px rgba(15, 47, 34, 0.18);
}

.btn-icon svg {
    width: 72%;
    height: 72%;
}

.btn-icon img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.btn-icon-amazon,
.btn-icon-google {
    background: #ffffff;
}

.btn-label {
    display: inline-flex;
    align-items: center;
    line-height: 1.1;
}

.idea-detail-search {
    margin: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: stretch;
}

.idea-detail-search .btn {
    min-width: 200px;
}

.idea-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}

.idea-detail-actions .btn {
    padding: 12px 18px;
}

.idea-detail-actions .btn-tertiary {
    background: rgba(30, 143, 110, 0.08);
    color: var(--primary);
    border-radius: 12px;
    padding: 12px 18px;
}

.idea-detail-actions .btn-tertiary:hover {
    background: rgba(30, 143, 110, 0.14);
}

.favorite-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.favorite-toggle .favorite-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
}



.btn.loading::before {
    opacity: 0;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: rgba(255, 255, 255, 0.95);
    display: inline-block;
    opacity: 0;
    transform: scale(0.85);
}

.btn.loading .btn-spinner {
    opacity: 1;
    animation: spin 1s linear infinite;
    transform: scale(1);
}

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

.meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.result-ideas {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.idea {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.idea:hover {
    transform: translateY(-2px);
}

.idea-selector {
    position: relative;
    padding: 28px 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 28px 60px rgba(15, 47, 34, 0.14);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

#summary .idea-selector {
    margin: -22px;
    width: calc(100% + 44px);
    border-radius: inherit;
}

@media (max-width: 768px) {
    #summary .idea-selector {
        margin: -22px;
        width: calc(100% + 44px);
        border-radius: 0;
    }
}

.idea-selector::after {
    content: "";
    position: absolute;
    inset: -60px -40px auto auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at center, rgba(30, 143, 110, 0.22), transparent 70%);
    opacity: 0.6;
    pointer-events: none;
    transform: translateY(-10px);
}

.idea-selector-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.idea-selector-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.idea-slider {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.idea-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
}

.idea-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    padding: 4px;
}

.idea-slide .idea-card {
    width: min(420px, 100%);
}

.idea-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.idea-slider-controls.is-disabled {
    display: none;
}

.idea-slider-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.idea-slider-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.idea-slider-btn svg {
    pointer-events: none;
}

.idea-slider-btn:hover {
    background: var(--primary-soft);
    color: var(--text-invert);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.idea-slider-btn:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
}

.idea-slider-dots {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 20px;
}

.idea-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 0;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.idea-slider-dot.is-active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

.idea-slider-dot:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.idea-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    min-height: 240px;
    padding: 22px 24px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    appearance: none;
    font: inherit;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.idea-card.fade-in {
    animation: fade-in-scale 0.5s cubic-bezier(.4, 0, .2, 1);
}

@keyframes fade-in-scale {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(14px);
    }

    60% {
        opacity: 1;
        transform: scale(1.02) translateY(-2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    .idea-card.fade-in {
        animation: fade-in-mobile 0.5s cubic-bezier(.4, 0, .2, 1);
    }
}

@keyframes fade-in-mobile {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(14px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.idea-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 143, 110, 0.4);
}

.idea-card:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.idea-card.is-active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(30, 143, 110, 0.12), rgba(30, 143, 110, 0.05));
    box-shadow: 0 22px 44px rgba(30, 143, 110, 0.16);
}

.idea-card-indicator {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
    margin-bottom: 20px;
}

.idea-card-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--border);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.idea-card:hover .idea-card-indicator {
    transform: translateY(-2px);
}

.idea-card.is-active .idea-card-indicator {
    border-color: rgba(30, 143, 110, 0.6);
    background: rgba(30, 143, 110, 0.08);
}

.idea-card.is-active .idea-card-indicator-dot {
    background: var(--primary);
    transform: scale(1.2);
}

.idea-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.idea-card-suptitle {
    font-size: 0.86rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.idea-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.42;
}

.idea-card-description {
    font-size: 0.94rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.45;
}

.idea-card-cta {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform var(--transition-fast), color var(--transition-fast);
    margin-top: 22px;
}

.idea-card-cta::after {
    content: "\203A";
    font-size: 1.5rem;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.idea-card:hover .idea-card-cta::after,
.idea-card.is-active .idea-card-cta::after {
    transform: translateX(6px);
}

html[data-theme="dark"] .idea-selector {
    background: linear-gradient(135deg, rgba(20, 30, 28, 0.92), rgba(20, 30, 28, 0.62));
    border-color: rgba(99, 210, 161, 0.2);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .idea-selector::after {
    background: radial-gradient(circle at center, rgba(99, 210, 161, 0.18), transparent 72%);
    opacity: 0.45;
}

html[data-theme="dark"] .idea-slider-btn {
    background: rgba(18, 26, 24, 0.85);
    border-color: rgba(62, 87, 79, 0.9);
    color: var(--text);
}

html[data-theme="dark"] .idea-slider-btn:hover {
    background: rgba(99, 210, 161, 0.18);
    color: var(--text);
    border-color: var(--primary);
}

html[data-theme="dark"] .idea-slider-dot {
    background: rgba(62, 87, 79, 0.55);
    border-color: rgba(62, 87, 79, 0.85);
}

html[data-theme="dark"] .idea-slider-dot.is-active {
    background: var(--primary);
    border-color: var(--primary);
}

html[data-theme="dark"] .idea-card {
    background: rgba(18, 26, 24, 0.85);
    border-color: rgba(62, 87, 79, 0.8);
    box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .idea-card:hover {
    border-color: rgba(99, 210, 161, 0.35);
}

html[data-theme="dark"] .idea-card.is-active {
    background: linear-gradient(135deg, rgba(99, 210, 161, 0.22), rgba(18, 119, 94, 0.14));
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .idea-card-indicator {
    border-color: rgba(62, 87, 79, 0.9);
}

html[data-theme="dark"] .idea-card-indicator-dot {
    background: rgba(99, 210, 161, 0.45);
}

html[data-theme="dark"] .idea-card.is-active .idea-card-indicator-dot {
    background: var(--primary);
}

html[data-theme="dark"] .idea-card-cta {
    color: var(--primary-soft);
}

@media (max-width: 768px) {
    .idea-selector {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .idea-slider {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .idea-slider::-webkit-scrollbar {
        display: none;
    }

    .idea-slider-track {
        gap: 0;
        width: auto;
    }

    .idea-slide {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 12px 0;
        scroll-snap-align: center;
    }

    .idea-slide .idea-card {
        width: 88%;
        max-width: 380px;
        margin: 0 auto;
        padding: 18px;
        min-height: 0;
    }

    .idea-card-title {
        font-size: 1.08rem;
    }

    .idea-card-description {
        font-size: 0.9rem;
    }

    .idea-card-cta {
        font-size: 1.06rem;
    }

    .idea-slider-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .idea-slider-nav {
        width: 100%;
        justify-content: space-between;
    }

    .idea-slider-dots {
        order: -1;
    }
}

@media (max-width: 560px) {
    .idea-selector {
        padding: 20px 14px;
        gap: 18px;
    }

    .idea-selector-header h3 {
        font-size: 1.35rem;
    }

    .idea-selector-header p {
        font-size: 0.88rem;
    }

    .idea-slider {
        margin: 0;
    }

    .idea-slide {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 10px 0;
    }

    .idea-slide .idea-card {
        width: 90%;
        max-width: 340px;
        margin: 0 auto;
        padding: 16px;
        border-radius: 16px;
    }

    .idea-card-indicator {
        width: 34px;
        height: 34px;
        margin-bottom: 14px;
    }

    .idea-card-suptitle {
        font-size: 0.72rem;
    }

    .idea-card-title {
        font-size: 1rem;
    }

    .idea-card-description {
        font-size: 0.85rem;
    }

    .idea-card-cta {
        font-size: 1.02rem;
        margin-top: 16px;
    }

    .idea-slider-btn {
        width: 40px;
        height: 40px;
    }

    .idea-slider-dots {
        gap: 8px;
    }
}

.idea-detail {
    animation: fadeIn 0.45s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.idea-detail-header h2 {
    font-size: 2rem;
    margin: 18px 0 6px;
    color: var(--text);
}

.idea-detail-visual {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(240, 242, 245, 0.6), rgba(224, 229, 236, 0.6));
    max-height: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.idea-detail-visual img {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.idea-detail-visual img.loaded {
    opacity: 1;
    transform: scale(1);
}

.idea-image-attr {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0 12px;
}

.idea-image-attr a {
    color: inherit;
    text-decoration: underline;
}

.saved-idea-visual {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(240, 242, 245, 0.6), rgba(224, 229, 236, 0.6));
    margin-bottom: 8px;
}

.saved-idea-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.saved-idea-image.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Nouveau layout vertical pour idées (historique + favoris) */
.result-ideas,
#historyList,
#favoritesList {
    display: grid;
    gap: 22px;
}

@media (min-width: 840px) {

    .result-ideas,
    #historyList,
    #favoritesList {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        align-items: stretch;
    }
}

.idea.card,
.saved-idea-card-mobile.card {
    display: flex;
    flex-direction: column;
    padding: 18px 18px 20px;
    border-radius: 22px;
    background: linear-gradient(145deg, var(--bg-soft) 0%, var(--bg-muted) 100%);
    border: 1px solid var(--border);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
    transition: box-shadow .35s cubic-bezier(.4, 0, .2, 1), transform .35s cubic-bezier(.4, 0, .2, 1);
}

.idea.card::before,
.saved-idea-card-mobile.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.55), transparent 60%),
        radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.35), transparent 70%);
    opacity: 0.45;
    pointer-events: none;
}

.idea.card:hover,
.saved-idea-card-mobile.card:hover {
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    transform: translateY(-4px);
}

html[data-theme="dark"] .idea.card,
html[data-theme="dark"] .saved-idea-card-mobile.card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.72));
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .idea.card::before,
html[data-theme="dark"] .saved-idea-card-mobile.card::before {
    opacity: 0.25;
}

/* Conteneur image en haut */
.idea.card .saved-idea-visual,
.saved-idea-card-mobile.card .saved-idea-visual {
    margin: -18px -18px 14px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(135deg, rgba(240, 242, 245, 0.7), rgba(224, 229, 236, 0.55));
}

html[data-theme="dark"] .idea.card .saved-idea-visual,
html[data-theme="dark"] .saved-idea-card-mobile.card .saved-idea-visual {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.85), rgba(31, 41, 55, 0.55));
}

.idea.card .saved-idea-image,
.saved-idea-card-mobile.card .saved-idea-image {
    height: 180px;
}

@media (min-width: 640px) {

    .idea.card .saved-idea-image,
    .saved-idea-card-mobile.card .saved-idea-image {
        height: 200px;
    }
}

/* Titre + date */
.idea.card h3 {
    font-size: 1.15rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0;
    font-weight: 700;
}

.idea.card .idea-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.idea.card .idea-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Description et prix */
.idea.card p {
    line-height: 1.5;
}

.idea.card .idea-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Actions bas */
.idea.card .saved-idea-actions,
.saved-idea-card-mobile.card .saved-idea-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 420px) {

    .idea.card .saved-idea-actions,
    .saved-idea-card-mobile.card .saved-idea-actions {
        grid-template-columns: 1fr 1fr;
    }
}

.idea.card .saved-idea-actions .btn,
.saved-idea-card-mobile.card .saved-idea-actions .btn {
    min-height: 52px;
    font-size: 0.92rem;
    border-radius: 14px;
}

@media (max-width: 420px) {

    .idea.card .saved-idea-actions .btn,
    .saved-idea-card-mobile.card .saved-idea-actions .btn {
        font-size: 0.9rem;
    }
}

/* Attribution photo repositionnée */
.idea.card .idea-image-attr,
.saved-idea-card-mobile.card .idea-image-attr {
    order: 2;
    margin-top: 4px;
    font-size: 0.72rem;
    opacity: 0.85;
}

/* Effet focus-accessibilité */
.idea.card:focus-within,
.saved-idea-card-mobile.card:focus-within {
    box-shadow: 0 0 0 3px var(--primary-soft), 0 20px 42px rgba(15, 23, 42, 0.22);
}

/* Harmonisation image chargée */
.saved-idea-image.loaded {
    filter: saturate(1.05);
}

.muted-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.muted {
    color: var(--text-muted);
}

.error {
    color: #b42318;
    background: rgba(180, 35, 24, 0.08);
    border: 1px solid rgba(180, 35, 24, 0.28);
    padding: 12px;
    border-radius: var(--radius-md);
}

.premium-offer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.premium-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 1040px;
}

.premium-page-wrapper {
    gap: 36px;
}

.premium-page .site-header {
    padding: 0;
}

.premium-hero {
    margin-top: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
    padding: 36px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.15), rgba(99, 210, 161, 0.12));
    box-shadow: 0 30px 60px rgba(24, 119, 242, 0.16);
    position: relative;
    overflow: visible;
}

.premium-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.35), transparent 55%),
        radial-gradient(circle at 85% 20%, rgba(99, 210, 161, 0.32), transparent 55%),
        radial-gradient(circle at 45% 85%, rgba(24, 119, 242, 0.25), transparent 55%);
    pointer-events: none;
    opacity: 0.75;
}

.premium-hero-content,
.premium-hero-visual {
    position: relative;
    z-index: 1;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(24, 119, 242, 0.18);
    border: 1px solid rgba(24, 119, 242, 0.28);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: #0f172a;
}

.premium-page h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.2rem, 2.6vw, 3rem);
    line-height: 1.05;
}

.premium-page .lead {
    font-size: 1.15rem;
    color: rgba(15, 23, 42, 0.88);
    max-width: 48ch;
    margin-bottom: 26px;
}

.premium-hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.premium-highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(24, 119, 242, 0.08);
    box-shadow: 0 12px 28px rgba(24, 119, 242, 0.12);
    backdrop-filter: blur(6px);
}

.premium-highlight-card span {
    font-size: 1.45rem;
    line-height: 1;
}

.premium-highlight-card p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.78);
}

.premium-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.premium-hero-card {
    position: relative;
    width: min(100%, 360px);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: 24px 24px 28px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: visible;
}

.premium-card-ribbon {
    position: absolute;
    top: -34px;
    left: 24px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1877f2, #4f9dfc);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 22px 38px rgba(24, 119, 242, 0.35);
    text-transform: uppercase;
}

.premium-hero-card h2 {
    margin: 18px 0 10px;
    font-size: 1.6rem;
    color: rgba(15, 23, 42, 0.92);
}

.premium-hero-card ul {
    margin: 0;
    padding: 0 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: rgba(15, 23, 42, 0.82);
    font-size: 0.98rem;
}

.premium-card-footer {
    margin-top: auto;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.65);
}

.premium-plan-actions--large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.premium-plan-actions--large .premium-plan-btn {
    min-height: 110px;
    padding: 20px;
    border: 1px solid rgba(24, 119, 242, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(248, 250, 252, 0.92));
}

.premium-plan-actions--large .premium-plan-btn .btn-tag {
    margin-top: auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(24, 119, 242, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.premium-plan-actions--large .premium-plan-btn .btn-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(24, 119, 242, 0.12);
    color: rgba(24, 119, 242, 0.88);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.premium-plan-actions--large .premium-plan-btn .btn-active-icon {
    position: absolute;
    inset: auto 18px 18px auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(24, 119, 242, 0.12);
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.premium-offer-note-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px dashed rgba(24, 119, 242, 0.28);
}

.premium-offer-note-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.premium-offer-note-title {
    margin: 0 0 4px;
    font-weight: 700;
}

.premium-plan-helper {
    margin: 10px 0 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.premium-info-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(24, 119, 242, 0.12);
    font-weight: 600;
    color: rgba(15, 23, 42, 0.85);
    margin: 4px 0 0;
    width: 100%;
}

.premium-summary {
    padding: 26px;
    width: 100%;
}

.premium-summary .empty-text {
    font-size: 1.05rem;
}

.premium-page .site-footer {
    margin-top: 24px;
}

html[data-theme="dark"] .premium-hero {
    background: linear-gradient(135deg, rgba(90, 167, 241, 0.12), rgba(99, 210, 161, 0.08));
    box-shadow: 0 34px 70px rgba(6, 14, 26, 0.65);
}

html[data-theme="dark"] .premium-hero::after {
    opacity: 0.5;
}

html[data-theme="dark"] .premium-badge {
    background: rgba(99, 210, 161, 0.18);
    border-color: rgba(99, 210, 161, 0.35);
    color: #f8fafc;
}

html[data-theme="dark"] .premium-page .lead,
html[data-theme="dark"] .premium-highlight-card p,
html[data-theme="dark"] .premium-card-footer,
html[data-theme="dark"] .premium-hero-card ul,
html[data-theme="dark"] .premium-hero-card h2 {
    color: rgba(241, 245, 249, 0.88);
}

html[data-theme="dark"] .premium-highlight-card {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(99, 210, 161, 0.25);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .premium-hero-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .premium-offer-note-block {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(99, 210, 161, 0.35);
}

html[data-theme="dark"] .premium-plan-actions--large .premium-plan-btn {
    background: linear-gradient(135deg, rgba(18, 31, 56, 0.92), rgba(27, 44, 68, 0.8));
    border-color: rgba(94, 234, 212, 0.28);
    box-shadow: 0 18px 46px rgba(4, 13, 33, 0.65);
}

html[data-theme="dark"] .premium-plan-actions--large .premium-plan-btn .btn-badge {
    background: rgba(94, 234, 212, 0.22);
    color: rgba(224, 247, 250, 0.95);
}

html[data-theme="dark"] .premium-plan-actions--large .premium-plan-btn .btn-active-icon {
    background: rgba(94, 234, 212, 0.22);
}

html[data-theme="dark"] .premium-plan-actions--large .premium-plan-btn .btn-label {
    color: rgba(240, 249, 255, 0.95);
}

html[data-theme="dark"] .premium-plan-actions--large .premium-plan-btn .btn-subtext {
    color: rgba(203, 213, 225, 0.88);
}

html[data-theme="dark"] .premium-plan-actions--large .premium-plan-btn .btn-tag {
    color: rgba(125, 211, 252, 0.95);
}

html[data-theme="dark"] .premium-plan-btn--idle {
    border-color: rgba(147, 197, 253, 0.6);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(30, 64, 175, 0.28));
    box-shadow: 0 22px 48px rgba(8, 47, 73, 0.46);
}

html[data-theme="dark"] .premium-plan-btn--selected,
html[data-theme="dark"] .premium-plan-btn[aria-pressed="true"] {
    border-color: rgba(191, 219, 254, 0.95);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.34), rgba(72, 187, 255, 0.28));
    box-shadow: 0 30px 58px rgba(30, 64, 175, 0.42);
}

html[data-theme="dark"] .premium-info-banner {
    background: rgba(30, 64, 175, 0.32);
    color: rgba(240, 249, 255, 0.92);
}

html[data-theme="dark"] .premium-email-step {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.22), rgba(22, 63, 104, 0.22));
    border: 1px solid rgba(94, 234, 212, 0.18);
}

html[data-theme="dark"] .premium-offer-form .premium-send-btn {
    box-shadow: 0 16px 32px rgba(6, 14, 26, 0.45);
}

.premium-offer {
    width: 100%;
}

.premium-plan-btn {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.85), rgba(255, 255, 255, 0.92));
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), border-width var(--transition-fast), background var(--transition-fast);
}

.premium-plan-btn--idle {
    border-width: 2px;
    border-style: dashed;
    border-color: rgba(24, 119, 242, 0.42);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.78), rgba(255, 255, 255, 0.94));
    box-shadow: 0 18px 40px rgba(24, 119, 242, 0.16);
}

.premium-plan-btn--selected,
.premium-plan-btn[aria-pressed="true"] {
    border-width: 3px;
    border-style: solid;
    border-color: rgba(37, 99, 235, 0.92);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(99, 210, 161, 0.18));
    box-shadow: 0 28px 56px rgba(37, 99, 235, 0.28);
}

.premium-plan-btn .btn-label {
    display: block;
    padding-right: 48px;
}

.premium-plan-btn .btn-tag {
    background: rgba(24, 119, 242, 0.1);
    border-radius: 999px;
    padding: 4px 10px;
}

.premium-plan-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(24, 119, 242, 0.16);
}

.premium-plan-btn:focus-visible {
    outline: 3px solid rgba(24, 119, 242, 0.35);
    outline-offset: 4px;
}

.premium-plan-btn--selected .btn-badge,
.premium-plan-btn[aria-pressed="true"] .btn-badge {
    background: rgba(24, 119, 242, 0.92);
    color: #fff;
    transform: scale(1.08);
}

.premium-plan-btn--selected .btn-active-icon,
.premium-plan-btn[aria-pressed="true"] .btn-active-icon {
    opacity: 1;
    transform: scale(1);
    background: rgba(24, 119, 242, 0.92);
    color: #fff;
}

.premium-plan-btn--selected .btn-tag,
.premium-plan-btn[aria-pressed="true"] .btn-tag {
    background: rgba(24, 119, 242, 0.16);
    color: rgba(24, 119, 242, 1);
}

.premium-email-step {
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.08), rgba(99, 210, 161, 0.08));
    padding: 22px 24px;
    border: 1px solid rgba(24, 119, 242, 0.18);
}

.premium-offer-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 220px) auto;
}

.premium-offer-form .premium-email-input {
    min-width: 0;
}

.premium-offer-form .premium-send-btn {
    align-self: stretch;
    min-width: 160px;
    font-size: 1.02rem;
    padding-inline: 18px;
}

.premium-offer-form .premium-email-label {
    font-size: 1.05rem;
}

.premium-info-banner {
    font-size: 0.95rem;
}

.premium-email-step .premium-offer-note {
    font-size: 0.9rem;
}

.premium-email-step .premium-status {
    font-size: 0.95rem;
}

.premium-email-step .premium-download-card {
    margin-top: 12px;
}

@media (max-width: 1024px) {
    .premium-hero {
        grid-template-columns: 1fr;
        padding: 32px 28px;
    }

    .premium-hero-visual {
        order: -1;
    }

    .premium-hero-card {
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .premium-hero {
        padding: 26px 22px;
    }

    .premium-hero-highlights {
        grid-template-columns: 1fr;
    }

    .premium-plan-actions--large {
        grid-template-columns: 1fr;
    }

    .premium-summary {
        padding: 22px 18px;
    }

    .premium-plan-btn .btn-badge {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .premium-plan-btn .btn-active-icon {
        right: 12px;
        bottom: 12px;
    }

    .premium-email-step {
        padding: 20px;
    }

    .premium-offer-form {
        grid-template-columns: 1fr;
    }

    .premium-offer-form .premium-email-input,
    .premium-offer-form .premium-send-btn {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .premium-info-banner {
        grid-column: 1 / span 2;
        align-self: stretch;
        justify-content: flex-start;
        font-size: 1rem;
    }

    .premium-email-step {
        grid-column: 1 / -1;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 16px;
    }

    .premium-email-step .premium-offer-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 220px) auto;
        gap: 14px;
    }

    .premium-email-step .premium-offer-form .premium-send-btn {
        min-height: 58px;
    }

    .premium-email-step .premium-offer-note,
    .premium-email-step .premium-status,
    .premium-email-step .premium-download-card {
        margin-left: 2px;
    }
}

@media (max-width: 540px) {
    .premium-info-banner {
        width: 100%;
        border-radius: 20px;
        justify-content: center;
        text-align: center;
        line-height: 1.35;
    }

    .premium-hero-card {
        width: 100%;
    }

    .premium-card-ribbon {
        top: -28px;
        left: 18px;
        width: 68px;
        height: 68px;
    }
}

.premium-offer-header h2 {
    margin: 0;
    font-size: 1.35rem;
}

.premium-offer-header p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.premium-plan-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.premium-plan-btn {
    position: relative;
    padding: 16px;
    text-align: left;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    min-height: 72px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), border-width var(--transition-fast), background var(--transition-fast);
}

.premium-plan-btn .btn-label {
    font-size: 1.1rem;
    font-weight: 700;
}

.premium-plan-btn .btn-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.premium-plan-btn--selected,
.premium-plan-btn[aria-pressed="true"] {
    box-shadow: 0 28px 56px rgba(37, 99, 235, 0.28);
    transform: translateY(-2px);
}

.premium-plan-btn--selected.btn-secondary,
.premium-plan-btn[aria-pressed="true"].btn-secondary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(24, 119, 242, 0.08));
    border-color: rgba(37, 99, 235, 0.82);
}

.premium-plan-btn:disabled {
    pointer-events: none;
}

.premium-email-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-hidden {
    display: none;
}

.premium-download-card.premium-hidden {
    display: none !important;
}

.premium-offer-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: flex-end;
}

.premium-email-label {
    grid-column: 1 / -1;
    font-weight: 600;
    font-size: 0.95rem;
}

.premium-email-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 12px 14px;
    font-size: 1rem;
    line-height: 1.4;
    background-color: var(--bg-soft);
    color: var(--text);
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.premium-email-input::placeholder {
    color: var(--text-muted);
}

.premium-email-input:focus {
    outline: 2px solid rgba(24, 119, 242, 0.3);
    border-color: rgba(24, 119, 242, 0.5);
}

.premium-email-input:disabled {
    opacity: 0.7;
}

.premium-email-input:focus-visible {
    outline-offset: 2px;
}

.premium-paypal {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.premium-paypal-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.premium-paypal-buttons {
    min-height: 48px;
    display: flex;
    align-items: center;
}

/* Transparence neutre pour l'étape 2 (paiement) */
.premium-payment {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding: 1.8rem 2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: var(--text);
    position: relative;
    overflow: hidden;
    transition: background 0.3s, box-shadow 0.3s, border 0.3s;
}

html[data-theme="dark"] .premium-payment {
    background: rgba(24, 28, 40, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.22);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.13);
    color: var(--text);
}

/* Futuristic animated border/glow */
.premium-payment::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 28px;
    background: conic-gradient(from 0deg,
            rgba(37, 99, 235, .0) 0deg,
            rgba(37, 99, 235, .35) 120deg,
            rgba(99, 210, 161, .45) 240deg,
            rgba(37, 99, 235, .35) 360deg);
    filter: blur(0.8px);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    opacity: .22;
    pointer-events: none;
    animation: glow-rotate 8s linear infinite;
}

.premium-payment::after {
    content: '';
    position: absolute;
    inset: 18% 6% auto 30%;
    height: 160px;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
    opacity: .6;
    pointer-events: none;
}

.premium-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .35), 0 0 0 1px rgba(120, 60, 255, .15) inset;
}

.premium-payment.is-loading {
    cursor: progress;
}

.premium-payment.is-ready {
    box-shadow: 0 14px 38px -24px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 200, 255, .12) inset;
}

.premium-payment.is-approved {
    animation: approved-pulse 1.2s ease-out 1;
    box-shadow: 0 18px 50px -22px rgba(0, 0, 0, .45), 0 0 0 2px rgba(56, 225, 150, .22) inset;
}

.premium-payment__header {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    position: relative;
    z-index: 1;
}

.premium-payment__badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(24, 119, 242, 0.36));
    color: rgba(24, 119, 242, 0.92);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px -18px rgba(37, 99, 235, 0.72);
}

html[data-theme="dark"] .premium-payment__badge {
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.3), rgba(37, 99, 235, 0.42));
    color: rgba(224, 243, 255, 0.95);
    box-shadow: 0 18px 42px -22px rgba(37, 99, 235, 0.7);
}

.premium-payment__title {
    margin: 0;
    font-size: 1.58rem;
    font-weight: 700;
    color: var(--text);
}

.premium-payment__subtitle {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.5;
}

.premium-payment__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

@media (min-width: 880px) {
    .premium-payment__body {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    }
}

.premium-flow {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.premium-flow-steps {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

@media (min-width: 880px) {
    .premium-flow-steps {
        padding-right: 0.5rem;
    }
}

.premium-flow-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(24, 119, 242, 0.18);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 255, 0.78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: border-color .28s ease, box-shadow .28s ease, transform .22s ease, background .28s ease, opacity .24s ease;
}

html[data-theme="dark"] .premium-flow-step {
    background: linear-gradient(160deg, rgba(26, 36, 48, 0.92), rgba(15, 22, 33, 0.9));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.premium-flow-step::after {
    content: '';
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity .24s ease, transform .24s ease;
}

.premium-flow-step-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.98rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(24, 119, 242, 0.36));
    color: rgba(24, 119, 242, 0.92);
    box-shadow: 0 12px 28px -22px rgba(24, 119, 242, 0.55);
}

html[data-theme="dark"] .premium-flow-step-marker {
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.3), rgba(37, 99, 235, 0.42));
    color: rgba(224, 243, 255, 0.95);
    box-shadow: 0 12px 32px -24px rgba(37, 99, 235, 0.6);
}

.premium-flow-step-copy {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.premium-flow-step-title {
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--text);
}

.premium-flow-step-subtitle {
    font-size: 0.89rem;
    color: var(--text-muted);
}

.premium-flow-step.is-locked {
    opacity: 0.68;
    filter: saturate(0.82);
}

.premium-flow-step.is-active {
    border-color: rgba(24, 119, 242, 0.45);
    box-shadow: 0 16px 46px -34px rgba(24, 119, 242, 0.45);
    transform: translateY(-1px);
}

html[data-theme="dark"] .premium-flow-step.is-active {
    border-color: rgba(94, 234, 212, 0.32);
    box-shadow: 0 22px 54px -42px rgba(8, 18, 30, 0.9);
}

.premium-flow-step.is-ready {
    border-color: rgba(37, 99, 235, 0.42);
    opacity: 0.96;
}

.premium-flow-step.is-complete {
    border-color: rgba(56, 225, 150, 0.5);
    background: linear-gradient(160deg, rgba(223, 248, 235, 0.92), rgba(185, 244, 214, 0.78));
    box-shadow: 0 18px 48px -36px rgba(16, 120, 88, 0.35);
}

html[data-theme="dark"] .premium-flow-step.is-complete {
    background: linear-gradient(160deg, rgba(25, 54, 46, 0.94), rgba(18, 44, 37, 0.9));
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 22px 58px -38px rgba(4, 20, 14, 0.85);
}

.premium-flow-step.is-locked::after {
    content: '🔒';
    opacity: .5;
    transform: translateY(-50%) scale(1);
}

.premium-flow-step.is-active::after {
    content: '⏳';
    opacity: .6;
    transform: translateY(-50%) scale(1);
}

.premium-flow-step.is-ready::after {
    content: '✨';
    opacity: .85;
    transform: translateY(-50%) scale(1.05);
}

.premium-flow-step.is-complete::after {
    content: '✔';
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
    color: rgba(34, 197, 94, 0.9);
}

html[data-theme="dark"] .premium-flow-step.is-complete::after {
    color: rgba(134, 239, 172, 0.95);
}

.premium-flow-hint {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.premium-payment__gateway {
    position: relative;
    flex: 1 1 320px;
    padding: 1.2rem 1.4rem;
    border-radius: 20px;
    border: 1px solid rgba(24, 119, 242, 0.22);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 255, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 18px 46px -28px rgba(12, 37, 63, 0.45);
    overflow: visible;
    z-index: 2;
    min-height: 220px;
}

html[data-theme="dark"] .premium-payment__gateway {
    background: linear-gradient(150deg, rgba(26, 36, 48, 0.92), rgba(14, 20, 28, 0.88));
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 54px -32px rgba(0, 0, 0, 0.8);
}

.premium-payment__gateway.is-locked {
    border-style: dashed;
    opacity: 0.95;
}

.premium-payment__gateway-glow {
    position: absolute;
    inset: -40% -60% 30% 10%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.32) 0%, rgba(24, 119, 242, 0.08) 42%, rgba(24, 119, 242, 0) 70%);
    filter: blur(0px);
    opacity: .7;
    pointer-events: none;
}

.premium-payment-buttons {
    position: relative;
    z-index: 1;
    display: grid;
    grid-auto-flow: row;
    gap: 1rem;
    width: 100%;
    justify-items: stretch;
    transition: opacity .28s ease, transform .28s ease;
}

@media (min-width: 720px) {
    .premium-payment-buttons {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.premium-payment-buttons.is-locked {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.premium-payment-buttons.is-locked .payment-button {
    opacity: 0 !important;
    pointer-events: none !important;
}

.premium-payment-lock {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 1.1rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    border: 1px dashed rgba(24, 119, 242, 0.28);
    background: rgba(244, 247, 255, 0.65);
    color: var(--text);
    transition: opacity .24s ease, transform .24s ease;
}

html[data-theme="dark"] .premium-payment-lock {
    background: rgba(25, 34, 50, 0.75);
    border-color: rgba(94, 234, 212, 0.22);
}

.premium-payment-lock[hidden] {
    display: none !important;
}

.premium-payment-lock-icon {
    font-size: 1.22rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.premium-payment-lock-title {
    margin: 0;
    font-weight: 600;
    font-size: 0.96rem;
}

.premium-payment-lock-text {
    margin: 0.15rem 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.payment-button {
    --payment-accent: rgba(24, 119, 242, 0.6);
    --payment-accent-alt: rgba(99, 210, 161, 0.45);
    --payment-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 255, 0.78));
    flex: 1 1 auto;
    width: 100%;
    min-height: 68px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    border: none;
    background: var(--payment-surface);
    box-shadow: 0 30px 60px -34px rgba(16, 43, 73, 0.55);
    position: relative;
    overflow: hidden;
    transition: opacity .22s ease, transform .28s ease, box-shadow .28s ease;
    opacity: 0;
    pointer-events: none;
    isolation: isolate;
}

html[data-theme="dark"] .payment-button {
    --payment-surface: linear-gradient(150deg, rgba(14, 22, 34, 0.96), rgba(9, 14, 22, 0.86));
    --payment-accent: rgba(94, 234, 212, 0.6);
    --payment-accent-alt: rgba(59, 130, 246, 0.55);
    box-shadow: 0 34px 72px -40px rgba(0, 0, 0, 0.9);
}

.payment-button.loading {
    opacity: 1;
}

.payment-button.has-paypal {
    opacity: 1;
    pointer-events: auto;
}

.payment-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, var(--payment-accent), var(--payment-accent-alt), var(--payment-accent));
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: .55;
    pointer-events: none;
    transition: opacity .35s ease;
}

.payment-button.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    animation: shimmer 1.8s infinite;
    pointer-events: none;
}

.payment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 32px 64px -30px rgba(16, 43, 73, 0.6);
}

html[data-theme="dark"] .payment-button:hover {
    box-shadow: 0 40px 78px -38px rgba(0, 0, 0, 0.95);
}

.payment-button iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 16px;
    box-shadow: 0 18px 40px -26px rgba(16, 43, 73, 0.38);
    border: 0 !important;
    background: transparent;
}

html[data-theme="dark"] .payment-button iframe {
    box-shadow: 0 20px 48px -28px rgba(0, 0, 0, 0.75);
}

.payment-button.is-hidden {
    display: none !important;
}

.payment-button--card {
    --payment-accent: rgba(245, 184, 103, 0.75);
    --payment-accent-alt: rgba(253, 230, 138, 0.6);
    --payment-surface: linear-gradient(140deg, rgba(254, 245, 225, 0.95), rgba(250, 231, 197, 0.78));
}

/* Masquage carte sur mobile (gardée desktop) */
.payment-button--card.is-hidden-mobile {
    display: none !important;
}

@media (min-width: 769px) {
    .payment-button--card.is-hidden-mobile {
        display: flex !important;
    }
}

html[data-theme="dark"] .payment-button--card {
    --payment-surface: linear-gradient(145deg, rgba(66, 48, 24, 0.94), rgba(38, 26, 12, 0.88));
    --payment-accent: rgba(255, 212, 130, 0.68);
    --payment-accent-alt: rgba(255, 176, 67, 0.58);
}

.payment-button--apple {
    --payment-accent: rgba(76, 92, 112, 0.6);
    --payment-accent-alt: rgba(147, 197, 253, 0.45);
    --payment-surface: linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(229, 236, 244, 0.78));
}

html[data-theme="dark"] .payment-button--apple {
    --payment-surface: linear-gradient(150deg, rgba(23, 30, 40, 0.95), rgba(10, 16, 24, 0.9));
    --payment-accent: rgba(148, 191, 255, 0.65);
    --payment-accent-alt: rgba(94, 234, 212, 0.55);
}

@media (max-width: 560px) {
    .payment-button {
        min-height: 64px;
        padding: 4px;
    }

    .payment-button iframe {
        border-radius: 14px;
        box-shadow: 0 16px 32px -24px rgba(16, 43, 73, 0.32);
    }
}

.premium-payment__note {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

html[data-theme="dark"] .premium-payment__note {
    color: rgba(203, 213, 225, 0.82);
}

@media (max-width: 960px) {
    .premium-payment {
        padding: 1.6rem 1.6rem;
        border-radius: 22px;
    }

    .premium-payment__body {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .premium-payment__gateway {
        padding: 1.1rem 1.2rem;
    }

    .premium-payment__badge {
        align-self: center;
    }

    .premium-payment__title,
    .premium-payment__subtitle {
        text-align: center;
        max-width: none;
    }
}

@media (max-width: 560px) {
    .premium-payment {
        padding: 1.4rem 1.2rem;
    }

    .premium-payment__gateway {
        padding: 1rem;
    }
}

@keyframes shimmer {
    to {
        transform: translateX(100%);
    }
}

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

@keyframes approved-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 225, 150, .35), 0 0 0 2px rgba(56, 225, 150, .12) inset;
    }

    70% {
        box-shadow: 0 0 0 14px rgba(56, 225, 150, 0), 0 0 0 2px rgba(56, 225, 150, .24) inset;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 225, 150, 0), 0 0 0 1px rgba(56, 225, 150, .16) inset;
    }
}

#postPaymentForm {
    margin-top: 1.4rem;
    padding: 1.2rem 1.4rem;
    border: 1px dashed var(--border-muted, rgba(0, 0, 0, 0.15));
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 249, 0.96));
}

html[data-theme="dark"] #postPaymentForm {
    background: linear-gradient(135deg, rgba(24, 32, 36, 0.75), rgba(16, 24, 28, 0.78));
    border-color: rgba(255, 255, 255, 0.08);
}

#postPaymentForm.premium-hidden {
    display: none;
}

#generatePdfBtn {
    min-width: 220px;
    font-weight: 600;
}

html[data-theme="dark"] .premium-email-input {
    background-color: var(--bg-muted);
    border-color: var(--border);
    color: var(--text);
}

html[data-theme="dark"] .premium-email-input::placeholder {
    color: rgba(229, 241, 236, 0.68);
}

.premium-send-btn {
    min-height: 48px;
    white-space: nowrap;
}

.premium-offer-note {
    margin: 0;
}

.premium-status {
    min-height: 20px;
    font-size: 0.95rem;
    margin: 0;
}

.premium-status.is-success {
    color: #1e824c;
}

.premium-status.is-error {
    color: #c44536;
}

.premium-download-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.12), rgba(24, 119, 242, 0.04));
    border: 1px solid rgba(24, 119, 242, 0.22);
    box-shadow: 0 14px 34px rgba(24, 119, 242, 0.12);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.premium-download-card--reveal {
    animation: premiumDownloadReveal 0.45s ease-out;
}

.premium-download-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.premium-download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #1877f2, #4f9dfc);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(24, 119, 242, 0.28);
}

.premium-download-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.premium-download-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
}

.premium-download-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.premium-download-link {
    align-self: flex-start;
    min-width: 0;
    padding-inline: 22px;
    box-shadow: 0 12px 24px rgba(24, 119, 242, 0.22);
}

.premium-download-link:focus-visible {
    outline-offset: 4px;
}

.premium-download-help {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.premium-download-help a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

html[data-theme="dark"] .premium-download-card {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.22), rgba(24, 119, 242, 0.08));
    border-color: rgba(79, 157, 252, 0.35);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .premium-download-icon {
    box-shadow: 0 10px 24px rgba(9, 20, 43, 0.55);
}

.premium-history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.premium-history-title {
    margin: 0;
    font-size: 1.35rem;
}

.premium-history-subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.premium-history-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.premium-history-card {
    border: 1px solid rgba(24, 119, 242, 0.18);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.08), rgba(24, 119, 242, 0.02));
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(24, 119, 242, 0.12);
}

.premium-history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.premium-history-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.premium-history-card-date {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.premium-history-card-meta {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.premium-history-card-email {
    margin: 0;
    font-size: 0.95rem;
}

.premium-history-card-expiry {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.premium-history-download {
    box-shadow: 0 10px 24px rgba(24, 119, 242, 0.18);
}

html[data-theme="dark"] .premium-history-card {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.18), rgba(24, 119, 242, 0.05));
    border-color: rgba(79, 157, 252, 0.28);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .premium-history-card-date,
html[data-theme="dark"] .premium-history-card-meta,
html[data-theme="dark"] .premium-history-card-expiry {
    color: rgba(229, 241, 236, 0.68);
}

@keyframes premiumDownloadReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .premium-plan-actions {
        grid-template-columns: 1fr;
    }

    .premium-offer-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .premium-send-btn {
        width: 100%;
    }
}

.theme-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
}

.theme-toggle-btn {
    padding: 8px 11px;
    font-size: 1.1rem;
}

label[for] {
    font-weight: 600;
}

@media (max-width: 980px) {
    .content {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-deco {
        display: none;
    }
}

@media (max-width: 600px) {
    .form-card {
        padding: 24px 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .field,
    .field--half,
    .field--wide {
        grid-column: 1 / -1;
    }

    .field--stack {
        grid-template-columns: 1fr;
    }

    .form-intro {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 10px;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .actions .btn {
        width: 100%;
        min-width: 0;
        padding: 10px 0;
        font-size: 0.95rem;
        min-height: 60px;
    }

    .actions .request-counter {
        width: 100%;
        min-height: 60px;
    }

    .idea-detail-search {
        flex-direction: column;
        gap: 12px;
    }

    .idea-detail-search .btn {
        width: 100%;
    }

    .site-nav {
        position: fixed;
        inset: auto 16px 18px;
        width: calc(100% - 32px);
        padding: 10px 14px;
        gap: 8px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(148, 163, 184, 0.25);
        box-shadow: 0 18px 38px rgba(15, 47, 34, 0.16);
        flex-wrap: nowrap;
        justify-content: space-between;
        backdrop-filter: blur(18px);
        margin: 0 auto;
    }

    .site-nav__link {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 6px 4px;
        border-radius: 16px;
        font-size: 0.72rem;
        font-weight: 600;
        gap: 4px;
        color: var(--text-muted);
    }

    .site-nav__link::before {
        content: attr(data-icon);
        font-size: 1.2rem;
        line-height: 1;
    }

    .site-nav__link:not([data-icon="💎"]).site-nav__link--active {
        color: var(--text);
        background: rgba(30, 143, 110, 0.12);
        box-shadow: 0 10px 20px rgba(30, 143, 110, 0.15);
        transform: translateY(-4px);
    }

    .site-nav__link:not([data-icon="💎"]):hover {
        background: rgba(30, 143, 110, 0.14);
        color: var(--text);
    }

    .site-nav__link[data-icon="💎"] {
        background: linear-gradient(135deg, rgba(248, 212, 120, 0.98) 0%, rgba(241, 180, 88, 0.96) 60%, rgba(255, 243, 210, 0.98) 100%) !important;
        color: #1a1000 !important;
        font-family: 'Playfair Display', 'Inter', serif;
        font-weight: 700;
        border-radius: 18px;
        box-shadow: 0 18px 36px rgba(232, 180, 72, 0.42);
        border: 1px solid rgba(245, 184, 103, 0.9);
        text-shadow: 0 2px 8px rgba(255, 236, 180, 0.18);
        padding: 6px 4px;
    }

    .site-nav__link[data-icon="💎"]:hover,
    .site-nav__link[data-icon="💎"]:focus-visible,
    .site-nav__link[data-icon="💎"]:active,
    .site-nav__link[data-icon="💎"].site-nav__link--active {
        background: linear-gradient(135deg, rgba(248, 212, 120, 0.98) 0%, rgba(241, 180, 88, 0.96) 60%, rgba(255, 243, 210, 0.98) 100%) !important;
        color: #1a1000 !important;
        box-shadow: 0 18px 36px rgba(232, 180, 72, 0.42), 0 0 0 3px rgba(252, 225, 164, 0.22);
        border-color: rgba(245, 184, 103, 0.9);
        transform: translateY(-4px);
    }

    html[data-theme="dark"] .site-nav {
        background: rgba(18, 26, 24, 0.9);
        border-color: rgba(62, 87, 79, 0.55);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
    }

    html[data-theme="dark"] .site-nav__link {
        color: rgba(226, 233, 229, 0.82);
    }

    html[data-theme="dark"] .site-nav__link:not([data-icon="💎"]).site-nav__link--active {
        background: rgba(99, 210, 161, 0.18);
        color: var(--text);
        box-shadow: 0 12px 26px rgba(99, 210, 161, 0.24);
    }
}

@media (max-width: 600px) {
    .idea-detail-visual {
        max-height: 240px;
    }

    .idea-detail-visual img {
        max-height: 240px;
    }

    .saved-idea-image {
        height: 150px;
    }
}

.saved-idea-image {
    height: 150px;
}

/* Landing celebration overlay */
.landing-celebration {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 10, 26, 0.78);
    backdrop-filter: blur(6px);
    z-index: 4000;
    animation: celebration-fade-in 0.1s ease-out forwards;
    pointer-events: auto;
}

.landing-celebration__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.landing-celebration__gift {
    font-size: clamp(5rem, 11vw, 8rem);
    filter: drop-shadow(0 18px 32px rgba(255, 216, 121, 0.45));
    transform: scale(0.4) rotate(-12deg);
    animation:
        gift-pop 0.38s cubic-bezier(.22, 1.25, .38, 1) forwards,
        gift-drop 0.68s cubic-bezier(.18, .69, .32, 1.04) 0.28s forwards;
}

.landing-celebration__confetti-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.landing-confetti {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 18px;
    border-radius: 4px;
    opacity: 0;
    transform-origin: center;
    animation: confetti-blast 0.88s ease-out forwards;
}

.landing-celebration--hide {
    animation: celebration-fade-out 0.18s ease-in forwards;
}

@keyframes celebration-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes celebration-fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes gift-pop {
    0% {
        transform: scale(0.4) rotate(-12deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.05) rotate(6deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes gift-drop {
    0% {
        transform: scale(1) rotate(0deg) translateY(0);
        opacity: 1;
    }

    35% {
        transform: scale(1) rotate(-4deg) translateY(18px);
        opacity: 0.95;
    }

    100% {
        transform: scale(0.94) rotate(-8deg) translateY(260px);
        opacity: 0;
    }
}

@keyframes confetti-blast {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
    }

    15% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--confetti-x)), calc(-50% + var(--confetti-y))) rotate(var(--confetti-rot));
    }
}

/* Futuristic reveal animations */
html.reveal-enabled .reveal-block,
html.reveal-enabled .reveal-child {
    opacity: 0;
    transform-origin: 50% 65%;
    transform: translate3d(0, 26px, 0) scale(0.992);
    filter: blur(6px) saturate(0.98);
    transition:
        opacity 0.6s cubic-bezier(.2, .7, .2, 1),
        transform 0.6s cubic-bezier(.2, .7, .2, 1),
        filter 0.6s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
    backface-visibility: hidden;
    position: relative;
    z-index: 0;
}

html.reveal-enabled .reveal-child {
    transform-origin: 50% 50%;
    transform: translate3d(0, 18px, 0) scale(0.996);
    filter: blur(4px) saturate(0.99);
}

html.reveal-enabled .reveal-block.is-visible,
html.reveal-enabled .reveal-child.is-visible {
    opacity: 1;
    transform: perspective(1200px) translate3d(0, 0, 0) rotateX(0deg) scale(1);
    filter: blur(0px) saturate(1);
}

/* Booster futuriste pour la page générateur: plus de distance + blur qui se dissipe */
.generator-page.reveal-enabled .reveal-block,
.generator-page.reveal-enabled .reveal-child {
    transform: translate3d(0, 36px, 0) scale(0.988);
    filter: blur(9px) saturate(0.97);
    transition:
        opacity 0.85s cubic-bezier(.2, .7, .2, 1),
        transform 0.85s cubic-bezier(.2, .7, .2, 1),
        filter 0.85s cubic-bezier(.2, .7, .2, 1);
}

.generator-page.reveal-enabled .reveal-child {
    transform: translate3d(0, 24px, 0) scale(0.994);
    filter: blur(7px) saturate(0.99);
    transition:
        opacity 0.9s cubic-bezier(.2, .7, .2, 1),
        transform 0.9s cubic-bezier(.2, .7, .2, 1),
        filter 0.9s cubic-bezier(.2, .7, .2, 1);
}

.generator-page.reveal-enabled .reveal-block.is-visible,
.generator-page.reveal-enabled .reveal-child.is-visible {
    filter: blur(0) saturate(1);
}

/* Adaptation mobile: réduire intensité et distance pour performance sur petits écrans */
@media (max-width: 640px) {

    html.reveal-enabled .reveal-block,
    html.reveal-enabled .reveal-child {
        transform: translate3d(0, 18px, 0) scale(0.994);
        filter: blur(5px) saturate(0.98);
        transition-duration: 0.5s;
    }

    .generator-page.reveal-enabled .reveal-block,
    .generator-page.reveal-enabled .reveal-child {
        transform: translate3d(0, 20px, 0) scale(0.992);
        filter: blur(6px) saturate(0.98);
    }

    .generator-page.reveal-enabled .reveal-child {
        transform: translate3d(0, 14px, 0) scale(0.996);
        filter: blur(4px) saturate(0.99);
    }
}

@media (max-width: 420px) {

    html.reveal-enabled .reveal-block,
    html.reveal-enabled .reveal-child {
        transform: translate3d(0, 14px, 0) scale(0.996);
        filter: blur(3px) saturate(0.99);
        transition-duration: 0.45s;
    }

    .generator-page.reveal-enabled .reveal-block,
    .generator-page.reveal-enabled .reveal-child {
        transform: perspective(760px) translate3d(0, 24px, 0) rotateX(3deg) scale(0.988);
        filter: blur(6px) saturate(0.98);
    }

    .generator-page.reveal-enabled .reveal-child {
        transform: perspective(760px) translate3d(0, 18px, 0) rotateX(2deg) scale(0.994);
        filter: blur(5px) saturate(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    html.reveal-enabled .reveal-block,
    html.reveal-enabled .reveal-child {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}