/* =============================================================================
   assets/css/main.css — LeTopImmo · Club deals immobilier professionnel
   Design tokens
   - Couleurs : bleu marine profond + bleu accent + blanc uniquement
   - Display  : Source Serif 4 (titres, autorité "institution financière")
   - Corps    : Inter (lisibilité, UI)
   - Data     : IBM Plex Mono (chiffres, métriques — esprit "term sheet")
   ============================================================================= */

:root {
    /* — Bleus, seule famille de couleur autorisée avec le blanc — */
    --navy-950: #071328;
    --navy-900: #0A1F3D;
    --navy-800: #123262;
    --navy-700: #1B4488;
    --blue-600: #1D5FCB;
    --blue-500: #2E72E0;
    --blue-tint-100: #EAF1FC;
    --blue-tint-200: #DCE9FA;
    --blue-line: #C9D9F0;
    --white: #FFFFFF;
    --ink: #0B1526;
    --ink-soft: #3C4C66;

    --font-display: "Source Serif 4", Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

    --max-width: 1180px;
    --radius: 3px;
    --header-height: 76px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--navy-900);
    line-height: 1.2;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-600);
    margin-bottom: 14px;
}

.lede {
    color: var(--ink-soft);
    max-width: 620px;
    font-size: 1.06rem;
}

.section-head {
    margin-bottom: 48px;
}

.section-head.center {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 96px 0;
}

.section-tight {
    padding: 64px 0;
}

.bg-tint {
    background: var(--blue-tint-100);
}

.bg-navy {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.92);
}

.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 {
    color: var(--white);
}

.rule {
    border: none;
    border-top: 1px solid var(--blue-line);
}

/* --- Header / navigation --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--blue-line);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.logo span {
    color: var(--blue-600);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy-900);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-nav a {
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--ink-soft);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
    color: var(--navy-900);
}

.main-nav a.active {
    color: var(--navy-900);
    border-bottom-color: var(--blue-600);
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--navy-900);
    color: var(--white) !important;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.btn-login-icon {
    display: none;
    width: 18px;
    height: 18px;
}

.btn-login:hover {
    background: var(--blue-600);
}

/* --- Buttons --- */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--blue-600);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-500);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.bg-tint .btn-secondary,
body .btn-secondary.on-light {
    color: var(--navy-900);
    border-color: var(--blue-line);
}

.btn-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* --- Hero --- */

.hero {
    padding: 120px 0 96px;
    background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 22px;
}

.hero .lede {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.15rem;
    max-width: 580px;
}

.hero-note {
    margin-top: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.03em;
}

.hero-note .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-500);
    flex-shrink: 0;
}

/* --- Club deal hero (photo + text side by side) --- */

.clubdeal-hero {
    max-width: 900px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.clubdeal-hero-photo {
    flex: 0 0 230px;
    width: 230px;
    height: 300px;
    margin-top: 8px;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.clubdeal-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 75%;
    display: block;
}

.clubdeal-hero-text {
    flex: 1 1 320px;
    min-width: 280px;
}

/* --- Stat row --- */

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--blue-line);
    border-bottom: 1px solid var(--blue-line);
}

.stat-item {
    padding: 36px 28px;
    border-left: 1px solid var(--blue-line);
    text-align: left;
}

.stat-item:first-child {
    border-left: none;
}

.stat-item strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 600;
    color: var(--navy-900);
    letter-spacing: -0.02em;
}

.stat-item span {
    display: block;
    margin-top: 6px;
    font-size: 0.86rem;
    color: var(--ink-soft);
}

/* --- Deal / term sheet card (élément signature) --- */

.term-sheet {
    background: var(--white);
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(10, 31, 61, 0.06);
}

.term-sheet-head {
    background: var(--navy-900);
    color: var(--white);
    padding: 22px 28px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.term-sheet-head .ts-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.term-sheet-head h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-top: 4px;
}

.term-sheet-head .ts-status {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
}

.term-sheet-rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ts-row {
    padding: 20px 28px;
    border-top: 1px solid var(--blue-line);
    border-left: 1px solid var(--blue-line);
}

