:root {
  --gold: #b8903f;
  --ink: #14171a;
  --ink-deep: #0c0e10;
  --paper: #faf7f0;
  --sand: #f0ead9;
  --muted: #5b5b55;
  --light: #cfcac0;
  --font-title: 'Shippori Mincho', serif;
  --font-body: 'Noto Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink);
  background: radial-gradient(circle at top, rgba(184, 144, 63, 0.08), transparent 34%), var(--paper);
  line-height: 1.6; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0; }
.muted { color: var(--muted); }
.page-inner { padding-top: 82px; }

.btn { display: inline-block; padding: 14px 32px; font: 600 17px var(--font-body); border-radius: 6px; border: 1px solid var(--gold); cursor: pointer; min-height: 44px; }
.btn--gold { background: linear-gradient(180deg, #d7b36a 0%, #b8903f 100%); color: #101010; font-weight: 700; letter-spacing: 0.03em; box-shadow: 0 10px 24px rgba(184, 144, 63, 0.2); }
.btn:hover { filter: brightness(1.08); }

/* ===== Mini-menu en haut ===== */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 14px 24px; color: var(--paper); background: rgba(10, 12, 14, 0.18); backdrop-filter: blur(6px); }
.topbar--solid { position: sticky; background: rgba(12, 14, 16, 0.92); justify-content: space-between; }
.topbar__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 14px; }
.topbar__nav a {
  padding: 8px 2px; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.topbar__nav a:hover,
.topbar__nav a.is-active {
  border-bottom-color: var(--gold); color: var(--gold);
}
.brand-mark { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); border: 1px solid rgba(184,144,63,.8); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.back { font-size: 14px; color: var(--gold); padding: 8px 0; }

.lang-switcher { position: relative; flex: 0 0 auto; z-index: 20; }
.lang-switcher__trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 14px; min-width: 92px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08); color: var(--paper); cursor: pointer; font: 600 13px var(--font-body);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.lang-switcher__trigger:hover { background: rgba(255,255,255,0.14); border-color: rgba(184,144,63,0.8); transform: translateY(-1px); }
.lang-switcher__trigger:focus-visible { outline-offset: 4px; }
.lang-switcher__flag { font-size: 15px; }
.lang-switcher__code { letter-spacing: 0.08em; }
.lang-switcher__caret { font-size: 12px; opacity: .8; }
.lang-switcher__panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 30;
  width: min(360px, calc(100vw - 24px)); max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain;
  padding: 14px; border-radius: 18px; border: 1px solid rgba(184,144,63,.24); background: rgba(11,13,16,.98);
  box-shadow: 0 30px 60px rgba(0,0,0,.35); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.lang-switcher.is-open .lang-switcher__panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.lang-switcher__search {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--paper);
}
.lang-switcher__search input {
  width: 100%; background: transparent; border: 0; color: var(--paper); font: 15px var(--font-body); outline: none;
}
.lang-switcher__search input::placeholder { color: rgba(230,230,230,.65); }
.lang-switcher__list { display: grid; gap: 8px; max-height: min(320px, calc(100vh - 230px)); overflow: auto; padding-right: 4px; }
.lang-option {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--paper); cursor: pointer;
  text-align: left; transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.lang-option:hover { background: rgba(255,255,255,0.04); border-color: rgba(184,144,63,0.4); }
.lang-option.is-selected { background: rgba(184,144,63,0.12); border-color: rgba(184,144,63,0.8); }
.lang-option__left { display: flex; align-items: center; gap: 10px; }
.lang-option__flag { font-size: 20px; }
.lang-option__label { font-weight: 600; }
.lang-option__meta { font-size: 12px; color: rgba(255,255,255,0.7); }
.lang-option__check { color: var(--gold); font-weight: 700; }

