/* =====================================================================
   TripCooking – Profil
   Rails gauche/droite fixes, colonne centrale défilante.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */
:root {
    --tc-bg:        #f3f1ee;
    --tc-surface:   #ffffff;
    --tc-surface-2: #faf8f6;
    --tc-ink:       #1b1a19;
    --tc-ink-2:     #676460;
    --tc-ink-3:     #9d9a95;
    --tc-line:      #ece8e3;
    --tc-line-2:    #f2efeb;

    --tc-pink:      #e91d78;
    --tc-pink-2:    #ff4d9d;
    --tc-pink-soft: #fdeaf3;
    --tc-grad:      linear-gradient(135deg, #ff4d9d 0%, #e5197a 100%);

    --tc-blue:      #2f9bf4;
    --tc-amber:     #f4b333;
    --tc-amber-soft:#fdf2da;
    --tc-purple:    #7c5cff;
    --tc-green:     #33b56b;

    --tc-radius:    18px;
    --tc-radius-sm: 12px;
    --tc-radius-xs: 9px;

    --tc-shadow:    0 1px 2px rgba(20,18,16,.04), 0 10px 30px rgba(20,18,16,.05);
    --tc-shadow-sm: 0 1px 2px rgba(20,18,16,.05), 0 4px 14px rgba(20,18,16,.04);

    --tc-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --tc-display: 'Poppins', var(--tc-sans);

    /* --- Mise en page ---
       ► Ajuste --tc-header-h si ta barre du haut (header.php) est plus
         haute ou plus basse : c'est la hauteur à laquelle démarrent les rails. */
    --tc-header-h: 72px;
    --tc-max:      1320px;
    --tc-rail-l:   290px;
    --tc-rail-r:   340px;
    --tc-gap:      24px;
    --tc-top:      calc(var(--tc-header-h) + 14px);
    --tc-main-max: 700px;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
.tc-profile-shell *,
.tc-profile-shell *::before,
.tc-profile-shell *::after,
.tc-below *,
.tc-below *::before,
.tc-below *::after { box-sizing: border-box; }

body { background: var(--tc-bg); }

.tc-profile-shell,
.tc-below {
    box-sizing: border-box;
    font-family: var(--tc-sans);
    color: var(--tc-ink);
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: calc(var(--tc-rail-l) + var(--tc-gap));
    padding-right: calc(var(--tc-rail-r) + var(--tc-gap));
}
.tc-profile-shell { padding-top: var(--tc-top); padding-bottom: 24px; }
.tc-below {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 36px;
}

.tc-profile-shell a { text-decoration: none; color: inherit; }
.tc-profile-shell button { font-family: inherit; cursor: pointer; }
.tc-muted { color: var(--tc-ink-3); font-size: 13px; }

/* ================================================================== */
/* RAILS FIXES (gauche + droite)                                      */
/* ================================================================== */
.tc-profile-nav,
.tc-profile-right {
    position: fixed;
    top: 0;
    height: 100vh;
    padding-top: var(--tc-top);
    padding-bottom: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;             /* Firefox */
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tc-profile-nav::-webkit-scrollbar,
.tc-profile-right::-webkit-scrollbar { width: 0; height: 0; }

.tc-profile-nav {
    left: 0;
    width: var(--tc-rail-l);
    padding-left: 20px;
    padding-right: 6px;
}
.tc-profile-right {
    right: 0;
    width: var(--tc-rail-r);
    padding-left: 6px;
    padding-right: 20px;
}

/* ================================================================== */
/* COLONNE GAUCHE — navigation                                        */
/* ================================================================== */
.tc-nav-menu { display: flex; flex-direction: column; gap: 2px; }

.tc-nav-menu a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 14px;
    border-radius: var(--tc-radius-sm);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--tc-ink-2);
    transition: background .15s ease, color .15s ease;
}
.tc-nav-menu a svg { width: 20px; height: 20px; flex: none; }
.tc-nav-menu a:hover { background: #fff; color: var(--tc-ink); }
.tc-nav-menu a.is-active {
    background: var(--tc-ink);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(27,26,25,.18);
}
.tc-nav-menu a .tc-nav-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--tc-purple);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tc-nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffca45, #f4a800);
    color: #3a2c00;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 20px rgba(244,168,0,.28);
    transition: transform .15s ease, box-shadow .15s ease;
}
.tc-nav-cta svg { width: 18px; height: 18px; }
.tc-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(244,168,0,.34); }

