/* ═══════════════════════════════════════════════════════════════════════════
   ÉCOUTILLE — brand.css (direction visuelle "Écho")
   ───────────────────────────────────────────────────────────────────────────
   Tokens de marque : couleurs Écho + Lato comme typo principale.

   Override les variables de theme-light.css quand `with_brand=true` côté
   head_common. Les pages publiques (landing, auth) chargent ce fichier ;
   les sous-sites internes (admin/super_admin/app) restent sur le bleu B2B
   par défaut tant qu'on n'a pas migré leur design system.

   Référence : BRAND_INTEGRATION.md (livraison Mai 2026).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {

    /* ── Palette Écho ─────────────────────────────────────────────────────── */
    --brand-teal:       #0F766E;   /* primaire — texte de marque, CTA principal */
    --brand-teal-mid:   #14B8A6;   /* hover states, arc intermédiaire */
    --brand-mint:       #5EEAD4;   /* surfaces douces, arc extérieur */
    --brand-spark:      #F97316;   /* accent rare — CTA d'attention */
    --brand-spark-dim:  #fed7aa;   /* hover spark, fond doux orange */
    --brand-ink:        #134E4A;   /* texte principal sombre */
    --brand-mist:       #F0FDFA;   /* fond clair */
    --brand-deep:       #042F2E;   /* fond sombre (mode dark, hero) */

    /* ── Override des tokens de theme-light.css ──────────────────────────── */
    /* Fonds — quasiment blanc neutre, le teal vit sur les composants
       (boutons, accents) plutôt que sur le fond global. La V0 était trop
       saturée (fond mint partout, halos vifs côté auth) — on revient à
       quelque chose de respirable. */
    --bg:         #ffffff;         /* page — blanc franc */
    --bg-1:       #ffffff;         /* cartes */
    --bg-2:       #f6faf9;         /* zones secondaires — très pâle */
    --topbar-bg:  rgba(255, 255, 255, .97);

    /* Bordures — neutres claires, juste un soupçon de teal pour cohérence. */
    --border:     #e3e8e7;
    --border-hi:  #c3ccca;

    /* Texte */
    --text:       #1f3934;          /* corps — slate teinté teal */
    --text-dim:   #5b7470;          /* secondaire */
    --text-hi:    var(--brand-ink); /* titres */

    /* Accent : passe du bleu B2B au teal Écho */
    --accent:     var(--brand-teal);
    --accent-hi:  #0c5e57;
    --accent-dim: #b3dfd9;
    --accent-fg:  #ffffff;
    --accent-glow:rgba(15, 118, 110, .12);

    /* Sémantiques (succès / warning / erreur) — on garde celles existantes
       mais on aligne le succès sur le teal. */
    --success:    #16a34a;
    --warning:    var(--brand-spark);
    --danger:     #ef4444;

    /* Typo : Lato à la place de IBM Plex Sans pour les pages brandées.
       Plex Mono reste pour le code. Le fallback system-ui couvre les
       OS qui n'ont pas Lato installé localement (Google Fonts charge
       Lato côté browser). */
    --sans: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
    /* --mono reste défini par main.css (IBM Plex Mono) — utile pour les
       blocs de code des pages produit. */
}


/* ═══════════════════════════════════════════════════════════════════════════
   COMPOSANTS DE MARQUE — patterns spécifiques à la charte Écho
   ═══════════════════════════════════════════════════════════════════════════ */

/* Wordmark inline : préfix `e` colorisé en teal (cf. logo SVG). */
.brand-wordmark {
    font-family: var(--sans);
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--brand-ink);
}
.brand-wordmark::first-letter {
    color: var(--brand-teal);
}

/* Bouton de marque (variante du .btn générique).
   Teal plein avec hover plus sombre + ombre douce. */
