/* ===========================
   INC PISCINES — Shared Styles
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,700;1,600&display=swap');

/* ── Variables ── */
:root {
  --c-50:  #ECF4F8;
  --c-100: #D0E8F2;
  --c-200: #A7D4E8;
  --c-300: #76BADA;
  --c-400: #5AAACF;
  --c-500: #4192BE;
  --c-600: #3278A1;
  --c-700: #255F80;
  --c-800: #19394A;
  --c-900: #0F2233;
  --c-950: #070F13;

  --brand-accent:       #4192BE;
  --brand-accent-hover: #3278A1;
  --brand-light:        #ECF4F8;
  --brand-dark:         #19394A;
  --brand-darker:       #070F13;

  --text-base:      #070F13;
  --text-secondary: #19394A;
  --text-muted:     #5B7A8A;
  --text-on-dark:   #ECF4F8;
  --text-on-accent: #FFFFFF;

  --surface-1:      #FFFFFF;
  --surface-2:      #ECF4F8;
  --surface-3:      #D0E8F2;
  --surface-dark:   #19394A;
  --surface-darker: #071012;

  --border:        rgba(65,146,190,0.15);
  --border-strong: rgba(65,146,190,0.35);

  --grad-hero:    linear-gradient(140deg, #070F13 0%, #19394A 55%, #255F80 100%);
  --grad-accent:  linear-gradient(135deg, #4192BE 0%, #5AAACF 100%);
  --grad-surface: linear-gradient(180deg, #ECF4F8 0%, #FFFFFF 100%);

  --shadow-sm:   0 1px 4px rgba(7,15,19,0.06);
  --shadow-md:   0 4px 16px rgba(7,15,19,0.10);
  --shadow-lg:   0 8px 32px rgba(7,15,19,0.14);
  --shadow-xl:   0 20px 60px rgba(7,15,19,0.18);
  --shadow-glow: 0 0 48px rgba(65,146,190,0.22);

  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-accent:  'Playfair Display', Georgia, serif;

  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 9999px;

  --t-fast: 150ms ease;
  --t-base: 300ms ease;
  --t-slow: 500ms cubic-bezier(0.4,0,0.2,1);

  --max-w:        1200px;
  --max-w-narrow: 800px;
  --nav-h:        72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text-muted);
  background: var(--surface-1);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-base); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; }
h3 { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { font-size: 1rem; font-weight: 400; }

.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

/* ── Layout ── */
.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }
.section { padding: 80px 0; }
.section--alt { background: var(--surface-2); }
.section--dark { background: var(--surface-dark); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--text-on-dark); }
.section--dark .label { color: var(--c-300); }
.text-center { text-align: center; }

.section-header { margin-bottom: 52px; }
.section-header h2 { margin-top: 10px; }
.section-header p { max-width: 560px; margin: 16px auto 0; font-size: 1.05rem; color: var(--text-muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: var(--r-full);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.btn--primary { background: var(--grad-accent); color: var(--text-on-accent); }
.btn--primary:hover { background: var(--brand-accent-hover); }
.btn--outline { background: transparent; border: 2px solid rgba(255,255,255,0.5); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn--ghost { background: rgba(65,146,190,0.12); color: var(--brand-accent); border: 1.5px solid var(--border-strong); }
.btn--ghost:hover { background: rgba(65,146,190,0.2); }
.btn--dark { background: var(--text-base); color: var(--text-on-dark); }
.btn--dark:hover { background: var(--c-900); }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--t-base), box-shadow var(--t-base);
}
.nav.scrolled {
  background: #071012;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}
.nav__inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; height: 48px; }
.nav__logo img { height: 58px; width: auto; object-fit: contain; }
.nav.scrolled .nav__logo img { opacity: 0.95; }
.nav__links { display: flex; gap: 28px; font-size: 0.88rem; font-weight: 500; }
.nav__links a { color: rgba(255,255,255,0.75); transition: color var(--t-fast); }
.nav__links a:hover { color: var(--c-300); }
.nav__links a.active { color: var(--c-300); }
.nav__cta .btn { padding: 10px 22px; font-size: 0.82rem; }

/* Nav sur pages internes (fond non-hero) */
.nav--solid { background: #071012; box-shadow: var(--shadow-md); }
.nav--solid .nav__links a { color: rgba(255,255,255,0.75); }

/* ── Hamburger button ── */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  gap: 5px;
  background: none; border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform-origin: center;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav panel ── */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: #071012;
  padding: 8px 0 20px;
  border-top: 1px solid rgba(65,146,190,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  z-index: 99;
}
.nav__mobile.is-open {
  display: block;
  animation: navSlideDown 0.22s ease;
}
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav__mobile ul { list-style: none; padding: 0; margin: 0; }
.nav__mobile ul li a {
  display: block;
  padding: 13px 20px;
  font-size: 0.95rem; font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__mobile ul li a:hover { color: var(--c-300); background: rgba(65,146,190,0.07); }
.nav__mobile__cta {
  padding: 14px 20px 0;
  border-top: 1px solid rgba(65,146,190,0.12);
  margin-top: 8px;
}
.nav__mobile__cta .btn { width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__logo { margin-left: 12px; }
  .nav__burger { display: flex; margin-right: 4px; }
}

@keyframes ripple-drift {
  from { transform: translateX(0) translateY(0); }
  to   { transform: translateX(48px) translateY(-48px); }
}

/* ── Page Hero (interne) ── */
.page-hero {
  background: var(--grad-hero);
  padding: calc(var(--nav-h) + 56px) 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -48deg,
    transparent, transparent 10px,
    rgba(65,146,190,0.04) 10px, rgba(65,146,190,0.04) 12px
  );
  animation: ripple-drift 16s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65,146,190,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--text-on-dark); margin-top: 10px; margin-bottom: 16px; }
.page-hero p { color: rgba(236,244,248,0.8); font-size: 1.1rem; max-width: 560px; }
.page-hero__wave {
  position: absolute; bottom: -2px; left: 0; right: 0; z-index: 2;
}
.page-hero__wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.78rem; color: rgba(236,244,248,0.5);
  margin-bottom: 12px;
}
.breadcrumb a { color: rgba(236,244,248,0.5); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--c-300); }
.breadcrumb span { color: var(--c-300); }

