/*
 * Plateforme utilisateur — système visuel inspiré de Tesla :
 * surfaces blanches, typographie sobre, grands visuels, boutons rectangulaires
 * à rayon léger, aucune ombre, gris neutres et un seul accent bleu.
 */

:root {
    --t-grad: linear-gradient(135deg, #ff4d6d 0%, #ff8a5b 100%);
    --t-plum: #2b1b3d;
    --t-shadow: 0 10px 30px -12px rgba(120, 40, 70, 0.22);
    --t-shadow-lg: 0 24px 50px -20px rgba(120, 40, 70, 0.35);
    --t-text: #2a1f33;
    --t-text-2: #4a3d55;
    --t-muted: #7a6d85;
    --t-faint: #a99fb2;
    --t-line: #f0e4e4;
    --t-line-strong: #e3d3d6;
    --t-bg: #fff8f6;
    --t-surface: #fdeeee;
    --t-surface-2: #fbdfe2;
    --t-blue: #ff4d6d;
    --t-blue-hover: #e8365a;
    --t-blue-soft: #ffe9ee;
    --t-red: #e31937;
    --t-red-soft: #fdecee;
    --t-green: #12a150;
    --t-green-soft: #e8f6ee;
    --t-amber-soft: #fff6e0;
    --t-radius: 14px;
    --t-radius-lg: 24px;
    --t-header-h: 56px;
    --t-ease: cubic-bezier(0.5, 0, 0, 0.75);
    --t-font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --bs-body-font-family: var(--t-font);
    --bs-body-color: var(--t-text);
    --bs-body-bg: var(--t-bg);
    --bs-primary: var(--t-blue);
    --bs-primary-rgb: 255, 77, 109;
    --bs-link-color: var(--t-text);
    --bs-link-color-rgb: 42, 31, 51;
    --bs-link-hover-color: var(--t-blue);
    --bs-link-hover-color-rgb: 255, 77, 109;
    --bs-border-color: var(--t-line);
    --bs-secondary-color: var(--t-muted);
}

/* ---------- Base ---------- */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--t-font);
    color: var(--t-text);
    background: var(--t-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.t-locked {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--t-text);
    font-weight: 500;
    letter-spacing: -0.01em;
}

a {
    color: var(--t-text);
    text-underline-offset: 3px;
    transition: color 0.25s var(--t-ease);
}

a:hover {
    color: var(--t-text);
}

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

.min-w-0 {
    min-width: 0;
}

::selection {
    background: var(--t-blue);
    color: #fff;
}

/* ---------- En-tête ---------- */

.t-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1030;
    height: var(--t-header-h);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    transition: background-color 0.4s var(--t-ease), color 0.4s var(--t-ease);
}

.t-header-inner {
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.t-brand {
    justify-self: start;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--t-text);
    white-space: nowrap;
}

.t-brand:hover {
    color: var(--t-text);
}

.t-nav {
    display: flex;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.t-nav-link,
.t-header-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border-radius: var(--t-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--t-text);
    text-decoration: none;
    background: transparent;
    border: 0;
    transition: background-color 0.33s var(--t-ease), color 0.33s var(--t-ease);
    white-space: nowrap;
}

.t-nav-link:hover,
.t-header-action:hover,
.t-nav-link.is-active {
    background: rgba(23, 26, 32, 0.06);
    color: var(--t-text);
}

.t-header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 2px;
}

.t-header-points {
    font-variant-numeric: tabular-nums;
    color: var(--t-muted);
}

.t-menu-toggle {
    display: none;
}

/* En-tête transparent au-dessus du héros */
body.t-has-hero .t-header:not(.is-scrolled) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.t-has-hero .t-header:not(.is-scrolled) .t-brand,
body.t-has-hero .t-header:not(.is-scrolled) .t-nav-link,
body.t-has-hero .t-header:not(.is-scrolled) .t-header-action {
    color: #fff;
}

body.t-has-hero .t-header:not(.is-scrolled) .t-nav-link:hover,
body.t-has-hero .t-header:not(.is-scrolled) .t-nav-link.is-active,
body.t-has-hero .t-header:not(.is-scrolled) .t-header-action:hover {
    background: rgba(255, 255, 255, 0.14);
}

body.t-has-hero .t-header:not(.is-scrolled) .t-header-points {
    color: rgba(255, 255, 255, 0.8);
}

/* Tiroir de navigation (mobile) */
.t-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--t-ease), visibility 0.4s;
}

.t-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1050;
    width: min(320px, 100%);
    background: #fff;
    padding: 72px 24px 32px;
    transform: translateX(100%);
    transition: transform 0.5s var(--t-ease);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.t-drawer-open .t-drawer {
    transform: none;
}

.t-drawer-open .t-drawer-backdrop {
    opacity: 1;
    visibility: visible;
}

.t-drawer-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    border-radius: var(--t-radius);
    font-size: 22px;
    line-height: 1;
    color: var(--t-text);
}

.t-drawer-close:hover {
    background: var(--t-surface);
}

.t-drawer a,
.t-drawer button.t-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--t-radius);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    color: var(--t-text);
    background: transparent;
    border: 0;
    text-decoration: none;
    transition: background-color 0.3s var(--t-ease);
}

.t-drawer a:hover,
.t-drawer a.is-active,
.t-drawer button.t-drawer-link:hover {
    background: var(--t-surface);
}

.t-drawer-sep {
    height: 1px;
    background: var(--t-line);
    margin: 12px 0;
}

