/* ============================================================================
 * visiteur.css — TripCooking · Vue VISITEUR (branche else d'index.php)
 * ----------------------------------------------------------------------------
 * Chargé UNIQUEMENT pour les visiteurs. Couvre tout <main class="home-visitor">
 * + le footer .tc-footer.
 * Particularité : les recettes/pays SANS couverture affichent un dégradé de
 * marque (motif « assiette ») au lieu d'une vignette noire — l'image réelle,
 * quand elle existe, se pose par-dessus.
 * Identité : chrome sombre, framboise #CA4A82 / safran #E8A93C,
 *            Plus Jakarta Sans + IBM Plex Mono. Responsive 1024/900/768/560/400.
 * ========================================================================== */

/* ============================================================
 * 0. TOKENS (autonomes)
 * ============================================================ */
.home-visitor,
.tc-footer{
  --chrome:#16171B; --chrome-2:#1C1E23; --chrome-3:#23262C;
  --line:#2A2D34; --line-2:#34373F;
  --on:#ECEDE9; --soft:#9A9E98; --muted:#6C7069;
  --map-bg:#E7E6DF;
  --accent:#CA4A82; --accent-deep:#B6306B; --accent-2:#E14B7A;
  --accent-soft:rgba(202,74,130,.16);
  --live:#34D27B; --gold:#E8A93C; --green:#1f8a5e;
  --ui:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,monospace;
  --r:14px; --r-lg:18px;
  --sh:0 1px 0 rgba(255,255,255,.03),0 18px 38px -24px rgba(0,0,0,.72);
}

/* ============================================================
 * 1. CONTENEUR
 * ============================================================ */
