/* ================================================================
   home.css — TripCooking
   Version redesign "Marmiton style" — Playfair Display + DM Sans

   1.  Variables & Reset
   2.  Typographie & Utilitaires
   3.  Header (tcHeader)
   4.  Boutons partagés
   5.  Footer partagé
   6.  VUE VISITEUR
       6a. Wrapper & layout
       6b. Hero
       6c. Destinations culinaires
       6d. Recipe cards partagées
       6e. Grilles de recettes
       6f. Thèmes
       6g. Sections visiteur
   7.  VUE MEMBRE CONNECTÉ
       7a. Layout 3 colonnes
       7b. Sidebar gauche
       7c. Feed principal
       7d. Theme rows + Carousels
       7e. Recipe cards feed membre
       7f. Sidebar droite
       7g. Notifications
       7h. Amis
   8.  MODALE CRÉER UNE RECETTE
       8a. Overlay
       8b. Container
       8c. Header
       8d. Body / Champs
       8e. Footer
   9.  Animations & Keyframes
   10. Responsive
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ================================================================
   1. VARIABLES & RESET
================================================================ */

:root {
    --tc-purple:        #6B35E8;
    --tc-purple-hover:  #5422CC;
    --tc-purple-light:  #8B5CF6;
    --tc-purple-pale:   #EDE9FF;
    --tc-purple-bg:     #F0ECFF;
    --tc-white:         #FFFFFF;
    --tc-bg:            #EDEAF8;
    --tc-surface:       #F7F5FF;
    --tc-border:        #DDD8F0;
    --tc-border-light:  #EAE6F6;
    --tc-text:          #14102A;
    --tc-text-muted:    #6A6480;
    --tc-text-light:    #9C97B8;
    --tc-text-ph:       #B8B3D0;

    --tc-shadow-xs:     0 1px 3px  rgba(80,40,180,.06);
    --tc-shadow-sm:     0 2px 10px rgba(80,40,180,.08);
    --tc-shadow-md:     0 6px 24px rgba(80,40,180,.12);
    --tc-shadow-lg:     0 12px 40px rgba(80,40,180,.16);
    --tc-shadow-xl:     0 20px 60px rgba(80,40,180,.22);

    --tc-nav-h:         62px;
    --tc-sidebar-w:     252px;
    --tc-rightbar-w:    272px;
    --tc-page-px:       32px;

    --tc-r-xs:    6px;
    --tc-r-sm:    10px;
    --tc-r:       14px;
    --tc-r-lg:    20px;
    --tc-r-xl:    28px;
    --tc-r-pill:  999px;

    --tc-ease:     cubic-bezier(.22,.68,0,1.2);
    --tc-ease-out: cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }

html { scroll-behavior:smooth; }

