/* ==========================================================================
   PAGES/ACCUEIL.CSS — Styles propres à la page d'accueil
   ========================================================================== */

/* === HERO ================================================================= */

.hero {
  padding-top: var(--e-7);
  padding-bottom: var(--e-6);
}
@media (min-width: 1000px) {
  .hero { padding-top: var(--e-8); padding-bottom: var(--e-7); }
}

/* « Weecount, le partenaire qui compte » tient sur une seule ligne :
   la taille suit la largeur de l'écran pour ne jamais déborder. */
.hero-titre {
  font-size: clamp(1.5rem, 4.9vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: none;
  white-space: nowrap;
}
.hero-titre .accentue { color: var(--accent); }

.hero-meta {
  display: grid;
  gap: var(--e-6);
  margin-top: 0;
}
@media (min-width: 900px) {
  .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--e-7);
  }
}
.hero-meta p { font-size: var(--t-s); color: var(--gris-texte); max-width: 40ch; }
.hero-meta .libelle { margin-bottom: var(--e-3); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-4);
  margin-top: var(--e-7);
}

/* Photo pleine largeur sous le hero — le seul endroit du site où une image
   déborde de la grille. */
.hero-photo { --ratio: 16 / 9; margin-top: var(--e-7); }
@media (min-width: 1000px) { .hero-photo { --ratio: 21 / 9; } }


/* === BLOC EDITORIAL ASYMETRIQUE =========================================== */
/* Texte à gauche sur 5 colonnes, image à droite sur 6, décalée vers le bas.
   C'est cette asymétrie qui évite l'effet « rangée de cartes ». */

.edito { align-items: start; }
.edito-texte p { color: var(--gris-texte); font-size: var(--t-m); max-width: 46ch; }
.edito-texte p + p { margin-top: var(--e-5); }
.edito-titre { margin-block: var(--e-5) var(--e-6); }

.edito-photo { --ratio: 4 / 5; }
@media (min-width: 900px) { .edito-photo { margin-top: var(--e-7); } }

.edito-liste { margin-top: var(--e-7); border-top: var(--filet); }
.edito-liste li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--e-4);
  padding-block: var(--e-5);
  border-bottom: var(--filet);
  font-size: var(--t-s);
}
.edito-liste .num { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--accent); }


/* === METHODE — FRISE ====================================================== */
/* Quatre étapes en frise. Sur mobile elle défile horizontalement avec
   accroche, au clavier chaque étape reste atteignable dans l'ordre. */

.frise {
  display: grid;
  gap: var(--e-5);
  margin-top: var(--e-8);
}
@media (min-width: 900px) {
  .frise { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
}

.frise-etape {
  padding-top: var(--e-5);
  border-top: 1px solid var(--gris-filet);
}
@media (min-width: 900px) {
  .frise-etape { padding-right: var(--e-6); }
  .frise-etape + .frise-etape { padding-left: var(--e-6); border-left: var(--filet); }
}
.frise-num {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--accent);
  margin-bottom: var(--e-5);
}
.frise-etape h3 { margin-bottom: var(--e-4); }
.frise-etape p { font-size: var(--t-s); color: var(--gris-texte); }


/* === CONFIDENTIALITE ====================================================== */

.confid-grille {
  display: grid;
  gap: var(--e-7);
  margin-top: var(--e-7);
  border-top: var(--filet);
  padding-top: var(--e-6);
}
@media (min-width: 900px) { .confid-grille { grid-template-columns: repeat(3, 1fr); gap: var(--e-6); } }

.confid-item h3 { margin-bottom: var(--e-4); }
.confid-item p { font-size: var(--t-s); color: var(--gris-texte); max-width: 34ch; }


/* === APERCU BLOG ========================================================== */

.blog-apercu {
  display: grid;
  gap: var(--e-7);
  margin-top: var(--e-7);
}
@media (min-width: 800px) { .blog-apercu { grid-template-columns: repeat(3, 1fr); gap: var(--e-6); } }


/* === APPEL FINAL ========================================================== */

.appel { text-align: left; }
.appel-titre { max-width: 18ch; }
.appel p { margin-top: var(--e-6); color: var(--gris-texte); font-size: var(--t-m); max-width: 46ch; }
.appel .hero-actions { margin-top: var(--e-6); }


/* === FONDS ET RYTHME DE L'ACCUEIL ========================================= */
/* Blanc classique, en alternance avec un bleu ciel d'une section à l'autre.
   Espacement vertical resserré par rapport au reste du site. */

.section-ciel { background: var(--bleu-ciel); }

main .section { padding-block: var(--e-7); }
@media (min-width: 1200px) {
  main .section { padding-block: var(--e-8); }
}
/* Les emplacements photo restent blancs pour se détacher du bleu. */
.section-ciel .photo-vide { background: var(--blanc); }

/* Sous-titre du hero : un peu d air sous le titre sur une ligne. */
.hero .libelle { margin-top: var(--e-5); }
