/* ============================================================
   BeautyMatch — Design System 2.0
   Feminine · Modern · Attractive
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Comfortaa:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap');

/* Global: ensure [hidden] attribute always hides, even with display:flex/grid */
[hidden] { display: none !important; }

:root {
    /* Couleurs — palette éditoriale crème & rose vif (mockup 2026) */
    --color-primary: #e91e5f;
    --color-primary-dark: #c40f4e;
    --color-primary-light: #fbd3e0;
    --color-secondary: #1a1a1a;
    --color-accent: #f4a261;

    --color-rose: #e91e5f;
    --color-blush: #fdeef2;
    --color-lavender: #e8e0f0;
    --color-peach: #fff5ec;

    --color-success: #2a9d8f;
    --color-warning: #e9c46a;
    --color-danger: #e76f51;
    --color-info: #4a90d9;

    --color-bg: #f5efe6;
    --color-surface: #ffffff;
    --color-surface-alt: #efe7da;
    --color-border: #e7ddce;
    --color-border-strong: #d4c7b2;
    --color-header-bg: rgba(245, 239, 230, 0.9);

    --color-text: #141414;
    --color-text-muted: #6f675c;
    --color-text-light: #a49a8c;

    /* Typographie */
    --font-sans: 'Comfortaa', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Cormorant Garamond', 'Comfortaa', Georgia, serif;
    /* Logo conservé sur Archivo (inchangé) */
    --font-logo: 'Archivo', 'Comfortaa', -apple-system, sans-serif;

    /* Espacements */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Rayons */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    /* Ombres */
    --shadow-xs: 0 1px 2px rgba(20, 20, 20, 0.04);
    --shadow-sm: 0 2px 8px rgba(20, 20, 20, 0.06);
    --shadow-md: 0 8px 24px rgba(20, 20, 20, 0.08);
    --shadow-lg: 0 16px 48px rgba(20, 20, 20, 0.12);
    --shadow-xl: 0 24px 64px rgba(20, 20, 20, 0.16);
    --shadow-glow: 0 0 40px rgba(233, 30, 95, 0.15);

    /* Layout */
    --container-max: 1400px;
    --header-height: 72px;

    /* Transitions */
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #e91e5f 0%, #c40f4e 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    --gradient-warm: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    --gradient-rose: linear-gradient(135deg, #e91e5f 0%, #c40f4e 100%);
    --gradient-mesh: none;
}

/* ============================================================
   Thème sombre — activé via [data-theme="dark"] sur <html>
   Respecte aussi prefers-color-scheme: dark si pas de choix utilisateur
   ============================================================ */
:root[data-theme="dark"] {
    --color-primary: #ff5c8d;
    --color-primary-dark: #e91e5f;
    --color-primary-light: #5a1a2e;
    --color-secondary: #f0e6da;
    --color-accent: #f4a261;

    --color-rose: #ff5c8d;
    --color-blush: #2a1a22;
    --color-lavender: #2a2433;
    --color-peach: #2a2018;

    --color-success: #4ec1b3;
    --color-warning: #f4d28a;
    --color-danger: #f0917a;
    --color-info: #6fa9e8;

    --color-bg: #14110d;
    --color-surface: #1e1a14;
    --color-surface-alt: #261f17;
    --color-border: #3a3026;
    --color-border-strong: #4d4034;
    --color-header-bg: rgba(20, 17, 13, 0.9);

    --color-text: #f0e6da;
    --color-text-muted: #a89a86;
    --color-text-light: #6f6557;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 40px rgba(255, 92, 141, 0.2);

    --gradient-secondary: linear-gradient(135deg, #f0e6da 0%, #c4b8a6 100%);
}

/* Si l'utilisateur préfère le sombre système ET n'a pas choisi manuellement */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) {
        --color-primary: #ff5c8d;
        --color-primary-dark: #e91e5f;
        --color-primary-light: #5a1a2e;
        --color-secondary: #f0e6da;
        --color-accent: #f4a261;

        --color-rose: #ff5c8d;
        --color-blush: #2a1a22;
        --color-lavender: #2a2433;
        --color-peach: #2a2018;

        --color-success: #4ec1b3;
        --color-warning: #f4d28a;
        --color-danger: #f0917a;
        --color-info: #6fa9e8;

        --color-bg: #14110d;
        --color-surface: #1e1a14;
        --color-surface-alt: #261f17;
        --color-border: #3a3026;
        --color-border-strong: #4d4034;
        --color-header-bg: rgba(20, 17, 13, 0.9);

        --color-text: #f0e6da;
        --color-text-muted: #a89a86;
        --color-text-light: #6f6557;

        --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
        --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
        --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.65);
        --shadow-glow: 0 0 40px rgba(255, 92, 141, 0.2);

        --gradient-secondary: linear-gradient(135deg, #f0e6da 0%, #c4b8a6 100%);
    }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    background-image: var(--gradient-mesh);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-primary-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--color-primary-light); color: var(--color-primary-dark); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-surface-alt); }
::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}
main { flex: 1 0 auto; padding-block: var(--space-xl); }
main:has(.hero:first-child) { padding-top: 0; }
main:has(.page-hero:first-child) { padding-block: 0; }
main:has(.cat-page) { padding-block: 0; }
.section { padding-block: var(--space-2xl); }
.section--alt { background: var(--color-surface-alt); }

/* ---------- Header ---------- */
.site-header {
    background: var(--color-header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    height: var(--header-height);
}
.brand {
    font-family: var(--font-logo);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 0.95;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
}
.brand:hover { transform: scale(1.02); color: var(--color-text); }
.brand__match { color: var(--color-primary); }
.brand__mark { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-sm); margin-left: auto; }
.header-match-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.header-match-btn svg { flex-shrink: 0; }
.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    color: var(--color-text);
    transition: all var(--transition);
}
.header-icon:hover { background: var(--color-blush); color: var(--color-primary); }

/* ---------- PWA install button ---------- */
.pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-primary);
    background: var(--color-blush);
    border: 1px solid var(--color-primary);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    animation: pwaPulse 2s ease-in-out infinite;
    transition: all var(--transition);
}
.pwa-install-btn:hover {
    background: var(--color-primary);
    color: #fff;
    animation: none;
}
.pwa-install-btn[hidden] { display: none; }
.pwa-install-btn svg { flex-shrink: 0; }
.pwa-install-btn--panel { margin-bottom: var(--space-sm); }
@keyframes pwaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 30, 95, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(233, 30, 95, 0); }
}
@media (max-width: 600px) {
    .pwa-install-btn { animation: none; font-size: 0.75rem; padding: 0.35rem 0.7rem; }
    .pwa-install-btn span { display: inline; }
}