body {
    font-family:'DM Sans',sans-serif;
    font-size:14px;
    line-height:1.55;
    color:var(--tc-text);
    background:var(--tc-bg);
    min-height:100vh;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

img   { display:block; max-width:100%; }
a     { text-decoration:none; color:inherit; }
button{ cursor:pointer; font-family:inherit; border:none; background:none; }
ul,ol { list-style:none; }
input,textarea,select { font-family:inherit; }


/* ================================================================
   2. TYPOGRAPHIE & UTILITAIRES
================================================================ */

.tc-serif { font-family:'Playfair Display',serif; }

.tc-kicker {
    display:block;
    font-size:10px; font-weight:700;
    letter-spacing:.1em; text-transform:uppercase;
    color:var(--tc-purple); margin-bottom:5px;
}

.tc-empty {
    font-size:12.5px; color:var(--tc-text-light);
    text-align:center; padding:14px 0;
}


/* ================================================================
   3. HEADER
================================================================ */

.tcHeader {
    position:sticky; top:0; z-index:300;
    display:flex; align-items:center; gap:16px;
    height:var(--tc-nav-h);
    padding:0 var(--tc-page-px);
    background:var(--tc-white);
    border-bottom:1px solid var(--tc-border);
    box-shadow:0 1px 0 rgba(0,0,0,.04);
}

.tcHeader__left { flex-shrink:0; }

.tcHeader__brand {
    display:inline-flex; align-items:center; gap:9px;
}

.tcHeader__logo {
    display:grid; place-items:center;
    width:36px; height:36px;
    border-radius:10px;
    background:var(--tc-purple); color:#fff;
    font-family:'DM Sans',sans-serif;
    font-size:13px; font-weight:800;
    letter-spacing:-.5px; flex-shrink:0;
    transition:background .2s;
}
.tcHeader__brand:hover .tcHeader__logo { background:var(--tc-purple-hover); }

.tcHeader__brandText {
    font-family:'Playfair Display',serif;
    font-weight:700; font-size:17px;
    color:var(--tc-text); letter-spacing:-.2px;
}

.tcHeader__center {
    flex:1; display:flex; align-items:center; gap:10px;
    max-width:620px; margin:0 auto;
}

.tcHeaderSearch { position:relative; flex:1; }

.tcHeaderSearch__icon {
    position:absolute; left:13px; top:50%;
    transform:translateY(-50%);
    color:var(--tc-text-light);
    pointer-events:none; font-size:14px; line-height:1;
}

.tcHeaderSearch input[type="search"] {
    width:100%;
    padding:10px 18px 10px 40px;
    border:1.5px solid var(--tc-border);
    border-radius:var(--tc-r-pill);
    font-size:13.5px; color:var(--tc-text);
    background:var(--tc-surface); outline:none;
    transition:border-color .2s, background .2s, box-shadow .2s;
}
.tcHeaderSearch input[type="search"]::placeholder { color:var(--tc-text-ph); }
.tcHeaderSearch input[type="search"]:focus {
    border-color:var(--tc-purple);
    background:var(--tc-white);
    box-shadow:0 0 0 3px rgba(107,53,232,.1);
}

.search-dropdown {
    position:absolute; top:calc(100% + 6px); left:0; right:0;
    z-index:400;
    background:var(--tc-white);
    border:1.5px solid var(--tc-border);
    border-radius:var(--tc-r-lg);
    box-shadow:var(--tc-shadow-lg);
    max-height:320px; overflow-y:auto;
    animation:fadeDown .18s ease;
}
.search-dropdown ul { padding:6px; }
.search-dropdown li {
    padding:9px 13px;
    border-radius:var(--tc-r-sm);
    font-size:13px; cursor:pointer;
    transition:background .12s;
    display:flex; align-items:center; gap:8px;
}
.search-dropdown li:hover { background:var(--tc-purple-pale); color:var(--tc-purple); }

.tcCreateBtn {
    flex-shrink:0;
    background:var(--tc-purple); color:#fff;
    border-radius:var(--tc-r-pill);
    padding:9px 20px;
    font-size:13.5px; font-weight:600;
    white-space:nowrap;
    transition:background .2s, transform .15s, box-shadow .15s;
}
.tcCreateBtn:hover {
    background:var(--tc-purple-hover);
    transform:translateY(-1px);
    box-shadow:0 4px 16px rgba(107,53,232,.32);
}

.tcHeader__right {
    flex-shrink:0; display:flex; align-items:center; gap:4px;
    margin-left:auto;
}

.tcIconBtn {
    display:grid; place-items:center;
    width:38px; height:38px; border-radius:50%;
    background:var(--tc-purple-bg);
    font-size:16px; color:var(--tc-text-muted);
    border:none; position:relative; text-decoration:none;
    transition:background .18s, color .18s, transform .14s;
}
.tcIconBtn:hover {
    background:var(--tc-purple-pale);
    color:var(--tc-purple); transform:translateY(-1px);
}
.tcIconBtn .notif-badge {
    position:absolute; top:5px; right:5px;
    width:8px; height:8px;
    background:#EF4444; border-radius:50%;
    border:2px solid var(--tc-white);
}

.tcProfile {
    display:inline-flex; align-items:center; gap:9px;
    padding:5px 10px 5px 5px;
    border-radius:var(--tc-r-pill); margin-left:4px;
    transition:background .18s;
}
.tcProfile:hover { background:var(--tc-purple-pale); }
.tcProfile img {
    width:34px; height:34px; border-radius:50%; object-fit:cover;
    border:2px solid var(--tc-purple-pale); flex-shrink:0;
}
.tcProfile__name {
    display:block; font-size:13px; font-weight:600;
    color:var(--tc-text); white-space:nowrap;
    max-width:120px; overflow:hidden; text-overflow:ellipsis;
}
.tcProfile__handle { display:block; font-size:11px; color:var(--tc-text-muted); }


/* ================================================================
   4. BOUTONS PARTAGÉS
================================================================ */

.btn {
    display:inline-flex; align-items:center; gap:7px;
    border:none; border-radius:var(--tc-r-pill);
    font-family:'DM Sans',sans-serif; font-weight:600;
    cursor:pointer; text-decoration:none; line-height:1;
    transition:background .2s, transform .15s, box-shadow .2s;
}

.btn--primary {
    background:var(--tc-purple); color:#fff;
    padding:13px 26px; font-size:14.5px;
}
.btn--primary:hover {
    background:var(--tc-purple-hover);
    transform:translateY(-2px);
    box-shadow:0 8px 24px rgba(107,53,232,.35);
}

.btn--secondary {
    background:var(--tc-purple-pale); color:var(--tc-purple);
    padding:10px 18px; font-size:13px;
}
.btn--secondary:hover {
    background:var(--tc-purple); color:#fff;
    transform:translateY(-1px);
}

.btn--small {
    background:var(--tc-purple); color:#fff;
    padding:7px 16px; font-size:12px;
}
.btn--small:hover {
    background:var(--tc-purple-hover);
    transform:translateY(-1px);
    box-shadow:0 4px 12px rgba(107,53,232,.28);
}

.btn__dot {
    width:8px; height:8px;
    background:rgba(255,255,255,.7);
    border-radius:50%; flex-shrink:0;
}


/* ================================================================
   5. FOOTER PARTAGÉ
================================================================ */

.tc-footer {
    display:flex; align-items:center; justify-content:center;
    gap:16px; padding:24px var(--tc-page-px);
    font-size:12.5px; color:var(--tc-text-muted);
    border-top:1px solid var(--tc-border);
    background:var(--tc-white); margin-top:48px;
}
.tc-footer a { color:var(--tc-text-muted); transition:color .15s; }
.tc-footer a:hover { color:var(--tc-purple); }
.tc-footer__sep { opacity:.35; }


/* ================================================================
   6a. VUE VISITEUR — WRAPPER
================================================================ */

.home-visitor { width:100%; }

.home-visitor .tc-section {
    padding-left:var(--tc-page-px);
    padding-right:var(--tc-page-px);
}

.hero-section-wrap { padding:28px var(--tc-page-px) 0; }


/* ================================================================
   6b. HERO
================================================================ */

.hero {
    display:grid; grid-template-columns:1fr 1.1fr;
    min-height:340px;
    background:var(--tc-white);
    border-radius:var(--tc-r-xl); overflow:hidden;
    box-shadow:var(--tc-shadow-md);
    animation:fadeUp .5s var(--tc-ease-out) both;
}

.hero__content {
    display:flex; flex-direction:column;
    justify-content:center; gap:20px;
    padding:52px 48px;
    background:linear-gradient(145deg,#fff 50%,#F2EDFF 100%);
}

.hero__title {
    font-family:'Playfair Display',serif;
    font-size:clamp(30px,3.6vw,50px);
    font-weight:900; line-height:1.04;
    color:var(--tc-text);
}
.hero__title span { color:var(--tc-purple); }

.hero__text {
    font-size:14.5px; color:var(--tc-text-muted);
    line-height:1.72; max-width:320px;
}


/* ================================================================
   6c. DESTINATIONS CULINAIRES
================================================================ */

.hero-destinations {
    position:relative; overflow:hidden;
    background:#C3DCE8;
}

.hero-destinations::before {
    content:''; position:absolute; inset:0;
    background:
        radial-gradient(circle at 30% 70%,rgba(255,255,255,.18) 0%,transparent 55%),
        radial-gradient(circle at 80% 20%,rgba(107,53,232,.08) 0%,transparent 50%);
    pointer-events:none;
}

.hero-destinations__header {
    position:absolute; top:16px; left:16px; right:16px; z-index:2;
    display:flex; align-items:center; justify-content:space-between;
    padding:8px 16px;
    background:rgba(255,255,255,.9);
    backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
    border-radius:var(--tc-r-pill);
    box-shadow:0 2px 14px rgba(0,0,0,.08);
}
.hero-destinations__title {
    font-size:10px; font-weight:700;
    letter-spacing:.1em; text-transform:uppercase;
    color:var(--tc-purple);
}
.hero-destinations__link {
    font-size:11.5px; font-weight:500;
    color:var(--tc-purple); transition:opacity .15s;
}
.hero-destinations__link:hover { opacity:.7; }

.hero-destinations__grid {
    position:absolute; bottom:20px; right:20px;
    display:flex; gap:12px; z-index:2;
}

.destination-card {
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
    border-radius:var(--tc-r-lg); overflow:hidden; width:150px;
    box-shadow:0 6px 24px rgba(0,0,0,.14);
    transition:transform .24s var(--tc-ease-out), box-shadow .24s;
}
.destination-card:hover {
    transform:translateY(-5px);
    box-shadow:0 14px 36px rgba(0,0,0,.2);
}
.destination-card__image { display:block; overflow:hidden; }
.destination-card__image img {
    width:100%; height:90px; object-fit:cover;
    transition:transform .38s var(--tc-ease-out);
}
.destination-card:hover .destination-card__image img { transform:scale(1.07); }
.destination-card__body { padding:10px 12px 13px; }
.destination-card__country {
    display:flex; align-items:center; gap:5px;
    font-size:11px; color:var(--tc-text-muted); margin-bottom:3px;
}
.destination-card__name {
    font-family:'Playfair Display',serif;
    font-size:13.5px; font-weight:700;
    line-height:1.22; margin-bottom:9px;
}
.destination-card__name a:hover { color:var(--tc-purple); }


/* ================================================================
   6d. RECIPE CARDS PARTAGÉES
================================================================ */

.recipe-card {
    background:var(--tc-white);
    border-radius:var(--tc-r-lg); overflow:hidden;
    box-shadow:var(--tc-shadow-sm);
    border:1px solid var(--tc-border-light);
    transition:transform .24s var(--tc-ease-out), box-shadow .24s, border-color .24s;
}
.recipe-card:hover {
    transform:translateY(-6px);
    box-shadow:var(--tc-shadow-lg); border-color:transparent;
}

.recipe-card__image { display:block; overflow:hidden; }
.recipe-card__image img {
    width:100%; height:170px; object-fit:cover;
    transition:transform .4s var(--tc-ease-out);
}
.recipe-card:hover .recipe-card__image img { transform:scale(1.06); }

.recipe-card__body { padding:14px 16px 17px; }

.recipe-card__country {
    display:flex; align-items:center; gap:5px;
    font-size:11.5px; color:var(--tc-text-muted); margin-bottom:6px;
}

.recipe-card__title {
    font-family:'Playfair Display',serif;
    font-size:15px; font-weight:700;
    line-height:1.25; margin-bottom:13px;
}
.recipe-card__title a { transition:color .15s; }
.recipe-card__title a:hover { color:var(--tc-purple); }

/* Grande variante — Inspiration */
.recipe-card--large .recipe-card__image img { height:220px; }
.recipe-card--large .recipe-card__title { font-size:17px; }
.recipe-card--large .recipe-card__body { padding:15px 17px 18px; }


/* ================================================================
   6e. GRILLES DE RECETTES
================================================================ */

.recipes-grid--5 {
    display:grid; grid-template-columns:repeat(5,1fr); gap:18px;
}
.recipes-grid--3 {
    display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
}


/* ================================================================
   6f. THÈMES
================================================================ */

.themes-grid {
    display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
}

.theme-card {
    display:flex; align-items:center; gap:14px;
    padding:18px 20px;
    background:var(--tc-white);
    border-radius:var(--tc-r-lg);
    border:1.5px solid var(--tc-border-light);
    font-size:14px; font-weight:500; color:var(--tc-text);
    box-shadow:var(--tc-shadow-xs);
    transition:background .18s, color .18s, border-color .18s,
               transform .2s var(--tc-ease-out), box-shadow .18s;
    text-decoration:none;
}
.theme-card:hover {
    background:var(--tc-purple-pale); color:var(--tc-purple);
    border-color:rgba(107,53,232,.22);
    transform:translateY(-3px); box-shadow:var(--tc-shadow-md);
}

.theme-card__icon {
    display:grid; place-items:center;
    width:42px; height:42px;
    background:var(--tc-purple-bg);
    border-radius:12px; font-size:20px; flex-shrink:0;
    transition:background .18s;
}
.theme-card:hover .theme-card__icon { background:rgba(107,53,232,.14); }

.theme-card__img {
    width:42px; height:42px; object-fit:cover;
    border-radius:10px; flex-shrink:0;
}


/* ================================================================
   6g. SECTIONS VISITEUR
================================================================ */

.tc-section {
    margin-bottom:44px;
    animation:fadeUp .5s var(--tc-ease-out) both;
}
.tc-section:nth-child(1) { animation-delay:.04s; }
.tc-section:nth-child(2) { animation-delay:.09s; }
.tc-section:nth-child(3) { animation-delay:.14s; }
.tc-section:nth-child(4) { animation-delay:.19s; }
.tc-section:nth-child(5) { animation-delay:.24s; }

.tc-section__head {
    display:flex; align-items:baseline;
    justify-content:space-between;
    margin-bottom:20px; gap:14px;
}

.tc-section__title {
    font-family:'Playfair Display',serif;
    font-size:26px; font-weight:700; line-height:1.1;
}
.tc-section__title em { font-style:normal; color:var(--tc-purple); }

.tc-section__link {
    display:inline-flex; align-items:center; gap:5px;
    font-size:13.5px; font-weight:500;
    color:var(--tc-purple); white-space:nowrap;
    transition:gap .2s;
}
.tc-section__link:hover { gap:10px; }

.tc-section--first { padding-top:32px; }


/* ================================================================
   7a. VUE MEMBRE — LAYOUT 3 COLONNES
================================================================ */

.home-app { min-height:calc(100vh - var(--tc-nav-h)); width:100%; }

.home-layout {
    display:grid;
    grid-template-columns:var(--tc-sidebar-w) 1fr var(--tc-rightbar-w);
    gap:22px; width:100%;
    padding:24px var(--tc-page-px);
    align-items:start;
}


/* ================================================================
   7b. SIDEBAR GAUCHE
================================================================ */

.home-sidebar {
    position:sticky; top:calc(var(--tc-nav-h) + 14px);
    display:flex; flex-direction:column; gap:10px;
}

.home-profileCard {
    background:var(--tc-white);
    border-radius:var(--tc-r-lg); padding:15px 16px;
    box-shadow:var(--tc-shadow-sm);
    border:1px solid var(--tc-border-light);
}
.home-profileCard__row { display:flex; align-items:center; gap:10px; }
.home-profileCard__avatar {
    width:44px; height:44px; border-radius:50%;
    overflow:hidden; flex-shrink:0;
    border:2.5px solid var(--tc-purple-pale);
}
.home-profileCard__avatar img { width:100%; height:100%; object-fit:cover; }
.home-profileCard__meta { flex:1; min-width:0; }
.home-profileCard__name {
    font-size:13.5px; font-weight:700;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.home-profileCard__handle { font-size:11.5px; color:var(--tc-text-muted); }

.home-iconBtn {
    display:grid; place-items:center;
    width:30px; height:30px;
    border-radius:var(--tc-r-sm);
    color:var(--tc-text-muted); font-size:14px;
    flex-shrink:0; text-decoration:none;
    transition:background .15s, color .15s;
}
.home-iconBtn:hover { background:var(--tc-purple-pale); color:var(--tc-purple); }

.home-nav {
    background:var(--tc-white);
    border-radius:var(--tc-r-lg); padding:8px;
    box-shadow:var(--tc-shadow-sm);
    border:1px solid var(--tc-border-light);
    display:flex; flex-direction:column; gap:2px;
}
.home-nav__item {
    display:flex; align-items:center; gap:9px;
    padding:10px 12px;
    border-radius:var(--tc-r-sm);
    font-size:13px; font-weight:500;
    color:var(--tc-text-muted); text-decoration:none;
    transition:background .14s, color .14s;
}
.home-nav__item:hover { background:var(--tc-purple-pale); color:var(--tc-purple); }
.home-nav__item--active {
    background:var(--tc-purple-pale); color:var(--tc-purple); font-weight:600;
}

.home-panel {
    background:var(--tc-white);
    border-radius:var(--tc-r-lg); padding:15px 16px;
    box-shadow:var(--tc-shadow-sm);
    border:1px solid var(--tc-border-light);
}
.home-panel__head {
    display:flex; align-items:center;
    justify-content:space-between; margin-bottom:12px;
}
.home-panel__title {
    font-family:'Playfair Display',serif;
    font-size:14px; font-weight:700;
}
.home-panel__link {
    font-size:11.5px; font-weight:500;
    color:var(--tc-purple); transition:opacity .15s;
}
.home-panel__link:hover { opacity:.7; }

.home-pillgrid { display:flex; flex-wrap:wrap; gap:6px; }
.home-pill {
    display:inline-flex; padding:5px 13px;
    background:var(--tc-purple-bg);
    border-radius:var(--tc-r-pill);
    font-size:11.5px; font-weight:500; color:var(--tc-text);
    border:1.5px solid transparent; text-decoration:none;
    transition:background .14s, color .14s, border-color .14s;
}
.home-pill:hover {
    background:var(--tc-purple-pale); color:var(--tc-purple);
    border-color:rgba(107,53,232,.2);
}


/* ================================================================
   7c. FEED PRINCIPAL
================================================================ */

.home-main { min-width:0; display:flex; flex-direction:column; gap:18px; }

.home-section--memberHero {
    background:var(--tc-white);
    border-radius:var(--tc-r-lg); padding:22px 28px;
    box-shadow:var(--tc-shadow-sm);
    border:1px solid var(--tc-border-light);
    animation:fadeUp .4s var(--tc-ease-out) both;
}
.home-section__head {
    display:flex; align-items:center;
    justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.home-section__kicker {
    display:block;
    font-size:10px; font-weight:700;
    letter-spacing:.1em; text-transform:uppercase;
    color:var(--tc-purple); margin-bottom:4px;
}
.home-section__title {
    font-family:'Playfair Display',serif;
    font-size:22px; font-weight:700; line-height:1.1;
}
.home-section__sub { font-size:12.5px; color:var(--tc-text-muted); margin-top:3px; }
.home-themeSections { display:flex; flex-direction:column; gap:18px; }


/* ================================================================
   7d. THEME ROWS + CAROUSELS
================================================================ */

.home-themeRow {
    background:var(--tc-white);
    border-radius:var(--tc-r-lg); padding:20px 22px;
    box-shadow:var(--tc-shadow-sm);
    border:1px solid var(--tc-border-light);
    animation:fadeUp .45s var(--tc-ease-out) both;
}
.home-themeRow:nth-child(1) { animation-delay:.04s; }
.home-themeRow:nth-child(2) { animation-delay:.08s; }
.home-themeRow:nth-child(3) { animation-delay:.12s; }
.home-themeRow:nth-child(4) { animation-delay:.16s; }
.home-themeRow:nth-child(5) { animation-delay:.20s; }
.home-themeRow:nth-child(6) { animation-delay:.24s; }
.home-themeRow:nth-child(7) { animation-delay:.28s; }
.home-themeRow:nth-child(8) { animation-delay:.32s; }

.home-themeRow__head {
    display:flex; align-items:flex-start;
    justify-content:space-between; margin-bottom:16px; gap:12px;
}
.home-themeRow__title {
    font-family:'Playfair Display',serif;
    font-size:17px; font-weight:700; line-height:1.2;
}
.home-themeRow__subtitle { font-size:12px; color:var(--tc-text-muted); margin-top:2px; }
.home-themeRow__link {
    font-size:12.5px; font-weight:500;
    color:var(--tc-purple); white-space:nowrap; flex-shrink:0;
    transition:opacity .15s;
}
.home-themeRow__link:hover { opacity:.7; }

.home-carouselWrap {
    position:relative; display:flex; align-items:center; gap:8px;
}
.home-carousel {
    display:flex; gap:14px; overflow-x:auto;
    scroll-behavior:smooth; flex:1; padding-bottom:4px;
    scrollbar-width:thin;
    scrollbar-color:var(--tc-purple-pale) transparent;
}
.home-carousel::-webkit-scrollbar { height:3px; }
.home-carousel::-webkit-scrollbar-thumb {
    background:var(--tc-purple-pale); border-radius:3px;
}

.home-carouselBtn {
    flex-shrink:0; width:32px; height:32px;
    border-radius:50%;
    background:var(--tc-white); border:1.5px solid var(--tc-border);
    color:var(--tc-purple); font-size:20px; font-weight:700;
    display:grid; place-items:center; line-height:1;
    box-shadow:var(--tc-shadow-sm);
    transition:background .15s, box-shadow .15s, transform .12s;
}
.home-carouselBtn:hover {
    background:var(--tc-purple-pale);
    box-shadow:var(--tc-shadow-md); transform:scale(1.1);
}


/* ================================================================
   7e. RECIPE CARDS FEED MEMBRE
================================================================ */

.home-recipeCard {
    background:#FAFAFE;
    border-radius:var(--tc-r);
    min-width:160px; max-width:160px;
    overflow:hidden; flex-shrink:0;
    border:1.5px solid var(--tc-border-light);
    box-shadow:var(--tc-shadow-xs);
    transition:transform .22s var(--tc-ease-out), box-shadow .22s, border-color .22s;
}
.home-recipeCard:hover {
    transform:translateY(-4px);
    box-shadow:var(--tc-shadow-md);
    border-color:rgba(107,53,232,.18);
}
.home-recipeCard__media { display:block; overflow:hidden; }
.home-recipeCard__media img {
    width:100%; height:112px; object-fit:cover;
    transition:transform .34s var(--tc-ease-out);
}
.home-recipeCard:hover .home-recipeCard__media img { transform:scale(1.08); }
.home-recipeCard__body { padding:10px 11px 12px; }
.home-recipeCard__meta {
    display:flex; align-items:center;
    justify-content:space-between; gap:4px; margin-bottom:4px;
}
.home-recipeCard__country {
    font-size:10px; color:var(--tc-text-muted);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    display:flex; align-items:center; gap:4px;
}
.home-recipeCard__date { font-size:9.5px; color:var(--tc-text-light); white-space:nowrap; flex-shrink:0; }
.home-recipeCard__title {
    font-family:'Playfair Display',serif;
    font-size:12.5px; font-weight:700; line-height:1.3;
    margin-bottom:9px;
    display:-webkit-box;
    -webkit-line-clamp:2; -webkit-box-orient:vertical;
    overflow:hidden;
}
.home-recipeCard__title a { transition:color .14s; }
.home-recipeCard__title a:hover { color:var(--tc-purple); }
.home-recipeCard__actions { display:flex; }
.home-recipeCard__button {
    display:inline-flex; align-items:center;
    background:var(--tc-purple); color:#fff;
    border-radius:var(--tc-r-pill);
    padding:5px 12px; font-size:10.5px; font-weight:600;
    text-decoration:none; transition:background .15s;
}
.home-recipeCard__button:hover { background:var(--tc-purple-hover); }


/* ================================================================
   7f. SIDEBAR DROITE
================================================================ */

.home-rightbar {
    position:sticky; top:calc(var(--tc-nav-h) + 14px); min-width:0;
}
.home-rightbar__inner { display:flex; flex-direction:column; gap:16px; }

.home-card {
    background:var(--tc-white);
    border-radius:var(--tc-r-lg); padding:17px 19px;
    box-shadow:var(--tc-shadow-sm);
    border:1px solid var(--tc-border-light);
}
.home-card__head {
    display:flex; align-items:flex-start;
    justify-content:space-between; margin-bottom:14px; gap:10px;
}
.home-card__eyebrow {
    font-size:10px; font-weight:700;
    letter-spacing:.09em; text-transform:uppercase;
    color:var(--tc-purple); margin-bottom:2px;
}
.home-card__title {
    font-family:'Playfair Display',serif;
    font-size:15px; font-weight:700; line-height:1.2;
}
.home-card__link {
    font-size:11.5px; font-weight:500;
    color:var(--tc-purple); white-space:nowrap; flex-shrink:0;
    transition:opacity .15s;
}
.home-card__link:hover { opacity:.7; }


/* ================================================================
   7g. NOTIFICATIONS
================================================================ */

.home-notifFeed { display:flex; flex-direction:column; gap:2px; }
.home-notifFeed__item {
    display:flex; align-items:flex-start; gap:10px;
    padding:9px 8px; border-radius:var(--tc-r-sm);
    text-decoration:none; transition:background .14s;
}
.home-notifFeed__item:hover { background:var(--tc-purple-bg); }
.home-notifFeed__item.is-unread { background:var(--tc-purple-pale); }
.home-notifFeed__avatar {
    width:32px; height:32px; border-radius:50%;
    overflow:hidden; flex-shrink:0; border:2px solid var(--tc-border);
}
.home-notifFeed__avatar img { width:100%; height:100%; object-fit:cover; }
.home-notifFeed__content { flex:1; min-width:0; }
.home-notifFeed__text { font-size:12px; line-height:1.45; color:var(--tc-text); margin-bottom:3px; }
.home-notifFeed__text strong { font-weight:700; }
.home-notifFeed__meta {
    display:flex; align-items:center; gap:6px;
    font-size:10.5px; color:var(--tc-text-muted);
}
.home-notifDot { width:6px; height:6px; border-radius:50%; background:var(--tc-purple); flex-shrink:0; }


/* ================================================================
   7h. AMIS
================================================================ */

.home-friendList { display:flex; flex-direction:column; gap:2px; }
.home-friendItem {
    width:100%; background:none; border:none;
    display:flex; align-items:center; gap:10px;
    padding:8px; border-radius:var(--tc-r-sm);
    text-align:left; cursor:pointer; transition:background .14s;
}
.home-friendItem:hover { background:var(--tc-purple-bg); }
.home-friendItem__avatar {
    width:34px; height:34px; border-radius:50%;
    overflow:hidden; flex-shrink:0; border:2px solid var(--tc-border);
}
.home-friendItem__avatar img { width:100%; height:100%; object-fit:cover; }
.home-friendItem__body { flex:1; min-width:0; }
.home-friendItem__name {
    display:block; font-size:12.5px; font-weight:600;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--tc-text);
}
.home-friendItem__sub { display:block; font-size:10.5px; color:var(--tc-text-muted); }
.home-friendItem__action {
    display:inline-flex; align-items:center;
    font-size:10.5px; font-weight:600;
    color:var(--tc-purple); background:var(--tc-purple-pale);
    border-radius:var(--tc-r-pill); padding:3px 10px; flex-shrink:0;
    transition:background .14s, color .14s;
}
.home-friendItem:hover .home-friendItem__action { background:var(--tc-purple); color:#fff; }

.tcChatDock {
    position:fixed; bottom:18px; right:18px;
    z-index:350; display:flex; gap:10px; align-items:flex-end;
}


/* ================================================================
   8a. MODALE — OVERLAY
================================================================ */

#overlayCapture {
    display:none; position:fixed; inset:0; z-index:450;
    background:rgba(12,4,30,.54);
    backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
}
#overlayCapture.is-open { display:block; animation:fadeIn .22s ease both; }


/* ================================================================
   8b. MODALE — CONTAINER
================================================================ */

.indexCapture {
    display:none; position:fixed; z-index:460;
    top:50%; left:50%; transform:translate(-50%,-50%);
    width:95%; max-width:580px; max-height:92vh; overflow-y:auto;
    background:var(--tc-white); border-radius:var(--tc-r-xl);
    box-shadow:var(--tc-shadow-xl); flex-direction:column;
    scrollbar-width:thin; scrollbar-color:var(--tc-purple-pale) transparent;
}
.indexCapture::-webkit-scrollbar { width:4px; }
.indexCapture::-webkit-scrollbar-thumb { background:var(--tc-purple-pale); border-radius:4px; }
.indexCapture.is-open { display:flex; animation:modalSlideIn .28s var(--tc-ease-out) both; }


/* ================================================================
   8c. MODALE — HEADER
================================================================ */

.modalHeader {
    position:sticky; top:0; z-index:10;
    display:flex; align-items:center; justify-content:space-between;
    padding:20px 26px 18px;
    background:var(--tc-white); border-bottom:1px solid var(--tc-border);
    border-radius:var(--tc-r-xl) var(--tc-r-xl) 0 0;
}
.modalHeader h2 {
    font-family:'Playfair Display',serif;
    font-size:19px; font-weight:700; color:var(--tc-text);
}
#closeCapture {
    display:grid; place-items:center;
    width:34px; height:34px; border-radius:50%; border:none;
    background:var(--tc-purple-bg);
    color:var(--tc-text-muted); font-size:19px; line-height:1;
    transition:background .15s, color .15s, transform .2s;
}
#closeCapture:hover {
    background:var(--tc-purple-pale); color:var(--tc-purple);
    transform:rotate(90deg);
}


/* ================================================================
   8d. MODALE — BODY / CHAMPS
================================================================ */

.modal-body { padding:22px 26px; display:flex; flex-direction:column; gap:18px; }

.modal-body label,
.modal-body > div > label:first-child {
    display:block; font-size:12.5px; font-weight:600;
    color:var(--tc-text); margin-bottom:6px;
}

.modal-body .form-control {
    width:100%; padding:10px 15px;
    border:1.5px solid var(--tc-border);
    border-radius:var(--tc-r-sm);
    font-size:13.5px; color:var(--tc-text);
    background:var(--tc-surface); outline:none;
    font-family:'DM Sans',sans-serif;
    transition:border-color .2s, background .2s, box-shadow .2s;
}
.modal-body .form-control::placeholder { color:var(--tc-text-ph); }
.modal-body .form-control:focus {
    border-color:var(--tc-purple); background:var(--tc-white);
    box-shadow:0 0 0 3px rgba(107,53,232,.1);
}

.modal-body select.form-control {
    appearance:none; -webkit-appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236A6480' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 14px center;
    padding-right:38px;
}

.modal-body textarea.form-control { resize:vertical; min-height:108px; line-height:1.65; }

.choisirPays { position:relative; }
#resultatPaysModale {
    position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:20;
    background:var(--tc-white); border:1.5px solid var(--tc-border);
    border-radius:var(--tc-r-sm); box-shadow:var(--tc-shadow-lg);
    max-height:200px; overflow-y:auto; display:none;
    animation:fadeDown .15s ease;
}
#resultatPaysModale ul { padding:4px; list-style:none; }
#resultatPaysModale li {
    padding:9px 13px; border-radius:var(--tc-r-xs);
    font-size:13px; cursor:pointer; transition:background .12s;
}
#resultatPaysModale li:hover { background:var(--tc-purple-pale); color:var(--tc-purple); }