.home-visitor{
  max-width:1200px;
  margin:0 auto;
  padding:34px 24px 64px;
  color:var(--on);
  font-family:var(--ui);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
.home-visitor *,
.home-visitor *::before,
.home-visitor *::after{box-sizing:border-box}
.home-visitor h1,.home-visitor h2,.home-visitor h3{margin:0;letter-spacing:-.02em}
.home-visitor a{color:inherit;text-decoration:none}
.home-visitor img{display:block;max-width:100%}
.home-visitor em{font-style:normal;color:var(--accent-2)}

/* ============================================================
 * 2. MOTIF « ASSIETTE » — dégradés de repli (vignettes sans image)
 *    .is-tile applique un dégradé + reflet ; l'<img> se pose par-dessus.
 * ============================================================ */
.is-tile{
  position:relative;
  background:
    radial-gradient(circle at 36% 30%,rgba(255,255,255,.20),rgba(255,255,255,.04) 46%,transparent 62%),
    linear-gradient(135deg,var(--ga,#7fc7a6),var(--gb,#1f8a5e));
}
.is-tile > img,
.is-tile > video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* palette tournante (6 teintes) */
.tile-cycle:nth-child(6n+1) .is-tile{--ga:#ff9a62;--gb:#e8541f}
.tile-cycle:nth-child(6n+2) .is-tile{--ga:#7fc7a6;--gb:#1f8a5e}
.tile-cycle:nth-child(6n+3) .is-tile{--ga:#f0b65a;--gb:#c8761a}
.tile-cycle:nth-child(6n+4) .is-tile{--ga:#7eb6e0;--gb:#2f6aa8}
.tile-cycle:nth-child(6n+5) .is-tile{--ga:#e887ab;--gb:#b23a68}
.tile-cycle:nth-child(6n+6) .is-tile{--ga:#c9d36a;--gb:#7e9a2a}

/* ============================================================
 * 3. BOUTONS
 * ============================================================ */
.vBtn{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 20px;border-radius:12px;font-weight:800;font-size:14px;white-space:nowrap;transition:transform .14s,filter .14s,background .15s,border-color .15s,color .15s}
.vBtn--saffron{background:linear-gradient(135deg,var(--gold),#c8761a);color:#3a2a06;box-shadow:0 12px 24px -10px rgba(232,169,60,.6)}
.vBtn--saffron:hover{transform:translateY(-1px);filter:brightness(1.05)}
.vBtn--saffron:active{transform:translateY(0)}
.vBtn--ghost{background:transparent;border:1px solid var(--line-2);color:var(--on)}
.vBtn--ghost:hover{border-color:var(--soft);background:var(--chrome-2)}
.vBtn__dot{width:8px;height:8px;border-radius:50%;background:currentColor;flex-shrink:0}

/* ============================================================
 * 4. HÉROS
 * ============================================================ */
.vHero{display:grid;grid-template-columns:1.04fr .96fr;gap:30px;align-items:center;padding:6px 0 40px}
.vHero__intro{min-width:0}
.vHero__edition{display:inline-block;font-family:var(--mono);font-size:11.5px;letter-spacing:.06em;color:var(--gold);margin-bottom:14px}
.vHero__title{font-size:clamp(28px,4.4vw,42px);font-weight:800;line-height:1.1}
.vHero__title em{font-style:italic}
.vHero__title span{display:block;margin-top:10px;font-size:clamp(15px,1.7vw,18px);font-weight:600;color:var(--soft);letter-spacing:-.01em}
.vHero__text{max-width:460px;margin:16px 0 22px;font-size:14.5px;color:var(--soft)}
.vHero__actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:26px}
.vHero__stats{display:flex;align-items:center;gap:20px}
.vHero__statNum{font-family:var(--mono);font-size:26px;font-weight:500;line-height:1}
.vHero__statLbl{margin-top:4px;font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.vHero__statSep{width:1px;height:34px;background:var(--line)}
.vHero__mapWrap{position:relative;min-height:340px;border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--line);background:var(--map-bg);box-shadow:var(--sh)}
.vHero__map{position:absolute;inset:0}
.vHero__map .leaflet-container{background:var(--map-bg);font-family:var(--ui)}
.vHero__mapHint{position:absolute;left:12px;bottom:12px;z-index:500;display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;background:rgba(22,23,27,.82);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:var(--on);font-size:11.5px;font-weight:600}
.vHero__mapHintDot{width:7px;height:7px;border-radius:50%;background:var(--live);box-shadow:0 0 0 0 rgba(52,210,123,.55);animation:vPing 1.8s infinite}
@keyframes vPing{0%{box-shadow:0 0 0 0 rgba(52,210,123,.55)}70%{box-shadow:0 0 0 8px rgba(52,210,123,0)}100%{box-shadow:0 0 0 0 rgba(52,210,123,0)}}

/* ============================================================
 * 5. EN-TÊTES DE SECTION
 * ============================================================ */
.vSection{margin-top:50px}
.vSection__head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:20px}
.vSection__headLeft{min-width:0}
.vSection__kicker{display:inline-block;font-family:var(--mono);font-size:11.5px;color:var(--gold);margin-bottom:6px}
.vSection__title{font-size:clamp(20px,2.6vw,26px);font-weight:800;line-height:1.15}
.vSection__title em{font-style:italic}
.vSection__title span{color:var(--soft);font-weight:700}
.vSection__sub{max-width:520px;margin:8px 0 0;font-size:13.5px;color:var(--soft)}
.vSection__link{flex-shrink:0;font-size:13px;font-weight:700;color:var(--soft);padding:8px 12px;border-radius:9px;transition:color .15s,background .15s}
.vSection__link:hover{color:var(--on);background:var(--chrome-2)}

/* ============================================================
 * 6. PAYS LES PLUS CUISINÉS
 * ============================================================ */
.vCountries{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.vCountry{position:relative;display:block;border-radius:var(--r);overflow:hidden;border:1px solid var(--line);background:var(--chrome-2);box-shadow:var(--sh);transition:transform .16s,border-color .16s}
.vCountry:hover{transform:translateY(-3px);border-color:var(--line-2)}
.vCountry__media{position:relative;aspect-ratio:1/1;overflow:hidden}
.vCountry__media img{transition:transform .4s ease}
.vCountry:hover .vCountry__media img{transform:scale(1.05)}
.vCountry__shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 38%,rgba(10,11,13,.18) 60%,rgba(10,11,13,.82) 100%)}
.vCountry__flag{position:absolute;top:9px;left:9px;font-size:22px;line-height:1;filter:drop-shadow(0 2px 4px rgba(0,0,0,.55))}
.vCountry__count{position:absolute;top:10px;right:9px;font-family:var(--mono);font-size:10px;font-weight:600;color:#fff;background:var(--accent-deep);border-radius:999px;padding:3px 9px;box-shadow:0 6px 14px -6px rgba(182,48,107,.8)}
.vCountry__overlay{position:absolute;left:0;right:0;bottom:0;padding:12px 13px}
.vCountry__name{font-size:16px;font-weight:800;color:#fff;letter-spacing:-.01em;text-shadow:0 1px 6px rgba(0,0,0,.4)}
.vCountry__sub{margin-top:3px;font-size:11.5px;font-weight:600;color:rgba(255,255,255,.78);opacity:0;transform:translateY(4px);transition:opacity .18s,transform .18s}
.vCountry:hover .vCountry__sub{opacity:1;transform:none}

/* ============================================================
 * 7. DERNIÈRES RECETTES
 * ============================================================ */
.vRecent{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.vRecentCard{display:flex;flex-direction:column;border-radius:var(--r);overflow:hidden;border:1px solid var(--line);background:var(--chrome-2);box-shadow:var(--sh);transition:transform .16s,border-color .16s}
.vRecentCard:hover{transform:translateY(-3px);border-color:var(--line-2)}
.vRecentCard__media{position:relative;display:block;aspect-ratio:16/10;overflow:hidden}
.vRecentCard__media img{transition:transform .4s ease}
.vRecentCard:hover .vRecentCard__media img{transform:scale(1.05)}
.vRecentCard__country{position:absolute;top:8px;left:8px;display:inline-flex;align-items:center;gap:5px;max-width:calc(100% - 16px);font-size:10.5px;font-weight:700;color:#1A1B18;background:rgba(255,255,255,.92);border-radius:999px;padding:3px 9px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.vRecentCard__theme{position:absolute;top:8px;right:8px;font-size:9.5px;font-weight:800;letter-spacing:.02em;color:#fff;background:var(--accent-deep);border-radius:999px;padding:3px 9px}
.home-post__videoBadge{position:absolute;left:8px;bottom:8px;font-size:10px;font-weight:700;color:#fff;background:rgba(12,13,15,.78);border-radius:999px;padding:3px 9px}
.vRecentCard__body{padding:11px 13px 13px;display:flex;flex-direction:column;gap:10px}
.vRecentCard__title{font-size:14.5px;font-weight:800;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vRecentCard__title a:hover{color:var(--accent-2)}
.vRecentCard__author{display:flex;align-items:center;gap:9px}
.vRecentCard__avatar{width:28px;height:28px;border-radius:50%;overflow:hidden;flex-shrink:0;background:linear-gradient(135deg,var(--accent-deep),var(--gold))}
.vRecentCard__avatar img{width:100%;height:100%;object-fit:cover}
.vRecentCard__authorInfo{min-width:0}
.vRecentCard__authorName{font-size:12px;font-weight:700;color:var(--on);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vRecentCard__time{font-family:var(--mono);font-size:10px;color:var(--muted);margin-top:1px}

/* ============================================================
 * 8. CATÉGORIES
 * ============================================================ */
.vCategories{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.vCategory{position:relative;display:flex;flex-direction:column;border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--line);background:var(--chrome-2);box-shadow:var(--sh)}
.vCategory__head{position:relative;padding:18px 18px 14px;border-bottom:1px solid var(--line);overflow:hidden}
.vCategory__headBg{position:absolute;right:-8px;top:50%;transform:translateY(-50%);font-size:84px;line-height:1;opacity:.14;pointer-events:none}
.vCategory__kicker{font-family:var(--mono);font-size:10.5px;color:var(--muted);position:relative}
.vCategory__title{font-size:18px;font-weight:800;margin:3px 0 8px;position:relative}
.vCategory__count{font-size:11.5px;font-weight:600;color:var(--soft);position:relative}
.vCategory--entree{--cat:var(--green)}
.vCategory--plat{--cat:var(--accent)}
.vCategory--dessert{--cat:var(--gold)}
.vCategory__head::after{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--cat,var(--accent))}
.vCategory__list{display:flex;flex-direction:column;padding:8px;flex:1}
.vCategory__item{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:11px;transition:background .14s}
.vCategory__item:hover{background:var(--chrome-3)}
.vCategory__itemMedia{position:relative;width:46px;height:46px;border-radius:9px;overflow:hidden;flex-shrink:0}
.vCategory__itemMedia img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.vCategory__itemBody{flex:1;min-width:0}
.vCategory__itemTitle{font-size:13px;font-weight:700;color:var(--on);line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vCategory__itemMeta{margin-top:2px;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vCategory__itemArrow{color:var(--muted);font-size:15px;flex-shrink:0;transition:transform .14s,color .14s}
.vCategory__item:hover .vCategory__itemArrow{color:var(--cat,var(--accent));transform:translateX(2px)}
.vCategory__footer{padding:12px 16px;border-top:1px solid var(--line)}
.vCategory__footerLink{font-size:12.5px;font-weight:700;color:var(--cat,var(--accent))}
.vCategory__footerLink:hover{filter:brightness(1.12)}

/* ============================================================
 * 9. APPEL À L'ACTION
 * ============================================================ */
.vCta{margin-top:58px}
.vCta__inner{position:relative;border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--line-2);background:radial-gradient(120% 140% at 0% 0%,rgba(202,74,130,.12),transparent 55%),var(--chrome-2);padding:34px 30px}
.vCta__bg{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.vCta__bgChar{position:absolute;right:24px;top:-22px;font-size:160px;font-weight:800;line-height:1;color:rgba(202,74,130,.12)}
.vCta__content{position:relative;max-width:560px}
.vCta__kicker{font-family:var(--mono);font-size:11.5px;color:var(--gold)}
.vCta__title{font-size:clamp(22px,3vw,28px);font-weight:800;line-height:1.18;margin:8px 0 10px}
.vCta__title em{font-style:italic}
.vCta__text{font-size:14px;color:var(--soft);margin:0 0 20px}
.vCta__actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.vCta__login{font-size:13px;font-weight:700;color:var(--soft)}
.vCta__login:hover{color:var(--on)}

/* ============================================================
 * 10. FOOTER
 * ============================================================ */
.tc-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;max-width:1200px;margin:0 auto;padding:18px 24px 32px;border-top:1px solid var(--line);color:var(--muted);font-family:var(--ui);font-size:12px}
.tc-footer__name{font-weight:800;font-size:14px;color:var(--on)}
.tc-footer__tagline{font-family:var(--mono);margin-left:8px}
.tc-footer__links{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tc-footer__links a{color:var(--soft)}
.tc-footer__links a:hover{color:var(--on)}
.tc-footer__sep{color:var(--line-2)}

/* ============================================================
 * 11. RESPONSIVE
 * ============================================================ */
@media (max-width:1024px){
  .vCountries{grid-template-columns:repeat(3,1fr)}
  .vRecent{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:900px){
  .vHero{grid-template-columns:1fr;gap:22px}
  .vHero__mapWrap{min-height:280px;order:2}
}
@media (max-width:768px){
  .home-visitor{padding:24px 18px 48px}
  .vSection{margin-top:42px}
  .vSection__head{flex-direction:column;align-items:flex-start;gap:10px}
  .vCountries{grid-template-columns:repeat(2,1fr)}
  .vRecent{grid-template-columns:repeat(2,1fr)}
  .vCategories{grid-template-columns:1fr}
  .vCta__inner{padding:28px 22px}
  .vCta__bgChar{font-size:120px;right:8px}
}
@media (max-width:560px){
  .home-visitor{padding:20px 14px 42px}
  .vHero__actions{flex-direction:column;align-items:stretch}
  .vBtn{justify-content:center;width:100%}
  .vHero__stats{gap:14px}
  .vHero__statNum{font-size:22px}
  .vCountries{grid-template-columns:repeat(2,1fr);gap:12px}
  .vRecent{grid-template-columns:1fr;gap:14px}
  .vRecentCard__media{aspect-ratio:16/9}
  .tc-footer{flex-direction:column;align-items:flex-start;gap:10px}
}
@media (max-width:400px){
  .vHero__title{font-size:26px}
  .vHero__stats{flex-wrap:wrap}
  .vHero__statSep{display:none}
  .vCountries{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .home-visitor *,.tc-footer *{animation:none!important;transition:none!important}
}