@media (max-width: 720px) {
  .topbar { gap: 12px; flex-wrap: wrap; }
  .topbar--solid .lang-switcher { order: 0; }
  .topbar__nav { flex: 1 1 100%; }
  .topbar--solid .topbar__nav { order: 1; }
  .lang-switcher__trigger { min-height: 40px; min-width: 82px; padding: 8px 10px; }
  .lang-switcher__panel { width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
  .lang-switcher__list { max-height: min(300px, calc(100vh - 150px)); }
  .topbar:not(.topbar--solid) .lang-switcher { position: absolute; top: 10px; right: 12px; }
  .topbar:not(.topbar--solid) .topbar__nav { padding-top: 46px; }
}

/* ===== Page d'introduction ===== */
.intro { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 90px 24px 48px; text-align: center; color: var(--paper); background: #020303; }
.intro__brand { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 2.4vw, 42px); width: min(94vw, 1040px); margin: 0 auto; }
.intro__logo { width: min(182px, 26vw); aspect-ratio: 1; border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 0 0 6px rgba(184, 144, 63, 0.95), 0 18px 36px rgba(0, 0, 0, 0.35); flex-shrink: 0; }
.intro__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro__wordmark { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; text-align: left; color: var(--gold); font-family: var(--font-title); font-weight: 700; letter-spacing: 0.04em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28); }
.intro__wordmark-line { display: block; font-size: clamp(22px, 2.5vw, 46px); line-height: 0.96; text-transform: uppercase; letter-spacing: 0.06em; }
.intro__wordmark-jp { display: block; font-size: clamp(18px, 2vw, 32px); letter-spacing: 0.08em; line-height: 1.2; font-weight: 700; }
.intro__actions { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 14px; }
.intro__kicker { display: block; margin: 0; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.intro h1 { display: none; }

.slider, .slider__shade { position: absolute; inset: 0; }
.slider { min-height: 100vh; min-height: 100svh; }
.slide {
  position: absolute;
  inset: 0;
  background-size: 72% auto;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease, transform 1.4s ease;
  transform: scale(1.04);
}
.slide.is-active { opacity: 1; transform: scale(1); }

.btn { display: inline-block; padding: 16px 30px; font: 600 17px var(--font-body); border-radius: 8px; border: 1px solid var(--gold); cursor: pointer; min-height: 48px; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.btn--gold { background: linear-gradient(180deg, #d7b36a 0%, #b8903f 100%); color: #0d0d0d; box-shadow: 0 10px 22px rgba(184, 144, 63, 0.26); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 12px 28px rgba(184, 144, 63, 0.3); }

/* ===== Contenu révélé ===== */
.discover { background: var(--paper); animation: appear .6s ease; }
@keyframes appear { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.wrap { max-width: 1040px; margin: 0 auto; padding: 72px 24px; }
.wrap h1 { font-size: clamp(32px, 5vw, 48px); margin: 8px 0 12px; }
.wrap h2 { font-size: 34px; margin-bottom: 14px; }
.wrap p { max-width: 70ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 28px; }
.card {
  display: flex; flex-direction: column; gap: 0; background: #fff; border-radius: 12px; padding: 0; overflow: hidden;
  border-top: 4px solid var(--gold); box-shadow: 0 10px 24px rgba(20, 23, 26, 0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(20, 23, 26, 0.08);
}
.card h2, .card h3 { font-size: 22px; margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card__link { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--gold); }
.tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--gold); }
.card__image { display: block; width: 100%; max-width: 100%; height: 190px; object-fit: cover; }
.card__content { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 26px; }
.card__schedule { display: block; color: var(--muted); font-weight: 600; }
.activity-program + .activity-program { margin-top: 18px; }
.activity-program h3 { margin: 0 0 4px; font-size: 18px; }
.photo-catalog { margin: 34px 0; }
.photo-catalog > h2 { margin: 0 0 8px; }
.photo-catalog > p { color: var(--muted); }
.photo-catalog__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 22px; }
.photo-catalog__card { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(20, 23, 26, 0.07); }
.photo-catalog__image { display: block; width: 100%; height: 190px; object-fit: cover; background: var(--sand); }
.photo-catalog__content { padding: 18px; }
.photo-catalog__content h3 { margin: 0 0 12px; font-size: 20px; }
.photo-catalog__toggle { border: 0; padding: 0; color: var(--gold); background: transparent; font: 600 0.95rem var(--font-body); cursor: pointer; text-decoration: underline; }
.photo-catalog__content p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }

/* ===== Pages intérieures ===== */
.lead { font-size: 20px; color: var(--muted); }
.activity-hero { margin: 0 0 22px; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px rgba(18,24,28,0.08); }
.activity-hero img { display: block; width: 100%; height: 420px; object-fit: cover; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin: 32px 0; }
.panel { background: #fff; border-radius: 10px; padding: 28px; }
.panel h2 { font-size: 22px; margin: 18px 0 6px; }
.panel h2:first-child { margin-top: 0; }
.panel p { margin: 0 0 6px; }
.panel .btn { margin-top: 20px; }
.map { min-height: 260px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--gold); background: var(--sand); }
.map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; }
.inline { color: var(--gold); font-weight: 600; text-decoration: underline; }

.mini-footer { padding: 28px 24px; text-align: center; font-size: 14px; background: var(--ink-deep); color: var(--light); }

/* ===== Slider ===== */
.slider, .slider__shade { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.slide.is-active { opacity: 1; transform: scale(1); }
.slider__shade { background: linear-gradient(rgba(12,14,16,.58), rgba(12,14,16,.78)); }
.intro > :not(.slider):not(.slider__shade) { position: relative; z-index: 2; }
.slider__dots { position: absolute !important; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; }
.slider__dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slider__dots button::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--paper); background: transparent; }
.slider__dots button.is-active::after { background: var(--gold); border-color: var(--gold); }

