/* Page d'accueil (vitrine) de popizy.app. Charge après style.css : polices,
   couleurs et boutons communs y sont définis ; ici, seulement la mise en page
   de la vitrine. Texte foncé sur le dégradé, jamais de blanc. */

:root {
  --encre-fixe: #1F1830;
  --clair-fixe: #FAF8FD;
  --ombre: rgba(90, 64, 150, 0.28);
}

body.vitrine {
  overflow-x: hidden;
}

.vitrine main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.cadre {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* En-tête */

.haut {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
}

.haut .cadre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.vitrine .marque {
  color: var(--encre-fixe);
}

.marque img {
  border-radius: 12px;
}

.haut nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.haut nav a {
  color: var(--encre-fixe);
  text-decoration: none;
  font-size: 15px;
}

.haut nav a:hover {
  text-decoration: underline;
}

/* Héros */

.heros {
  position: relative;
  background:
    radial-gradient(circle at 12% 88%, rgba(252, 220, 126, 0.55), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(252, 185, 126, 0.45), transparent 30%),
    linear-gradient(135deg, var(--lavande), var(--rose));
  color: var(--encre-fixe);
  padding: 96px 0 72px;
  border-radius: 0 0 40px 40px;
}

.heros .cadre {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.surtitre {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(250, 248, 253, 0.55);
  padding: 6px 14px;
  border-radius: 999px;
}

.heros h1 {
  color: var(--encre-fixe);
  font-size: clamp(34px, 5.6vw, 58px);
  line-height: 1.1;
  margin: 18px 0 16px;
}

.heros .chapo {
  color: var(--encre-fixe);
  font-size: 19px;
  max-width: 32em;
  margin: 0;
}

.vitrine .stores {
  justify-content: flex-start;
  margin: 26px 0 10px;
}

.vitrine .bouton {
  min-width: 150px;
}

.heros .bouton,
.appel .bouton {
  background: var(--clair-fixe);
  color: var(--encre-fixe);
  box-shadow: 0 10px 24px -10px var(--ombre);
}

.heros .bouton:hover,
.appel .bouton:hover {
  background: var(--encre-fixe);
  color: var(--clair-fixe);
}

.heros .bouton[aria-disabled='true'],
.appel .bouton[aria-disabled='true'] {
  background: rgba(250, 248, 253, 0.4);
  border: 1px solid rgba(31, 24, 48, 0.18);
  color: rgba(31, 24, 48, 0.7);
  box-shadow: none;
}

.mention {
  color: var(--encre-fixe);
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0 0;
}

.telephone {
  justify-self: center;
  width: min(300px, 72vw);
  border: 10px solid var(--encre-fixe);
  border-radius: 46px;
  overflow: hidden;
  background: var(--encre-fixe);
  box-shadow: 0 30px 60px -24px rgba(31, 24, 48, 0.55);
  transform: rotate(3deg);
}

.telephone img {
  display: block;
  width: 100%;
  height: auto;
}

/* Sections */

.section {
  padding: 72px 0 8px;
}

.section h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 10px;
  color: var(--texte);
}

.section .intro {
  color: var(--doux);
  font-size: 18px;
  max-width: 36em;
  margin: 0 0 28px;
}

.etapes-vitrine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.etapes-vitrine li,
.fonction {
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: 24px;
  padding: 22px 24px;
}

.numero {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--degrade);
  color: var(--encre-fixe);
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 18px;
  margin-bottom: 12px;
}

.etapes-vitrine h3,
.fonction h3 {
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 6px;
  color: var(--texte);
}

.etapes-vitrine p,
.fonction p {
  margin: 0;
  color: var(--doux);
}

/* Captures */

/* Pleine largeur : la rangée défile jusqu'au bord de l'écran, alignée sur le cadre. */
.captures {
  --marge: max(20px, calc((100vw - 1040px) / 2));
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--marge);
  padding: 8px var(--marge) 28px;
  scrollbar-width: thin;
}

.captures figure {
  flex: 0 0 auto;
  width: 220px;
  margin: 0;
  scroll-snap-align: start;
}

.captures img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--bord);
  box-shadow: 0 18px 40px -22px var(--ombre);
}

.captures figcaption {
  margin-top: 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--texte);
  text-align: center;
}

/* Fonctionnalités */

.fonctions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pastille {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--teinte);
  font-size: 24px;
  margin-bottom: 12px;
}

/* Promesse */

.promesse {
  background: var(--teinte);
  border-radius: 32px;
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.promesse h2 {
  margin-bottom: 8px;
}

.promesse p {
  color: var(--doux);
  margin: 0;
}

.promesse ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.promesse li {
  position: relative;
  padding-left: 38px;
  color: var(--texte);
}

.promesse li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--degrade);
  color: var(--encre-fixe);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}

/* Appel final */

.appel {
  margin: 72px auto 56px;
  background:
    radial-gradient(circle at 90% 20%, rgba(252, 220, 126, 0.5), transparent 35%),
    linear-gradient(135deg, var(--lavande), var(--rose));
  color: var(--encre-fixe);
  border-radius: 32px;
  padding: 40px 32px;
  text-align: center;
}

.appel img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.appel h2 {
  color: var(--encre-fixe);
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 14px 0 8px;
}

.appel p {
  color: var(--encre-fixe);
  margin: 0 auto;
  max-width: 32em;
}

.appel .stores {
  justify-content: center;
}

/* Pied de page */

.vitrine footer {
  max-width: 1080px;
}

.vitrine footer p {
  margin: 6px 0 0;
}

/* Écrans moyens et petits */

@media (max-width: 900px) {
  .fonctions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .cadre {
    padding: 0 16px;
  }

  .haut nav {
    display: none;
  }

  .heros {
    padding: 80px 0 48px;
    border-radius: 0 0 28px 28px;
  }

  .heros .cadre {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .heros .chapo {
    font-size: 17px;
  }

  .telephone {
    width: min(260px, 70vw);
    border-width: 8px;
    border-radius: 40px;
  }

  .section {
    padding-top: 56px;
  }

  .etapes-vitrine,
  .fonctions,
  .promesse {
    grid-template-columns: 1fr;
  }

  .promesse {
    padding: 28px 22px;
  }

  .captures {
    --marge: 16px;
    padding-bottom: 24px;
  }

  .captures figure {
    width: 180px;
  }

  .appel {
    margin: 56px 0 40px;
    padding: 32px 20px;
  }

  .vitrine .stores {
    justify-content: center;
  }

  .heros .stores {
    justify-content: flex-start;
  }
}
