/* ============================================================================
   TIPZ — Feuille de style unique (v91, direction « Mauve vivant »)
   Remplace style.css, premium.css, cinematic.css, animations.css,
   animations-pro.css, mobile.css et design-v2.css.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,300..800&display=swap');

:root {
    /* Marque */
    --tz-violet: #7C5CFF;          /* mauve Tipz — aplats, boutons, logo */
    --tz-violet-ink: #6B4EFF;      /* mauve pour petits textes sur blanc */
    --tz-violet-deep: #5A3FE6;     /* survol, textes sur lavande */
    --tz-lavender: #F1EDFF;        /* fonds doux, boutons secondaires */
    --tz-lavender-2: #F6F4FF;      /* fond des sections et des espaces connectés */
    --tz-line: #EEEAFB;            /* filets */
    --tz-line-2: #DDD6F7;          /* bordures de champs */
    --tz-yellow: #FFC145;          /* récompenses, points */
    --tz-yellow-soft: #FFF1CC;

    /* Texte */
    --tz-ink: #14102A;
    --tz-text: #4A4560;
    --tz-muted: #6E6987;

    /* États */
    --tz-success: #15803D;
    --tz-success-soft: #E7F6EC;
    --tz-warning: #8A5A00;
    --tz-warning-soft: #FFF1CC;
    --tz-danger: #B42318;
    --tz-danger-soft: #FDECEA;

    /* Formes */
    --tz-r-sm: 12px;
    --tz-r: 18px;
    --tz-r-lg: 24px;
    --tz-r-xl: 32px;
    --tz-shadow: 0 1px 2px rgba(20, 16, 42, 0.04), 0 8px 24px rgba(20, 16, 42, 0.06);

    --tz-font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Compatibilité avec les anciennes variables utilisées dans les pages */
    --color-bg: #FFFFFF;
    --color-bg-soft: var(--tz-lavender-2);
    --color-surface: #FFFFFF;
    --color-border: var(--tz-line);
    --color-border-strong: var(--tz-line-2);
    --color-text: var(--tz-ink);
    --color-text-soft: var(--tz-text);
    --color-text-muted: var(--tz-muted);
    --color-accent: var(--tz-violet);
    --color-accent-hover: var(--tz-violet-deep);
    --color-accent-soft: var(--tz-lavender);
    --color-amber: var(--tz-yellow);
    --color-amber-hover: #F5B12A;
    --color-amber-soft: var(--tz-yellow-soft);
    --color-pink: var(--tz-violet);
    --color-pink-soft: var(--tz-lavender);
    --color-success: var(--tz-success);
    --color-warning: var(--tz-warning);
    --color-error: var(--tz-danger);
    --font-display: var(--tz-font);
    --font-body: var(--tz-font);
    --font-mono: var(--tz-font);
    --radius-sm: var(--tz-r-sm);
    --radius: var(--tz-r);
    --radius-lg: var(--tz-r-lg);
    --transition: 0.2s ease;
    --violet: var(--tz-violet);
    --violet-soft: var(--tz-lavender);
    --violet-dark: var(--tz-violet-deep);
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: #FFFFFF;
    color: var(--tz-ink);
    font-family: var(--tz-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
body.app { background: var(--tz-lavender-2); }
img, svg, video { max-width: 100%; }
img { height: auto; }

:where(h1, h2, h3, h4, h5, h6) {
    margin: 0 0 0.5em;
    font-family: var(--tz-font);
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--tz-ink);
}
:where(h3, h4, h5, h6) { font-stretch: 100%; letter-spacing: -0.015em; font-weight: 700; }
:where(p) { margin: 0 0 1em; }
:where(a) { color: var(--tz-violet-ink); }
:where(a):hover { color: var(--tz-violet-deep); }
:focus-visible { outline: 3px solid var(--tz-violet); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--tz-violet); color: #FFFFFF; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--tz-line); margin: 2rem 0; }
.dot { color: var(--tz-violet); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Anciennes décorations désactivées */
.tipz-loader, .cinema-particles, .cinema-hero__grain, .cinema-hero__bg, .auth-page__bg,
.cinema-divider, .cta-cinematic__bg, .cinema-hero__scroll-hint { display: none !important; }

/* ---------------------------------------------------------------------------
   Mise en page
   --------------------------------------------------------------------------- */
.container, .wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.container--narrow { max-width: 760px; }
.section { padding: 96px 0; }
.section--lavender { background: var(--tz-lavender-2); }
.section--tight { padding: 64px 0; }
.sec { padding: 64px 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 56px; align-items: center; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------------------
   Typographie
   --------------------------------------------------------------------------- */
.display { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0; }
.h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; margin: 0; }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2.375rem); line-height: 1.1; margin: 0; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--tz-text); max-width: 560px; margin: 0; }
.text { color: var(--tz-text); }
.muted { color: var(--tz-muted); }
.hl { color: var(--tz-violet); }
.eyebrow, .section__eyebrow { display: inline-block; font-size: 15px; font-weight: 700; color: var(--tz-violet-deep); margin: 0 0 12px; letter-spacing: 0; text-transform: none; }
.section__header { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 48px; }
.section__header.center { margin-left: auto; margin-right: auto; align-items: center; }
.section__title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; margin: 0; }
.section__lead { font-size: 1.125rem; color: var(--tz-text); margin: 0; }