.ts-row:nth-child(odd) {
    border-left: none;
}

.ts-row .ts-key {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    display: block;
    margin-bottom: 6px;
}

.ts-row .ts-value {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy-900);
}

/* --- Process steps --- */

.process-list {
    display: flex;
    flex-direction: column;
}

.process-step {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid var(--blue-line);
}

.process-step:last-child {
    border-bottom: 1px solid var(--blue-line);
}

.process-step .step-num {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    color: var(--blue-600);
    font-weight: 600;
}

.process-step h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.process-step p {
    color: var(--ink-soft);
    max-width: 560px;
}

/* --- Grids: clubdeal / deals / team / values --- */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* --- Ligne "principe" : vignette + carte texte (section grands principes) --- */

.principle-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
}

.principle-row:last-child {
    margin-bottom: 0;
}

.principle-row img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.card {
    background: var(--white);
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    padding: 32px 28px;
}

.card h3 {
    font-size: 1.1rem;
    margin: 6px 0 10px;
}

.card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.card .card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--blue-tint-100);
    border: 1px solid var(--blue-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--blue-600);
    font-weight: 600;
    font-size: 0.85rem;
}

/* --- Timeline (histoire, chronologique) --- */

.timeline {
    border-left: 2px solid var(--blue-line);
    margin-left: 6px;
}

.timeline-item {
    position: relative;
    padding: 4px 0 36px 32px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--blue-600);
}

.timeline-item .t-year {
    font-family: var(--font-mono);
    color: var(--blue-600);
    font-weight: 600;
    font-size: 0.95rem;
}

.timeline-item h3 {
    font-size: 1.05rem;
    margin: 6px 0 6px;
}

.timeline-item p {
    color: var(--ink-soft);
    max-width: 520px;
}

/* --- Team --- */

.team-card {
    text-align: left;
}

.team-photo {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(155deg, var(--navy-800), var(--navy-950));
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.team-photo .team-photo-tag {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    font-family: var(--font-mono);
    color: rgba(255,255,255,0.85);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(0deg, rgba(7,19,40,0.85) 0%, rgba(7,19,40,0) 100%);
    padding-top: 40px;
}

.team-card h3 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.team-card .role {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--blue-600);
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    display: block;
}

.team-card p {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

/* --- CTA banner --- */

.cta-banner {
    background: var(--navy-900);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 14px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin: 0 auto;
}

.cta-banner .btn-row {
    justify-content: center;
}

/* --- Contact page --- */

.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: start;
}

.contact-info-block {
    padding: 24px 0;
    border-top: 1px solid var(--blue-line);
}

.contact-info-block:first-child {
    border-top: none;
}

.contact-info-block .label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-600);
    display: block;
    margin-bottom: 8px;
}

.contact-info-block a,
.contact-info-block p {
    color: var(--ink-soft);
}

