.hero {
  position: relative;
  height: 85vh;
  height: 85svh;
  min-height: 560px;
  margin: 0 calc(var(--gap) * -1);
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Mobile : le portrait couvre toute la bande, cadré en plan poitrine, aligné en haut.
   Le portrait garde de l'air au-dessus de la tête (pour le bureau) ; sur mobile on le décale pour le cadrer serré. */
.hero__photo {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 45% top;
}

/* Le bleu nuit remonte du bas sur la moitié de la hauteur pour garder le texte lisible. */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56%;
  background: linear-gradient(to top, var(--navy) 0%, rgba(18, 40, 76, 0.94) 38%, rgba(18, 40, 76, 0) 100%);
}

.hero__countdown {
  position: absolute;
  top: 20px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__text { padding: 0 24px 76px; }
/* Le slogan est la vedette (grande taille, trois lignes, dernier mot en corail) ; le nom passe au second plan, au-dessus. */
.hero__name { font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: 0.14em; text-transform: uppercase; color: #E4EAF4; }
.hero__slogan { margin-top: 10px; font-size: 40px; font-weight: 900; line-height: 0.98; letter-spacing: -0.035em; text-shadow: 0 2px 18px rgba(11, 26, 53, 0.45); }
.slogan__line { display: block; }
.slogan__accent { font-style: normal; color: var(--accent); }
.hero__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.hero__cta {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 34px; text-decoration: none;
  font-weight: 700; font-size: 18px; line-height: 1.15; letter-spacing: -0.005em; text-align: left; white-space: nowrap;
}
.hero__cta-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; }
.hero__cta-label { flex: 1 1 auto; }
.hero__cta-arrow { display: grid; place-items: center; flex: none; }
.hero__cta--solid { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 28px rgba(242, 96, 76, 0.55); }
.hero__cta--outline { background: transparent; border-color: #fff; color: #fff; }
.hero__cta--light { background: var(--bg); border-color: var(--bg); color: var(--navy); }
.hero__actions--simple { display: none; }
.home-questions, .daily-more, .home-mapband__intro { display: none; }

.daily { display: block; margin-bottom: 12px; padding: 0; overflow: hidden; }
.daily__cover { position: relative; }
/* Bandeau 16/9 ; --focus-y (stocké avec la proposition) règle le cadrage vertical, 20 % par défaut. */
.cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.cover__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center var(--focus-y, 20%); }
.cover--fallback { aspect-ratio: auto; height: 120px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy) 0%, #5b3b5f 60%, var(--accent) 100%); color: #fff; }
.daily__theme { position: absolute; left: 12px; bottom: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(18, 40, 76, 0.72); color: #fff; font-size: 13px; font-weight: 600; }
.daily__body { display: grid; gap: 8px; padding: 14px var(--gap) var(--gap); }
.daily__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.daily__head h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #C8341F; }
.daily__count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.daily__title { font-size: 20px; font-weight: 700; line-height: 1.15; color: var(--navy); }
.daily__summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #3F4D63; font-size: 15px; }
.daily__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.daily__read { padding: 4px 10px; border-radius: 999px; background: var(--grey-soft); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.daily__progress { height: 4px; background: var(--grey-soft); }
.daily__progress span { display: block; height: 100%; background: var(--accent); }

.composer--compact { margin: 12px 0; padding: var(--gap); background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.composer--compact .segments { margin-bottom: 14px; }
.composer--compact .recorder__button { width: 80px; height: 80px; }
.composer--compact .recorder__button svg { width: 36px; height: 36px; }
.composer__title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 20px; color: var(--accent); }
.composer__more { margin-top: 14px; }

/* Mobile : la carte va d'un bord à l'autre de l'écran (la carte-conteneur déborde des gouttières). */
.home-map { display: grid; gap: 10px; margin: 0 0 12px; padding: 0 0 var(--gap); overflow: hidden; border-radius: var(--radius-card); }
.home-map .link { padding: 0 var(--gap); }
.home-map .map-detail { margin: 0 var(--gap); }
.home-map .map { margin: 0; width: 100%; border-radius: 0; }
.home-map .map.leaflet-container { background: var(--card); }

/* Mobile : héros bas (≈ 40 % de la fenêtre), portrait recadré sur le visage, nom et slogan en bas de la photo ;
   le bloc question suit immédiatement, puis deux pastilles. */
.home-pills { display: flex; gap: 8px; margin: 0 0 12px; }
.pill { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 8px; border: 1.5px solid var(--navy); border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px rgba(18, 40, 76, 0.12); transition: filter 0.12s; }
.pill:active { filter: brightness(0.88); }
.pill--soft { background: #FDE8E3; border-color: var(--accent); color: var(--navy); }
.pill--soft svg { color: #C8341F; }

@media (max-width: 899px) {
  /* Le héros remplit l'écran, de son bord haut (sous la barre translucide) à son bord bas ;
     le bloc question déborde de --bottom-nav-h + --peek-h sur la photo. */
  .home { --hero-h: 100vh; }
  @supports (height: 100svh) { .home { --hero-h: 100svh; } }
  .hero { height: var(--hero-h); min-height: 0; margin-top: calc(var(--navbar-h) * -1); margin-bottom: 0; z-index: 1; }
  .hero__photo { top: 0; height: 100%; object-fit: cover; object-position: 50% 20%; }
  .hero::after { height: 70%; }
  .hero__countdown { top: calc(var(--navbar-h) + 12px); right: 12px; width: 56px; height: 56px; font-size: 17px; }
  .hero__text { padding: 0 20px calc(var(--bottom-nav-h) + var(--peek-h) + 16px); }
  .hero__name { font-size: 14px; }
  .hero__slogan { margin-top: 8px; font-size: clamp(36px, 10vw, 44px); }
  .hero__actions { display: none; }

  .home-ask { position: relative; z-index: 2; margin-top: calc(-1 * (var(--bottom-nav-h) + var(--peek-h))); scroll-margin-top: var(--navbar-h); }
  .composer--compact { margin: 0 0 10px; padding: 6px var(--gap) 12px; border-radius: 20px 20px var(--radius-card) var(--radius-card); box-shadow: 0 -8px 24px rgba(20, 30, 60, 0.18); }
  .composer__peek { display: grid; place-items: center; width: 100%; height: 18px; margin-bottom: 0; color: var(--muted); }
  .composer__peek svg { animation: peek-bounce 1.8s ease-in-out infinite; }
  .composer__title { margin-bottom: 4px; font-size: 18px; line-height: 1.1; }
  .composer--compact .segments { margin-bottom: 10px; }
  .composer__more { margin-top: 8px; }
}
@keyframes peek-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .composer__peek svg { animation: none; } }
.composer__peek { display: none; }
@media (max-width: 899px) { .composer__peek { display: grid; } }

@media (min-width: 900px) {
  .hero {
    /* La bande de tête remplit l'écran : fenêtre moins la barre du haut. */
    height: calc(100vh - var(--nav-height));
    height: calc(100svh - var(--nav-height));
    min-height: 620px;
    margin: 0;
    align-items: center;
    background: radial-gradient(ellipse 55% 85% at 74% 42%, #2C5595 0%, #1C3C72 42%, rgba(18, 40, 76, 0) 78%), var(--navy);
  }
  .hero::after { display: none; }
  .hero__photo {
    left: auto; right: 0; top: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%);
    mask-image: linear-gradient(to right, transparent 0, #000 38%);
  }
  .hero__inner { padding: 0 0 0 80px; }
  .hero__text { padding: 0; max-width: 58%; }
  .hero__name { font-size: clamp(18px, 1.7vw, 26px); }
  .hero__slogan { margin-top: clamp(12px, 2vh, 20px); font-size: clamp(56px, 7.2vw, 112px); line-height: 0.95; }
  /* Trois boutons sur une seule ligne, intervalle de 28 px. */
  .hero__actions { flex-direction: row; flex-wrap: nowrap; width: 100%; gap: 28px; margin-top: clamp(28px, 4.5vh, 48px); }
  .home-pills { display: none; }
  .hero__cta { width: auto; flex: none; min-height: clamp(84px, 10.7vh, 96px); padding: 0 clamp(20px, 1.9vw, 28px); gap: clamp(12px, 1.2vw, 18px); font-size: clamp(16px, 1.4vw, 20px); border-radius: 40px; }
  .hero__cta-label { flex: none; }
  .hero__countdown { top: 36px; right: 48px; width: 120px; height: 120px; font-size: 38px; }

  #ask { scroll-margin-top: calc(var(--nav-height) + 24px); }
  .home-ask { background: var(--card); }
  .home-ask__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .composer--compact { margin: 0; padding: 32px; background: var(--bg); border: 1px solid var(--border); box-shadow: none; }
  .composer__title { font-size: 26px; margin-bottom: 20px; }
  .composer--compact .field textarea { min-height: 150px; }
  .composer__more { display: none; }
  .composer--compact .segments { margin-bottom: 20px; }

  .home-questions { display: block; }
  .home-questions__list { margin: 0 0 24px; padding: 0; list-style: none; }
  .home-questions__item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--border); font-size: 19px; font-weight: 700; line-height: 1.3; }
  .home-questions__item:last-child { border-bottom: 1px solid var(--border); }
  .home-questions__count { flex: none; display: inline-flex; align-items: center; gap: 4px; min-width: 62px; padding: 4px 10px; border-radius: 999px; background: var(--grey-soft); font-size: 15px; font-weight: 700; }

  .home-daily__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .daily { margin: 0; }
  .daily__body { padding: 28px 32px 32px; gap: 12px; }
  .daily__title { font-size: 28px; }
  .daily__summary { font-size: 19px; }

  .daily-more { display: block; }
  .daily-more__title { font-size: 22px; margin-bottom: 8px; }
  .daily-more__item { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid rgba(18, 40, 76, 0.16); }
  .daily-more__number { flex: none; min-width: 52px; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--muted); }
  .daily-more__theme { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .daily-more__item h4 { font-size: 20px; line-height: 1.25; }
  .daily-more .link { margin-top: 20px; }

  .home-mapband__intro { display: block; margin-bottom: 28px; }
  .home-mapband__intro p { max-width: 42em; font-size: 19px; color: var(--muted); }
  .home-mapband__intro .band__title { margin-bottom: 10px; }
  .home-map { display: block; margin: 0; padding: 0; overflow: visible; background: none; box-shadow: none; border-radius: 0; }
  .home-map .map { height: 520px; aspect-ratio: auto; border-radius: var(--radius-card); box-shadow: var(--shadow); }
  .home-map .link { display: inline-flex; padding: 0; margin-top: 22px; font-size: 18px; }
}

/* Bureau : l'accueil se réduit à la bande de tête ; le reste reste accessible par la navigation et les boutons. */
@media (min-width: 900px) {
  .home-ask, .home-daily, .home-mapband { display: none; }
}

@media (min-width: 1700px) {
  .hero__text { max-width: 62%; }
}

/* Ordinateur (dès 1024 px), d'après docs/maquettes/hero-ordinateur-reference.png : nom très grand, filet corail,
   slogan sur une ligne, deux boutons ; la photo à droite avec la pastille J-xxx. */
@media (min-width: 1024px) {
  .hero__actions--rich { display: none; }
  .hero__actions--simple { display: flex; flex-direction: row; gap: 28px; width: auto; margin-top: clamp(28px, 5vh, 52px); }
  .hero__name { max-width: 5.5em; font-size: clamp(88px, 9.2vw, 140px); font-weight: 900; line-height: 0.88; letter-spacing: -0.035em; text-transform: none; color: #fff; }
  .hero__name::after { content: ""; display: block; width: 114px; height: 12px; margin-top: clamp(24px, 4vh, 40px); background: var(--accent); }
  .hero__slogan { margin-top: clamp(20px, 3.5vh, 36px); font-size: clamp(30px, 3vw, 46px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; text-shadow: none; }
  .slogan__line { display: inline; }
  .slogan__line:not(:last-child) { margin-right: 0.28em; }
  .slogan__accent { color: inherit; }
  .hero__simple { display: inline-flex; align-items: center; justify-content: center; min-height: 76px; padding: 0 clamp(28px, 2.6vw, 40px); border: 2px solid transparent; border-radius: 12px; font-size: clamp(18px, 1.5vw, 24px); font-weight: 600; text-decoration: none; color: #fff; }
  .hero__simple--solid { background: var(--accent); border-color: var(--accent); color: #0B1A35; }
  .hero__simple--outline { border-color: #fff; background: rgba(11, 26, 53, 0.35); }
  .hero__simple:hover { filter: brightness(1.08); }
  .hero__text { max-width: 60%; }
}