/* ---------- Hamburger toggle (always visible) ---------- */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}
.nav-toggle:hover { background: var(--color-blush); }
.nav-toggle span {
    width: 22px; height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Side panel menu ---------- */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 17, 13, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 200;
}
.nav-backdrop.show { opacity: 1; pointer-events: auto; }

.nav-panel {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    height: 100dvh;
    width: 400px;
    max-width: 90vw;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
    z-index: 210;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.nav-panel.open { transform: translateX(0); }

.nav-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: var(--color-surface);
    z-index: 2;
}
.nav-panel__brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}
.nav-panel__logo {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: filter var(--transition);
}
.nav-panel__brand-text {
    font-family: var(--font-logo);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 0.95;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}
/* Dark mode: brighten the logo so it pops on dark panel */
[data-theme="dark"] .nav-panel__logo {
    filter: brightness(1.15) drop-shadow(0 0 6px rgba(255, 92, 141, 0.3));
}
.nav-panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--color-text);
    transition: all var(--transition);
}
.nav-panel__close:hover { background: var(--color-blush); color: var(--color-primary); }

.nav-panel__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.nav-panel__search {
    position: relative;
    display: flex;
    align-items: center;
    margin: var(--space-md) var(--space-lg) var(--space-sm);
}
.nav-panel__search-icon {
    position: absolute;
    left: var(--space-md);
    display: inline-flex;
    align-items: center;
    color: var(--color-text-muted);
    pointer-events: none;
}
.nav-panel__search-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
    color: var(--color-text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.nav-panel__search-input::placeholder { color: var(--color-text-muted); }
.nav-panel__search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-surface);
    box-shadow: 0 0 0 3px rgba(233, 30, 95, 0.12);
}

.nav-panel__nav {
    display: flex;
    flex-direction: column;
    padding: var(--space-md) var(--space-md);
    gap: 2px;
    flex: 1;
}
.nav-panel__link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    transition: all var(--transition);
}
.nav-panel__link svg {
    color: var(--color-primary);
    opacity: 0.7;
    flex-shrink: 0;
    transition: opacity var(--transition), transform var(--transition);
}
.nav-panel__link:hover {
    background: var(--color-blush);
    color: var(--color-primary-dark);
}
.nav-panel__link:hover svg { opacity: 1; transform: scale(1.1); }

.nav-panel__footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    background: var(--color-surface-alt);
}
.nav-panel__footer .btn--block { width: 100%; justify-content: center; }
.nav-panel__lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
}
.theme-toggle--panel { margin-left: 0; }

@media (max-width: 600px) {
    .nav-panel { width: 100vw; max-width: 100vw; }
    .nav-panel__link { font-size: 1.1rem; }
    .header-actions .btn--sm { font-size: 0.8rem; }
    .header-match-btn span, .header-match-btn { gap: 0; }
    .header-match-btn svg + * { display: none; }
    .header-actions .btn--caps { display: none; }
}

/* ---------- Language switcher ---------- */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin-left: 0.25rem;
}
.lang-switcher__link {
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 0.15rem 0.3rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
}
.lang-switcher__link:hover { color: var(--color-text); }
.lang-switcher__link.is-active {
    color: var(--color-bg);
    background: var(--color-accent);
}
.lang-switcher__sep { color: var(--color-text-muted); opacity: 0.5; }