@media (max-width: 1023.98px) {
    .t-header-inner {
        grid-template-columns: 1fr auto;
    }

    .t-nav-wrap,
    .t-header-actions .t-desktop-only {
        display: none;
    }

    .t-brand {
        font-size: 13px;
        letter-spacing: 0.22em;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .t-menu-toggle {
        display: inline-flex;
    }
}

/* ---------- Structure ---------- */

.platform-main {
    flex: 1 0 auto;
    padding: calc(var(--t-header-h) + 40px) 0 96px;
}

body.t-has-hero .platform-main {
    padding-top: 0;
}

body.t-flush .platform-main {
    padding-bottom: 0;
}

.platform-main > .container {
    max-width: 1280px;
    padding-left: 24px;
    padding-right: 24px;
}

.t-narrow {
    max-width: 640px;
    margin: 0 auto;
}

.t-mid {
    max-width: 880px;
    margin: 0 auto;
}

.t-auth {
    max-width: 400px;
    margin: 0 auto;
    padding-top: 24px;
}

.t-page-head {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 720px;
}

.t-page-head.is-left {
    text-align: left;
    margin-left: 0;
}

.t-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--t-muted);
    margin-bottom: 8px;
}

.t-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.t-subtitle {
    font-size: 15px;
    color: var(--t-muted);
    margin: 0;
}

.t-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.t-page-head.is-left .t-page-actions {
    justify-content: flex-start;
}

.t-section {
    padding: 32px 0;
    border-top: 1px solid var(--t-line);
}

.t-section:first-child {
    border-top: 0;
    padding-top: 0;
}

.t-section-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 6px;
}

.t-section-text {
    color: var(--t-muted);
    font-size: 14px;
    margin: 0 0 16px;
}

.t-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--t-muted);
    text-decoration: none;
    margin-top: 32px;
}

.t-back:hover {
    color: var(--t-text);
}

/* ---------- Boutons ---------- */

.t-btn,
.btn {
    --bs-btn-focus-box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 24px;
    border-radius: var(--t-radius);
    border: 3px solid transparent;
    font-family: var(--t-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.33s var(--t-ease), border-color 0.33s var(--t-ease), color 0.33s var(--t-ease);
}

.t-btn:focus-visible,
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.3);
}

.t-btn:disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.t-btn-primary,
.btn-primary {
    background: var(--t-blue);
    border-color: var(--t-blue);
    color: #fff;
}

.t-btn-primary:hover,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background: var(--t-blue-hover);
    border-color: var(--t-blue-hover);
    color: #fff;
}

.t-btn-secondary,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark,
.btn-light {
    background: var(--t-surface);
    border-color: var(--t-surface);
    color: var(--t-text-2);
}

.t-btn-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-dark:hover,
.btn-light:hover,
.btn-check:checked + .btn-outline-primary {
    background: var(--t-surface-2);
    border-color: var(--t-surface-2);
    color: var(--t-text);
}

.t-btn-dark {
    background: var(--t-text);
    border-color: var(--t-text);
    color: #fff;
}

.t-btn-dark:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* Bouton clair translucide (sur visuel sombre) */
.t-btn-glass {
    background: rgba(244, 244, 244, 0.82);
    border-color: transparent;
    color: var(--t-text-2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.t-btn-glass:hover {
    background: #fff;
    color: var(--t-text);
}

.t-btn-danger,
.btn-outline-danger {
    background: var(--t-surface);
    border-color: var(--t-surface);
    color: var(--t-red);
}

.t-btn-danger:hover,
.btn-outline-danger:hover {
    background: var(--t-red);
    border-color: var(--t-red);
    color: #fff;
}

.t-btn-success,
.btn-success {
    background: var(--t-text);
    border-color: var(--t-text);
    color: #fff;
}

.t-btn-success:hover,
.btn-success:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.t-btn-link,
.btn-link {
    background: transparent;
    border-color: transparent;
    color: var(--t-muted);
    padding: 0 8px;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: transparent;
}

.t-btn-link:hover,
.btn-link:hover {
    color: var(--t-text);
    text-decoration-color: currentColor;
}

.t-btn-wide {
    min-width: 264px;
}

.t-btn-block {
    width: 100%;
}

.t-btn-sm,
.btn-sm {
    min-height: 32px;
    padding: 0 14px;
    font-size: 13px;
}

.t-btn-lg,
.btn-lg {
    min-height: 48px;
    font-size: 15px;
}

.t-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--t-text);
    text-decoration: underline;
    text-decoration-color: var(--t-line-strong);
    text-underline-offset: 4px;
    background: none;
    border: 0;
    padding: 0;
}

.t-link:hover {
    text-decoration-color: currentColor;
    color: var(--t-text);
}

.t-link-danger {
    color: var(--t-red);
}

.t-link-danger:hover {
    color: var(--t-red);
}

.t-link-muted {
    color: var(--t-muted);
}

/* ---------- Formulaires ---------- */

.form-label,
.t-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--t-muted);
    margin-bottom: 6px;
}

.form-control,
.form-select {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: var(--t-radius);
    border: 1px solid transparent;
    background-color: var(--t-surface);
    color: var(--t-text);
    font-size: 14px;
    transition: border-color 0.25s var(--t-ease), background-color 0.25s var(--t-ease);
}

.form-select {
    padding-right: 36px;
    background-position: right 12px center;
}

textarea.form-control {
    padding: 10px 14px;
    line-height: 1.5;
}

.form-control::placeholder {
    color: var(--t-faint);
}

.form-control:hover,
.form-select:hover {
    border-color: var(--t-line-strong);
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border-color: var(--t-text);
    box-shadow: none;
    color: var(--t-text);
}

.form-control[type="file"] {
    padding: 0;
    line-height: 40px;
    overflow: hidden;
}

.form-control[type="file"]::file-selector-button {
    height: 40px;
    margin: 0 14px 0 0;
    padding: 0 16px;
    border: 0;
    background: var(--t-surface-2);
    color: var(--t-text);
    font-weight: 500;
}

.form-text {
    font-size: 12px;
    color: var(--t-muted);
    margin-top: 6px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1px solid var(--t-line-strong);
    border-radius: 3px;
    background-color: #fff;
}

.form-check-input:checked {
    background-color: var(--t-text);
    border-color: var(--t-text);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.2);
    border-color: var(--t-text);
}