.custom-file-upload {
    display:flex; align-items:center; gap:11px;
    padding:12px 16px; border:2px dashed var(--tc-border);
    border-radius:var(--tc-r-sm);
    font-size:13px; font-weight:500; color:var(--tc-text-muted);
    background:var(--tc-surface); cursor:pointer; user-select:none;
    transition:border-color .2s, background .2s, color .2s;
}
.custom-file-upload:hover {
    border-color:var(--tc-purple); background:var(--tc-purple-pale); color:var(--tc-purple);
}
.custom-file-upload input[type="file"] { display:none; }

.image-preview {
    display:none; border-radius:var(--tc-r-sm); overflow:hidden;
    border:1.5px solid var(--tc-border); animation:fadeIn .2s ease;
}
.previewing-capture { width:100%; max-height:220px; object-fit:cover; display:block; }


/* ================================================================
   8e. MODALE — FOOTER
================================================================ */

.modalFooter {
    position:sticky; bottom:0; z-index:10;
    display:flex; align-items:center; justify-content:flex-end; gap:10px;
    padding:16px 26px 20px;
    background:var(--tc-white); border-top:1px solid var(--tc-border);
    border-radius:0 0 var(--tc-r-xl) var(--tc-r-xl);
}
#messageCapture { flex:1; font-size:12.5px; color:var(--tc-text-muted); }
#messageCapture.success { color:#16a34a; }
#messageCapture.error   { color:#dc2626; }
.loaderCapture { display:none; align-items:center; }
.loaderCapture img { width:22px; height:22px; animation:spin .7s linear infinite; }

