:root {
  /* MODE SOMBRE PAR DÉFAUT (Dark Tech) */
  --bg-core: #020205;
  --bg-glass: rgba(10, 20, 40, 0.6);
  --blue-primary: #0066ff;
  --blue-cyan: #00f2ff;
  --gradient-blue: linear-gradient(135deg, #00f2ff 0%, #0066ff 100%);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.15);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
html { scroll-behavior: smooth; font-size: 16px; background: var(--bg-core); transition: background 0.3s ease; }
body { 
  background-color: var(--bg-core); 
  color: var(--text-main); 
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- LOADER PREMIUM --- */
#loading-screen {
  position: fixed; inset: 0; background-color: #020205; z-index: 10000;
  display: flex; justify-content: center; align-items: center;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}
#loading-screen.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; width: 100%; }
.logo-wrapper-loader { position: relative; margin-bottom: 40px; }
.loader-logo { width: 180px; height: auto; position: relative; z-index: 2; image-rendering: -webkit-optimize-contrast; animation: logoReveal 1s ease-out forwards; }
.logo-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120px; height: 120px; background: var(--blue-cyan); filter: blur(60px); opacity: 0.2; border-radius: 50%; animation: pulseGlow 2s infinite alternate; }
.progress-container { width: 240px; text-align: center; }
.progress-bar-bg { width: 100%; height: 2px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; position: relative; }
.progress-bar-fill { width: 0%; height: 100%; background: var(--blue-cyan); box-shadow: 0 0 10px var(--blue-cyan); transition: width 0.1s linear; }
.loading-text { margin-top: 15px; font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; color: var(--text-muted); letter-spacing: 2px; }
.loading-percentage { color: #fff; font-weight: 700; }
@keyframes logoReveal { from { opacity: 0; transform: scale(0.9) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes pulseGlow { from { opacity: 0.15; transform: translate(-50%, -50%) scale(0.8); } to { opacity: 0.3; transform: translate(-50%, -50%) scale(1.1); } }

/* WEBGL & BG */
#webgl-container { position: fixed; inset: 0; z-index: -1; pointer-events: none; transition: opacity 0.5s; }
.noise-overlay { position: fixed; inset: 0; z-index: 9000; opacity: 0.03; pointer-events: none; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E"); }

/* CURSOR */
.cursor-dot { position: fixed; width: 6px; height: 6px; background: var(--blue-cyan); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: transform 0.1s; }
.cursor-ring { position: fixed; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: all 0.3s var(--ease-out); }
body.hovered .cursor-ring { width: 60px; height: 60px; border-color: var(--blue-cyan); background: rgba(0, 242, 255, 0.05); }

/* NAVBAR */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: all 0.3s ease; }
.navbar.scrolled { background: rgba(2, 2, 5, 0.8); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-glass); padding: 10px 0; }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; }
.logo-wrapper { display: flex; align-items: center; }
.nav-logo { height: 50px; width: auto; object-fit: contain; image-rendering: -webkit-optimize-contrast; transition: filter 0.3s; }

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-link { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.95rem; position: relative; opacity: 0.8; transition: opacity 0.3s, color 0.3s; }
.nav-link:hover { opacity: 1; }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 1px; background: var(--blue-cyan); transition: width 0.3s; }
.nav-link:hover::after { width: 100%; }

/* BOUTON THEME */
#theme-toggle { background: none; border: none; cursor: pointer; color: var(--text-main); padding: 8px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease, color 0.3s ease; margin-right: 5px; }
#theme-toggle:hover { transform: scale(1.1); color: var(--blue-cyan); }
#theme-toggle .moon-icon { display: none; }

/* BURGER */
.burger { display: none; background: none; border: none; flex-direction: column; gap: 6px; padding: 10px; z-index: 1001; }
.burger span { width: 30px; height: 2px; background: var(--text-main); display: block; transition: all 0.3s ease; }

/* HERO SECTION */
.hero { min-height: 100vh; padding-top: 100px; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 40px; }
.hero-label { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 50px; background: rgba(0, 102, 255, 0.1); border: 1px solid rgba(0, 102, 255, 0.3); color: var(--blue-cyan); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 30px; transition: background 0.3s, border-color 0.3s; }
.status-dot { width: 8px; height: 8px; background: var(--blue-cyan); border-radius: 50%; box-shadow: 0 0 10px var(--blue-cyan); }
.hero-title { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -2px; margin-bottom: 30px; }
.text-gradient { background: var(--gradient-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.hero-description { font-size: 1.2rem; color: var(--text-muted); line-height: 1.6; max-width: 550px; margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

/* BOUTONS */
.btn { padding: 16px 32px; border-radius: 50px; border: none; font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform 0.3s, background 0.3s, border-color 0.3s, color 0.3s; position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background: var(--gradient-blue); color: #fff; box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0, 102, 255, 0.5); }
.btn-secondary { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-glass); color: var(--text-main); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--text-main); }

/* VISUAL HERO */
.hero-visual { position: relative; perspective: 1000px; }
.hero-product-img { width: 100%; max-width: 600px; height: auto; filter: drop-shadow(0 40px 80px rgba(0, 102, 255, 0.2)); animation: float 6s ease-in-out infinite; }
.glow-effect { position: absolute; width: 300px; height: 300px; background: var(--blue-primary); opacity: 0.3; filter: blur(100px); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* SECTIONS */
.section { padding: 120px 0; }
.section-head { text-align: center; margin-bottom: 80px; padding: 0 20px; }
.tag { color: var(--blue-cyan); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; display: block; margin-bottom: 15px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.glass-panel { background: var(--bg-glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--border-glass); box-shadow: 0 20px 40px rgba(0,0,0,0.1); transition: background 0.3s, border-color 0.3s; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.feature-card { padding: 40px; border-radius: 24px; transition: transform 0.3s, border-color 0.3s; }
.feature-card:hover { transform: translateY(-10px); border-color: var(--blue-primary); }
.icon-box { font-size: 3rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; font-family: var(--font-display); }
.feature-card p { color: var(--text-muted); line-height: 1.6; }

/* CONTACT */
.contact-section { background: linear-gradient(to bottom, var(--bg-core), #050a14); transition: background 0.3s; }
.contact-wrapper { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.contact-header { text-align: center; margin-bottom: 50px; }
.booking-form { padding: 50px; border-radius: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.date-grid { grid-template-columns: 1fr 1fr 1fr; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; color: var(--text-muted); }

/* Inputs */
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-glass); border-radius: 12px; color: var(--text-main); font-family: inherit; font-size: 16px; transition: all 0.3s; appearance: none; -webkit-appearance: none; -moz-appearance: none; }
.input-group select { cursor: pointer; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300f2ff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 40px; }
.input-group select option { background-color: var(--bg-core); color: var(--text-main); padding: 10px; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { outline: none; background-color: rgba(0, 102, 255, 0.05); border-color: var(--blue-cyan); box-shadow: 0 0 20px rgba(0, 242, 255, 0.1); }
.full { margin-bottom: 30px; }
.btn-submit { width: 100%; padding: 18px; font-size: 1.1rem; cursor: pointer; }
.form-status { margin-top: 20px; font-size: 0.95rem; text-align: center; min-height: 20px; font-weight: 500; }
.form-status.success { color: #00ff88; }
.form-status.error { color: #ff3366; }

/* FOOTER */
.footer { margin-top: 0; background: #000; border-top: 1px solid var(--border-glass); padding: 40px 0; transition: background 0.3s, border-color 0.3s; }
.footer-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-logo { height: 30px; width: auto; image-rendering: -webkit-optimize-contrast; transition: filter 0.3s; }
.footer-brand p { font-size: 0.9rem; font-weight: 600; letter-spacing: 1px; color: #fff; } /* Force le texte footer en blanc en mode sombre, ajusté en light */
.footer-links a { color: var(--text-muted); text-decoration: none; margin: 0 15px; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--blue-cyan); }
.footer-copyright { color: rgba(255,255,255,0.2); font-size: 0.8rem; }

/* --- THEME CLAIR (LIGHT MODE) --- */
body.light-mode {
    --bg-core: #f8f9fa; /* Blanc épuré */
    --bg-glass: rgba(255, 255, 255, 0.9); /* Verre blanc */
    --text-main: #1a1a1a; /* Noir doux */
    --text-muted: #555;
    --border-glass: rgba(0, 0, 0, 0.08);
}

/* Ajustements Light Mode */
body.light-mode #webgl-container, 
body.light-mode .noise-overlay { opacity: 0; visibility: hidden; }
body.light-mode .navbar.scrolled { background: rgba(255, 255, 255, 0.95); }

/* LOGO FIX : Au lieu d'inverser (orange), on le passe en NOIR PUR */
body.light-mode .nav-logo,
body.light-mode .footer-logo {
    filter: brightness(0); /* Rendre le logo noir */
}

/* Boutons Light Mode */
body.light-mode .btn-secondary {
    border-color: #000;
    color: #000;
    background: transparent;
}
body.light-mode .btn-secondary:hover {
    background: #000;
    color: #fff;
}

/* Footer Light Mode */
body.light-mode .footer { background: #f1f1f1; border-color: #e0e0e0; }
body.light-mode .footer-brand p { color: #000; }
body.light-mode .footer-copyright { color: #777; }

/* Contact & Hero Light Mode */
body.light-mode .contact-section { background: #f8f9fa; }
body.light-mode .hero-label { background: rgba(0, 102, 255, 0.05); border-color: rgba(0, 102, 255, 0.2); }

/* Inputs Light Mode */
body.light-mode .input-group input, 
body.light-mode .input-group select, 
body.light-mode .input-group textarea {
    background: #fff; color: #000; border-color: #ddd; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
body.light-mode .input-group select option { background: #fff; color: #000; }

/* Gestion Icones */
body.light-mode #theme-toggle .sun-icon { display: none; }
body.light-mode #theme-toggle .moon-icon { display: block; }

/* RESPONSIVE */
@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .hero-product-img { max-width: 80%; }
  .hero-buttons { justify-content: center; }

  .cursor-dot, .cursor-ring { display: none !important; }
  *, *::before, *::after { cursor: auto !important; }
  
  .burger { display: flex; margin-top: 5px; }
  .nav-right { display: flex; position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: rgba(2, 2, 5, 0.98); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); z-index: 900; }
  
  /* Menu Light Mode Mobile */
  body.light-mode .nav-right { background: rgba(255, 255, 255, 0.98); }
  
  .nav-right.active { transform: translateX(0); }
  .nav-links { flex-direction: column; text-align: center; margin-bottom: 40px; gap: 40px; }
  .nav-link { font-size: 2rem; font-family: var(--font-display); }

  .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
  
  .form-grid, .date-grid { grid-template-columns: 1fr; }
  .booking-form { padding: 30px 20px; }
  .nav-logo { height: 45px; }

  .footer-container { flex-direction: column; gap: 40px; text-align: center; }
  .footer-links { display: flex; flex-direction: column; gap: 20px; width: 100%; }
  .footer-links a { margin: 0; padding: 15px; background: rgba(255,255,255,0.03); border-radius: 12px; display: block; }
  body.light-mode .footer-links a { background: #fff; border: 1px solid #eee; }
}

body.no-scroll { overflow: hidden; }

/* FADE & REVEAL */
.fade-in-up { opacity: 0; animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }