/* ============================================================
   VIRTUAL MOTION EXPERIENCE — style.css
   Design premium : océan profond + turquoise lumineux
   Mobile-first, accessible, performant.
   ============================================================ */

:root {
  --abyss: #020d18;
  --deep: #04121f;
  --ocean: #062033;
  --lagoon: #0a3a52;
  --turq: #22d3ee;
  --turq-dark: #06b6d4;
  --radius: 1.4rem;
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--abyss); }

::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }

/* Accessibilité : lien d'évitement + focus visible */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 100;
  background: var(--turq); color: #04121f; font-weight: 700;
  padding: 0.6rem 1rem; border-radius: 0.7rem; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--turq);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Typographie utilitaire ---------- */
.h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.eyebrow {
  display: flex; align-items: center; gap: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.25em;
  font-size: 12px; font-weight: 700; color: var(--turq);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--turq), transparent);
}
.eyebrow.\!justify-center::after {
  content: ''; width: 28px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--turq));
}
.text-gradient {
  background: linear-gradient(92deg, #67e8f9 0%, #22d3ee 45%, #2dd4bf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section { padding: 5.5rem 0; }
@media (min-width: 640px) { .section { padding: 7rem 0; } }

/* ---------- Boutons ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Sora', sans-serif; font-weight: 700;
  padding: 0.95rem 1.7rem; border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer; font-size: 15px; line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #06b6d4 60%, #0891b2);
  color: #03202b;
  box-shadow: 0 10px 30px -8px rgba(34, 211, 238, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(34, 211, 238, 0.65);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--turq); background: rgba(34, 211, 238, 0.12); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
#navbar { background: transparent; }
#navbar.scrolled {
  background: rgba(4, 18, 31, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
}
#navbar.scrolled nav { padding-top: 0.7rem; padding-bottom: 0.7rem; }
.nav-link { position: relative; transition: color 0.2s; padding: 0.3rem 0; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--turq); border-radius: 2px; transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.mobile-link {
  display: block; padding: 0.75rem 0.9rem; border-radius: 0.8rem; color: rgba(255,255,255,0.85);
}
.mobile-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
/* ---------- Visibilité nav : 100% CSS maison (ne dépend pas du CDN Tailwind) ---------- */
.desktop-nav { display: none; list-style: none; margin: 0; padding: 0; }
.nav-cta { display: none; }
.burger-wrap { display: inline-flex; align-items: center; justify-content: center; }
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }
@media (min-width: 640px) {
  .nav-cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .burger-wrap { display: none; }
  #mobile-menu, #mobile-menu.open { display: none; }
}

/* ---------- Sélecteur de langue FR/EN ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px; padding: 3px;
}
.lang-btn {
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.6);
  padding: 0.35rem 0.7rem; border-radius: 999px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--turq); color: #03202b; }

.burger-lines { display: grid; gap: 5px; width: 22px; }
.burger-lines span { height: 2px; background: #fff; border-radius: 2px; transition: 0.25s; display: block; }
#burger[aria-expanded="true"] .burger-lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#burger[aria-expanded="true"] .burger-lines span:nth-child(2) { opacity: 0; }
#burger[aria-expanded="true"] .burger-lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 115%; object-fit: cover; transform: translateY(0); will-change: transform; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(2,13,24,0.55) 0%, rgba(2,13,24,0.35) 40%, rgba(2,13,24,0.92) 100%),
    linear-gradient(100deg, rgba(2,13,24,0.85) 0%, rgba(2,13,24,0.35) 55%, rgba(6,182,212,0.18) 100%);
}
.hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  right: -150px; top: 10%;
  background: radial-gradient(circle, rgba(34,211,238,0.22), transparent 65%);
  filter: blur(10px); pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid rgba(103,232,249,0.35); color: #a5f3fc;
  background: rgba(8,51,68,0.5); backdrop-filter: blur(8px);
  padding: 0.55rem 1rem; border-radius: 999px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero-chip {
  background: rgba(34,211,238,0.15); border: 1px solid rgba(34,211,238,0.35);
  color: #a5f3fc; font-weight: 700; font-size: 12px;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; display: block; }
@media (min-width: 768px) { .hero-wave svg { height: 110px; } }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.4); border-radius: 999px;
  display: flex; justify-content: center; padding-top: 8px; z-index: 10;
}
.scroll-hint span { width: 4px; height: 8px; border-radius: 4px; background: var(--turq); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

.glass-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  border-radius: 1.1rem; padding: 1rem;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}
.float-a { animation: floaty 6s ease-in-out infinite; }
.float-b { animation: floaty 7s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.live-badge {
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 800;
  padding: 0.3rem 0.6rem; border-radius: 0.5rem; letter-spacing: 0.05em; white-space: nowrap;
}
.dot-sep { width: 5px; height: 5px; border-radius: 50%; background: rgba(34,211,238,0.5); }

/* ---------- Cartes génériques ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(34,211,238,0.4); box-shadow: 0 25px 50px -20px rgba(6,182,212,0.35); }
.icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 1rem; color: var(--turq);
  background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.3);
}

/* Étapes */
.step-card {
  position: relative; border-radius: var(--radius); padding: 1.75rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  overflow: hidden; transition: transform 0.3s, border-color 0.3s;
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(34,211,238,0.45); }
.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--turq), #2dd4bf);
  opacity: 0; transition: opacity 0.3s;
}
.step-card:hover::before { opacity: 1; }
.step-num {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1;
  background: linear-gradient(180deg, rgba(103,232,249,0.9), rgba(103,232,249,0.15));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-icon { position: absolute; top: 1.2rem; right: 1.2rem; font-size: 1.5rem; opacity: 0.9; }

/* Stats */
.stat {
  border-radius: 1.1rem; padding: 1.4rem 1rem;
  background: rgba(2,13,24,0.55); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
}
.stat-value { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(165,243,252,0.8); margin-top: 0.3rem; }

/* Tarifs */
.price-card {
  position: relative; border-radius: 1.6rem; padding: 2rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.price-card:hover { transform: translateY(-8px); border-color: rgba(34,211,238,0.4); }
.price-card.featured {
  background: linear-gradient(180deg, rgba(6,182,212,0.18), rgba(255,255,255,0.04));
  border: 1.5px solid rgba(34,211,238,0.55);
  box-shadow: 0 30px 60px -25px rgba(6,182,212,0.5);
}
.badge-pop {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #22d3ee, #2dd4bf); color: #03202b;
  font-size: 12px; font-weight: 800; padding: 0.35rem 1rem; border-radius: 999px; white-space: nowrap;
}
.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.check::before { content: '✓'; color: var(--turq); font-weight: 800; }

/* ---------- Formulaire ---------- */
.field label { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); margin-bottom: 0.45rem; }
.field label span { color: var(--turq); }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(2,13,24,0.6); color: #fff;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 0.9rem;
  padding: 0.85rem 1rem; font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s;
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.35); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--turq); box-shadow: 0 0 0 3px rgba(34,211,238,0.2);
}
.field input.invalid, .field select.invalid { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,0.15); }
.field-error { font-size: 12px; color: #fca5a5; margin-top: 0.35rem; min-height: 1em; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px dashed rgba(255,255,255,0.12); }
.summary-row dt { color: rgba(255,255,255,0.55); }
.summary-row dd { font-weight: 700; text-align: right; }
.summary-row.total dd { color: var(--turq); font-size: 1.15rem; font-family: 'Sora', sans-serif; }

/* ---------- Galerie ---------- */
.gallery-item {
  position: relative; border-radius: 1.2rem; overflow: hidden; margin: 0;
  border: 1px solid rgba(255,255,255,0.1); min-height: 100%;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(2,13,24,0.85));
  opacity: 0.9; transition: opacity 0.3s;
}
.gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 0.9rem 1rem; font-size: 13px; font-weight: 600;
}