/* ---------- Theme toggle (dark mode) ---------- */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    margin-left: 0.25rem;
}
.theme-toggle:hover { background: var(--color-blush); color: var(--color-primary); }
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle__sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-bg);
    color: var(--color-text-muted);
    padding-block: var(--space-2xl);
    margin-top: var(--space-3xl);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--color-border);
}
.site-footer a { color: var(--color-text-muted); transition: color var(--transition); }
.site-footer a:hover { color: var(--color-primary); }
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--space-xl);
}
.site-footer__socials {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}
.site-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--color-text);
    color: #fff;
    transition: all var(--transition);
}
.site-footer__socials a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}
.site-footer__brand {
    font-family: var(--font-logo);
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}
.site-footer__brand .brand__match { color: var(--color-primary); }
.site-footer__col h4 {
    color: var(--color-text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    font-weight: 700;
}
.site-footer__col li { margin-bottom: var(--space-sm); font-size: 0.85rem; }
.site-footer__bottom {
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    font-size: 0.85rem;
    text-align: center;
    color: var(--color-text-light);
}
@media (max-width: 768px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.7rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-sans);
}
.btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(233, 30, 95, 0.25);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 30, 95, 0.35);
    color: #fff;
}
.btn--dark {
    background: #141414;
    color: #fff;
}
.btn--dark:hover {
    transform: translateY(-2px);
    background: #000;
    color: #fff;
    box-shadow: var(--shadow-md);
}
[data-theme="dark"] .btn--dark {
    background: #f0e6da;
    color: #141414;
}
[data-theme="dark"] .btn--dark:hover {
    background: #fff;
    color: #000;
}
.btn--secondary {
    background: var(--gradient-secondary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(107, 91, 149, 0.3);
}
.btn--secondary:hover { transform: translateY(-2px); filter: brightness(1.1); color: #fff; }
.btn--outline { background: transparent; border-color: var(--color-border-strong); color: var(--color-text); }
.btn--outline:hover { border-color: var(--color-primary); color: var(--color-primary-dark); background: var(--color-blush); }
.btn--ghost { background: transparent; color: var(--color-text); }
.btn--ghost:hover { background: var(--color-surface-alt); }
.btn--sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn--caps { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 700; }
.btn--lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Cartes ---------- */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition), transform var(--transition);
}
.card--hover:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.card__title { font-size: 1.1rem; font-weight: 600; margin-bottom: var(--space-sm); }
.card__body { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- Grilles de produits ---------- */
.grid { display: grid; gap: var(--space-lg); }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Hero de page (toutes les pages sauf l'accueil) ---------- */
.page-hero {
    background: var(--gradient-primary);
    color: #fff;
    padding: 0 var(--space-md);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: visible;
    isolation: isolate;
}
/* Décor (cercles) clipé dans un calque dédié pour laisser la photo déborder */
.page-hero__decor {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.page-hero__decor::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -8%;
    width: 380px;
    height: 380px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}
.page-hero__decor::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -6%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}
.page-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: var(--space-xl);
    align-items: center;
}
.page-hero__content { animation: pageHeroFade 0.7s ease-out; }
@keyframes pageHeroFade {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.page-hero__breadcrumb {
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
    opacity: 0.85;
}
.page-hero__breadcrumb a {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}
.page-hero__breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.page-hero__desc {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.92;
    margin-bottom: var(--space-md);
    max-width: 560px;
    line-height: 1.6;
}
.page-hero__extra { margin-top: var(--space-sm); }

/* Visuel portrait — classe & élégant */
.page-hero__visual {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-hero__photo {
    position: relative;
    width: 180px;
    height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: var(--color-surface);
}
.page-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Variant : photo grande qui déborde du hero (catégories) */
.page-hero--with-photo { padding-block: 0; }
.page-hero--with-photo .page-hero__inner {
    grid-template-columns: 1fr 1.3fr;
}
.page-hero--with-photo .page-hero__visual {
    min-height: 0;
    align-items: flex-start;
    justify-content: flex-start;
}
.page-hero__photo--bleed {
    width: 100%;
    height: 360px;
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 34px 70px -18px rgba(0, 0, 0, 0.45),
                0 14px 28px -10px rgba(0, 0, 0, 0.3);
    transform: translateY(45px);
    animation: heroPhotoFloat 7s ease-in-out infinite;
    will-change: transform;
}
/* Overlay gradient pour la profondeur + cohérence marque */
.page-hero__photo--bleed::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(233, 30, 95, 0.28), transparent 55%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}
.page-hero__photo--bleed img { object-position: center; }
@keyframes heroPhotoFloat {
    0%, 100% { transform: translateY(45px); }
    50%      { transform: translateY(36px); }
}

/* Variant : image en fond full-bleed (catégories) */
.page-hero--bg-image {
    background: transparent;
    color: #fff;
    padding: 0;
    overflow: hidden;
}
.page-hero--bg-image .page-hero__bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--hero-bg-url);
    background-size: cover;
    background-position: center;
    animation: heroBgZoom 18s ease-in-out infinite alternate;
}
.page-hero--bg-image .page-hero__bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(110deg, rgba(233, 30, 95, 0.82) 0%, rgba(233, 30, 95, 0.45) 45%, rgba(0, 0, 0, 0.35) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 60%);
}
.page-hero--bg-image .page-hero__inner {
    position: relative;
    z-index: 2;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding-block: var(--space-2xl);
    min-height: 320px;
    align-items: center;
}
.page-hero--bg-image .page-hero__content {
    max-width: 640px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.page-hero--bg-image .page-hero__title {
    font-size: clamp(1.9rem, 5vw, 3rem);
}
.page-hero--bg-image .page-hero__desc {
    font-size: 1.05rem;
    opacity: 0.96;
}
/* Variant tall : hero plus haut (pages catégories produits) */
.page-hero--bg-image--tall .page-hero__inner {
    min-height: 560px;
    padding-block: var(--space-3xl, 4rem);
}
.page-hero--bg-image--tall .page-hero__title {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
}
.page-hero--bg-image--tall .page-hero__desc {
    font-size: 1.15rem;
}
@media (max-width: 900px) {
    .page-hero--bg-image--tall .page-hero__inner { min-height: 440px; padding-block: var(--space-2xl, 3rem); }
}
@media (max-width: 560px) {
    .page-hero--bg-image--tall .page-hero__inner { min-height: 360px; }
}
@keyframes heroBgZoom {
    from { transform: scale(1.02); }
    to   { transform: scale(1.1); }
}
@media (max-width: 900px) {
    .page-hero--bg-image .page-hero__inner { min-height: 260px; padding-block: var(--space-xl); }
}
@media (max-width: 560px) {
    .page-hero--bg-image .page-hero__inner { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
    .page-hero--bg-image .page-hero__bg-img { animation: none; }
}
@media (max-width: 900px) {
    .page-hero__inner { grid-template-columns: 1fr; gap: var(--space-md); }
    .page-hero__visual { min-height: 160px; order: -1; }
    .page-hero__photo { width: 140px; height: 170px; }
    .page-hero--with-photo { padding-bottom: 0; }
    .page-hero--with-photo .page-hero__inner { grid-template-columns: 1fr; }
    .page-hero--with-photo .page-hero__visual { display: none; }
}
@media (max-width: 560px) {
    .page-hero { padding: 0 var(--space-md); }
    .page-hero__visual { min-height: 130px; }
    .page-hero__photo { width: 110px; height: 134px; border-width: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .page-hero__photo--bleed { animation: none; }
}

/* ---------- Hero (accueil) ---------- */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url('https://images.unsplash.com/photo-1596462502278-27bfdc403348?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.15); }
}
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(120deg, rgba(196, 91, 120, 0.85) 0%, rgba(107, 91, 149, 0.55) 50%, rgba(45, 31, 40, 0.75) 100%),
        linear-gradient(180deg, rgba(45, 31, 40, 0.15) 0%, rgba(45, 31, 40, 0.5) 100%);
}
.hero__split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
    align-items: center;
    padding-block: var(--space-3xl);
    width: 100%;
}
.hero__content {
    text-align: left;
    animation: heroFadeIn 0.8s ease-out;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-lg);
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero__subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.92);
    max-width: 520px;
    margin: 0 0 var(--space-xl);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.hero__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hero__actions .btn--light {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero__actions .btn--light:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.hero__stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}
.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero__stat strong {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.hero__stat span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Hero visual (photo + floating badges) ── */
.hero__visual {
    position: relative;
    animation: heroFadeIn 1s ease-out 0.2s both;
}
.hero__photo {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    aspect-ratio: 4 / 5;
    border: 4px solid rgba(255, 255, 255, 0.15);
}
.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero__badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: badgeFloat 3s ease-in-out infinite alternate;
}
.hero__badge-icon { font-size: 1.4rem; flex-shrink: 0; }
.hero__badge strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.2;
}
.hero__badge span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.hero__badge--rating {
    top: 8%;
    left: -8%;
    animation-delay: 0s;
}
.hero__badge--match {
    bottom: 18%;
    right: -6%;
    animation-delay: 1s;
}
.hero__badge--products {
    bottom: 4%;
    left: 5%;
    animation-delay: 2s;
}
@keyframes badgeFloat {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}

