/* ============================================================
   Le Cercle (moncercle.ch) — Design system v2
   Identité « bordeaux convivial »
   Crème chaud · vin profond · blush · bleu confiance
   Typo : Bricolage Grotesque (display) + Figtree (corps)
   ============================================================ */

:root {
    /* Palette */
    --creme:     #FBF7F3;   /* fond principal, chaud et lumineux */
    --blanc:     #FFFFFF;   /* cartes */
    --vin:       #6E2B3F;   /* bordeaux profond — signature */
    --vin-2:     #84354D;   /* bordeaux clair (dégradés) */
    --vin-fonce: #571F30;   /* hover */
    --blush:     #F5E7E3;   /* fonds de sections douces */
    --rose:      #B5536B;   /* accent — eyebrows, détails actifs */
    --rose-clair:#EFC3B2;   /* éléments clairs sur fond vin */
    --confiance: #3E6B8C;   /* bleu ardoise — vérifié / sécurité */
    --bleu-clair:#E7EEF4;   /* fond des signaux confiance */
    --texte:     #33272B;   /* texte principal (brun-noir chaud) */
    --texte-2:   #6E5F63;   /* texte secondaire */
    --bordure:   #ECE2DC;   /* lignes douces */

    /* Ombres douces */
    --ombre-s: 0 1px 3px rgba(110,43,63,0.06);
    --ombre-m: 0 6px 24px rgba(110,43,63,0.09);
    --ombre-l: 0 18px 50px rgba(110,43,63,0.13);

    --rayon:   14px;
    --rayon-l: 22px;

    /* Type scale */
    --t-hero:  clamp(2.4rem, 5vw, 4rem);
    --t-h2:    clamp(1.8rem, 3.5vw, 2.6rem);
    --t-h3:    1.35rem;
    --t-body:  1.125rem;   /* 18px — lisibilité 40+ */
    --t-small: 0.95rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Figtree', system-ui, sans-serif;
    font-size: var(--t-body);
    line-height: 1.65;
    color: var(--texte);
    background: var(--creme);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.12;
    color: var(--vin);
    letter-spacing: -0.015em;
}

a { color: inherit; }

/* ── Conteneur ── */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

/* ── Eyebrow ── */
.eyebrow {
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--rose); margin-bottom: 14px;
}
.section-title { font-size: var(--t-h2); margin-bottom: 16px; }
.section-sub { font-size: 1.2rem; color: var(--texte-2); max-width: 620px; margin: 0 auto; }
.center { text-align: center; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251,247,243,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--bordure);
}
.nav-inner {
    max-width: 1140px; margin: 0 auto; padding: 15px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.45rem; font-weight: 700;
    color: var(--vin); text-decoration: none; letter-spacing: -0.02em;
}
.nav-logo span { color: var(--rose); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
    text-decoration: none; font-size: var(--t-small); font-weight: 600;
    color: var(--texte-2); transition: color .2s;
}
.nav-links a:hover { color: var(--vin); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
    display: inline-block; cursor: pointer; border: none;
    font-family: 'Figtree', sans-serif; font-size: 1.05rem; font-weight: 700;
    padding: 15px 32px; border-radius: 50px; text-decoration: none;
    transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--vin); color: #fff; box-shadow: var(--ombre-m); }
.btn-primary:hover { background: var(--vin-fonce); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--vin); border: 1.5px solid var(--vin); }
.btn-ghost:hover { background: var(--vin); color: #fff; }
.btn-light { background: #fff; color: var(--vin); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--ombre-m); }
.btn-small { padding: 10px 22px; font-size: 0.95rem; }

/* ============================================================
   HERO — bandeau vin + cercle qui se forme
   ============================================================ */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--vin) 0%, var(--vin-2) 100%);
    color: #fff;
    padding: 96px 24px 110px;
    text-align: center;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: var(--t-hero); margin-bottom: 22px; }
.hero h1 em { color: var(--rose-clair); font-style: italic; }
.hero p { font-size: 1.3rem; color: rgba(255,255,255,0.85); max-width: 580px; margin: 0 auto 36px; }
.hero p strong { color: #fff; font-weight: 700; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
    margin-top: 30px; display: flex; gap: 26px; justify-content: center;
    flex-wrap: wrap; font-size: 0.95rem; color: rgba(255,255,255,0.82);
}
.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.35);
    color: #FDF3EE;
    font-size: 0.95rem; font-weight: 700;
    letter-spacing: 0.01em;
    padding: 9px 20px; border-radius: 50px;
    margin-bottom: 24px;
}

