:root {
  --navy: #0f3253;
  --navy-light: #1e5c97;
  --blue: #2b79c2;
  --blue-pale: #eaf4fc;
  --orange: #f5871f;
  --orange-dark: #e07714;
  --text-muted: #33475b;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--navy);
  background: #fff;
  overflow-x: hidden;
  width: 100%;
}

h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(15, 50, 83, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

@media (min-width: 761px) {
  .brand-logo {
    height: 42px;
  }
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: 12px;
  flex: 1;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--navy-light);
}

.main-nav a:hover {
  color: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-nav {
  padding: 10px 22px;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  white-space: nowrap;
}

.btn-cta {
  padding: 18px 40px;
  background: var(--orange);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 24px rgba(245, 135, 31, 0.35);
}

.btn-cta:hover {
  background: var(--orange-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* Hero
   Le degrade couvre TOUT le hero (quelle que soit sa hauteur, variable selon
   le nombre de lignes d'icones sur mobile) - la vague n'est qu'une bordure
   decorative fine en bas, dessinee en SVG avec preserveAspectRatio="none"
   pour s'etirer exactement sur toute la largeur, contrairement a un
   clip-path CSS (coordonnees fixes en pixels, ne s'adapte pas a l'ecran). */
.hero {
  position: relative;
  background: linear-gradient(180deg, #eaf6fb 0%, #d9edf7 55%, #cfe8f3 100%);
  padding-bottom: 100px;
}

.hero-wave {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 90px;
  display: block;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 96px;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(1.6rem, 8vw, 3.6rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--navy);
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.webapp-block {
  margin-top: 72px;
}

.webapp-label {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--navy);
  margin-bottom: 28px;
}

.webapp-icons {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.webapp-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 160px;
}

.webapp-icon svg {
  width: 56px;
  height: 56px;
}

.webapp-icon p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 80px 0;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-lead {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.produits-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.produit-card {
  background: var(--blue-pale);
  border-radius: 20px;
  padding: 36px 32px;
  width: 240px;
}

.produit-card svg {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}

.produit-card h3 {
  margin: 0 0 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
}

.produit-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact {
  background: var(--blue-pale);
}

.contact-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 0.95rem;
  flex: 1 1 260px;
}

.contact-details a {
  color: var(--navy-light);
  font-weight: 500;
}

.contact-details a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.contact-map {
  display: block;
  flex: 1 1 320px;
  max-width: 420px;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 50, 83, 0.12);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  pointer-events: none;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Partenaires - bande de logos qui defile en continu (droite -> gauche).
   La liste de logos est dupliquee une fois dans le HTML pour une boucle
   parfaitement continue (translateX(-50%) ramene au point de depart). */
.partenaires {
  padding: 56px 0;
  overflow: hidden;
  background: #fff;
}

.partenaires h2 {
  font-size: 1.3rem;
  text-align: center;
  margin: 0 0 32px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track .partenaire-logo {
  height: 64px;
  width: auto;
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* Footer */
.site-footer {
  padding: 28px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(15, 50, 83, 0.08);
}

/* Responsive */
@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    inset: 64px 16px auto 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 50, 83, 0.15);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 8px;
  }

  .btn-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    padding-top: 56px;
  }

  .webapp-icons {
    gap: 32px;
  }
}