form.investor-form {
    background: var(--white);
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field {
    margin-bottom: 22px;
}

.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 2px solid var(--blue-600);
    outline-offset: 1px;
    border-color: var(--blue-600);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--ink-soft);
    opacity: 0.75;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.field-check input {
    margin-top: 3px;
    width: auto;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: var(--navy-900);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.form-submit:hover {
    background: var(--blue-600);
}

/* --- Login page --- */

.login-shell {
    min-height: calc(100vh - var(--header-height) - 260px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    background: var(--blue-tint-100);
}

.login-shell-compact {
    min-height: auto;
    padding: 32px 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    padding: 44px 40px;
}

.login-card.login-card-wide {
    max-width: 620px;
    padding: 24px 8px 32px;
    border: none;
    background: transparent;
}

.login-card.login-card-wide .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.login-card-wide .form-row-captcha {
    align-items: center;
    --captcha-field-height: 51px;
}

.login-card-wide .form-row-captcha .field-submit {
    padding-top: 0;
    margin-bottom: 22px;
    display: flex;
}

.login-card-wide .form-row-captcha input {
    height: var(--captcha-field-height);
}

.login-card-wide .form-row-captcha .form-submit-icon {
    width: 64px;
    height: 64px;
    padding: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--navy-900);
    border: 1px solid var(--blue-line);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(10, 31, 61, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.login-card-wide .form-row-captcha .form-submit-icon:hover {
    background: var(--blue-tint-100);
    border-color: var(--blue-600);
    color: var(--blue-600);
}

.login-card-wide .form-row-captcha .form-submit-icon svg {
    width: 28px;
    height: 28px;
}

.login-card-wide .lede {
    margin-bottom: 18px;
}

.login-card-wide .field {
    margin-bottom: 16px;
}

.login-card .eyebrow {
    margin-bottom: 8px;
}

.login-card h2 {
    margin-bottom: 8px;
}

.login-card .lede {
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.login-card .form-submit {
    margin-top: 8px;
}

.form-row-captcha {
    align-items: end;
}

.field-submit {
    padding-top: 31px; /* aligne le bouton avec le champ, en compensant la hauteur du label */
    margin-bottom: 16px;
}

.field-submit .form-submit {
    width: 100%;
    margin-top: 0;
}

.login-foot {
    margin-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.login-card-wide .login-foot {
    margin-top: 12px;
}

.login-foot-inline {
    margin-top: 12px !important;
    text-align: center;
}

.login-foot a {
    color: var(--blue-600);
    font-weight: 600;
}

.form-alert {
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.form-alert ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.form-alert-error {
    background: #FCEAEA;
    border: 1px solid #E3B4B4;
    color: #8A2C2C;
}

.form-alert-success {
    background: var(--blue-tint-100);
    border: 1px solid var(--blue-line);
    color: var(--navy-900);
}

.field-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-top: 6px;
}

/* --- Footer --- */

.site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 32px;
}

.site-footer .logo {
    color: var(--white);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 28px;
}

.footer-brand p {
    margin-top: 14px;
    max-width: 320px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-disclaimer {
    font-size: 0.78rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.4);
    max-width: 820px;
    margin-bottom: 20px;
}

.copyright {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

/* --- Deal flow carousel --- */

.deal-flow {
    padding-top: 67px; /* -30% par rapport aux 96px par défaut de la balise section */
}

.deal-flow-head {
    margin-bottom: 0;
}

.carousel-outer {
    position: relative;
    margin-top: 40px;
}

.carousel-btn {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--blue-line);
    background: var(--white);
    color: var(--navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(10, 31, 61, 0.14);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.carousel-btn-prev {
    left: -4px;
}

.carousel-btn-next {
    right: -4px;
}

.carousel-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.carousel-btn:hover {
    background: var(--navy-900);
    color: var(--white);
    border-color: var(--navy-900);
}

.carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 32px 12px;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.deal-card {
    flex: 0 0 296px;
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(10, 31, 61, 0.06);
}

.deal-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--blue-tint-100);
}

.deal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-info {
    padding: 20px 22px 22px;
}

.deal-type {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-600);
    margin-bottom: 8px;
}

.deal-info h3 {
    font-size: 1.02rem;
    margin-bottom: 16px;
}

.deal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--blue-line);
}

.deal-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-soft);
    padding: 4px 10px;
    border: 1px solid var(--blue-line);
    border-radius: 20px;
    white-space: nowrap;
}

.deal-yield {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy-900);
    text-align: right;
    line-height: 1.25;
}

.deal-yield small {
    display: block;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* --- Hero slide (intégré au carrousel, largeur de 2 cartes) --- */

.hero-slide {
    flex: 0 0 calc(296px * 2 + 24px * 1);
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
    display: flex;
    align-items: center;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
    pointer-events: none;
}

.hero-slide-inner {
    position: relative;
    padding: 40px 44px;
    max-width: 520px;
}

.hero-slide .eyebrow {
    color: #8FB4EE;
}

.hero-slide h2 {
    font-size: 1.7rem;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.25;
}

.hero-slide p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    max-width: 520px;
}

.hero-slide .btn-row {
    margin-top: 24px;
    gap: 12px;
}

.hero-slide .btn-primary,
.hero-slide .btn-secondary {
    padding: 12px 22px;
    font-size: 0.88rem;
}

.hero-slide .hero-note {
    margin-top: 24px;
    font-size: 0.76rem;
}