.form-check-label {
    font-size: 14px;
    color: var(--t-text-2);
}

.form-switch .form-check-input {
    width: 36px;
    height: 20px;
    border-radius: 20px;
    margin-top: 0;
}

.t-field {
    margin-bottom: 20px;
}

.t-field-hint {
    font-weight: 400;
    color: var(--t-faint);
}

/* Contrôle segmenté (Tous · Femmes · Hommes) */
.t-segmented {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    background: var(--t-surface);
    border-radius: var(--t-radius);
}

.t-segmented input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.t-segmented label {
    min-height: 32px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    color: var(--t-muted);
    cursor: pointer;
    transition: background-color 0.3s var(--t-ease), color 0.3s var(--t-ease);
    user-select: none;
}

.t-segmented label:hover {
    color: var(--t-text);
}

.t-segmented input:checked + label {
    background: #fff;
    color: var(--t-text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.t-segmented input:focus-visible + label {
    outline: 2px solid var(--t-blue);
    outline-offset: 1px;
}

/* Barre de filtres */
.t-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    padding: 16px 0 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--t-line);
}

.t-filters .t-filter {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.t-filters .t-filter-grow {
    flex: 1 1 180px;
}

.t-filters .form-check {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding-left: 0;
}

.t-filters .form-check .form-check-input {
    float: none;
    margin: 0;
}

.t-filters .t-filter-submit {
    margin-left: auto;
}

@media (max-width: 767.98px) {
    .t-filters .t-filter,
    .t-filters .t-filter-submit {
        flex: 1 1 100%;
        margin-left: 0;
    }

    .t-filters .t-filter-half {
        flex: 1 1 calc(50% - 8px);
    }

    .t-filters .t-filter-submit .t-btn,
    .t-filters .t-segmented {
        width: 100%;
    }

    .t-segmented label {
        flex: 1;
        justify-content: center;
    }
}

/* ---------- Héros ---------- */

.t-hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    max-height: 960px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--t-header-h) + 10vh) 24px 64px;
    color: #fff;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    background: #0b0c0f;
    margin: 0 calc(50% - 50vw) 64px;
    width: 100vw;
}

.t-hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 2px;
    animation: t-hero-zoom 24s ease-out both;
}

.t-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.25) contrast(1.05);
}

.t-hero-media.is-empty {
    display: block;
    background:
        radial-gradient(120% 80% at 50% 110%, #3e6ae1 0%, rgba(255, 77, 109, 0) 55%),
        radial-gradient(60% 50% at 85% 10%, #4b2a4f 0%, rgba(75, 42, 79, 0) 70%),
        linear-gradient(180deg, #0b0c0f 0%, #171a20 100%);
}

.t-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.75) 100%);
}

.t-hero-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: #fff;
    margin: 0 0 10px;
}

.t-hero-sub {
    font-size: clamp(15px, 1.6vw, 18px);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.t-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    width: 100%;
}

.t-hero-scroll {
    display: block;
    margin: 24px auto 0;
    width: 24px;
    height: 24px;
    color: #fff;
    opacity: 0.8;
    animation: t-bounce 2.4s ease-in-out infinite;
}

@keyframes t-hero-zoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

@keyframes t-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@media (max-width: 767.98px) {
    .t-hero-media {
        grid-template-columns: repeat(2, 1fr);
    }

    .t-hero-media img:nth-child(n + 7) {
        display: none;
    }

    .t-hero-actions .t-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t-hero-media,
    .t-hero-scroll {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---------- Grille de profils ---------- */

.t-grid-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.t-count {
    font-size: 13px;
    color: var(--t-muted);
}

.t-profile-card {
    display: block;
    color: var(--t-text);
    text-decoration: none;
}

.t-profile-card:hover {
    color: var(--t-text);
}

.t-profile-photo,
.platform-profile-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--t-radius-lg);
    overflow: hidden;
    background: var(--t-surface);
}

.t-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--t-ease);
}

.t-profile-card:hover .t-profile-photo img {
    transform: scale(1.04);
}

.t-profile-photo .platform-profile-initials {
    width: 100%;
    height: 100%;
    font-size: 48px;
    font-weight: 300;
}

.t-profile-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.t-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    color: var(--t-text);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.t-chip-dark {
    background: rgba(23, 26, 32, 0.85);
    color: #fff;
}

.t-chip .t-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--t-green);
}

.t-profile-info {
    padding: 14px 2px 0;
}

.t-profile-name {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t-profile-meta {
    font-size: 13px;
    color: var(--t-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t-profile-cost {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--t-text-2);
}

.t-profile-cost.is-unlocked {
    color: var(--t-green);
}

/* ---------- Avatars ---------- */

.platform-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--t-surface);
    flex-shrink: 0;
}

.platform-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--t-muted);
    background-color: var(--t-surface);
    font-size: 1.25rem;
}

.platform-avatar-lg {
    width: 96px;
    height: 96px;
    font-size: 1.75rem;
}

.platform-avatar-sm {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
}

.platform-profile-initials {
    border-radius: 0;
}

.platform-online-dot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--t-green);
    border: 2px solid #fff;
}

/* ---------- Pages détail (profil / annonce) ---------- */

.t-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    gap: 56px;
    align-items: start;
}

.t-detail-media {
    position: sticky;
    top: calc(var(--t-header-h) + 24px);
    aspect-ratio: 4 / 5;
    max-height: calc(100vh - var(--t-header-h) - 64px);
    width: 100%;
    border-radius: var(--t-radius-lg);
    overflow: hidden;
    background: var(--t-surface);
}

.t-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t-detail-media .platform-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 0;
    font-size: 96px;
    font-weight: 300;
}

.t-detail-media.is-landscape {
    aspect-ratio: 4 / 3;
}

.t-detail-panel {
    padding-top: 8px;
}

.t-detail-title {
    font-size: clamp(30px, 3.4vw, 40px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    word-break: break-word;
}

.t-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.t-detail-badges .t-chip {
    background: var(--t-surface);
}

.t-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 32px 0;
    text-align: center;
}

