/* ==========================================================================
   ETALL — Styles propres aux sections de page
   ========================================================================== */

/* --- Section d'ouverture (hero) ------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(3rem, 2rem + 5vw, 6rem);
  background:
    radial-gradient(1100px 620px at 88% -8%, var(--bleu-clair) 0%, transparent 62%),
    linear-gradient(180deg, var(--bleu-brume) 0%, var(--blanc) 72%);
}

/* Taches de couleur douces qui dérivent lentement en fond */
.hero__halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.hero__halo--un {
  width: 420px;
  height: 420px;
  top: -130px;
  right: -110px;
  background: rgba(0, 59, 251, .16);
}

.hero__halo--deux {
  width: 340px;
  height: 340px;
  bottom: -150px;
  left: -120px;
  background: rgba(0, 49, 209, .11);
}

.hero__grille {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--e-7);
  align-items: center;
  grid-template-columns: 1fr;
}

/* Deux colonnes seulement à partir de 1024 px : en dessous, le titre en
   grande taille serait trop à l'étroit dans une demi-largeur. */
@media (min-width: 1024px) {
  .hero__grille {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--e-8);
  }
}

.hero__titre {
  margin-top: var(--e-4);
  color: var(--bleu-nuit);
}

.hero__titre em {
  font-style: normal;
  color: var(--bleu-primaire);
}

.hero__accroche {
  max-width: 56ch;
  margin-top: var(--e-5);
  font-size: var(--t-md);
  color: var(--encre-douce);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-3);
  margin-top: var(--e-6);
}

@media (max-width: 419px) {
  /* Sur les plus petits écrans, les deux boutons passent pleine largeur
     plutôt que de se serrer côte à côte. */
  .hero__actions { flex-direction: column; }
  .hero__actions .bouton { width: 100%; }
}

/* Bandeau de repères sous les boutons */
.hero__reperes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-4) var(--e-6);
  margin-top: var(--e-7);
  padding-top: var(--e-5);
  border-top: 1px solid var(--bordure);
}

.repere {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  font-size: var(--t-sm);
  font-weight: var(--graisse-moyenne);
  color: var(--encre-douce);
}

.repere svg {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--bleu-primaire);
}

/* --- Image du hero -------------------------------------------------------- */

.hero__media {
  position: relative;
  z-index: 1;
}

.hero__cadre {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--rayon-lg);
  box-shadow: var(--ombre-levee);
  background: var(--bleu-clair);
}

/* Cadre large, pour une photo de groupe : en 4/3, « cover » rognerait les
   côtés et couperait les personnes des deux bords. */
.hero__cadre--large { aspect-ratio: 16 / 9; }

/* Cadre en hauteur, pour une photo prise au téléphone à la verticale : en
   4/3 « cover » n'en garderait qu'une bande étroite. */
.hero__cadre--portrait { aspect-ratio: 3 / 4; }

.hero__cadre img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pastille posée en bas à gauche de l'image */
.hero__pastille {
  position: absolute;
  left: -6px;
  bottom: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--e-3);
  padding: var(--e-3) var(--e-5);
  background: var(--blanc);
  border-radius: var(--rayon-md);
  box-shadow: var(--ombre-levee);
}

@media (min-width: 500px) {
  .hero__pastille { left: -18px; }
}

.hero__pastille img { width: 46px; height: 46px; object-fit: contain; }

.hero__pastille-texte {
  font-size: var(--t-xs);
  line-height: 1.35;
  color: var(--encre-douce);
}

.hero__pastille-texte strong {
  display: block;
  font-size: var(--t-sm);
  color: var(--bleu-profond);
}

/* --- Section « Les trois services » --------------------------------------- */

.services .carte__media img { aspect-ratio: 16 / 10; }

/* --- Section « Pourquoi ETALL » ------------------------------------------- */

.atouts__grille { align-items: stretch; }
.atouts__grille > * { height: 100%; }

/* --- Section « Les centres » ---------------------------------------------- */

/* Les villes où ETALL est présent, en pastilles — l'accueil annonce les
   villes, la page Contact donne les 15 centres et leurs numéros. */
.villes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--e-3);
  margin-top: var(--e-6);
}

.ville {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--e-2) var(--e-5);
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-pilule);
  font-weight: var(--graisse-moyenne);
  color: var(--bleu-profond);
  transition: transform var(--transition-rapide),
              border-color var(--transition-rapide),
              box-shadow var(--transition-rapide);
}

.ville:hover {
  transform: translateY(-3px);
  border-color: var(--bleu-primaire);
  box-shadow: var(--ombre-carte);
}

.centres-section__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--e-4);
  margin-top: var(--e-7);
  text-align: center;
}

/* --- Appel final ---------------------------------------------------------- */

.appel {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.appel__contenu {
  position: relative;
  z-index: 1;
  max-width: 62ch;
  margin-inline: auto;
}

.appel__titre { color: var(--blanc); }

.appel__texte {
  margin-top: var(--e-4);
  font-size: var(--t-md);
  color: rgba(255, 255, 255, .9);
}

.appel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-3);
  justify-content: center;
  margin-top: var(--e-6);
}

@media (max-width: 419px) {
  .appel__actions { flex-direction: column; }
  .appel__actions .bouton { width: 100%; }
}

/* Motif décoratif discret du bandeau bleu */
.appel__halo {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  filter: blur(46px);
  pointer-events: none;
}

.appel__halo--un   { top: -220px; left: -120px; }
.appel__halo--deux { bottom: -260px; right: -140px; }

/* --- Section « Pourquoi ETALL » : deux colonnes sur grand écran ---------- */

.atouts__haut {
  display: grid;
  gap: var(--e-7);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .atouts__haut {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--e-8);
  }
}

.atouts__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--rayon-lg);
  box-shadow: var(--ombre-levee);
  background: var(--bleu-clair);
}

.atouts__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atouts__grille { margin-top: var(--e-7); }