.btn-brand {
    background: var(--brand-teal);
    color: #ffffff;
    border: 1px solid var(--brand-teal);
    border-radius: var(--r);
    padding: 10px 20px;
    font-weight: 500;
    font-family: var(--sans);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn-brand:hover {
    background: var(--accent-hi);
    border-color: var(--accent-hi);
    text-decoration: none;
    color: #ffffff;
}
.btn-brand:active { transform: translateY(1px); }

/* Bouton spark — accent orange, RARE. À réserver aux CTA d'attention
   (essai gratuit, urgence). */
.btn-spark {
    background: var(--brand-spark);
    color: #ffffff;
    border: 1px solid var(--brand-spark);
    border-radius: var(--r);
    padding: 10px 20px;
    font-weight: 600;
    font-family: var(--sans);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .15s ease, transform .1s ease;
}
.btn-spark:hover {
    background: #ea580c;
    border-color: #ea580c;
    text-decoration: none;
    color: #ffffff;
}
.btn-spark:active { transform: translateY(1px); }

/* Aliasing : conserve `btn-amber` (utilisé dans index.html) en pointant
   sur le spark Écho — pas de breaking change côté templates existants. */
.btn-amber {
    background: var(--brand-spark);
    color: #ffffff;
    border: 1px solid var(--brand-spark);
}
.btn-amber:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
}

/* Logo dans la topbar publique : on remplace l'ancien glyphe `⌁` par
   le SVG de marque. La hauteur est figée pour rester aligné avec le
   topbar qui fait ~52px de haut côté CSS. */
.brand-logo {
    height: 32px;
    width: auto;
    display: block;
}
.brand-logo--mark {
    height: 28px;
    width: 28px;
}

/* Badge "service opérationnel" en hero — réutilise le accent-glow mais
   teinté teal grâce à l'override des variables. */

/* Liens de marque : plus marqués pour le contenu marketing. */
.brand-link {
    color: var(--brand-teal);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-dim);
    transition: border-color .15s ease;
}
.brand-link:hover {
    border-bottom-color: var(--brand-teal);
    text-decoration: none;
}

