/* =========================================================================
   e-commerce.css — styles propres a la page e-commerce.
   Le socle (variables, nav, formulaire, footer) est dans base.css et
   composants.css.
   ========================================================================= */

/* ================= sections plein écran & snap ================= */
main section {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative
}

@supports (height:100svh) {
  main section {
    min-height: 100svh
  }
}

/* ================= SECTION 1 : photos qui défilent + texte dessous ================= */
#section1 {
  display: flex;
  flex-direction: column;
  overflow: clip;
  height: 100vh
}

@supports (height:100svh) {
  #section1 {
    height: 100svh
  }
}

/* bande de photos : occupe toute la hauteur restante, défilement continu */
.s1-bande {
  flex: 1 1 60%;   /* au lieu de : flex: 1 1 auto; */
  min-height: 0;
  padding-top: var(--nav-h);
  overflow: hidden
}

.s1-bande__track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: marquee 48s linear infinite
}

.s1-bande__item {
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: url(/img/agence-creation-ecommerce-prestashop-shopify-aubagne.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
}



@keyframes marquee {
  to {
    transform: translateX(-50%)
  }
}

/* texte sous la bande : les lettres s'assombrissent une à une */
.s1-texte {
  flex: 1 1 40%;   /* au lieu de : flex: 0 0 auto; */
  display: flex;
  align-items: self-start;   /* pour centrer le H1 verticalement dans son 50% */
  padding: clamp(24px, 5vh, 56px) var(--pad) clamp(24px, 5vh, 56px) var(--pad);
justify-content: center;
}

.s1-texte h1{
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.42;
  letter-spacing: -.012em;
  font-weight: 500;
  text-align: center;
}

.s1-texte h1 .darkening {
  display: block
}

/* lettres invisibles au départ, elles apparaissent en s'assombrissant */
.char {
  color: #fff
}

@media (max-width:768px) {
  .s1-bande__item {
    aspect-ratio: 2/3
  }
}

/* ================= SECTIONS DUO (2 & 3) : image + texte ================= */
.duo {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
  padding: calc(var(--nav-h) + 3vh) var(--pad) 5vh;
  gap: clamp(22px, 4vh, 48px);
  justify-content: center
}

/* mobile : image en premier, texte ensuite (ordre du DOM) */
.duo__media {
  position: relative
}

.duo__media img {
  width: 100%;
  height: auto;
  max-height: 38vh;
  object-fit: contain;
  margin-inline: auto
}

.duo__titre h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  letter-spacing: -.025em;
  line-height: 1.2
}

.liste {
  list-style: none;
  margin-top: clamp(18px, 3vh, 34px);
}

.liste li {
  padding: clamp(10px, 1.6vh, 16px) 0;
  font-size: clamp(.92rem, 1.25vw, 1.06rem);
  line-height: 1.45;
  display: flex;
  align-items: baseline;
  gap: 14px
}

.liste li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 1px;
  background: var(--ink);
  transform: translateY(-.35em)
}

/* précisions : le second bloc de la section 3, séparé par des tirets */
.precisions {
  list-style: none;
  margin-top: clamp(16px, 2.6vh, 28px);
  display: flex;
  flex-direction: column;
  gap: 8px
}

.precisions li {
  font-size: clamp(.84rem, 1.1vw, .95rem);
  line-height: 1.5;
  color: var(--gris)
}

.precisions li::before {
  content: "— ";
  color: var(--gris)
}

@media (min-width:900px) {
  .duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5vw;
    height: 100vh;
    padding: calc(var(--nav-h) + 4vh) var(--pad) 6vh
  }

  .duo__media img {
    max-height: 62vh
  }

  /* texte à droite, illustration à gauche */
  .duo__media {
    order: 1
  }

  .duo__texte {
    order: 2
  }
  #section3 .duo__media {
    order: 2
  }

  #section3 .duo__texte {
    order: 1
  }

  /* variante miroir si besoin : ajouter la classe duo--inverse sur la section */
  .duo--inverse .duo__media {
    order: 2
  }

  .duo--inverse .duo__texte {
    order: 1
  }
}

@supports (height:100svh) {
  @media (min-width:900px) {
    .duo {
      height: 100svh
    }
  }
}

/* ================= SECTION 4 : image de fond ================= */
#section4 {
  display: flex;
  align-items: flex-end;
  overflow: clip;
  height: 100vh;
  color: #fff;
  background: var(--ink)
}

@supports (height:100svh) {
  #section4 {
    height: 100svh
  }
}

.fond__img {
  position: absolute;
  inset: -8% 0 -8% 0;
  background: var(--ink) center/cover no-repeat;
  will-change: transform;
  z-index: 0
}

/* voile : lisibilité du texte, du bas en mobile, de la gauche en desktop */
.fond__voile {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 18, 30, .88) 0%, rgba(10, 18, 30, .5) 42%, rgba(10, 18, 30, .12) 78%)
}

.fond__in {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--nav-h) + 4vh) var(--pad) clamp(32px, 7vh, 80px)
}

.fond__in h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  letter-spacing: -.025em;
  line-height: 1.2;
  max-width: 18ch
}

.fond__in .liste {
  max-width: 46ch
}


.fond__in .liste li::before {
  background: #fff
}

.fond__in .eyebrow {
  color: rgba(255, 255, 255, .6)
}

@media (min-width:900px) {
  #section4 {
    align-items: center
  }

  .fond__voile {
    background: linear-gradient(to right, rgba(10, 18, 30, .92) 0%, rgba(10, 18, 30, .68) 38%, rgba(10, 18, 30, .1) 78%)
  }

  .fond__in {
    max-width: 56%;
    padding: calc(var(--nav-h) + 4vh) var(--pad) 6vh
  }
}

/* ================= SECTION 5 : phrase qui s'écrit + entreprises ================= */
.parcours {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) var(--pad) 4vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: clip
}

@supports (height:100svh) {
  .parcours {
    height: 100svh
  }
}

.parcours .char {
  color: var(--ink);
  opacity: 0
}

.parcours__in {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%
}

.bigtext {
  text-align: center
}

.bigtext p {
  font-size: clamp(1.3rem, 2.6vw, 2.3rem);
  line-height: 1.42;
  letter-spacing: -.012em
}

/* grille des marques, sous la phrase */
.marques {
  margin-top: clamp(26px, 5vh, 64px);
margin-left: auto;
margin-right: auto;
}

.marques__label {
  display: block;
  text-align: center;
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: clamp(16px, 2.6vh, 28px)
}

.marques__grille {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
}

@media (min-width:700px) {
  .marques{
    max-width: 70%;
  }
  .marques__grille {
    grid-template-columns: repeat(3, 1fr)
  }
}

.marques__cell {
  background: var(--blanc);
  aspect-ratio: 2/1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 28px)
}

@media (min-width:700px) {
  .marques__cell {
    aspect-ratio: 16/9
  }
}

.marques__cell img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: invert(1);
  opacity: .5;
  transition: filter .35s var(--ease), opacity .35s var(--ease)
}

.marques__cell:hover img {
  opacity: 1
}

