/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Raleway', sans-serif; color: #1a1a1a; overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ===== VARIABLES ===== */
:root {
  --green: #4CAF50;
  --green-dark: #3d8b40;
  --green-cta: #57b45b;
  --yellow: #FFD600;
  --yellow-bg: #FFF9E0;
  --purple: #7B61FF;
  --pink: #FF6B9D;
  --orange: #FF8C42;
  --blue: #4A90D9;
  --dark: #1a1a1a;
  --dark-bg: #1e1e1e;
  --gray: #666;
  --gray-light: #f5f5f5;
  --white: #fff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-sticker: 0 4px 20px rgba(0,0,0,0.15);
  --max-width: 1200px;
  --transition: 0.3s ease;
}

/* ===== UTILITIES ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--dark { background: var(--dark-bg); color: var(--white); }
.section--yellow { background: var(--yellow-bg); }
.section--gray { background: var(--gray-light); }
.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 3rem; font-weight: 900; line-height: 1.15; }
h2 { font-size: 2.25rem; font-weight: 800; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { color: var(--gray); }
.highlight--green { color: var(--green); }
.highlight--purple { color: var(--purple); }
.highlight--orange { color: var(--orange); }
.highlight--pink { color: var(--pink); }

.doodle { position: relative; display: inline-block; }
.doodle::after {
  content: '';
  position: absolute; bottom: -6px; left: 0; right: 0; height: 12px;
  background: url('../images/doodle-green.svg') center/contain no-repeat;
}
.doodle--purple::after { background-image: url('../images/doodle-purple.svg'); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: var(--transition); border: 2px solid transparent;
}
.btn--primary { background: var(--green-cta); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); }
.btn--secondary { background: var(--white); color: var(--dark); border-color: var(--dark); }
.btn--secondary:hover { background: var(--dark); color: var(--white); }
.btn--secondary-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn--secondary-white:hover { background: var(--white); color: var(--dark); }

/* ===== TOP BANNER ===== */
.top-banner {
  background: var(--dark); color: var(--white); text-align: center;
  padding: 8px 16px; font-size: 0.875rem;
}
.top-banner a { font-weight: 700; text-decoration: underline; }

/* ===== NAVIGATION ===== */
.nav {
  position: sticky; top: 0; z-index: 1000; background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px; height: 72px;
}
.nav__logo img { height: 48px; }
.nav__menu { display: flex; align-items: center; gap: 8px; }
.nav__link {
  padding: 8px 16px; font-weight: 600; font-size: 0.9375rem;
  border-radius: 8px; transition: var(--transition);
}
.nav__link:hover { background: var(--gray-light); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__toggle {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 16px; font-weight: 600; font-size: 0.9375rem;
  cursor: pointer; border-radius: 8px; transition: var(--transition);
  background: none; border: none; color: inherit;
}
.dropdown__toggle:hover { background: var(--gray-light); }
.dropdown__arrow {
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition);
}
.dropdown.is-open .dropdown__arrow { transform: rotate(180deg); }
.dropdown__list {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition);
}
.dropdown.is-open .dropdown__list {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown__item {
  display: block; padding: 10px 20px; font-size: 0.9375rem;
  transition: var(--transition);
}
.dropdown__item:hover { background: var(--gray-light); }

.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__connect { font-weight: 600; font-size: 0.9375rem; }
.nav__connect:hover { text-decoration: underline; }

/* Mobile menu */
.nav__burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 8px; transition: var(--transition);
}
.nav__burger:hover { background: var(--gray-light); }
.nav__burger img { width: 24px; }