.post-button {
    display:inline-flex; align-items:center; justify-content:center;
    background:var(--tc-purple); color:#fff;
    border:none; border-radius:var(--tc-r-pill);
    padding:11px 28px;
    font-size:13.5px; font-weight:600;
    font-family:'DM Sans',sans-serif; cursor:pointer;
    transition:background .2s, transform .15s, box-shadow .15s; white-space:nowrap;
}
.post-button:hover {
    background:var(--tc-purple-hover); transform:translateY(-1px);
    box-shadow:0 5px 18px rgba(107,53,232,.32);
}
.post-button:active { transform:translateY(0); }


/* ================================================================
   9. ANIMATIONS & KEYFRAMES
================================================================ */

@keyframes fadeUp {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
    from { opacity:0; }
    to   { opacity:1; }
}
@keyframes fadeDown {
    from { opacity:0; transform:translateY(-7px); }
    to   { opacity:1; transform:translateY(0); }
}
@keyframes modalSlideIn {
    from { opacity:0; transform:translate(-50%,-46%); }
    to   { opacity:1; transform:translate(-50%,-50%); }
}
@keyframes spin { to { transform:rotate(360deg); } }

/* Stagger recipe cards */
.recipes-grid--5 .recipe-card:nth-child(1) { animation:fadeUp .42s var(--tc-ease-out) .03s both; }
.recipes-grid--5 .recipe-card:nth-child(2) { animation:fadeUp .42s var(--tc-ease-out) .07s both; }
.recipes-grid--5 .recipe-card:nth-child(3) { animation:fadeUp .42s var(--tc-ease-out) .11s both; }
.recipes-grid--5 .recipe-card:nth-child(4) { animation:fadeUp .42s var(--tc-ease-out) .15s both; }
.recipes-grid--5 .recipe-card:nth-child(5) { animation:fadeUp .42s var(--tc-ease-out) .19s both; }
.recipes-grid--3 .recipe-card:nth-child(1) { animation:fadeUp .42s var(--tc-ease-out) .05s both; }
.recipes-grid--3 .recipe-card:nth-child(2) { animation:fadeUp .42s var(--tc-ease-out) .10s both; }
.recipes-grid--3 .recipe-card:nth-child(3) { animation:fadeUp .42s var(--tc-ease-out) .15s both; }


