/* ================================================
   GOPISCINE — Design System v3
   SASU · Spécialiste Polyester Haut de Gamme
   100% Responsive
   ================================================ */

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

:root {
  --navy:       #07101f;
  --navy-mid:   #0e1f3a;
  --navy-light: #16305a;
  --azure:      #0077b6;
  --azure-mid:  #0096c7;
  --azure-light:#48cae4;
  --gold:       #c9a96e;
  --gold-light: #e8d5a8;
  --white:      #f8f6f2;
  --off:        #f0ede6;
  --text:       #1a1a2e;
  --muted:      #5f6b7a;
  --border:     rgba(201,169,110,0.22);
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--text); font-size: 15px; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
nav {
  background: var(--navy);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(72,202,228,0.07);
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo span { color: rgba(248,246,242,0.8); font-weight: 300; }
.logo svg { width: 30px; height: 17px; }

.nav-links { display: flex; gap: 0; align-items: center; }
.nav-links a {
  color: rgba(248,246,242,0.6);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-phone { color: var(--azure-light) !important; font-size: 13px !important; letter-spacing: 0.02em !important; border-bottom: none !important; }
.nav-wa {
  background: #25D366 !important;
  color: #fff !important;
  padding: 0 18px !important;
  height: 38px !important;
  align-self: center;
  margin-left: 8px;
  border-bottom: none !important;
  border-radius: 3px;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  display: flex; align-items: center; gap: 6px;
}
.nav-wa:hover { background: #1ebe5d !important; }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: all 0.3s; }
.nav-mobile { display: none; background: var(--navy-mid); padding: 20px 24px; flex-direction: column; gap: 0; border-top: 1px solid rgba(201,169,110,0.1); }
.nav-mobile a { color: rgba(248,246,242,0.7); text-decoration: none; font-size: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05); letter-spacing: 0.04em; display: block; }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.wa-mobile { color: #25D366; margin-top: 8px; }
.nav-mobile.open { display: flex; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 92vh;
}
.hero-left {
  padding: 80px 56px 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,169,110,0.1);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 16px;
  margin-bottom: 28px;
  width: fit-content;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--azure-light); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }

.hero h1 { font-family: 'Cormorant Garamond', serif; font-size: 52px; font-weight: 500; color: var(--white); line-height: 1.08; margin-bottom: 16px; }
.hero h1 em { font-style: italic; color: var(--gold); }

.hero-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.spec-pill {
  background: rgba(0,150,199,0.12);
  border: 1px solid rgba(72,202,228,0.2);
  color: var(--azure-light);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 2px;
}

.hero-sub { color: rgba(248,246,242,0.55); font-size: 14px; line-height: 1.75; margin-bottom: 36px; font-weight: 300; max-width: 420px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 14px; font-weight: 500; letter-spacing: 0.03em; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s; border-radius: 2px; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1ebe5d; }
.btn-outline { border: 1px solid rgba(201,169,110,0.4); color: var(--gold-light); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--gold); }
.btn-navy:hover { background: var(--navy-mid); }
.btn-water { background: var(--azure); color: var(--white); }

.hero-stats { display: flex; gap: 28px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(201,169,110,0.12); flex-wrap: wrap; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 30px; color: var(--gold); font-weight: 500; line-height: 1; }
.stat-label { font-size: 11px; color: rgba(248,246,242,0.4); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }

.hero-right { position: relative; overflow: hidden; }
.hero-right > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(to right, rgba(7,16,31,0.3) 0%, transparent 60%); }
.hero-float { position: absolute; bottom: 32px; left: 32px; background: rgba(7,16,31,0.9); border: 1px solid rgba(201,169,110,0.3); padding: 16px 22px; backdrop-filter: blur(8px); }
.hero-float-title { font-family: 'Cormorant Garamond', serif; color: var(--gold); font-size: 13px; font-weight: 500; }
.hero-float-sub { color: rgba(248,246,242,0.5); font-size: 11px; margin-top: 2px; }
.hero-badge-corner { position: absolute; top: 32px; right: 32px; background: rgba(7,16,31,0.88); border: 1px solid rgba(72,202,228,0.2); padding: 10px 18px; display: flex; align-items: center; gap: 10px; }
.check-circle { width: 28px; height: 28px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.badge-text { font-size: 11px; color: var(--white); line-height: 1.4; }
.badge-text strong { color: var(--azure-light); display: block; font-size: 12px; }

/* ── PAGE HERO COVER ── */
.page-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.page-hero > img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.45); }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(7,16,31,0.7) 0%, rgba(7,16,31,0.2) 70%, transparent 100%), linear-gradient(to top, rgba(7,16,31,0.5) 0%, transparent 50%); }
.page-hero-shimmer { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0px, transparent 38px, rgba(72,202,228,0.025) 38px, rgba(72,202,228,0.025) 40px); pointer-events: none; }
.page-hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 52px 72px; z-index: 2; }
.page-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,169,110,0.13); border: 1px solid rgba(201,169,110,0.28); color: var(--gold); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; padding: 6px 14px; margin-bottom: 14px; width: fit-content; }
.page-hero-badge::before { content: ''; width: 5px; height: 5px; background: var(--azure-light); border-radius: 50%; }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: 50px; font-weight: 500; color: var(--white); line-height: 1.1; margin-bottom: 10px; }
.page-hero h1 em { color: var(--gold); font-style: italic; }
.page-hero-sub { font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(248,246,242,0.45); margin-bottom: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(248,246,242,0.35); letter-spacing: 0.04em; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb span { color: rgba(248,246,242,0.2); }
.page-hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; z-index: 3; }

/* ── SECTION HELPERS ── */
.section-tag { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; color: var(--azure-mid); }
.section-tag::before { content: ''; width: 28px; height: 1px; background: currentColor; flex-shrink: 0; }
.section-tag.gold { color: var(--gold); }
.section-tag.white { color: rgba(248,246,242,0.45); }
h2.display { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 500; line-height: 1.15; color: var(--text); margin-bottom: 16px; }
h2.display.white { color: var(--white); }
h2.display em { color: var(--gold); font-style: italic; }
.lead { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 560px; }
.lead.white { color: rgba(248,246,242,0.55); }

/* ── CARDS ── */
.card { background: var(--white); border: 1px solid rgba(0,0,0,0.06); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,119,182,0.1); }
.card-img { overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,16,31,0.45) 0%, transparent 60%); }
.card-body { padding: 24px 28px; }
.card-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }
.card-accent { border-top: 3px solid var(--azure-mid); }
.card:hover.card-accent { border-top-color: var(--gold); }