@media (max-width: 960px) {
    .hero__split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__content { text-align: center; }
    .hero__subtitle { margin-inline: auto; }
    .hero__actions { justify-content: center; }
    .hero__stats { justify-content: center; }
    .hero__stat { align-items: center; }
    .hero__visual { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 600px) {
    .hero { min-height: auto; padding: var(--space-xl) 0; }
    .hero__stats { gap: var(--space-lg); }
    .hero__stat strong { font-size: 1.6rem; }
    .hero__badge { padding: 0.5rem 0.8rem; }
    .hero__badge strong { font-size: 0.85rem; }
    .hero__badge span { font-size: 0.7rem; }
    .hero__badge--rating { left: 0; }
    .hero__badge--match { right: 0; }
}

/* ---------- Section heading ---------- */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    gap: var(--space-md);
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.section-head a { font-size: 0.9rem; font-weight: 600; }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.25em 0.8em;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
}
.badge--success { background: rgba(42, 157, 143, 0.1); color: var(--color-success); }
.badge--info { background: rgba(74, 144, 217, 0.1); color: var(--color-info); }
.badge--warning { background: rgba(233, 196, 106, 0.18); color: #b08a3e; }
.badge--primary { background: var(--color-primary-light); color: var(--color-primary-dark); }
.badge--new { background: var(--gradient-warm); color: #fff; box-shadow: var(--shadow-sm); }

/* ── Badges par niveau de match ── */
.badge--match-excellent { background: #10b981; color: #fff; }
.badge--match-very_good { background: #06b6d4; color: #fff; }
.badge--match-good { background: #6366f1; color: #fff; }
.badge--match-average { background: #b45309; color: #fff; }
.badge--match-low { background: #7c2d12; color: #fff; }

/* ---------- Score BeautyMatch ---------- */
.score {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
}
.score__value {
    font-size: 1.4rem;
    color: var(--color-primary-dark);
    font-family: var(--font-display);
}
.score__bar {
    width: 60px;
    height: 6px;
    background: var(--color-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.score__bar-fill { height: 100%; background: var(--gradient-primary); }

/* ---------- Étoiles ---------- */
.stars { color: var(--color-accent); letter-spacing: 2px; }
.stars--muted { color: var(--color-border-strong); }

/* ---------- Formulaires ---------- */
.form-group { margin-bottom: var(--space-md); }
.form-group > label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}
.form-control, input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], select, textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: var(--color-surface);
    color: var(--color-text);
    transition: all var(--transition);
}
.form-control:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(232, 128, 155, 0.12);
}
.form-check { display: flex; align-items: flex-start; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: auto; margin-top: 0.3rem; }
.form-check label { font-weight: 400; font-size: 0.95rem; margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Alertes / Flash ---------- */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    border: 1px solid transparent;
    font-size: 0.95rem;
}
.alert--success { background: rgba(42, 157, 143, 0.08); border-color: rgba(42, 157, 143, 0.25); color: var(--color-success); }
.alert--error { background: rgba(231, 111, 81, 0.08); border-color: rgba(231, 111, 81, 0.25); color: var(--color-danger); }
.alert--info { background: rgba(74, 144, 217, 0.08); border-color: rgba(74, 144, 217, 0.25); color: var(--color-info); }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 480px; margin: var(--space-3xl) auto; }
.auth-card {
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: var(--space-xs); }
.auth-card p.lead { color: var(--color-text-muted); margin-bottom: var(--space-lg); }
.auth-alt { text-align: center; margin-top: var(--space-lg); color: var(--color-text-muted); font-size: 0.9rem; }

/* ---------- Dashboard / Profile layout (sidebar + content) ---------- */
@keyframes dashFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .profile-section-card { animation: none !important; }
}

.profile-page { padding-top: var(--space-md); padding-bottom: var(--space-2xl); }
.profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* ===== Sidebar ===== */
.profile-nav {
    position: sticky;
    top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.profile-nav__user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}
.profile-nav__avatar {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    outline: 2px solid var(--color-surface);
    outline-offset: 2px;
}
.profile-nav__avatar-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; }
.profile-nav__avatar-initials { color: #fff; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.profile-nav__avatar-cam {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), color var(--transition);
    z-index: 2;
}
.profile-nav__avatar-cam:hover { transform: scale(1.1); background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.profile-nav__userinfo { display: flex; flex-direction: column; min-width: 0; }
.profile-nav__username { font-size: 0.95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-nav__email { font-size: 0.75rem; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.profile-nav__progress {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
}
.profile-nav__progress-value { font-size: 1rem; color: var(--color-primary); font-weight: 700; }
.profile-nav__progress-link { display: block; margin-top: var(--space-xs); font-size: 0.8rem; font-weight: 600; color: var(--color-primary); }

.profile-nav__links { display: flex; flex-direction: column; gap: 2px; }
.profile-nav__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: background 0.15s ease, color 0.15s ease;
}
.profile-nav__link:hover { background: var(--color-surface-alt); color: var(--color-text); }
.profile-nav__link.active { background: var(--color-primary); color: #fff; }
.profile-nav__link svg { flex-shrink: 0; opacity: 0.7; }
.profile-nav__link.active svg { opacity: 1; }

.profile-nav__actions { display: flex; flex-direction: column; gap: var(--space-xs); padding-top: var(--space-sm); border-top: 1px solid var(--color-border); }
.profile-nav__status { font-size: 0.8rem; color: var(--color-text-muted); text-align: center; }

/* ===== Content area ===== */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    min-width: 0;
}

/* ===== Section card (wrapper for each dashboard section) ===== */
.profile-section-card {
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    scroll-margin-top: var(--space-md);
    animation: dashFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.profile-section-card:nth-child(1) { animation-delay: 0.02s; }
.profile-section-card:nth-child(2) { animation-delay: 0.08s; }
.profile-section-card:nth-child(3) { animation-delay: 0.14s; }
.profile-section-card:nth-child(4) { animation-delay: 0.20s; }

.profile-section-card__head {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.profile-section-card__icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-section-card__icon--rose { background: rgba(233, 30, 95, 0.1); color: var(--color-primary); }
.profile-section-card__icon--coral { background: rgba(231, 111, 81, 0.12); color: #e76f51; }
.profile-section-card__icon--amber { background: rgba(244, 162, 97, 0.15); color: #d98a3a; }
.profile-section-card__icon--violet { background: rgba(114, 87, 167, 0.12); color: #7257a7; }
.profile-section-card__icon--teal { background: rgba(42, 157, 143, 0.12); color: #2a9d8f; }
:root[data-theme="dark"] .profile-section-card__icon--rose { background: rgba(255, 92, 141, 0.15); }
:root[data-theme="dark"] .profile-section-card__icon--coral { background: rgba(231, 111, 81, 0.18); }
:root[data-theme="dark"] .profile-section-card__icon--amber { background: rgba(244, 162, 97, 0.18); }
:root[data-theme="dark"] .profile-section-card__icon--violet { background: rgba(114, 87, 167, 0.18); }
:root[data-theme="dark"] .profile-section-card__icon--teal { background: rgba(42, 157, 143, 0.18); }

.profile-section-card__heading { flex: 1; min-width: 0; }
.profile-section-card__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.1rem;
    line-height: 1.2;
}
.profile-section-card__subtitle { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }
.profile-section-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    flex-shrink: 0;
}
.profile-section-card__badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.profile-section-card__badge--pending {
    background: rgba(233, 30, 95, 0.1);
    color: var(--color-primary);
}
.profile-section-card__badge--pending::before { animation: revealBadgePulse 1.6s ease-in-out infinite; }
.profile-section-card__link { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); white-space: nowrap; flex-shrink: 0; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .profile-layout { grid-template-columns: 1fr; gap: var(--space-md); }
    .profile-nav { position: static; }
    .profile-nav__links { flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
    .profile-nav__link { padding: 0.4rem 0.6rem; font-size: 0.8rem; }
    .profile-nav__link .profile-nav__label { display: none; }
    .profile-nav__actions { flex-direction: row; }
}
@media (max-width: 600px) {
    .profile-section-card { padding: var(--space-md); }
    .profile-section-card__title { font-size: 1.1rem; }
    .profile-section-card__head { flex-wrap: wrap; }
}

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); }
.stat-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.stat-card:hover::after { opacity: 1; }
.stat-card__icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition);
}
.stat-card:hover .stat-card__icon { transform: scale(1.1) rotate(-4deg); }
.stat-card__icon--rose { background: rgba(233, 30, 95, 0.1); color: var(--color-primary); }
.stat-card__icon--coral { background: rgba(231, 111, 81, 0.12); color: #e76f51; }
.stat-card__icon--amber { background: rgba(244, 162, 97, 0.15); color: #d98a3a; }
.stat-card__icon--violet { background: rgba(114, 87, 167, 0.12); color: #7257a7; }
.stat-card__icon--teal { background: rgba(42, 157, 143, 0.12); color: #2a9d8f; }
:root[data-theme="dark"] .stat-card__icon--rose { background: rgba(255, 92, 141, 0.15); }
:root[data-theme="dark"] .stat-card__icon--coral { background: rgba(231, 111, 81, 0.18); }
:root[data-theme="dark"] .stat-card__icon--amber { background: rgba(244, 162, 97, 0.18); }
:root[data-theme="dark"] .stat-card__icon--violet { background: rgba(114, 87, 167, 0.18); }
:root[data-theme="dark"] .stat-card__icon--teal { background: rgba(42, 157, 143, 0.18); }
.stat-card__body { flex: 1; }
.stat-card__value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--color-primary-dark); line-height: 1.1; }
.stat-card__label { color: var(--color-text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.15rem; }
.stat-card__link { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); margin-top: auto; transition: transform var(--transition), color var(--transition); }
.stat-card__link:hover { color: var(--color-primary-dark); transform: translateX(3px); }
.progress { height: 8px; background: var(--color-border); border-radius: var(--radius-pill); overflow: hidden; margin-top: var(--space-sm); position: relative; }
.progress__fill { height: 100%; background: var(--gradient-primary); transition: width 300ms ease; border-radius: var(--radius-pill); position: relative; overflow: hidden; }
.progress__fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: progressShimmer 2.2s ease-in-out infinite;
}
@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    60%, 100% { transform: translateX(100%); }
}

/* ---------- Quick access cards ---------- */
.quick-card { padding: var(--space-lg); text-align: left; position: relative; overflow: hidden; }
.quick-card::after {
    content: '→';
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--transition), transform var(--transition);
}
.quick-card:hover::after { opacity: 1; transform: translateX(0); }
.quick-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    transition: transform var(--transition);
}
.quick-card:hover .quick-card__icon { transform: scale(1.1) rotate(-4deg); }
.quick-card__icon--rose { background: rgba(233, 30, 95, 0.1); color: var(--color-primary); }
.quick-card__icon--coral { background: rgba(231, 111, 81, 0.12); color: #e76f51; }
.quick-card__icon--amber { background: rgba(244, 162, 97, 0.15); color: #d98a3a; }
.quick-card__icon--violet { background: rgba(114, 87, 167, 0.12); color: #7257a7; }
.quick-card__icon--teal { background: rgba(42, 157, 143, 0.12); color: #2a9d8f; }
:root[data-theme="dark"] .quick-card__icon--rose { background: rgba(255, 92, 141, 0.15); }
:root[data-theme="dark"] .quick-card__icon--coral { background: rgba(231, 111, 81, 0.18); }
:root[data-theme="dark"] .quick-card__icon--amber { background: rgba(244, 162, 97, 0.18); }
:root[data-theme="dark"] .quick-card__icon--violet { background: rgba(114, 87, 167, 0.18); }
:root[data-theme="dark"] .quick-card__icon--teal { background: rgba(42, 157, 143, 0.18); }
.quick-card .card__title { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 var(--space-xs); }
.quick-card .card__body { font-size: 0.88rem; color: var(--color-text-muted); margin: 0; }

/* ---------- Reveal section (photo analysis) — dans une profile-section-card ---------- */
.reveal-card {
    margin-bottom: 0;
    position: relative;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.reveal-card__header { display: none; }
.reveal-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    background: rgba(42, 157, 143, 0.12);
    color: var(--color-success);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    flex-shrink: 0;
}
.reveal-card__badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.reveal-card__badge--pending {
    background: rgba(233, 30, 95, 0.1);
    color: var(--color-primary);
}
.reveal-card__badge--pending::before {
    animation: revealBadgePulse 1.6s ease-in-out infinite;
}
@keyframes revealBadgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}
:root[data-theme="dark"] .reveal-card__badge { background: rgba(78, 193, 179, 0.15); }
:root[data-theme="dark"] .reveal-card__badge--pending { background: rgba(255, 92, 141, 0.15); }

/* Scanning animation */
.reveal-card__scanning {
    padding: var(--space-lg) 0;
}
.reveal-card__scanning[hidden] { display: none !important; }
.reveal-scan {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}
.reveal-scan__frame {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--color-border);
    position: relative;
    overflow: hidden;
    background: var(--color-surface-alt);
}
.reveal-scan__frame::before,
.reveal-scan__frame::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--color-primary);
}
.reveal-scan__frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.reveal-scan__frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
.reveal-scan__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8);
    opacity: 0.9;
}
.reveal-scan__line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    box-shadow: 0 0 12px var(--color-primary);
    animation: revealScanLine 1.8s ease-in-out infinite;
    z-index: 2;
}
@keyframes revealScanLine {
    0% { top: 0; opacity: 0.3; }
    50% { top: calc(100% - 3px); opacity: 1; }
    100% { top: 0; opacity: 0.3; }
}
.reveal-scan__text {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

/* Results body — grouped attribute panels (homogènes avec stat-cards) */
.reveal-card__body[hidden] { display: none !important; }
.reveal-card__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}
.reveal-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
    transition: box-shadow var(--transition);
    animation: dashFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reveal-group:nth-child(1) { animation-delay: 0.05s; }