.t-spec-value {
    display: block;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--t-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t-spec-value small {
    font-size: 14px;
    font-weight: 400;
}

.t-spec-label {
    display: block;
    font-size: 12px;
    color: var(--t-muted);
    margin-top: 2px;
}

.t-prose {
    font-size: 15px;
    color: var(--t-text-2);
    line-height: 1.65;
    white-space: pre-line;
    margin: 0;
}

.t-kv {
    padding: 20px 0;
    border-top: 1px solid var(--t-line);
}

.t-kv-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t-muted);
    margin-bottom: 8px;
}

.t-cta {
    padding: 24px 0 0;
    border-top: 1px solid var(--t-line);
}

.t-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--t-muted);
}

.t-price-row strong {
    font-size: 17px;
    font-weight: 500;
    color: var(--t-text);
}

.t-cta .t-btn + .t-btn,
.t-cta form + .t-btn,
.t-cta .t-btn + form {
    margin-top: 12px;
}

.t-secondary-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
}

.t-secondary-actions form {
    margin: 0;
}

.t-contact-reveal {
    text-align: center;
    padding: 24px;
    border-radius: var(--t-radius-lg);
    background: var(--t-surface);
    margin-bottom: 12px;
}

.t-contact-reveal .t-contact-number {
    display: block;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    margin: 4px 0 0;
}

.t-contact-reveal.is-masked .t-contact-number {
    color: var(--t-faint);
    letter-spacing: 0.08em;
}

.t-note {
    font-size: 13px;
    color: var(--t-muted);
    margin: 12px 0 0;
    text-align: center;
}

@media (max-width: 991.98px) {
    .t-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .t-detail-media {
        position: relative;
        top: 0;
        max-height: 70vh;
    }
}

/* ---------- Annonces ---------- */

.t-annonce-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.t-annonce-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--t-radius-lg);
    overflow: hidden;
    background: var(--t-surface);
}

.t-annonce-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--t-ease);
}

.t-annonce-card:hover .t-annonce-media img {
    transform: scale(1.04);
}

.t-annonce-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 300;
    color: var(--t-faint);
    background: linear-gradient(160deg, #f4f4f4 0%, #e9e9ea 100%);
}

.t-annonce-body {
    padding: 16px 2px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.t-annonce-category {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--t-muted);
}

.t-annonce-title {
    font-size: 18px;
    font-weight: 500;
    margin: 4px 0 2px;
    line-height: 1.3;
}

.t-annonce-title a {
    color: var(--t-text);
    text-decoration: none;
}

.t-annonce-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.t-annonce-card {
    position: relative;
}

.t-annonce-meta {
    font-size: 13px;
    color: var(--t-muted);
    margin-bottom: 10px;
}

.t-annonce-desc {
    font-size: 14px;
    color: var(--t-text-2);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.t-annonce-foot {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--t-muted);
}

.t-annonce-foot form {
    position: relative;
    z-index: 2;
    margin: 0 0 0 auto;
}

.t-tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: var(--t-surface);
    color: var(--t-text-2);
}

.t-tag-blue {
    background: var(--t-blue-soft);
    color: var(--t-blue);
}

.t-tag-green {
    background: var(--t-green-soft);
    color: var(--t-green);
}

/* ---------- Encadrés & alertes ---------- */

.alert {
    --bs-alert-border-color: transparent;
    border: 0;
    border-radius: var(--t-radius);
    padding: 14px 16px;
    font-size: 14px;
    color: var(--t-text);
    background: var(--t-surface);
}

.alert-success {
    background: var(--t-green-soft);
    color: #0b5d2e;
}

.alert-danger {
    background: var(--t-red-soft);
    color: #9b1023;
}

.alert-warning {
    background: var(--t-amber-soft);
    color: #6b4a00;
}

.alert-info {
    background: var(--t-blue-soft);
    color: #23408c;
}

.alert-light {
    background: var(--t-surface);
}

.alert-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.t-flash {
    max-width: 880px;
    margin: 0 auto 24px;
}

body.t-has-hero .t-flash {
    position: fixed;
    top: calc(var(--t-header-h) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1020;
    width: calc(100% - 32px);
    max-width: 560px;
}

.t-empty {
    text-align: center;
    padding: 64px 24px;
    border-radius: var(--t-radius-lg);
    background: var(--t-surface);
    color: var(--t-muted);
}

.t-empty strong {
    display: block;
    font-size: 17px;
    font-weight: 500;
    color: var(--t-text);
    margin-bottom: 4px;
}

.t-panel {
    border-radius: var(--t-radius-lg);
    background: var(--t-surface);
    padding: 24px;
}

.t-panel-outline {
    border-radius: var(--t-radius-lg);
    border: 1px solid var(--t-line);
    padding: 24px;
}

.badge {
    font-weight: 500;
    border-radius: 999px;
}

.bg-danger {
    background-color: var(--t-blue) !important;
}

/* ---------- Pagination ---------- */

.pagination {
    justify-content: center;
    gap: 12px;
    margin-top: 56px;
}

.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 24px;
    border: 0;
    border-radius: var(--t-radius) !important;
    background: var(--t-surface);
    color: var(--t-text-2);
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s var(--t-ease);
}

.pagination .page-item .page-link:hover {
    background: var(--t-surface-2);
    color: var(--t-text);
}

.pagination .page-item .page-link:focus {
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.25);
}

.pagination .page-item.disabled .page-link {
    background: transparent;
    color: var(--t-faint);
}

/* ---------- Compte ---------- */

