/*
Theme Name: Japanzon Travel
Description: Thème officiel Japanzon Travel — marketplace de guides et expériences au Japon.
Author: Japanzon Co., Ltd.
Version: 0.1.0
Text Domain: japanzontravel
*/

:root {
  --brand: #FF0000;
  --brand-dark: #C40000;
  --accent: #3EC1F0;
  --ink: #1A1A1A;
  --paper: #FFFFFF;
  --gray: #F5F5F7;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0,0,0,.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink); background: var(--paper); line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  border-top: 3px solid var(--brand); /* signature Japanzon */
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; flex-wrap: nowrap; }
.logo { font-weight: 900; font-size: 1.22rem; letter-spacing: .4px; white-space: nowrap; flex-shrink: 0; }
.logo .t { color: var(--brand); }
.nav { display: flex; gap: 18px; margin-left: auto; font-weight: 600; font-size: .9rem; }
.nav a { white-space: nowrap; }
.nav a:hover { color: var(--brand); }
.site-header .jt-cur-switch, .site-header .jt-acct, .site-header .jt-cart { flex-shrink: 0; }
@media (max-width: 1120px) { .site-header .jt-cur-switch { display: none; } }
@media (max-width: 980px) { .nav { gap: 12px; font-size: .84rem; } .header-cta { display: none; } }
.btn {
  display: inline-block; background: var(--brand); color: #fff; font-weight: 700;
  padding: 12px 26px; border-radius: 999px; transition: .2s; border: none; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--ink); border: 2px solid #fff; }