@media (max-width: 991px) {
  .nav__menu { display: none; }
  .nav__right .nav__connect,
  .nav__right .btn { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { height: 60px; }
  .nav.is-open .nav__menu {
    display: flex; flex-direction: column; position: absolute;
    top: 60px; left: 0; right: 0; background: var(--white);
    padding: 16px 24px 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    max-height: calc(100vh - 60px); overflow-y: auto;
    gap: 4px;
  }
  .nav.is-open .nav__menu .nav__link,
  .nav.is-open .nav__menu .dropdown__toggle {
    padding: 12px 16px; font-size: 1rem; width: 100%;
  }
  .nav.is-open .dropdown__list {
    position: static; box-shadow: none; padding-left: 16px;
    opacity: 1; visibility: visible; transform: none;
    border-left: 2px solid var(--green);
  }
  .nav.is-open .dropdown__item { padding: 10px 16px; }
  /* Mobile CTA at bottom of menu */
  .nav.is-open .nav__menu::after {
    content: ''; display: block;
    border-top: 1px solid #eee; margin-top: 8px; padding-top: 16px;
  }
}

/* ===== HERO ===== */
.hero {
  background: var(--yellow-bg); padding: 60px 0 0; overflow: hidden;
  position: relative;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  align-items: center;
}
.hero__badges { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 32px; }
.hero__badge { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; }
.hero__badge img { width: 20px; height: 20px; flex-shrink: 0; }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__phone { margin-top: 20px; font-size: 0.875rem; }
.hero__phone a { font-weight: 700; }
.hero__visual { position: relative; }
.hero__video {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); position: relative; z-index: 1;
}
.hero__video video { width: 100%; display: block; }
.hero__wave { width: 100%; margin-top: -2px; }
.hero__wave svg { display: block; width: 100%; }

@media (max-width: 767px) {
  html { font-size: 14px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  h1 { font-size: 2.25rem; }
}

/* ===== LOGOS BAND ===== */
.logos-band { padding: 32px 0; overflow: hidden; }
.logos-track {
  display: flex; gap: 48px; align-items: center;
  animation: scroll-logos 30s linear infinite;
}
.logos-track img { height: 48px; width: auto; object-fit: contain; flex-shrink: 0; opacity: 0.7; }
.logos-track:hover { animation-play-state: paused; }

@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== CATALOGUE SECTION ===== */
.catalogue__desc { max-width: 700px; margin: 16px auto 48px; text-align: center; }
.catalogue__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/10; display: flex; align-items: flex-end;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 24px; background: linear-gradient(transparent 40%, rgba(0,0,0,0.5));
  transition: var(--transition);
}
.card__title {
  color: var(--white); font-size: 1.5rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.card__title .arrow { width: 24px; height: 24px; transition: transform var(--transition); }
.card:hover .arrow { transform: translateX(4px); }

/* ===== REASSURANCE ===== */
.reassurance {
  display: flex; justify-content: center; gap: 48px;
  padding: 40px 0; border-top: 1px solid #eee;
}
.reassurance__item { display: flex; align-items: center; gap: 12px; }
.reassurance__item img { width: 48px; height: 48px; }
.reassurance__item span { font-weight: 700; font-size: 0.9375rem; }

/* ===== FEATURES (Logistique) ===== */
.features__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 48px; margin: 48px 0;
}
.feature { display: flex; gap: 16px; }
.feature__icon { width: 56px; height: 56px; flex-shrink: 0; }
.feature__title { font-weight: 700; margin-bottom: 8px; }
.feature__text { color: rgba(255,255,255,0.7); font-size: 0.9375rem; }

/* ===== TECHNOLOGY ===== */
.tech__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.tech__image { border-radius: var(--radius-lg); overflow: hidden; }
.tech__badges { display: flex; flex-direction: column; gap: 16px; margin: 24px 0 32px; }
.tech__badge { display: flex; align-items: center; gap: 10px; }
.tech__badge img { width: 20px; flex-shrink: 0; }

/* ===== MAP ===== */
.map__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.map__visual { position: relative; }
.map__visual img { width: 100%; }
.map__label {
  position: absolute; display: flex; align-items: center; gap: 6px;
  background: var(--dark); color: var(--white); padding: 8px 16px;
  border-radius: 50px; font-weight: 700; font-size: 0.875rem;
  white-space: nowrap;
}
.map__label img { width: 14px; }
.map__label--provence { bottom: 30%; right: 5%; }
.map__label--sudouest { bottom: 45%; left: 25%; }
.map__label--lyon { top: 25%; right: 5%; }
.map__label--cotedazur { bottom: 15%; right: -5%; }

.map__badges { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 32px; }
.map__badge { display: flex; align-items: center; gap: 10px; }
.map__badge img { width: 20px; flex-shrink: 0; }

