/**
 * PlayAwale — L'application Android
 * -----------------------------------------------------------------------------
 * L'en-tête et sa couverture, les trois étapes du test, la demande d'accès, ce
 * que contient l'application, ses captures d'écran et les questions fréquentes.
 *
 * ELLE REPREND LE SITE
 * Titre gravé et blocs de sable du compte, vignettes relevées par leur ombre,
 * pastilles ambrées, le bouton d'accent pour ce qu'on vient faire. Aucun liseré
 * de couleur sur le côté ou au-dessus d'un bloc : c'est le fond, l'ombre ou la
 * couleur d'un titre qui distingue.
 *
 * @package   PlayAwale
 * @version   2.0
 * @author    Nicolas Lion — Développeur web — https://nlion.fr
 * @copyright 2026 Nicolas Lion
 */

.android-page .account-block {
  width: min(94vw, 1080px);
}


/* =============================================================================
   L'EN-TÊTE
   ============================================================================= */

.android-hero {
  display: grid;
  gap: var(--space-lg);
  align-items: center;

  /* La largeur de ce qui la contient, et non celle de la fenêtre : « 94vw »
     compte la barre de défilement, et débordait de 8 pixels sur un téléphone de
     390. */
  width: 100%;
  max-width: 1080px;
  margin: 0 auto var(--space-lg);
}

.android-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.android-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;

  margin: 0 0 var(--space-xs);
  padding: 0.3em 0.95em;

  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text);

  background-color: rgba(240, 225, 209, 0.72);
  border-radius: var(--radius-full);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), var(--shadow-sm);
}

.android-hero__eyebrow-icon {
  width: 1.15em;
  height: 1.15em;
}

.android-hero__title {
  margin-bottom: var(--space-xs);
}

.android-hero__lead {
  max-width: 34rem;
}

.android-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);

  margin: var(--space-sm) 0 0;
  padding: 0;
  list-style: none;
}

.android-badge {
  padding: 0.3em 0.9em;

  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  color: var(--color-text);

  background-color: var(--color-surface);
  border-radius: var(--radius-full);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), var(--shadow-sm);
}

.android-hero__actions {
  margin: var(--space-md) 0 0;
}

.android-hero__cover img {
  display: block;
  width: 100%;
  height: auto;

  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
}

@media (min-width: 56.25rem) {

  .android-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .android-hero__copy {
    align-items: flex-start;
    text-align: left;
  }

  .android-badges {
    justify-content: flex-start;
  }
}


/* =============================================================================
   LES ÉTAPES, LES RUBRIQUES
   Deux grilles de vignettes de sable, une pastille ou un pictogramme en tête.
   ============================================================================= */

.android-steps,
.android-features {
  display: grid;
  gap: var(--space-sm);

  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;

  text-align: left;
}

.android-steps {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.android-features {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.android-step,
.android-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-sm);
  align-content: start;

  padding: var(--space-md);

  background-color: var(--color-sand-100);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), var(--shadow-sm);
}

.android-step__number,
.android-feature__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;

  width: 2.4rem;
  height: 2.4rem;

  border-radius: var(--radius-full);
}

.android-step__number {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-brand-dark);

  background-color: var(--color-brand-amber);
  box-shadow: var(--shadow-sm);
}

.android-feature__icon {
  color: var(--color-brand-dark);

  background-color: var(--color-surface);
  box-shadow: var(--shadow-hollow);
}

.android-feature__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.android-step__title,
.android-feature__title {
  margin: 0;
  align-self: center;

  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 400;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

.android-step__text,
.android-feature__text {
  margin: 4px 0 0;

  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  color: var(--color-text);
}

.android-page .android-why {
  max-width: 46rem;
  margin: var(--space-md) auto 0;
  text-align: center;
}


/* =============================================================================
   LA DEMANDE D'ACCÈS
   ============================================================================= */

.android-access {
  scroll-margin-top: var(--space-lg);
}

.android-access__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
}

.android-access__icon {
  width: 88px;
  height: 88px;

  border-radius: 22%;
  box-shadow: var(--shadow-raised);
}

.android-access__label {
  margin: var(--space-xs) 0 0;

  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.android-form {
  display: grid;
  gap: var(--space-xs);

  max-width: 30rem;
  margin: var(--space-md) auto 0;

  text-align: left;
}

.android-form__label {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text);
}

/* Au moins 16 pixels de texte : en dessous, un iPhone agrandit la page au
   moment de taper. */
.android-form__field {
  width: 100%;
  padding: 0.7em 0.9em;

  font-family: var(--font-body);
  font-size: max(1rem, 16px);
  color: var(--color-text);

  background-color: var(--color-surface);
  border: 2px solid var(--color-sand-400);
  border-radius: var(--radius-sm);
}

