/* Kokoricoo - Version Web Desktop - Design professionnel */

:root {
    /* Habillage adapté de TSF : bleu marine, surfaces claires */
    --brand-start: #0b3a6e;
    --brand-mid: #1d5bb8;
    --brand-end: #1d5bb8;
    --gradient-brand: linear-gradient(135deg, #0b3a6e 0%, #1d5bb8 100%);
    --gradient-brand-h: linear-gradient(90deg, #0b3a6e, #1d5bb8);
    --primary: #0b3a6e;
    --primary-light: #1d5bb8;
    --primary-dark: #082a52;
    --accent: #0b3a6e;
    --accent-light: #1d5bb8;
    --accent-soft: #eaf1fb;
    --gradient: var(--gradient-brand);
    --gradient-soft: linear-gradient(180deg, #eaf1fb 0%, #f3f6fb 55%, #f8fafc 100%);
    --bg: #f3f6fb;
    --surface: #ffffff;
    --text: #0f1b2d;
    --text-muted: #5b6b82;
    --border: #d7e0ee;
    --error: #b91c1c;
    --success: #1d5bb8;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 8px rgba(15, 27, 45, 0.06);
    --shadow-md: 0 8px 24px rgba(11, 58, 110, 0.08);
    --shadow-lg: 0 12px 28px rgba(11, 58, 110, 0.16);
    --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --font-display: "Outfit", "Plus Jakarta Sans", sans-serif;
    --transition: 0.2s ease;
}

* {
    box-sizing: border-box;
}

body.layout-desktop {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    color: var(--text);
    background:
        radial-gradient(1200px 500px at 10% -10%, #dbe7f8 0%, transparent 55%),
        radial-gradient(900px 400px at 100% 0%, #e7eef9 0%, transparent 45%),
        var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ----- Header (même style que le footer : fond primary, texte clair) ----- */
.header-desktop {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(15, 27, 45, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 82px;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: opacity var(--transition);
    display: inline-flex;
    align-items: center;
}
/* ── Logo desktop — fond blanc arrondi sur header sombre ── */
.layout-desktop .header-desktop .logo.logo-desktop-wrap {
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: box-shadow 0.2s, transform 0.15s;
}

.layout-desktop .header-desktop .logo.logo-desktop-wrap:hover {
    opacity: 1;
    box-shadow: 0 4px 14px rgba(0,0,0,0.28);
    transform: translateY(-1px);
}

.layout-desktop .header-desktop .logo.logo-desktop-wrap:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Image logo — haute résolution, nette */
.layout-desktop .header-desktop .logo .logo-header-img {
    display: block;
    height: 58px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    object-position: center;
    image-rendering: high-quality;
    -webkit-font-smoothing: antialiased;
}

/* Rétro-compatibilité */
.layout-desktop .header-desktop .logo img.logo-img {
    filter: brightness(0) invert(1);
    height: 44px;
    width: auto;
    max-width: 185px;
    object-fit: contain;
    display: block;
}
.layout-desktop .header-desktop .logo-svg {
    display: block;
    height: 44px;
    width: auto;
}
.layout-desktop .header-desktop .logo-fallback {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    display: block;
    height: 56px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
}

.nav-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    min-width: 0;
}

.nav-main a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-main a:hover {
    color: var(--accent);
    background: rgba(29, 91, 184, 0.08);
}

.nav-main a.active {
    color: var(--accent);
    font-weight: 600;
    background: rgba(29, 91, 184, 0.1);
}

.nav-main .btn {
    margin-left: 0.25rem;
    font-size: 0.8125rem;
    padding: 0.45rem 0.75rem;
    white-space: nowrap;
}
.layout-desktop .header-desktop .nav-main .btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.layout-desktop .header-desktop .nav-main .btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}
.layout-desktop .header-desktop .nav-main .btn-outline {
    color: var(--accent);
    border-color: var(--border);
}
.layout-desktop .header-desktop .nav-main .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.header-tools {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.nav-lang {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f3f6fb;
    gap: 2px;
}

.nav-lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    color: #5b6b82;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    line-height: 1;
}

.nav-lang a:hover {
    color: #0b3a6e;
    background: #fff;
}

.nav-lang a.active {
    color: #fff;
    background: #0b3a6e;
}

/* Bouton "Espace client / expert" dans le header public (utilisateur connecté) */
.nav-espace-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.5rem;
    font-size: 0.8125rem !important;
    padding: 0.45rem 0.875rem !important;
    white-space: nowrap;
}
.nav-espace-btn svg {
    flex-shrink: 0;
}

/* ----- Main ----- */
.main-desktop {
    flex: 1;
    min-height: 0;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ----- Hero ----- */
.hero-desktop {
    background: var(--gradient);
    color: #fff;
    border-radius: 16px;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-desktop::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-region {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.hero-desktop h1 {
    margin: 0 0 1rem;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 640px;
}

.hero-lead {
    margin: 0 0 2rem;
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 520px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.hero-actions .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    background: transparent;
}

.hero-actions .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

/* ----- Page Accueil ----- */
.page-home .hero-home {
    padding: 4.5rem 3rem;
    border-radius: 20px;
}

.hero-home-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 80% 20%, rgba(255,255,255,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.page-home .hero-home--carousel {
    background: #082a52;
    min-height: 420px;
}
.page-home .hero-home--carousel::before {
    display: none;
}
.hero-home-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
}
.hero-home-carousel__track {
    position: absolute;
    inset: 0;
}
.hero-home-carousel__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 72% center;
    opacity: 0;
    transition: opacity 1.1s ease-in-out;
    transform: scale(1.02);
}
.hero-home-carousel__slide.is-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.1s ease-in-out, transform 8s ease-out;
}
.hero-home-carousel__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        102deg,
        rgba(8, 42, 82, 0.94) 0%,
        rgba(8, 42, 82, 0.78) 38%,
        rgba(11, 58, 110, 0.45) 62%,
        rgba(11, 58, 110, 0.2) 100%
    );
    pointer-events: none;
}
.hero-home-carousel__dots {
    position: absolute;
    bottom: 1.1rem;
    right: 1.25rem;
    z-index: 2;
    display: flex;
    gap: 0.45rem;
}
.hero-home-carousel__dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.25s ease, background 0.2s;
}
.hero-home-carousel__dots button.is-active {
    width: 26px;
    background: #fff;
}
.page-home .hero-home--carousel .hero-content {
    z-index: 1;
}

/* Logos Mobile Money dans le hero */
.hero-pay-logos {
    margin: 0 0 1.35rem;
    max-width: 520px;
}
.hero-pay-logos__label {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}
.hero-pay-logos__row.mm-operator-logos {
    gap: 0.65rem !important;
}
.hero-pay-logos__row.mm-operator-logos img {
    height: 44px !important;
    max-width: min(148px, 38vw) !important;
    background: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    border-radius: 12px !important;
    padding: 6px 12px !important;
    box-shadow: 0 8px 22px rgba(8, 42, 82, 0.28);
}
@media (max-width: 560px) {
    .hero-pay-logos__row.mm-operator-logos img {
        height: 38px !important;
        max-width: min(120px, 42vw) !important;
    }
}

/* Hero + vitrine talents — bloc fusionné sous la bannière */
.home-hero-fusion {
    margin: 0 0 2.75rem;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 22px 56px rgba(8, 42, 82, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.25);
}
.home-hero-fusion--with-talent .hero-home--in-fusion {
    border-radius: 0;
    margin-bottom: 0;
    padding-bottom: 2.5rem;
}
.home-hero-fusion--with-talent .hero-home-carousel,
.home-hero-fusion--with-talent .hero-home-carousel__shade {
    border-radius: 0;
}
.home-hero-fusion--with-talent .hero-home-carousel__dots {
    bottom: auto;
    top: 1rem;
    right: 1.25rem;
}
.home-hero-fusion--with-talent .hero-home-carousel__shade {
    background: linear-gradient(
        102deg,
        rgba(8, 42, 82, 0.94) 0%,
        rgba(8, 42, 82, 0.82) 35%,
        rgba(11, 58, 110, 0.55) 58%,
        rgba(11, 58, 110, 0.85) 100%
    );
}
.home-hero-fusion:not(.home-hero-fusion--with-talent) .hero-home--carousel {
    border-radius: 20px;
}

.page-home .hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.2);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.page-home .hero-desktop h1 {
    font-size: 2.5rem;
    max-width: 600px;
}

.page-home .hero-lead {
    font-size: 1.1875rem;
    max-width: 500px;
    margin-bottom: 1.2rem;
}

/* Recherche intelligente (hero accueil, type Fiverr) */
.hero-smart-search {
    max-width: 640px;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 2;
}

.hero-smart-search__form {
    position: relative;
    width: 100%;
}

.hero-smart-search__field-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #fff;
}

.hero-smart-search__field-wrap--pill {
    position: relative;
    display: block;
    border-radius: 999px;
    overflow: visible;
    background: #edf3f8;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 32px rgba(8, 42, 82, 0.22);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.hero-smart-search__field-wrap--pill:focus-within {
    background: #fff;
    box-shadow: 0 12px 36px rgba(8, 42, 82, 0.28);
}

.hero-smart-search__field-wrap--pill .globalo-search-pill__ico {
    left: 16px;
}

.hero-smart-search__field-wrap--pill .hero-smart-search__input {
    height: 48px;
    padding: 0 1.1rem 0 2.75rem;
    font-size: 0.9375rem;
    background: transparent;
    border-radius: 999px;
}

.hero-smart-search__field-wrap--pill .hero-smart-search__input::placeholder {
    color: rgba(0, 0, 0, 0.55);
}

.hero-smart-search__submit--sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-smart-search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 1rem 1.1rem;
    font-size: 1rem;
    color: #111827;
    background: #fff;
    outline: none;
}

.hero-smart-search__input::placeholder {
    color: #6b7280;
}

.hero-smart-search__submit {
    flex-shrink: 0;
    width: 56px;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #fff;
    transition: background 0.15s ease;
}

.hero-smart-search__submit:hover {
    background: #0b1220;
}

.hero-smart-search__submit:focus-visible {
    outline: 2px solid #86efac;
    outline-offset: 2px;
}

.hero-smart-search__dropdown.smart-search-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    max-height: min(70vh, 380px);
    overflow: auto;
    padding: 0.35rem 0;
    border: 1px solid #e5e7eb;
}

.hero-smart-search__dropdown .smart-search-dropdown__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-smart-search__dropdown .smart-search-dropdown__item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 1rem;
    color: inherit;
    text-decoration: none;
    transition: background 0.12s ease, border-color 0.12s ease;
    border-left: 3px solid transparent;
}

.hero-smart-search__dropdown .smart-search-dropdown__item:hover,
.hero-smart-search__dropdown .smart-search-dropdown__item:focus {
    background: #f0fdf4;
    border-left-color: var(--accent, #22c55e);
    outline: none;
}

.hero-smart-search__dropdown .smart-search-dropdown__label {
    font-weight: 600;
    color: #111827;
    font-size: 0.9375rem;
}

.hero-smart-search__dropdown .smart-search-dropdown__sub {
    font-size: 0.8125rem;
    color: #64748b;
}

.hero-smart-search__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.93);
    align-items: center;
}

.hero-smart-search__trust li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-smart-search__trust-ico {
    display: inline-flex;
    opacity: 0.95;
    flex-shrink: 0;
}

.hero-smart-search__trust--compact {
    gap: 0.6rem 0.85rem;
    font-size: 0.73rem;
    margin-top: 0.85rem;
    justify-content: center;
}

.btn-hero {
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border-radius: 10px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-hero-outline {
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border-radius: 10px;
}

/* Section badges (accueil) */
.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.page-home .section-desktop > h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-home .section-subtitle {
    margin-bottom: 2rem;
}

.page-home .section-steps {
    margin-bottom: 3.5rem;
}

.page-home .card-step {
    padding: 2rem 1.75rem;
    border-radius: 14px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.page-home .card-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(22, 163, 74, 0.25);
}

.page-home .card-step .card-number {
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.page-home .card-step h3 {
    font-size: 1.1875rem;
    margin-bottom: 0.6rem;
}

.page-home .section-examples .tag-list {
    gap: 0.6rem;
}

.page-home .tag-list li {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    border-radius: 999px;
}

/* ── Accueil : carrousel experts / professeurs par catégorie ── */
.home-talent-showcase {
    margin: 0 0 2.75rem;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 20px;
    background: linear-gradient(165deg, #f8fafc 0%, #eff6ff 45%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 32px rgba(15, 23, 42, .06);
}
.home-talent-showcase--fusion {
    margin: 0;
    padding: 0 1.35rem 1.35rem;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(
        180deg,
        rgba(8, 42, 82, 0.55) 0%,
        #0b3a6e 18%,
        #1e4a8c 42%,
        #dbeafe 100%
    );
    position: relative;
}
.home-talent-showcase--fusion::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 55%);
    pointer-events: none;
}
.home-talent-showcase--fusion > * {
    position: relative;
    z-index: 1;
}
.home-talent-showcase__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin-bottom: 1rem;
    padding-top: .35rem;
}
.home-talent-showcase__badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: .35rem .75rem;
    border-radius: 999px;
    margin-bottom: .5rem;
}
.home-talent-showcase__title {
    margin: .35rem 0 .25rem;
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    color: #0f172a;
}
.home-talent-showcase--fusion .home-talent-showcase__title {
    margin: 0 0 .35rem;
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    text-shadow: 0 1px 12px rgba(8, 42, 82, 0.35);
}
.home-talent-showcase__sub {
    margin: 0;
    max-width: 36rem;
    font-size: .9375rem;
    color: #64748b;
    line-height: 1.5;
}
.home-talent-showcase--fusion .home-talent-showcase__sub {
    color: rgba(255, 255, 255, 0.88);
    font-size: .875rem;
    max-width: 32rem;
}
.home-talent-showcase__search {
    margin-top: 0.85rem;
    max-width: 320px;
}
.globalo-search-pill--on-dark {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(8, 42, 82, 0.15);
}
.globalo-search-pill--on-dark:focus-within {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 8px 24px rgba(8, 42, 82, 0.22);
}
.home-talent-showcase__shell {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    padding: 1.1rem 1.15rem 1rem;
    box-shadow: 0 16px 40px rgba(8, 42, 82, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.home-talent-showcase__nav {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    max-width: 100%;
}
.home-talent-showcase__pill {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: .78rem;
    font-weight: 600;
    padding: .4rem .75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.home-talent-showcase--fusion .home-talent-showcase__pill {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.95);
}
.home-talent-showcase__pill.is-active,
.home-talent-showcase__pill:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.home-talent-showcase--fusion .home-talent-showcase__pill.is-active,
.home-talent-showcase--fusion .home-talent-showcase__pill:hover {
    background: #fff;
    border-color: #fff;
    color: #0b3a6e;
}
.home-talent-showcase__panel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
    flex-wrap: wrap;
}
.home-talent-showcase__panel-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .65rem;
    font-size: .875rem;
    color: #475569;
}
.home-talent-showcase__panel-meta strong {
    color: #0f172a;
    font-size: 1rem;
}
.home-talent-showcase__kind {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #dbeafe;
    color: #1d4ed8;
    padding: .2rem .5rem;
    border-radius: 999px;
}
.home-talent-showcase__cat {
    font-size: .78rem;
    color: #64748b;
}
.home-talent-showcase__see-all {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .8125rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.home-talent-showcase__see-all:hover { text-decoration: underline; }
.home-talent-showcase__marquee-wrap {
    overflow: hidden;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: .85rem 0;
}
.home-talent-showcase--fusion .home-talent-showcase__marquee-wrap {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-color: #e2e8f0;
}
.home-talent-showcase__marquee.is-animated .home-talent-showcase__marquee-track {
    animation: home-talent-marquee 42s linear infinite;
    width: max-content;
}
.home-talent-showcase__marquee.is-animated:hover .home-talent-showcase__marquee-track {
    animation-play-state: paused;
}
.home-talent-showcase__marquee-track {
    display: flex;
    gap: .85rem;
    padding: 0 1rem;
}
@keyframes home-talent-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.home-talent-card {
    position: relative;
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem .85rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.home-talent-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .12);
}
.home-talent-card__avatar .public-user-thumb__circle {
    width: 52px;
    height: 52px;
}
.home-talent-card__avatar .public-user-thumb__img,
.home-talent-card__avatar .public-user-thumb__initials {
    width: 52px !important;
    height: 52px !important;
}
.home-talent-card__body {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    min-width: 0;
    text-align: left;
}
.home-talent-card__type {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #64748b;
}
.home-talent-card__name {
    font-size: .875rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}
.home-talent-card__line2 {
    font-size: .72rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}
.home-talent-card__tarif {
    font-size: .78rem;
    font-weight: 700;
    color: #1d4ed8;
    margin-top: .15rem;
}
.home-talent-card__verified {
    display: none !important;
}
.home-talent-card__name-row,
.home-live-card__title-row {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    flex-wrap: wrap;
    max-width: 100%;
}
.home-talent-card__verified--legacy {
    position: absolute;
    top: .45rem;
    right: .45rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: .65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.home-talent-showcase__dots {
    display: flex;
    justify-content: center;
    gap: .45rem;
    margin-top: 1rem;
}
.home-talent-showcase__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    padding: 0;
    cursor: pointer;
    transition: transform .15s, background .15s;
}
.home-talent-showcase__dot.is-active {
    background: #2563eb;
    transform: scale(1.25);
}
@media (max-width: 720px) {
    .home-talent-showcase { padding: 1.25rem 1rem; }
    .home-talent-showcase--fusion { padding: 0 0.85rem 0.85rem; }
    .home-talent-showcase__head { flex-direction: column; align-items: flex-start; }
    .home-talent-card { flex-basis: 200px; }
    .home-hero-fusion--with-talent .hero-home--in-fusion { padding: 2.5rem 1.25rem 2rem; }
}