/* ── Cards ── */
.card {
  background: var(--surface-1);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-fast);
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--text-base); background: var(--surface-1);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(65,146,190,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-note { margin-top: 10px; font-size: 0.75rem; color: var(--text-muted); text-align: center; }

/* ── CTA Band ── */
.cta-band {
  background: var(--grad-hero); padding: 60px 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(65,146,190,0.12); pointer-events: none;
}
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 1; }
.cta-band__text h2 { color: var(--text-on-dark); font-size: clamp(1.3rem,3vw,1.9rem); margin-bottom: 8px; }
.cta-band__text p { color: rgba(236,244,248,0.7); font-size: 0.95rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Footer ── */
.footer { background: #071012; color: rgba(236,244,248,0.6); padding: 60px 0 28px; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(65,146,190,0.12); margin-bottom: 24px;
}
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.footer__logo { height: 72px; width: auto; object-fit: contain; margin-bottom: 14px; }
.footer p { font-size: 0.86rem; line-height: 1.7; }
.footer__col-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(236,244,248,0.35); margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 9px; }
.footer__links a { font-size: 0.86rem; color: rgba(236,244,248,0.55); transition: color var(--t-fast); }
.footer__links a:hover { color: var(--c-400); }
.nap { display: flex; flex-direction: column; gap: 9px; }
.nap__item { display: flex; gap: 10px; font-size: 0.86rem; align-items: flex-start; }
.nap__item span:first-child { color: var(--c-400); font-size: 0.95rem; flex-shrink: 0; margin-top: 2px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.75rem; color: rgba(236,244,248,0.3); }
.footer__legal { display: flex; gap: 18px; }
.footer__legal a { color: rgba(236,244,248,0.3); transition: color var(--t-fast); }
.footer__legal a:hover { color: rgba(236,244,248,0.6); }

/* ── Utilities ── */
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mb-4  { margin-bottom: 1rem; }
.gap-2 { gap: 0.5rem; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.grid { display: grid; }
@media (max-width: 600px) { .section { padding: 56px 0; } }

/* ── Responsive corrections ── */

/* Fix 1 — why__badge-float : right:-16px déborde sur mobile */
@media (max-width: 768px) {
  .why__badge-float { right: 16px; bottom: -10px; }
}

/* Fix 2 — Hero CTAs : stack full-width sur petit mobile */
@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}

/* Fix 3 — CTA band : centrage quand le flex passe en colonne */
@media (max-width: 640px) {
  .cta-band__inner { flex-direction: column; align-items: center; text-align: center; }
  .cta-band__actions { justify-content: center; width: 100%; }
  .cta-band__text { width: 100%; }
}

/* Fix 7 — section-header : margin-bottom réduit sur mobile */
@media (max-width: 600px) {
  .section-header { margin-bottom: 36px; }
}

/* Fix 8 — page-hero : padding réduit sur mobile */
@media (max-width: 600px) {
  .page-hero { padding: calc(var(--nav-h) + 32px) 0 48px; }
}
