/* Reset */
html, body {
  margin: 0;
  padding: 0;
}

/* Variables */
:root {
  --side-pad: 22px;
  --legal-h: 60px;

  --text-offset: 28px;
  --sep-offset: 8px;

  --col-left-shift: 0px;
  --col-center-shift: 20px;
  --col-right-shift: 0px;

  /* hauteur max bande grise (desktop) */
  --info-bar-max-height: 240px;
}

/* Fond */
body {
  font-family: "Inter", sans-serif;
  background-image: url("./fond_decran_landingpage_virvolt.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Page globale */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Conteneur principal */
.container {
  width: min(1700px, 100%);
  margin: 0 auto;
  padding: 40px var(--side-pad) 20px var(--side-pad);
  flex-grow: 1;
}

/* Logo */
.header {
  margin-bottom: 26px;
}

.logo {
  width: 340px;
  max-width: 85vw;
  height: auto;
  display: block;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: nowrap;
}

/* Texte principal */
.hero-text {
  flex: 0 1 56%;
  max-width: 760px;
  color: #0f1b64;
  font-size: 26px;
  line-height: 1.6;
  padding-top: 13px;
}

.p-bold {
  font-weight: 700;
  margin: 0 0 15px 0;
}

.p-mixed {
  font-weight: 400;
  margin: 0 0 15px 0;
}

.p-bold-inline {
  font-weight: 700;
}

/* Vélo */
.hero-visual {
  flex: 0 1 44%;
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
  padding-right: 40px;
}

.bike {
  width: 720px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* BANDE GRISE PRINCIPALE */
.info-bar {
  width: 100%;
  margin-top: 20px;

  /* Desktop : OK si ça contient tout (sinon monte cette valeur) */
  max-height: var(--info-bar-max-height);

  padding: 20px var(--side-pad);
  background: rgba(15, 27, 100, 0.28);
  box-sizing: border-box;
}

/* Contenu des 3 colonnes */
.info-bar-inner {
  width: min(1700px, 100%);
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding-top: var(--text-offset);
}

/* Colonnes */
.info-col {
  flex: 1;
  color: #fafafa;
  text-align: left;
}

/* Décalages horizontaux indépendants (desktop) */
.info-col:nth-child(1) {
  transform: translateX(var(--col-left-shift));
}

.info-col:nth-child(3) {
  transform: translateX(var(--col-center-shift));
}

.info-col:nth-child(5) {
  transform: translateX(var(--col-right-shift));
}

/* Titres colonnes */
.info-title {
  font-family: "Montserrat", sans-serif;
  font-size: 23px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.info-ico {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* Texte des colonnes */
.info-text {
  font-size: 19px;
  line-height: 1.60;
  letter-spacing: 0.2px;
}

.info-text strong {
  font-weight: 700;
}

/* Séparateurs bleus */
.info-sep {
  width: 2px;
  background: rgba(0, 0, 254, 0.9);
  border-radius: 2px;
  margin-top: var(--sep-offset);
}

/* Footer légal */
.legal {
  background: #0000fe;
  color: #fafafa;
  font-size: 15px;
  padding: 12px var(--side-pad);
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 980px) {

  :root {
    --side-pad: 26px;
    --text-offset: 16px;
    --sep-offset: 10px;

    --col-left-shift: 0px;
    --col-center-shift: 0px;
    --col-right-shift: 0px;
  }

  /* ✅ important : évite bugs de scroll / rendu sur mobile */
  body {
    background-attachment: scroll;
  }

  .hero {
    flex-direction: column;
  }

  .hero-text {
    max-width: 100%;
    font-size: 22px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-visual {
    justify-content: center;
    padding-right: 0;
  }

  .bike {
    width: 100%;
    max-width: 600px;
  }

  /* ✅ FIX PRINCIPAL : la bande grise doit pouvoir GRANDIR en mobile */
  .info-bar {
    margin-top: 10px;
    padding: 20px var(--side-pad);
    max-height: none;          /* ✅ supprime le “bug” */
  }

  .info-bar-inner {
    flex-direction: column;
    gap: 20px;
    padding-top: var(--text-offset);
  }

  .info-col {
    text-align: center;
    transform: none !important;
    padding-left: 8px;
    padding-right: 8px;
  }

  .info-title {
    justify-content: center;
  }

  .info-sep {
    width: 100%;
    height: 2px;
  }
}