/* ── FAQ SEO (accueil) ── */
.home-faq-seo {
    max-width: 860px;
    margin: 0 auto 2.75rem;
}
.home-faq-seo__list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-top: 1.25rem;
}
.home-faq-seo__item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: .85rem 1rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}
.home-faq-seo__item summary {
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    list-style: none;
}
.home-faq-seo__item summary::-webkit-details-marker { display: none; }
.home-faq-seo__item summary::after {
    content: '+';
    float: right;
    color: #2563eb;
    font-weight: 800;
}
.home-faq-seo__item[open] summary::after { content: '−'; }
.home-faq-seo__item p {
    margin: .65rem 0 0;
    color: #475569;
    font-size: .9375rem;
    line-height: 1.55;
}

/* ── CTA Banner (homepage) ── */
.home-cta-banner {
    position: relative;
    background: linear-gradient(135deg, #0f4c2a 0%, #16a34a 55%, #22c55e 100%);
    border-radius: 20px;
    padding: 2.25rem 2.5rem;
    margin: 0 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(22, 163, 74, 0.30);
}

.home-cta-banner__deco {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 50%, rgba(255,255,255,0.07) 0%, transparent 55%),
        radial-gradient(circle at 90% 20%, rgba(255,255,255,0.05) 0%, transparent 45%);
    pointer-events: none;
}

.home-cta-banner__content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.home-cta-banner__icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(4px);
}

.home-cta-banner__text {
    flex: 1;
}

.home-cta-banner__title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.home-cta-banner__subtitle {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.82);
    margin: 0;
    line-height: 1.5;
}

.home-cta-banner__btn {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #fff;
    color: #16a34a;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.home-cta-banner__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    background: #f0fdf4;
}

@media (max-width: 680px) {
    .home-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.75rem 1.5rem;
    }
    .home-cta-banner__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Testimonials carousel ── */
.section-testimonials {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonials-header h2 {
    margin: 0.4rem 0 0.25rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary);
    border: none;
    padding: 0;
}

.testimonials-header .section-subtitle {
    margin: 0;
}

.testimonials-nav {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.testimonials-nav__btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s;
}

.testimonials-nav__btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.18);
}

.testimonials-nav__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.testimonials-carousel {
    overflow: hidden;
    border-radius: 18px;
}

.testimonials-carousel__track {
    display: flex;
    gap: 20px;
    transition: transform 0.48s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-card-v2 {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
    transition: box-shadow 0.22s, transform 0.22s;
}

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

.testimonial-card-v2__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.testimonial-card-v2__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 1.0625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.testimonial-card-v2__stars {
    display: flex;
    gap: 2px;
}

.testimonial-card-v2__quote {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
    font-style: italic;
    flex: 1;
    position: relative;
    padding-left: 1.25rem;
}

.testimonial-card-v2__quote::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -0.1em;
    font-size: 2rem;
    line-height: 1;
    color: var(--accent);
    font-style: normal;
    font-weight: 800;
    opacity: 0.35;
}

.testimonial-card-v2__footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.testimonial-card-v2__footer-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.testimonial-card-v2__name {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary);
    font-style: normal;
}

.testimonial-card-v2__role {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Dots */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testi-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: background 0.22s, width 0.28s cubic-bezier(0.4,0,0.2,1);
    padding: 0;
}

.testi-dot.is-active {
    background: var(--accent);
    width: 24px;
}

@media (max-width: 680px) {
    .testimonials-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .testimonials-nav {
        align-self: flex-end;
    }
}

.btn-cta {
    padding: 0.9rem 1.75rem;
    font-weight: 600;
    border-radius: 10px;
    background: var(--gradient);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.30);
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.38);
}

@media (max-width: 768px) {
    .page-home .hero-home {
        padding: 3rem 1.5rem;
    }
    .page-home .hero-desktop h1 {
        font-size: 1.875rem;
    }
    .page-home .hero-lead {
        font-size: 1rem;
    }
    .layout-desktop.page-public-shell .main-desktop,
    .layout-desktop.layout-desktop--linkedin .main-desktop {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .section-desktop > h2 {
        font-size: 1.2rem;
        margin-top: 1.75rem;
    }
    .audience-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .page-home--rich .home-live {
        padding: 1.15rem 0.85rem 1rem;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        border-radius: 16px;
    }
    .home-live__title { font-size: 1.2rem; }
    .home-live__tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.15rem;
        scrollbar-width: none;
    }
    .home-live__tabs::-webkit-scrollbar { display: none; }
    .home-live__tab { flex-shrink: 0; }
    .home-live-card { flex: 0 0 min(78vw, 220px); }
    .home-live-card__avatar-wrap .public-user-thumb--sm {
        width: 48px;
        height: 48px;
    }
    .home-news__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .audience-grid--4 {
        grid-template-columns: 1fr;
    }
    .audience-card {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
        column-gap: 0.85rem;
        row-gap: 0.25rem;
        padding: 1rem 1.1rem !important;
    }
    .audience-card h3 { grid-column: 1; grid-row: 1; }
    .audience-card__abo { grid-column: 1; grid-row: 2; }
    .audience-card p:not(.audience-card__abo) { grid-column: 1; grid-row: 3; }
    .audience-card .btn {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: center;
        margin: 0;
        min-width: 6.75rem;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}

/* ----- Sections ----- */
.section-desktop {
    margin-bottom: 3rem;
}

.section-desktop > h1 {
    color: var(--primary);
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-desktop > h2 {
    color: var(--primary);
    font-size: 1.375rem;
    font-weight: 600;
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.section-desktop .section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 0 1.5rem;
}

/* Grille accueil — marché & profils */
.audience-grid {
    display: grid;
    gap: 1rem;
}
.audience-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.audience-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 100%;
}
.audience-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}
.audience-card p {
    margin: 0;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-muted);
}
.audience-card__abo {
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    color: #0f766e !important;
}
.audience-card .btn {
    align-self: flex-start;
    margin-top: 0.35rem;
    min-width: 7.5rem;
    text-align: center;
    justify-content: center;
}
.section-audience .audience-card .btn-outline {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}
.section-audience .audience-card .btn-outline:hover {
    filter: brightness(1.05);
    color: #fff;
}

/* Paiements mobile — logos uniquement, design soigné (accueil + à propos) */
.section-payments-mobile .payments-mobile-block,
.about-section .payments-mobile-block {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1.75rem 2rem;
    border: 1px solid var(--border);
}
.section-payments-mobile .payments-mobile-block__logos,
.about-section .payments-mobile-block__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 1.5rem;
}
.section-payments-mobile .payments-mobile-block__item,
.about-section .payments-mobile-block__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 48px;
    padding: 0.5rem;
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.section-payments-mobile .payments-mobile-block__item:hover,
.about-section .payments-mobile-block__item:hover {
    border-color: var(--accent-light);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.12);
}
.section-payments-mobile .payments-mobile-block__logo,
.about-section .payments-mobile-block__logo {
    height: 36px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.section-payments-mobile .payments-mobile-block__btn,
.about-section .payments-mobile-block__btn {
    display: inline-block;
    margin-top: 1.5rem;
    text-decoration: none;
}

/* ----- Cards ----- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card-desktop {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.card-desktop:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card-number {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9375rem;
}

.card-desktop h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
}

.card-desktop p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ----- Dashboard Client ----- */
.dashboard-client {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.dashboard-client__title {
    margin: 0 0 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.dashboard-client__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 2rem;
}

.dashboard-client__btn-urgence {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.dashboard-client__btn-urgence:hover {
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.dashboard-client__btn-icon {
    display: inline-flex;
    color: inherit;
}

.dashboard-client__btn-icon svg {
    display: block;
}

.dashboard-client__referral {
    margin-bottom: 2rem;
}

.dashboard-client__referral-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.dashboard-client__referral-icon {
    display: inline-flex;
    color: var(--accent);
}

.dashboard-client__referral-icon svg {
    display: block;
}

.dashboard-client__referral h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
}

.dashboard-client__referral-desc {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.dashboard-client__referral-copy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.dashboard-client__referral-input {
    flex: 1;
    min-width: 200px;
    padding: 0.6rem 1rem;
    font-family: var(--font);
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
}

.dashboard-client__referral-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.dashboard-client__copy-btn {
    flex-shrink: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dashboard-client__blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.dashboard-client__block {
    padding: 1.5rem 1.75rem;
}

.dashboard-client__block h2 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.dashboard-client__empty {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.dashboard-client__list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.dashboard-client__list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    color: var(--text);
}

.dashboard-client__list li:last-child {
    border-bottom: none;
}

/* ----- Tag list (exemples) ----- */
.section-examples .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tag-list li {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: border-color var(--transition), background var(--transition);
}

.tag-list li:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 4px 14px rgba(11, 58, 110, 0.28);
    color: #fff;
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.875rem;
}

/* ----- Forms ----- */
.section-form {
    max-width: 440px;
}

.section-form .form-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-desktop .form-group {
    margin-bottom: 1.25rem;
}

.form-desktop label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
    font-size: 0.9375rem;
}

.form-desktop input,
.form-desktop select,
.form-desktop textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: var(--font);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

/* Notation par étoiles (client noter expert, expert noter client) */
.rating-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 2rem;
    line-height: 1;
}
.rating-star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--border);
    transition: color var(--transition), transform var(--transition);
}
.rating-star:hover,
.rating-star.active {
    color: #f1c40f;
}
.rating-star:hover {
    transform: scale(1.15);
}
.rating-star.active {
    color: #f1c40f;
}

.rating-stars-inline {
    font-size: 1.1rem;
    color: #f1c40f;
    letter-spacing: 0.05em;
}
.reservation-avis-recu {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.reservation-avis-recu .reservation-avis-comment {
    margin: 0.5rem 0 0;
    color: var(--text);
    font-size: 0.9375rem;
}

.form-desktop input:focus,
.form-desktop select:focus,
.form-desktop textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.form-desktop textarea {
    min-height: 100px;
    resize: vertical;
}

.form-desktop .btn {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.75rem;
}

.form-link {
    margin-top: 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-align: center;
}

.form-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.form-link a:hover {
    text-decoration: underline;
}

/* ----- Alerts ----- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.alert-error {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

.alert-error ul {
    margin: 0.25rem 0 0;
    padding-left: 1.25rem;
}

.alert-info {
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
}

.alert-success {
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

/* ----- Page Nouvelle demande (client) ----- */
.page-nouvelle-demande {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.page-nouvelle-demande__header {
    margin-bottom: 1.5rem;
}

.page-nouvelle-demande__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.page-nouvelle-demande__back:hover {
    color: var(--accent);
}

.page-nouvelle-demande__back svg {
    flex-shrink: 0;
}

.page-nouvelle-demande__title {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.page-nouvelle-demande__subtitle {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.page-nouvelle-demande__alert {
    margin-bottom: 1.5rem;
}

.page-nouvelle-demande__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.page-nouvelle-demande__card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.page-nouvelle-demande__card-title {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.page-nouvelle-demande__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 520px) {
    .page-nouvelle-demande__row {
        grid-template-columns: 1fr;
    }
}

.page-nouvelle-demande__card .form-group {
    margin-bottom: 1.25rem;
}

.page-nouvelle-demande__card .form-group:last-child {
    margin-bottom: 0;
}

.page-nouvelle-demande__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding-top: 0.5rem;
}

.page-nouvelle-demande__actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.page-nouvelle-demande__actions .btn-primary svg {
    flex-shrink: 0;
}

/* ----- Pages Client (urgence, demandes, réservations, messages) ----- */
.page-client {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.page-client__header {
    margin-bottom: 1.5rem;
}

.page-client__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.page-client__back:hover {
    color: var(--accent);
}

.page-client__back svg {
    flex-shrink: 0;
}

.page-client__title {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-client__subtitle {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.page-client__subtitle strong {
    color: var(--text);
}

.page-client__cta {
    margin-top: 0.25rem;
}

.page-client__alert {
    margin-bottom: 1.5rem;
}

.page-client__card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.page-client__empty {
    text-align: center;
    padding: 2rem 1rem;
}

.page-client__empty p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.page-client__empty-hint {
    font-size: 0.875rem !important;
    margin-bottom: 1.25rem !important;
}

.page-client__empty .btn {
    margin: 0 0.35rem 0.35rem 0;
}

.page-client__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-client__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.page-client__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.page-client__item:first-child {
    padding-top: 0;
}

.page-client__item-main {
    flex: 1;
    min-width: 0;
}

.page-client__item-title {
    display: block;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.page-client__item-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Urgence */
.page-urgence__icon {
    display: inline-flex;
    color: var(--accent);
}

.page-urgence__form .page-client__card .form-group {
    margin-bottom: 1.25rem;
}

.page-urgence__form .page-client__card .form-group:last-of-type {
    margin-bottom: 0;
}

.page-urgence__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.page-urgence__actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.page-urgence__actions .btn-primary svg {
    flex-shrink: 0;
}

.form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.form-label-hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 0.35rem;
}

.required {
    color: var(--error);
}

/* ================================================
   Messages — Conversations list
   ================================================ */
.msg-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: .625rem;
}
.msg-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.375rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color .18s, box-shadow .18s, transform .15s;
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.msg-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(22,163,74,.1);
    transform: translateY(-1px);
}
.msg-card__avatar {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(22,163,74,.15);
}
.msg-card__body { flex: 1; min-width: 0; }
.msg-card__top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .25rem;
}
.msg-card__titre {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--text);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.msg-card:hover .msg-card__titre { color: var(--accent); }
.msg-card__statut {
    font-size: .7rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}
.msg-card__interlocuteur {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .8125rem;
    color: var(--text-muted);
}
.msg-card__arrow {
    flex-shrink: 0;
    color: #cbd5e1;
    transition: color .15s, transform .15s;
}
.msg-card:hover .msg-card__arrow { color: var(--accent); transform: translateX(3px); }
.msg-card--unread {
    border-left: 3px solid #ef4444;
}
.msg-card--unread .msg-card__titre {
    font-weight: 800;
}
.mobile-list-unread-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--surface, #fff);
    z-index: 2;
    pointer-events: none;
}

/* ----- Pages Expert (tableau de bord, revenus, réservations, missions) ----- */
.page-expert {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.page-expert__header {
    margin-bottom: 1.5rem;
}

.page-expert__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.page-expert__back:hover {
    color: var(--accent);
}

.page-expert__back svg {
    flex-shrink: 0;
}

.page-expert__title {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.page-expert__subtitle {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.page-expert__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.page-expert__card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.page-expert__card:last-child {
    margin-bottom: 0;
}

.page-expert__card-title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.page-expert__empty {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.page-expert__list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.page-expert__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.page-expert__item:last-child {
    border-bottom: none;
}

.page-expert__item:first-child {
    padding-top: 0;
}

.page-expert__item-main {
    flex: 1;
    min-width: 0;
}

.page-expert__item-title {
    display: block;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.page-expert__item-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.page-expert__item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Parrainage (dashboard expert) */
.page-expert__referral-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.page-expert__referral-icon {
    display: inline-flex;
    color: var(--accent);
}

.page-expert__referral-icon svg {
    display: block;
}

.page-expert__referral-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
}

.page-expert__referral-desc {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.page-expert__referral-copy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.page-expert__referral-input {
    flex: 1;
    min-width: 200px;
    padding: 0.6rem 1rem;
    font-family: var(--font);
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
}

/* Filtres réservations (pills) */
.page-expert-reservations__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.page-expert__pill {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.page-expert__pill:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.page-expert__pill.active {
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-soft);
    border-color: var(--accent);
}

/* ================================================
   Revenus Expert — Design refondu
   ================================================ */

.revenus-retrait-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.375rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s, transform .15s, box-shadow .18s;
    box-shadow: 0 2px 8px rgba(22,163,74,.25);
    white-space: nowrap;
    align-self: flex-start;
}
.revenus-retrait-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(22,163,74,.3);
}

/* KPI Cards */
.revenus-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.revenus-kpi-card {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1.5px solid transparent;
}
.revenus-kpi-card--primary {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
}
.revenus-kpi-card--gains {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
}
.revenus-kpi-card__icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.revenus-kpi-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.revenus-kpi-card__label {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 0.25rem;
}
.revenus-kpi-card__value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}
.revenus-kpi-card__devise {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: .7;
    margin-top: 0.2rem;
}
.revenus-kpi-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50px;
    position: absolute;
    top: 1rem;
    right: 1rem;
    white-space: nowrap;
}

/* Historique */
.revenus-history {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    overflow: hidden;
}
.revenus-history__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.revenus-history__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}
.revenus-history__count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    border: 1px solid var(--border);
}
.revenus-table-wrap {
    overflow-x: auto;
}
.revenus-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.revenus-table thead th {
    padding: 0.625rem 1.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-muted);
    background: var(--bg);
    border-bottom: 1.5px solid var(--border);
    text-align: left;
    white-space: nowrap;
}
.revenus-table__row {
    border-bottom: 1px solid var(--border);
    transition: background .12s;
}
.revenus-table__row:last-child { border-bottom: none; }
.revenus-table__row:hover { background: #f8fafc; }
.revenus-table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}
.revenus-col-right { text-align: right !important; }
.revenus-col-center { text-align: center !important; }
.revenus-type-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}
.revenus-type-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.revenus-type-label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text);
    white-space: nowrap;
}
.revenus-table__desc { color: var(--text-muted); font-size: .8125rem; }
.revenus-table__montant {
    font-weight: 700;
    font-size: .9375rem;
    white-space: nowrap;
}
.revenus-montant--credit { color: #16a34a; }
.revenus-montant--debit  { color: var(--text); }
.revenus-table__devise {
    font-size: .75rem;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 2px;
}
.revenus-table__date { color: var(--text-muted); font-size: .8rem; white-space: nowrap; }
.revenus-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ================================================
   Page Missions Urgentes Expert — Design refondu
   ================================================ */

/* Hero */
.urgences-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.urgences-hero__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.urgences-hero__icon-wrap {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(239,68,68,.25);
}
.urgences-hero__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 0.2rem;
    letter-spacing: -.02em;
}
.urgences-hero__sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Badge "live" */
.urgences-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}
.urgences-live-badge--quiet {
    background: #f8fafc;
    color: var(--text-muted);
    border-color: var(--border);
}
.urgences-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: urgences-pulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
.urgences-live-dot--quiet {
    background: #94a3b8;
    animation: none;
}
@keyframes urgences-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: .6; }
}

