/* =====================================================================
   Thème « Marché » pour candji.com : proposition de style, local seulement.
   Chargé APRÈS le style d'origine : il remplace les couleurs (variables),
   la typographie, les formes et l'en-tête, sans toucher au HTML ni au JS.
   Direction : appli de bouffe moderne et chaleureuse. Fond lait d'avoine,
   encre charbon, rouge tomate pour l'action, safran pour les repères.
   ===================================================================== */
:root{
  /* The original rules read these names: remapping them recolours most of the page. */
  --white: #FFFBF5;          /* page background */
  --cream: #F7EFE4;          /* soft panels */
  --green: #1F1B16;          /* was the brand green: now charcoal ink for strong UI */
  --green-soft: #3A332B;
  --red: #E4472B;            /* tomato: primary action */
  --red-soft: #F2785F;
  --ink: #1F1B16;
  --ink-dim: #6B6157;
  --line: rgba(31,27,22,0.10);
  --line-strong: rgba(31,27,22,0.18);

  --saffron: #F6B92B;
  --basil: #2F8F5B;
  --card-shadow: 0 1px 2px rgba(31,27,22,.06), 0 8px 24px rgba(31,27,22,.08);
  --card-shadow-hover: 0 2px 4px rgba(31,27,22,.08), 0 16px 40px rgba(31,27,22,.14);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Typography: one rounded geometric sans, heavy for headings ---------- */
body{font-family: var(--font); background: var(--white); color: var(--ink);}
h1,h2,h3,.display,.logo,
.card h3,.modal-head h2,.offre-hero h2,.offre-card h4,.offre-cta h3,.resa-box h4,.place-modal h2{
  font-family: var(--font) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}
input,select,textarea,button{font-family: var(--font) !important;}

/* ---------- Header: dark bar, logo with a saffron dot ---------- */
header{
  background: var(--ink);
  border-bottom: 0;
  padding: 14px 0;
  position: sticky; top: 0; z-index: 900;
}
.logo{color: #FFFBF5; font-size: 1.45rem;}
.logo span{color: var(--saffron);}
.header-tab{color: rgba(255,251,245,.72);}
.header-tab:hover{color: #fff;}
.header-tab[aria-current="page"]{color: var(--ink); background: var(--saffron); border-color: var(--saffron);}
.lang-switch{background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); box-shadow:none;}
.lang-btn{color: rgba(255,251,245,.7);}
.lang-btn.active{background: #FFFBF5; color: var(--ink);}

/* ---------- Account bar: a light strip under the header ---------- */
.account-bar{background: #FFF4E3; border-bottom: 1px solid var(--line);}
.account-form input{border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; padding: 9px 14px;}
.account-form input:focus{border-color: var(--red); box-shadow: 0 0 0 3px rgba(228,71,43,.15);}
.account-btn{background: var(--red); border-radius: 999px; padding: 10px 18px; font-weight: 700;}
.account-btn:hover{background: #C93A21;}
.visited-count{background: var(--saffron); color: var(--ink); border-radius: 999px;}
.account-note{color: var(--ink-dim);}

/* ---------- Hero: warm gradient block, big friendly title ---------- */
.search-hero{
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(246,185,43,.35), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(228,71,43,.18), transparent 60%),
    var(--white);
  padding-top: 64px; padding-bottom: 40px;
}
.search-hero h1{font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.02;}
.search-hero h1::after{
  content: ""; display: block; width: 72px; height: 8px; border-radius: 99px;
  background: var(--saffron); margin: 18px auto 0;
}
.search-hero p{color: var(--ink-dim); font-size: 1.05rem;}

.search-box{
  background: #fff; border: 0; border-radius: 999px; padding: 6px;
  box-shadow: var(--card-shadow); max-width: 760px;
}
.search-box input{border: 0 !important; background: transparent; border-radius: 999px; padding: 14px 20px; font-size: 1.02rem;}
.search-box input:focus{outline: none; box-shadow: none;}
.search-btn{background: var(--red); border-radius: 999px; padding: 14px 28px; font-weight: 800; letter-spacing: .01em;}
.search-btn:hover{background: #C93A21;}

.when-row select, .when-row input[type="time"], #cityInput{
  border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; padding: 8px 14px;
}
.now-btn{border-radius: 999px; background: var(--ink); color: #fff; border: 0; font-weight: 700;}
.now-btn:hover{background: #3A332B;}
.now-btn.active, .locate-btn.active{background: var(--basil); color: #fff;}
.locate-btn{background: #fff; color: var(--ink); border: 1px solid var(--line-strong);}

/* Cuisine chips: filled pills, saffron when selected */
.chip{
  border-radius: 999px; background: #fff; border: 1px solid var(--line-strong);
  color: var(--ink); font-weight: 600; padding: 8px 16px;
}
.chip:hover{border-color: var(--ink); background: #fff;}
.chip.active{background: var(--ink); color: #FFFBF5; border-color: var(--ink);}

.ai-answer{border-radius: var(--radius); border: 0; background: #fff; box-shadow: var(--card-shadow);}
.ai-answer .ai-label{background: var(--saffron); color: var(--ink); border-radius: 999px;}

/* ---------- Results ---------- */
.results-head h2{font-weight: 800;}
.view-btn{border-radius: 999px;}
.view-btn.active{background: var(--ink); color: #fff; border-color: var(--ink);}

.grid{gap: 22px;}
.card{
  border: 0; border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--card-shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{transform: translateY(-3px); box-shadow: var(--card-shadow-hover);}
.card-photo{border-radius: 0; height: 150px;}
.card-photo-emoji{filter: drop-shadow(0 6px 12px rgba(0,0,0,.18));}
.card .rating{background: #fff; color: var(--ink); border-radius: 999px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.12);}
.card-photo .place-status-pill{border-radius: 999px; background: rgba(31,27,22,.82); color: #fff;}
.card h3{font-size: 1.12rem;}
.card .cuisine-tag{background: #FFF1D6 !important; color: #7A4B00 !important; border-radius: 999px; font-weight: 700;}
.card .price{color: var(--basil) !important; font-weight: 800;}
.card .neighborhood{color: var(--ink-dim);}
.card .address-link{color: var(--ink);}
.card.match .card-body{background: #FFF8EC;}
.verified-badge{border-radius: 999px;}

.visit-btn{border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); background: #fff; font-weight: 700;}
.visit-btn:hover{background: var(--ink); color: #fff;}
.visit-btn.visited{background: var(--basil); border-color: var(--basil); color: #fff;}

.gmaps-btn{border-radius: 999px;}
.gmaps-btn.btn-directions{background: var(--red); border-color: var(--red); color: #fff;}
.gmaps-btn.btn-maps{background: var(--ink); color: #fff;}
.hours-accordion{border-radius: var(--radius-sm);}

/* Map */
.map-view-container,.interactive-map{border-radius: var(--radius); overflow: hidden;}
.map-popup-btn.primary{background: var(--red); border-radius: 999px;}

/* ---------- Windows (restaurant details, location) ---------- */
.gmap-modal{border-radius: 24px; border: 0;}
.gmap-modal-close{border-radius: 999px;}
.modal-info-box{border-radius: var(--radius-sm);}
.place-locate{background: var(--red); border-radius: 999px;}
.place-go{background: var(--ink); border-radius: 999px;}
.place-fields select,.place-fields input{border-radius: 12px;}
.resa-box{border-radius: var(--radius); border-left: 0; background: #FFF4E3;}
.resa-grid input,.resa-grid select,.resa-grid textarea{border-radius: 12px;}

/* ---------- Owners' pages ---------- */
.offre{background: var(--white);}
.offre-hero .kicker{color: var(--red);}
.offre-card{border-radius: var(--radius); border: 0; border-top: 0; background: #fff; box-shadow: var(--card-shadow);}
.offre-card.accent{background: #FFF4E3;}
.offre-group h3{border-bottom: 0;}
.offre-group h3::after{content:""; display:block; width:40px; height:5px; border-radius:99px; background: var(--saffron); margin-top:8px;}
.offre-cta{border-radius: 24px; background: var(--ink);}
.offre-cta a{background: var(--saffron); color: var(--ink); border-radius: 999px; font-weight: 800;}
.offre-cta a:hover{background: #FFD15C;}
.restaurateurs{background: #FFF4E3;}
.restaurant-form,.ra-dashboard,.ra-resa,.submission-card{border-radius: var(--radius); border: 0; box-shadow: var(--card-shadow);}
.restaurant-form input,.restaurant-form select,.restaurant-form textarea,.ra-login-row input{border-radius: 12px;}

/* ---------- Footer ---------- */
footer{background: var(--ink); color: rgba(255,251,245,.7); border-top: 0; padding: 28px 0;}

/* ---------- Small screens ---------- */
@media (max-width: 620px){
  header{position: static;}
  .search-hero{padding-top: 40px;}
  .search-box{border-radius: 22px; flex-direction: column; padding: 8px;}
  .search-btn{width: 100%;}
}