/* Hero band sombre (deep teal) — utilisable pour CTA bandes, footers. */
.brand-deep-bg {
    background: var(--brand-deep);
    color: var(--brand-mist);
}
.brand-deep-bg h1,
.brand-deep-bg h2,
.brand-deep-bg h3 { color: #ffffff; }
.brand-deep-bg .brand-link { color: var(--brand-mint); border-bottom-color: var(--brand-teal-mid); }

/* Tagline italique sous le wordmark (pattern du logo principal). */
.brand-tagline {
    font-style: italic;
    font-weight: 400;
    color: var(--brand-teal);
    font-size: 13px;
    border-left: 2px solid var(--brand-spark);
    padding-left: 10px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PAGES AUTH PUBLIQUES (login / register / forgot-password)
   Variante brandée des composants .auth-page / .auth-card de main.css.
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-page--brand {
    /* Fond quasi-blanc avec un très léger lavis de teal en arrière-plan.
       Première version (mint saturé + halos vifs) faisait mal aux yeux —
       on revient à un blanc doux qui laisse respirer la carte de login. */
    background:
        radial-gradient(ellipse at top right, rgba(94, 234, 212, .08) 0%, transparent 60%),
        #ffffff;
    min-height: calc(100vh - 52px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 18px;
}

.auth-card-head--brand {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Override : remplace le logo-mark carré du theme par notre SVG. */
.auth-card-head--brand .brand-logo--mark {
    height: 28px;
    width: 28px;
    flex-shrink: 0;
}

/* Texte du titre auth — plus lisible que la version mono originale. */
.auth-card-head--brand .auth-card-title {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.auth-card-head--brand .auth-card-sep {
    color: var(--accent-dim);
    font-weight: 300;
}
.auth-card-head--brand .auth-card-title > span:last-child {
    color: var(--text-hi);
    font-weight: 500;
}

/* Tagline sous la carte auth. Discrète, italique, branchée à l'identité. */
.auth-tagline {
    margin-top: 8px;
    text-align: center;
    max-width: 420px;
    color: var(--brand-teal);
    font-style: italic;
    font-size: 13px;
    border: none;
    padding: 0;
}

/* Le bouton submit principal `btn-submit` du auth devient teal Écho.
   On surcharge sans casser les pages qui ne sont pas brandées (admin, etc.)
   parce qu'on cible uniquement dans le contexte auth-page--brand. */
.auth-page--brand .btn-submit {
    background: var(--brand-teal);
    border-color: var(--brand-teal);
    color: #ffffff;
}
.auth-page--brand .btn-submit:hover:not(:disabled) {
    background: var(--accent-hi);
    border-color: var(--accent-hi);
}
.auth-page--brand .btn-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* Field focus en teinte teal (au lieu du bleu B2B). */
.auth-page--brand .field input:focus,
.auth-page--brand .field-pass input:focus {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px var(--accent-glow);
}


/* ═══════════════════════════════════════════════════════════════════════════
   PRICING TEASER (section /pricing sur la home)
   ═══════════════════════════════════════════════════════════════════════════ */

.pricing-teaser .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

@media (max-width: 900px) {
    .pricing-teaser .pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.plan-card {
    position: relative;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.plan-card:hover {
    border-color: var(--brand-teal-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 118, 110, .08);
}

/* Plan en avant (Pro) — bordure teal pleine + glow doux. */
.plan-card--featured {
    border-color: var(--brand-teal);
    border-width: 2px;
    box-shadow: 0 4px 16px rgba(15, 118, 110, .12);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-spark);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-name {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.plan-price-amount {
    font-family: var(--sans);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-hi);
    letter-spacing: -0.5px;
}
.plan-price-period {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 400;
}

.plan-tagline {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.plan-highlights {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.plan-highlights li {
    position: relative;
    padding-left: 22px;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}
.plan-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-teal);
    font-weight: 700;
}

.plan-cta {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    text-align: center;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBARS BRANDÉES (/app et /admin)
   ───────────────────────────────────────────────────────────────────────────
   Le brand-wordmark dans la sidebar bénéficie déjà du `e` colorisé. On ajuste
   juste l'alignement et l'espacement pour bien tomber avec le mark SVG.
   ═══════════════════════════════════════════════════════════════════════════ */

.app-sidebar-logo,
.adm-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.app-sidebar-logo .brand-wordmark,
.adm-sidebar-logo .brand-wordmark {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.3px;
}

/* Sous-libellé section après le wordmark dans la sidebar admin
   (ex: "ecoutille / admin"). Plus discret que le wordmark. */
.adm-sidebar-section {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 400;
}

/* Lien actif dans la sidebar — passe en teal (au lieu de bleu B2B). */
.app-sidebar-nav a.active,
.adm-sidebar-nav a.active {
    color: var(--brand-teal);
    background: rgba(15, 118, 110, .08);
    border-left: 3px solid var(--brand-teal);
}


/* ═══════════════════════════════════════════════════════════════════════════
   HERO GRAND FORMAT (page d'accueil, vibe "remplit l'espace")
   ───────────────────────────────────────────────────────────────────────────
   Fond deep teal #042F2E avec halo radial mint léger pour profondeur.
   Mark XL à gauche (~280-360px), titre énorme à droite. Inspiré de la
   composition Quartz Pharma : gros logo + gros titre + CTA évident.
   ═══════════════════════════════════════════════════════════════════════════ */

.hero--brand {
    position: relative;
    background: var(--brand-deep);
    color: #ffffff;
    padding: 80px 0 96px;
    border-bottom: none;
    overflow: hidden;
}

/* Halo radial subtle pour donner de la profondeur derrière le mark. */
.hero-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 50%, rgba(94, 234, 212, .12) 0%, transparent 40%),
        radial-gradient(circle at 75% 30%, rgba(20, 184, 166, .10) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner--brand {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 64px;
    align-items: center;
    min-height: 480px;
}

@media (max-width: 900px) {
    .hero-inner--brand {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        min-height: 0;
    }
}

/* Mark XL avec animation subtle de pulsation des arcs externes. */
.hero-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-mark-svg {
    width: 100%;
    max-width: 360px;
    height: auto;
    filter: drop-shadow(0 0 60px rgba(94, 234, 212, .35));
    animation: hero-mark-breathe 4s ease-in-out infinite alternate;
}

@keyframes hero-mark-breathe {
    from { transform: scale(1);    filter: drop-shadow(0 0 40px rgba(94, 234, 212, .25)); }
    to   { transform: scale(1.04); filter: drop-shadow(0 0 80px rgba(94, 234, 212, .45)); }
}

@media (max-width: 900px) {
    .hero-mark-svg { max-width: 200px; }
}

/* Contenu droit. */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-badge--brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(94, 234, 212, .12);
    border: 1px solid rgba(94, 234, 212, .35);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--brand-mint);
    letter-spacing: .5px;
    text-transform: uppercase;
    width: fit-content;
}
.hero-badge--brand .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-mint);
    box-shadow: 0 0 8px var(--brand-mint);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .35; }
}
@media (max-width: 900px) {
    .hero-badge--brand { margin: 0 auto; }
}

.hero-title {
    font-family: var(--sans);
    font-size: clamp(36px, 5.5vw, 68px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: #ffffff;
    margin: 0;
}
.hero-title em {
    font-style: italic;
    color: var(--brand-spark);
    font-weight: 700;
}

.hero-tagline {
    font-family: var(--sans);
    font-style: italic;
    font-size: clamp(14px, 1.6vw, 18px);
    color: var(--brand-mint);
    border-left: 3px solid var(--brand-spark);
    padding-left: 14px;
    margin: 0;
    max-width: 620px;
}
@media (max-width: 900px) {
    .hero-tagline {
        margin: 0 auto;
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--brand-spark);
        padding-top: 8px;
    }
}

.hero-sub--brand {
    font-size: clamp(15px, 1.4vw, 18px);
    color: rgba(255, 255, 255, .78);
    line-height: 1.7;
    max-width: 620px;
    margin: 0;
}

.hero-actions--brand {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}
@media (max-width: 900px) {
    .hero-actions--brand { justify-content: center; }
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
}

/* Bouton ghost dans le hero deep — bordure mint translucide, hover plein. */
.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1.5px solid rgba(94, 234, 212, .45);
    background: transparent;
    color: var(--brand-mint);
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-hero-ghost:hover {
    background: rgba(94, 234, 212, .1);
    border-color: var(--brand-mint);
    color: #ffffff;
    text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════════════════════
   USE CASES (section "Tout site qui a un catalogue, on l'écoute.")
   ───────────────────────────────────────────────────────────────────────────
   Grille 3×2 en desktop, 2×3 en tablette, 1 colonne en mobile.
   Cartes très simples : icône + titre + texte court. Hover doux teal.
   ═══════════════════════════════════════════════════════════════════════════ */

.use-cases { background: var(--bg-2); }

.use-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

@media (max-width: 1000px) {
    .use-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .use-grid { grid-template-columns: 1fr; }
}

.use-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px 22px;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.use-card:hover {
    border-color: var(--brand-teal-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, .07);
}

.use-icon {
    font-size: 28px;
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}

.use-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-hi);
    margin: 0 0 8px;
    letter-spacing: -.2px;
}

.use-card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PAGE HERO — version courte du hero pour les sous-pages publiques
   (contact, pricing dédié plus tard, blog, etc.). Reprend la signature
   visuelle du hero d'accueil mais avec moins de hauteur et un seul colonne.
   ═══════════════════════════════════════════════════════════════════════════ */

.page-hero--brand {
    position: relative;
    background: var(--brand-deep);
    color: #ffffff;
    padding: 72px 0 56px;
    overflow: hidden;
    text-align: center;
}

.page-hero-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.page-hero-title {
    font-family: var(--sans);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #ffffff;
    margin: 0;
}
.page-hero-title em {
    font-style: italic;
    color: var(--brand-spark);
    font-weight: 700;
}

.page-hero-sub {
    font-size: clamp(14px, 1.3vw, 17px);
    color: rgba(255, 255, 255, .78);
    line-height: 1.6;
    max-width: 580px;
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT — variante brandée (fond blanc, formulaire centré sous le hero)
   ═══════════════════════════════════════════════════════════════════════════ */

.contact-page--brand {
    max-width: 1080px;
    margin: -36px auto 0;     /* chevauche légèrement le hero pour la fluidité */
    padding: 0 24px 80px;
    position: relative;
    z-index: 1;
}

/* Form-head : pattern unifié `mark + ecoutille / zone` (même look que login). */
.form-head--brand {
    background: #ffffff;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text-dim);
}
.form-head--brand .brand-wordmark {
    font-size: 14px;
    font-weight: 600;
}
.form-head--brand .form-head-sep {
    color: var(--accent-dim);
    font-weight: 300;
}
.form-head--brand .form-head-zone {
    color: var(--text-hi);
    font-weight: 500;
}

/* Sidebar contact — listes propres et chips. */
.aside-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.aside-list li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}
.aside-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-teal);
    font-weight: 700;
}

