/* Accueil (index.html) : la marque, un seul gros bouton, le choix de l'appareil, quatre petites tuiles,
   et le guide « première fois » sans classe. Sur iPhone, tout tient sans défiler. */

.accueil-colonne {
  max-width: 40rem;
  gap: 1.5rem;
}

/* ---------- Marque : les quatre formes des réponses (D34) ---------- */

.accueil-entete {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.marque {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.accueil .page-titre {
  font-size: clamp(2rem, 6vw, 2.8rem);
}

.accueil-chapeau {
  margin: 0;
  color: var(--texte-doux);
  font-size: 1.1rem;
}

/* ---------- Le gros bouton ---------- */

.accueil-action {
  display: grid;
  gap: 0.9rem;
}

.action-principale {
  justify-content: flex-start;
  gap: 1.1rem;
  min-height: 108px;
  padding: 1.1rem 1.4rem;
  border-radius: 20px;
  text-align: left;
  box-shadow: 0 8px 22px rgba(18, 70, 140, 0.45);
}

.action-icone {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
}

.action-texte {
  display: grid;
  gap: 0.15rem;
}

.action-titre {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
}

.action-aide {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.92;
}

/* ---------- Cet appareil : Mac · iPhone · PC de classe (contrôle segmenté) ---------- */

.roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
}

.roles-titre {
  color: var(--texte-doux);
  font-size: 0.98rem;
}

.roles .role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: var(--cible);
  padding: 0.3rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22);
  color: var(--texte-doux);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s;
}

.roles .role:hover {
  background: rgba(255, 255, 255, 0.07);
}

.roles .role[aria-pressed='true'] {
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 2px var(--texte);
  color: var(--texte);
  font-weight: 600;
}

/* ---------- Navigateur trop ancien : une ligne discrète ---------- */

.vieux-navigateur {
  margin: 0;
  padding-left: 0.8rem;
  border-left: 3px solid var(--jaune);
  color: var(--texte-doux);
}

/* ---------- Petites tuiles ---------- */

.tuiles-petites {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.tuile {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 64px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--surface);
  color: var(--texte);
  text-decoration: none;
  transition: background-color 0.15s;
}

.tuile:hover { background: rgba(255, 255, 255, 0.11); }
.tuile .icone { flex: none; color: var(--texte-doux); }

.tuile-texte {
  display: grid;
  min-width: 0;
}

.tuile-titre {
  font-weight: 600;
  line-height: 1.2;
}

.tuile-aide {
  overflow: hidden;
  color: var(--texte-doux);
  font-size: 0.82rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .tuiles-petites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Téléphone : tout sur un écran ---------- */

@media (max-width: 520px) {
  .accueil-colonne { gap: 1.05rem; }
  .accueil-entete { margin-top: 0.2rem; gap: 0.2rem; }
  .marque .pastille-rep { width: 22px; height: 22px; }
  .accueil-chapeau { font-size: 1rem; }
  .action-principale { min-height: 96px; padding: 1rem 1.1rem; gap: 0.9rem; }
  .action-icone { width: 54px; height: 54px; }
  .action-titre { font-size: 1.4rem; }
  .action-aide { font-size: 0.95rem; }
  /* Contrôle segmenté sur toute la largeur, sans icônes. */
  .roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
  .roles-titre { grid-column: 1 / -1; }
  .roles .role { padding-inline: 0.4rem; font-size: 0.92rem; }
  .roles .role .icone { display: none; }
  .tuile { min-height: 58px; padding: 0.5rem 0.7rem; }
}

/* ---------- Grand écran (PC de classe) : un peu plus grand ---------- */

@media (min-width: 1700px) {
  html { font-size: 125%; }
  .accueil-colonne { margin-top: 4vh; }
}