.t-account {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.t-side-nav {
    position: sticky;
    top: calc(var(--t-header-h) + 32px);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.t-side-nav a,
.t-side-nav button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border-radius: var(--t-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--t-text-2);
    text-decoration: none;
    background: transparent;
    border: 0;
    transition: background-color 0.3s var(--t-ease);
}

.t-side-nav a:hover,
.t-side-nav button:hover {
    background: var(--t-surface);
    color: var(--t-text);
}

.t-side-nav form {
    margin: 0;
}

.t-side-nav .t-side-sep {
    height: 1px;
    background: var(--t-line);
    margin: 12px 0;
}

.t-account-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.t-account-head h1 {
    font-size: clamp(26px, 3vw, 34px);
    margin: 0;
}

.t-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.t-stat {
    padding: 20px;
    border-radius: var(--t-radius-lg);
    background: var(--t-surface);
}

.t-stat-label {
    font-size: 13px;
    color: var(--t-muted);
}

.t-stat-value {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

.t-stat-value small {
    font-size: 13px;
    font-weight: 400;
    color: var(--t-muted);
}

.t-stat-value.is-text {
    font-size: 18px;
    padding-top: 6px;
}

.t-row-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.t-row-form .t-field {
    flex: 1;
    margin: 0;
}

.t-split {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

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

.t-list-links li + li {
    border-top: 1px solid var(--t-line);
}

.t-list-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--t-text);
    text-decoration: none;
}

.t-list-links a::after {
    content: "›";
    font-size: 20px;
    line-height: 1;
    color: var(--t-faint);
    transition: transform 0.3s var(--t-ease);
}

.t-list-links a:hover::after {
    transform: translateX(3px);
    color: var(--t-text);
}

@media (max-width: 991.98px) {
    .t-account {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .t-side-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        border-bottom: 1px solid var(--t-line);
        padding-bottom: 8px;
    }

    .t-side-nav a,
    .t-side-nav button {
        white-space: nowrap;
        width: auto;
    }

    .t-side-nav .t-side-sep,
    .t-side-nav form {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .t-stats {
        grid-template-columns: 1fr 1fr;
    }

    .t-stats .t-stat:last-child {
        grid-column: span 2;
    }

    .t-row-form {
        flex-direction: column;
        align-items: stretch;
    }

    .t-specs .t-spec-value {
        font-size: 20px;
    }
}

/* ---------- Messages ---------- */

.t-search {
    position: relative;
    margin-bottom: 16px;
}

.t-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--t-faint);
    pointer-events: none;
}

.t-search .form-control {
    padding-left: 40px;
}

.list-group {
    --bs-list-group-border-color: var(--t-line);
    border-radius: 0;
}

.list-group-flush > .list-group-item {
    border-width: 0 0 1px;
}

.list-group-item {
    padding: 14px 8px;
    color: var(--t-text);
    background: transparent;
    font-size: 14px;
}

.list-group-item-action {
    border-radius: var(--t-radius);
    transition: background-color 0.25s var(--t-ease);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background: var(--t-surface);
    color: var(--t-text);
}

.list-group-item .fw-semibold {
    font-weight: 500 !important;
}

.t-chat {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--t-header-h) - 40px);
    height: calc(100svh - var(--t-header-h) - 40px);
    max-width: 880px;
    margin: -16px auto 0;
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius-lg);
    overflow: hidden;
    background: #fff;
}

.t-chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--t-line);
}

.t-chat-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--t-radius);
    color: var(--t-text);
    text-decoration: none;
    font-size: 22px;
    line-height: 1;
}

.t-chat-back:hover {
    background: var(--t-surface);
    color: var(--t-text);
}

.t-chat-name {
    display: block;
    font-weight: 500;
    font-size: 15px;
    color: var(--t-text);
    text-decoration: none;
}

.t-chat-name:hover {
    color: var(--t-text);
    text-decoration: underline;
}

.t-chat-actions {
    display: flex;
    gap: 4px;
}

.t-chat-actions form {
    margin: 0;
}

.platform-chat-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 16px;
    background: #fff;
}

.platform-chat-row {
    display: flex;
    margin-bottom: 6px;
}

.platform-chat-row.mine {
    justify-content: flex-end;
}

.platform-chat-row.theirs {
    justify-content: flex-start;
}

.platform-chat-bubble {
    max-width: min(75%, 520px);
    padding: 9px 14px;
    border-radius: 18px;
    background-color: var(--t-surface);
    color: var(--t-text);
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.platform-chat-row.theirs .platform-chat-bubble {
    border-bottom-left-radius: 6px;
}

.platform-chat-row.mine .platform-chat-bubble {
    background-color: var(--t-blue);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.platform-chat-time {
    display: block;
    font-size: 11px;
    opacity: 0.6;
    margin-top: 2px;
    text-align: right;
}

.platform-chat-image {
    display: block;
    max-width: 100%;
    border-radius: 12px;
}

.t-chat-foot {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--t-line);
}

.t-composer {
    display: flex;
    gap: 8px;
    align-items: center;
}

.t-composer .form-control {
    border-radius: 999px;
    padding-left: 18px;
    min-height: 44px;
}

.t-composer .t-btn {
    border-radius: 999px;
    min-height: 44px;
}

.t-chat-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    min-height: 24px;
}

.t-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 0 12px;
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid var(--t-line);
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: var(--t-text-2);
    transition: background-color 0.3s var(--t-ease), border-color 0.3s var(--t-ease);
}

.t-ai-btn:hover {
    background: var(--t-blue-soft);
    border-color: var(--t-blue-soft);
    color: var(--t-blue);
}

.t-ai-btn:disabled {
    opacity: 0.5;
}

@media (max-width: 767.98px) {
    body.t-chat-page .platform-main {
        padding-bottom: 0;
    }

    body.t-chat-page .platform-main > .container {
        padding: 0;
    }

    body.t-chat-page .t-flash {
        margin: 0 16px 8px;
    }

    body.t-chat-page .platform-footer {
        display: none;
    }

    .t-chat {
        margin-top: -40px;
        height: calc(100vh - var(--t-header-h));
        height: calc(100svh - var(--t-header-h));
        border: 0;
        border-radius: 0;
    }

    .t-chat-actions .t-btn {
        padding: 0 10px;
    }
}