.pill {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    padding: 8px 14px; border-radius: 999px; background: var(--tz-lavender);
    font-size: 14px; font-weight: 600; color: var(--tz-violet-deep);
}
.pill__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--tz-yellow); }
.pill--yellow { background: var(--tz-yellow); color: var(--tz-ink); font-weight: 800; }

/* ---------------------------------------------------------------------------
   Boutons
   --------------------------------------------------------------------------- */
.btn, .tipz-btn, .btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
    background: var(--tz-violet); color: #FFFFFF;
    font-family: var(--tz-font); font-size: 16px; font-weight: 700; line-height: 1;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover, .tipz-btn:hover, .btn-primary:hover { background: var(--tz-violet-deep); color: #FFFFFF; }
.btn:active, .tipz-btn:active { transform: translateY(1px); }
.btn:disabled, .tipz-btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn--primary, .tipz-btn--primary { background: var(--tz-violet); color: #FFFFFF; }
.btn--soft, .btn--ghost, .tipz-btn--ghost, .btn--secondary { background: var(--tz-lavender); color: var(--tz-violet-deep); }
.btn--soft:hover, .btn--ghost:hover, .tipz-btn--ghost:hover, .btn--secondary:hover { background: #E6DFFF; color: var(--tz-violet-deep); }
.btn--light { background: #FFFFFF; color: var(--tz-violet-deep); }
.btn--light:hover { background: var(--tz-lavender); color: var(--tz-violet-deep); }
.btn--dark { background: var(--tz-ink); color: #FFFFFF; }
.btn--dark:hover { background: #2A2347; }
.btn--yellow, .tipz-btn--amber { background: var(--tz-yellow); color: var(--tz-ink); }
.btn--yellow:hover, .tipz-btn--amber:hover { background: #F5B12A; color: var(--tz-ink); }
.btn--outline { background: transparent; color: var(--tz-violet-deep); box-shadow: inset 0 0 0 1.5px var(--tz-violet); }
.btn--outline:hover { background: var(--tz-lavender); }
.btn--danger { background: var(--tz-danger-soft); color: var(--tz-danger); }
.btn--danger:hover { background: #F9D7D3; color: var(--tz-danger); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block, .tipz-btn--block { width: 100%; }

/* ---------------------------------------------------------------------------
   Navigation publique
   --------------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.nav.scrolled { border-bottom-color: var(--tz-line); }
.nav__inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__logo, .logo {
    font-size: 28px; font-weight: 800; font-stretch: 120%; letter-spacing: -0.03em;
    color: var(--tz-violet); text-decoration: none; line-height: 1;
}
.nav__logo:hover, .logo:hover { color: var(--tz-violet-deep); }
.nav__logo .dot, .logo .dot { display: none; }
.nav__menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__link { color: var(--tz-ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__link:hover, .nav__link.active { color: var(--tz-violet-ink); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
    display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 0; border-radius: 999px; background: var(--tz-lavender); color: var(--tz-violet-deep); cursor: pointer;
}
.nav__mobile {
    position: fixed; inset: 80px 0 0 0; z-index: 99; background: #FFFFFF;
    padding: 24px 24px 40px; overflow-y: auto; transform: translateX(100%); transition: transform 0.25s ease;
}
.nav__mobile.open { transform: translateX(0); }
.nav__mobile-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nav__mobile-link { display: block; padding: 14px 0; font-size: 22px; font-weight: 700; color: var(--tz-ink); text-decoration: none; border-bottom: 1px solid var(--tz-line); }
.nav__mobile-link--secondary { font-size: 16px; font-weight: 600; color: var(--tz-text); }
.nav__mobile .btn { width: 100%; margin-top: 16px; }
@media (max-width: 960px) {
    .nav__menu, .nav__actions .nav__hide-mobile { display: none; }
    .nav__toggle { display: inline-flex; }
}

/* ---------------------------------------------------------------------------
   Pied de page
   --------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--tz-line); padding: 56px 0 32px; background: #FFFFFF; }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__logo { font-size: 26px; font-weight: 800; font-stretch: 120%; letter-spacing: -0.03em; color: var(--tz-violet); margin-bottom: 12px; }
.footer__logo .dot { display: none; }
.footer__about { color: var(--tz-text); font-size: 15px; max-width: 320px; margin: 0; }
.footer__title { font-size: 14px; font-weight: 700; font-stretch: 100%; letter-spacing: 0; color: var(--tz-ink); margin: 0 0 12px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__link { color: var(--tz-text); text-decoration: none; font-size: 15px; }
.footer__link:hover { color: var(--tz-violet-ink); }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--tz-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--tz-muted); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------------------
   Cartes
   --------------------------------------------------------------------------- */
.card { background: #FFFFFF; border: 1px solid var(--tz-line); border-radius: var(--tz-r-lg); padding: 28px; }
.card--flat { border: 0; }
.card--lavender { background: var(--tz-lavender); border: 0; }
.card--violet { background: var(--tz-violet); border: 0; color: #FFFFFF; }
.card--dark { background: var(--tz-ink); border: 0; color: #FFFFFF; }
.card--dark h2, .card--dark h3, .card--violet h2, .card--violet h3 { color: #FFFFFF; }
.card--xl { border-radius: var(--tz-r-xl); padding: 40px; }

.num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 999px; background: var(--tz-violet); color: #FFFFFF; font-size: 20px; font-weight: 800; }
.num--yellow { background: var(--tz-yellow); color: var(--tz-ink); }

.step-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--tz-r-lg); background: #FFFFFF; }
.step-card h3 { font-size: 21px; margin: 0; }
.step-card p { margin: 0; color: var(--tz-text); }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; line-height: 1.5; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 999px; background: var(--tz-violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.card--dark .check-list li, .card--violet .check-list li { color: #E4DFF7; }
.card--violet .check-list li { color: #FFFFFF; }
.card--dark .check-list li::before, .card--violet .check-list li::before { background-color: var(--tz-yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314102A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }

.gift-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gift-tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 140px; padding: 16px; border-radius: 18px; background: var(--tz-violet); color: #FFFFFF; }
.gift-tile__name { font-size: 13px; font-weight: 600; }
.gift-tile__value { font-size: 28px; font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; }
.gift-tile--yellow { background: var(--tz-yellow); color: var(--tz-ink); }
.gift-tile--dark { background: var(--tz-ink); }

.photo-ph { display: flex; align-items: flex-end; min-height: 240px; padding: 16px; border-radius: 20px; background: var(--tz-lavender); color: var(--tz-muted); font-size: 13px; }
.card--dark .photo-ph { background: #2A2347; color: #CFC7F0; }

/* Aperçu produit de la page d'accueil */
.showcase { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 40px; border-radius: var(--tz-r-xl); background: var(--tz-violet); }
.showcase__notif { align-self: flex-end; display: flex; align-items: center; gap: 12px; max-width: 340px; padding: 14px 16px; border-radius: 16px; background: #FFFFFF; }
.showcase__avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--tz-yellow); font-weight: 800; color: var(--tz-ink); }
.showcase__points { align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--tz-yellow); color: var(--tz-ink); font-size: 14px; }
.mini-dash { display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: 20px; background: #FFFFFF; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--tz-lavender-2); }
.mini-kpi span:first-child { font-size: 12px; color: var(--tz-text); }
.mini-kpi strong { font-size: 30px; font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1.1; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--tz-line); font-size: 15px; }
@media (max-width: 560px) {
    .showcase { padding: 20px; }
    .mini-kpis { gap: 6px; }
    .mini-kpi { padding: 10px; }
    .mini-kpi strong { font-size: 22px; }
    .mini-kpi span:first-child { font-size: 11px; }
    .gift-tiles { gap: 8px; }
    .gift-tile { min-height: 110px; padding: 12px; }
    .gift-tile__value { font-size: 22px; }
}

/* Bandeau d'appel */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: 56px; border-radius: var(--tz-r-xl); background: var(--tz-violet); color: #FFFFFF; }
.cta-band h2 { color: #FFFFFF; margin: 0; font-size: clamp(2rem, 4vw, 2.875rem); line-height: 1.05; }
.cta-band p { margin: 0; font-size: 1.1875rem; color: #FFFFFF; }
@media (max-width: 560px) { .cta-band { padding: 32px 24px; } }

/* Chiffres */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.stat-strip__item { padding: 24px; border-radius: var(--tz-r-lg); background: #FFFFFF; }
.stat-strip__value { display: block; font-size: 40px; font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; color: var(--tz-violet); line-height: 1.1; }
.stat-strip__label { color: var(--tz-text); font-size: 15px; }

/* ---------------------------------------------------------------------------
   Pastilles de statut
   --------------------------------------------------------------------------- */
.badge, .tipz-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; background: var(--tz-lavender); color: var(--tz-violet-deep); white-space: nowrap; }
.badge--signed, .tipz-badge--violet { background: var(--tz-violet); color: #FFFFFF; }
.badge--pending, .tipz-badge--amber { background: var(--tz-yellow-soft); color: #6B4A00; }
.badge--success, .tipz-badge--green { background: var(--tz-success-soft); color: var(--tz-success); }
.badge--danger, .tipz-badge--red { background: var(--tz-danger-soft); color: var(--tz-danger); }
.badge--neutral { background: #F1F0F5; color: var(--tz-text); }
.tipz-badge--pink { background: var(--tz-lavender); color: var(--tz-violet-deep); }

/* ---------------------------------------------------------------------------
   Formulaires
   --------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form--card { background: #FFFFFF; border: 1px solid var(--tz-line); border-radius: var(--tz-r-lg); padding: 40px; }
@media (max-width: 560px) { .form--card { padding: 24px; } }
.form__row, .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.form__group, .tipz-field { display: flex; flex-direction: column; gap: 8px; }
.form__label, .tipz-field__label { font-size: 14px; font-weight: 600; color: var(--tz-ink); }
.form__label--required::after, .tipz-field__label--required::after { content: ' *'; color: var(--tz-violet-ink); }
.form__input, .form__select, .form__textarea, .tipz-field__input,
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"],
input[type="url"], input[type="search"], input[type="date"], select, textarea) {
    width: 100%; min-height: 48px; padding: 12px 16px;
    background: #FFFFFF; color: var(--tz-ink);
    border: 1.5px solid var(--tz-line-2); border-radius: var(--tz-r-sm);
    font-family: var(--tz-font); font-size: 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form__textarea, :where(textarea) { min-height: 120px; resize: vertical; line-height: 1.5; }
::placeholder { color: #9A95AF; }
.form__input:focus, .form__select:focus, .form__textarea:focus, .tipz-field__input:focus,
:where(input, select, textarea):focus { outline: none; border-color: var(--tz-violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15); }
:where(input[type="checkbox"], input[type="radio"]) { width: 18px; height: 18px; min-height: 0; accent-color: var(--tz-violet); }
.tipz-field__hint, .form__hint { font-size: 13px; color: var(--tz-muted); }
.form__success, .form__error { display: none; padding: 14px 16px; border-radius: var(--tz-r-sm); font-size: 15px; }
.form__success { background: var(--tz-success-soft); color: var(--tz-success); }
.form__error { background: var(--tz-danger-soft); color: var(--tz-danger); }
.form__success.show, .form__error.show { display: block; }
.form__legal { text-align: center; font-size: 13px; color: var(--tz-muted); margin: 0; }

.tipz-alert { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--tz-r-sm); font-size: 15px; line-height: 1.5; }
.tipz-alert--error { background: var(--tz-danger-soft); color: var(--tz-danger); }
.tipz-alert--success { background: var(--tz-success-soft); color: var(--tz-success); }
.tipz-alert--info { background: var(--tz-lavender); color: var(--tz-violet-deep); }
.tipz-alert--warning { background: var(--tz-yellow-soft); color: #6B4A00; }

/* ---------------------------------------------------------------------------
   Connexion / inscription
   --------------------------------------------------------------------------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 20px; background: var(--tz-lavender-2); }
.auth-card { width: 100%; max-width: 480px; background: #FFFFFF; border: 1px solid var(--tz-line); border-radius: var(--tz-r-xl); padding: 40px; }
.auth-card--large { max-width: 640px; }
@media (max-width: 560px) { .auth-card { padding: 28px 22px; border-radius: var(--tz-r-lg); } }
.auth-card__brand { text-align: center; margin-bottom: 24px; }
.auth-card__logo { display: inline-block; font-size: 32px; font-weight: 800; font-stretch: 120%; letter-spacing: -0.03em; color: var(--tz-violet); text-decoration: none; }
.auth-card__logo .dot { display: none; }
.auth-card__eyebrow { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--tz-lavender); color: var(--tz-violet-deep); font-size: 13px; font-weight: 700; }
.auth-card__title { font-size: 28px; text-align: center; margin: 0 0 8px; }
.auth-card__subtitle { text-align: center; color: var(--tz-text); margin: 0 0 24px; }
.auth-card__form { display: flex; flex-direction: column; gap: 18px; }
.auth-card__footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--tz-line); text-align: center; color: var(--tz-text); font-size: 15px; }

/* ---------------------------------------------------------------------------
   Espaces connectés (pro, recommandeur, admin)
   --------------------------------------------------------------------------- */
.admin-header { background: #FFFFFF; border-bottom: 1px solid var(--tz-line); position: sticky; top: 0; z-index: 100; }
.admin-header__inner { max-width: 1280px; margin: 0 auto; padding: 14px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-logo { font-size: 24px; font-weight: 800; font-stretch: 120%; letter-spacing: -0.03em; color: var(--tz-violet); text-decoration: none; }
.admin-logo .dot { display: none; }
.admin-badge { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--tz-yellow); color: var(--tz-ink); font-size: 12px; font-weight: 800; margin-left: 8px; vertical-align: middle; }
.admin-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--tz-text); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.admin-nav a:hover { background: var(--tz-lavender-2); color: var(--tz-ink); }
.admin-nav a.active { background: var(--tz-lavender); color: var(--tz-violet-deep); }
.admin-h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 8px; }

.stats-grid, .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.stat-card, .kpi-card { background: #FFFFFF; border: 1px solid var(--tz-line); border-radius: var(--tz-r); padding: 20px; }
.stat-card__icon { display: none; }
.stat-card__value, .kpi-card__value { font-size: 32px; font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1.1; color: var(--tz-ink); }
.stat-card__label, .kpi-card__label { font-size: 13px; font-weight: 600; color: var(--tz-text); text-transform: none; letter-spacing: 0; }
.kpi-card__sub, .kpi-card__detail { font-size: 13px; color: var(--tz-muted); }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--tz-ink); margin: 0 0 16px; letter-spacing: -0.01em; text-transform: none; }
.section-title__icon { display: none; }
.list-card { background: #FFFFFF; border: 1px solid var(--tz-line); border-radius: var(--tz-r); }
.greeting, .dash-greeting h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin: 0 0 6px; }
.empty-state, .loading-state { text-align: center; padding: 48px 16px; color: var(--tz-muted); }

/* Modale générique */
.modal, .tipz-modal { color: var(--tz-ink); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq__item, .faq-item { background: #FFFFFF; border: 1px solid var(--tz-line); border-radius: var(--tz-r); overflow: hidden; }
.faq__question, .faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: none; border: 0; text-align: left; font-size: 17px; font-weight: 700; color: var(--tz-ink); cursor: pointer; }
.faq__icon, .faq-q__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--tz-lavender); color: var(--tz-violet-deep); font-size: 20px; line-height: 1; transition: transform 0.2s ease; }
.faq__answer, .faq-a { max-height: 0; overflow: hidden; padding: 0 24px; color: var(--tz-text); transition: max-height 0.25s ease, padding 0.25s ease; }
.faq__item.open .faq__answer, .faq-item.open .faq-a { max-height: 1200px; padding: 0 24px 20px; }
.faq__item.open .faq__icon, .faq-item.open .faq-q__icon { transform: rotate(45deg); }
.faq-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.faq-filter { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--tz-lavender); color: var(--tz-violet-deep); font-weight: 600; cursor: pointer; }
.faq-filter.active { background: var(--tz-violet); color: #FFFFFF; }

/* Pages légales */
.prose { max-width: 760px; color: var(--tz-text); font-size: 17px; line-height: 1.7; }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--tz-ink); }
.prose h2 { font-size: 24px; color: var(--tz-ink); margin-top: 2em; font-stretch: 100%; letter-spacing: -0.015em; }
.prose h3 { font-size: 19px; color: var(--tz-ink); margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--tz-ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--tz-line); vertical-align: top; }

/* Tableaux génériques */
:where(table) { border-collapse: collapse; }

/* Bannière d'installation PWA */
.pwa-install-banner { background: #FFFFFF !important; color: var(--tz-ink) !important; border: 1px solid var(--tz-line) !important; box-shadow: var(--tz-shadow) !important; }

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 760px) {
    .container, .wrap, .nav__inner { padding-left: 20px; padding-right: 20px; }
    .section { padding: 64px 0; }
    .card--xl { padding: 28px 22px; }
    .admin-header__inner { padding: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Champs : bordure lisible partout, y compris dans les pages qui ont leurs propres styles */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
select, textarea {
    border-color: var(--tz-line-2) !important;
    color: var(--tz-ink);
}
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
    border-color: var(--tz-violet) !important;
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15) !important;
    outline: none;
}

/* Notifications temporaires masquées tant qu'elles ne sont pas affichées */
.toast:not(.show):not(.visible):not(.active) { visibility: hidden; }

/* Tarifs */
.price-big{font-size:40px;font-weight:800;font-stretch:112%;letter-spacing:-0.03em;line-height:1.1;}
.price-table{width:100%;border-collapse:collapse;font-size:15px;}
.price-table th,.price-table td{padding:14px 20px;text-align:left;border-bottom:1px solid var(--tz-line,#EEEAFB);}
.price-table th{background:var(--tz-lavender-2,#F6F4FF);font-weight:600;color:var(--tz-ink,#14102A);font-size:14px;}
.price-table th:not(:first-child),.price-table td:not(:first-child){text-align:right;white-space:nowrap;}
.price-table tbody tr:last-child td{border-bottom:0;}
.price-old{color:var(--tz-grey,#6E6987);text-decoration:line-through;}
.price-new{color:var(--tz-violet-ink,#6B4EFF);font-weight:700;}
@media (max-width:560px){.price-table th,.price-table td{padding:12px 14px;font-size:14px;}}

/* Ambassadeur (tableau de bord pro, v94) */
.amb__grid{display:grid;grid-template-columns:200px 1fr;gap:28px;align-items:center;}
.amb__qr{background:#F6F4FF;border-radius:16px;padding:14px;}
.amb__qr canvas{width:100%;height:auto;display:block;border-radius:8px;}
.amb__lead{margin:0 0 14px;color:#4A4560;font-size:15px;line-height:1.55;}
.amb__link{display:flex;gap:8px;margin-bottom:12px;}
.amb__link input{flex:1;min-width:0;border:1px solid #DDD6F7;border-radius:999px;padding:10px 16px;font:inherit;font-size:14px;color:#14102A;background:#fff;}
.amb__actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.amb__feedback{font-size:14px;font-weight:600;color:#6B4EFF;}
.amb__stats{margin:14px 0 0;font-size:14px;color:#6E6987;}
.amb__stats strong{color:#14102A;}
@media (max-width:640px){.amb__grid{grid-template-columns:1fr;}.amb__qr{max-width:220px;margin:0 auto;}}