.aside-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.aside-tags .tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════════════════════
   AUTH SPLIT (login en 2 colonnes : brand panel + carte de login)
   ───────────────────────────────────────────────────────────────────────────
   Inspiré du Quartz Pharma : panneau gauche deep teal avec gros logo, panneau
   droit blanc avec la carte de login. Stack en mobile.
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 52px);
}

@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: 1fr;
        min-height: 0;
    }
}

/* ── Panneau gauche : brand sombre ─────────────────────────────────────────── */

.auth-split-brand {
    position: relative;
    background: var(--brand-deep);
    color: #ffffff;
    padding: 60px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-split-brand .hero-bg-glow {
    background:
        radial-gradient(circle at 30% 40%, rgba(94, 234, 212, .14) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(20, 184, 166, .10) 0%, transparent 55%);
}

.auth-split-brand-inner {
    position: relative;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-split-mark {
    width: 96px;
    height: 96px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 40px rgba(94, 234, 212, .35));
    animation: hero-mark-breathe 4s ease-in-out infinite alternate;
}

.auth-split-title {
    font-family: var(--sans);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.8px;
    color: #ffffff;
    margin: 0;
}
.auth-split-title em {
    font-style: italic;
    color: var(--brand-spark);
}

.auth-split-tagline {
    font-style: italic;
    color: var(--brand-mint);
    font-size: 15px;
    border-left: 2px solid var(--brand-spark);
    padding-left: 12px;
    margin: 0;
}

.auth-split-points {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-split-points li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
    line-height: 1.5;
}
.auth-split-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-mint);
    font-weight: 700;
    font-size: 16px;
}