/* Alerte flash */
.urgences-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 0.875rem 1.25rem;
    margin-bottom: 1.25rem;
    color: #b91c1c;
    font-size: 0.875rem;
}

/* État vide */
.urgences-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.urgences-empty__illustration {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.urgences-empty__ripple {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    animation: urgences-ripple 2.5s ease-out infinite;
}
@keyframes urgences-ripple {
    0% { transform: scale(.85); opacity: .6; }
    100% { transform: scale(1.2); opacity: 0; }
}
.urgences-empty__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.625rem;
}
.urgences-empty__text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.65;
    margin: 0 0 1.75rem;
}
.urgences-empty__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Bandeau info règles */
.urgences-rules {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.125rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    color: #92400e;
}
.urgences-rules svg {
    flex-shrink: 0;
    color: #f59e0b;
}

/* Liste de cartes */
.urgences-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Carte mission urgente */
.urgences-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(15,23,42,.05);
    transition: border-color .2s, box-shadow .2s, transform .15s;
    position: relative;
    overflow: hidden;
}
.urgences-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f59e0b, #ef4444);
    border-radius: 4px 0 0 4px;
}
.urgences-card:hover {
    border-color: #fca5a5;
    box-shadow: 0 4px 16px rgba(239,68,68,.1);
    transform: translateY(-1px);
}

/* Numéro + dot */
.urgences-card__badge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding-top: 0.125rem;
}
.urgences-card__num {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .04em;
}
.urgences-card__urgent-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    animation: urgences-pulse 1.4s ease-in-out infinite;
}

/* Corps */
.urgences-card__body {
    flex: 1;
    min-width: 0;
}
.urgences-card__top {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}
.urgences-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}
.urgences-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    white-space: nowrap;
    margin-top: 2px;
}
.urgences-card__desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 0.875rem;
}
.urgences-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.urgences-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.urgences-card__meta-sep {
    color: var(--border);
}

/* Bouton accepter */
.urgences-card__action {
    flex-shrink: 0;
    align-self: center;
}
.urgences-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(239,68,68,.25);
}
.urgences-card__btn:hover {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(239,68,68,.35);
}
.urgences-card__btn:active {
    transform: translateY(0);
}
.urgences-card__btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 600px) {
    .urgences-hero { flex-direction: column; align-items: flex-start; }
    .urgences-card { flex-wrap: wrap; }
    .urgences-card__action { width: 100%; }
    .urgences-card__btn { width: 100%; justify-content: center; }
}

/* ================================================
   Page Retrait Expert — Design refondu
   ================================================ */

/* Hero solde */
.retrait-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.retrait-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center / 120px repeat;
    pointer-events: none;
}
.retrait-hero__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.retrait-hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.retrait-hero__label {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.retrait-hero__amount {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}
.retrait-hero__devise {
    font-size: 1.125rem;
    font-weight: 600;
    opacity: .75;
}
.retrait-hero__hint {
    font-size: 0.75rem;
    opacity: .65;
    margin-top: 0.25rem;
}
.retrait-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.875rem;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}
.retrait-hero__badge--warn {
    background: rgba(245,158,11,.25);
    border-color: rgba(245,158,11,.45);
}

/* Alerte erreur */
.retrait-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #b91c1c;
}
.retrait-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #ef4444;
}
.retrait-alert ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.retrait-alert li + li {
    margin-top: 0.25rem;
}

/* Carte formulaire */
.retrait-form-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.retrait-form-card__icon {
    width: 44px;
    height: 44px;
    background: var(--accent-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.retrait-form-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.2rem;
}
.retrait-form-card__sub {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Grille formulaire */
.retrait-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
    .retrait-form__grid { grid-template-columns: 1fr; }
}
.retrait-form__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.retrait-form__badge-devise {
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}
.retrait-form__optional {
    font-size: 0.7rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}
.retrait-form__input-wrap {
    position: relative;
}
.retrait-form__input-prefix {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
}
.retrait-form__input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: 0.9375rem;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.retrait-form__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: #fff;
}
.retrait-form__input:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.retrait-form__hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}
.retrait-form__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}
.retrait-form__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
}
.retrait-form__security {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* Historique */
.retrait-history__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.retrait-history__count {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}
.retrait-history__empty {
    text-align: center;
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.retrait-history__empty svg { opacity: .5; }
.retrait-history__empty p {
    margin: 0;
    font-weight: 600;
    color: var(--text);
    font-size: .9375rem;
}
.retrait-history__empty span {
    font-size: .8125rem;
    color: var(--text-muted);
}
.retrait-history__table-wrap {
    overflow-x: auto;
    margin: 0 -0.25rem;
}
.retrait-history__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.retrait-history__table thead th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    border-bottom: 1.5px solid var(--border);
}
.retrait-history__table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.retrait-history__table tbody tr:last-child {
    border-bottom: none;
}
.retrait-history__table tbody tr:hover {
    background: var(--bg);
}
.retrait-history__table td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
}
.retrait-col-right { text-align: right !important; }
.retrait-col-center { text-align: center !important; }
.retrait-history__date {
    color: var(--text-muted);
    white-space: nowrap;
    font-size: .8125rem;
}
.retrait-history__iban {
    font-family: monospace;
    font-size: .825rem;
    color: var(--text-muted);
}
.retrait-history__amount {
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.retrait-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.page-expert__alert {
    margin-bottom: 1.5rem;
}

/* ================================================
   Missions & Réservations Expert — Design partagé
   ================================================ */

/* En-tête commun */
.missions-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.missions-header__left {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.missions-header__title-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.missions-header__icon {
    width: 48px;
    height: 48px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.missions-header__icon--blue {
    background: #eff6ff;
    color: #3b82f6;
}
.missions-header__icon--purple {
    background: #f5f3ff;
    color: #7c3aed;
}
.missions-header__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 0.2rem;
    letter-spacing: -.02em;
}
.missions-header__sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}
.missions-header__count {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.3rem 0.875rem;
    border-radius: 50px;
    white-space: nowrap;
    align-self: flex-start;
}

/* État vide */
.missions-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3.5rem 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1.5px dashed var(--border);
}
.missions-empty__icon {
    margin-bottom: 1.25rem;
    opacity: .7;
}
.missions-empty__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem;
}
.missions-empty__text {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 380px;
    line-height: 1.65;
    margin: 0 0 1.5rem;
}
.missions-empty__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}
.missions-empty__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Liste */
.missions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* Carte mission */
.mission-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
    transition: border-color .18s, box-shadow .18s, transform .15s;
    position: relative;
    overflow: hidden;
}
.mission-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(99,102,241,.08);
    transform: translateY(-1px);
}

/* Bande colorée à gauche */
.mission-card__stripe {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

/* Corps */
.mission-card__body {
    flex: 1;
    min-width: 0;
}
.mission-card__top {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}
.mission-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}
.mission-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
}
.mission-card__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mission-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.625rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.mission-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.mission-card__meta-amount {
    font-weight: 600;
    color: var(--accent);
}
.mission-card__meta-sep {
    color: #cbd5e1;
}

/* Actions */
.mission-card__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.reservation-card__actions {
    flex-direction: column;
    align-items: stretch;
}
.mission-card__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.mission-card__action-btn:hover {
    background: var(--bg);
    border-color: #94a3b8;
    color: var(--text);
}
.mission-card__action-btn--accept {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.mission-card__action-btn--accept:hover {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}
.mission-card__action-btn--refuse {
    border-color: #fecaca;
    color: #ef4444;
    background: #fef2f2;
}
.mission-card__action-btn--refuse:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #dc2626;
}
.mission-card__action-btn--finish {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}
.mission-card__action-btn--finish:hover {
    background: #0d6561;
    border-color: #0d6561;
    color: #fff;
}
.mission-card__action-btn--rate {
    border-color: #fde68a;
    color: #b45309;
    background: #fffbeb;
}
.mission-card__action-btn--rate:hover {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}

/* Filtres réservations */
.reservations-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.reservations-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.reservations-filter-pill:hover {
    background: var(--bg);
    border-color: #94a3b8;
    color: var(--text);
}
.reservations-filter-pill.active {
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(15,23,42,.06);
}
.reservations-filter-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .missions-header { flex-direction: column; align-items: flex-start; }
    .mission-card { flex-wrap: wrap; padding: 1rem; }
    .reservation-card__actions { flex-direction: row; flex-wrap: wrap; }
    .mission-card__action-btn { flex: 1; min-width: 120px; }
}

/* ================================================
   Profil Expert — Design refondu
   ================================================ */

.profil-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #b91c1c;
    font-size: .875rem;
}
.profil-alert ul { margin: 0; padding: 0; list-style: none; }
.profil-alert li + li { margin-top: .25rem; }
.profil-alert--success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