.btn.ghost:hover { background: transparent; color: #fff; }
.header-cta { padding: 9px 18px; font-size: .86rem; background: var(--ink); white-space: nowrap; flex-shrink: 0; }
.header-cta:hover { background: #333; }

/* Destinations en vogue */
.jt-dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 28px; }
.jt-dest { position: relative; border-radius: 14px; padding: 26px 20px; background: linear-gradient(135deg, #1a1a1a 0%, #3a0a0a 60%, var(--brand) 160%); color: #fff; display: flex; flex-direction: column; gap: 4px; text-decoration: none; transition: .25s; overflow: hidden; }
.jt-dest:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.jt-dest-emo { font-size: 1.8rem; }
.jt-dest-name { font-weight: 900; font-size: 1.15rem; }
.jt-dest-count { color: rgba(255,255,255,.75); font-size: .85rem; }

/* Carrousel des guides */
.jt-guides-row { display: flex; gap: 18px; overflow-x: auto; padding: 20px 4px; scroll-snap-type: x mandatory; }
.jt-guides-row::-webkit-scrollbar { display: none; }
.jt-guide-card { flex: 0 0 250px; scroll-snap-align: start; background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; transition: .25s; }
.jt-guide-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.jt-guide-banner { display: block; height: 130px; background-size: cover; background-position: center; }
.jt-guide-meta { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.jt-guide-meta strong { font-weight: 800; }
.jt-guide-meta span { color: #777; font-size: .85rem; }

/* Top des recherches */
.jt-top-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; margin-top: 18px; }
.jt-top-links h4 { font-weight: 800; margin-bottom: 10px; }
.jt-top-links a { display: block; color: #666; font-size: .92rem; padding: 3px 0; text-decoration: none; }
.jt-top-links a:hover { color: var(--brand); }

/* ---------- Hero slider ---------- */
.hero { position: relative; min-height: 86vh; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; animation: heroFade 18s infinite; transform: scale(1);
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.05); }
  4% { opacity: 1; }
  33% { opacity: 1; transform: scale(1.12); }
  40% { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0; }
}
/* Image héros unique : toujours visible, zoom lent aller-retour */
.hero-slide.solo { opacity: 1; animation: heroZoom 26s ease-in-out infinite alternate; }
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.55) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 140px 20px 90px; max-width: 860px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.15; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero p.sub { font-size: clamp(1.05rem, 2vw, 1.35rem); margin: 18px 0 34px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .cta-row .btn { font-size: 1.05rem; padding: 15px 34px; }
/* Barre de recherche du héros (conversion directe) */
.jt-hero-search {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch;
  background: #fff; border-radius: 18px; padding: 10px;
  box-shadow: 0 14px 44px rgba(0,0,0,.28); max-width: 780px; margin: 6px auto 0;
}
.jt-hero-search input[type=search] { flex: 2 1 240px; border: none; padding: 13px 16px; font: inherit; border-radius: 12px; color: var(--ink); }
.jt-hero-search select { flex: 1 1 140px; border: none; border-left: 1.5px solid #eee; padding: 13px 12px; font: inherit; color: var(--ink); background: #fff; border-radius: 0; }
.jt-hero-search input:focus, .jt-hero-search select:focus { outline: 2px solid var(--brand); border-radius: 12px; }
.jt-hero-search button {
  flex: 0 0 auto; background: var(--brand); color: #fff; border: none; border-radius: 12px;
  padding: 13px 26px; font-weight: 800; font-size: 1rem; cursor: pointer; transition: .2s;
}
.jt-hero-search button:hover { background: var(--brand-dark); }
@media (max-width: 640px) {
  .jt-hero-search select { border-left: none; border-top: 1.5px solid #eee; }
  .jt-hero-search button { flex: 1 1 100%; }
}

.trust { position: relative; z-index: 2; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 46px; font-size: .92rem; font-weight: 600; opacity: .95; }
.trust span::before { content: "✔ "; color: #7CFC9A; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--gray); }
.kicker { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: .85rem; }
h2.title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; margin: 8px 0 14px; }
.lead { color: #555; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

.grid { display: grid; gap: 22px; margin-top: 44px; }
.grid.cols3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 26px; transition: .25s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.13); }
.card .emoji { font-size: 2.2rem; }
.card h3 { margin: 12px 0 8px; font-size: 1.15rem; font-weight: 800; }
.card p { color: #666; font-size: .95rem; }
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--brand); transform: scaleX(0); transition: .25s; transform-origin: left; }
.card:hover::before { transform: scaleX(1); }

.steps { counter-reset: step; }
.step { text-align: center; padding: 10px 18px; }
.step .num {
  counter-increment: step; display: grid; place-items: center;
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 1.5rem; font-weight: 900;
}
.step .num::before { content: counter(step); }
.step h3 { font-weight: 800; margin-bottom: 8px; }
.step p { color: #666; font-size: .95rem; }

.banner-cta { background: var(--brand); color: #fff; text-align: center; }
.banner-cta h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: 12px; }
.banner-cta p { opacity: .92; max-width: 640px; margin: 0 auto 30px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #bbb; padding: 54px 0 30px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid #333; padding-top: 22px; text-align: center; color: #888; }

/* ---------- Catalogue WooCommerce (fiches excursions) ---------- */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; list-style: none; margin: 30px 0 0 !important; padding: 0 !important; }
.woocommerce ul.products li.product { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: .25s; width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; }
.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.woocommerce ul.products li.product img { width: 100%; height: 190px; object-fit: cover; margin: 0 !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.05rem !important; font-weight: 800; padding: 14px 16px 4px !important; }
.woocommerce ul.products li.product .price { color: var(--brand) !important; font-weight: 900; font-size: 1.1rem !important; padding: 0 16px 8px; display: block; }
.woocommerce ul.products li.product .jt-guide-line { color: #777; font-size: .88rem; padding: 0 16px 16px; display: block; }
.woocommerce ul.products li.product .button { display: none !important; }
.woocommerce-breadcrumb, .woocommerce-result-count, .woocommerce-ordering { display: none !important; }

/* ---------- Contenu interne ---------- */
.page-content { padding: 130px 0 80px; }
.page-content h1 { font-size: 2rem; font-weight: 900; margin-bottom: 20px; }

@media (max-width: 760px) {
  .nav { display: none; }
  .hero { min-height: 78vh; }
}