@media (max-width: 900px) {
    .auth-split-brand {
        padding: 40px 24px 48px;
    }
    .auth-split-brand-inner {
        align-items: center;
        text-align: center;
    }
    .auth-split-tagline {
        border-left: none;
        border-top: 2px solid var(--brand-spark);
        padding-left: 0;
        padding-top: 8px;
    }
    /* Sur mobile, on peut cacher la liste pour ne pas saturer la zone scroll. */
    .auth-split-points { display: none; }
}

/* ── Panneau droit : carte de login ────────────────────────────────────────── */

.auth-split-form {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.auth-card--in-split {
    width: 100%;
    max-width: 420px;
    margin: 0;
    box-shadow: 0 4px 24px rgba(15, 118, 110, .06);
}

@media (max-width: 900px) {
    .auth-split-form { padding: 32px 20px 60px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   TOPBAR : sélecteur de langue harmonisé avec les btn-nav
   ───────────────────────────────────────────────────────────────────────────
   Avant : .lang-select faisait 11px / padding 4px 8px (pill mono compact),
   les btn-nav faisaient 13px / padding 6px 14px → décalage visuel à droite
   de la topbar. On aligne le select sur la même hauteur que les boutons
   pour que les 3 éléments (lang, contact, se-connecter) forment un bloc
   cohérent visuellement.
   ═══════════════════════════════════════════════════════════════════════════ */

.lang-select--brand {
    /* Même padding vertical, même typo, même radius que .btn-nav. */
    padding: 6px 12px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r);
    /* Petit chevron natif retiré — on en remet un custom via background-image
       pour rester sobre et harmonisé avec le design system. */
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235b7470' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.lang-select--brand:hover {
    color: var(--text-hi);
    border-color: var(--border-hi);
    background-color: var(--bg-2);
}
.lang-select--brand:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px var(--accent-glow);
}


/* ═══════════════════════════════════════════════════════════════════════════
   PRICING — toggle Mensuel/Annuel + grille 3 plans + extras (pack + custom)
   + bandeau offre FREE.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Toggle cycle ──────────────────────────────────────────────────────────── */

.pricing-cycle-toggle {
    display: inline-flex;
    margin: 28px auto 0;
    padding: 4px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    gap: 4px;
}
.pricing-teaser .container { text-align: center; }
.pricing-teaser .pricing-cycle-toggle {
    display: inline-flex;
}

.cycle-btn {
    border: none;
    background: transparent;
    padding: 8px 18px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .15s ease, color .15s ease;
}
.cycle-btn:hover { color: var(--text-hi); }
.cycle-btn.is-active {
    background: #ffffff;
    color: var(--brand-teal);
    box-shadow: 0 1px 3px rgba(15, 118, 110, .15);
}

.cycle-badge {
    background: var(--brand-spark);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: .3px;
}

/* ── Grid 3 plans + alignement ────────────────────────────────────────────── */

.pricing-grid--3 {
    margin-top: 28px;
    text-align: left;     /* annule le center du container */
}

/* Crédits par mois — gros chiffre qui se voit. */
.plan-credits {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text-dim);
    padding: 8px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.plan-credits strong {
    color: var(--brand-teal);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.3px;
}

/* ── Extras row : Pack + Sur-mesure ──────────────────────────────────────── */

.pricing-extras {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}
@media (max-width: 800px) {
    .pricing-extras { grid-template-columns: 1fr; }
}

.extra-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px 22px;
    transition: border-color .15s ease, transform .15s ease;
}
.extra-card:hover {
    border-color: var(--brand-teal-mid);
    transform: translateY(-2px);
}