.profil-identity-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(15,23,42,.04);
}
.profil-identity-card__avatar-wrap { position: relative; flex-shrink: 0; }
.profil-identity-card__avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    display: block;
}
.profil-identity-card__avatar--placeholder {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 3px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.profil-identity-card__avatar-edit {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 26px; height: 26px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    transition: background .15s;
}
.profil-identity-card__avatar-edit:hover { background: #15803d; }
.profil-identity-card__info { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.profil-identity-card__name { font-size: 1.0625rem; font-weight: 700; color: var(--text); }
.profil-identity-card__email { font-size: .8125rem; color: var(--text-muted); }
.profil-identity-card__titre { font-size: .8125rem; color: var(--accent); font-weight: 500; margin-top: .2rem; }
.profil-identity-card__actions { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.profil-identity-card__photo-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px dashed var(--border);
    color: var(--text-muted);
    background: var(--bg);
    transition: border-color .15s, color .15s, background .15s;
}
.profil-identity-card__photo-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.profil-identity-card__photo-btn--change {
    border-style: solid;
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}
.profil-identity-card__hint { font-size: .72rem; color: var(--text-muted); }

.profil-form { display: flex; flex-direction: column; gap: 1.25rem; }
.profil-section {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.profil-section__header {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.profil-section__icon {
    width: 40px; height: 40px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profil-section__icon--purple { background: #f5f3ff; color: #7c3aed; }
.profil-section__title { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0 0 .25rem; }
.profil-section__sub { font-size: .8125rem; color: var(--text-muted); margin: 0; }

.profil-form__group { display: flex; flex-direction: column; gap: .375rem; margin-bottom: 1.25rem; }
.profil-form__group:last-child { margin-bottom: 0; }
.profil-form__label { font-size: .875rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: .5rem; }
.profil-form__required { color: #ef4444; font-weight: 700; }
.profil-form__currency {
    font-size: .72rem; font-weight: 600; color: var(--accent);
    background: var(--accent-soft); padding: .15rem .5rem; border-radius: 50px;
}
.profil-form__input,
.profil-form__textarea,
.profil-form__select {
    width: 100%;
    padding: .75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: .9375rem;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    font-family: inherit;
}
.profil-form__input:focus,
.profil-form__textarea:focus,
.profil-form__select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: #fff;
}
.profil-form__input-wrap { position: relative; }
.profil-form__input-prefix {
    position: absolute; left: .875rem; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8; pointer-events: none; display: flex;
}
.profil-form__input--with-icon { padding-left: 2.625rem; }
.profil-form__textarea { resize: vertical; min-height: 110px; }
.profil-form__hint { font-size: .75rem; color: var(--text-muted); }
.profil-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.profil-form__disponibilite {
    margin-top: .5rem;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
}
.profil-form__toggle-label { display: flex; align-items: center; gap: .875rem; cursor: pointer; }
.profil-form__toggle-input { display: none; }
.profil-form__toggle-track {
    width: 44px; height: 24px;
    background: #cbd5e1;
    border-radius: 50px;
    position: relative;
    flex-shrink: 0;
    transition: background .2s;
}
.profil-form__toggle-input:checked + .profil-form__toggle-track { background: var(--accent); }
.profil-form__toggle-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #fff; border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.profil-form__toggle-input:checked + .profil-form__toggle-track .profil-form__toggle-thumb { transform: translateX(20px); }
.profil-form__toggle-text { display: flex; flex-direction: column; gap: .1rem; }
.profil-form__toggle-text strong { font-size: .875rem; color: var(--text); }
.profil-form__toggle-text span { font-size: .75rem; color: var(--text-muted); }

.profil-competences-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.profil-competence-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-size: .8125rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    user-select: none;
}
.profil-competence-chip input[type="checkbox"] { display: none; }
.profil-competence-chip__check { display: none; flex-shrink: 0; }
.profil-competence-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.profil-competence-chip.is-checked {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}
.profil-competence-chip.is-checked .profil-competence-chip__check { display: block; }

.profil-autres-wrap { padding-top: 1.25rem; border-top: 1px solid var(--border); }

.profil-form__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .875rem;
    flex-wrap: wrap;
}
.profil-form__submit { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.75rem; font-size: .9375rem; }
.profil-form__cancel { padding: .75rem 1.375rem; }

@media (max-width: 640px) {
    .profil-form__row { grid-template-columns: 1fr; }
    .profil-identity-card { flex-wrap: wrap; }
    .profil-identity-card__actions { align-items: flex-start; }
    .profil-form__footer { justify-content: stretch; }
    .profil-form__submit, .profil-form__cancel { flex: 1; justify-content: center; }
}

/* ----- Page Experts (liste) ----- */
.page-experts {
    padding: 2rem 1.5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experts-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
    background: var(--gradient-soft);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.experts-intro-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.experts-intro h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.experts-intro-lead {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.experts-filters-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
}

.experts-filters-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border);
}

.filters-submit {
    min-height: 44px;
    padding: 0.6rem 1.25rem;
}

.filters-form {
    margin: 0;
}

.filters-form-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filters-form .form-group {
    margin-bottom: 0;
}

.filters-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.filters-form input,
.filters-form select {
    min-width: 200px;
    padding: 0.6rem 1rem;
    font-family: var(--font);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.filters-form input:focus,
.filters-form select:focus {
    outline: none;
    border-color: var(--accent);
}

.experts-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    box-shadow: var(--shadow);
}

.experts-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    line-height: 1;
    opacity: 0.85;
}

.experts-empty-icon img {
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.experts-empty h2 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.experts-empty p {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.experts-results {
    margin-top: 0;
}

.experts-count {
    display: inline-block;
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    padding: 0.4rem 0.9rem;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    font-weight: 600;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.expert-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-top: 3px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.expert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
    border-top-color: var(--accent);
}

.expert-card .badge-verified {
    position: absolute;
    top: 1rem;
    right: 1rem;
    margin: 0;
}

.expert-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.expert-card-title {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
}

.expert-card-name {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0 0 0.5rem;
}

.expert-card-tarif {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
}

.expert-card-note {
    font-size: 0.9375rem;
    color: var(--text);
    margin: 0 0 1rem;
}

.expert-card-star {
    color: #f59e0b;
}

.expert-card-avis {
    color: var(--text-muted);
    font-weight: 400;
}

.expert-card .btn,
.expert-card-cta {
    margin-top: auto;
    width: 100%;
    padding: 0.65rem 1rem;
    font-weight: 600;
}

.expert-card-cta:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-block {
    width: 100%;
}

.expert-name,
.expert-tarif,
.expert-note {
    margin: 0 0 0.5rem;
}

.expert-card .badge {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .page-experts {
        padding: 1.5rem 1rem 2rem;
    }
    .experts-filters-card {
        padding: 1.25rem;
    }
    .filters-form-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .filters-form input,
    .filters-form select {
        min-width: 0;
        width: 100%;
    }
    .experts-grid {
        grid-template-columns: 1fr;
    }
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-verified {
    background: var(--success);
    color: #fff;
}

/* Expert détail (legacy) */
.expert-detail {
    max-width: 720px;
}

.expert-detail h1 {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
}

.expert-detail .expert-tarif {
    font-size: 1.25rem !important;
}

.expert-description {
    margin: 1.25rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    line-height: 1.65;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
}

.skills-tags span {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.avis-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.avis-item {
    margin-bottom: 1rem;
}

.avis-note {
    color: #f59e0b;
    font-weight: 600;
    margin-right: 0.5rem;
}

.avis-auteur {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.avis-item p {
    margin: 0.5rem 0 0 !important;
    color: var(--text) !important;
}

/* ----- Page profil expert public (expert-profile-page) ----- */
.expert-profile-page {
    padding: 1.5rem 1rem 3rem;
    min-height: 60vh;
}

.expert-profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.expert-profile-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color var(--transition);
}

.expert-profile-back:hover {
    color: var(--accent);
}

.expert-profile-back-arrow {
    font-size: 1.1em;
}

.expert-profile-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.expert-profile-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.75rem;
    padding: 2rem 2rem 1.75rem;
    background: linear-gradient(180deg, var(--gradient-soft) 0%, var(--surface) 100%);
    border-bottom: 1px solid var(--border);
}

.expert-profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.expert-profile-avatar,
.expert-profile-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.expert-profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    font-size: 2.25rem;
    letter-spacing: -0.02em;
}

.expert-profile-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--success);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.expert-profile-hero-text {
    flex: 1;
    min-width: 200px;
}

.expert-profile-title {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.expert-profile-name {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.expert-profile-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.75rem;
}

.expert-profile-stars {
    color: #f59e0b;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
}

.expert-profile-stars .expert-profile-star-empty {
    color: var(--border);
}

.expert-profile-rating-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.expert-profile-rating-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.expert-profile-price {
    margin: 0;
}

.expert-profile-price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.expert-profile-price-unit {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
}

.expert-profile-body {
    padding: 1.75rem 2rem 2rem;
}

.expert-profile-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0.9rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.expert-profile-meta-label {
    color: var(--text-muted);
    font-weight: 500;
}

.expert-profile-meta-value {
    color: var(--primary);
    font-weight: 600;
}

.expert-profile-skills {
    margin-bottom: 1.75rem;
}

.expert-profile-skills-title,
.expert-profile-about-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.expert-profile-skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expert-profile-skill {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.expert-profile-about {
    margin-bottom: 1.75rem;
}

.expert-profile-description {
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.expert-profile-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.expert-profile-share-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.expert-profile-share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expert-profile-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.expert-profile-share-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.expert-profile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
}

.expert-profile-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.expert-profile-cta-note {
    margin: 0;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.5;
}
.expert-profile-cta-note a {
    color: var(--accent);
    font-weight: 600;
}
.expert-profile-cta-note a:hover {
    text-decoration: underline;
}

.expert-profile-rating-none {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.expert-profile-reviews {
    margin-top: 2.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
}

.expert-profile-reviews-empty {
    margin: 0;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.expert-profile-reviews-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.expert-profile-reviews-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.expert-review-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.expert-review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.expert-review-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.expert-review-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.expert-review-text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.6;
}

.expert-review-text.expert-review-note-only {
    color: var(--text-muted);
    font-style: italic;
}

.expert-card-avis-none {
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .expert-profile-hero {
        padding: 1.5rem 1.25rem;
        flex-direction: column;
        text-align: center;
    }
    .expert-profile-hero-text {
        min-width: 100%;
    }
    .expert-profile-rating {
        justify-content: center;
    }
    .expert-profile-body {
        padding: 1.25rem 1.25rem 1.5rem;
    }
    .expert-profile-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ----- CTA block ----- */
.cta-block {
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.cta-block h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    border: none;
    padding: 0;
}

.cta-block p {
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

/* ----- Empty state ----- */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    color: var(--text-muted);
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* ----- List reservations ----- */
.list-reservations {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-reservations li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.list-reservations li:last-child {
    border-bottom: none;
}

.form-desktop .checkbox-inline {
    display: inline-block;
    margin-right: 1rem;
    font-weight: normal;
}

/* ----- Layout Admin (sidebar type Auto Services) ----- */
body.layout-admin {
    display: flex;
    min-height: 100vh;
    margin: 0;
    background: #f1f5f9;
}

.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: 2px 0 8px rgba(15, 23, 42, 0.04);
}

.admin-sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.admin-sidebar-logo {
    display: block;
    margin-bottom: 0.5rem;
}

.admin-sidebar-logo img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.admin-sidebar-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary);
}

.admin-sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    border-left: 3px solid transparent;
}

.admin-sidebar-link:hover {
    background: #f8fafc;
    color: var(--accent);
}

.admin-sidebar-link.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-left-color: var(--accent);
}

.admin-sidebar-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.admin-sidebar-icon svg {
    width: 20px;
    height: 20px;
}

.admin-sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

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

.admin-sidebar-logout:hover {
    color: var(--error);
    background: #fef2f2;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 2rem 2rem 3rem;
    min-height: 100vh;
}

/* ----- Espace Admin (dashboard) ----- */
.page-admin {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-hero {
    margin-bottom: 2rem;
}

.admin-hero h1 {
    margin: 0 0 0.5rem;
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.admin-hero-lead {
    margin: 0;
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 560px;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.admin-nav a {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.admin-nav a:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.admin-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.admin-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.admin-card-highlight {
    border-color: var(--accent-soft);
    background: linear-gradient(180deg, #f0fdf4 0%, var(--surface) 100%);
}

.admin-card-highlight:hover {
    border-color: var(--accent);
}

.admin-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
}

.admin-card-body {
    flex: 1;
    min-width: 0;
}

.admin-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.admin-card-value {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.admin-card-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.admin-card .btn {
    margin-top: 0.25rem;
}

/* ----- Dashboard type Auto Services : en-tête + 6 cartes + 2 tableaux ----- */
.admin-dashboard-header { margin-bottom: 1.5rem; }
.admin-dashboard-header h1 { margin: 0 0 0.35rem; font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.admin-dashboard-subtitle { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 1200px) { .admin-metrics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .admin-metrics { grid-template-columns: repeat(2, 1fr); } }

.admin-metric-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow var(--transition);
}
.admin-metric-card:hover { box-shadow: var(--shadow-md); }

.admin-metric-icon {
    width: 48px; height: 48px; min-width: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; line-height: 1;
}
.admin-metric-icon--blue { background: #dbeafe; color: #2563eb; }
.admin-metric-icon--green { background: #dcfce7; color: #16a34a; }
.admin-metric-icon--yellow { background: #fef9c3; color: #ca8a04; }
.admin-metric-icon--orange { background: #ffedd5; color: #ea580c; }

.admin-metric-content { display: flex; flex-direction: column; gap: 0.2rem; }
.admin-metric-value { font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.admin-metric-label { font-size: 0.8125rem; color: var(--text-muted); }

.admin-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 1024px) { .admin-tables { grid-template-columns: 1fr; } }

.admin-table-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.admin-table-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.admin-table-card-header h2 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--primary); }
.admin-table-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}
.admin-table-actions { display: flex; gap: 0.5rem; }
.admin-table-search {
    padding: 0.4rem 0.75rem; font-size: 0.875rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    width: 180px;
}
.admin-table-wrap { overflow-x: auto; }
.admin-table { margin: 0; }
.admin-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.65rem 1rem; }
.admin-table td { font-size: 0.875rem; padding: 0.65rem 1rem; }
.admin-table-empty { text-align: center; color: var(--text-muted); font-style: italic; padding: 1.5rem !important; }
.admin-table-footer {
    padding: 0.65rem 1.25rem;
    border-top: 1px solid var(--border);
    background: #f8fafc;
}
.admin-table-count { font-size: 0.8125rem; color: var(--text-muted); }

.admin-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
}
.admin-badge--client { background: #dbeafe; color: #1d4ed8; }
.admin-badge--expert { background: #dcfce7; color: #15803d; }
.admin-badge--admin { background: #fef3c7; color: #b45309; }
.admin-badge--statut { background: #e2e8f0; color: var(--primary); }
.admin-badge--actif { background: #dcfce7; color: #15803d; }
.admin-badge--inactif { background: #fee2e2; color: #b91c1c; }
.admin-badge--cible { background: #e0e7ff; color: #4338ca; }
.admin-badge--signalement-nouveau { background: #dbeafe; color: #1d4ed8; }
.admin-badge--signalement-en_cours { background: #fef3c7; color: #b45309; }
.admin-badge--signalement-traite { background: #dcfce7; color: #15803d; }
.admin-badge--signalement-rejete { background: #fee2e2; color: #b91c1c; }

/* ----- Page Admin Utilisateurs ----- */
.page-admin-users .admin-page-head { position: relative; }
.admin-back-link {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.admin-back-link:hover { color: var(--accent); }

.admin-table-card--full { max-width: 100%; }
.admin-table-card-header h2 { margin: 0; }
.admin-filters-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.admin-filter-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}
.admin-filter-pill {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.admin-filter-pill:hover {
    background: #f8fafc;
    border-color: var(--accent);
    color: var(--accent);
}
.admin-filter-pill.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.admin-table-card-header {
    flex-wrap: wrap;
    gap: 0.75rem;
}
.admin-table-card-header .admin-filters-inline { margin-left: auto; }

.admin-table-id { font-variant-numeric: tabular-nums; color: var(--text-muted); font-size: 0.875rem; }
.admin-table-email { color: var(--accent); text-decoration: none; font-weight: 500; }
.admin-table-email:hover { text-decoration: underline; }
.admin-table-col-action { white-space: nowrap; text-align: right; }
.admin-action-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    min-width: 32px;
}
.btn-icon svg { flex-shrink: 0; vertical-align: middle; }
.admin-table .btn-icon { width: 28px; height: 28px; min-width: 28px; }
.admin-table .btn-icon svg { width: 14px; height: 14px; }
.admin-table-you { font-size: 0.8125rem; color: var(--text-muted); font-style: italic; }
.admin-table-motif { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn-warning { border-color: #f59e0b; color: #b45309; }
.btn-warning:hover { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.btn-success { border-color: var(--accent); color: var(--accent); }
.btn-success:hover { background: var(--accent-soft); border-color: var(--accent); color: #15803d; }

/* ----- Page Admin Revenus ----- */
.page-admin-revenus .admin-revenus-period { margin-bottom: 1.5rem; }
.admin-revenus-metrics {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 1rem;
}
@media (max-width: 900px) { .admin-revenus-metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .admin-revenus-metrics { grid-template-columns: 1fr; } }
.admin-metric-card--highlight { border-color: var(--accent-soft); background: linear-gradient(180deg, #f0fdf4 0%, var(--surface) 100%); }
.admin-revenus-solde-note {
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.admin-revenus-experts { margin-top: 0.5rem; }
.admin-table-subtitle { font-size: 0.875rem; font-weight: 400; color: var(--text-muted); }

/* ----- Page Admin Growth ----- */
.page-admin-growth .admin-growth-section { margin-bottom: 2rem; }
.admin-growth-section-title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.admin-growth-metrics {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 0;
}
@media (max-width: 768px) { .admin-growth-metrics { grid-template-columns: 1fr; } }
.admin-growth-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 900px) { .admin-growth-tables { grid-template-columns: 1fr; } }
.admin-growth-tracking {
    padding: 1rem 1.25rem;
}
.admin-growth-tracking-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
.admin-growth-tracking-row:last-of-type { border-bottom: none; }
.admin-growth-tracking-label { font-weight: 600; color: var(--primary); }
.admin-growth-tracking-value { font-size: 0.9375rem; color: var(--text-muted); }
.admin-growth-tracking-links { display: flex; gap: 0.5rem; padding-top: 0.75rem; }
.admin-growth-note {
    margin: 2rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ----- Page Admin Paramètres ----- */
.page-admin-parametres .admin-parametres-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 640px;
}
.admin-parametres-body {
    padding: 1.25rem 1.5rem;
}
.admin-parametres-body .form-group {
    margin-bottom: 1.25rem;
}
.admin-parametres-body .form-group:last-child {
    margin-bottom: 0;
}
.admin-parametres-body .form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.35rem;
    font-size: 0.9375rem;
}
.admin-parametres-body .form-group input {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
}
.admin-parametres-body .form-group input:focus {
    outline: none;
    border-color: var(--accent);
}
.admin-parametres-body .input-readonly {
    background: #f1f5f9;
    color: var(--text-muted);
    cursor: not-allowed;
}
.form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.admin-parametres-actions {
    padding-top: 0.5rem;
}
.admin-parametres-actions .btn {
    min-width: 220px;
    width: auto;
}

/* ----- Page Admin Chatbot (réutilise admin-parametres-body) ----- */
.page-admin-chatbot .admin-chatbot-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 720px;
}
.admin-parametres-body .form-group textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.6rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    resize: vertical;
    transition: border-color var(--transition);
}
.admin-parametres-body .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group-checkbox .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}
.form-group-checkbox .checkbox-label input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ----- Tableaux admin ----- */
.table-desktop { width: 100%; border-collapse: collapse; margin: 1rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table-desktop th, .table-desktop td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.table-desktop th { background: var(--primary); color: #fff; font-weight: 600; }
.table-desktop tr:hover td { background: #f8fafc; }
.page-admin .admin-nav a { margin-right: 0; }

/* ----- Messagerie ----- */
.messages-box { max-height: 400px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; background: var(--surface); }
.message-item { margin-bottom: 1rem; padding: 0.75rem; border-radius: var(--radius-sm); background: var(--bg); }
.message-item.mine { background: var(--accent-soft); margin-left: 2rem; }
.message-date { font-size: 0.8rem; color: var(--text-muted); margin-left: 0.5rem; }

/* ----- Footer (même couleur / design que la barre du haut) ----- */
.footer-desktop {
    position: relative;
    z-index: 10;
    background: linear-gradient(165deg, #082a52 0%, #0b3a6e 48%, #1d5bb8 140%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    padding: 2.5rem 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

.footer-desktop p {
    margin: 0;
    font-size: 0.9375rem;
}

.footer-desktop a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
}

.footer-desktop a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

/* ----- Page Mon compte — Design refondu ----- */
.compte-hdr-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.compte-hdr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.compte-form-redesign { display: flex; flex-direction: column; gap: 1.25rem; }

/* Layout avatar upload */
.compte-avatar-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.compte-avatar-preview-wrap { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.compte-avatar-preview-ring {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 3px solid var(--border);
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.compte-avatar-preview-img {
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.compte-avatar-preview-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}
.compte-avatar-preview-hint { font-size: .72rem; color: var(--text-muted); }
.compte-avatar-upload-area { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: .75rem; }

/* Zone drag & drop */
.compte-upload-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .625rem;
    padding: 1.5rem 1.25rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    cursor: pointer;
    transition: border-color .18s, background .18s;
    text-align: center;
}
.compte-upload-drop:hover,
.compte-upload-drop.is-over {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.compte-upload-drop__text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    pointer-events: none;
}
.compte-upload-drop__text strong { font-size: .875rem; color: var(--text); }
.compte-upload-drop__text span  { font-size: .75rem; color: var(--text-muted); }
.compte-upload-input { display: none; }

/* Supprimer */
.compte-delete-check {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-size: .8125rem;
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: .45rem .875rem;
    transition: background .15s;
}
.compte-delete-check:hover { background: #fee2e2; }
.compte-delete-check input[type="checkbox"] { display: none; }
.compte-delete-check span { display: inline-flex; align-items: center; gap: .35rem; }

/* Pièce d'identité statut */
.compte-piece-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .875rem 1.125rem;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}
.compte-piece-status__badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8125rem;
    font-weight: 700;
    color: #16a34a;
}
.compte-piece-status__actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.compte-piece-status__view {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8125rem;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
    padding: .4rem .875rem;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    border-radius: var(--radius-sm);
    transition: background .15s;
}
.compte-piece-status__view:hover { background: #dbeafe; }
.compte-piece-empty {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--text-muted);
    padding: .75rem 0;
}

/* Anciens styles compte (compatibilité) */
.compte-hero, .compte-back-link, .compte-hero-content,
.compte-hero-avatar, .compte-hero-text, .compte-hero-subtitle,
.compte-alert, .compte-form, .compte-block, .compte-block-title,
.compte-desc, .compte-no-doc, .compte-avatar-row,
.compte-avatar-upload, .compte-piece-current,
.compte-checkbox, .compte-file, .compte-actions { /* legacy preserved */ }

/* ----- Page À propos ----- */
.page-about {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 0.25rem;
}

.about-intro {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f4c2a 0%, #15803d 45%, #16a34a 100%);
    color: #fff;
    border-radius: 20px;
    padding: 3rem 2.75rem;
    margin-bottom: 2.75rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(15, 76, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.about-intro::after {
    content: '';
    position: absolute;
    inset: -40% -20% auto auto;
    width: 55%;
    height: 140%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.14) 0%, transparent 62%);
    pointer-events: none;
}

.about-intro h1 {
    margin: 0 0 0.75rem;
    font-size: 2.125rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    position: relative;
    z-index: 1;
}

.about-intro .section-badge {
    position: relative;
    z-index: 1;
    color: #f0fdfa;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.about-intro-lead {
    margin: 0;
    font-size: 1.125rem;
    opacity: 0.94;
    line-height: 1.65;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Bloc PayTech — à propos */
.about-paytech {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #042f2e 0%, #0d9488 48%, #14b8a6 100%);
    color: #ecfdf5;
    box-shadow: 0 18px 48px rgba(13, 148, 136, 0.28);
    margin-bottom: 0.25rem;
}
.about-paytech__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    padding: 2.25rem 2.5rem;
    align-items: start;
}
.about-paytech__badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f766e;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}
.about-paytech h2 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    border: none;
    padding: 0;
}
.about-paytech__lead {
    margin: 0 0 1.1rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(236, 253, 245, 0.92);
}
.about-paytech__lead strong {
    color: #fff;
    font-weight: 800;
}
.about-paytech__list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.about-paytech__list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(236, 253, 245, 0.95);
}
.about-paytech__list li::before {
    content: '';
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.1rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.about-paytech__note {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(204, 251, 241, 0.75);
}
.about-paytech__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #042f2e;
    background: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.about-paytech__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
    color: #134e4a;
}
.about-paytech__visual {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    backdrop-filter: blur(8px);
}
.about-paytech__visual-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.about-paytech__chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
}
.about-paytech__chips li {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #042f2e;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}
.about-section--paytech {
    margin-bottom: 2.75rem;
}

@media (max-width: 880px) {
    .about-paytech__grid {
        grid-template-columns: 1fr;
        padding: 1.75rem 1.35rem;
    }
    .about-paytech__visual {
        order: -1;
    }
}

/* Vignettes profil public (listes anonymes : photo / défaut, pays) */
.public-user-thumb {
    display: inline-flex;
    vertical-align: middle;
}
.public-user-thumb__circle {
    position: relative;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
}
.public-user-thumb--sm .public-user-thumb__circle { width: 44px; height: 44px; }
.public-user-thumb--md .public-user-thumb__circle { width: 56px; height: 56px; }
.public-user-thumb--lg .public-user-thumb__circle { width: 72px; height: 72px; }
.public-user-thumb__initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 0;
    font-weight: 800;
    line-height: 1;
}
.public-user-thumb--sm .public-user-thumb__initials { font-size: 0.9rem; }
.public-user-thumb--md .public-user-thumb__initials { font-size: 1.1rem; }
.public-user-thumb--lg .public-user-thumb__initials { font-size: 1.35rem; }
.public-user-thumb__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #f1f5f9;
    display: block;
    z-index: 0;
}
.public-user-thumb__img--overlay { z-index: 1; }
.public-user-thumb__img--hidden { display: none !important; }
.public-user-thumb__flag {
    position: absolute;
    bottom: -3px;
    right: -3px;
    font-size: 1rem;
    line-height: 1;
    z-index: 3;
    width: 1.45rem;
    height: 1.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
    border: 1.5px solid #fff;
    overflow: hidden;
    pointer-events: none;
}
.public-user-thumb__flag-img {
    width: 18px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}
.public-user-thumb__flag-emoji {
    font-size: 0.95em;
    line-height: 1;
}
.public-user-thumb--sm .public-user-thumb__flag {
    width: 1.25rem;
    height: 1.25rem;
    bottom: -2px;
    right: -2px;
}
.public-user-thumb--sm .public-user-thumb__flag-img {
    width: 16px;
    height: 12px;
}

/* Page publique Demandes */
.page-demandes-public {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}
.demandes-public-hero {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}
.demandes-public-hero__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.demandes-public-hero__icon svg {
    width: 100%;
    height: 100%;
}
.demandes-public-hero__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}
.demandes-public-hero__title {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.demandes-public-hero__lead {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.demandes-public-cta {
    margin-bottom: 2.5rem;
}
.demandes-public-cta__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.demandes-public-cta__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: 16px 16px 0 0;
}
.demandes-public-cta__content {
    position: relative;
}
.demandes-public-cta__text {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.6;
}
.demandes-public-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}
.demandes-public-cta__actions .btn {
    min-width: 180px;
}
.demandes-public-open {
    margin-bottom: 2.75rem;
}
.demandes-public-open__panel {
    background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 48%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 16px 40px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}
.demandes-public-open__panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a34a 0%, #2563eb 100%);
}
.demandes-public-open__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}
.demandes-public-open__eyebrow {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}
.demandes-public-open__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}
.dem-pub-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.28);
    flex-shrink: 0;
}
.demandes-public-open__desc {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 34rem;
}
.demandes-public-open__live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #15803d;
    background: #fff;
    border: 1px solid #bbf7d0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.12);
}
.demandes-public-open__live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    animation: dem-pub-live-pulse 1.8s ease-in-out infinite;
}
@keyframes dem-pub-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.92); }
}

.demandes-public-open__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.demandes-public-open__item {
    list-style: none;
}
.demandes-public-open__item-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.05rem 1.1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}
.demandes-public-open__item-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #16a34a;
    border-radius: 16px 0 0 16px;
    opacity: 0.85;
}
.demandes-public-open__item--urgent .demandes-public-open__item-link::before {
    background: #f59e0b;
}
.demandes-public-open__item--tres-urgent .demandes-public-open__item-link::before {
    background: #ea580c;
}
.demandes-public-open__item-link:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 14px 28px rgba(15, 23, 42, 0.08);
}
.demandes-public-open__item-link:hover .demandes-public-open__item-arrow {
    color: #16a34a;
    transform: translateX(3px);
}
.demandes-public-open__item-link--static {
    cursor: default;
}
.demandes-public-open__item-link--static:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.demandes-public-open__item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.demandes-public-open__item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}
.demandes-public-open__item-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.35;
}
.demandes-public-open__item-client {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: #64748b;
}
.demandes-public-open__item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}
.demandes-public-open__pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
}
.demandes-public-open__pill--skill {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.demandes-public-open__pill--urgence {
    background: var(--pill-bg, #fff7ed);
    color: var(--pill-color, #c2410c);
    border: 1px solid var(--pill-border, #fed7aa);
    flex-shrink: 0;
}
.demandes-public-open__date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}
.demandes-public-open__urgence {
    color: #d97706;
    font-weight: 600;
}
.demandes-public-open__item-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: transform 0.2s, color 0.2s, background 0.2s;
}
.demandes-public-open__item-link:hover .demandes-public-open__item-arrow {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.demandes-public-open__cta {
    margin-top: 1.35rem;
    padding-top: 1.35rem;
    border-top: 1px dashed #cbd5e1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}
.demandes-public-open__cta-text {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 28rem;
}
.demandes-public-open__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    background: #16a34a;
    color: #fff !important;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.demandes-public-open__cta-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(22, 163, 74, 0.32);
}
.demandes-public-open__cta-btn:active {
    transform: scale(0.98);
}

.demandes-public-open__item-cta {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #16a34a;
    text-decoration: none;
    transition: color 0.18s;
}
.demandes-public-open__item-cta:hover {
    color: #15803d;
    text-decoration: underline;
}

/* Cartes legacy (ex. page /exercices sans lien englobant) */
.demandes-public-open__item:not(:has(.demandes-public-open__item-link)) {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.05rem 1.1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.demandes-public-open__item:not(:has(.demandes-public-open__item-link)) .demandes-public-open__item-body {
    flex: 1;
    min-width: 0;
}
.demandes-public-steps {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.demandes-public-steps__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1.5rem;
    text-align: center;
}
.demandes-public-steps__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.demandes-public-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: relative;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.demandes-public-step:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-soft);
}
.demandes-public-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.demandes-public-step__heading {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}
.demandes-public-step__desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}
@media (max-width: 560px) {
    .demandes-public-steps__grid {
        grid-template-columns: 1fr;
    }
    .demandes-public-hero__title {
        font-size: 1.6rem;
    }
    .demandes-public-cta__actions {
        flex-direction: column;
    }
    .demandes-public-cta__actions .btn {
        width: 100%;
        min-width: 0;
    }
    .demandes-public-open__panel {
        padding: 1.35rem 1rem 1.15rem;
        border-radius: 18px;
    }
    .demandes-public-open__header {
        flex-direction: column;
        gap: 0.75rem;
    }
    .demandes-public-open__live {
        align-self: flex-start;
    }
    .demandes-public-open__item-link {
        padding: 0.95rem 0.85rem;
        gap: 0.75rem;
    }
    .demandes-public-open__item-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .demandes-public-open__item-arrow {
        display: none;
    }
    .demandes-public-open__cta-btn {
        width: 100%;
    }
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-section h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.about-text {
    margin: 0 0 1rem;
    line-height: 1.7;
    color: var(--text);
}

.about-text:last-child {
    margin-bottom: 0;
}

.about-text-muted {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.about-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}

.about-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.about-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}
.about-card-icon img {
    display: block;
    object-fit: contain;
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.75rem;
}

.about-card p {
    flex: 1;
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.about-card .btn {
    align-self: flex-start;
}

.about-card-client {
    border-left: 4px solid var(--accent);
}

.about-card-expert {
    border-left: 4px solid var(--success);
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-tags li {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.about-cta {
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.about-cta h2 {
    border: none;
    padding: 0;
    margin-bottom: 0.5rem;
}

.about-cta .about-text {
    margin-bottom: 1.5rem;
}

.about-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ----- Page Contact ----- */
.page-contact {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.contact-hero {
    position: relative;
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-soft) 0%, #f0fdf4 50%, #f8fafc 100%);
    opacity: 0.9;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
}

.contact-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 20px;
    background: var(--surface);
    color: var(--accent);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(22, 163, 74, 0.15);
}

.contact-hero-icon svg {
    display: block;
}

.contact-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.contact-hero-lead {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border);
    overflow: hidden;
}

.contact-card-inner {
    padding: 2rem 2rem 2.25rem;
}

.contact-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.contact-card-text {
    color: var(--text);
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.55;
}

.contact-email-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-email-link:hover {
    color: #15803d;
}

.contact-email-icon {
    display: inline-flex;
    color: var(--accent);
}

.contact-email-icon svg {
    display: block;
}

.contact-email-value {
    word-break: break-all;
}

.contact-email-copy {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.contact-email-copy--ok {
    border-color: var(--accent);
    color: var(--accent);
}

.contact-wa-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}
.contact-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #065f46;
    min-width: 0;
}
.contact-wa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    flex-shrink: 0;
}
.contact-wa-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.contact-wa-meta strong {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #047857;
}
.contact-wa-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: #064e3b;
    letter-spacing: 0.02em;
}
.contact-wa-cta {
    margin-left: auto;
    background: #25D366 !important;
    border-color: #1ebe57 !important;
    color: #fff !important;
    font-weight: 700;
}
.contact-wa-cta:hover {
    filter: brightness(1.05);
}

.contact-wa-float {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    z-index: 90;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    text-decoration: none;
}
.contact-wa-float svg { position: relative; z-index: 1; }
.contact-wa-float__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.45);
    animation: contact-wa-pulse 2s ease-out infinite;
    pointer-events: none;
}
.contact-wa-float__pulse--delay { animation-delay: 1s; }
@keyframes contact-wa-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.85); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .contact-wa-float__pulse { animation: none; opacity: 0; }
}