.reveal-group:nth-child(2) { animation-delay: 0.12s; }
.reveal-group:nth-child(3) { animation-delay: 0.19s; }
.reveal-group:nth-child(4) { animation-delay: 0.26s; }
.reveal-group:hover { box-shadow: var(--shadow-sm); }
.reveal-group__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 400;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.reveal-group__label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-primary);
    flex-shrink: 0;
}
.reveal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.reveal-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 0.88rem;
    font-weight: 600;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.reveal-chip:hover { transform: translateY(-2px); border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.reveal-chip__swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--color-surface);
    box-shadow: 0 0 0 1px var(--color-border), inset 0 1px 3px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}
.reveal-chip__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.reveal-chip__label {
    font-size: 0.66rem;
    color: var(--color-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    order: -1;
}
.reveal-chip__value { font-weight: 700; font-size: 0.9rem; color: var(--color-text); }
:root[data-theme="dark"] .reveal-group { background: var(--color-surface); }
:root[data-theme="dark"] .reveal-chip { background: var(--color-surface-alt); }

/* Empty state */
.reveal-card__empty {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    color: var(--color-text-muted);
}
.reveal-card__empty[hidden] { display: none !important; }
.reveal-card__empty-icon {
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    opacity: 0.5;
}

/* Toolbar — confidence + actions */
.reveal-card__toolbar {
    margin-bottom: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
}
.reveal-card__toolbar[hidden] { display: none !important; }
.reveal-confidence {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    min-width: 180px;
    max-width: 320px;
}
.reveal-confidence__track {
    flex: 1;
    height: 8px;
    background: var(--color-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.reveal-confidence__fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-pill);
    width: 0%;
    transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.reveal-confidence__fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: progressShimmer 2.4s ease-in-out infinite;
}
.reveal-confidence__label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    font-weight: 700;
}
.reveal-card__actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 600px) {
    .reveal-card { padding: var(--space-md); }
    .reveal-card__title { font-size: 1.2rem; }
    .reveal-card__header { gap: var(--space-sm); }
    .reveal-card__icon { width: 40px; height: 40px; }
    .reveal-card__badge { font-size: 0.65rem; }
    .reveal-chips { gap: 0.4rem; }
    .reveal-chip { font-size: 0.82rem; padding: 0.4rem 0.7rem; }
    .reveal-card__toolbar { flex-direction: column; align-items: stretch; }
    .reveal-confidence { max-width: none; }
    .reveal-card__actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: var(--space-2xl) var(--space-md); color: var(--color-text-muted); }
