/* olaflo.fr - Piscine & Spa Centre-Val de Loire */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0077b6;
  --primary-dark: #005f92;
  --secondary: #00b4d8;
  --accent: #90e0ef;
  --gold: #c9a84c;
  --dark: #1a1a2e;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #f0f9ff;
  --white: #ffffff;
  --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* Header */
header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,119,182,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.logo span { color: var(--gold); }

nav { display: flex; gap: 30px; align-items: center; }

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

nav a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: 600 !important;
  transition: background 0.3s !important;
}

.nav-cta:hover { background: var(--primary-dark) !important; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.menu-toggle span { display: block; width: 25px; height: 2px; background: var(--text); transition: all 0.3s; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0077b6 0%, #023e8a 50%, #03045e 100%);
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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' fill-rule='evenodd'%3E%3Cg fill='%2390e0ef' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary:hover { background: #b8963d; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,168,76,0.4); }

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.3s;
  display: inline-block;
}

.btn-secondary:hover { background: rgba(255,255,255,0.25); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.hero-stat span { font-size: 0.9rem; opacity: 0.8; }

/* Sections communes */
section { padding: 80px 20px; }
.container { max-width: 1200px; margin: 0 auto; }

.section-badge {
  display: inline-block;
  background: var(--bg);
  color: var(--primary);
  padding: 5px 16px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 15px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 50px;
}

.text-center { text-align: center; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 35px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.service-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,119,182,0.15); border-color: var(--primary); }

.service-icon {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.service-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.service-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* Why us */
.why-section { background: var(--bg); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-features { display: flex; flex-direction: column; gap: 25px; margin-top: 30px; }

.why-feature {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.why-icon {
  width: 45px;
  height: 45px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: white;
}

.why-feature h4 { font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.why-feature p { color: var(--text-light); font-size: 0.95rem; }

.why-visual {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  padding: 50px;
  color: white;
  text-align: center;
}

.why-visual-number { font-size: 5rem; font-weight: 800; opacity: 0.3; line-height: 1; }
.why-visual h3 { font-size: 1.5rem; font-weight: 700; margin-top: 10px; }
.why-visual p { opacity: 0.85; margin-top: 10px; }

/* Témoignages */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 1px solid var(--border);
}

.stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: 15px; }

.testimonial-card p { color: var(--text); font-style: italic; margin-bottom: 20px; line-height: 1.7; }

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 45px; height: 45px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}
.author-name { font-weight: 700; color: var(--dark); }
.author-location { font-size: 0.85rem; color: var(--text-light); }

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--primary), #023e8a);
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.cta-section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 15px; }
.cta-section p { opacity: 0.9; font-size: 1.1rem; margin-bottom: 35px; }

.cta-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.btn-white {
  background: white;
  color: var(--primary);
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,255,255,0.3); }

.btn-outline-white {
  background: transparent;
  color: white;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.3s;
  display: inline-block;
}

.btn-outline-white:hover { background: rgba(255,255,255,0.15); }

/* Footer */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 20px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo { font-size: 1.4rem; font-weight: 800; color: white; margin-bottom: 12px; }
.footer-logo span { color: var(--gold); }
.footer-desc { font-size: 0.9rem; line-height: 1.7; }

.footer-col h4 { color: white; font-weight: 700; margin-bottom: 18px; font-size: 0.95rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 50px auto 0; display: flex; flex-direction: column; gap: 15px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: transform 0.3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 300px; padding: 0 25px 20px; }

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 50px;
  counter-reset: step;
}

.process-step {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 20px;
}

.process-step h3 { font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.process-step p { color: var(--text-light); font-size: 0.9rem; }

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: white; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); gap: 15px; }
  .menu-toggle { display: flex; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 30px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