/* Le cercle qui se forme */
.hero-circle {
    position: absolute; inset: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; opacity: 0.5;
}
.hero-circle svg { width: min(680px, 120%); height: auto; }
.hc-dot { fill: var(--rose-clair); opacity: 0; animation: dotIn .6s ease forwards; }
.hc-line { stroke: var(--rose-clair); stroke-width: 1; opacity: 0;
           stroke-dasharray: 220; stroke-dashoffset: 220;
           animation: lineDraw 1.4s ease forwards; }
.hc-ring { fill: none; stroke: rgba(239,195,178,0.35); stroke-width: 1.5;
           stroke-dasharray: 1400; stroke-dashoffset: 1400;
           animation: lineDraw 2.4s ease .3s forwards; }
@keyframes dotIn  { to { opacity: .9; } }
@keyframes lineDraw { to { opacity: .8; stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
    .hc-dot, .hc-line, .hc-ring { animation: none; opacity: .7; stroke-dashoffset: 0; }
}

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 2; line-height: 0; }
.hero-wave svg { width: 100%; height: 56px; display: block; }
.hero-wave path { fill: var(--creme); }

/* ============================================================
   CARTES « POURQUOI »
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 54px; }
.card {
    background: var(--blanc); border: 1px solid var(--bordure);
    border-radius: var(--rayon-l); padding: 38px 30px;
    box-shadow: var(--ombre-s); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--ombre-m); }
.card-ico {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 20px;
}
.ico-rose { background: var(--blush); }
.ico-bleu { background: var(--bleu-clair); }
.ico-vin  { background: #F0E0E5; }
.card h3 { font-size: var(--t-h3); margin-bottom: 10px; }
.card p { color: var(--texte-2); }

/* ============================================================
   STAT
   ============================================================ */
.stat { background: var(--blush); text-align: center; }
.stat .num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
             font-size: clamp(2.4rem,5vw,3.4rem); color: var(--vin); margin-bottom: 8px; }
.stat p { max-width: 620px; margin: 0 auto; color: var(--texte-2); }
.stat .src { font-size: 0.85rem; color: var(--texte-2); opacity: .7; margin-top: 14px; }

/* ============================================================
   ÉTAPES
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 54px; }
.step { padding-top: 18px; }
.step-n { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
          font-size: 2.6rem; color: var(--rose); line-height: 1; margin-bottom: 12px; }
.step h3 { font-size: var(--t-h3); margin-bottom: 8px; }
.step p { color: var(--texte-2); }

/* ============================================================
   OFFRE GRATUITE
   ============================================================ */
.offer {
    max-width: 460px; margin: 50px auto 0;
    background: var(--creme);
    border: 2px solid var(--vin);
    border-radius: var(--rayon-l);
    padding: 38px 34px;
    box-shadow: var(--ombre-l);
    text-align: left;
}
.offer-head {
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
    padding-bottom: 22px; margin-bottom: 22px;
    border-bottom: 1px solid var(--bordure);
}
.offer-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600;
              font-size: 1.3rem; color: var(--vin); }
.offer-price {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
    font-size: 2.2rem; color: var(--vin);
    display: flex; flex-direction: column; align-items: flex-end; line-height: 1;
}
.offer-price span { font-family: 'Figtree', sans-serif; font-size: 0.85rem;
                    font-weight: 500; color: var(--texte-2); margin-top: 4px; }
.offer-list { list-style: none; margin-bottom: 28px; }
.offer-list li { position: relative; padding-left: 32px; margin-bottom: 13px; color: var(--texte); }
.offer-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: #fff; background: var(--confiance);
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
}
.offer-cta { display: block; width: 100%; text-align: center; }
.offer-foot { text-align: center; font-size: 0.9rem; color: var(--texte-2); margin-top: 16px; }

/* ============================================================
   TÉMOIGNAGES
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 50px; }
.quote { background: var(--blanc); border: 1px solid var(--bordure);
         border-radius: var(--rayon-l); padding: 32px; }
.quote p { font-size: 1.1rem; color: var(--texte); margin-bottom: 22px; }
.quote .who { display: flex; align-items: center; gap: 14px; }
.quote .av {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--vin); color: #fff; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.quote .who b { display: block; color: var(--vin); }
.quote .who small { color: var(--texte-2); }

/* ============================================================
   CTA FINAL + FOOTER
   ============================================================ */