/* ===== SMS/CTA SECTION ===== */
.cta-block { text-align: center; }
.cta-block h2 { margin-bottom: 16px; }
.cta-block p { margin-bottom: 32px; color: rgba(255,255,255,0.7); }
.cta-block .hero__buttons { justify-content: center; }

/* ===== TESTIMONIALS ===== */
.testimonials__slider { position: relative; overflow: hidden; margin-top: 48px; }
.testimonials__track {
  display: flex; transition: transform 0.5s ease;
}
.testimonial {
  min-width: 100%; padding: 0 60px; display: flex; gap: 40px;
}
.testimonial__quote {
  background: var(--gray-light); padding: 32px; border-radius: var(--radius-lg);
  font-size: 1rem; line-height: 1.7; color: var(--dark); flex: 1;
  position: relative;
}
.testimonial__quote::before {
  content: '\201C'; font-size: 4rem; color: var(--green);
  position: absolute; top: -10px; left: 16px; line-height: 1;
}
.testimonial__author { margin-top: 16px; }
.testimonial__name { font-weight: 800; }
.testimonial__role { color: var(--gray); font-size: 0.875rem; }

.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 1px solid #ddd;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); z-index: 10;
}
.slider__arrow:hover { background: var(--gray-light); }
.slider__arrow--prev { left: 0; }
.slider__arrow--next { right: 0; }
.slider__arrow img { width: 16px; }

/* ===== EXPERTS ===== */
.experts__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.experts__slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.experts__track { display: flex; transition: transform 0.5s ease; }
.experts__slide { min-width: 100%; position: relative; }
.experts__slide img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.experts__name {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--white); padding: 12px 20px; border-radius: 50px;
  font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.experts__name img { width: 16px; }

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--gray-light); padding: 80px 0;
}
.newsletter__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.newsletter__form {
  display: flex; gap: 0; margin-top: 24px;
}
.newsletter__input {
  flex: 1; padding: 14px 20px; border: 1px solid #ddd;
  border-radius: 50px 0 0 50px; outline: none; font-size: 1rem;
}
.newsletter__input:focus { border-color: var(--green); }
.newsletter__submit {
  padding: 14px 28px; background: var(--green-cta); color: var(--white);
  border: none; border-radius: 0 50px 50px 0; font-weight: 700;
  cursor: pointer; transition: var(--transition);
}
.newsletter__submit:hover { background: var(--green-dark); }
.newsletter__image { border-radius: var(--radius-lg); overflow: hidden; }

/* ===== FOOTER ===== */
.footer { background: var(--dark-bg); color: var(--white); padding: 60px 0 0; }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr) 1fr;
  gap: 32px; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.footer__logo img { height: 56px; }
.footer__title { font-weight: 700; font-size: 1rem; margin-bottom: 16px; }
.footer__link {
  display: block; color: rgba(255,255,255,0.7); font-size: 0.9375rem;
  padding: 4px 0; transition: var(--transition);
}
.footer__link:hover { color: var(--white); }
.footer__social { display: flex; flex-direction: column; gap: 12px; }
.footer__social a {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.7); transition: var(--transition);
}
.footer__social a:hover { color: var(--white); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; margin-top: 48px; text-align: center;
  color: rgba(255,255,255,0.5); font-size: 0.875rem;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--white); box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 20px 24px; display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; max-width: var(--max-width); margin: 0 auto;
}
.cookie-banner__text { font-size: 0.875rem; color: var(--gray); flex: 1; }
.cookie-banner__text a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.cookie-banner__close {
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; border: 1px solid #ddd;
}

/* ===== STICKERS ===== */
.sticker {
  position: absolute; z-index: 10;
  filter: drop-shadow(var(--shadow-sticker));
  transition: transform 0.6s ease;
  pointer-events: none;
}
.sticker img { width: 100%; }
.sticker.is-visible { transform: translateY(-30%) !important; }
.sticker:hover { transform: translateY(-35%) !important; }

/* ===== WAVE SEPARATOR ===== */
.wave { width: 100%; line-height: 0; }
.wave svg { width: 100%; height: auto; }

