/* ==========================================================================
   Accueil — carrefour. Mission unique : router le visiteur en 3 clics max.
   Page volontairement neutre : aucun logo, aucun accent dominant.
   Les trois accents n'apparaissent que sur les cartes-portails.
   ========================================================================== */

main {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ---------- Hero ---------- */

.hero { padding: clamp(3rem, 12vw, 7rem) 0 0; max-width: 42rem; }

.hero__eyebrow {
  color: var(--fg-muted);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__dot { color: var(--accent-presta); }

.hero__lead {
  margin-top: 1.5rem;
  color: var(--fg-muted);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  max-width: 34rem;
}

/* ---------- Chiffres ----------
   Seule preuve de la page : ils valent pour les quatre audiences,
   la ou un logo n'en sert qu'une (brief section 3). */

.stats { margin-top: clamp(3rem, 8vw, 5rem); }

.stats dl {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 8vw, 5rem);
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat dt {
  color: var(--fg-muted);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
}

.stat dd { margin: 0.35rem 0 0; }

/* Les chiffres parlent en display, comme les titres : ce sont eux la
   preuve de la page. */
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Cartes-portails ---------- */

.portals { margin-top: clamp(4rem, 12vw, 7rem); }

.portals__title {
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--fg-muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.portal-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.portal {
  --accent: var(--fg);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 4vw, 2rem);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

/* L'identite suit le visiteur : l'accent de chaque section commence ici
   et se poursuit sur toute la page de destination (brief section 4). */
.portal--shop   { --accent: var(--accent-shop); }
.portal--brands { --accent: var(--accent-brands); }
.portal--presta { --accent: var(--accent-presta); }

.portal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--accent);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.portal:hover,
.portal:focus-within {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  /* Une pointe de teinte d'accent monte dans la carte au survol : chaque
     porte annonce la couleur de sa section avant meme le clic. */
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, var(--bg-raised)) 0%, var(--bg-raised) 65%);
  transform: translateY(-2px);
}

.portal:hover::before,
.portal:focus-within::before { opacity: 1; }

.portal__title { font-size: 1.4rem; font-weight: 650; }

.portal__title a {
  text-decoration: none;
  /* La carte entiere est cliquable, sans casser la navigation clavier. */
}
.portal__title a::after { content: ""; position: absolute; inset: 0; }

.portal__text { color: var(--fg-muted); flex: 1; }

.portal__lang {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* La fleche glisse legerement au survol de la carte : l'invitation bouge,
   le reste ne bronche pas. */
.portal__cue {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.portal:hover .portal__cue,
.portal:focus-within .portal__cue { transform: translateX(4px); }