.empty__icon { font-size: 3rem; margin-bottom: var(--space-md); opacity: 0.6; }

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-small { font-size: 0.85rem; }
.mt-0 { margin-top: 0; } .mt-md { margin-top: var(--space-md); } .mt-lg { margin-top: var(--space-lg); } .mt-xl { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; } .mb-md { margin-bottom: var(--space-md); } .mb-lg { margin-bottom: var(--space-lg); }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--space-sm); } .gap-md { gap: var(--space-md); }
.hidden { display: none; }

/* ---------- Produit (carte) ---------- */
.product-card {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    position: relative;
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--color-primary-light);
}
.product-card__link { text-decoration: none; color: inherit; display: block; }
.product-card__img {
    aspect-ratio: 1;
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 2rem;
    overflow: hidden;
    position: relative;
}
.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.4s ease;
}
.product-card:hover .product-card__img img {
    transform: scale(1.08);
}
.product-card .badge--new {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    z-index: 1;
}
.product-card__brand {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    display: block;
    margin-top: var(--space-xs);
    transition: color 0.2s;
    font-weight: 600;
}
.product-card__brand:hover { color: var(--color-primary); }
.product-card__name {
    font-weight: 600;
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__why {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-bottom: var(--space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__price {
    font-weight: 700;
    color: var(--color-text);
    font-size: 1.05rem;
}
.product-card__rating { display: flex; align-items: center; gap: var(--space-xs); font-size: 0.85rem; color: var(--color-text-muted); margin-top: var(--space-xs); }
.product-card__score { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-xs); }
.score-badge {
    display: inline-flex; align-items: center; gap: 0.2rem;
    padding: 0.2rem 0.6rem; border-radius: var(--radius-pill);
    font-size: 0.8rem; font-weight: 700;
}
.score-badge--high { background: rgba(34,197,94,0.1); color: #16a34a; }
.score-badge--mid { background: rgba(245,158,11,0.1); color: #d97706; }
.score-badge--low { background: rgba(239,68,68,0.1); color: #dc2626; }

/* ---------- Animations utilitaires ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.5s ease-out both; }
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }
.animate-in:nth-child(7) { animation-delay: 0.35s; }
.animate-in:nth-child(8) { animation-delay: 0.4s; }

/* ---------- Article (blog detail) ---------- */
.article-page { max-width: 820px; margin: 0 auto; padding: var(--space-lg) var(--space-md); }
.article { background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.article__header { padding: var(--space-lg) var(--space-lg) var(--space-md); text-align: center; }
.article__header .badge { margin-bottom: var(--space-sm); }
.article__header h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 var(--space-sm); line-height: 1.2; }
.article__excerpt { font-size: 1.1rem; color: var(--color-text-muted); margin: 0 0 var(--space-md); font-style: italic; }
.article__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); font-size: 0.85rem; color: var(--color-text-muted); }
.article__meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.article__cover { width: 100%; height: 320px; overflow: hidden; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article__content { padding: var(--space-lg); line-height: 1.75; font-size: 1.02rem; color: var(--color-text); }
.article__content h2 { font-family: var(--font-display); font-size: 1.5rem; margin: var(--space-lg) 0 var(--space-sm); }
.article__content h3 { font-size: 1.15rem; margin: var(--space-md) 0 var(--space-xs); }
.article__content p { margin: 0 0 var(--space-sm); }
.article__content ul, .article__content ol { margin: 0 0 var(--space-sm); padding-left: 1.4rem; }
.article__content li { margin-bottom: 0.3rem; }
.article__content blockquote {
    border-left: 4px solid var(--color-primary);
    background: var(--color-surface-alt);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-md) 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--color-text-muted);
}
.article__content table { margin: var(--space-md) 0; font-size: 0.95rem; }
.article__content figure.article__inline-img { margin: var(--space-md) 0; border-radius: var(--radius-md); overflow: hidden; }
.article__content figure.article__inline-img img { width: 100%; display: block; border-radius: var(--radius-md); }
.article__content figure.article__inline-img figcaption {
    text-align: center; font-size: 0.85rem; color: var(--color-text-muted);
    padding: var(--space-xs) var(--space-sm); font-style: italic;
}
.article__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 var(--space-lg) var(--space-lg); }

/* ---------- Blog listing ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-md); }
.blog-card { background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__img { width: 100%; height: 180px; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-card__body { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-xs); flex: 1; }
.blog-card__title { font-family: var(--font-display); font-size: 1.15rem; margin: 0; line-height: 1.3; }
.blog-card__excerpt { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; flex: 1; }
.blog-card__meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--color-text-muted); margin-top: var(--space-xs); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}
.cookie-banner__text {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    flex: 1;
}
.cookie-banner__icon { font-size: 1.5rem; flex-shrink: 0; }
.cookie-banner__text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text);
}
.cookie-banner__text a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}
.cookie-banner__actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cookie-banner__text { justify-content: center; }
    .cookie-banner__actions { justify-content: center; }
}

/* ============================================================
   COMPARE — Bouton carte + barre flottante + toast
   ============================================================ */

/* Menu d'actions sur les cartes produits (favori / comparer / partager) */
.product-card { position: relative; }
.product-card__menu-wrap {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    z-index: 6;
}
.product-card__menu-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    backdrop-filter: blur(4px);
}
.product-card__menu-btn:hover,
.product-card__menu-wrap.is-open .product-card__menu-btn {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.08);
}
.product-card__menu-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xs);
    min-width: 210px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 50;
}
.product-card__menu-wrap.is-open .product-card__menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.card-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 0.6rem var(--space-sm);
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
    position: relative;
}
.card-menu-item:hover {
    background: var(--color-surface-alt);
    color: var(--color-primary);
}
.card-menu-item__check {
    margin-left: auto;
    color: var(--color-primary);
    font-weight: 700;
    display: none;
}
.card-menu-item.is-active .card-menu-item__check { display: inline; }
.card-menu-item.is-active { color: var(--color-primary); }
.card-menu-item[data-card-fav].is-active svg { fill: var(--color-primary); stroke: var(--color-primary); }