/* --- Responsive --- */

@media (max-width: 860px) {
    .header-right {
        gap: 10px;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background: var(--white);
        border-bottom: 1px solid var(--blue-line);
        box-shadow: 0 12px 20px -12px rgba(7, 19, 40, 0.15);
        transition: max-height 0.3s ease;
    }

    .main-nav.is-open {
        max-height: 400px;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 4px 24px 12px;
    }

    .main-nav ul li {
        border-bottom: 1px solid var(--blue-line);
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 14px 0;
        border-bottom: none;
    }

    .main-nav a.active {
        border-bottom: none;
    }

    .btn-login {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .btn-login-icon {
        display: block;
    }

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

    .hero h1 {
        font-size: 2.2rem;
    }

    .clubdeal-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
        max-width: 100%;
    }

    .clubdeal-hero-photo {
        margin-top: 0;
    }

    .clubdeal-hero-photo img {
        object-position: center 15%;
    }

    .clubdeal-hero-text {
        width: 100%;
        min-width: 0;
    }

    .clubdeal-hero-text .lede {
        max-width: 100%;
    }

    .stat-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2n+1) {
        border-left: none;
    }

    .stat-item:nth-child(n+3) {
        border-top: 1px solid var(--blue-line);
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .term-sheet-rows {
        grid-template-columns: 1fr;
    }

    .ts-row:nth-child(odd) {
        border-left: 1px solid var(--blue-line);
    }

    .process-step {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-layout img {
        max-width: 220px;
        margin: 0 auto 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .field-submit {
        padding-top: 0;
    }

    .field textarea,
    .contact-send-btn {
        width: 100% !important;
    }

    .field .contact-message-row {
        flex-direction: column;
        align-items: stretch !important;
    }

    .contact-send-btn {
        height: 48px !important;
        margin-top: 12px;
    }

    .principle-row {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .principle-row img {
        max-width: 200px;
        margin: 0 auto;
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }

    .deal-flow-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .deal-card {
        flex-basis: 78vw;
    }

    .hero-slide {
        flex-basis: 92vw;
    }

    .hero-slide-inner {
        padding: 32px 26px;
    }

    .hero-slide h2 {
        font-size: 1.4rem;
    }

    .deal-flow {
        padding-top: 34px; /* -50% par rapport aux 67px desktop */
    }

    .carousel-outer {
        margin-top: 16px; /* -50% par rapport aux 32px précédents */
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
    }

    .carousel-btn-prev {
        left: 2px;
    }

    .carousel-btn-next {
        right: 2px;
    }
}

/* =============================================================================
   Menu utilisateur et gestion des sessions
   ============================================================================= */

.user-menu {
    position: relative;
}

.btn-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-user:hover {
    background: var(--blue-tint-100);
    border-color: var(--blue-500);
}

.btn-user-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

.btn-user-chevron {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-user[aria-expanded="true"] .btn-user-chevron {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--white);
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(7, 19, 40, 0.08);
    min-width: 220px;
    z-index: 1000;
    animation: slideDown 0.2s ease;
}

.user-menu-dropdown.is-open {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu-warning {
    padding: 12px 16px;
    background: var(--blue-tint-100);
    border-bottom: 1px solid var(--blue-line);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--blue-600);
    text-align: center;
}

.user-menu-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.user-menu-dropdown li {
    margin: 0;
    padding: 0;
}

.user-menu-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.user-menu-dropdown a:hover {
    background: var(--blue-tint-100);
}

.user-menu-divider {
    height: 1px;
    background: var(--blue-line);
    margin: 4px 0;
}

.user-menu-logout {
    color: var(--blue-600);
    font-weight: 500;
}

.user-menu-logout:hover {
    background: var(--blue-tint-200) !important;
}

/* Menu Admin */
.admin-menu {
    position: relative;
}

.btn-admin {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--navy-900);
    border: 1px solid var(--navy-900);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-admin:hover {
    background: var(--navy-800);
    border-color: var(--navy-800);
}

.btn-admin-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

.btn-admin-chevron {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-admin[aria-expanded="true"] .btn-admin-chevron {
    transform: rotate(180deg);
}

.admin-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--white);
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(7, 19, 40, 0.08);
    min-width: 220px;
    z-index: 1000;
    animation: slideDown 0.2s ease;
}

.admin-menu-dropdown.is-open {
    display: block;
}

.admin-menu-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.admin-menu-dropdown li {
    margin: 0;
    padding: 0;
}

.admin-menu-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.admin-menu-dropdown a:hover {
    background: var(--blue-tint-100);
}

/* Tableau d'administration (liste des utilisateurs, etc.) */
.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--blue-line);
    white-space: nowrap;
}

