/* ---- Design tokens ---- */
:root{
  --bg:#0C0D10;
  --surface:#121318;
  --text:#E7E4DC;
  --muted:#B9B4A8;
  --gold:#D4AF37;
  --gold-d:#B8962D;
  --red:#D13A32;
  --line:#2A2B31;

  --radius:12px;
  --shadow:0 10px 40px rgba(0,0,0,.28);

  --title-en:"Cormorant Garamond", ui-serif, Georgia, serif;
  --title-jp:"Noto Serif JP","Hiragino Mincho ProN",serif;
  --body:"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

*{box-sizing:border-box}
html { scroll-behavior: smooth; }
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--body);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
.container{max-width:1200px;margin:0 auto;padding:0 28px}

/* ---- Header ---- */
.site-header{position:sticky;top:0;z-index:20;background:rgba(12,13,16,.85);backdrop-filter:saturate(140%) blur(6px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:68px}
.brand{display:flex;gap:10px;align-items:center}
.brand-name{font-family:var(--title-en);letter-spacing:.14em;color:var(--text);font-size:14px}
.menu{display:flex;gap:18px;align-items:center}
.menu a{color:var(--text);text-decoration:none;font-size:14px}
.menu a:hover{color:var(--gold)}
/* Boutons (mêmes couleurs, juste polish + accessibilité) */
.btn-primary,
.btn-outline{
  border-radius:10px;
  padding:10px 16px;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;                     /* curseur main */
  transition:background .2s ease,
             border-color .2s ease,
             box-shadow .2s ease,
             transform .02s ease;     /* petit effet press */
}

/* Primaire */
.btn-primary{
  background:var(--red);
  color:#0C0D10;
  border:1px solid rgba(0,0,0,.15);    /* discret, même look */
  box-shadow:0 6px 14px rgba(209,58,50,.22);
}
.btn-primary:hover{ background:#b62f29; box-shadow:0 8px 18px rgba(209,58,50,.30); }
.btn-primary:active{ transform:translateY(1px); }
.btn-primary:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }

/* Secondaire */
.btn-outline{
  border:1px solid var(--gold);
  color:var(--text);
  background:transparent;
}
.btn-outline:hover{ background:rgba(212,175,55,.08); border-color:var(--gold); }
.btn-outline:active{ transform:translateY(1px); }
.btn-outline:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }

/* Scroll doux pour les ancres #contact / #services */
html{ scroll-behavior:smooth; }


