/* Shiby Art — thème sombre bleuté */

:root {
  --bg: #070b14;
  --bg-2: #0c1424;
  --panel: rgba(12, 20, 36, 0.78);
  --line: rgba(140, 175, 230, 0.16);
  --text: #e6edf7;
  --muted: #9fb0c8;
  --blue: #6ea8ff;
  --blue-deep: #2b5cb8;
  --ice: #bcd6ff;
  --gold: #d9b45a;
  --gold-light: #f2d78f;
  --gold-deep: #a9802c;
  --gold-grad: linear-gradient(135deg, #f2d78f 0%, #d9b45a 45%, #a9802c 100%);
  --danger: #ff8a8a;
  --ok: #7fe0b0;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", Georgia, serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ice); }
a:hover { color: var(--gold-light); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blue); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---------- Fond animé ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateX(4%);
  transition: opacity 1.8s ease, transform 1.8s ease;
}
.slide.is-active { opacity: 1; transform: none; }
.slide.is-leaving { opacity: 0; transform: translateX(-4%); }
.slide-img {
  position: absolute; inset: -2%;
  background-size: cover; background-position: center;
  filter: saturate(0.85);
  transform: scale(1); /* zoom lent animé en JS (main.js), mis en pause quand l'onglet est masqué */
}

/* Fond par défaut tant qu'aucune photo n'est déposée dans assets/img/bg */
.slide-fallback .slide-img {
  background:
    radial-gradient(ellipse 60% 50% at 20% 25%, rgba(43, 92, 184, 0.45), transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 70%, rgba(110, 168, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(217, 180, 90, 0.12), transparent 70%),
    linear-gradient(160deg, #0b1630 0%, #070b14 60%, #04070d 100%);
}

.veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.3) 0%, rgba(7, 11, 20, 0.45) 50%, rgba(7, 11, 20, 0.75) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(4, 7, 13, 0.6) 100%);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide-img { transition: none !important; animation: none !important; }
}