.admin-table th {
    background: var(--blue-tint-100);
    color: var(--navy-900);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: var(--blue-tint-100);
}

.admin-table td.admin-table-empty {
    text-align: center;
    color: var(--ink-soft);
    white-space: normal;
}

/* Ligne de caractéristiques sous chaque annonce (dashboard > Mes listes d'attente) */
.admin-table tr.waitlist-row td {
    border-bottom: none;
}

.admin-table tr.waitlist-summary-row td {
    padding-top: 0;
    padding-bottom: 12px;
    white-space: normal;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.admin-table tr.waitlist-summary-row:hover {
    background: none;
}

.admin-table tfoot .waitlist-total-row td {
    border-top: 2px solid var(--blue-line);
    border-bottom: none;
    background: var(--blue-tint-100);
    font-weight: 600;
    color: var(--navy-900);
}

.admin-table tfoot .waitlist-total-row:hover {
    background: var(--blue-tint-100);
}

/* --- Tableau "Mes listes d'attente" en carte empilée sur smartphone (portrait) --- */
@media (max-width: 640px) {
    #waitlist-table-wrap {
        overflow-x: visible;
        border: none;
    }

    #waitlist-table,
    #waitlist-table tbody,
    #waitlist-table tfoot {
        display: block;
        width: 100%;
    }

    #waitlist-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* En-têtes masqués visuellement mais gardés pour les lecteurs d'écran */
    #waitlist-table thead {
        display: block;
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
        padding: 0;
        margin: -1px;
    }

    #waitlist-table tr.waitlist-row {
        position: relative;
        display: block;
        background: var(--white);
        border: 1px solid var(--blue-line);
        border-radius: var(--radius);
        padding: 12px 44px 12px 12px;
    }

    #waitlist-table tr.waitlist-row td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
        padding: 4px 0;
        border: none;
        white-space: normal;
    }

    #waitlist-table tr.waitlist-row td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.82rem;
        color: var(--ink-soft);
        flex-shrink: 0;
    }

    /* Bouton de retrait : ancré en haut à droite de la carte */
    #waitlist-table tr.waitlist-row td:last-child {
        position: absolute;
        top: 8px;
        right: 8px;
        padding: 0;
    }

    /* Ligne de caractéristiques : accolée sous la carte de sa ligne */
    #waitlist-table tr.waitlist-summary-row {
        display: block;
        background: var(--white);
        border: 1px solid var(--blue-line);
        border-top: none;
        border-radius: 0 0 var(--radius) var(--radius);
        margin-top: -12px;
        padding: 0 12px 12px;
    }

    #waitlist-table tr.waitlist-summary-row td {
        display: block;
        padding: 0;
        border: none;
    }

    #waitlist-table tr.waitlist-summary-row .waitlist-summary-spacer {
        display: none;
    }

    /* Carte "Total" */
    #waitlist-table tfoot .waitlist-total-row {
        display: block;
        border: 2px solid var(--blue-line);
        border-radius: var(--radius);
        padding: 12px;
        margin-top: 4px;
    }

    #waitlist-table tfoot .waitlist-total-row td {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
        border: none;
    }

    #waitlist-table tfoot .waitlist-total-row td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
    }

    /* Cellules vides (% du prix, Depuis le, action) : inutiles sur la carte Total */
    #waitlist-table tfoot .waitlist-total-row td:nth-child(5),
    #waitlist-table tfoot .waitlist-total-row td:nth-child(6),
    #waitlist-table tfoot .waitlist-total-row td:nth-child(7) {
        display: none;
    }
}