.contact-card-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

.contact-cta {
    text-align: center;
    padding: 1.75rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.contact-cta-text {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.contact-cta .btn {
    min-width: 160px;
}

/* ----- Page Inscription ----- */
.page-inscription,
.page-connexion,
.page-mot-de-passe-oublie,
.page-verification-envoyee {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
    min-height: 60vh;
}

.auth-page-backdrop {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(900px 420px at 50% -10%, #dbe7f8 0%, transparent 55%),
        #f3f6fb;
    pointer-events: none;
    z-index: 0;
}

.page-inscription .auth-page-content,
.page-connexion .auth-page-content,
.page-mot-de-passe-oublie .auth-page-content,
.page-reinitialiser .auth-page-content,
.page-verification-envoyee .auth-page-content {
    position: relative;
    z-index: 1;
}

.page-inscription .alert,
.page-connexion .alert,
.page-mot-de-passe-oublie .alert,
.page-reinitialiser .alert {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.page-inscription .alert-icon,
.page-connexion .alert-icon,
.page-mot-de-passe-oublie .alert-icon,
.page-reinitialiser .alert-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--error);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-intro {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Parcours inscription — timeline verticale étape par étape */
.auth-parcours {
    list-style: none;
    margin: 0 auto 1.75rem;
    padding: 0;
    max-width: 520px;
}

.auth-parcours__item {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 1rem;
    align-items: flex-start;
    padding-bottom: 1.35rem;
}

.auth-parcours__item--last {
    padding-bottom: 0;
}

.auth-parcours__rail {
    position: absolute;
    left: 25px;
    top: 52px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #0b3a6e 0%, #f0c419 100%);
    opacity: .35;
}

.auth-parcours__item .gi-tile {
    position: relative;
    z-index: 1;
    justify-self: center;
}

.auth-parcours__body {
    padding-top: .15rem;
    min-width: 0;
}

.auth-parcours__title {
    margin: 0 0 .3rem;
    font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0f1b2d;
    line-height: 1.25;
}

.auth-parcours__text {
    margin: 0;
    color: #5b6b82;
    font-size: .9rem;
    line-height: 1.5;
}

.page-inscription .inscription-timeline {
    margin: 0 0 1.35rem;
    padding: .85rem .9rem;
    background: #f8fbff;
    border: 1px solid #d7e0ee;
    border-radius: 14px;
}

.page-inscription .inscription-timeline__steps {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: .35rem;
}

.page-inscription .inscription-timeline__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .35rem .2rem;
    border: none;
    border-radius: 10px;
    color: #64748b;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color .15s, background .15s;
}

.page-inscription .inscription-timeline__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.05rem;
    left: calc(50% + 1.1rem);
    right: calc(-50% + 1.1rem);
    height: 2px;
    background: #d7e0ee;
    z-index: 0;
}

.page-inscription .inscription-timeline__step.is-done:not(:last-child)::after,
.page-inscription .inscription-timeline__step.is-active:not(:last-child)::after {
    background: #0b3a6e;
}

.page-inscription .inscription-timeline__num {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: .8rem;
    font-weight: 800;
}

.page-inscription .inscription-timeline__step.is-active .inscription-timeline__num,
.page-inscription .inscription-timeline__step.is-done .inscription-timeline__num {
    background: linear-gradient(145deg, #082a52, #0b3a6e);
    color: #f0c419;
}

.page-inscription .inscription-timeline__step.is-active {
    color: #0b3a6e;
    background: rgba(11, 58, 110, .06);
}

.page-inscription .inscription-timeline__label {
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 560px) {
    .auth-parcours {
        max-width: none;
        padding: 0 .15rem;
    }
    .page-inscription .inscription-timeline__label {
        font-size: .68rem;
    }
}

.auth-logo-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

/* Forme circulaire du logo (médaillon), rappel du cercle blanc du logo */
.auth-logo-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08), 0 0 0 2px rgba(212, 165, 116, 0.25);
    padding: 14px;
    overflow: hidden;
}

.auth-logo-circle .auth-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.auth-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.auth-intro h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-intro-lead {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.page-inscription .auth-intro {
    margin-bottom: 1.35rem;
}

.page-inscription .auth-intro h1 {
    font-family: var(--font-display), var(--font);
}

.page-inscription .auth-intro-lead {
    max-width: 58ch;
}

.auth-form-wrapper {
    background: var(--surface);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border);
    position: relative;
    overflow: visible;
}

.auth-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    opacity: 0.9;
}

.auth-form .auth-form-block {
    margin-bottom: 2rem;
}

.auth-form .auth-form-block:last-of-type {
    margin-bottom: 1.75rem;
}

.auth-form-block-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.block-title-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
}

.auth-form-block-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
    line-height: 1.45;
}

.auth-form-muted {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.auth-form .competences-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.auth-form .competences-checkboxes .checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-form-row .form-group {
    margin-bottom: 0;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-group:last-child {
    margin-bottom: 0;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--surface);
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
    color: #94a3b8;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(11, 58, 110, 0.18);
}

.auth-form label.form-group-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--text);
    font-size: 0.9375rem;
}

.auth-form .form-group > label:first-child {
    display: block;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--text);
    font-size: 0.9375rem;
}

/* Choix rôle (cartes) */
.role-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.role-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1rem 1rem 1rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    position: relative;
    min-height: 0;
}

.role-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-option:hover {
    border-color: #94a3b8;
    background: rgba(248, 250, 252, 0.9);
    box-shadow: var(--shadow);
}

.role-option.is-selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.role-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.role-option.is-selected .role-option-icon {
    background: var(--accent);
    color: #fff;
}

.role-option-icon svg {
    flex-shrink: 0;
}

.role-option-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.role-option-emoji {
    font-size: 1.75rem;
    line-height: 1;
}

.role-option-label {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.role-option-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    line-height: 1.4;
}

.role-option-check {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.role-option-check svg {
    width: 12px;
    height: 12px;
}

.role-option.is-selected .role-option-check {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.role-option--etudiant:hover {
    border-color: #93c5fd;
}

.role-option--etudiant.is-selected {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 0 0 1px #2563eb, var(--shadow-md);
}

.role-option--etudiant .role-option-icon {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.role-option--etudiant.is-selected .role-option-icon {
    background: #2563eb;
    color: #fff;
}

.role-option--etudiant.is-selected .role-option-check {
    background: #2563eb;
    border-color: #2563eb;
}

.role-option--professeur:hover {
    border-color: #c4b5fd;
}

.role-option--professeur.is-selected {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    box-shadow: 0 0 0 1px #7c3aed, var(--shadow-md);
}

.role-option--professeur .role-option-icon {
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
}

.role-option--professeur.is-selected .role-option-icon {
    background: #7c3aed;
    color: #fff;
}

.role-option--professeur.is-selected .role-option-check {
    background: #7c3aed;
    border-color: #7c3aed;
}

/* Matières universitaires — inscription desktop */
.page-inscription .inscription-matieres {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.page-inscription .inscription-matieres__group {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.page-inscription .inscription-matieres__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    background: #f8fafc;
    list-style: none;
    user-select: none;
}

.page-inscription .inscription-matieres__summary::-webkit-details-marker {
    display: none;
}

.page-inscription .inscription-matieres__summary::after {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: auto;
}

.page-inscription .inscription-matieres__group[open] .inscription-matieres__summary::after {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
}

.page-inscription .inscription-matieres__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
}

.page-inscription #inscription-etudiant-wrap.is-professeur .inscription-matieres__count {
    background: #7c3aed;
}

.page-inscription #inscription-etudiant-wrap.is-etudiant .inscription-matieres__count {
    background: #2563eb;
}

.page-inscription .inscription-matieres__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid var(--border);
    background: #fff;
}