/* ---------- Paiement ---------- */

.t-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.t-plan {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.t-plan input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.t-plan-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 20px;
    border-radius: var(--t-radius-lg);
    border: 1px solid var(--t-line-strong);
    background: #fff;
    transition: border-color 0.3s var(--t-ease), box-shadow 0.3s var(--t-ease);
}

.t-plan:hover .t-plan-box {
    border-color: var(--t-faint);
}

.t-plan input:checked + .t-plan-box {
    border-color: var(--t-blue);
    box-shadow: inset 0 0 0 1px var(--t-blue);
}

.t-plan input:focus-visible + .t-plan-box {
    outline: 2px solid var(--t-blue);
    outline-offset: 2px;
}

.t-plan-title {
    font-size: 17px;
    font-weight: 500;
    color: var(--t-text);
}

.t-plan-price {
    font-size: 14px;
    color: var(--t-muted);
    margin-top: 2px;
}

.t-plan-wide .t-plan-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.t-plan-desc {
    font-size: 13px;
    color: var(--t-muted);
    margin-top: 2px;
}

.t-plan-flag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--t-blue);
    margin-bottom: 4px;
}

.t-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 40px;
}

.t-steps-title {
    font-size: 17px;
    font-weight: 500;
    margin: 32px 0 12px;
}

.t-steps-title:first-child {
    margin-top: 0;
}

.t-intent {
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius-lg);
    padding: 24px;
    margin-bottom: 40px;
}

.t-intent-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.t-intent-head h2 {
    font-size: 22px;
    margin: 0;
}

.t-intent-amount {
    font-size: 17px;
    font-weight: 500;
}

.t-intent code,
.t-pending code {
    color: var(--t-text-2);
    background: var(--t-surface);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.t-pending {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}

.t-pending li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--t-line);
    font-size: 14px;
}

.t-pending li:first-child {
    border-top: 1px solid var(--t-line);
}

.spinner-border-sm {
    width: 0.9rem;
    height: 0.9rem;
    border-width: 0.15em;
    color: var(--t-blue);
}

/* ---------- Aide ---------- */

.accordion {
    --bs-accordion-border-color: var(--t-line);
    --bs-accordion-border-radius: 0;
    --bs-accordion-inner-border-radius: 0;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-bg: transparent;
    --bs-accordion-active-color: var(--t-text);
    --bs-accordion-btn-padding-x: 0;
    --bs-accordion-btn-padding-y: 20px;
    --bs-accordion-body-padding-x: 0;
    --bs-accordion-body-padding-y: 0;
    border-top: 1px solid var(--t-line);
}

.accordion-item {
    border-width: 0 0 1px;
    background: transparent;
}

.accordion-button {
    font-size: 16px;
    font-weight: 500;
    color: var(--t-text);
    background: transparent;
}

.accordion-button:not(.collapsed) {
    box-shadow: none;
}

.accordion-body {
    padding-bottom: 20px !important;
    font-size: 14px;
    line-height: 1.65;
}

.platform-terms {
    font-size: 15px;
    line-height: 1.7;
    color: var(--t-text-2);
}

.platform-terms h1,
.platform-terms h2,
.platform-terms h3 {
    font-size: 18px;
    margin: 32px 0 8px;
}

/* ---------- Pied de page ---------- */

.platform-footer {
    padding: 32px 24px 40px;
    font-size: 12px;
    color: var(--t-muted);
    text-align: center;
}

.platform-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 24px;
}

.platform-footer a {
    color: var(--t-muted);
    text-decoration: none;
}

.platform-footer a:hover {
    color: var(--t-text);
}

/* ---------- Connexion ---------- */

.t-auth-title {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.t-auth-text {
    color: var(--t-muted);
    margin: 0 0 32px;
}

.t-auth .t-btn + .t-btn {
    margin-top: 12px;
}

.t-provider-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.t-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
    font-size: 12px;
    color: var(--t-faint);
}

.t-divider::before,
.t-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--t-line);
}

/* ---------- Apparition au défilement ---------- */

.t-js .t-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s var(--t-ease), transform 0.8s var(--t-ease);
}

.t-js .t-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .t-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Ajustements globaux ---------- */

body {
    overflow-x: clip;
}

[id] {
    scroll-margin-top: calc(var(--t-header-h) + 24px);
}

.t-btn-white {
    background: #fff;
    border-color: #fff;
    color: var(--t-text-2);
}

.t-btn-white:hover {
    background: var(--t-surface-2);
    border-color: var(--t-surface-2);
    color: var(--t-text);
}


/* =====================================================================
   Thème « appli de rencontre » : chaleureux, arrondi, photo d'abord
   ===================================================================== */

body {
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(255, 138, 91, 0.16), transparent 60%),
        radial-gradient(50rem 30rem at -10% 10%, rgba(255, 77, 109, 0.12), transparent 60%),
        var(--t-bg);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, .t-title, .t-detail-title, .t-hero-title {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.t-title {
    font-size: clamp(30px, 4.4vw, 46px);
}

.t-eyebrow {
    color: var(--t-blue);
    font-weight: 700;
    letter-spacing: 0.14em;
}

/* En-tête */
.t-header {
    background: rgba(255, 248, 246, 0.85);
    border-bottom: 1px solid rgba(240, 228, 228, 0.7);
}

.t-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.01em;
    text-transform: none;
}

.t-brand::before {
    content: "\2665";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--t-grad);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 6px 14px -4px rgba(255, 77, 109, 0.6);
}

.t-nav-link,
.t-header-action {
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 600;
}

.t-nav-link:hover,
.t-header-action:hover {
    background: var(--t-blue-soft);
    color: var(--t-blue);
}

.t-nav-link.is-active {
    background: var(--t-plum);
    color: #fff;
}

.t-header-actions .t-header-action:last-child:not(.t-menu-toggle),
.t-header-actions a.t-header-action[href*="connexion"] {
    background: var(--t-grad);
    color: #fff;
}