/* Décalage sous la colonne "Apport" : la cellule vide (spacer) reprend
   la largeur réelle de la colonne "Annonce" grâce au tableau lui-même.
   Sur smartphone en portrait, on la masque pour ne rien changer à
   l'affichage existant (le texte redémarre en colonne 1). */
.admin-table tr.waitlist-summary-row .waitlist-summary-spacer {
    display: none;
}

@media (min-width: 641px) {
    .admin-table tr.waitlist-summary-row .waitlist-summary-spacer {
        display: table-cell;
    }
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-active {
    background: var(--blue-tint-200);
    color: var(--blue-600);
}

.status-inactive {
    background: #F2F2F2;
    color: var(--ink-soft);
}

/* Message de déconnexion */
.logout-message {
    padding: 16px;
    background: var(--blue-tint-100);
    border-left: 4px solid var(--blue-600);
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--blue-600);
}

/* =============================================================================
   Illustrations — page clubdeal (club deal)
   ============================================================================= */

.illustration-frame {
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 16px 40px -12px rgba(10, 31, 61, 0.18);
    background: var(--white);
}

.illustration-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.illustration-full {
    margin-top: 56px;
}

.illustration-caption {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink-soft);
    text-align: center;
}

/* =============================================================================
   Tableau "Les Deals" — annonces coup de cœur (is_starred), 2 colonnes
   ============================================================================= */

.starred-deals-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    overflow: hidden;
}

.starred-deal-photo-cell,
.starred-deal-info-cell {
    border: 1px solid var(--blue-line);
}

.starred-deal-photo-cell {
    width: 450px;
    padding: 22px;
    vertical-align: top;
}

.starred-deal-info-cell {
    padding: 24px 28px;
    vertical-align: top;
}

/* Alternance de fond pour améliorer la lisibilité des lignes */
.starred-deal-row:nth-child(odd) {
    background: var(--white);
}

.starred-deal-row:nth-child(even) {
    background: var(--blue-tint-200);
}

.deal-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--blue-tint-100);
    border: 1px solid var(--blue-line);
}

.deal-carousel-viewport {
    width: 100%;
    height: 100%;
}

.deal-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.deal-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(10, 31, 61, 0.55);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.deal-carousel-btn:hover {
    background: rgba(10, 31, 61, 0.82);
}

.deal-carousel-prev {
    left: 8px;
}

.deal-carousel-next {
    right: 8px;
}

.deal-carousel-counter {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--white);
    background: rgba(10, 31, 61, 0.55);
    padding: 2px 9px;
    border-radius: 20px;
}

.starred-deal-info-cell h3 {
    font-size: 1.12rem;
    margin: 0 0 6px;
}

.starred-deal-meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.starred-deal-rent-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--blue-line);
}

.deal-spec-compact dt {
    font-size: 0.62rem;
}

.deal-spec-compact dd {
    font-size: 0.85rem;
    white-space: nowrap;
}

.deal-spec-compact.deal-spec-highlight dd {
    font-size: 0.92rem;
}

.starred-deal-location {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.starred-deal-meta {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-900);
    margin: 0;
}

.starred-deal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.deal-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--blue-line);
    border-radius: 20px;
    color: var(--ink-soft);
}

.deal-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--blue-line);
}

