/* ============================================================
   LE JAPON — Design System Luxe / Chic / 3D
   Glassmorphism + animations fluides + hover 3D
   ============================================================ */

:root {
  /* Palette 3D — nuit profonde + or + rouge japonais */
  --bg: #070a1c;
  --bg-2: #0d1230;
  --bg-3: #131a45;
  --ink: #f4f2ec;
  --muted: #b8bcd0;
  --muted-2: #8a8fae;
  --gold: #d4af37;
  --gold-2: #f0d878;
  --red: #e33d4f;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Fond animé global */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(60, 70, 160, 0.35), transparent 60%),
    radial-gradient(800px 600px at 85% 20%, rgba(180, 40, 60, 0.22), transparent 60%),
    radial-gradient(700px 700px at 50% 100%, rgba(180, 150, 50, 0.14), transparent 55%),
    var(--bg);
  animation: auroraShift 18s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { filter: hue-rotate(0deg); transform: scale(1); }
  100% { filter: hue-rotate(18deg); transform: scale(1.06); }
}

/* ============================================================
   NAVBAR — transparente
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
.nav.scrolled {
  background: rgba(10, 13, 34, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 12px 5%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--glass-border);
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .dot {
  width: 12px; height: 12px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(227, 61, 79, 0.9);
}
.brand em { color: var(--gold); font-style: normal; }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color .3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .35s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 11px 24px;
  border: 1px solid var(--gold);
  color: var(--gold-2) !important;
  border-radius: 40px;
  transition: background .35s ease, color .35s ease !important;
}
.nav-cta:hover {
  background: var(--gold);
  color: #1a1405 !important;
}
.nav-cta::after { display: none !important; }

/* Burger */
.burger {
  display: none;
  width: 34px; height: 26px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 101;
}
.burger span {
  height: 2px; width: 100%;
  background: var(--ink);
  transition: transform .35s ease, opacity .35s ease;
}
.burger.open span:nth-child(1) { transform: translateY(12px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-12px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.08) translateY(0); }
  to   { transform: scale(1.16) translateY(-14px); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,10,28,0.55) 0%, rgba(7,10,28,0.15) 40%, rgba(7,10,28,0.92) 100%);
}
.hero-content {
  max-width: 780px;
  z-index: 2;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
  text-shadow: 0 6px 40px rgba(0,0,0,0.6);
}
.hero h1 span {
  background: linear-gradient(120deg, var(--gold-2), var(--gold), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  color: #1a1405;
  box-shadow: 0 12px 34px rgba(212, 175, 55, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(212, 175, 55, 0.5);
}
.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--glass-strong);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll svg { animation: bounce 2s ease infinite; }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Particules flottantes 3D */
.float-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 1000px;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,216,120,0.9), rgba(240,216,120,0));
  animation: floatP 12s ease-in-out infinite;
  opacity: 0.6;
}
@keyframes floatP {
  0%,100% { transform: translateZ(-200px) translateY(0); opacity: .2; }
  50% { transform: translateZ(120px) translateY(-40px); opacity: .7; }
}

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */
.section { padding: 100px 5%; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(13,18,48,0.5), transparent); }

.wrap { max-width: 1200px; margin: 0 auto; }

.section-head { text-align: center; margin-bottom: 60px; }
.section-head .kicker {
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-head .line {
  width: 70px; height: 3px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  border-radius: 3px;
}
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ============================================================
   CARTES SERVICES — hover 3D
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform .45s cubic-bezier(.2,.7,.3,1), box-shadow .45s ease, border-color .45s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(212,175,55,0.16), transparent 50%);
  opacity: 0;
  transition: opacity .45s ease;
}
.card:hover {
  transform: translateY(-12px) rotateX(4deg) rotateY(-3deg);
  box-shadow: var(--shadow);
  border-color: rgba(212,175,55,0.4);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 68px; height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, rgba(212,175,55,0.2), rgba(227,61,79,0.18));
  border: 1px solid var(--glass-border);
  margin-bottom: 24px;
  color: var(--gold-2);
  transition: transform .45s ease;
}
.card:hover .card-icon { transform: translateZ(40px) rotate(-4deg) scale(1.05); }
.card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: .3px;
}
.card p { color: var(--muted); font-size: 0.96rem; }
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--gold-2);
  font-size: 0.88rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Cartes images services */
.card-img {
  padding: 0;
  border-radius: var(--radius);
}
.card-img .thumb {
  height: 240px;
  overflow: hidden;
}
.card-img .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card-img:hover .thumb img { transform: scale(1.1); }
.card-img .body { padding: 28px; }

/* ============================================================
   GALERIE
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-grid .g-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
}
.gallery-grid .g-item.wide { grid-column: span 2; }
.gallery-grid .g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-grid .g-item:hover img { transform: scale(1.08); }
.gallery-grid .g-item .cap {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,10,28,0.85));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity .4s ease;
}
.gallery-grid .g-item:hover .cap { opacity: 1; }
.gallery-grid .g-item .cap span {
  font-size: 0.9rem;
  color: var(--ink);
  letter-spacing: 1px;
}

/* ============================================================
   TOKYO 3D — image immersive interactive
   ============================================================ */