/* ---------- Barre du haut ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.page-legal .topbar {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.95rem; }
.nav { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 26px); }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.nav a:hover { color: var(--gold-light); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 0.78rem !important; letter-spacing: 0.08em; }
.lang-switch span { padding: 4px 10px; }
.lang-switch .on { background: var(--blue-deep); color: #fff; }

@media (max-width: 720px) {
  .nav a:not(.lang-switch) { display: none; }
  .brand span { display: none; }
}

/* Accueil : menu centré sous le titre, qui se colle en haut au défilement */
.topbar-dock {
  position: sticky; left: auto; right: auto;
  justify-content: center;
  padding: 10px clamp(16px, 4vw, 40px);
  /* fins filets dorés au-dessus et en dessous, estompés sur les bords */
  background:
    linear-gradient(90deg, transparent, rgba(217, 180, 90, 0.45), transparent) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(217, 180, 90, 0.45), transparent) bottom / 100% 1px no-repeat;
  animation: rise 1.2s 0.4s ease both;
}
.topbar-dock.is-stuck {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: var(--line);
}
.topbar-dock .brand {
  position: absolute; left: clamp(16px, 4vw, 40px); top: 50%;
  opacity: 0; visibility: hidden;
  transform: translateY(-50%) translateX(-8px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.topbar-dock.is-stuck .brand { opacity: 1; visibility: visible; transform: translateY(-50%); }
.topbar-dock .nav {
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
  gap: clamp(14px, 3vw, 36px);
  padding: 4px 2px;
}
.topbar-dock .nav::-webkit-scrollbar { display: none; }
.topbar-dock .nav a:not(.lang-switch) {
  display: inline-block; position: relative; flex-shrink: 0;
  padding: 4px 0;
  color: var(--text);
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  white-space: nowrap;
}
.topbar-dock .nav a:not(.lang-switch)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform 0.25s;
}
.topbar-dock .nav a:not(.lang-switch):hover { color: var(--gold-light); }
.topbar-dock .nav a:not(.lang-switch):hover::after { transform: scaleX(1); }
.topbar-dock .lang-switch { flex-shrink: 0; }
@media (max-width: 1000px) { .topbar-dock .brand span { display: none; } }
@media (max-width: 720px) {
  .topbar-dock { padding: 8px 12px; }
  .topbar-dock .brand { display: none; }
  .topbar-dock .nav { gap: 11px; }
  .topbar-dock .nav a:not(.lang-switch) { font-size: 0.72rem; letter-spacing: 0.06em; }
}

/* ---------- Hero ---------- */
/* Titre au-dessus du menu, accroche et boutons en dessous : l'ensemble occupe le premier écran */
.hero {
  min-height: 52svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center;
  padding: 48px 16px 22px;
}
.hero-tail {
  min-height: calc(48svh - 52px);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center;
  padding: 4px 16px 90px;
  position: relative;
}
.hero-logo {
  width: clamp(120px, 22vw, 180px); height: auto;
  filter: drop-shadow(0 0 28px rgba(110, 168, 255, 0.35));
  animation: rise 1.2s ease both;
}
.hero h1 {
  margin: 18px 0 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.05;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
  animation: rise 1.2s 0.15s ease both;
}
.tagline {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.32em; text-transform: uppercase; font-size: clamp(0.78rem, 2.4vw, 0.95rem);
  animation: rise 1.2s 0.3s ease both;
}
.lead {
  margin: 22px 0 0; max-width: 34ch;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  color: var(--text);
  animation: rise 1.2s 0.45s ease both;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 34px 0 0; animation: rise 1.2s 0.6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%;
  width: 22px; height: 36px; margin-left: -11px;
  border: 1.5px solid rgba(188, 214, 255, 0.5); border-radius: 12px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--ice);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(188, 214, 255, 0.35);
  background: rgba(12, 20, 36, 0.5);
  color: var(--text);
  font: inherit; font-size: 0.95rem; letter-spacing: 0.03em;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { border-color: var(--gold); background: rgba(217, 180, 90, 0.12); color: var(--gold-light); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue-deep), #3d74d6); border-color: transparent; color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #3468c9, #4d85e6); border-color: var(--gold); color: #fff; box-shadow: 0 0 20px rgba(217, 180, 90, 0.25); }

.badge {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  color: #1a1305; background: var(--gold-grad);
}

/* ---------- Sections ---------- */
.panel { padding: clamp(64px, 10vw, 110px) 16px; position: relative; }
#about, #services, #kpz, #links, #contact { background: rgba(7, 11, 20, 0.3); }
#kpz { background: linear-gradient(135deg, rgba(25, 48, 95, 0.5), rgba(7, 11, 20, 0.3)); }
#contact { background: rgba(7, 11, 20, 0.45); }

/* Panneaux « verre dépoli » : le texte reste lisible, la photo reste visible autour */
#main > .panel > .wrap {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line); border-radius: 22px;
  background: rgba(7, 11, 20, 0.6);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
#kpz > .wrap { background: linear-gradient(135deg, rgba(25, 48, 95, 0.62), rgba(7, 11, 20, 0.6)); }

.wrap { max-width: 1080px; margin: 0 auto; }
.wrap.narrow { max-width: 720px; }

h2 {
  margin: 0 0 14px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: 0.04em;
}
h2::after { content: ""; display: block; width: 48px; height: 2px; margin-top: 14px; background: linear-gradient(90deg, var(--gold), transparent); }
.section-lead { color: var(--muted); margin: 0 0 32px; }
.prose p { margin: 0 0 1em; color: #cfdaea; }
.eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.75rem; color: var(--gold); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  padding: 28px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 34, 60, 0.55), rgba(12, 20, 36, 0.4));
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: rgba(217, 180, 90, 0.5); transform: translateY(-3px); }
.card:hover .card-icon { background: var(--gold); }
.card h3 { margin: 14px 0 8px; font-weight: 500; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card-icon {
  display: block; width: 40px; height: 40px;
  background: var(--ice);
  transition: background 0.25s;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.card-icon-shibari { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 8c4-4 12-4 16 0M4 16c4 4 12 4 16 0'/%3E%3Cpath d='M8 4c-4 4-4 12 0 16M16 4c4 4 4 12 0 16'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3C/svg%3E"); }
.card-icon-photo { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M3 8h4l2-3h6l2 3h4v11H3z'/%3E%3Ccircle cx='12' cy='13' r='3.6'/%3E%3C/svg%3E"); }
.card-icon-video { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='13' height='12' rx='2'/%3E%3Cpath d='M15.5 10.5 21 7v10l-5.5-3.5'/%3E%3C/svg%3E"); }

.kpz { text-align: center; }
.kpz h2::after { margin-left: auto; margin-right: auto; }
.kpz p:not(.eyebrow) { color: #cfdaea; margin: 0 0 26px; }

.links { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; display: grid; gap: 14px; }
.links a, .link-soon {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 16px 22px; border-radius: 16px;
  text-decoration: none;
}
.links a {
  border: 1px solid var(--line); background: rgba(20, 34, 60, 0.45);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.links a:hover { border-color: var(--gold); background: rgba(217, 180, 90, 0.1); color: var(--gold-light); box-shadow: 0 0 22px rgba(217, 180, 90, 0.15); transform: translateY(-2px); }
.link-icon {
  flex: none; width: 40px; height: 28px;
  background: var(--ice);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  transition: background 0.2s;
}
.links a:hover .link-icon { background: var(--gold-light); }
.link-soon .link-icon { background: var(--muted); opacity: 0.6; }
.link-label { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.link-label strong { font-weight: 600; font-size: 1.1rem; letter-spacing: 0.02em; }
.link-label small { color: var(--muted); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s; }
.links a:hover .link-label small { color: var(--gold); }
.link-end { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.link-arrow { font-size: 1.2rem; color: var(--muted); transition: color 0.2s, transform 0.2s; }
.links a:hover .link-arrow { color: var(--gold-light); transform: translate(2px, -2px); }
.link-soon {
  position: relative;
  border: 1px dashed var(--line); background: rgba(20, 34, 60, 0.2);
  color: var(--muted); cursor: not-allowed;
}
.badge-soon { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
.link-soon::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
  padding: 6px 12px; border-radius: 8px;
  background: var(--ice); color: #0c1424; font-size: 0.85rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.link-soon:hover::after, .link-soon:focus::after { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; }
.form label > span { font-size: 0.88rem; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(140, 175, 230, 0.25);
  background: rgba(4, 8, 16, 0.6);
  color: var(--text);
  font: inherit;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(110, 168, 255, 0.2); }
.form [aria-invalid="true"] { border-color: var(--danger); }
.form button { justify-self: start; }
.field-err { color: var(--danger); }
.form-note { margin: 0; font-size: 0.85rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 16px; border-radius: 10px; margin: 0 0 20px; }
.notice-ok { background: rgba(127, 224, 176, 0.12); border: 1px solid rgba(127, 224, 176, 0.4); color: var(--ok); }
.notice-err { background: rgba(255, 138, 138, 0.1); border: 1px solid rgba(255, 138, 138, 0.4); color: var(--danger); }

/* ---------- Fenêtre 18+ ---------- */
.dialog {
  max-width: min(460px, calc(100% - 32px));
  padding: 30px 28px 24px;
  border: 1px solid rgba(140, 175, 230, 0.3); border-radius: 18px;
  background: #0c1424; color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.dialog::backdrop { background: rgba(2, 4, 8, 0.75); backdrop-filter: blur(4px); }
.dialog h2 { font-size: 1.6rem; }
.dialog p { color: #cfdaea; }
.badge-lg { font-size: 0.9rem; padding: 3px 12px; margin: 0 0 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); margin: 6px 0 22px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- Pied de page ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 26px clamp(16px, 4vw, 40px);
  padding-right: calc(clamp(16px, 3vw, 28px) + 68px); /* place pour le bouton « retour en haut » */
  background: #04070d; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--muted);
}
.footer p { margin: 0; }
.footer a { color: var(--muted); }

/* ---------- Mentions légales ---------- */
.page-legal .panel { padding-top: 120px; background: var(--bg); min-height: 80vh; }
.legal h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 6vw, 2.8rem); margin: 10px 0 24px; }
.legal h2 { font-size: 1.3rem; margin-top: 34px; }
.legal h2::after { width: 32px; margin-top: 8px; }
.legal p { color: #cfdaea; }
.back { font-size: 0.9rem; color: var(--muted); text-decoration: none; }

/* ---------- Bouton « retour en haut » ---------- */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 20;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold); background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--gold); cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s, color 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-grad); color: #1a1305; }
.to-top svg { width: 20px; height: 20px; }
