/* =============================
   DISTRIB AZUR — Feuille de style
   ============================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --blanc:    #ffffff;
  --azur:     #00b4d8;
  --azur-light: #48cae4;
  --azur-dark:  #0096c7;
  --nuit:     #03045e;
  --nuit-light: #023e8a;
  --gris:     #f4f8fb;
  --gris-txt: #6b7280;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(3,4,94,.10);
  --transition: .3s ease;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--nuit);
  background: var(--blanc);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Utilitaires ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--nuit);
  line-height: 1.2;
}
.section-title span { color: var(--azur); }

.section-sub {
  font-size: 1.05rem;
  color: var(--gris-txt);
  margin-top: .6rem;
  font-weight: 400;
}

.tag {
  display: inline-block;
  background: rgba(0,180,216,.12);
  color: var(--azur-dark);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-primary {
  background: var(--azur);
  color: var(--blanc);
  box-shadow: 0 6px 20px rgba(0,180,216,.35);
}
.btn-primary:hover { background: var(--azur-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,180,216,.45); }

.btn-outline {
  background: transparent;
  color: var(--blanc);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--blanc); }

.btn-dark {
  background: var(--nuit);
  color: var(--blanc);
  box-shadow: 0 6px 20px rgba(3,4,94,.25);
}
.btn-dark:hover { background: var(--nuit-light); transform: translateY(-2px); }

/* ============================
   NAV
   ============================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1.2rem 0;
}
#navbar.scrolled {
  background: var(--blanc);
  box-shadow: 0 2px 20px rgba(3,4,94,.08);
  padding: .7rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 52px; transition: height var(--transition); }
#navbar.scrolled .nav-logo img { height: 44px; }
.nav-logo .logo-blanc { display: block; }
.nav-logo .logo-color { display: none; }
#navbar.scrolled .nav-logo .logo-blanc { display: none; }
#navbar.scrolled .nav-logo .logo-color { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
  letter-spacing: .02em;
}
.nav-links a:hover { color: var(--blanc); }

#navbar.scrolled .nav-links a { color: var(--nuit); }
#navbar.scrolled .nav-links a:hover { color: var(--azur); }

.nav-cta {
  background: var(--azur);
  color: var(--blanc) !important;
  padding: .55rem 1.4rem;
  border-radius: 50px;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0,180,216,.35);
  transition: all var(--transition) !important;
}
.nav-cta:hover { background: var(--azur-dark) !important; transform: translateY(-1px); }
#navbar.scrolled .nav-cta { color: var(--blanc) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanc);
  border-radius: 2px;
  transition: all var(--transition);
}
#navbar.scrolled .hamburger span { background: var(--nuit); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--nuit);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blanc);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--azur); }
.nav-mobile .nav-cta { font-size: 1rem !important; }
.nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--blanc);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================
   HERO
   ============================ */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--nuit) 0%, #023e8a 50%, #0096c7 100%);
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(0,180,216,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(0,180,216,.10) 0%, transparent 60%);
  pointer-events: none;
}

/* Grille de points décoratifs */
#hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { color: var(--blanc); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0,180,216,.2);
  border: 1px solid rgba(0,180,216,.4);
  color: var(--azur-light);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--azur);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.hero-title .accent { color: var(--azur); }

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,.78);
  margin-bottom: 2.2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat-item { text-align: left; }
.stat-value {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--blanc);
  line-height: 1;
}
.stat-value span { color: var(--azur); }
.stat-label {
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .25rem;
}

/* Hero image */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.hero-img-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse, rgba(0,180,216,.3) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  z-index: 0;
}

.hero-img-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  padding: 2rem;
  overflow: hidden;
}

.hero-machine-img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  min-height: 360px;
  background: rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.machine-placeholder {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,.4);
  font-size: .85rem;
  font-weight: 500;
}
.machine-placeholder svg { opacity: .5; }

/* Badge flottant */
.hero-float-badge {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: var(--blanc);
  border-radius: 14px;
  padding: .9rem 1.2rem;
  box-shadow: 0 8px 30px rgba(3,4,94,.2);
  display: flex;
  align-items: center;
  gap: .75rem;
  z-index: 2;
}
.float-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--azur), var(--azur-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.float-text strong { display: block; font-size: .85rem; font-weight: 800; color: var(--nuit); }
.float-text span { font-size: .72rem; color: var(--gris-txt); font-weight: 500; }

/* ============================
   COMMENT ÇA MARCHE
   ============================ */
#comment-ca-marche {
  padding: 100px 0;
  background: var(--gris);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 4rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* Connecteur entre étapes */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: linear-gradient(to right, var(--azur), var(--azur-dark));
  z-index: 0;
}