.tokyo-3d-wrap {
  perspective: 1200px;
  max-width: 1000px;
  margin: 0 auto;
}
.tokyo-3d-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  will-change: transform;
}
.tokyo-3d-card img {
  width: 100%;
  height: 62vh;
  min-height: 380px;
  object-fit: cover;
  display: block;
}
.tokyo-3d-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7,10,28,0.55) 70%, rgba(7,10,28,0.92));
  pointer-events: none;
}
.tokyo-3d-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 42px;
  z-index: 2;
}
.tokyo-3d-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--gold-2);
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tokyo-3d-caption h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 10px;
}
.tokyo-3d-caption p {
  color: var(--muted);
  max-width: 560px;
  font-size: 0.98rem;
}

/* ============================================================
   TÉMOIGNAGES
   ============================================================ */
.testimonial {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .4s ease, box-shadow .4s ease;
}
.testimonial:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.testimonial .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 16px; }
.testimonial p { color: var(--muted); font-size: 1rem; font-style: italic; margin-bottom: 22px; }
.testimonial .who { display: flex; align-items: center; gap: 14px; }
.testimonial .who .av {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold), var(--red));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: #1a1405;
  font-family: var(--font-serif);
}
.testimonial .who .name { font-weight: 600; font-size: 0.95rem; }
.testimonial .who .role { color: var(--muted-2); font-size: 0.82rem; }

/* ============================================================
   RÉASSURANCE
   ============================================================ */
.reassure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.reassure {
  text-align: center;
  padding: 34px 22px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: transform .4s ease, border-color .4s ease;
}
.reassure:hover { transform: translateY(-6px); border-color: rgba(212,175,55,0.4); }
.reassure svg { color: var(--gold); margin-bottom: 18px; }
.reassure h4 { font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.reassure p { color: var(--muted); font-size: 0.88rem; }

/* ============================================================
   BANDEAU CTA
   ============================================================ */
.cta-band {
  position: relative;
  padding: 80px 5%;
  text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(140deg, rgba(212,175,55,0.16), rgba(227,61,79,0.14));
  border: 1px solid var(--glass-border);
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  margin-bottom: 16px;
}
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; }

/* ============================================================
   FORMULAIRE CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info .info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-info .info-item .ic {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.contact-info .info-item h4 { font-weight: 600; margin-bottom: 4px; }
.contact-info .info-item p { color: var(--muted); }

.form-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 38px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color .3s ease, background .3s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: 0.8rem;
  color: var(--muted-2);
  margin-top: 14px;
}
.form-success {
  display: none;
  padding: 16px;
  border-radius: 12px;
  background: rgba(46, 160, 90, 0.18);
  border: 1px solid rgba(46, 160, 90, 0.4);
  color: #7ee2a8;
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.form-error {
  display: none;
  padding: 16px;
  border-radius: 12px;
  background: rgba(227, 61, 79, 0.16);
  border: 1px solid rgba(227, 61, 79, 0.4);
  color: #ff9aa5;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: rgba(7, 10, 28, 0.7);
  border-top: 1px solid var(--glass-border);
  padding: 70px 5% 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 50px;
}
.footer h4 { font-weight: 600; margin-bottom: 18px; font-size: 1rem; letter-spacing: 1px; }
.footer p, .footer a { color: var(--muted); font-size: 0.92rem; }
.footer .f-links { list-style: none; }
.footer .f-links li { margin-bottom: 10px; }
.footer .f-links a { transition: color .3s ease; }
.footer .f-links a:hover { color: var(--gold-2); }
.footer .brand { font-size: 1.5rem; margin-bottom: 14px; }
.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--glass-border);
  padding-top: 26px;
  color: var(--muted-2);
  font-size: 0.82rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
  animation: revealFallback 0.9s ease 0.3s forwards;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-wrap { max-width: 760px; margin: 0 auto; padding: 40px 5%; }
.admin-login {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.admin-panel { display: none; }
.admin-panel.open { display: block; }
.admin-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 22px;
}
.admin-card h3 { margin-bottom: 16px; font-weight: 600; }
.admin-msg {
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 14px;
}
.admin-msg .head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.admin-msg .head strong { color: var(--gold-2); }
.admin-msg .head time { color: var(--muted-2); font-size: 0.8rem; }
.admin-msg p { color: var(--muted); font-size: 0.92rem; }
.admin-msg .from { font-size: 0.82rem; color: var(--muted-2); margin-bottom: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .reassure-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: rgba(7, 10, 28, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform .4s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }
  .burger { display: flex; }

  .section { padding: 70px 5%; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .g-item.wide { grid-column: span 1; }
  .reassure-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 100px 5% 70px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .form-card { padding: 26px; }
}