.deal-spec {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.deal-spec dt {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.deal-spec dd {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink);
    font-weight: 500;
}

.deal-spec.deal-spec-highlight dd {
    color: var(--navy-700);
    font-weight: 700;
}

.starred-deal-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.starred-deals-empty {
    padding: 48px 28px;
    text-align: center;
    color: var(--ink-soft);
    background: var(--blue-tint-100);
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
}

@media (max-width: 700px) {
    .starred-deals-table,
    .starred-deals-table tbody,
    .starred-deal-row,
    .starred-deal-photo-cell,
    .starred-deal-info-cell {
        display: block;
        width: 100%;
    }

    .starred-deal-photo-cell {
        padding: 18px 18px 0;
    }

    .starred-deal-info-cell {
        padding: 16px 18px 24px;
    }
}

/* Étapes du parcours, illustrées d'une vignette */

.process-step-illustrated {
    grid-template-columns: 90px minmax(200px, 560px) 128px 1fr;
    align-items: center;
}

.process-step-illustrated .illustration-frame {
    width: 128px;
    border-radius: var(--radius);
}

@media (max-width: 860px) {
    .process-step-illustrated {
        grid-template-columns: 1fr;
    }

    .process-step-illustrated .illustration-frame {
        width: 100%;
        max-width: 220px;
        margin-top: 12px;
    }
}

/* =============================================================================
   Admin Forms & Cards — Gestion des groupes et utilisateurs
   ============================================================================= */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.admin-header h1 {
    margin-bottom: 8px;
}

.admin-form {
    background: var(--white);
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    padding: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy-900);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="datetime-local"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(29, 95, 203, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-divider {
    border: none;
    border-top: 1px solid var(--blue-line);
    margin: 32px 0;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

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

.form-group-inline {
    flex: 1;
    min-width: 250px;
}

.form-inline .form-group-inline label {
    margin-bottom: 0;
}

.admin-card {
    background: var(--blue-tint-100);
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
}

.admin-card h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.admin-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-admin-action {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius);
    border: 1px solid var(--blue-line);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-admin-action:hover {
    background: var(--blue-tint-100);
    border-color: var(--blue-600);
}

.btn-admin-action-edit {
    border-color: var(--blue-600);
    color: var(--blue-600);
}

.btn-admin-action-edit:hover {
    background: rgba(29, 95, 203, 0.08);
}

.btn-admin-action-info {
    border-color: var(--blue-600);
    color: var(--blue-600);
}

.btn-admin-action-info:hover {
    background: rgba(29, 95, 203, 0.08);
}

.btn-admin-action-delete {
    border-color: #E74C3C;
    color: #E74C3C;
}

.btn-admin-action-delete:hover {
    background: rgba(231, 76, 60, 0.08);
}

.admin-table-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--ink-soft);
    background: var(--blue-tint-100);
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.alert-success,
.alert-error {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.alert-success {
    background: #D4EDDA;
    border: 1px solid #C3E6CB;
    color: #155724;
}

.alert-error {
    background: #F8D7DA;
    border: 1px solid #F5C6CB;
    color: #721C24;
}

.btn-secondary {
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* =============================================================================
   Dashboard — Onglets
   ============================================================================= */

.dashboard-tabset {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--blue-line);
    margin-bottom: 32px;
}

/* Barre compacte "accordéon" : masquée sur desktop, où les onglets
   classiques (ci-dessous) restent affichés en ligne. */
.dashboard-tabset-bar {
    display: none;
}

/* Sur desktop, le wrapper ne doit rien changer à la mise en page :
   ses boutons se comportent comme des enfants directs de .dashboard-tabset. */
.dashboard-tabset-menu {
    display: contents;
}

.dashboard-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink-soft);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.dashboard-tab:hover {
    color: var(--navy-900);
}

.dashboard-tab.active {
    color: var(--blue-600);
    border-bottom-color: var(--blue-600);
}

.tab-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E74C3C;
    flex-shrink: 0;
}

.dashboard-tab-panel {
    flex-basis: 100%;
    animation: dashboard-tab-fade 0.15s ease;
}

@keyframes dashboard-tab-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dashboard-card {
    background: var(--blue-tint-100);
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    padding: 32px;
}

.waitlist-summary {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.waitlist-remove-btn {
    color: #E74C3C;
    border-color: #E74C3C;
}

.waitlist-remove-btn:hover {
    background: rgba(231, 76, 60, 0.08);
}

.dashboard-section {
    padding-top: 32px;
    padding-bottom: 100px;
}

@media (max-width: 640px) {
    .dashboard-section {
        padding-top: 12px;
        padding-bottom: 56px;
    }

    /* Mobile : la liste d'onglets classique disparaît au profit d'une barre
       compacte — bouton accordéon à gauche, onglet courant à droite — et
       d'un menu déroulant (masqué par défaut) pour changer d'onglet. */
    .dashboard-tabset {
        display: block;
        border-bottom: none;
        margin-bottom: 20px;
    }

    .dashboard-tabset-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 4px;
        border-bottom: 1px solid var(--blue-line);
    }

    .dashboard-tabset-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        padding: 0;
        background: var(--blue-tint-100);
        border: 1px solid var(--blue-line);
        border-radius: var(--radius);
        cursor: pointer;
    }

    .dashboard-tabset-toggle-icon {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .dashboard-tabset-toggle-icon span {
        display: block;
        width: 16px;
        height: 2px;
        background: var(--navy-900);
        border-radius: 1px;
        transition: transform 0.15s ease, opacity 0.15s ease;
    }

    .dashboard-tabset.is-open .dashboard-tabset-toggle-icon span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .dashboard-tabset.is-open .dashboard-tabset-toggle-icon span:nth-child(2) {
        opacity: 0;
    }

    .dashboard-tabset.is-open .dashboard-tabset-toggle-icon span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .dashboard-tabset-current {
        margin-left: auto;
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--blue-600);
        text-align: right;
    }

    /* Menu déroulant : masqué par défaut, affiché quand l'accordéon est ouvert. */
    .dashboard-tabset-menu {
        display: none;
        flex-direction: column;
    }

    .dashboard-tabset.is-open .dashboard-tabset-menu {
        display: flex;
        border-bottom: 1px solid var(--blue-line);
    }

    .dashboard-tab {
        justify-content: space-between;
        width: 100%;
        padding: 12px 4px;
        font-size: 0.92rem;
        white-space: normal;
        text-align: left;
        border: none;
        border-top: 1px solid var(--blue-line);
    }

    .dashboard-tab:first-child {
        border-top: none;
    }

    .dashboard-tab.active {
        background: var(--blue-tint-100);
    }

    .dashboard-tab-panel {
        padding-top: 20px;
    }

    .dashboard-card {
        padding: 20px;
    }
}