/* ===== Espace contact (bas de la page d'accueil) ===== */
.contact { background: var(--ink-deep); color: var(--light); padding: 64px 24px 24px; }
.contact__grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.contact h2 { font-size: 22px; color: var(--paper); margin: 18px 0 6px; }
.contact h2:first-child { margin-top: 0; }
.contact p { margin: 0 0 6px; }
.contact form { display: flex; flex-direction: column; gap: 8px; }
.contact label { font-size: 14px; }
.contact input, .contact textarea { padding: 12px; border: 0; border-radius: 4px; font: 16px var(--font-body); }
.contact .btn { margin-top: 6px; }
.contact a { color: var(--gold); }
.socials { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.socials__link {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 2px solid rgba(184, 144, 63, .9);
  background: rgba(184, 144, 63, .12); color: var(--gold); text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  padding: 0; overflow: hidden;
}
.socials__link--wa { background: #fff; border-color: rgba(184, 144, 63, .9); }
.socials__link--wa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.socials__link--img { background: #fff; border-color: rgba(184, 144, 63, .9); }
.socials__link--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.socials__link:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 18px rgba(0, 0, 0, .16); filter: brightness(1.05); }
.socials__link i { font-size: 18px; line-height: 1; }

@media (max-width: 720px) {
  /* Le slider automatique reste actif sur mobile, seuls ses contrôles sont masqués. */
  #sliderDots { display: none !important; }
  .topbar { padding: 10px 12px; }
  .topbar__nav { gap: 6px 12px; font-size: 11px; }
  .intro { padding: 96px 16px 38px; }
  .intro__brand { width: min(96vw, 520px); gap: 14px; }
  .intro__logo { width: min(120px, 30vw); box-shadow: 0 0 0 4px rgba(184, 144, 63, 0.95); }
  .intro__wordmark { align-items: center; text-align: center; }
  .intro__wordmark-line { font-size: clamp(16px, 5vw, 28px); letter-spacing: 0.04em; }
  .intro__wordmark-jp { font-size: clamp(13px, 3.5vw, 20px); }
  .intro__kicker { letter-spacing: 0.16em; }
  .btn { width: auto; padding: 12px 22px; }
  .slider__dots { bottom: 18px; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact input, .contact textarea { width: 100%; }
}

@media (max-width: 560px) {
  .topbar__nav { justify-content: center; line-height: 1.5; }
  .intro__brand { flex-direction: column; gap: 12px; }
  .intro__wordmark { align-items: center; }
  .intro__logo { width: min(118px, 38vw); }
  .slider__dots button { width: 22px; height: 22px; }
  .slider__dots button::after { width: 8px; height: 8px; }
  .wrap { padding: 56px 18px; }
  .grid { grid-template-columns: 1fr; }
  .contact, .contact__grid { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 390px) {
  .topbar { padding-left: 8px; padding-right: 8px; }
  .topbar__nav { gap: 4px 10px; font-size: 10px; }
  .intro { gap: 14px; }
  .intro__wordmark-line { font-size: clamp(14px, 6vw, 22px); }
  .intro__wordmark-jp { font-size: clamp(11px, 4vw, 16px); }
  .btn { padding: 11px 18px; font-size: 14px; }
  .contact h2 { font-size: 20px; }
}
.contact__map { min-height: 220px; border: 1px dashed #555; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.contact__map iframe { width: 100%; height: 100%; min-height: 220px; border: 0; }
.contact__copy { text-align: center; font-size: 14px; margin-top: 40px !important; }
.form__error { color: #ffb4a8; min-height: 1.4em; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .lang-switcher__trigger, .lang-switcher__panel { transition: none; }
  html { scroll-behavior: auto; }
  .discover { animation: none; }
  .card { transition: none; }
}