/* ---------- Pourquoi / avis ---------- */
.why-item {
  display: flex; align-items: center; gap: 0.8rem;
  background: rgba(2,13,24,0.45); border: 1px solid rgba(255,255,255,0.12);
  padding: 0.9rem 1.1rem; border-radius: 1rem; font-weight: 600; font-size: 15px;
  backdrop-filter: blur(8px); transition: transform 0.25s, border-color 0.25s;
}
.why-item:hover { transform: translateX(6px); border-color: rgba(34,211,238,0.45); }
.why-item span { color: var(--turq); }
.quote-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 1.75rem; margin: 0;
  transition: transform 0.3s, border-color 0.3s;
}
.quote-card:hover { transform: translateY(-6px); border-color: rgba(34,211,238,0.35); }
.stars { color: #fbbf24; letter-spacing: 0.15em; font-size: 14px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #03202b;
  background: linear-gradient(135deg, #67e8f9, #2dd4bf);
}

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid rgba(255,255,255,0.1); border-radius: 1.1rem; background: rgba(255,255,255,0.03); overflow: hidden; transition: border-color 0.25s; }
.faq-item.open { border-color: rgba(34,211,238,0.45); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; font-weight: 700; font-size: 15px; text-align: left; color: #fff; cursor: pointer;
  font-family: 'Sora', sans-serif;
}
.faq-q:hover { color: #a5f3fc; }
.faq-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.35);
  color: var(--turq); font-size: 18px; transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s; }