/* ===== RESPONSIVE — Tablet (max 991px) ===== */
@media (max-width: 991px) {
  .hero__inner,
  .tech__inner,
  .map__inner,
  .experts__inner,
  .newsletter__inner { grid-template-columns: 1fr; gap: 32px; }
  .features__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .reassurance { flex-direction: column; align-items: center; gap: 24px; }
  .testimonial { flex-direction: column; padding: 0 48px; }
  .slider__arrow { width: 36px; height: 36px; }
  .slider__arrow--prev { left: 4px; }
  .slider__arrow--next { right: 4px; }
  .experts__slide img { aspect-ratio: 3/4; }
  .map__visual { max-width: 480px; margin: 0 auto; }
}

/* ===== RESPONSIVE — Mobile (max 767px) ===== */
@media (max-width: 767px) {
  html { font-size: 14px; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  /* Top banner */
  .top-banner { font-size: 0.75rem; padding: 6px 12px; }

  /* Hero */
  .hero { padding: 32px 0 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__visual { order: -1; }
  .hero__badges { gap: 8px; margin: 16px 0 24px; }
  .hero__badge { font-size: 0.9375rem; }
  .hero__buttons { flex-direction: column; gap: 12px; }
  .hero__buttons .btn { width: 100%; text-align: center; }

  /* Logos */
  .logos-band { padding: 20px 0; }
  .logos-track { gap: 32px; }
  .logos-track img { height: 32px; }

  /* Catalogue */
  .catalogue__grid { grid-template-columns: 1fr; gap: 16px; }
  .catalogue__desc { margin-bottom: 24px; }
  .card { aspect-ratio: 16/9; }
  .card__title { font-size: 1.25rem; }
  .reassurance { gap: 16px; padding: 24px 0; }
  .reassurance__item { gap: 8px; }
  .reassurance__item img { width: 36px; height: 36px; }
  .reassurance__item span { font-size: 0.8125rem; }

  /* Features (logistique) */
  .feature { gap: 12px; text-align: left; }
  .feature__icon { width: 44px; height: 44px; }

  /* Technology */
  .tech__image { border-radius: var(--radius); }

  /* Map */
  .map__inner { gap: 24px; }
  .map__visual { max-width: 100%; }
  .map__label { padding: 6px 12px; font-size: 0.75rem; }
  .map__label img { width: 10px; }
  .map__label--provence { bottom: 28%; right: 2%; }
  .map__label--sudouest { bottom: 42%; left: 15%; }
  .map__label--lyon { top: 22%; right: 2%; }
  .map__label--cotedazur { bottom: 12%; right: 0; }

  /* CTA block */
  .cta-block .hero__buttons { flex-direction: column; align-items: center; }
  .cta-block .hero__buttons .btn { width: 100%; max-width: 300px; }

  /* Testimonials */
  .testimonial { padding: 0 8px; }
  .testimonial__quote { padding: 24px 20px; font-size: 0.9375rem; }
  .testimonial__quote::before { font-size: 3rem; top: -5px; left: 10px; }
  .slider__arrow { width: 32px; height: 32px; }
  .slider__arrow--prev { left: 0; }
  .slider__arrow--next { right: 0; }

  /* Experts */
  .experts__inner { gap: 24px; }
  .experts__slide img { aspect-ratio: 1/1; }
  .experts__name { bottom: 16px; left: 16px; padding: 8px 14px; font-size: 0.8125rem; }

  /* Newsletter */
  .newsletter { padding: 48px 0; }
  .newsletter__inner { gap: 24px; }
  .newsletter__form { flex-direction: column; gap: 12px; }
  .newsletter__input { border-radius: 50px; text-align: center; }
  .newsletter__submit { border-radius: 50px; }

  /* Footer */
  .footer { padding: 40px 0 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer__logo { display: flex; justify-content: center; }
  .footer__social { align-items: center; }
  .footer__bottom { margin-top: 32px; }

  /* Cookie banner */
  .cookie-banner { padding: 16px; }
  .cookie-banner__inner { flex-direction: column; text-align: center; gap: 16px; }
  .cookie-banner__text { font-size: 0.75rem; }
  .cookie-banner__actions { width: 100%; justify-content: center; }

  /* Buttons */
  .btn { padding: 12px 24px; font-size: 0.9375rem; }
}

/* ===== RESPONSIVE — Small mobile (max 375px) ===== */
@media (max-width: 375px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  .nav__logo img { height: 36px; }
  .map__label { font-size: 0.6875rem; padding: 4px 8px; }
}