.page-inscription .inscription-matiere-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem 0.45rem 0.55rem;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.page-inscription .inscription-matiere-pill:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.page-inscription .inscription-matiere-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.page-inscription .inscription-matiere-pill__box {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.page-inscription .inscription-matiere-pill__box svg {
    width: 0.7rem;
    height: 0.7rem;
}

.page-inscription .inscription-matiere-pill.is-checked,
.page-inscription .inscription-matiere-pill:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: #14532d;
}

.page-inscription .inscription-matiere-pill.is-checked .inscription-matiere-pill__box,
.page-inscription .inscription-matiere-pill:has(input:checked) .inscription-matiere-pill__box {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.page-inscription #inscription-etudiant-wrap.is-etudiant .inscription-matiere-pill.is-checked,
.page-inscription #inscription-etudiant-wrap.is-etudiant .inscription-matiere-pill:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1e40af;
}

.page-inscription #inscription-etudiant-wrap.is-etudiant .inscription-matiere-pill.is-checked .inscription-matiere-pill__box,
.page-inscription #inscription-etudiant-wrap.is-etudiant .inscription-matiere-pill:has(input:checked) .inscription-matiere-pill__box {
    background: #2563eb;
    border-color: #2563eb;
}

.page-inscription #inscription-etudiant-wrap.is-professeur .inscription-matiere-pill.is-checked,
.page-inscription #inscription-etudiant-wrap.is-professeur .inscription-matiere-pill:has(input:checked) {
    border-color: #7c3aed;
    background: #f5f3ff;
    color: #5b21b6;
}

.page-inscription #inscription-etudiant-wrap.is-professeur .inscription-matiere-pill.is-checked .inscription-matiere-pill__box,
.page-inscription #inscription-etudiant-wrap.is-professeur .inscription-matiere-pill:has(input:checked) .inscription-matiere-pill__box {
    background: #7c3aed;
    border-color: #7c3aed;
}

.page-inscription .inscription-matiere-pill__label {
    line-height: 1.3;
}

.abonnement-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .abonnement-select {
        grid-template-columns: 1fr;
    }
}

.abonnement-option {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.35rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.abonnement-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.abonnement-option:hover {
    border-color: #94a3b8;
    background: rgba(248, 250, 252, 0.9);
}

.abonnement-option.is-selected {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.abonnement-option-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.abonnement-option-label {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.125rem;
}

.abonnement-option-montant {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
}

.abonnement-option.is-selected .abonnement-option-montant {
    color: var(--primary);
}

.abonnement-option-prix {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.0625rem;
}

.abonnement-option-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.5;
}

.abonnement-option-benefits li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.5rem;
}

.abonnement-option-benefits li:last-child {
    margin-bottom: 0;
}

.abonnement-option-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.abonnement-option.is-selected .abonnement-option-benefits li::before {
    background: var(--accent);
}

.abonnement-option-benefits--premium li::before {
    background: var(--accent);
}

/* ── Abonnement compact (pills) ── */
.auth-form-block--abonnement {
    margin-bottom: 1.5rem;
}

.abonnement-pills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.abonnement-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    background: var(--surface);
    user-select: none;
}

.abonnement-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.abonnement-pill:hover {
    border-color: #94a3b8;
    background: var(--bg);
}

.abonnement-pill.is-selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent);
}

.abonnement-pill-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--primary);
}

.abonnement-pill.is-selected .abonnement-pill-name {
    color: var(--accent);
}

.abonnement-pill-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
}

.abonnement-pill-price--accent {
    color: var(--accent);
}

.abonnement-pill-unit {
    font-weight: 400;
    font-size: 0.8rem;
    opacity: 0.75;
}

.abonnement-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.6rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.abonnement-note svg {
    flex-shrink: 0;
    color: var(--accent);
}

.auth-form-actions {
    margin-top: 0.5rem;
}

/* ── Bouton Google unifié (desktop inscription/connexion) ── */
.btn-google-unified {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    color: #3c4043;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.28s cubic-bezier(.22,1,.36,1), border-color 0.2s, transform 0.22s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 1px 4px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    letter-spacing: 0.01em;
    user-select: none;
    -webkit-user-select: none;
}
.btn-google-unified:hover {
    box-shadow: 0 6px 20px rgba(66,133,244,.18), 0 2px 8px rgba(0,0,0,.1);
    border-color: #c5c5c5;
    transform: translateY(-2px);
}
.btn-google-unified:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.btn-google-unified:focus-visible {
    outline: 3px solid #4285F4;
    outline-offset: 2px;
}
.btn-google-unified.loading { pointer-events: none; opacity: .8; }
.btn-google-icon-wrap {
    display: flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; flex-shrink: 0;
    transition: transform 0.2s;
}
.btn-google-unified:hover .btn-google-icon-wrap { transform: scale(1.08); }
.btn-google-text { flex: 1; text-align: center; }
.btn-google-shine {
    position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-15deg); pointer-events: none;
    transition: left 0.55s ease;
}
.btn-google-unified:hover .btn-google-shine { left: 130%; }
/* Diviseur "ou avec email" */
.auth-divider-google {
    display: flex; align-items: center; gap: 10px;
    margin: 18px 0 4px; color: #9ca3af;
    font-size: 0.8125rem; font-weight: 500;
}
.auth-divider-google__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #e5e7eb, transparent); }
.auth-divider-google__label { white-space: nowrap; padding: 0 4px; }
/* Ancien sélecteur – conservé pour compatibilité */
.auth-form-actions .btn-google {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; width: 100%; padding: 0.9rem 1.5rem;
    font-size: 1rem; font-weight: 600; border-radius: var(--radius-sm);
    background: #fff; border: 1.5px solid #dadce0;
    color: #3c4043; text-decoration: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.auth-form-actions .btn-google:hover { background: #f8f9fa; border-color: #c4c7cc; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.auth-form-actions .btn-google .btn-google-icon { flex-shrink: 0; vertical-align: middle; }
.auth-form-divider {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0.75rem 0;
}

.auth-form-actions .btn-block {
    width: 100%;
}

.btn-inscription {
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    background: var(--gradient);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(11, 58, 110, 0.28);
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-inscription:hover,
.btn-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(11, 58, 110, 0.34);
}

.btn-auth-submit {
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    background: var(--gradient);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.30);
    transition: transform var(--transition), box-shadow var(--transition);
}

.auth-form-link {
    margin: 1.25rem 0 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-align: center;
}

.auth-form-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-form-link a:hover {
    text-decoration: underline;
}

.auth-form-link-secondary {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.auth-form-link-secondary + .auth-form-link {
    margin-top: 0.5rem;
}

/* ----- Page Vérification envoyée ----- */
.page-verification-envoyee .auth-page-content {
    max-width: 440px;
}

.auth-form-wrapper--message {
    text-align: center;
}

.verification-envoyee-icon {
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.verification-envoyee-icon svg {
    display: inline-block;
    vertical-align: middle;
}

.verification-envoyee-text {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0 0 1.5rem;
    line-height: 1.55;
}

.verification-envoyee-dev {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.verification-envoyee-dev-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.verification-envoyee-dev-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-weight: 600;
    color: var(--accent);
    border-color: var(--accent);
}

.verification-envoyee-dev-link:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
}

.verification-envoyee-actions {
    margin: 0;
}

.verification-envoyee-actions .btn {
    margin-top: 0.25rem;
}

/* Alerte succès (auth) */
.page-mot-de-passe-oublie .alert-success {
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.3);
    color: var(--success);
}

.page-mot-de-passe-oublie .alert-icon-success {
    background: var(--success);
    color: #fff;
}

@media (max-width: 520px) {
    .page-inscription,
    .page-connexion,
    .page-mot-de-passe-oublie,
    .page-verification-envoyee {
        padding: 1.5rem 1rem 3rem;
    }
    .auth-form-wrapper {
        padding: 1.75rem 1.25rem;
    }
    .auth-intro h1 {
        font-size: 1.625rem;
    }
    .auth-form-row {
        grid-template-columns: 1fr;
    }
    .auth-form-row .form-group {
        margin-bottom: 1.25rem;
    }
    .auth-form-row .form-group:last-child {
        margin-bottom: 0;
    }
    .role-select {
        grid-template-columns: 1fr;
    }
    .role-option {
        padding: 1.25rem 1rem;
    }
}

/* ----- Chatbot flottant (orange / or + touches de vert) ----- */
.chatbot-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    font-family: var(--font);
    --chatbot-orange: #e67e22;
    --chatbot-gold: #f39c12;
    --chatbot-or: #f1c40f;
    --chatbot-green: #27ae60;
    --chatbot-green-soft: rgba(39, 174, 96, 0.15);
}

.chatbot-toggle {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--chatbot-or) 0%, var(--chatbot-gold) 35%, var(--chatbot-orange) 70%, #d35400 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4), 0 8px 30px rgba(243, 156, 18, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.chatbot-toggle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(241, 196, 15, 0.6);
    opacity: 0;
    animation: chatbot-pulse-ring 2s ease-in-out infinite;
    pointer-events: none;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(230, 126, 34, 0.5), 0 10px 36px rgba(243, 156, 18, 0.3);
}

.chatbot-toggle.chatbot-toggle-open::before {
    animation: none;
    opacity: 0;
}

@keyframes chatbot-pulse-ring {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.chatbot-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.chatbot-toggle-icon svg {
    flex-shrink: 0;
}

/* Badge notification (vert, en haut à droite du bouton) */
.chatbot-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 50%;
    background: var(--chatbot-green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(39, 174, 96, 0.5);
}

.chatbot-badge.chatbot-badge-hidden {
    display: none;
}

/* Panneau fermé par défaut : caché sauf quand .chatbot-panel-open est présent */
.chatbot-panel[hidden],
.chatbot-panel:not(.chatbot-panel-open) {
    display: none !important;
}

.chatbot-panel {
    position: absolute;
    bottom: calc(100% + 0.75rem);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 2rem);
    max-height: 520px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-panel-open {
    animation: chatbot-panel-in 0.2s ease;
}

@keyframes chatbot-panel-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--chatbot-or) 0%, var(--chatbot-gold) 40%, var(--chatbot-orange) 100%);
    color: #fff;
}

.chatbot-panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.chatbot-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    min-height: 200px;
    max-height: 280px;
}

.chatbot-welcome {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.chatbot-bubble {
    max-width: 85%;
    padding: 0.6rem 1rem;
    border-radius: 14px;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.chatbot-bubble-user {
    margin-left: auto;
    background: linear-gradient(135deg, var(--chatbot-orange) 0%, var(--chatbot-gold) 100%);
    color: #fff;
}

.chatbot-bubble-user p {
    margin: 0;
    font-size: 0.9375rem;
}

.chatbot-bubble-assistant {
    margin-right: auto;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
}

.chatbot-bubble-assistant p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.chatbot-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.75rem 1rem;
}

.chatbot-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: chatbot-dot 1.2s ease-in-out infinite;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatbot-dot {
    0%, 80%, 100% { opacity: 0.4; transform: scale(0.9); }
    40% { opacity: 1; transform: scale(1); }
}

.chatbot-experts-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.chatbot-expert-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.chatbot-expert-name {
    font-weight: 600;
    color: var(--chatbot-orange);
}

.chatbot-expert-titre {
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.chatbot-expert-note,
.chatbot-expert-tarif {
    margin-top: 0.25rem;
    color: var(--text);
}

.chatbot-expert-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--chatbot-green);
    margin-top: 0.35rem;
}

.chatbot-expert-btn {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--chatbot-orange);
    text-decoration: none;
}

.chatbot-expert-btn:hover {
    text-decoration: underline;
}

.chatbot-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.chatbot-quick-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.chatbot-quick-btn:hover {
    border-color: var(--chatbot-orange);
    background: var(--chatbot-green-soft);
}

.chatbot-input-wrap {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.chatbot-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-family: var(--font);
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--chatbot-orange);
}

.chatbot-send {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--chatbot-orange) 0%, var(--chatbot-gold) 100%);
    color: #fff;
    cursor: pointer;
    transition: background var(--transition), opacity var(--transition);
}

.chatbot-send:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--chatbot-gold) 0%, var(--chatbot-or) 100%);
}

.chatbot-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .chatbot-panel {
        width: calc(100vw - 2rem);
        right: -0.5rem;
        max-height: 70vh;
    }
    .chatbot-messages {
        max-height: 220px;
    }
}

/* ----- Cookie consent (GDPR) ----- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.1);
    z-index: 9999;
    padding: 1rem 1.5rem;
}
.cookie-banner-inner {
    max-width: 900px;
    margin: 0 auto;
}
.cookie-banner-text {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--text);
}
.cookie-banner-text a {
    color: var(--accent);
}
.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cookie-customize-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.cookie-customize-panel label {
    display: block;
    margin-bottom: 0.5rem;
}
.link-button {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: inherit;
    text-decoration: underline;
    padding: 0;
}

/* ============================================================
   Page Abonnement — design refait
   ============================================================ */

.abo-page {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 3rem;
}

/* --- Lien retour --- */
.abo-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}
.abo-page__back:hover {
    color: var(--accent);
}

/* --- Alertes flash --- */
.abo-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.125rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}
.abo-alert--success {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid #bbf7d0;
}
.abo-alert--error {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

/* ---- Hero banner ---- */
.abo-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.abo-hero--actif {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a2f 100%);
    color: #fff;
}
.abo-hero--inactive {
    background: var(--gradient-brand);
    color: #fff;
}
.abo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}
.abo-hero__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.abo-hero__text {
    flex: 1;
}
.abo-hero__title {
    margin: 0 0 0.3rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.abo-hero__subtitle {
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.8);
}

/* Badge "Actif" dans le hero */
.abo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}
.abo-badge--actif {
    background: rgba(22, 163, 74, 0.25);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}
.abo-badge--actif svg {
    width: 8px;
    height: 8px;
    fill: #4ade80;
    animation: abo-pulse 2s infinite;
}
@keyframes abo-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ---- Grille (abonnement actif) ---- */
.abo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 640px) {
    .abo-grid { grid-template-columns: 1fr; }
}

/* ---- Cartes ---- */
.abo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow);
}
.abo-card__title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

/* --- Tableau détails --- */
.abo-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.abo-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9375rem;
}
.abo-detail-row__label {
    color: var(--text-muted);
    font-weight: 500;
}
.abo-detail-row__value {
    font-weight: 600;
    color: var(--text);
}
.abo-detail-row__value--pill {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8125rem;
}
.abo-detail-row__value--date {
    color: var(--accent);
}

.abo-renewal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
}
.abo-renewal svg { flex-shrink: 0; color: var(--accent); }

/* ---- Liste des avantages ---- */
.abo-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.abo-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.4;
}
.abo-feature__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}
.abo-feature__icon--check {
    background: var(--accent-soft);
    color: var(--accent);
}
.abo-features--pricing .abo-feature__icon {
    background: rgba(22,163,74,0.12);
    color: var(--accent);
}

/* ============================================================
   Layout pricing (abonnement inactif)
   ============================================================ */
.abo-pricing-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 768px) {
    .abo-pricing-layout { grid-template-columns: 1fr; }
}

/* Carte de prix */
.abo-pricing-card {
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    background-clip: padding-box;
}
.abo-pricing-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius) + 2px);
    background: var(--gradient-brand);
    z-index: -1;
}

.abo-pricing-card__header {
    background: var(--gradient-brand);
    padding: 2rem 2rem 1.75rem;
    color: #fff;
    text-align: center;
}
.abo-pricing-card__tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.abo-pricing-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}
.abo-pricing-card__amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}
.abo-pricing-card__currency {
    font-size: 1.125rem;
    font-weight: 700;
    opacity: 0.9;
}
.abo-pricing-card__period {
    font-size: 0.9375rem;
    opacity: 0.75;
}
.abo-pricing-card__desc {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

.abo-pricing-card .abo-features {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border);
}

.abo-pricing-card__footer {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ---- Boutons ---- */
.abo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    letter-spacing: 0.01em;
}
.abo-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}
.abo-btn:active {
    transform: translateY(0);
    filter: brightness(0.97);
}
.abo-btn--primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}
.abo-btn--wave {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.35);
}

/* Badge paiement */
.abo-payment-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.abo-payment-badge svg { color: var(--accent); }

/* Hint paiement */
.abo-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

/* ---- Trust panel ---- */
.abo-trust {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.abo-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.125rem 1.25rem;
    box-shadow: var(--shadow);
}
.abo-trust__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.abo-trust__item strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.abo-trust__item p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.abo-trust__wave-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #1d4ed8;
    line-height: 1.4;
}
.abo-trust__wave-info svg { flex-shrink: 0; margin-top: 0.1rem; }

/* ================================================
   Expert — Demandes clients (page /expert/demandes)
   ================================================ */