body.t-has-hero .t-header:not(.is-scrolled) .t-nav-link.is-active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--t-plum);
}

body.t-has-hero .t-header:not(.is-scrolled) .t-brand {
    color: #fff;
}

/* Boutons */
.t-btn,
.btn {
    border: 0;
    min-height: 46px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0;
}

.t-btn-sm,
.btn-sm {
    min-height: 34px;
    padding: 0 16px;
}

.t-btn-lg,
.btn-lg {
    min-height: 54px;
    font-size: 16px;
}

.t-btn-primary,
.btn-primary {
    background: var(--t-grad);
    color: #fff;
    box-shadow: 0 12px 24px -10px rgba(255, 77, 109, 0.7);
    transition: transform 0.25s var(--t-ease), box-shadow 0.25s var(--t-ease), filter 0.25s var(--t-ease);
}

.t-btn-primary:hover,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background: var(--t-grad);
    filter: brightness(1.05) saturate(1.05);
    transform: translateY(-1px);
    box-shadow: 0 16px 28px -10px rgba(255, 77, 109, 0.85);
}

.t-btn-secondary,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark,
.btn-light,
.t-btn-white {
    background: #fff;
    color: var(--t-text);
    box-shadow: inset 0 0 0 1.5px var(--t-line-strong);
}

.t-btn-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-dark:hover,
.btn-light:hover,
.t-btn-white:hover {
    background: var(--t-blue-soft);
    color: var(--t-blue);
    box-shadow: inset 0 0 0 1.5px var(--t-blue);
}

.t-btn-dark {
    background: var(--t-plum);
    color: #fff;
}

.t-btn-dark:hover {
    background: #1c1129;
    color: #fff;
}

.t-btn-glass {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.t-btn-glass:hover {
    background: #fff;
    color: var(--t-plum);
}

.t-btn-danger,
.btn-outline-danger {
    background: #fff;
    color: var(--t-red);
    box-shadow: inset 0 0 0 1.5px #f4c6cd;
}

.t-btn-danger:hover,
.btn-outline-danger:hover {
    background: var(--t-red);
    color: #fff;
    box-shadow: none;
}

.t-btn-success,
.btn-success {
    background: var(--t-plum);
}

/* Champs */
.form-control,
.form-select {
    min-height: 46px;
    background-color: #fff;
    border: 1.5px solid var(--t-line-strong);
    border-radius: var(--t-radius);
}

.form-control:hover,
.form-select:hover {
    border-color: #d3bcc2;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--t-blue);
    box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.14);
}

.form-control[type="file"]::file-selector-button {
    height: 46px;
    background: var(--t-blue-soft);
    color: var(--t-blue);
    font-weight: 700;
}

.form-check-input:checked {
    background-color: var(--t-blue);
    border-color: var(--t-blue);
}

.form-switch .form-check-input:checked {
    background-color: var(--t-blue);
}

.t-segmented {
    background: #fff;
    border-radius: 999px;
    padding: 5px;
    box-shadow: inset 0 0 0 1.5px var(--t-line-strong);
}

.t-segmented label {
    min-height: 36px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 600;
}

.t-segmented input:checked + label {
    background: var(--t-grad);
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(255, 77, 109, 0.8);
}

/* Filtres en carte */
.t-filters {
    background: #fff;
    border: 0;
    border-radius: var(--t-radius-lg);
    padding: 20px 24px;
    box-shadow: var(--t-shadow);
}

/* Héros */
.t-hero {
    background: var(--t-plum);
    border-radius: 0 0 40px 40px;
    margin-bottom: 72px;
}

.t-hero::after {
    background:
        linear-gradient(180deg, rgba(43, 27, 61, 0.8) 0%, rgba(43, 27, 61, 0.35) 30%, rgba(255, 77, 109, 0.28) 62%, rgba(43, 27, 61, 0.92) 100%);
}

.t-hero-media img {
    filter: saturate(1.15) contrast(1.05);
}

.t-hero-title {
    font-size: clamp(42px, 7.5vw, 76px);
    line-height: 1;
    margin-bottom: 16px;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.t-hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, #ff9fb3, #ffc29a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.t-hero-sub {
    font-size: clamp(16px, 1.8vw, 20px);
    max-width: 560px;
    margin: 0 auto;
}

.t-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.t-hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.t-hero-stats i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ddc97;
    box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.25);
}

/* Cartes de profils : nom sur la photo */
.t-profile-card {
    position: relative;
    border-radius: var(--t-radius-lg);
    box-shadow: var(--t-shadow);
    transition: transform 0.4s var(--t-ease), box-shadow 0.4s var(--t-ease);
}

.t-profile-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--t-shadow-lg);
}

.t-profile-photo,
.platform-profile-photo {
    aspect-ratio: 3 / 4;
    border-radius: var(--t-radius-lg);
    background: linear-gradient(160deg, #ffe0e6, #ffd2bd);
}

.t-profile-photo::after {
    content: "";
    position: absolute;
    inset: 40% 0 0 0;
    background: linear-gradient(180deg, transparent, rgba(30, 12, 40, 0.88));
    pointer-events: none;
}

.t-profile-photo .platform-profile-initials {
    background: transparent;
    color: #fff;
    font-weight: 800;
    font-size: 64px;
    background-image: var(--t-grad);
}

.t-profile-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 18px;
    color: #fff;
}

.t-profile-overlay .t-profile-name {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
}

.t-profile-overlay .t-profile-age {
    font-weight: 500;
    opacity: 0.9;
}

