/* ================================================
   VAN LOIRE EXPERIENCE - PREMIUM ENHANCEMENTS
   Améliorations subtiles pour un look haut de gamme
   ================================================ */

/* ==================== 1. TYPOGRAPHIE PREMIUM ==================== */

:root {
  /* Typographie premium */
  --font-primary: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;

  /* 5. COULEURS SOPHISTIQUÉES */
  /* Palette premium plus douce et élégante */
  --primary-blue: #0284C7;        /* Sky-600 - plus doux */
  --primary-light: #0EA5E9;       /* Sky-500 */
  --primary-dark: #075985;        /* Sky-700 */
  --elegant-black: #0C1222;       /* Presque noir avec nuance bleue */
  --text-primary: #1E293B;        /* Slate-800 */
  --text-secondary: #64748B;      /* Slate-500 */
  --light-bg: #FAFBFC;            /* Blanc cassé très subtil */
  --accent-gold: #D97706;         /* Amber-600 - or plus raffiné */
  --accent-gold-light: #F59E0B;   /* Amber-500 */

  /* 4. DÉTAILS RAFFINÉS - Ombres plus sophistiquées */
  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.04);
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.1), 0 4px 6px -4px rgb(15 23 42 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.12), 0 8px 10px -6px rgb(15 23 42 / 0.05);
  --shadow-2xl: 0 25px 50px -12px rgb(15 23 42 / 0.2);

  /* Ombre colorée subtile pour éléments premium */
  --shadow-colored: 0 10px 25px -5px rgb(2 132 199 / 0.15);

  /* Transitions plus fluides */
  --transition-smooth: 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

body {
  font-family: var(--font-secondary);
  color: var(--text-primary);
  /* Amélioration du rendu typographique */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

/* Amélioration tracking des titres pour élégance */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  letter-spacing: -0.025em;
  font-weight: 600;
}

h1 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Paragraphes avec meilleur espacement */
p {
  letter-spacing: -0.01em;
}

/* ==================== 2. MICRO-ANIMATIONS SUBTILES ==================== */

/* Animation globale smooth */
* {
  transition: color var(--transition-smooth),
              background-color var(--transition-smooth),
              border-color var(--transition-smooth),
              box-shadow var(--transition-smooth),
              transform var(--transition-smooth),
              opacity var(--transition-smooth);
}

/* Désactiver transition sur certains éléments */
input, textarea, select, [type="checkbox"], [type="radio"] {
  transition: none;
}

/* Lift effect sur les cards */
.service-card,
.testimonial-card,
.feature-card,
.pricing-card,
.card {
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth);
  will-change: transform, box-shadow;
}

.service-card:hover,
.testimonial-card:hover,
.feature-card:hover,
.pricing-card:hover,
.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-colored);
}

/* Boutons avec effet magnetic subtil */
.btn {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Effet shimmer sur boutons primaires */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
  opacity: 0;
}

/* Liens avec underline animé */
a:not(.btn) {
  position: relative;
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--transition-smooth);
}

a:not(.btn):hover::after {
  width: 100%;
}

/* ==================== 4. DÉTAILS RAFFINÉS ==================== */

/* Backdrop blur sur navigation (effet glassmorphism) */
.nav,
.navbar,
header nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 1px 3px 0 rgb(15 23 42 / 0.04);
}

/* Gradient subtil sur hero */
.hero,
.hero-section {
  position: relative;
  background: linear-gradient(
    135deg,
    #FAFBFC 0%,
    #F1F5F9 50%,
    #E2E8F0 100%
  );
}

.hero::before,
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(2, 132, 199, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(217, 119, 6, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero > *,
.hero-section > * {
  position: relative;
  z-index: 1;
}

/* Bordures ultrafines élégantes */
.card,
.service-card,
.feature-card,
.testimonial-card {
  border: 0.5px solid rgba(226, 232, 240, 0.8);
}

/* Ombres plus douces et sophistiquées */
.card,
.service-card {
  box-shadow:
    0 1px 2px 0 rgb(15 23 42 / 0.03),
    0 0 0 1px rgb(15 23 42 / 0.02);
}

/* Effet de profondeur sur images */
img {
  transition: transform var(--transition-smooth),
              filter var(--transition-smooth);
}

.service-card img:hover,
.card img:hover,
.gallery img:hover {
  transform: scale(1.05);
  filter: brightness(1.05) saturate(1.1);
}

/* Glassmorphism sur éléments overlay */
.modal,
.dropdown,
.popup {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-2xl);
}

/* ==================== 6. FINISHING TOUCHES ==================== */

/* Séparateurs élégants entre sections */
section + section::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  margin: 0 auto 4rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-gold) 50%,
    transparent 100%
  );
  opacity: 0.4;
}

/* Séparateur alternatif avec points */
.section-divider {
  text-align: center;
  margin: 4rem 0;
  position: relative;
}

.section-divider::before {
  content: '◆';
  color: var(--accent-gold);
  font-size: 0.75rem;
  opacity: 0.5;
  letter-spacing: 1rem;
}

/* Icons avec stroke plus fin et élégant */
.icon,
svg.icon,
.feature-icon,
.service-icon {
  stroke-width: 1.5;
  transition: transform var(--transition-smooth),
              color var(--transition-smooth);
}

.icon:hover,
.feature-icon:hover,
.service-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Amélioration des badges/tags */
.badge,
.tag,
.label {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-blue));
  color: white;
  box-shadow: 0 2px 4px rgb(2 132 199 / 0.15);
}

/* Accents or sur éléments premium */
.premium-accent,
.featured,
.highlight {
  position: relative;
}

.premium-accent::before,
.featured::before,
.highlight::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    var(--accent-gold-light),
    var(--accent-gold)
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: -1;
}

.premium-accent:hover::before,
.featured:hover::before,
.highlight:hover::before {
  opacity: 0.15;
}

/* Amélioration des inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  font-family: var(--font-secondary);
  letter-spacing: -0.01em;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-smooth);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
  outline: none;
}

/* Curseur premium sur éléments interactifs */
button,
.btn,
a,
[role="button"],
[onclick] {
  cursor: pointer;
}

button:hover,
.btn:hover,
a:hover {
  cursor: pointer;
}

/* Amélioration scrollbar (Chrome/Safari) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3);
  border-radius: 9999px;
  transition: background var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.5);
}

/* Selection text avec couleur premium */
::selection {
  background: rgba(2, 132, 199, 0.2);
  color: var(--elegant-black);
}

::-moz-selection {
  background: rgba(2, 132, 199, 0.2);
  color: var(--elegant-black);
}

/* Amélioration focus visible pour accessibilité */
*:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Effet parallax subtil sur sections (optionnel) */
@media (prefers-reduced-motion: no-preference) {
  .parallax-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
  }
}

/* Animations d'entrée subtiles */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Classes utilitaires pour animations */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Stagger animation pour listes */
.stagger-item {
  animation: fadeInUp 0.6s ease-out backwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Respect des préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================== RESPONSIVE PREMIUM ==================== */

@media (max-width: 768px) {
  /* Ajustements mobile pour garder l'élégance */
  .service-card:hover,
  .card:hover {
    transform: translateY(-2px) scale(1.005);
  }

  /* Backdrop blur plus léger sur mobile pour performance */
  .nav,
  .navbar {
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
  }
}

/* Print styles premium */
@media print {
  * {
    background: transparent !important;
    box-shadow: none !important;
  }

  body {
    font-family: Georgia, serif;
  }
}