/* Sous-menu partage (réseaux sociaux) */
.card-share-links {
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    padding: var(--space-xs) var(--space-sm);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-xs);
}
.card-share-links.is-open { display: flex; }
.card-share-link {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-alt);
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
    border: none;
    cursor: pointer;
    padding: 0;
}
.card-share-link:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}
.card-share-link--copy.is-copied {
    background: var(--color-success);
    color: #fff;
}

/* Mobile : le menu reste accessible au survol/clic, on élargit la zone */
@media (max-width: 640px) {
    .product-card__menu-dropdown { min-width: 190px; }
}

/* Barre flottante de comparaison */
.compare-tray {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.compare-tray[hidden] { display: none; }
.compare-tray:not([hidden]) { transform: translateY(0); }
.compare-tray__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.compare-tray__info {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
}
.compare-tray__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 14px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}
.compare-tray__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}
.compare-tray__items {
    display: flex;
    gap: var(--space-xs);
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    padding: var(--space-xs) 0;
    scrollbar-width: thin;
}
.compare-tray__chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 4px;
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    max-width: 200px;
}
.compare-tray__chip img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.compare-tray__chip-name {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.compare-tray__chip-remove {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.compare-tray__chip-remove:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}
.compare-tray__actions {
    display: flex;
    gap: var(--space-xs);
    flex-shrink: 0;
}
.btn--disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Toast notification */
.compare-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--color-text);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.compare-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
    .compare-tray__inner { flex-wrap: wrap; gap: var(--space-sm); }
    .compare-tray__items { order: 3; width: 100%; }
    .compare-tray__actions { margin-left: auto; }
}

/* ── Compare modal ── */
.compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}
.compare-modal[hidden] { display: none; }
.compare-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    cursor: pointer;
}
.compare-modal__inner {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: compare-modal-in 0.25s ease;
}
@keyframes compare-modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.compare-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-alt);
}
.compare-modal__header h2 {
    margin: 0 0 2px 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
}
.compare-modal__header p { margin: 0; font-size: 0.9rem; }
.compare-modal__close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1;
    transition: all 0.2s;
    flex-shrink: 0;
}
.compare-modal__close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}
.compare-modal__body {
    padding: var(--space-md) var(--space-lg);
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.compare-modal__search {
    position: relative;
}
.compare-modal__search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: var(--color-surface-alt);
    color: var(--color-text);
}
.compare-modal__search input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 95, 0.08);
}
.compare-modal__results,
.compare-modal__empty {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 10;
    max-height: 260px;
    overflow-y: auto;
}
.compare-modal__result {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s;
}
.compare-modal__result:last-child { border-bottom: none; }
.compare-modal__result:hover { background: var(--color-surface-alt); }
.compare-modal__result.is-selected { background: rgba(34, 197, 94, 0.05); }
.compare-modal__result img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.compare-modal__result-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.compare-modal__result-brand {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
}
.compare-modal__result-add {
    flex-shrink: 0;
    padding: 4px 12px !important;
    font-size: 0.8rem !important;
    min-width: 90px;
    justify-content: center;
}
.compare-modal__result-add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
.compare-modal__empty {
    padding: 16px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.compare-modal__selected {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.compare-modal__selected-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.compare-modal__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-height: 60px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    background: var(--color-surface-alt);
}
.compare-modal__placeholder {
    text-align: center;
    padding: var(--space-md);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
.compare-modal__item,
.compare-tray__chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: grab;
    transition: all 0.2s;
}
.compare-modal__item img,
.compare-tray__chip img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.compare-modal__drag {
    color: var(--color-text-muted);
    opacity: 0.5;
    cursor: grab;
}
.compare-modal__item:hover .compare-modal__drag,
.compare-modal__item:hover { opacity: 1; }
.compare-modal__item-name,
.compare-tray__chip-name {
    flex: 1;
    font-size: 0.9rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.compare-modal__item-remove,
.compare-tray__chip-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.compare-modal__item-remove:hover,
.compare-tray__chip-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}
.compare-modal__item.dragging,
.compare-tray__chip.dragging {
    opacity: 0.4;
    cursor: grabbing;
}
.compare-modal__item.drag-over,
.compare-tray__chip.drag-over {
    border-color: var(--color-primary);
    background: rgba(233, 30, 95, 0.05);
}
.compare-modal__max {
    font-size: 0.85rem;
    color: #dc2626;
    text-align: right;
}
.compare-modal__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-alt);
}

@media (max-width: 640px) {
    .compare-modal { padding: var(--space-sm); align-items: flex-end; }
    .compare-modal__inner { max-height: 95vh; border-radius: var(--radius-md) var(--radius-md) 0 0; }
    .compare-modal__header h2 { font-size: 1.2rem; }
    .compare-modal__body { padding: var(--space-sm) var(--space-md); }
    .compare-modal__footer { padding: var(--space-sm) var(--space-md); }
}


/* ── Site search modal ── */
.header-search-btn { display: inline-flex; color: #fff; background: #000; }
.header-search-btn:hover { color: #fff; background: #000; opacity: 0.85; }
.nav-panel__cta .btn--dark {
    background: #e91e5f;
}
.nav-panel__cta .btn--dark:hover {
    background: #c9184d;
}
.nav-panel__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin: var(--space-md) var(--space-lg) var(--space-sm);
    width: calc(100% - 2 * var(--space-lg));
}
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-md);
    padding-top: 12vh;
}
.search-modal[hidden] { display: none; }
.search-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.search-modal__inner {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: 80vh;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: search-modal-in 0.2s ease;
}
@keyframes search-modal-in {
    from { opacity: 0; transform: translateY(-12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.search-modal__header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
}
.search-modal__input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}
.search-modal__icon {
    position: absolute;
    left: 12px;
    color: var(--color-text-muted);
    display: inline-flex;
    pointer-events: none;
}
.search-modal__input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--color-surface-alt);
    color: var(--color-text);
}
.search-modal__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 212, 130, 130), 0.15);
}
.search-modal__close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1;
    transition: all 0.2s;
    flex-shrink: 0;
}
.search-modal__close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}
.search-modal__body {
    overflow-y: auto;
    flex: 1;
    padding: var(--space-xs) var(--space-sm);
}
.search-modal__results,
.search-modal__empty,
.search-modal__hint {
    padding: var(--space-xs) var(--space-xs);
}
.search-modal__hint {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: var(--space-md);
}
.search-modal__empty {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-align: center;
    padding: var(--space-md);
}
.search-modal__result {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.15s;
}
.search-modal__result:hover {
    background: var(--color-surface-alt);
}
.search-modal__result-thumb {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-surface-alt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.search-modal__result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.search-modal__thumb-placeholder {
    display: inline-block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-surface-alt), var(--color-border));
}
.search-modal__result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.search-modal__result-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-modal__result-brand {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}
.search-modal__result-price {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .search-modal { padding: var(--space-sm); padding-top: 6vh; align-items: flex-end; }
    .search-modal__inner { max-height: 94vh; border-radius: var(--radius-md) var(--radius-md) 0 0; }
}

/* ── Search modal: concept badges & suggestions ── */
.search-modal__concepts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: var(--space-xs) var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}
.search-modal__concepts-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-right: 2px;
}
.search-modal__concept-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(233, 30, 95, 0.12);
    color: #c9184d;
    line-height: 1.4;
}
.search-modal__suggestions {
    padding: var(--space-sm);
}
.search-modal__suggestions-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}
.search-modal__suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.search-modal__chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    background: var(--color-surface-alt);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.15s ease;
}
.search-modal__chip:hover {
    border-color: var(--color-primary);
    background: rgba(233, 30, 95, 0.08);
    color: var(--color-primary);
    transform: translateY(-1px);
}



/* ── Bouton favori cœur (page produit) ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.fav-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.18s ease;
}
.fav-heart:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
}
.fav-heart__icon {
    transition: transform 0.18s ease;
}
.fav-heart.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.fav-heart.active .fav-heart__icon {
    fill: currentColor;
    transform: scale(1.08);
}

/* ── Independence notice modal ── */
.ind-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ind-modal[hidden] { display: none; }
.ind-modal.show { opacity: 1; }
.ind-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}
.ind-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--color-surface, #fff);
    color: var(--color-text, #1a1a1a);
    border-radius: var(--radius-lg, 20px);
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    text-align: center;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ind-modal.show .ind-modal__dialog { transform: translateY(0) scale(1); }
.ind-modal__close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--color-text-muted, #888);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.ind-modal__close:hover { background: rgba(0, 0, 0, 0.06); color: var(--color-text, #1a1a1a); }
.ind-modal__badge {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary, #e91e5f), #c9184d);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(233, 30, 95, 0.35);
}
.ind-modal__title {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    font-weight: 700;
    margin: 0 0 var(--space-xs);
    letter-spacing: -0.01em;
}
.ind-modal__lead {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--color-text-muted, #666);
    margin: 0 0 var(--space-md);
}
.ind-modal__list {
    list-style: none;
    margin: 0 0 var(--space-md);
    padding: 0;
    text-align: left;
    display: grid;
    gap: var(--space-xs);
}
.ind-modal__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.ind-modal__check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-primary, #e91e5f);
    border-radius: 50%;
    margin-top: 2px;
}
.ind-modal__note {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-muted, #888);
    font-style: italic;
    margin: 0 0 var(--space-md);
}
.ind-modal__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}
.ind-modal__link {
    font-size: 0.9rem;
    color: var(--color-primary, #e91e5f);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}
.ind-modal__link:hover { opacity: 0.75; }
@media (max-width: 560px) {
    .ind-modal { padding: var(--space-sm); align-items: flex-end; }
    .ind-modal__dialog {
        max-width: 100%;
        border-radius: var(--radius-lg, 20px) var(--radius-lg, 20px) 0 0;
        padding: var(--space-lg) var(--space-md) var(--space-md);
    }
}