.final { background: linear-gradient(160deg, var(--vin) 0%, var(--vin-2) 100%);
         color: #fff; text-align: center; }
.final h2 { color: #fff; }
.final p { color: rgba(255,255,255,0.85); margin-bottom: 30px; }

.foot { background: var(--vin-fonce); color: rgba(255,255,255,0.7); padding: 54px 24px 36px; }
.foot-inner { max-width: 1140px; margin: 0 auto; text-align: center; }
.foot-logo { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
             font-size: 1.4rem; color: #fff; margin-bottom: 18px; }
.foot-logo span { color: var(--rose-clair); }
.foot-links { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.foot-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: var(--t-small); }
.foot-links a:hover { color: #fff; }
.foot-copy { font-size: 0.85rem; opacity: .6; }

/* ============================================================
   TUNNEL + FORMULAIRES
   ============================================================ */
.funnel { min-height: calc(100vh - 73px); display: flex; align-items: flex-start;
          justify-content: center; padding: 56px 24px 80px; }
.funnel-box { width: 100%; max-width: 480px; }
.funnel-back { display: inline-block; color: var(--texte-2); text-decoration: none;
               font-size: 0.95rem; margin-bottom: 24px; }
.funnel-back:hover { color: var(--vin); }

.progress { display: flex; gap: 8px; margin-bottom: 32px; }
.progress-step { flex: 1; height: 5px; border-radius: 5px; background: var(--bordure); }
.progress-step.done { background: var(--confiance); }
.progress-step.active { background: var(--rose); }

.funnel-title { font-size: 1.9rem; margin-bottom: 8px; }
.funnel-sub { color: var(--texte-2); margin-bottom: 28px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; color: var(--vin);
               margin-bottom: 7px; font-size: 0.98rem; }
.field input, .field select, .field textarea {
    width: 100%; padding: 14px 16px; font-size: 1.05rem;
    font-family: 'Figtree', sans-serif;
    border: 1.5px solid var(--bordure); border-radius: var(--rayon);
    background: var(--blanc); color: var(--texte); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--rose);
}
.field .hint { font-size: 0.88rem; color: var(--texte-2); margin-top: 6px; }
.field .hint.warn { color: var(--rose); }

.btn-full { width: 100%; text-align: center; margin-top: 8px; }

.flash { padding: 13px 16px; border-radius: var(--rayon); margin-bottom: 18px; font-size: 0.95rem; }
.flash.error { background: #fbeaea; color: #a33; border: 1px solid #e8c4c4; }
.flash.info  { background: var(--bleu-clair); color: #2d5172; border: 1px solid #c7d8e6; }

.code-input input { text-align: center; font-size: 1.8rem; letter-spacing: 0.4em; font-weight: 700; }

.interests-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 26px; }
.interest-chip { position: relative; }
.interest-chip input { position: absolute; opacity: 0; }
.interest-chip label {
    display: block; padding: 13px 14px; border: 1.5px solid var(--bordure);
    border-radius: var(--rayon); cursor: pointer; font-size: 0.98rem;
    font-weight: 600; transition: all .15s; background: var(--blanc);
}
.interest-chip input:checked + label {
    border-color: var(--rose); background: var(--blush); color: var(--vin);
}
.interest-chip input:focus-visible + label { outline: 3px solid var(--rose); outline-offset: 2px; }

.skip-link { display: block; text-align: center; margin-top: 16px;
             color: var(--texte-2); text-decoration: none; font-size: 0.95rem; }
.skip-link:hover { color: var(--vin); }

.dev-note { background: var(--blush); border: 1px dashed var(--rose); border-radius: var(--rayon);
            padding: 12px 14px; font-size: 0.9rem; color: var(--rose); margin-bottom: 18px; }

.auth-switch { text-align: center; margin-top: 24px; color: var(--texte-2); font-size: 0.95rem; }
.auth-switch a { color: var(--rose); font-weight: 700; text-decoration: none; }

/* ============================================================
   DÉCOUVERTE — espace membre
   ============================================================ */
.page-member { padding: 44px 0 80px; }
.member-hello { margin-bottom: 28px; }
.member-hello h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.member-hello p { color: var(--texte-2); }

.filters {
    display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
    background: var(--blanc); border: 1px solid var(--bordure);
    border-radius: var(--rayon-l); padding: 20px;
    box-shadow: var(--ombre-s); margin-bottom: 34px;
}
.filters .field { margin: 0; flex: 1; min-width: 150px; }
.filters .field label { font-size: 0.85rem; }
.filters .field input, .filters .field select { padding: 11px 13px; font-size: 0.98rem; }
.filters .btn { padding: 12px 26px; }

.members-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
}
.m-card {
    background: var(--blanc); border: 1px solid var(--bordure);
    border-radius: var(--rayon-l); overflow: hidden;
    box-shadow: var(--ombre-s); transition: transform .2s, box-shadow .2s;
    text-decoration: none; display: block;
}
.m-card:hover { transform: translateY(-4px); box-shadow: var(--ombre-m); }
.m-card-visual {
    aspect-ratio: 1 / 1; background: var(--blush);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.m-card-visual img { width: 100%; height: 100%; object-fit: cover; }
.m-card-initial {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
    font-size: 3.4rem; color: var(--vin); opacity: .55;
}
.m-card-body { padding: 18px; }
.m-card-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600;
               font-size: 1.15rem; color: var(--vin); margin-bottom: 3px; }
.m-card-place { font-size: 0.9rem; color: var(--texte-2); margin-bottom: 12px; }
.m-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
    display: inline-block; font-size: 0.8rem; font-weight: 600;
    background: var(--blush); color: var(--vin);
    padding: 4px 11px; border-radius: 50px;
}
.chip-more { background: transparent; border: 1px solid var(--bordure); color: var(--texte-2); }

.empty-state {
    text-align: center; padding: 70px 24px;
    background: var(--blanc); border: 1px dashed var(--bordure);
    border-radius: var(--rayon-l);
}
.empty-state .big { font-size: 2.4rem; margin-bottom: 12px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--texte-2); max-width: 440px; margin: 0 auto; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span {
    padding: 9px 16px; border-radius: var(--rayon); text-decoration: none;
    font-weight: 600; font-size: 0.95rem;
    border: 1px solid var(--bordure); color: var(--texte-2); background: var(--blanc);
}
.pagination .current { background: var(--vin); color: #fff; border-color: var(--vin); }
.pagination a:hover { border-color: var(--rose); color: var(--vin); }

/* ── Profil public ── */
.profile-grid { display: grid; grid-template-columns: 360px 1fr; gap: 36px; align-items: start; }
.profile-photo {
    aspect-ratio: 1/1; border-radius: var(--rayon-l); overflow: hidden;
    background: var(--blush); display: flex; align-items: center; justify-content: center;
    box-shadow: var(--ombre-m);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo .m-card-initial { font-size: 6rem; }
.profile-name { font-size: 2.1rem; margin-bottom: 4px; }
.profile-place { color: var(--texte-2); margin-bottom: 18px; }
.profile-bio { margin-bottom: 22px; }
.profile-section-label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em;
                         text-transform: uppercase; color: var(--rose); margin-bottom: 10px; }
.profile-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.link-danger { color: var(--texte-2); font-size: 0.9rem; text-decoration: underline; }
.link-danger:hover { color: #a33; }

.badge-verified {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bleu-clair); color: var(--confiance);
    font-size: 0.85rem; font-weight: 700;
    padding: 5px 13px; border-radius: 50px; margin-left: 10px;
    vertical-align: middle;
}

/* ============================================================
   ACCESSIBILITÉ + RESPONSIVE
   ============================================================ */
a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--rose); outline-offset: 3px;
}

@media (max-width: 860px) {
    .grid-3, .steps, .quotes { grid-template-columns: 1fr; }
    .nav-links a:not(.btn) { display: none; }
    .section { padding: 60px 0; }
    .profile-grid { grid-template-columns: 1fr; }
    .filters { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   MESSAGERIE
   ============================================================ */
.requests-banner {
    display: flex; align-items: center; gap: 14px;
    background: var(--blush); border: 1px solid var(--rose-clair);
    border-radius: var(--rayon); padding: 16px 20px; margin-bottom: 24px;
    text-decoration: none; color: var(--vin); font-weight: 600;
}
.requests-banner:hover { background: #f0dcd6; }
.req-badge {
    background: var(--vin); color: #fff; font-weight: 700;
    min-width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}

.thread-list { display: flex; flex-direction: column; gap: 4px; }
.thread-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px; border-radius: var(--rayon);
    text-decoration: none; transition: background .15s;
    border: 1px solid transparent;
}
.thread-item:hover { background: var(--blanc); border-color: var(--bordure); }
.thread-av {
    width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
    background: var(--vin); color: #fff; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.3rem;
}
.thread-av img { width: 100%; height: 100%; object-fit: cover; }
.thread-body { flex: 1; min-width: 0; }
.thread-top { display: flex; align-items: center; gap: 10px; }
.thread-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600;
               font-size: 1.1rem; color: var(--vin); }
.thread-preview { color: var(--texte-2); font-size: 0.95rem;
                  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot {
    background: var(--rose); color: #fff; font-size: 0.78rem; font-weight: 700;
    min-width: 20px; height: 20px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Demandes */
.request-card {
    background: var(--blanc); border: 1px solid var(--bordure);
    border-radius: var(--rayon-l); padding: 22px; margin-bottom: 16px;
}
.request-head { display: flex; align-items: center; gap: 14px;
                text-decoration: none; margin-bottom: 14px; }
.request-message {
    background: var(--blush); border-radius: var(--rayon);
    padding: 14px 16px; color: var(--texte); margin-bottom: 16px;
    font-style: italic;
}
.request-actions { display: flex; gap: 10px; }
.request-actions form { margin: 0; }

/* Fil de discussion */
.thread-header {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0 18px; border-bottom: 1px solid var(--bordure);
    margin-bottom: 22px; text-decoration: none;
}
.chat { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px;
        min-height: 200px; }
.msg { display: flex; flex-direction: column; max-width: 75%; }
.msg-me { align-self: flex-end; align-items: flex-end; }
.msg-them { align-self: flex-start; align-items: flex-start; }
.msg-bubble {
    padding: 12px 16px; border-radius: 18px; font-size: 1.02rem; line-height: 1.5;
}
.msg-me .msg-bubble { background: var(--vin); color: #fff; border-bottom-right-radius: 5px; }
.msg-them .msg-bubble { background: var(--blanc); border: 1px solid var(--bordure);
                        color: var(--texte); border-bottom-left-radius: 5px; }
.msg-time { font-size: 0.78rem; color: var(--texte-2); margin-top: 4px; padding: 0 6px; }

.chat-form { display: flex; gap: 10px; align-items: flex-end;
             position: sticky; bottom: 0; background: var(--creme); padding-top: 10px; }
.chat-form textarea {
    flex: 1; padding: 12px 16px; font-size: 1.02rem; font-family: 'Figtree', sans-serif;
    border: 1.5px solid var(--bordure); border-radius: var(--rayon);
    background: var(--blanc); resize: none;
}
.chat-form textarea:focus { outline: none; border-color: var(--rose); }
.chat-form .btn { white-space: nowrap; }

.nav-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--rose); color: #fff; font-size: 0.7rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 50%; margin-left: 4px;
}

/* ============================================================
   GALERIE PHOTOS
   ============================================================ */
.photo-gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px; margin-bottom: 16px;
}
.photo-tile {
    position: relative; aspect-ratio: 1/1; border-radius: var(--rayon);
    overflow: hidden; background: var(--blush); border: 2px solid transparent;
}
.photo-tile.is-primary { border-color: var(--vin); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag {
    position: absolute; top: 8px; left: 8px;
    background: var(--vin); color: #fff; font-size: 0.72rem; font-weight: 700;
    padding: 3px 9px; border-radius: 50px;
}
.photo-actions {
    position: absolute; bottom: 8px; right: 8px; display: flex; gap: 6px;
    opacity: 0; transition: opacity .15s;
}
.photo-tile:hover .photo-actions { opacity: 1; }
.photo-actions form { margin: 0; }
.photo-actions button {
    width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,0.95); color: var(--vin); font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--ombre-s);
}
.photo-actions button:hover { background: #fff; }
.photo-add { margin: 0; }
.photo-add-label {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; aspect-ratio: 1/1; border: 2px dashed var(--bordure);
    border-radius: var(--rayon); cursor: pointer; color: var(--texte-2);
    font-size: 0.9rem; font-weight: 600; transition: all .15s;
}
.photo-add-label:hover { border-color: var(--rose); color: var(--vin); background: var(--blush); }
.photo-add-plus { font-size: 2rem; line-height: 1; }