.faq-item.open .faq-a { padding-bottom: 1.2rem; }
.faq-a p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.65; }

/* ---------- Localisation / contact / footer ---------- */
.map-placeholder {
  min-height: 340px; border-radius: 1.6rem; display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed rgba(103,232,249,0.35); background: rgba(255,255,255,0.03);
}
.map-placeholder iframe { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: 1.6rem; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.15rem;
  padding: 1.5rem 1rem; border-radius: 1.2rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.25s, border-color 0.25s;
}
.contact-card:hover { transform: translateY(-5px); border-color: rgba(34,211,238,0.45); }
.foot-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.18em; color: #fff; }
.foot-link { transition: color 0.2s, padding-left 0.2s; }
.foot-link:hover { color: var(--turq); padding-left: 4px; }
.social {
  width: 40px; height: 40px; border-radius: 12px; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: #fff;
  transition: 0.25s;
}
.social:hover { background: var(--turq); color: #03202b; border-color: var(--turq); transform: translateY(-3px); }

/* Flottants */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,0.6);
  transition: transform 0.25s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.to-top {
  position: fixed; right: 22px; bottom: 84px; z-index: 60;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(4,18,31,0.9); border: 1px solid rgba(34,211,238,0.4); color: var(--turq);
  font-size: 18px; cursor: pointer; backdrop-filter: blur(8px); transition: 0.25s;
}
.to-top:hover { background: var(--turq); color: #03202b; }

/* Blobs décoratifs */
.blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.blob-a { width: 420px; height: 420px; top: -120px; left: -120px; background: rgba(6,182,212,0.14); }
.blob-b { width: 480px; height: 480px; bottom: -160px; right: -140px; background: rgba(45,212,191,0.1); }
.blob-c { width: 380px; height: 380px; top: -100px; right: 10%; background: rgba(34,211,238,0.16); }

/* ---------- Révélation au scroll (progressive enhancement) ---------- */
/* Par défaut : contenu VISIBLE. Masqué uniquement si JS actif (html.js),
   pour que la page reste lisible si main.js ne se charge pas. */
.reveal { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.visible { opacity: 1; transform: none; }

/* Fallbacks si le CDN Tailwind est bloqué / hors-ligne */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Responsive fin ---------- */
@media (max-width: 640px) {
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .hero .btn-primary, .hero .btn-ghost { width: 100%; }
}
@media (min-width: 641px) {
  .hero .btn-primary, .hero .btn-ghost { width: auto; }
}

/* ---------- Accessibilité : réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg img { height: 100%; }
}