.demandes-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.demande-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
    overflow: hidden;
    transition: border-color .18s, box-shadow .18s, transform .15s;
    padding: 0;
}
.demande-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 4px 16px rgba(124,58,237,.09);
    transform: translateY(-1px);
}
.demande-card__stripe {
    width: 4px;
    min-height: 80px;
    align-self: stretch;
    border-radius: 0;
    flex-shrink: 0;
}
.demande-card__avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #f5f3ff;
    color: #7c3aed;
    font-size: .8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(124,58,237,.15);
    margin-top: 1rem;
}
.demande-card__body { flex: 1; min-width: 0; padding: 1rem 1.125rem 1rem 0; }
.demande-card__top {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}
.demande-card__title {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--text);
    flex: 1;
    min-width: 120px;
    margin: 0;
}
.demande-card__badges { display: flex; flex-wrap: wrap; gap: .35rem; flex-shrink: 0; }
.demande-card__tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .7rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 50px;
    white-space: nowrap;
}
.demande-card__tag--skill { background: #f0fdf4; color: #16a34a; }
.demande-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .8rem;
    color: var(--text-muted);
}
.demande-card__meta-item { display: inline-flex; align-items: center; gap: .3rem; }
.demande-card__meta-sep { color: #cbd5e1; }

/* ================================================
   Page Compte — Sections redesignées
   ================================================ */
.page-compte-redesign { max-width: 680px; }
.page-compte-redesign .profil-section { margin-bottom: 0; }

/* ================================================
   Expert — Tableau de bord principal (/expert)
   ================================================ */
.expert-dashboard { max-width: 800px; }

/* ── Hero ── */
.expert-dashboard__hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #1a2e1a 0%, #16a34a 100%);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.expert-dashboard__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}
.expert-dashboard__identity { display: flex; align-items: center; gap: 1.25rem; }
.expert-dashboard__avatar-wrap { position: relative; flex-shrink: 0; }
.expert-dashboard__avatar-img {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.35);
}
.expert-dashboard__avatar-placeholder {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 3px solid rgba(255,255,255,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}
.expert-dashboard__status-dot {
    position: absolute;
    bottom: 3px; right: 3px;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2.5px solid #fff;
}
.expert-dashboard__status-dot.is-available { background: #4ade80; }
.expert-dashboard__status-dot.is-offline   { background: #94a3b8; }

.expert-dashboard__name {
    margin: 0 0 .25rem;
    font-size: 1.375rem;
    font-weight: 800;
    color: #fff;
}
.expert-dashboard__role {
    margin: 0 0 .625rem;
    font-size: .875rem;
    color: rgba(255,255,255,.75);
}
.expert-dashboard__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}
.expert-dashboard__status-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: 50px;
    letter-spacing: .02em;
}
.expert-dashboard__status-badge.is-available {
    background: rgba(74,222,128,.2);
    color: #bbf7d0;
    border: 1px solid rgba(74,222,128,.3);
}
.expert-dashboard__status-badge.is-offline {
    background: rgba(148,163,184,.15);
    color: rgba(255,255,255,.6);
    border: 1px solid rgba(148,163,184,.25);
}
.expert-dashboard__status-dot-inline {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.expert-dashboard__tarif {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.1);
    padding: .2rem .6rem;
    border-radius: 50px;
}
.expert-dashboard__notif-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 700;
    color: #fef9c3;
    background: rgba(250,204,21,.2);
    border: 1px solid rgba(250,204,21,.3);
    padding: .2rem .6rem;
    border-radius: 50px;
    text-decoration: none;
}
.expert-dashboard__hero-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex-shrink: 0;
}
.expert-dashboard__hero-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8125rem;
    white-space: nowrap;
}
.expert-dashboard__hero-btn.btn-outline {
    color: rgba(255,255,255,.85);
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.08);
}
.expert-dashboard__hero-btn.btn-outline:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.5);
    color: #fff;
}

