/* ============================================================
   L'HAVRAIS COM — style.css
   Variables globales, reset, typographie, nav, footer, utilitaires
   ============================================================ */

/* ----------------------------------------------------------
   0. Google Fonts import (fallback si déjà chargé en HTML)
   ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap');

/* ----------------------------------------------------------
   1. Variables CSS
   ---------------------------------------------------------- */
:root {
  /* Palette */
  --ink:    #0B1E2D;
  --ocean:  #0A4F6F;
  --wave:   #1B8FAA;
  --foam:   #E8F6F9;
  --signal: #F4A307;
  --cream:  #FDFAF5;
  --white:  #FFFFFF;

  /* Typographie */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Espacements */
  --section-padding: 6rem 4rem;
  --container-max:   1160px;

  /* Transitions */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --t-fast:   .18s;
  --t-med:    .3s;
  --t-slow:   .55s;

  /* Ombres */
  --shadow-card: 0 4px 24px rgba(10,79,111,.08);
  --shadow-hover: 0 20px 50px rgba(10,79,111,.14);
}

/* ----------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

/* ----------------------------------------------------------
   3. Utilitaires globaux
   ---------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
}

.section-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--wave);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: normal;
  color: var(--signal);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* Badge pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(244,163,7,.15);
  border: 1px solid rgba(244,163,7,.4);
  color: var(--signal);
  padding: .4rem 1rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ----------------------------------------------------------
   4. Boutons
   ---------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--signal);
  color: var(--ink);
  padding: .9rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
  box-shadow: 0 4px 24px rgba(244,163,7,.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(244,163,7,.45);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: .9rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--t-med),
              background var(--t-med);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
}

/* ----------------------------------------------------------
   5. Navigation
   ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(11,30,45,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: padding var(--t-med) var(--ease-out),
              background var(--t-med);
}

.nav.scrolled {
  padding: .8rem 4rem;
  background: rgba(11,30,45,.98);
}

/* Logo */
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.nav__logo span {
  color: var(--signal);
}

/* Links desktop */
.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav__links a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--t-fast);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--signal);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--t-med) var(--ease-out);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--signal);
}

.nav__links a.active::after {
  transform: scaleX(1);
}

/* CTA button in nav */
.nav__links .nav-cta {
  background: var(--signal);
  color: var(--ink) !important;
  padding: .5rem 1.2rem;
  border-radius: 100px;
  font-weight: 700 !important;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.nav__links .nav-cta::after {
  display: none;
}

.nav__links .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(244,163,7,.4);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: .4rem;
  border-radius: 8px;
  transition: background var(--t-fast);
}

.nav__hamburger:hover {
  background: rgba(255,255,255,.08);
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease-out),
              opacity var(--t-med);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-out);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.8rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: .3rem;
  opacity: .7;
  transition: opacity var(--t-fast);
}

.mobile-menu__close:hover {
  opacity: 1;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.02em;
  transition: color var(--t-fast);
}

.mobile-menu a:hover {
  color: var(--signal);
}

/* ----------------------------------------------------------
   6. Hero — Homepage uniquement
   ---------------------------------------------------------- */
.hero {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 4rem 6rem;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .95;
  color: var(--white);
  letter-spacing: -.03em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--signal);
}

.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------
   7. Page Hero (pages intérieures)
   ---------------------------------------------------------- */
.page-hero {
  background: var(--ink);
  padding: 10rem 4rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: .95;
  color: var(--white);
  letter-spacing: -.03em;
  margin-bottom: 1.2rem;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--signal);
}

.page-hero .sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.6);
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.65;
}

/* ----------------------------------------------------------
   7. Sections standard
   ---------------------------------------------------------- */
section {
  padding: var(--section-padding);
}

/* ----------------------------------------------------------
   8. Footer
   ---------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
  padding: 3.5rem 4rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.02em;
}

.footer__logo span {
  color: var(--signal);
}

.footer__logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  color: rgba(255,255,255,.3);
  margin-top: .25rem;
  font-weight: 400;
}

.footer__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__links a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
  font-size: .85rem;
  transition: color var(--t-fast);
}

.footer__links a:hover {
  color: var(--signal);
}

.footer__social {
  display: flex;
  gap: .8rem;
}

.footer__social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.footer__social a:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.25);
}

.footer__copy {
  text-align: center;
  padding: 1.8rem 0;
  font-size: .78rem;
  color: rgba(255,255,255,.25);
  max-width: var(--container-max);
  margin-inline: auto;
}

/* ----------------------------------------------------------
   9. CTA Band (réutilisé sur plusieurs pages)
   ---------------------------------------------------------- */
.cta-band {
  background: var(--ink);
  padding: 5rem 4rem;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255,255,255,.55);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ----------------------------------------------------------
   10. Stats Band
   ---------------------------------------------------------- */
.stats-band {
  background: var(--signal);
  padding: 4rem;
}

.stats-band__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--container-max);
  margin-inline: auto;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--ink);
  line-height: 1;
}

.stat-label {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(11,30,45,.6);
  margin-top: .5rem;
}

/* ----------------------------------------------------------
   11. Ticker Band
   ---------------------------------------------------------- */
.ticker-wrap {
  background: var(--signal);
  color: var(--ink);
  padding: .65rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-track span {
  display: inline-block;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 0 2.5rem;
}

.ticker-track span::before {
  content: '⚓ ';
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------------------------------------------------------
   12. Responsive — Navigation
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav.scrolled {
    padding: .8rem 1.5rem;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .page-hero {
    padding: 8rem 1.5rem 4rem;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .cta-band {
    padding: 3.5rem 1.5rem;
  }

  .stats-band {
    padding: 3rem 1.5rem;
  }

  .stats-band__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer {
    padding: 2.5rem 1.5rem 0;
  }

  .footer__inner {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .stats-band__inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  section {
    padding: 3rem 1.2rem;
  }

  .page-hero {
    padding: 7rem 1.2rem 3.5rem;
  }
}