.android-form__field:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.android-form__field[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.android-form__hint {
  margin: 0;

  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.android-form__submit {
  justify-self: center;
  margin-top: var(--space-xs);
}

.android-form__submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

/* Le piège à robots : présent pour eux, absent pour tous les autres. */
.android-form__trap {
  position: absolute;
  left: -10000px;

  width: 1px;
  height: 1px;
  overflow: hidden;
}

.android-form__privacy {
  max-width: 36rem;
  margin: var(--space-md) auto 0;

  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  text-align: center;
  color: var(--color-text-muted);
}

.android-form__privacy a {
  font-weight: 700;
  color: var(--color-text);
}

.android-notice {
  max-width: 34rem;
  margin: var(--space-md) auto 0;
  padding: var(--space-md);

  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  text-align: center;

  border-radius: var(--radius-md);
}

.android-notice:focus {
  outline: none;
}

.android-notice p {
  margin: 0;
}

.android-notice--ok {
  color: var(--color-text);
  background-color: var(--color-online-halo);
  box-shadow: var(--shadow-hollow);
}

.android-notice--error {
  font-weight: 700;
  color: var(--color-danger);
  background-color: var(--color-danger-surface);
}

.android-notice__title {
  display: block;
  margin-bottom: 4px;

  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: var(--color-verdict-best);
}

.android-closed,
.android-faq__cta {
  display: flex;
  justify-content: center;

  margin: var(--space-md) 0 0;
}


/* =============================================================================
   LES CAPTURES D'ÉCRAN
   -----------------------------------------------------------------------------
   Sur téléphone, une rangée qu'on fait défiler du doigt, chaque image calée sur
   son bord. Sur grand écran, tout se voit d'un coup : sept captures debout, quatre
   couchées.
   ============================================================================= */

.android-gallery__subtitle {
  margin: var(--space-md) 0 var(--space-xs);

  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 400;
  text-align: left;
  color: var(--color-text);
}

.android-shots {
  display: grid;
  grid-auto-flow: column;
  gap: var(--space-sm);

  margin: 0;
  padding: 4px 4px var(--space-sm);
  list-style: none;

  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}

.android-shots--portrait {
  grid-auto-columns: clamp(9rem, 38vw, 11.5rem);
}

.android-shots--landscape {
  grid-auto-columns: clamp(15rem, 72vw, 20rem);
}

.android-shot {
  display: block;
  overflow: hidden;

  scroll-snap-align: start;

  background-color: var(--color-sand-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);

  transition: transform var(--duration-base) ease, box-shadow var(--duration-base) ease;
}

.android-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.android-shot:hover,
.android-shot:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-raised-hover);
}

.android-shot:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

@media (min-width: 62rem) {

  .android-shots {
    grid-auto-flow: row;
    overflow: visible;
  }

  .android-shots--portrait {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .android-shots--landscape {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* =============================================================================
   LA GRANDE IMAGE
   -----------------------------------------------------------------------------
   Le voile du composant fenêtre, plus sombre : on regarde une image, pas une
   question. Les flèches se tiennent sur les côtés, la croix en haut à droite.
   ============================================================================= */

.android-lightbox {
  padding: var(--space-lg) calc(var(--space-sm) + 3.2rem);
  background: rgba(24, 14, 12, 0.88);
}

.android-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);

  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.android-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 7rem);
  max-height: calc(100dvh - 7rem);

  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
}

.android-lightbox__caption {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  text-align: center;
  color: var(--color-brand-cream);
}

.android-lightbox__button {
  position: absolute;
  display: grid;
  place-items: center;

  width: 2.8rem;
  height: 2.8rem;
  padding: 0;

  color: var(--color-brand-dark);
  background-color: var(--color-surface);
  border: 0;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-raised);
  cursor: pointer;
}

.android-lightbox__button svg {
  width: 1.4rem;
  height: 1.4rem;
}

.android-lightbox__button:hover {
  background-color: var(--color-brand-amber-light);
}

.android-lightbox__button:focus-visible {
  outline: 3px solid var(--color-brand-amber);
  outline-offset: 3px;
}

.android-lightbox__button--prev,
.android-lightbox__button--next {
  top: 50%;
  transform: translateY(-50%);
}

.android-lightbox__button--prev {
  left: var(--space-sm);
}

.android-lightbox__button--prev svg {
  transform: rotate(180deg);
}

.android-lightbox__button--next {
  right: var(--space-sm);
}

.android-lightbox__button--close {
  top: var(--space-sm);
  right: var(--space-sm);
}

.android-lightbox-open {
  overflow: hidden;
}


/* =============================================================================
   LES QUESTIONS
   ============================================================================= */

.android-faq {
  display: grid;
  gap: var(--space-xs);

  margin: var(--space-md) 0 0;

  text-align: left;
}

.android-faq__item {
  background-color: var(--color-sand-100);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), var(--shadow-sm);
}

.android-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);

  padding: var(--space-sm) var(--space-md);

  font-family: var(--font-display);
  font-size: var(--font-size-base);
  line-height: var(--line-height-tight);
  color: var(--color-text);

  list-style: none;
  cursor: pointer;
}

.android-faq__question::-webkit-details-marker {
  display: none;
}

.android-faq__question:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

.android-faq__chevron {
  flex: none;
  width: 1em;
  height: 1em;

  transition: transform var(--duration-base) ease;
}

.android-faq__item[open] .android-faq__chevron {
  transform: rotate(90deg);
}

.android-faq__answer {
  margin: 0;
  padding: 0 var(--space-md) var(--space-md);

  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  color: var(--color-text);
}


/* =============================================================================
   PETITS ÉCRANS ET MOUVEMENT RÉDUIT
   ============================================================================= */

@media (max-width: 40rem) {

  .android-page .account-block {
    padding: var(--space-md);
  }

  .android-lightbox {
    padding: var(--space-xl) var(--space-sm) calc(var(--space-sm) + 3.6rem);
  }

  /* Sur un téléphone, les flèches descendent sous l'image : la largeur de
     l'écran reste à la capture. */
  .android-lightbox__button--prev,
  .android-lightbox__button--next {
    top: auto;
    bottom: var(--space-sm);
    transform: none;
  }

  .android-lightbox__button--prev {
    left: calc(50% - 3.2rem);
  }

  .android-lightbox__button--next {
    right: calc(50% - 3.2rem);
  }

  .android-lightbox__image {
    max-height: calc(100vh - 9.5rem);
    max-height: calc(100dvh - 9.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {

  .android-shot,
  .android-faq__chevron {
    transition: none;
  }

  .android-shot:hover,
  .android-shot:focus-visible {
    transform: none;
  }
}