.t-profile-overlay .t-profile-meta {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.t-profile-overlay .t-profile-cost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.t-profile-overlay .t-profile-cost.is-unlocked {
    background: #3ddc97;
    color: #0b3d27;
}

.t-profile-tags {
    z-index: 3;
}

.t-chip {
    height: 28px;
    padding: 0 12px;
    font-weight: 700;
}

.t-chip-dark {
    background: var(--t-grad);
    color: #fff;
}

.t-chip .t-dot {
    background: #1fcf7e;
    box-shadow: 0 0 0 3px rgba(31, 207, 126, 0.25);
}

/* Fiche détail */
.t-detail-media {
    border-radius: 32px;
    box-shadow: var(--t-shadow-lg);
    background: linear-gradient(160deg, #ffe0e6, #ffd2bd);
}

.t-detail-panel {
    background: #fff;
    border-radius: 32px;
    padding: 36px;
    box-shadow: var(--t-shadow);
}

.t-detail-badges .t-chip {
    background: var(--t-blue-soft);
    color: var(--t-blue);
}

.t-specs {
    background: var(--t-bg);
    border-radius: var(--t-radius-lg);
    padding: 18px 8px;
}

.t-spec-value {
    font-weight: 800;
}

.t-kv {
    border-top: 1px solid var(--t-line);
}

.t-kv-label {
    color: var(--t-blue);
    font-weight: 700;
}

.t-cta {
    border-top: 1px solid var(--t-line);
}

.t-contact-reveal {
    background: var(--t-blue-soft);
}

/* Annonces */
.t-annonce-card {
    background: #fff;
    border-radius: var(--t-radius-lg);
    box-shadow: var(--t-shadow);
    padding: 12px 12px 20px;
    transition: transform 0.4s var(--t-ease), box-shadow 0.4s var(--t-ease);
}

.t-annonce-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--t-shadow-lg);
}

.t-annonce-media {
    border-radius: 18px;
}

.t-annonce-body {
    padding: 18px 8px 0;
}

.t-annonce-category {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--t-blue-soft);
    color: var(--t-blue);
    font-weight: 700;
}

.t-annonce-title {
    font-weight: 800;
    font-size: 20px;
    margin-top: 10px;
}

.t-annonce-placeholder {
    background: var(--t-grad);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
}

.t-tag {
    background: var(--t-surface);
    color: var(--t-text-2);
    font-weight: 600;
}

.t-tag-green {
    background: #dff7ec;
    color: #0e7a47;
}

.t-tag-blue {
    background: var(--t-blue-soft);
    color: var(--t-blue);
}

/* Blocs */
.t-stat,
.t-panel {
    background: #fff;
    box-shadow: var(--t-shadow);
    border-radius: var(--t-radius-lg);
}

.t-stat-value {
    font-weight: 800;
    background: var(--t-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.t-stat-value.is-text {
    background: none;
    -webkit-text-fill-color: var(--t-text);
    color: var(--t-text);
}

.t-stat-value small {
    -webkit-text-fill-color: var(--t-muted);
}

.t-intent,
.t-panel-outline {
    background: #fff;
    border: 0;
    box-shadow: var(--t-shadow);
}

.t-empty {
    background: #fff;
    box-shadow: var(--t-shadow);
}

.t-section {
    border-top: 1px solid var(--t-line);
}

.t-side-nav a:hover,
.t-side-nav button:hover {
    background: var(--t-blue-soft);
    color: var(--t-blue);
}

.t-plan-box {
    border: 1.5px solid var(--t-line-strong);
    background: #fff;
    border-radius: var(--t-radius-lg);
}

.t-plan input:checked + .t-plan-box {
    border-color: var(--t-blue);
    box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.14);
    background: var(--t-blue-soft);
}

.t-plan-flag {
    color: var(--t-blue);
    font-weight: 700;
}

.alert {
    border-radius: var(--t-radius);
}

.pagination .page-item .page-link {
    border-radius: 999px !important;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px var(--t-line-strong);
    font-weight: 700;
}

.pagination .page-item .page-link:hover {
    background: var(--t-blue-soft);
    color: var(--t-blue);
}

.t-drawer {
    border-radius: 28px 0 0 28px;
    background: var(--t-bg);
}

.t-drawer a:hover,
.t-drawer a.is-active {
    background: var(--t-blue-soft);
    color: var(--t-blue);
}

/* Messages */
.t-chat {
    border: 0;
    border-radius: 28px;
    box-shadow: var(--t-shadow-lg);
}

.t-chat-head {
    background: #fff;
}

.platform-chat-body {
    background: var(--t-bg);
}

.platform-chat-bubble {
    background: #fff;
    box-shadow: 0 2px 8px -3px rgba(120, 40, 70, 0.18);
    border-radius: 20px;
}

.platform-chat-row.mine .platform-chat-bubble {
    background: var(--t-grad);
    color: #fff;
    box-shadow: 0 8px 16px -8px rgba(255, 77, 109, 0.8);
}

.t-chat-foot {
    background: #fff;
}

.t-ai-btn {
    background: var(--t-blue-soft);
    border-color: transparent;
    color: var(--t-blue);
    font-weight: 700;
}

.list-group-item-action {
    border-radius: var(--t-radius);
    margin-bottom: 6px;
    background: #fff;
    box-shadow: var(--t-shadow);
    border: 0 !important;
    padding: 14px 16px;
}

.list-group-item-action:hover {
    background: #fff;
    transform: translateX(3px);
}

.t-search .form-control {
    border-radius: 999px;
    padding-left: 44px;
}

.platform-avatar {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(255, 77, 109, 0.35);
}

.platform-avatar-initials {
    background: var(--t-grad);
    color: #fff;
    font-weight: 800;
}

.platform-footer {
    padding-top: 56px;
}

.accordion-item {
    background: #fff;
    border-radius: var(--t-radius) !important;
    border: 0;
    margin-bottom: 10px;
    box-shadow: var(--t-shadow);
    padding: 0 20px;
}

.accordion {
    border-top: 0;
    --bs-accordion-btn-padding-x: 0;
}

.t-auth {
    background: #fff;
    border-radius: 32px;
    padding: 40px 32px;
    box-shadow: var(--t-shadow-lg);
    margin-top: 24px;
}

.t-auth-title {
    font-weight: 800;
}
