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

:root {
  --ocean: #0a4d68;
  --teal: #088395;
  --aqua: #05bfdb;
  --light: #e8f9fd;
  --white: #ffffff;
  --gold: #c9a84c;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  color: #1a2a35;
  background: var(--white);
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 77, 104, 0.55);
  padding: 1rem 0;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(10, 77, 104, 0.96);
  padding: 0.7rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  color: var(--white); text-decoration: none;
}
.logo span { color: var(--aqua); }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--aqua); }

.btn-nav {
  background: var(--aqua) !important;
  color: var(--ocean) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600 !important;
}

.menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #062f42 0%, var(--ocean) 30%, var(--teal) 65%, #0a8fa5 100%);
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(5,191,219,0.25) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 60%, rgba(5,191,219,0.15) 0%, transparent 45%);
}

/* Caustics — reflets lumineux sous l'eau */
.hero-caustics {
  position: absolute; inset: 0;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 80px 40px at 20% 30%, rgba(5,191,219,0.6) 0%, transparent 70%),
    radial-gradient(ellipse 60px 30px at 60% 50%, rgba(255,255,255,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 100px 50px at 80% 20%, rgba(5,191,219,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 70px 35px at 40% 70%, rgba(255,255,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes causticsMove {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 15px) scale(0.97); }
  100% { transform: translate(15px, 25px) scale(1.03); }
}

/* Canvas vagues */
.water-canvas {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 45%;
  pointer-events: none;
  z-index: 2;
}

/* Bulles */
.hero-bubbles {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-bubbles span {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), rgba(5,191,219,0.15));
  border: 1px solid rgba(255,255,255,0.2);
  animation: bubbleRise linear infinite;
}

.hero-bubbles span:nth-child(1) { width: 10px; height: 10px; left: 15%; animation: bubbleRise 8s linear infinite; }
.hero-bubbles span:nth-child(2) { width: 14px; height: 14px; left: 45%; animation: bubbleRise 10s linear 2s infinite; }
.hero-bubbles span:nth-child(3) { width: 8px;  height: 8px;  left: 70%; animation: bubbleRise 7s linear 1s infinite; }
.hero-bubbles span:nth-child(4) { width: 12px; height: 12px; left: 88%; animation: bubbleRise 9s linear 3s infinite; }

@keyframes bubbleRise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 0.7; }
  50%  { transform: translateY(-45vh) translateX(15px) scale(1.1); opacity: 0.5; }
  100% { transform: translateY(-90vh) translateX(-10px) scale(0.6); opacity: 0; }
}

/* Vagues SVG en bas */
.hero-waves {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}

.hero-waves svg {
  width: 100%;
  height: 120px;
  display: block;
}

.wave { fill: rgba(5,191,219,0.12); }
.wave-1 { animation: waveShift 6s ease-in-out infinite; }
.wave-2 { fill: rgba(5,191,219,0.2); animation: waveShift 8s ease-in-out infinite reverse; }
.wave-3 { fill: rgba(255,255,255,0.08); animation: waveShift 10s ease-in-out infinite; }

@keyframes waveShift {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-30px); }
}

.hero-content {
  position: relative; z-index: 4;
  max-width: 1200px; margin: 0 auto; width: 100%;
  color: var(--white);
}

.hero-tag {
  display: inline-block;
  background: rgba(5, 191, 219, 0.2);
  border: 1px solid var(--aqua);
  color: var(--aqua);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.4s both;
  text-shadow: 0 2px 30px rgba(0,0,0,0.2);
}

.hero > .hero-content > p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem;
  animation: fadeInUp 1s ease 0.8s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  background: var(--aqua);
  color: var(--ocean);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(5,191,219,0.4); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.3s, background 0.3s;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.hero-stats {
  display: flex; gap: 3rem; flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  animation: fadeInUp 1s ease 1s both;
}
.hero-stats strong { display: block; font-size: 1.8rem; font-family: var(--font-display); color: var(--aqua); }
.hero-stats span { font-size: 0.85rem; opacity: 0.7; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1.4s both;
}

.hero-scroll .scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--aqua), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%      { transform: scaleY(0.5); opacity: 0.4; }
}

/* SECTIONS */
.section-tag {
  display: inline-block;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 3rem;
  color: var(--ocean);
}

/* Scroll reveal */
.reveal-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SERVICES */
.services { padding: 6rem 0; background: var(--light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(10,77,104,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(8,131,149,0.1);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(10,77,104,0.15); }

.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.75rem; color: var(--ocean); }
.service-card p { color: #5a7a8a; font-size: 0.95rem; }

/* GALLERY */
.realisations { padding: 6rem 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  height: 320px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 35%, rgba(6,47,66,0.85));
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background 0.4s;
}

.gallery-item:hover .gallery-overlay {
  background: linear-gradient(transparent 20%, rgba(6,47,66,0.9));
}

.gallery-title {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: var(--font-display);
  position: relative; z-index: 1;
}

.gallery-desc {
  color: var(--aqua);
  font-size: 0.85rem;
  margin-top: 0.3rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}

.gallery-item:hover .gallery-desc {
  opacity: 1;
  transform: translateY(0);
}

/* A PROPOS */
.apropos { padding: 6rem 0; background: var(--ocean); color: var(--white); }
.apropos h2 { color: var(--white); }
.apropos .section-tag { color: var(--aqua); }

.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.apropos-text p { opacity: 0.85; margin-bottom: 1rem; }

.check-list { list-style: none; margin-top: 1.5rem; }
.check-list li { padding: 0.5rem 0; padding-left: 1.5rem; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--aqua); font-weight: 700; }

.visual-card {
  background: rgba(5,191,219,0.15);
  border: 1px solid rgba(5,191,219,0.3);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
}

.visual-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--aqua);
  line-height: 1;
  margin-bottom: 1rem;
}

/* TESTIMONIALS */
.testimonials { padding: 6rem 0; background: var(--light); text-align: center; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  text-align: left;
}

blockquote {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  border-left: 4px solid var(--aqua);
  box-shadow: 0 4px 20px rgba(10,77,104,0.06);
}

blockquote p { font-style: italic; color: #3a5a6a; margin-bottom: 1rem; }
blockquote cite { font-size: 0.85rem; color: var(--teal); font-weight: 600; font-style: normal; }

/* CONTACT */
.contact { padding: 6rem 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-details p { margin: 0.75rem 0; color: #5a7a8a; }

.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.9rem 1.2rem;
  border: 1px solid #d0e8f0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--light);
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--aqua);
}

/* FOOTER */
.footer {
  background: var(--ocean);
  color: rgba(255,255,255,0.6);
  padding: 2rem 0;
  text-align: center;
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer .logo { margin-bottom: 0.5rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ocean); padding: 1.5rem 2rem;
  }
  .menu-toggle { display: block; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item { height: 260px; }
  .apropos-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .hero-waves svg { height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-caustics, .hero-bubbles span, .wave, .hero-tag, .hero h1,
  .hero > .hero-content > p, .hero-actions, .hero-stats,
  .hero-scroll .scroll-line {
    animation: none;
  }
  .water-canvas { display: none; }
  .hero-bubbles { display: none; }
}