.step-card {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(3,4,94,.14); }

.step-number {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--azur), var(--azur-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--blanc);
  border: 4px solid var(--blanc);
  box-shadow: 0 4px 16px rgba(0,180,216,.4);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nuit);
  margin-bottom: .6rem;
  line-height: 1.3;
}
.step-card p {
  font-size: .85rem;
  color: var(--gris-txt);
  line-height: 1.6;
}

/* Section "Ce que vous n'avez plus à gérer" */
.no-more {
  margin-top: 5rem;
  background: linear-gradient(135deg, var(--nuit), var(--nuit-light));
  border-radius: 24px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.no-more-text .section-title { color: var(--blanc); }
.no-more-text .section-sub { color: rgba(255,255,255,.65); }

.no-more-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.no-more-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.9);
  font-size: .9rem;
  font-weight: 500;
}
.no-more-item::before {
  content: '✓';
  width: 28px; height: 28px;
  background: rgba(0,180,216,.25);
  border: 1px solid rgba(0,180,216,.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 900;
  color: var(--azur);
  flex-shrink: 0;
  line-height: 28px;
  text-align: center;
}

/* ============================
   SECTION AVANTAGES / POUR QUI
   ============================ */
#avantages {
  padding: 100px 0;
  background: var(--blanc);
}

.avantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.avantage-card {
  border: 1px solid #e8f4f8;
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}
.avantage-card:hover {
  border-color: var(--azur);
  box-shadow: 0 8px 28px rgba(0,180,216,.12);
  transform: translateY(-4px);
}
.avantage-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.avantage-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.avantage-card p { font-size: .88rem; color: var(--gris-txt); line-height: 1.6; }

/* ============================
   CONTACT
   ============================ */
#contact {
  padding: 100px 0;
  background: var(--gris);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info { padding-top: 1rem; }
.contact-info .section-title { margin-bottom: 1rem; }
.contact-info .section-sub { margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.contact-detail-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--azur), var(--azur-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanc);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-detail-text strong { display: block; font-size: .8rem; font-weight: 700; color: var(--gris-txt); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .15rem; }
.contact-detail-text a, .contact-detail-text span { font-size: .95rem; font-weight: 600; color: var(--nuit); transition: color var(--transition); }
.contact-detail-text a:hover { color: var(--azur); }

.contact-plaquette {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(0,180,216,.08), rgba(0,180,216,.03));
  border: 1px solid rgba(0,180,216,.2);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
}
.contact-plaquette svg { flex-shrink: 0; }
.contact-plaquette-text strong { display: block; font-size: .9rem; font-weight: 700; color: var(--nuit); margin-bottom: .15rem; }
.contact-plaquette-text span { font-size: .8rem; color: var(--gris-txt); }
.contact-plaquette a {
  margin-left: auto;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 700;
  color: var(--azur-dark);
  border: 1.5px solid var(--azur);
  padding: .4rem .9rem;
  border-radius: 50px;
  transition: all var(--transition);
  flex-shrink: 0;
}
.contact-plaquette a:hover { background: var(--azur); color: var(--blanc); }

/* Formulaire */
.contact-form-wrap {
  background: var(--blanc);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-form-wrap h3 { font-size: 1.2rem; font-weight: 800; color: var(--nuit); margin-bottom: 1.8rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-group label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--nuit);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid #dde8ee;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  color: var(--nuit);
  background: #f9fcfe;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--azur);
  box-shadow: 0 0 0 3px rgba(0,180,216,.12);
  background: var(--blanc);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 1rem; margin-top: .5rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--nuit);
}
.form-success .success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h4 { font-size: 1.2rem; font-weight: 800; margin-bottom: .5rem; }
.form-success p { color: var(--gris-txt); }

/* ============================
   FOOTER
   ============================ */
footer {
  background: var(--nuit);
  color: rgba(255,255,255,.65);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand img { height: 44px; margin-bottom: 1rem; }
.footer-brand p { font-size: .85rem; line-height: 1.7; }

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--blanc);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}
.footer-col li + li { margin-top: .55rem; }
.footer-col a { font-size: .88rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--azur); }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .avantages-grid { grid-template-columns: repeat(2, 1fr); }
  .no-more { grid-template-columns: 1fr; gap: 2rem; }
  .no-more-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }

  .contact-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .avantages-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }

  .no-more { padding: 2rem; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .contact-form-wrap { padding: 1.5rem; }
}