.tc-passport {
    background: var(--tc-surface);
    border: 1px solid var(--tc-line);
    border-radius: var(--tc-radius);
    padding: 16px;
    box-shadow: var(--tc-shadow-sm);
}
.tc-passport__title { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; }
.tc-passport__count { margin: 10px 0 8px; font-size: 12.5px; color: var(--tc-ink-2); }
.tc-passport__bar { height: 7px; border-radius: 999px; background: var(--tc-line); overflow: hidden; }
.tc-passport__bar i { display: block; height: 100%; border-radius: inherit; background: var(--tc-grad); }
.tc-passport__pct { float: right; font-weight: 700; color: var(--tc-pink); font-size: 12.5px; }
.tc-passport__link { display: inline-block; margin-top: 12px; color: var(--tc-pink); font-weight: 600; font-size: 13px; }

.tc-join {
    background: linear-gradient(160deg, #fbeef6, #f3eefc);
    border: 1px solid #f0e6f2;
    border-radius: var(--tc-radius);
    padding: 16px;
    text-align: center;
}
.tc-join strong { display: block; font-size: 14px; }
.tc-join p { margin: 8px 0 12px; font-size: 12.5px; color: var(--tc-ink-2); line-height: 1.5; }
.tc-join a {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--tc-purple);
    color: #fff;
    font-weight: 600;
    font-size: 12.5px;
}

.tc-nav-slogan {
    padding: 4px 6px 20px;
    font-family: var(--tc-display);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5;
    color: var(--tc-ink);
}
.tc-nav-slogan span { color: var(--tc-pink); }

/* ================================================================== */
/* COLONNE CENTRALE                                                   */
/* ================================================================== */
.tc-profile-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; width: 100%; max-width: var(--tc-main-max); margin-left: 0; margin-right: auto; }

/* Les sections du bas suivent la même largeur/position que la colonne centrale */
.tc-recent,
.tc-friends,
.tc-newsletter { width: 100%; max-width: var(--tc-main-max); margin-left: 0; margin-right: auto; }

/* ---- Carte couverture ---- */
.tc-cover {
    background: var(--tc-surface);
    border: 1px solid var(--tc-line);
    border-radius: var(--tc-radius);
    overflow: hidden;
    box-shadow: var(--tc-shadow);
}
.tc-cover__photo {
    height: 210px;
    background-image: var(--cover), linear-gradient(120deg, #f6a97c, #e97ba0);
    background-size: cover;
    background-position: center;
}

/* Corps de la couverture : avatar + identité en haut, stats et bio pleine largeur dessous */
.tc-cover__body {
    position: relative;
    padding: 0 28px 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "avatar id"
        "stats  stats"
        "meta   meta";
    column-gap: 22px;
    align-items: start;
}
.tc-cover__avatar {
    grid-area: avatar;
    width: 120px;
    height: 120px;
    margin-top: -62px;
    border-radius: 50%;
    border: 5px solid #fff;
    background: var(--tc-grad);
    box-shadow: 0 8px 22px rgba(20,18,16,.18);
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--tc-display);
    font-weight: 700;
    font-size: 42px;
}
.tc-cover__avatar img { width: 100%; height: 100%; object-fit: cover; }

.tc-cover__id { grid-area: id; padding-top: 16px; padding-right: 180px; min-width: 0; }
.tc-cover__id h1 {
    margin: 0;
    font-family: var(--tc-display);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tc-verified { width: 20px; height: 20px; color: var(--tc-blue); flex: none; }
.tc-cover__handle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    color: var(--tc-ink-2);
    font-size: 14px;
    flex-wrap: wrap;
}
.tc-cover__handle .caret { font-size: 10px; opacity: .55; }
.tc-chip-role {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 11px;
    border-radius: 999px;
    background: var(--tc-amber-soft);
    color: #9a6b00;
    font-weight: 600;
    font-size: 12.5px;
    border: 1px solid #f5e2b6;
}

/* Barre de stats pleine largeur */
.tc-cover__stats {
    grid-area: stats;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--tc-line-2);
}
.tc-cover__stats div { text-align: left; }
.tc-cover__stats strong {
    display: block;
    font-family: var(--tc-display);
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
}
.tc-cover__stats span { font-size: 12px; color: var(--tc-ink-3); }

/* Bio + méta pleine largeur */
.tc-cover__meta { grid-area: meta; padding-top: 16px; }
.tc-cover__bio { font-size: 14.5px; color: var(--tc-ink); line-height: 1.6; }
.tc-cover__facts {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: var(--tc-ink-3);
    font-size: 13px;
}
.tc-cover__facts span { display: inline-flex; align-items: center; gap: 6px; }
.tc-cover__facts svg { width: 15px; height: 15px; flex: none; }

/* Actions en haut à droite */
.tc-cover__actions {
    position: absolute;
    top: 16px;
    right: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    z-index: 2;
}
.tc-cover__actions form { margin: 0; }

.tc-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.tc-btn svg { width: 15px; height: 15px; }
.tc-btn--primary { background: var(--tc-grad); color: #fff; box-shadow: 0 8px 18px rgba(233,29,120,.28); }
.tc-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(233,29,120,.34); }
.tc-btn--quiet { background: #fff; color: var(--tc-ink); border-color: var(--tc-line); }
.tc-btn--quiet:hover { background: var(--tc-surface-2); }
.tc-btn--icon {
    width: 38px; height: 38px; padding: 0;
    justify-content: center;
    background: #fff; border-color: var(--tc-line); color: var(--tc-ink-2);
}

/* Onglets */
.tc-tabs {
    display: flex;
    gap: 6px;
    padding: 4px 22px 0;
    border-top: 1px solid var(--tc-line-2);
    overflow-x: auto;
    scrollbar-width: none;
}
.tc-tabs::-webkit-scrollbar { display: none; }
.tc-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 14px 10px 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-ink-3);
    border-bottom: 2.5px solid transparent;
    white-space: nowrap;
    transition: color .15s ease;
}
.tc-tabs a svg { width: 16px; height: 16px; }
.tc-tabs a:hover { color: var(--tc-ink); }
.tc-tabs a.is-active { color: var(--tc-pink); border-bottom-color: var(--tc-pink); }

/* ---- Zone de composition ---- */
.tc-compose {
    background: var(--tc-surface);
    border: 1px solid var(--tc-line);
    border-radius: var(--tc-radius);
    padding: 16px;
    box-shadow: var(--tc-shadow-sm);
}
.tc-compose__top { display: flex; align-items: center; gap: 12px; }
.tc-compose__prompt {
    flex: 1;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--tc-surface-2);
    border: 1px solid var(--tc-line);
    color: var(--tc-ink-3);
    font-size: 14px;
}
.tc-compose__prompt:hover { background: #f4f1ed; }
.tc-compose__tools {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--tc-line-2);
    flex-wrap: wrap;
}
.tc-compose__tools a,
.tc-compose__tools button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--tc-ink-2);
    font-size: 13px;
    font-weight: 500;
}
.tc-compose__tools a:hover,
.tc-compose__tools button:hover { background: var(--tc-surface-2); }
.tc-compose__tools svg { width: 17px; height: 17px; }
.tc-compose__tools .tc-btn { margin-left: auto; }

/* ---- Fil / publications ---- */
.tc-feed { display: flex; flex-direction: column; gap: 18px; }