/* ── POOL TILE ── */
.pool-tile { background: linear-gradient(135deg, var(--navy-mid) 0%, #0a2545 100%); position: relative; overflow: hidden; padding: 32px; border: 1px solid rgba(72,202,228,0.1); }
.pool-tile::before { content: ''; position: absolute; top:-40%;left:-20%;width:80%;height:80%;background:radial-gradient(circle,rgba(0,150,199,0.12) 0%,transparent 70%);pointer-events:none; }
.pool-tile-icon { width: 44px; height: 44px; background: rgba(0,150,199,0.12); border: 1px solid rgba(72,202,228,0.18); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pool-tile-icon svg { width: 22px; height: 22px; stroke: var(--azure-light); fill: none; stroke-width: 1.5; }
.pool-tile h3 { font-family: 'Cormorant Garamond', serif; font-size: 19px; color: var(--white); font-weight: 500; margin-bottom: 8px; line-height: 1.3; }
.pool-tile p { font-size: 13px; color: rgba(248,246,242,0.45); line-height: 1.65; }

/* ── PROCESS ── */
.process-line { display: grid; grid-template-columns: repeat(6,1fr); gap: 2px; position: relative; }
.process-line::after { content:'';position:absolute;top:22px;left:22px;right:22px;height:1px;background:linear-gradient(to right,rgba(201,169,110,0.4),rgba(72,202,228,0.4));z-index:0; }
.process-item { position: relative; padding-right: 10px; }
.process-num { width:44px;height:44px;background:var(--navy-mid);border:1px solid rgba(201,169,110,0.35);display:flex;align-items:center;justify-content:center;font-family:'Cormorant Garamond',serif;font-size:18px;color:var(--gold);font-weight:500;margin-bottom:18px;position:relative;z-index:1; }
.process-title { font-family:'Cormorant Garamond',serif;font-size:14px;color:var(--white);font-weight:500;margin-bottom:6px;line-height:1.3; }
.process-desc { font-size:12px;color:rgba(248,246,242,0.38);line-height:1.6; }

/* ── QUOTE ── */
.quote-block { border-left:2px solid var(--gold);padding:4px 0 4px 22px;margin-top:28px; }
.quote-block blockquote { font-family:'Cormorant Garamond',serif;font-size:18px;font-style:italic;line-height:1.5;color:var(--white);margin-bottom:8px; }
.quote-block cite { font-size:11px;color:rgba(248,246,242,0.35);font-style:normal;letter-spacing:.06em;text-transform:uppercase; }

/* ── URGENCE ── */
.urgence-band { background:var(--gold);padding:52px 72px;display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap; }
.urgence-band-tag { font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:rgba(7,16,31,0.55);margin-bottom:6px; }
.urgence-band h2 { font-family:'Cormorant Garamond',serif;font-size:28px;color:var(--navy);line-height:1.2;margin-bottom:6px; }
.urgence-band p { color:rgba(7,16,31,0.6);font-size:14px; }

/* ── FOOTER ── */
footer { background:var(--navy);padding:56px 72px 28px;border-top:1px solid rgba(201,169,110,0.07); }
.footer-grid { display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:40px;margin-bottom:40px; }
.footer-brand .logo { font-size:20px;display:block;margin-bottom:14px; }
.footer-brand p { font-size:13px;color:rgba(248,246,242,0.3);line-height:1.7;max-width:240px; }
.footer-col h4 { font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin-bottom:18px;font-weight:500; }
.footer-col a,.footer-col p { display:block;font-size:13px;color:rgba(248,246,242,0.35);text-decoration:none;margin-bottom:9px;transition:color .2s;line-height:1.5; }
.footer-col a:hover { color:var(--gold-light); }
.footer-bottom { border-top:1px solid rgba(248,246,242,0.05);padding-top:22px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px; }
.footer-bottom p { font-size:12px;color:rgba(248,246,242,0.18); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 56px 24px 40px; order: 2; }
  .hero h1 { font-size: 38px; }
  .hero-right { height: 300px; order: 1; }
  .hero-badge-corner { display: none; }
  footer { padding: 48px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .urgence-band { padding: 40px 24px; flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .page-hero { height: 320px; }
  .page-hero-content { padding: 32px 24px; }
  .page-hero h1 { font-size: 32px; }
  h2.display { font-size: 28px; }
  .process-line { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .process-line::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .hero-left { padding: 40px 20px 32px; }
  .hero-right { height: 240px; }
  .hero-float { display: none; }
  .page-hero { height: 260px; }
  .page-hero h1 { font-size: 26px; }
  .btn { padding: 12px 20px; font-size: 13px; }
  .process-line { grid-template-columns: 1fr; }
}

/* ── MOBILE NAV FIX ── */
.nav-mobile {
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  z-index: 199;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* Overlay behind mobile menu */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 198;
  top: 68px;
}
.nav-overlay.open { display: block; }

/* Hamburger → X animation */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero on mobile — image on top, text below */
@media (max-width: 1024px) {
  .hero { display: flex; flex-direction: column; min-height: auto; }
  .hero-right { order: 1; height: 55vw; min-height: 240px; max-height: 380px; flex-shrink: 0; }
  .hero-left { order: 2; }
}

/* Fix body scroll lock when menu open */
body.menu-open { overflow: hidden; }
