/* ============================================
   STYLE.CSS - Nettoyage Sans Traces
   ============================================ */

/* Variables CSS */
:root {
  --primary: #0ea5e9;
  --secondary: #10b981;
  --accent: #f59e0b;
  --gray-50: #f8fafc;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --radius: 16px;
  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

/* Smooth scrolling + offset navbar */
html { scroll-padding-top: 80px; }

/* Sélection de texte */
::selection {
  background: rgba(14,165,233,.2);
  color: #0369a1;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#0ea5e9, #10b981);
  border-radius: 3px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .6; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fade-in-up     { animation: fadeInUp .6s ease-out forwards; }
.animate-fade-in-left   { animation: fadeInLeft .6s ease-out forwards; }
.animate-fade-in-right  { animation: fadeInRight .6s ease-out forwards; }
.animate-scale-in       { animation: scaleIn .4s ease-out forwards; }
.animate-bounce-slow    { animation: bounceSlow 3s ease-in-out infinite; }

/* Delay classes */
.delay-100 { animation-delay: .1s; opacity: 0; }
.delay-200 { animation-delay: .2s; opacity: 0; }
.delay-300 { animation-delay: .3s; opacity: 0; }
.delay-400 { animation-delay: .4s; opacity: 0; }

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  transition: var(--transition);
}
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

/* ============================================
   HERO
   ============================================ */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(14,165,233,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(16,185,129,.10) 0%, transparent 60%),
    linear-gradient(to bottom right, #eff6ff, #ffffff, #f0fdf4);
}

/* ============================================
   CARDS DE SERVICES
   ============================================ */
.service-card {
  transition: var(--transition);
  will-change: transform, box-shadow;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(14,165,233,.15);
}

/* ============================================
   AVANT/APRÈS SLIDER
   ============================================ */
.comparison-container {
  user-select: none;
  -webkit-user-select: none;
}
.comparison-container .slider-handle {
  cursor: ew-resize;
  transition: transform .15s;
}
.comparison-container:hover .slider-handle {
  transform: scaleY(1.05);
}

/* ============================================
   FORMULAIRE CONTACT
   ============================================ */
.form-input {
  transition: var(--transition);
  border: 1.5px solid #e2e8f0;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14,165,233,.1);
  outline: none;
}
.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.1);
}

/* Zone upload drag & drop */
#drop-zone {
  transition: var(--transition);
}
#drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(14,165,233,.05);
  transform: scale(1.01);
}

/* ============================================
   TÉMOIGNAGES
   ============================================ */
.testimonial-card {
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   BOUTONS
   ============================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: var(--transition);
}
.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(14,165,233,.4);
  transform: translateY(-1px) scale(1.02);
}
.btn-primary:active {
  transform: translateY(0) scale(.98);
}

/* ============================================
   FOOTER
   ============================================ */
footer a {
  transition: color .2s;
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
  background: linear-gradient(
    90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%
  );
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
  border-radius: 8px;
}

/* ============================================
   SCROLL REVEAL (Intersection Observer)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  nav, footer, #reservation { display: none !important; }
  body { font-size: 12pt; }
}