.tc-post {
    background: var(--tc-surface);
    border: 1px solid var(--tc-line);
    border-radius: var(--tc-radius);
    box-shadow: var(--tc-shadow-sm);
    overflow: hidden;
}
.tc-post__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 12px;
}
.tc-post__header > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tc-post__author { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.tc-post__author .tc-verified { width: 15px; height: 15px; }
.tc-post__author .tc-post__handle { color: var(--tc-ink-3); font-weight: 500; }
.tc-post__time { font-size: 12.5px; color: var(--tc-ink-3); }
.tc-post__more {
    margin-left: auto;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none; background: transparent;
    color: var(--tc-ink-3); font-size: 18px;
}
.tc-post__more:hover { background: var(--tc-surface-2); }

.tc-post__text { padding: 0 18px 12px; }
.tc-post__title { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; }
.tc-post__body { font-size: 14px; color: var(--tc-ink); line-height: 1.55; }
.tc-post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tc-post__tags a { color: var(--tc-pink); font-weight: 600; font-size: 13.5px; }

.tc-post__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tc-surface-2);
}
.tc-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-post__bookmark {
    position: absolute;
    top: 12px; right: 12px;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,.9);
    color: var(--tc-ink);
    backdrop-filter: blur(4px);
}
.tc-post__country-tag {
    position: absolute;
    left: 12px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(27,26,25,.72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.tc-post__reactions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 18px 4px;
    color: var(--tc-ink-2);
    font-size: 13.5px;
}
.tc-post__footer {
    display: flex;
    gap: 4px;
    padding: 6px 10px 8px;
    border-top: 1px solid var(--tc-line-2);
    margin: 0 8px;
}
.tc-post__footer button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: none; background: transparent;
    border-radius: 10px;
    color: var(--tc-ink-2);
    font-size: 13.5px;
    font-weight: 600;
}
.tc-post__footer button:hover { background: var(--tc-surface-2); }
.tc-post__footer button svg { width: 18px; height: 18px; }
.tc-post__footer button.is-liked { color: var(--tc-pink); }
.tc-post__footer button.is-liked svg { fill: var(--tc-pink); }
.tc-post__footer .tc-post__save { flex: 0 0 auto; width: 44px; }

.tc-post__viewcomments { padding: 4px 18px 8px; color: var(--tc-ink-2); font-size: 13.5px; font-weight: 500; }
.tc-post__addcomment {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 18px 16px;
}
.tc-post__addcomment input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--tc-surface-2);
    border: 1px solid var(--tc-line);
    font-size: 13.5px;
    font-family: inherit;
    color: var(--tc-ink);
}
.tc-post__addcomment input::placeholder { color: var(--tc-ink-3); }

/* ---- États vides / verrouillé ---- */
.tc-locked, .tc-empty {
    background: var(--tc-surface);
    border: 1px solid var(--tc-line);
    border-radius: var(--tc-radius);
    padding: 34px 26px;
    text-align: center;
    box-shadow: var(--tc-shadow-sm);
}
.tc-locked strong { display: block; font-size: 15px; }
.tc-locked p { margin-top: 8px; color: var(--tc-ink-2); font-size: 13.5px; }
.tc-empty { color: var(--tc-ink-2); font-size: 14px; }

/* ================================================================== */
/* COLONNE DROITE                                                     */
/* ================================================================== */
.tc-card {
    background: var(--tc-surface);
    border: 1px solid var(--tc-line);
    border-radius: var(--tc-radius);
    padding: 18px;
    box-shadow: var(--tc-shadow-sm);
}
.tc-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.tc-card__head h2 { margin: 0; font-family: var(--tc-display); font-size: 16px; font-weight: 700; }
.tc-card__head a, .tc-card__head span.link { color: var(--tc-pink); font-size: 12.5px; font-weight: 600; }
.tc-card__head span.count { color: var(--tc-ink-3); font-weight: 600; font-size: 13px; }

.tc-about__text { font-size: 13.5px; color: var(--tc-ink-2); line-height: 1.6; }
.tc-about__list { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.tc-about__row { display: flex; align-items: center; gap: 12px; }
.tc-about__ico {
    width: 34px; height: 34px; flex: none;
    border-radius: 10px;
    background: var(--tc-surface-2);
    display: grid; place-items: center;
    color: var(--tc-ink-2);
}
.tc-about__ico svg { width: 17px; height: 17px; }
.tc-about__row div small { display: block; color: var(--tc-ink-3); font-size: 11.5px; }
.tc-about__row div strong { font-size: 13.5px; font-weight: 600; }
.tc-about__cta {
    display: block; text-align: center;
    padding: 11px;
    border-radius: 12px;
    background: var(--tc-surface-2);
    border: 1px solid var(--tc-line);
    font-weight: 600; font-size: 13.5px;
    color: var(--tc-ink);
}
.tc-about__cta:hover { background: #f4f1ed; }

.tc-country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.tc-country-cell {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: var(--tc-surface-2);
}
.tc-country-cell__img {
    aspect-ratio: 1 / 1;
    display: grid; place-items: center;
    font-size: 30px;
    background: linear-gradient(135deg, #ffe3ef, #ede6ff);
}
.tc-country-cell__img img { width: 100%; height: 100%; object-fit: cover; }
.tc-country-cell small { display: block; padding: 6px 4px 8px; text-align: center; font-size: 11.5px; font-weight: 600; }

.tc-country-progress { margin-top: 14px; }
.tc-country-progress__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--tc-ink-2); margin-bottom: 7px; }
.tc-country-progress__meta b { color: var(--tc-pink); }
.tc-country-progress__bar { height: 7px; border-radius: 999px; background: var(--tc-line); overflow: hidden; }
.tc-country-progress__bar i { display: block; height: 100%; border-radius: inherit; background: var(--tc-grad); }
.tc-country-progress__link { display: inline-block; margin-top: 12px; color: var(--tc-pink); font-weight: 600; font-size: 13px; }

.tc-country-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-country-chips a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--tc-surface-2);
    border: 1px solid var(--tc-line);
    font-size: 13px; font-weight: 500;
}
.tc-country-chips a:hover { border-color: var(--tc-pink); color: var(--tc-pink); }