/* --- Icon-only admin action buttons, row layout --- */

.admin-actions-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.btn-admin-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    border-radius: var(--radius);
    border: 1px solid var(--blue-line);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    transition: all 0.15s ease;
    flex: 0 0 auto;
}

.btn-admin-action-icon:hover {
    background: var(--blue-tint-100);
    border-color: var(--blue-600);
}

.btn-admin-action-icon.btn-admin-action-add {
    border-color: var(--blue-600);
    color: var(--blue-600);
}

.btn-admin-action-icon.btn-admin-action-add:hover {
    background: rgba(29, 95, 203, 0.08);
}

.btn-admin-action-icon.btn-admin-action-delete {
    border-color: #E74C3C;
    color: #E74C3C;
}

.btn-admin-action-icon.btn-admin-action-delete:hover {
    background: rgba(231, 76, 60, 0.08);
}

.btn-admin-action-icon:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Combobox : liste déroulante avec recherche --- */

.combo-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy-900);
}

.form-inline-combo {
    align-items: center;
}

.combo-select {
    position: relative;
    flex: 0 1 540px;
    min-width: 0;
    max-width: 540px;
}

.combo-select input.combo-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.combo-select input.combo-input:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(29, 95, 203, 0.1);
}

.combo-dropdown {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--blue-line);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(11, 21, 38, 0.12);
    display: none;
}

.combo-select.open .combo-dropdown {
    display: block;
}

.combo-option {
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--ink);
    cursor: pointer;
}

.combo-option .combo-option-login {
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.combo-option:hover,
.combo-option.is-active {
    background: var(--blue-tint-100);
}

.combo-option-empty {
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-header .btn-primary {
        width: 100%;
        text-align: center;
    }

    .form-inline {
        flex-direction: column;
    }

    .form-group-inline {
        min-width: auto;
    }

    .admin-actions {
        flex-direction: column;
    }

    .btn-admin-action {
        width: 100%;
        text-align: center;
    }
}

/* =============================================================================
   Boutons CTA — 4e colonne de la grille équipe, alignés avec les photos
   ============================================================================= */

.concept-cta-buttons {
    aspect-ratio: 4 / 5;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}