.extra-card--custom {
    background: linear-gradient(135deg, var(--bg-2) 0%, #ffffff 100%);
    border-color: var(--accent-dim);
}

.extra-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.extra-body { flex: 1; }

.extra-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.extra-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-hi);
    letter-spacing: -.2px;
}
.extra-price {
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-teal);
    letter-spacing: -.3px;
}

.extra-tagline {
    font-size: 13px;
    color: var(--text-dim);
    margin: 0 0 12px;
}

.extra-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.extra-highlights li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}
.extra-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-teal);
    font-weight: 700;
}

.extra-cta { width: auto; }

/* ── Bandeau offre FREE (export CSV gratuit) ─────────────────────────────── */

.free-offer-banner {
    margin: 28px 0 0;
    padding: 18px 22px;
    background: var(--bg-2);
    border: 1px dashed var(--brand-teal-mid);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
}
@media (max-width: 700px) {
    .free-offer-banner {
        flex-direction: column;
        text-align: center;
    }
}

.free-offer-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}
.free-offer-text {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}
.free-offer-text strong {
    color: var(--brand-teal);
}
.free-offer-cta {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────────────────────
   MENU MOBILE / BURGER (sous-site public)
   ──────────────────────────────────────────────────────────────────────────
   Sur < 768px, la topbar passe en mode "logo + burger" : la nav et les
   actions (langue + Nous contacter + Se connecter) basculent dans un drawer
   slide-in à droite. Au-dessus de 768px, le burger est caché et la topbar
   garde son layout desktop habituel.
   ────────────────────────────────────────────────────────────────────────── */

.topbar-burger {
    display: none;                  /* caché en desktop */
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r);
    width: 40px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    margin-left: auto;              /* poussé à droite quand actions cachées */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: border-color .15s, background .15s;
}
.topbar-burger:hover {
    border-color: var(--border-hi);
    background: var(--bg-2);
}
.topbar-burger-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-hi);
    border-radius: 1px;
    transition: transform .2s, opacity .2s;
}

/* Drawer mobile + backdrop — cachés en desktop, ne s'affichent qu'en mobile
   ET seulement si .mobile-drawer-open est posé sur <body> (par le JS). */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity .2s;
    z-index: 998;
}
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: 100vh;
    height: 100dvh;                 /* iOS Safari : éviter la barre URL */
    background: var(--topbar-bg, #fff);
    box-shadow: -8px 0 24px rgba(0, 0, 0, .12);
    transform: translateX(100%);
    transition: transform .22s ease-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
body.mobile-drawer-open .mobile-drawer-backdrop { opacity: 1; }
body.mobile-drawer-open .mobile-drawer          { transform: translateX(0); }
body.mobile-drawer-open                          { overflow: hidden; }

.mobile-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}
.mobile-drawer-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-dim);
    font-weight: 600;
}
.mobile-drawer-close {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0 8px;
    border-radius: var(--r);
    transition: color .15s, background .15s;
}
.mobile-drawer-close:hover { color: var(--text-hi); background: var(--bg-2); }

.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
}
.mobile-drawer-nav a {
    padding: 12px 10px;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--r);
    transition: color .15s, background .15s;
}
.mobile-drawer-nav a:hover,
.mobile-drawer-nav a.active {
    color: var(--text-hi);
    background: var(--bg-2);
}

.mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.mobile-drawer-actions .btn-nav,
.mobile-drawer-actions .lang-select { width: 100%; text-align: center; }

/* Breakpoint mobile — < 768px : bascule en mode burger.
   Le logo reste visible à gauche, le burger remplace tout le reste. */
@media (max-width: 767.98px) {
    .topbar-sep    { display: none; }
    .topbar-nav    { display: none; }
    .topbar-right  { display: none; }
    .topbar-burger { display: flex; }
}