/* ================================================================
   10. RESPONSIVE
================================================================ */

@media (max-width:1380px) {
    :root { --tc-sidebar-w:220px; --tc-rightbar-w:240px; --tc-page-px:24px; }
}

@media (max-width:1180px) {
    .home-layout { grid-template-columns:var(--tc-sidebar-w) 1fr; }
    .home-rightbar { display:none; }
}

@media (max-width:900px) {
    :root { --tc-page-px:18px; }
    .home-layout { grid-template-columns:1fr; padding:18px var(--tc-page-px); }
    .home-sidebar { display:none; }
    .recipes-grid--5 { grid-template-columns:repeat(3,1fr); }
    .themes-grid { grid-template-columns:repeat(2,1fr); }
    .hero { grid-template-columns:1fr; min-height:auto; }
    .hero-destinations { display:none; }
    .hero__content { padding:36px 28px; }
}

@media (max-width:640px) {
    :root { --tc-nav-h:54px; --tc-page-px:14px; }
    .tcHeader { gap:8px; }
    .tcHeader__brandText { display:none; }
    .tcHeaderSearch input[type="search"] { font-size:12.5px; }
    .tcProfile div { display:none; }
    .recipes-grid--5 { grid-template-columns:repeat(2,1fr); }
    .recipes-grid--3 { grid-template-columns:1fr; }
    .themes-grid { grid-template-columns:repeat(2,1fr); }
    .tc-section__title,.home-section__title { font-size:20px; }
    .hero__title { font-size:28px; }
    .hero__content { padding:28px 22px; }
    .indexCapture {
        max-width:100%; width:100%; top:auto; bottom:0; left:0;
        transform:none; border-radius:var(--tc-r-xl) var(--tc-r-xl) 0 0;
        max-height:94vh;
    }
    .indexCapture.is-open { animation:modalSlideUp .3s var(--tc-ease-out) both; }
    .modalHeader { border-radius:var(--tc-r-xl) var(--tc-r-xl) 0 0; }
    .home-section--memberHero { padding:16px; }
    .home-themeRow { padding:14px; }
    .tc-section { margin-bottom:30px; }
}

@keyframes modalSlideUp {
    from { opacity:0; transform:translateY(50px); }
    to   { opacity:1; transform:translateY(0); }
}

@media (max-width:420px) {
    .recipes-grid--5 { grid-template-columns:repeat(2,1fr); gap:10px; }
    .themes-grid { grid-template-columns:1fr 1fr; gap:10px; }
    .home-recipeCard { min-width:138px; max-width:138px; }
    .home-recipeCard__media img { height:90px; }
    .destination-card { width:130px; }
    .destination-card__image img { height:76px; }
}