/* ── KPI Grid ── */
.expert-dashboard__kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .875rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 560px) {
    .expert-dashboard__kpi-grid { grid-template-columns: 1fr; }
}
.expert-kpi {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .18s;
    position: relative;
    overflow: hidden;
}
.expert-kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.expert-kpi--green  { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border-color: #bbf7d0; }
.expert-kpi--blue   { background: linear-gradient(135deg,#eff6ff,#dbeafe); border-color: #bfdbfe; }
.expert-kpi--orange { background: linear-gradient(135deg,#fffbeb,#fef3c7); border-color: #fde68a; }
.expert-kpi--teal   { background: linear-gradient(135deg,#f0fdfa,#ccfbf1); border-color: #99f6e4; }

.expert-kpi__icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.expert-kpi--green  .expert-kpi__icon { background: rgba(22,163,74,.12); color: #16a34a; }
.expert-kpi--blue   .expert-kpi__icon { background: rgba(29,78,216,.1);  color: #1d4ed8; }
.expert-kpi--orange .expert-kpi__icon { background: rgba(217,119,6,.12); color: #b45309; }
.expert-kpi--teal   .expert-kpi__icon { background: rgba(13,148,136,.12);color: #0d9488; }

.expert-kpi__body { flex: 1; min-width: 0; }
.expert-kpi__label { display: block; font-size: .75rem; font-weight: 600; color: var(--text-muted); margin-bottom: .2rem; }
.expert-kpi__value { display: block; font-size: 1.375rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.expert-kpi__value small { font-size: .65rem; font-weight: 600; color: var(--text-muted); }
.expert-kpi__link {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.expert-kpi__link:hover { background: rgba(255,255,255,.9); color: var(--text); }

/* ── Shortcuts ── */
.expert-dashboard__shortcuts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 480px) {
    .expert-dashboard__shortcuts { grid-template-columns: 1fr; }
}
.expert-shortcut {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: 1rem 1.125rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .18s;
    position: relative;
}
.expert-shortcut:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.expert-shortcut--red    { background: #fff5f5; border-color: #fecaca; }
.expert-shortcut--purple { background: #f5f3ff; border-color: #ddd6fe; }
.expert-shortcut--blue   { background: #eff6ff; border-color: #bfdbfe; }
.expert-shortcut--indigo { background: #eef2ff; border-color: #c7d2fe; }

.expert-shortcut__icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.expert-shortcut--red    .expert-shortcut__icon { background: rgba(239,68,68,.12);  color: #dc2626; }
.expert-shortcut--purple .expert-shortcut__icon { background: rgba(124,58,237,.12); color: #7c3aed; }
.expert-shortcut--blue   .expert-shortcut__icon { background: rgba(29,78,216,.1);   color: #1d4ed8; }
.expert-shortcut--indigo .expert-shortcut__icon { background: rgba(79,70,229,.1);   color: #4338ca; }

.expert-shortcut__body { flex: 1; min-width: 0; }
.expert-shortcut__title { display: block; font-size: .875rem; font-weight: 700; color: var(--text); }
.expert-shortcut__count { display: block; font-size: .75rem; color: var(--text-muted); margin-top: .1rem; }
.expert-shortcut__badge {
    min-width: 22px; height: 22px;
    padding: 0 .5rem;
    border-radius: 50px;
    background: #ef4444;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.expert-shortcut__badge--purple { background: #7c3aed; }

/* ── Section wrapper ── */
.expert-dashboard__section {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.expert-dashboard__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.375rem;
    border-bottom: 1px solid var(--border);
}
.expert-dashboard__section-title {
    margin: 0;
    font-size: .9375rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.expert-dashboard__section-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.expert-dashboard__section-link:hover { text-decoration: underline; }

/* ── Missions list ── */
.expert-dashboard__mission-list { list-style: none; margin: 0; padding: 0; }
.expert-dashboard__mission-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.expert-dashboard__mission-item:last-child { border-bottom: none; }
.expert-dashboard__mission-stripe { width: 4px; min-height: 64px; align-self: stretch; flex-shrink: 0; }
.expert-dashboard__mission-content { flex: 1; padding: .875rem 1rem; min-width: 0; }
.expert-dashboard__mission-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .3rem;
}
.expert-dashboard__mission-title {
    font-size: .875rem;
    font-weight: 700;
    color: var(--text);
    flex: 1;
    min-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.expert-dashboard__mission-badge {
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}
.expert-dashboard__mission-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .625rem;
    font-size: .78rem;
    color: var(--text-muted);
}
.expert-dashboard__mission-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.expert-dashboard__mission-amount { font-weight: 700; color: #16a34a; }
.expert-dashboard__mission-action {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: #eff6ff;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: .875rem;
    text-decoration: none;
    transition: background .15s;
    flex-shrink: 0;
}
.expert-dashboard__mission-action:hover { background: #dbeafe; }

/* ── Empty state ── */
.expert-dashboard__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
    gap: .75rem;
}
.expert-dashboard__empty p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.expert-dashboard__empty-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }

/* ── Parrainage ── */
.expert-dashboard__referral {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}
.expert-dashboard__referral-left { display: flex; align-items: center; gap: 1rem; }
.expert-dashboard__referral-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.expert-dashboard__referral-title { margin: 0 0 .2rem; font-size: .9375rem; font-weight: 700; }
.expert-dashboard__referral-desc  { margin: 0; font-size: .8125rem; color: var(--text-muted); }
.expert-dashboard__referral-copy { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.expert-dashboard__referral-input {
    flex: 1;
    min-width: 200px;
    padding: .5rem .875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .8125rem;
    background: var(--bg);
    color: var(--text-muted);
}

/* ================================================================
   Experts — Liste (/experts) redesign dashboard-compatible
   ================================================================ */
.experts-listing { max-width: 1100px; }

/* Icône header — vert charte */
.experts-listing__icon { background: var(--accent-soft); color: var(--accent); }
.experts-listing__count { background: var(--accent-soft); color: var(--accent); }

/* Professeurs — liste (/professeurs), même structure que experts */
.professeurs-listing { max-width: 1100px; }
.professeurs-listing__icon {
    background: var(--accent-soft, #eff6ff);
    color: var(--accent, #2563eb);
}
.professeurs-listing .missions-header__count {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.professeurs-listing .experts-filter-bar {
    border-left: 4px solid #93c5fd;
}
.professeurs-listing .experts-filter-bar__select:focus,
.professeurs-listing .experts-filter-bar__input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ── Barre de filtres ── */
.experts-filter-bar {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.experts-filter-bar__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}
.experts-filter-bar__group { display: flex; flex-direction: column; gap: .35rem; flex: 1; min-width: 180px; }
.experts-filter-bar__group--search { flex: 2; min-width: 240px; }
.experts-filter-bar__label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Select custom */
.experts-filter-bar__select-wrap { position: relative; }
.experts-filter-bar__select {
    width: 100%;
    padding: .6rem 2.25rem .6rem .875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    appearance: none;
    cursor: pointer;
    transition: border-color .15s;
}
.experts-filter-bar__select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.experts-filter-bar__select-arrow {
    position: absolute;
    right: .75rem; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
}

/* Input */
.experts-filter-bar__input-wrap { position: relative; }
.experts-filter-bar__input-icon {
    position: absolute;
    left: .75rem; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.experts-filter-bar__input {
    width: 100%;
    padding: .6rem .875rem .6rem 2.25rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    transition: border-color .15s;
    box-sizing: border-box;
}
.experts-filter-bar__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.experts-filter-bar__clear {
    position: absolute;
    right: .75rem; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    text-decoration: none;
    line-height: 1;
    transition: color .15s;
}
.experts-filter-bar__clear:hover { color: #ef4444; }
.experts-filter-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    white-space: nowrap;
    align-self: flex-end;
    min-height: 42px;
    padding: .6rem 1.15rem;
    background: var(--gradient) !important;
    border-color: transparent !important;
    box-sizing: border-box;
}
.experts-filter-bar__btn:hover { box-shadow: 0 4px 12px rgba(22,163,74,.30) !important; }
.experts-filter-bar__reset {
    align-self: flex-end;
    min-height: 42px;
    padding: .6rem 1rem;
    font-size: .8125rem;
    white-space: nowrap;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
}

/* ── Grille experts ── */
.experts-listing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.125rem;
}
@media (max-width: 560px) { .experts-listing__grid { grid-template-columns: 1fr; } }

/* ── Carte expert ── */
.expert-listing-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .625rem;
    position: relative;
    box-shadow: 0 1px 3px rgba(15,23,42,.05);
    transition: transform .15s, box-shadow .18s, border-color .18s;
}
.expert-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(22,163,74,.12);
    border-color: #86efac;
}

/* Badge vérifié */
.expert-listing-card__verified {
    position: absolute;
    top: .875rem; right: .875rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .68rem;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: .2rem .55rem;
    border-radius: 50px;
}

/* Avatar */
.expert-listing-card__avatar-wrap {
    position: relative;
    width: auto;
    height: auto;
    min-width: 72px;
    min-height: 72px;
    margin: 0 auto .25rem;
    flex-shrink: 0;
    overflow: visible;
}
.expert-listing-card__avatar-wrap .public-user-thumb__circle {
    overflow: visible;
}
.expert-listing-card__name-row .gv-badge--tt {
    width: 1.125rem;
    height: 1.125rem;
}
.expert-listing-card__avatar-img,
.expert-listing-card__avatar-fallback {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.8);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.expert-listing-card__avatar-img {
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}
.expert-listing-card__avatar-fallback {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 800;
    color: #fff;
    z-index: 0;
}
.expert-listing-card__avatar-fallback.is-hidden {
    display: none !important;
}

/* Identité */
.expert-listing-card__identity { width: 100%; }
.expert-listing-card__titre {
    margin: 0 0 .2rem;
    font-size: .9375rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.expert-listing-card__nom { margin: 0; font-size: .8rem; color: var(--text-muted); }

/* Note */
.expert-listing-card__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    font-size: .8125rem;
}
.expert-listing-card__stars { display: inline-flex; gap: 1px; }
.expert-listing-card__note-val { font-weight: 700; color: var(--text); }
.expert-listing-card__avis { color: var(--text-muted); }
.expert-listing-card__no-avis { color: var(--text-muted); font-style: italic; font-size: .78rem; }

/* Tarif */
.expert-listing-card__tarif {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .25rem;
}
.expert-listing-card__tarif-val { font-size: 1.25rem; font-weight: 800; color: #16a34a; }
.expert-listing-card__tarif-unit { font-size: .75rem; color: var(--text-muted); }

/* CTA */
.expert-listing-card__cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: .25rem;
    background: var(--gradient) !important;
    border-color: transparent !important;
    font-size: .875rem;
}
.expert-listing-card__cta:hover { box-shadow: 0 4px 14px rgba(22,163,74,.30) !important; transform: translateY(-1px); }

/* ── Grille & cartes professeurs (/professeurs) ── */
.professeurs-listing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 1.125rem;
    align-items: stretch;
}
@media (min-width: 1080px) {
    .professeurs-listing__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .professeurs-listing__grid { grid-template-columns: 1fr; }
}

.professeur-listing-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    position: relative;
    height: 100%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
    transition: transform .15s, box-shadow .18s, border-color .18s;
}
.professeur-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, .12);
    border-color: #93c5fd;
}

.professeur-listing-card__verified {
    position: absolute;
    top: .75rem;
    right: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .68rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    padding: .22rem .55rem;
    border-radius: 50px;
    line-height: 1.2;
    z-index: 2;
}

.professeur-listing-card__avatar-wrap {
    margin-bottom: .15rem;
    flex-shrink: 0;
}
.professeur-listing-card__avatar-stack {
    width: 76px;
    margin: 0 auto;
}
.professeur-listing-card__avatar-stack .public-user-thumb {
    width: 76px;
}
.professeur-listing-card__avatar-stack .public-user-thumb__circle {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .12);
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
}
.professeur-listing-card__avatar-stack .public-user-thumb__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.professeur-listing-card__avatar-stack .public-user-thumb__initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    border-radius: 50%;
}

.professeur-listing-card__identity {
    width: 100%;
    min-height: 2.75rem;
    padding: 0 .25rem;
}
.professeur-listing-card__titre {
    margin: 0 0 .15rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.professeur-listing-card__nom {
    margin: 0;
    font-size: .8125rem;
    color: var(--text-muted);
    line-height: 1.35;
}
.professeur-listing-card__role-tag {
    display: inline-block;
    margin: 0;
    font-size: .72rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 50px;
    padding: .15rem .55rem;
}

.professeur-listing-card__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    font-size: .8125rem;
    min-height: 1.25rem;
    color: var(--text-muted);
}
.professeur-listing-card__no-avis {
    font-size: .78rem;
    font-style: italic;
    color: var(--text-muted);
}

.professeur-listing-card__tarif {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .3rem;
    width: 100%;
    margin: .35rem 0 .15rem;
    padding: .55rem .65rem;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    box-sizing: border-box;
}
.professeur-listing-card__tarif-val {
    font-size: 1.125rem;
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1.2;
}
.professeur-listing-card__tarif-unit {
    font-size: .75rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
}

.professeur-listing-card__btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: auto;
    padding: .55rem 1rem;
    background: linear-gradient(135deg, #0b3a6e, #2563eb);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, box-shadow .15s, transform .12s;
    box-sizing: border-box;
}
.professeur-listing-card__btn:hover {
    background: linear-gradient(135deg, #082a52, #1d4ed8);
    box-shadow: 0 4px 14px rgba(37, 99, 235, .28);
    transform: translateY(-1px);
}

/* ================================================================
   Expert — Fiche détaillée (/expert/slug) redesign
   ================================================================ */
.expert-show-page { max-width: 960px; }
.expert-show__back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: color .15s;
}
.expert-show__back:hover { color: var(--accent); }

/* Layout 2 colonnes */
.expert-show__layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
}
@media (max-width: 720px) { .expert-show__layout { grid-template-columns: 1fr; } }

/* ── Hero card ── */
.expert-show__hero-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.125rem;
    flex-wrap: wrap;
}

/* Avatar */
.expert-show__avatar-wrap { position: relative; flex-shrink: 0; }
/* Pile initiales + photo (évite double affichage si fichier manquant / URL invalide) */
.expert-show__avatar-wrap--stack {
    width: 100px;
    height: 100px;
    overflow: visible;
}
.expert-show__avatar-wrap--stack .public-user-thumb__flag,
.expert-show__flag {
    width: 1.65rem;
    height: 1.65rem;
    bottom: 0;
    right: -2px;
    z-index: 4;
}
.expert-show__avatar-wrap--stack .public-user-thumb__flag-img {
    width: 22px;
    height: 16px;
}
.expert-show__avatar-wrap--stack .expert-show__avatar-fallback {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
}
.expert-show__avatar-wrap--stack .expert-show__avatar-img {
    position: relative;
    z-index: 1;
    background: #f1f5f9;
}
.expert-show__avatar-img,
.expert-show__avatar-fallback {
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
}
.expert-show__avatar-img { object-fit: cover; display: block; }
.expert-show__avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}
.expert-show__verified-ring {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #16a34a;
    border: 2.5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Identité show */
.expert-show__identity { flex: 1; min-width: 0; }
.expert-show__identity-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.expert-show__titre { margin: 0 0 .25rem; font-size: 1.25rem; font-weight: 800; color: var(--text); }
.expert-show__nom { margin: 0; font-size: .9rem; color: var(--text-muted); }
.expert-show__badge-verified {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: .25rem .65rem;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Stats */
.expert-show__stats { display: flex; flex-wrap: wrap; gap: .875rem; align-items: center; margin-bottom: .875rem; }
.expert-show__stat { display: inline-flex; align-items: center; gap: .35rem; font-size: .8125rem; color: var(--text-muted); }
.expert-show__stars { display: inline-flex; gap: 1px; }
.expert-show__note-val { font-weight: 700; color: var(--text); font-size: .9rem; }
.expert-show__avis-count { color: var(--text-muted); }
.expert-show__no-avis { color: var(--text-muted); font-style: italic; }
.expert-show__stat--level { background: #f5f3ff; color: #7c3aed; padding: .2rem .6rem; border-radius: 50px; font-weight: 600; }

/* Skills chips */
.expert-show__skills { display: flex; flex-wrap: wrap; gap: .4rem; }
.expert-show__skill-chip {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    padding: .25rem .7rem;
    border-radius: 50px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid #bbf7d0;
}

/* Types de professions (fiche publique expert) */
.expert-types-professions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.expert-types-professions__chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .12rem;
    max-width: 100%;
    padding: .45rem .8rem;
    border-radius: 10px;
    background: var(--accent-soft);
    border: 1px solid #bbf7d0;
}
.expert-types-professions__label {
    font-size: .8125rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.3;
}
.expert-types-professions__cat {
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.expert-types-professions__niveau {
    font-size: .68rem;
    font-weight: 600;
    color: #7c3aed;
    background: #f5f3ff;
    padding: .1rem .45rem;
    border-radius: 50px;
}

/* Sections contenu */
.expert-show__section {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.375rem 1.5rem;
    margin-bottom: 1.125rem;
}
.expert-show__section-title {
    margin: 0 0 .875rem;
    font-size: .9375rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.expert-show__description { font-size: .9rem; color: var(--text); line-height: 1.6; }

/* Partage */
.expert-show__share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .875rem;
    background: #f8fafc;
}
.expert-show__share-label { font-size: .8125rem; color: var(--text-muted); font-weight: 600; }
.expert-show__share-btns { display: flex; gap: .5rem; }
.expert-show__share-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: background .15s, color .15s, border-color .15s;
}
.expert-show__share-btn--fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.expert-show__share-btn--x:hover  { background: #000;    color: #fff; border-color: #000; }
.expert-show__share-btn--li:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.expert-show__share-btn--copy:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Sidebar tarif ── */
.expert-show__sidebar { position: sticky; top: 1rem; }
.expert-show__tarif-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.expert-show__tarif-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: .5rem; }
.expert-show__tarif-amount { display: flex; align-items: baseline; gap: .25rem; }
.expert-show__tarif-val { font-size: 1.875rem; font-weight: 900; color: var(--text); }
.expert-show__tarif-devise { font-size: .875rem; font-weight: 600; color: var(--text-muted); }
.expert-show__tarif-unit { font-size: .8125rem; color: var(--text-muted); }
.expert-show__tarif-note { display: inline-flex; align-items: center; gap: .25rem; font-size: .8125rem; font-weight: 700; color: #f59e0b; }
.expert-show__tarif-note span { color: var(--text-muted); font-weight: 400; }
.expert-show__cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1rem;
}
.expert-show__cta.btn-primary {
    background: var(--gradient) !important;
    border-color: transparent !important;
    color: #fff !important;
}
.expert-show__cta.btn-primary:hover { box-shadow: 0 4px 14px rgba(22,163,74,.30) !important; transform: translateY(-1px); }
.expert-show__cta--signup:hover { transform: translateY(-1px); }
.expert-show__cta-hint { font-size: .78rem; color: var(--text-muted); text-align: center; margin: 0 0 .75rem; }
.expert-show__cta-note { font-size: .8125rem; color: var(--text-muted); margin-bottom: .75rem; text-align: center; }
.expert-show__guarantees { display: flex; flex-direction: column; gap: .5rem; border-top: 1px solid var(--border); padding-top: 1rem; margin-top: .25rem; }
.expert-show__guarantee { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--text-muted); }

/* Avatar fiche professeur : initiales sous la photo (évite double affichage si image invalide) */
.professeur-show-page .prof-show-avatar-stack {
    width: 100px;
    height: 100px;
}
.professeur-show-page .prof-show-avatar-stack .expert-show__avatar-fallback {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
}
.professeur-show-page .prof-show-avatar-stack .expert-show__avatar-img {
    position: relative;
    z-index: 1;
}

/* Professeur — fiche publique (réutilise expert-show, thème violet) */
.professeur-show-page .expert-show__back:hover { color: #7c3aed; }
.professeur-show-page .expert-show__hero-card {
    border-color: #e9d5ff;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
}
.professeur-show-page .expert-show__verified-ring { background: #16a34a; }
.professeur-show-page .expert-show__badge-verified {
    background: #dcfce7 !important;
    color: #15803d !important;
    border-color: #86efac !important;
}
.professeur-show-page .expert-show__skill-chip--prof {
    background: #f5f3ff !important;
    border-color: #e9d5ff !important;
    color: #6b21a8 !important;
}
.professeur-show-page .expert-show__tarif-val--prof {
    color: #7c3aed !important;
}
.professeur-show-page .expert-show__cta--prof {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    border-color: #7c3aed !important;
    color: #fff !important;
}
.professeur-show-page .expert-show__tarif-card {
    border-color: #e9d5ff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.07);
}
.professeur-show-page .expert-show__cta:hover {
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.38) !important;
    transform: translateY(-1px);
}

/* ── Avis ── */
.expert-show__reviews {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.expert-show__reviews-title {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.expert-show__reviews-count {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: .2rem .6rem;
    border-radius: 50px;
    margin-left: .25rem;
}
.expert-show__reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.expert-review-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}
.expert-review-item__header { display: flex; align-items: center; gap: .75rem; margin-bottom: .625rem; }
.expert-review-item__avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.expert-review-item__author { font-size: .8125rem; font-weight: 700; color: var(--text); }
.expert-review-item__stars { display: inline-flex; gap: 1px; }
.expert-review-item__text { margin: 0; font-size: .8125rem; color: var(--text-muted); line-height: 1.5; }
.expert-review-item__text--note-only { font-style: italic; }
.expert-show__reviews-empty { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 1.5rem; text-align: center; }
.expert-show__reviews-empty p { margin: 0; color: var(--text-muted); font-size: .875rem; }

/* ── Accueil web enrichi ── */
.page-home--rich .home-live {
    margin: 2rem 0 2.5rem;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 20px;
    background: linear-gradient(145deg, #f0f9ff 0%, #fff 45%, #f0fdf4 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}
.home-live__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
}
.home-live__title { margin: .35rem 0 0; font-size: 1.5rem; font-weight: 800; color: #0f172a; }
.home-live__sub { margin: .4rem 0 0; font-size: .9375rem; color: #64748b; max-width: 42rem; }
.home-live__tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.home-live__tab {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: .8125rem;
    font-weight: 700;
    padding: .45rem .85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.home-live__tab.is-active,
.home-live__tab:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}
.home-live__shell { position: relative; min-height: 140px; }
.home-live__panel[hidden] { display: none !important; }
.home-live__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
    font-size: .8125rem;
}
.home-live__count { color: #64748b; font-weight: 600; }
.home-live__see-all { color: #0f766e; font-weight: 700; text-decoration: none; }
.home-live__see-all:hover { text-decoration: underline; }
.home-live__marquee-wrap { overflow: hidden; border-radius: 14px; background: rgba(255,255,255,.7); border: 1px solid #e2e8f0; }
.home-live__marquee.is-animated .home-live__track {
    animation: home-live-marquee 38s linear infinite;
    width: max-content;
}
.home-live__marquee.is-animated:hover .home-live__track { animation-play-state: paused; }
.home-live__track { display: flex; gap: .75rem; padding: .85rem 1rem; }
@keyframes home-live-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.home-live-card {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .85rem 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, transform .15s;
}
.home-live-card:hover { box-shadow: 0 6px 20px rgba(15, 118, 110, 0.12); transform: translateY(-2px); }
.home-live-card__avatar-wrap {
    width: 52px;
    height: 52px;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
    overflow: visible;
    position: relative;
}
.home-live-card__avatar-wrap .public-user-thumb {
    overflow: visible;
}
.home-live-card__avatar-wrap .public-user-thumb__circle {
    width: 48px !important;
    height: 48px !important;
    overflow: visible;
}
.home-live-card__avatar-wrap .public-user-thumb__img {
    width: 48px !important;
    height: 48px !important;
}
.home-talent-card__avatar {
    flex-shrink: 0;
    overflow: visible;
    position: relative;
}
.home-talent-card__avatar .public-user-thumb {
    overflow: visible;
}
.home-live-card__kind { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #0f766e; }
.home-live-card__title { font-size: .9375rem; font-weight: 700; color: #0f172a; line-height: 1.35; }
.home-live-card__meta { font-size: .78rem; color: #64748b; line-height: 1.4; }
.home-live-card__badge {
    align-self: flex-start;
    margin-top: .35rem;
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
}
.home-live-card__badge--urgence { background: #fef3c7; color: #b45309; }
.home-live-card--demande { border-left: 3px solid #f59e0b; }
.home-live-card--entreprise { border-left: 3px solid #2563eb; }
.home-live-card--expert { border-left: 3px solid #16a34a; }

.home-news__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.home-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.home-news-card {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .15s;
}
.home-news-card:hover { box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08); }
.home-news-card--featured {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
    border-color: transparent;
}
.home-news-card--featured .home-news-card__inner { color: #fff; }
.home-news-card--featured .home-news-card__cat,
.home-news-card--featured .home-news-card__date { color: rgba(255,255,255,.85); }
.home-news-card--featured .home-news-card__title a { color: #fff; }
.home-news-card--featured .home-news-card__excerpt { color: rgba(255,255,255,.88); }
.home-news-card--featured .home-news-card__link { color: #bbf7d0; }
.home-news-card__inner { padding: 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .45rem; height: 100%; }
.home-news-card__cat { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #0f766e; }
.home-news-card__date { font-size: .78rem; color: #94a3b8; }
.home-news-card__title { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.home-news-card--featured .home-news-card__title { font-size: 1.35rem; }
.home-news-card__title a { color: #0f172a; text-decoration: none; }
.home-news-card__title a:hover { text-decoration: underline; }
.home-news-card__excerpt { margin: 0; font-size: .875rem; color: #64748b; line-height: 1.5; flex: 1; }
.home-news-card__link { font-size: .8125rem; font-weight: 700; color: #0f766e; text-decoration: none; margin-top: auto; }
.home-cta-final { text-align: center; padding: 2rem 1rem 2.5rem; }
.home-cta-final__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1rem; }

@media (max-width: 960px) {
    .home-news__grid { grid-template-columns: 1fr; }
    .home-news-card--featured { grid-column: span 1; grid-row: span 1; }
}

/* ── Blog hub & article ── */
.page-blog { max-width: 920px; margin: 0 auto; padding-bottom: 2rem; }
.blog-hub__hero { margin-bottom: 1.5rem; }
.blog-hub__hero h1 { margin: .5rem 0 .65rem; font-size: 2rem; font-weight: 800; color: #0f172a; }
.blog-hub__lead { font-size: 1.05rem; color: #475569; line-height: 1.55; margin: 0; max-width: 40rem; }
.blog-hub__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.blog-hub__chip {
    display: inline-flex;
    padding: .4rem .85rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: .8125rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
}
.blog-hub__chip.is-active,
.blog-hub__chip:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.blog-hub__tag-pill { font-size: .8125rem; font-weight: 700; color: #7c3aed; padding: .4rem .6rem; }
.blog-hub__featured { padding: 1.75rem 2rem; margin-bottom: 1.5rem; border-left: 4px solid #1d4ed8; }
.blog-hub__featured h2 { margin: .5rem 0 .65rem; font-size: 1.5rem; }
.blog-hub__featured h2 a { color: inherit; text-decoration: none; }
.blog-hub__featured h2 a:hover { color: #1d4ed8; }
.blog-hub__featured-cat { font-size: .75rem; font-weight: 800; text-transform: uppercase; color: #1d4ed8; }
.blog-hub__meta { font-size: .8125rem; color: #64748b; }
.blog-hub__excerpt { font-size: 1rem; color: #475569; line-height: 1.6; }
.blog-hub__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.blog-hub__card { padding: 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.blog-hub__card h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.blog-hub__card h3 a { color: #0f172a; text-decoration: none; }
.blog-hub__card h3 a:hover { color: #1d4ed8; }
.blog-hub__card-cat { font-size: .72rem; font-weight: 800; text-transform: uppercase; color: #0f766e; }
.blog-hub__card-excerpt { margin: 0; font-size: .875rem; color: #64748b; flex: 1; }
.blog-hub__read { font-weight: 700; font-size: .8125rem; color: #1d4ed8; text-decoration: none; }
.blog-hub__empty { padding: 2rem; text-align: center; }

.blog-article__nav { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 1rem; }
.blog-article__back { font-weight: 600; color: #1d4ed8; text-decoration: none; }
.blog-article__cat-link { font-size: .8125rem; font-weight: 700; color: #0f766e; text-decoration: none; }
.blog-article { padding: 0; overflow: hidden; }
.blog-article__header { padding: 1.75rem 2rem 1.25rem; border-bottom: 1px solid #e2e8f0; }
.blog-article__date { display: block; font-size: .8125rem; color: #64748b; margin-bottom: .5rem; }
.blog-article__header h1 { margin: 0 0 .75rem; font-size: 1.85rem; line-height: 1.25; color: #0f172a; }
.blog-article__lead { margin: 0; font-size: 1.1rem; color: #475569; line-height: 1.55; }
.blog-article__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.blog-article__tag {
    font-size: .75rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
}
.blog-article__body { padding: 1.5rem 2rem; }
.blog-body { font-size: 1.02rem; line-height: 1.75; color: #334155; }
.blog-body h2 { margin: 1.75rem 0 .75rem; font-size: 1.35rem; color: #0f172a; }
.blog-body h3 { margin: 1.25rem 0 .5rem; font-size: 1.1rem; color: #1e293b; }
.blog-body p { margin: 0 0 1rem; }
.blog-body ul { margin: 0 0 1rem 1.25rem; }
.blog-body a { color: #1d4ed8; }
.blog-faq { padding: 0 2rem 1.5rem; }
.blog-faq h2 { font-size: 1.25rem; margin: 0 0 1rem; }
.blog-faq__list { display: flex; flex-direction: column; gap: .5rem; }
.blog-faq__item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: .65rem .85rem;
    background: #f8fafc;
}
.blog-faq__item summary { font-weight: 700; cursor: pointer; color: #0f172a; }
.blog-faq__item p { margin: .55rem 0 0; font-size: .9375rem; color: #475569; }
.blog-article__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}
.blog-article__share-label { font-size: .8125rem; font-weight: 600; color: #64748b; margin-right: .25rem; }
.blog-related { margin-top: 2rem; }
.blog-related h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.blog-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.blog-related__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: inherit;
}
.blog-related__title { font-weight: 700; font-size: .9375rem; color: #0f172a; }
.blog-related__arrow { color: #1d4ed8; font-weight: 700; }

.about-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.25rem;
    justify-content: center;
}
.about-quick-links__item {
    font-size: .8125rem;
    font-weight: 700;
    padding: .45rem .9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(6px);
}
.about-quick-links__item:hover { background: rgba(255,255,255,.22); }
.about-quick-links__item--accent { background: #16a34a; border-color: #16a34a; }
.about-quick-links__item--accent:hover { background: #15803d; }
