/* ============================================
   PYRENEES EAU - Styles personnalisés
   ============================================ */

/* --- Fonts locales --- */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/source-sans-3.woff2') format('woff2');
}

/* --- Variables CSS --- */
:root {
  --color-primary: #1a3b4f;
  --color-primary-light: #24536e;
  --color-secondary: #38bdf8;
  --color-accent: #059669;
  --color-accent-warm: #b45309;
  --color-urgent: #ea580c;
  --color-bg: #f7f9fb;
  --color-bg-alt: #eef5fa;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

/* --- Base --- */
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
}

/* --- Texture de fond subtile (bruit) --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Motif topographique subtil --- */
.bg-topo {
  position: relative;
}
.bg-topo::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231a3b4f' stroke-width='0.5'%3E%3Cpath d='M0 30 Q15 10 30 30 Q45 50 60 30'/%3E%3Cpath d='M0 15 Q15 0 30 15 Q45 30 60 15'/%3E%3Cpath d='M0 45 Q15 25 30 45 Q45 60 60 45'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 60px 60px;
}

/* --- Header transparent -> solide --- */
.header-transparent {
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.header-solid {
  background-color: var(--color-primary);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* --- Animations d'entrée au scroll --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger pour les cards */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* --- Vague SVG séparateur --- */
.wave-separator {
  position: relative;
}
.wave-separator::after {
  content: '';
  display: block;
  width: 100%;
  height: 60px;
  background-repeat: no-repeat;
  background-size: 100% 60px;
  background-position: bottom;
}
.wave-separator-bottom::after {
  position: absolute;
  bottom: -59px;
  left: 0;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 C240 50 480 0 720 30 C960 60 1200 10 1440 40 L1440 0 L0 0Z' fill='%231a3b4f' fill-opacity='0.85'/%3E%3C/svg%3E");
}
.wave-separator-white::after {
  position: absolute;
  bottom: -59px;
  left: 0;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 C240 50 480 0 720 30 C960 60 1200 10 1440 40 L1440 0 L0 0Z' fill='%23f7f9fb'/%3E%3C/svg%3E");
}
.wave-separator-alt::after {
  position: absolute;
  bottom: -59px;
  left: 0;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 C240 50 480 0 720 30 C960 60 1200 10 1440 40 L1440 0 L0 0Z' fill='%23eef5fa'/%3E%3C/svg%3E");
}
.wave-separator-accent::after {
  position: absolute;
  bottom: -59px;
  left: 0;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 C240 50 480 0 720 30 C960 60 1200 10 1440 40 L1440 0 L0 0Z' fill='%23059669'/%3E%3C/svg%3E");
}
.wave-separator-urgent::after {
  position: absolute;
  bottom: -59px;
  left: 0;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 C240 50 480 0 720 30 C960 60 1200 10 1440 40 L1440 0 L0 0Z' fill='%23ea580c'/%3E%3C/svg%3E");
}

/* Vague inversée (top) */
.wave-top {
  position: relative;
}
.wave-top::before {
  content: '';
  display: block;
  position: absolute;
  top: -59px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 10;
  background-repeat: no-repeat;
  background-size: 100% 60px;
}
.wave-top-urgent::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60 L0 40 C240 10 480 60 720 30 C960 0 1200 50 1440 20 L1440 60Z' fill='%23ea580c'/%3E%3C/svg%3E");
}
.wave-top-accent::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60 L0 40 C240 10 480 60 720 30 C960 0 1200 50 1440 20 L1440 60Z' fill='%23059669'/%3E%3C/svg%3E");
}

/* --- Pulsation bouton urgence --- */
@keyframes pulse-urgent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}
.pulse-urgent {
  animation: pulse-urgent 2s ease-in-out infinite;
}

/* --- Hero gradient mesh --- */
.hero-overlay {
  background: linear-gradient(135deg, rgba(26, 59, 79, 0.85) 0%, rgba(36, 83, 110, 0.7) 40%, rgba(26, 59, 79, 0.8) 100%);
}

/* --- Cards hover effect amélioré --- */
.card-service {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(26, 59, 79, 0.15);
}

/* --- Bouton CTA accent --- */
.btn-primary {
  background-color: var(--color-secondary);
  color: white;
  transition: background-color 0.3s ease, transform 0.15s ease;
}
.btn-primary:hover {
  background-color: #0ea5e9;
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

/* --- Hero asymétrique (accueil) --- */
.hero-clip {
  clip-path: ellipse(80% 100% at 50% 0%);
}

@media (min-width: 768px) {
  .hero-clip {
    clip-path: ellipse(85% 100% at 50% 0%);
  }
}

/* --- Ligne décorative eau --- */
.water-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  border-radius: 2px;
}

/* --- Focus accessible --- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* --- Swiper pagination --- */
.temoignages-swiper .swiper-pagination {
  position: relative;
  margin-top: 2rem;
}
.temoignages-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #94a3b8;
  opacity: 0.4;
  transition: all 0.3s;
}
.temoignages-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: #38bdf8;
  transform: scale(1.2);
}

/* --- Smooth scroll --- */
html {
  scroll-behavior: smooth;
}