/* ---- Hero ---- */
.hero{position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(255,255,255,.02), transparent 50%)}
.hero-grid{display:grid;grid-template-columns:120px 1fr 420px;gap:28px;align-items:center;min-height:78vh;padding:56px 0}
.kanji-vertical{writing-mode:vertical-rl;text-orientation:mixed;font-family:var(--title-jp);font-size:32px;opacity:.9}
.hero-copy h1{font-family:var(--title-en);font-size:56px;line-height:1.1;margin:0 0 12px}
.lead{color:var(--muted);max-width:52ch;margin:0 0 18px}
.cta{display:flex;gap:14px;flex-wrap:wrap}
.hero-portrait{height:520px;border-radius:12px;box-shadow:var(--shadow);background:
  radial-gradient(80% 120% at 100% 0%, rgba(209,58,50,.25), transparent 60%),
  url('./img/mimetic-portrait.webp') center/cover no-repeat;
  linear-gradient(180deg, #16171d, #0e0f13);
  border:1px solid rgba(212,175,55,.18);
}
.hero-portrait { border-color: rgba(212,175,55,.18); transition: border-color .25s, box-shadow .25s; }
.hero-portrait:hover{ border-color: rgba(212,175,55,.35); box-shadow: 0 16px 50px rgba(0,0,0,.35); }

/* Décors */
.enso {
  position:absolute;
  right:-8vw;
  top:-8vh;
  width:60vmin;
  height:60vmin;
  border:2px solid rgba(212,175,55,.25);
  border-radius:50%;
  box-shadow:0 0 64px rgba(212,175,55,.15) inset, 0 0 90px rgba(212,175,55,.1);
  background: radial-gradient(circle at 60% 40%, rgba(209,58,50,.05), transparent 70%);
  filter:blur(.5px);
  z-index:0;
}
.kintsugi{position:absolute;width:2px;background:linear-gradient(#D4AF37,#B8962D);box-shadow:0 0 18px rgba(212,175,55,.22)}
.vein-1{left:6%;top:-10vh;height:90vh;transform:rotate(12deg);opacity:.55}
.vein-2{left:auto;right:34%;top:-20vh;height:120vh;transform:rotate(-9deg);opacity:.45}
.vein-3{
  left: 18%;
  top: -30vh;
  height: 140vh;
  transform: rotate(8deg);
  opacity: .28;
}

/* ---- Sections ---- */
.section{padding:96px 0;border-top:1px solid var(--line)}
.section.surface{background:var(--surface)}
.section-head{margin-bottom:26px}
h2{font-family:var(--title-en);font-size:38px;line-height:1.15;margin:0}

/* Seigaiha background */
.seigaiha{position:relative}
.seigaiha::after{
  content:"";position:absolute;inset:0;opacity:.12;pointer-events:none;
  background-image:
     radial-gradient(circle at 10px 10px, #1A1B21 10%, transparent 11%),
     radial-gradient(circle at 30px 30px, #1A1B21 10%, transparent 11%);
  background-size:40px 40px;
}

/* Mission grid */
.mission-grid{display:grid;grid-template-columns:1fr 1px 1fr;gap:28px;align-items:start}
.divider-v{background:var(--line);height:100%;width:1px;opacity:.9}
.mission p{margin-top:8px}

/* Mizuhiki separator */
.mizuhiki{height:2px;background:linear-gradient(90deg,var(--gold),var(--gold-d));position:relative;margin:12px 0 6px}
.mizuhiki::after{content:"";position:absolute;right:12%;top:-6px;width:14px;height:14px;border:2px solid var(--gold);border-radius:50%}
.mizuhiki { box-shadow: 0 0 10px rgba(212,175,55,.15) inset; }

/* Cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.card{background:var(--surface);border:1px solid rgba(212,175,55,.22);border-radius:12px;padding:24px;box-shadow:var(--shadow);transition:.25s}
.card:hover{transform:translateY(-3px);border-color:var(--gold)}
.card h3{font-family:var(--title-en);font-size:24px;margin:0 0 10px}
.card ul{margin:0;padding-left:18px;color:var(--muted)}
.card { backdrop-filter: saturate(110%) blur(2px); }

/* Japan Focus */
.japan-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:center}
.ticks{list-style:none;padding:0;margin:10px 0 0}
.ticks li{position:relative;padding-left:18px;margin:8px 0;color:var(--text)}
.ticks li::before{content:"•";position:absolute;left:0;top:0;color:var(--red)}
/* Kumiko — finition premium */
.kumiko{
  height: 260px;                 /* un peu plus haut = plus d'impact */
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 14px;
  background:
    /* image décorative */
    url('/img/kintsugi-pattern.webp') right 42% / contain no-repeat,
    /* vignette douce pour fondre l'image */
    radial-gradient(120% 120% at 20% 80%, rgba(0,0,0,.55), transparent 60%),
    /* fond */
    linear-gradient(180deg, #141519, #0C0D10);
  box-shadow:
    0 18px 40px rgba(0,0,0,.35),
    inset 0 0 35px rgba(212,175,55,.08);
  transition: border-color .25s ease, box-shadow .25s ease, background-position .6s ease;
}

/* léger “shimmer” au survol, pas de rave party */
.kumiko:hover{
  border-color: rgba(212,175,55,.42);
  box-shadow:
    0 22px 60px rgba(0,0,0,.45),
    inset 0 0 45px rgba(212,175,55,.12);
  background-position: right 38%, center, center;
}

/* Respecte les gens qui détestent les animations */
@media (prefers-reduced-motion: reduce){
  .kumiko{ transition: none; }
}

/* Responsive */
@media (max-width: 980px){
  .kumiko{ height: 220px; background-size: cover, 160% 160%, cover; }
}

/* Cases */
.case-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.case{height:220px;border-radius:12px;border:1px solid rgba(212,175,55,.22);box-shadow:var(--shadow);display:flex;align-items:end;justify-content:start;padding:14px;color:var(--muted)}
.case.a{background:
  radial-gradient(120% 120% at 0% 100%, rgba(209,58,50,.25), transparent 50%),
  linear-gradient(180deg,#17181e,#0f1014)}
.case.b{background:
  radial-gradient(120% 120% at 100% 0%, rgba(212,175,55,.25), transparent 50%),
  linear-gradient(180deg,#17181e,#0f1014)}
.case.c{background:
  radial-gradient(120% 120% at 50% 0%, rgba(212,175,55,.15), transparent 50%),
  linear-gradient(180deg,#17181e,#0f1014)}
.case figcaption{background:rgba(0,0,0,.35);padding:6px 10px;border-radius:8px;border:1px solid rgba(255,255,255,.06)}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.contact-form{display:grid;gap:12px}
.contact-form input,.contact-form select,.contact-form textarea{
  background:#0E0F13;border:1px solid #2A2B31;border-radius:10px;color:var(--text);padding:12px}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:2px solid var(--gold)}
.muted{color:var(--muted)}

/* Footer */
.site-footer{background:var(--surface);border-top:1px solid var(--line);padding:28px 0}
.footer-flex{display:flex;gap:18px;align-items:center;justify-content:space-between}
.copy{color:var(--muted)}
.social a{color:var(--gold);text-decoration:none;margin-left:12px}
.social a:hover{color:var(--gold-d)}
.seal{font-family:var(--title-jp);color:var(--gold);opacity:.9}

/* ---- Responsive ---- */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr;min-height:unset}
  .kanji-vertical{order:-1;margin-bottom:8px}
  .hero-portrait{height:360px}
  .mission-grid{grid-template-columns:1fr;gap:18px}
  .divider-v{display:none}
  .cards{grid-template-columns:1fr 1fr}
  .case-grid{grid-template-columns:1fr}
  .japan-grid,.contact-grid{grid-template-columns:1fr}
  .hero-copy h1{font-size:42px}
}
@media (max-width: 560px){
  .cards{grid-template-columns:1fr}
}

/* 1) Les décors ne doivent jamais capter la souris */
.hero::before,
.enso,
.kintsugi,
.hero-portrait::before,
.hero-portrait::after {
  pointer-events: none !important;
}

/* 2) Empilement correct du contenu cliquable */
.hero { position: relative; }
.hero-grid { position: relative; z-index: 2; }   /* contenu */
.hero-portrait { position: relative; z-index: 1; } /* carte à droite, sous le contenu */
.enso { z-index: 0; }
.kintsugi { position: absolute; z-index: 1; }     /* visibles mais inactifs (voir 1) */

/* 3) Assure que les boutons gagnent la bataille */
.cta { position: relative; z-index: 5; }
.btn-primary, .btn-outline { cursor: pointer; }

/* === Headings: centrage propre, sans toucher aux paragraphes === */

/* 1) "My Mission" et "理念" (les h2 de la grille Mission) */
.mission-grid h2 {
  text-align: center;
  margin-bottom: 16px;
}

/* 2) Titres de section (ex: "Investigations & Risk Services",
      "Selected Cases (anonymized)", etc.) */
.section-head h2,
.section h2.section-title {
  text-align: center;
}

/* 3) Titres des cartes services (ex: "Digital Footprint & Identity Exposure") */
.cards .card h3 {
  text-align: center;
}

/* Astuce d’équilibre typographique: colonnes Mission à hauteur visuelle stable */
.mission-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

/* Thumbnails & mini description dans les cards */
.card .thumb{
  width:72; height:72;
  margin:12px auto 10px;
  display:block;
  opacity:.95;
  filter: drop-shadow(0 3px 10px rgba(212,175,55,.20));
}
.card .desc{
  color:var(--muted);
  text-align:center;
  font-size:.95rem;
  margin:0 0 12px;
}

/* Rend chaque service 'cliquable' sans changer ton hover existant */
.service-card{ cursor:pointer; }
.service-card:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }

/* Popup minimal (on peaufinera plus tard) */
/* === Modal modernisé === */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  align-items: center; justify-content: center;
  z-index: 999;
  animation: fadeIn .25s ease forwards;
}
.modal-backdrop[aria-hidden="false"] { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.modal {
  width: min(720px, 95vw);
  background: var(--surface);
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  padding: 28px 26px 22px;
  color: var(--text);
  transform: translateY(12px);
  animation: popIn .25s ease forwards;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
}
.modal-titleblock { flex: 1; }
.modal h3 { font-family: var(--title-en); font-size: 26px; margin: 0; }
.modal-desc { margin: 4px 0 8px; color: var(--muted); font-size: 0.95rem; }

.modal img {
  width: 72px; height: auto; border-radius: 10px;
  border: 1px solid rgba(212,175,55,.25);
  background: rgba(0,0,0,.15);
}

.modal-actions {
  display: flex; justify-content: flex-end;
  margin-top: 18px;
}
.modal-actions .btn-primary.small {
  font-size: .9rem; padding: 8px 14px;
}

/* Close button minimaliste */
.modal-close {
  background: transparent; border: none; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: color .2s ease;
}
.modal-close:hover { color: var(--gold); }

/* === Japan Focus — alignement propre et ligne décorative localisée === */
.japan-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* texte un peu plus large */
  gap: 24px;
  align-items: center;
}

/* Ligne dorée uniquement avant le titre, pas sur toute la section */
.japan-grid h2::before {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 18px;
}

/* Ajuste le texte */
.lead.small {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 14px;
  max-width: 48ch;
}

/* Calage de l’image avec le texte */
.kumiko {
  margin-top: 0;
  height: 260px;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 14px;
  background:
    url('/img/kintsugi-pattern.webp') right 42% / contain no-repeat,
    radial-gradient(120% 120% at 20% 80%, rgba(0,0,0,.55), transparent 60%),
    linear-gradient(180deg, #141519, #0C0D10);
  box-shadow:
    0 18px 40px rgba(0,0,0,.35),
    inset 0 0 35px rgba(212,175,55,.08);
  transition: border-color .25s ease, box-shadow .25s ease, background-position .6s ease;
}

/* ==== Social cards (remplacent Selected Cases) ==== */
.social-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.social-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  height:220px;
  border-radius:12px;
  border:1px solid rgba(212,175,55,.22);
  background:
    radial-gradient(120% 120% at 0% 100%, rgba(209,58,50,.18), transparent 50%),
    linear-gradient(180deg,#17181e,#0f1014);
  box-shadow:var(--shadow);
  text-decoration:none;
  color:var(--text);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow:hidden;
}
.social-card:hover{
  transform:translateY(-3px);
  border-color:var(--gold);
  box-shadow:0 16px 48px rgba(0,0,0,.35);
}
.social-card img {
  width: 120px;          /* largeur contrôlée */
  height: auto;          /* conserve le ratio 3:2 */
  aspect-ratio: 3 / 2;   /* aide certains navigateurs à anticiper la taille */
  filter: drop-shadow(0 4px 12px rgba(212,175,55,.20));
  opacity: .98;
  border-radius: 8px;    /* adoucit le rendu sur fond sombre */
  transition: transform .25s ease;
}

.social-card:hover img {
  transform: scale(1.05);
}
.social-card span{
  margin-top:14px;
  font-family:var(--title-en);
  font-size:20px;
  letter-spacing:.02em;
  background:rgba(0,0,0,.35);
  padding:6px 12px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:8px;
}
/* variantes légères de halo pour chaque carte */
.social-card.li{
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(212,175,55,.15), transparent 55%),
    linear-gradient(180deg,#17181e,#0f1014);
}
.social-card.kwork{
  background:
    radial-gradient(140% 120% at 50% 0%, rgba(209,58,50,.20), transparent 55%),
    linear-gradient(180deg,#17181e,#0f1014);
}
.social-card.mail{
  background:
    radial-gradient(140% 120% at 0% 100%, rgba(212,175,55,.15), transparent 55%),
    linear-gradient(180deg,#17181e,#0f1014);
}

/* Responsive aligné sur tes grilles existantes */
@media (max-width:980px){
  .social-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .social-grid{ grid-template-columns:1fr; }
}
@media (max-width: 980px) {
  .social-card img { width: 100px; }
}

@media (max-width: 560px) {
  .social-card img { width: 88px; }
}


/* Contact polish */
.form-hint { margin-top: -6px; margin-bottom: 6px; }
.sr-only {
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.contact-form .consent {
  display:flex; align-items:center; gap:10px;
  color:var(--muted); font-size:.95rem;
}
.form-status { margin-top: 6px; color: var(--muted); }

/* Better focus */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline:2px solid var(--gold);
  outline-offset:2px;
  box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}

/* === Modal polish: spacing, sizes, hit targets === */
.modal {
  padding: 28px 28px 22px;
}

.modal header {
  gap: 16px;
  margin-bottom: 8px;
}

.modal header img {
  width: 96px;        /* + grand visuel */
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(212,175,55,.25);
  background: rgba(0,0,0,.12);
}

/* Titre + description mieux aérés */
.modal h3 { margin: 0 0 6px; }
.modal-desc { margin: 0 0 12px; }

/* Badges prix / délai avec espace vertical */
.modal .meta { margin: 8px 0 14px; gap: 12px; }

/* CTA pas collé: vrai espace, alignement à droite */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;      /* espace sous les tags */
}

.modal-actions .btn-primary.small {
  font-size: .95rem;
  padding: 10px 16px;
  border-radius: 10px;
}

/* Bouton de fermeture: taille lisible + zone cliquable confortable */
.modal-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--gold);
  color: var(--text);
  font-size: 18px;       /* icône plus lisible */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.modal-close:hover { background: rgba(212,175,55,.10); }

/* Responsive: visuel un peu réduit mais toujours net */
@media (max-width: 560px){
  .modal header img { width: 84px; }
}
/* === Card meta info === */
.meta-info {
  margin-top: 16px;
  text-align: center;
  font-size: .9rem;
}

.meta-info .hint {
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 8px;
  opacity: .9;
}

/* Tag bubbles for price/delivery */
.meta-info .tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-info .tag {
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .85rem;
  color: var(--text);
  background: rgba(212,175,55,.05);
  box-shadow: inset 0 0 8px rgba(212,175,55,.10);
}

/* Carte non cliquable globale (on clique le bouton, pas tout le pavé) */
.service-card { cursor: default; }

/* CTA en bas de carte */
.card-cta {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}
.card-cta-btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: .95rem;
}

/* Optionnel: atténue un peu le lift au hover puisque la carte n'est plus 'bouton' */
.card:hover { transform: translateY(-2px); }

/* ===== Mobile/tablette fixes ===== */

/* 1) Container: plus d'air sur petits écrans */
@media (max-width: 980px){
  .container{ padding: 0 20px; }
}
@media (max-width: 560px){
  .container{ padding: 0 16px; }
}

/* 2) Header/menu: arrête de se faire couper */
@media (max-width: 720px){
  .nav{
    height: auto;               /* plus de 68px fixe */
    padding: 8px 0;
    flex-wrap: wrap;            /* permet le retour à la ligne */
    gap: 8px;
  }
  .brand-name{
    font-size: 12px;
    letter-spacing: .12em;
  }
  .menu{
    width: 100%;
    display: flex;
    gap: 10px;
    overflow-x: auto;           /* si ça déborde: scroll horizontal, rien n'est coupé */
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .menu a{
    flex: 0 0 auto;             /* chaque item garde sa largeur, pas de compressions moches */
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    white-space: nowrap;        /* pas de retour à la ligne “Japan\nFocus” */
  }
}

/* 3) Hero: recentrer le texte et éviter l'effet “collé à gauche” */
.hero-copy{ max-width: 640px; margin: 0 auto; }   /* centre le bloc texte+boutons */
@media (max-width: 980px){
  .hero-grid{ padding: 42px 0; }
  .hero-copy h1{ font-size: 42px; }
}
@media (max-width: 720px){
  .hero-grid{ padding: 36px 0; }
  .hero-copy h1{ font-size: 34px; }
  .lead{ margin: 0 auto 18px; max-width: 52ch; }  /* texte centré, lisible */
  .cta{ justify-content: center; }                 /* boutons centrés */
}

/* 4) Carte/visuel du hero (ton “carré avec le logo rouge”): ne plus se couper */
.hero-portrait{
  width: 100%;
  background-position: center;     /* stop au cadrage chelou à droite */
  background-size: cover;
  overflow: hidden;                /* évite tout dépassement visible */
}
@media (max-width: 980px){
  .hero-portrait{ height: 360px; }
}
@media (max-width: 720px){
  .hero-portrait{ height: 280px; margin-top: 10px; }
}

/* 5) Décors (kintsugi/enso) : ne jamais gêner le scroll ou le layout */
.enso, .kintsugi{ pointer-events: none !important; }
@media (max-width: 720px){
  .enso{ width: 70vmin; height: 70vmin; right: -14vw; top: -10vh; opacity: .6; }
  .kintsugi.vein-1, .kintsugi.vein-2, .kintsugi.vein-3{ opacity: .35; }
}

/* 6) Petits ajustements de cartes sur mobile pour éviter le tassement */
@media (max-width: 560px){
  .cards{ gap: 18px; }
  .card{ padding: 20px; }
  .card .thumb{ width: 88px; }   /* garde un bon ratio sans écraser le texte */
}

/* --- Hero padding fix for mobile --- */
@media (max-width: 560px) {
  .hero-copy {
    padding: 0 24px;        /* un peu d’espace latéral */
    text-align: center;     /* équilibre le texte */
  }
  .hero-copy h1 {
    font-size: 30px;        /* taille plus douce sur petit écran */
    line-height: 1.25;
  }
  .lead {
    margin: 0 auto 20px;
    padding: 0 6px;         /* micro marge intérieure pour lisibilité */
    max-width: 48ch;
  }
  .cta {
    gap: 10px;
    justify-content: center;  /* centre les boutons */
  }
  .cta .btn-primary,
  .cta .btn-outline {
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* === iPad / tablettes: montrer TOUT le visuel du hero === */
@media (min-width: 721px) and (max-width: 1024px) {
  .hero-grid { padding: 48px 0; }

  .hero-portrait{
    /* garde la carte mais calcule la hauteur depuis la largeur */
    width: 100%;
    aspect-ratio: 16 / 9;   /* cadre propre type vidéo */
    height: auto;
    min-height: 360px;      /* évite la carte rabougrie */
    overflow: hidden;       /* coupe les débordements doux au rayon */

    /* re-déclare les layers avec l'image en "contain" */
    background:
      radial-gradient(80% 120% at 100% 0%, rgba(209,58,50,.22), transparent 60%),
      url('./img/mimetic-portrait.webp') center / contain no-repeat,
      linear-gradient(180deg, #16171d, #0e0f13);
    background-repeat: no-repeat;
    background-position: center;
    /* garde tes finitions existantes */
    border-radius: 12px;
    border: 1px solid rgba(212,175,55,.18);
    box-shadow: var(--shadow);
  }
}

/* Option: un peu d'air pour le texte sur tablette aussi */
@media (min-width: 721px) and (max-width: 1024px) {
  .hero-copy { margin: 0 auto; max-width: 720px; }
}

/* --- Language flag button (top right) --- */
.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-flag img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
}

.lang-flag:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(212,175,55,.25);
}

/* Responsive: recentre et garde la lisibilité */
@media (max-width:720px){
  .lang-flag {
    margin-left: 8px;
    width: 24px;
    height: 24px;
  }
}

/* === Payments section (refined) === */
.payments-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.pay-card{
  background: linear-gradient(180deg, #141519, #0C0D10);
  border:1px solid rgba(212,175,55,.22);
  border-radius:12px;
  padding:22px 18px;
  box-shadow: var(--shadow);
  text-align:center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  min-height: 170px;
}

.pay-card:hover{
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}

.pay-icon{
  width:48px; height:48px;
  margin: 4px auto 10px;
  border-radius:50%;
  display:grid; place-items:center;
  color: var(--gold);
  background: rgba(212,175,55,.08);
  border:1px solid rgba(212,175,55,.25);
  box-shadow: inset 0 0 12px rgba(212,175,55,.10);
}

.pay-icon svg{ width:24px; height:24px; }

.pay-title{
  font-family: var(--title-en);
  font-size: 18px;
  letter-spacing:.02em;
  margin-bottom: 6px;
}

.pay-note{
  color: var(--muted);
  font-size: .95rem;
  margin: 0 auto;
  max-width: 40ch;
}

.pay-footnote{
  margin-top: 16px;
  text-align: center;
  font-size: .9rem;
}

/* Responsive */
@media (max-width:980px){
  .payments-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .payments-grid{ grid-template-columns:1fr; }
  .pay-card{ min-height: 0; }
}

/* === 1) Badge "人気" qui chevauchait le titre === */
.service-card { position: relative; }
.badge-hot{
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--red);
  color: #0C0D10;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 6px 14px rgba(209,58,50,.22);
}
/* un poil d’air au-dessus du h3 pour ne jamais toucher le badge */
.service-card h3{ padding-top: 6px; }


/* === 2) <details> "More Japan-specific tools" en pleine largeur + propre === */
.cards > details.more-services{ grid-column: 1 / -1; }

.more-services{
  display: block;
  width: 100%;
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.more-services[open]{ padding-bottom: 16px; }

/* Summary cliquable, sans chevron moche du navigateur */
.more-services > summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 4px;
  font-weight: 600;
  color: var(--text);
}
.more-services > summary::-webkit-details-marker{ display:none; }
.more-services > summary::after{
  content: "▼";
  font-size: 12px;
  color: var(--gold);
  transition: transform .2s ease;
}
.more-services[open] > summary::after{ transform: rotate(180deg); }

/* Grille compacte à l’intérieur du details */
.cards-compact{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 12px;
}
@media (max-width: 980px){ .cards-compact{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .cards-compact{ grid-template-columns: 1fr; } }

/* Popular badge: keep clear of headings */
.card .badge-pop {
  position:absolute;
  top:12px; left:12px;
  transform:translateY(0); /* no overlap */
  z-index:2;
}
.card h3, .card .card-title {
  margin-top:10px;          /* space under badge */
  line-height:1.35;
}
/* Small screens: push badge a bit higher and shrink */
@media (max-width: 640px){
  .card .badge-pop{ top:8px; left:10px; font-size:.78rem; padding:.2rem .45rem; }
  .card h3, .card .card-title{ margin-top:14px; }
}

/* Accordion container spans grid */
.jp-accordion {
  grid-column: 1 / -1;
  width:100%;
}
.jp-accordion .acc-header{
  display:flex; align-items:center; justify-content:space-between;
  width:100%; cursor:pointer; user-select:none;
}
.jp-accordion .acc-panel{
  overflow:hidden;
  transition:max-height .4s ease, opacity .25s ease;
  max-height:0; opacity:0;
}
.jp-accordion.is-open .acc-panel{ max-height:2000px; opacity:1; }

/* === Footer modals === */
.modal.small {
  max-width: 600px;
  padding: 1.5rem;
}
.modal-body p {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.footer-links {
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.footer-links a {
  color: #bbb;
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.modal-close {
  background: none;
  border: none;
  color: #ffc107;
  font-size: 1.1rem;
  cursor: pointer;
}
.modal-close:hover {
  color: #fff;
}
.highlight-email {
  color: #ffca28; /* jaune doré lisible */
  font-weight: 500;
  text-decoration: none;
}
.highlight-email:hover {
  text-decoration: underline;
  color: #ffd95b;
}