.tc-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.tc-badge__coin {
    width: 60px; height: 60px; margin: 0 auto 8px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 26px;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.6), 0 6px 14px rgba(20,18,16,.12);
}
.tc-badge--gold  { background: radial-gradient(circle at 30% 25%, #ffe58a, #f4b333); }
.tc-badge--bronze{ background: radial-gradient(circle at 30% 25%, #f0b487, #c8794a); }
.tc-badge--star  { background: radial-gradient(circle at 30% 25%, #ffd76b, #f19a2b); }
.tc-badge strong { display: block; font-size: 12.5px; }
.tc-badge small { color: var(--tc-ink-3); font-size: 11px; }

.tc-people { display: flex; flex-direction: column; gap: 4px; }
.tc-people__row {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 0;
}
.tc-people__id { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.tc-people__id strong { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; }
.tc-people__id strong .tc-verified { width: 14px; height: 14px; }
.tc-people__id small { display: block; color: var(--tc-ink-3); font-size: 12px; }
.tc-follow {
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--tc-pink-soft);
    color: var(--tc-pink);
    font-weight: 600; font-size: 12.5px;
    border: none;
}
.tc-follow:hover { background: var(--tc-pink); color: #fff; }

.tc-activity { display: flex; flex-direction: column; }
.tc-activity a {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--tc-line-2);
}
.tc-activity a:last-child { border-bottom: none; }
.tc-activity__thumb {
    width: 40px; height: 40px; flex: none;
    border-radius: 10px;
    background: var(--tc-surface-2);
    overflow: hidden;
    display: grid; place-items: center;
    font-size: 16px;
}
.tc-activity__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tc-activity__text { min-width: 0; }
.tc-activity__text strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-activity__text small { color: var(--tc-ink-3); font-size: 11.5px; }
.tc-activity__time { margin-left: auto; font-size: 11.5px; color: var(--tc-ink-3); white-space: nowrap; }

/* Avatars réutilisables */
.tc-avatar-sm {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--tc-grad);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 600; font-size: 14px;
    overflow: hidden;
    flex: none;
}
.tc-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.tc-avatar-xs { width: 34px; height: 34px; font-size: 12px; }

/* ================================================================== */
/* SECTIONS PLEINE LARGEUR (colonne centrale, sous le fil)           */
/* ================================================================== */
.tc-recent {
    background: var(--tc-surface);
    border: 1px solid var(--tc-line);
    border-radius: var(--tc-radius);
    padding: 20px;
    box-shadow: var(--tc-shadow-sm);
}
.tc-recent__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tc-recent__head h2 { margin: 0; font-family: var(--tc-display); font-size: 18px; font-weight: 700; }
.tc-recent__head a { color: var(--tc-pink); font-weight: 600; font-size: 13px; }
.tc-recent__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 16px;
}
.tc-recipe-card {
    display: block;
    border: 1px solid var(--tc-line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--tc-surface);
    transition: transform .15s ease, box-shadow .15s ease;
}
.tc-recipe-card:hover { transform: translateY(-3px); box-shadow: var(--tc-shadow); }
.tc-recipe-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.tc-recipe-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tc-recipe-card__bookmark {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px; display: grid; place-items: center;
    border-radius: 8px; background: rgba(255,255,255,.9); color: var(--tc-ink);
}
.tc-recipe-card__body { padding: 10px 12px 12px; }
.tc-recipe-card__title { font-size: 13.5px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.tc-recipe-card__country { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--tc-ink-2); margin-bottom: 8px; }
.tc-recipe-card__meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--tc-ink-3); }
.tc-recipe-card__rating { color: var(--tc-amber); font-weight: 600; }
.tc-recipe-card__time { display: inline-flex; align-items: center; gap: 4px; }

.tc-friends {
    background: var(--tc-surface);
    border: 1px solid var(--tc-line);
    border-radius: var(--tc-radius);
    padding: 20px;
    box-shadow: var(--tc-shadow-sm);
}
.tc-friends__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tc-friends__head h2 { margin: 0; font-family: var(--tc-display); font-size: 18px; font-weight: 700; }
.tc-friends__head a { color: var(--tc-pink); font-weight: 600; font-size: 13px; }
.tc-friends__row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.tc-friend {
    flex: 0 0 auto;
    width: 160px;
    display: flex; align-items: center; gap: 11px;
    padding: 10px;
    border: 1px solid var(--tc-line);
    border-radius: 14px;
}
.tc-friend .tc-avatar-sm { position: relative; }
.tc-friend__dot {
    position: absolute; right: -1px; bottom: -1px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--tc-green); border: 2px solid #fff;
}
.tc-friend strong { display: block; font-size: 13px; font-weight: 600; }
.tc-friend small { color: var(--tc-ink-3); font-size: 11px; }
.tc-friend--more {
    justify-content: center;
    background: var(--tc-surface-2);
    color: var(--tc-pink);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}
.tc-friend--more span { display: block; }
.tc-friend--more small { color: var(--tc-ink-3); font-weight: 500; }

.tc-newsletter {
    position: relative;
    border-radius: var(--tc-radius);
    overflow: hidden;
    background: linear-gradient(100deg, #ff5a9e 0%, #ff7a3d 100%);
    color: #fff;
    padding: 30px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.tc-newsletter h2 { margin: 0 0 6px; font-family: var(--tc-display); font-size: 22px; font-weight: 700; }
.tc-newsletter p { margin: 0; font-size: 14px; opacity: .92; }
.tc-newsletter__form { display: flex; gap: 10px; flex: 1; min-width: 280px; max-width: 460px; }
.tc-newsletter__form input {
    flex: 1;
    padding: 13px 18px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-family: inherit;
}
.tc-newsletter__form button {
    padding: 13px 24px;
    border-radius: 999px;
    border: none;
    background: var(--tc-ink);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.tc-newsletter__form button:hover { background: #000; }

/* ================================================================== */
/* Responsive                                                         */
/* ================================================================== */

/* Sous 1200px : on masque le rail droit, la colonne centrale s'élargit */
@media (max-width: 1200px) {
    .tc-profile-right { display: none; }
    .tc-profile-shell,
    .tc-below { padding-right: var(--tc-gap); }
}

/* Sous 900px : plus de rails fixes, tout repasse en flux normal (1 colonne) */
@media (max-width: 900px) {
    .tc-profile-nav {
        position: static;
        width: auto;
        height: auto;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0 auto 18px;
        max-width: 640px;
        padding-left: var(--tc-gap);
        padding-right: var(--tc-gap);
    }
    .tc-profile-shell,
    .tc-below {
        padding-left: var(--tc-gap);
        padding-right: var(--tc-gap);
        max-width: 680px;
        margin: 0 auto;
    }
    .tc-nav-slogan { display: none; }
}

@media (max-width: 560px) {
    .tc-profile-shell,
    .tc-below { padding-left: 14px; padding-right: 14px; }
    .tc-cover__id { padding-right: 0; }
    .tc-cover__actions {
        position: static;
        flex-direction: row;
        margin-top: 12px;
        justify-content: flex-start;
        grid-column: 1 / -1;
    }
    .tc-newsletter { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    .tc-profile-shell *, .tc-below * { transition: none !important; }
}

/* Focus clavier */
.tc-profile-shell a:focus-visible,
.tc-profile-shell button:focus-visible,
.tc-below a:focus-visible,
.tc-below button:focus-visible,
.tc-below input:focus-visible {
    outline: 2px solid var(--tc-pink);
    outline-offset: 2px;
}