/* ═══════════════════════════════════════════════════════════════
   HABILLAGE « V7 » — titre géant sur la photo, barre d'infos en verre,
   cartes photo avec panneau de verre, gros blocs arrondis.
   Chargé en dernier (après style.css, pages.css et liquid-glass.css).
   Pour revenir en arrière : Gestion → Phase & habillage → Habillage V7 → Désactivé.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --v7-verre: linear-gradient(160deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.14) 100%);
  --v7-rim: inset 1.5px 1.5px 0 -.5px rgba(255,255,255,.6), inset -1px -1px 0 -.5px rgba(255,255,255,.25), 0 24px 50px -22px rgba(0,0,0,.65);
  --v7-flou: blur(22px) saturate(1.5);
  --v7-r: 30px;
}

/* ══ ACCUEIL — héros ══ */
body.home .hp-hero { min-height: 100svh; }
body.home .hp-hero-shade {
  background: linear-gradient(180deg, rgba(10,12,8,.28) 0%, rgba(10,12,8,.04) 38%, rgba(10,12,8,.55) 78%, rgba(10,12,8,.82) 100%);
}
body.home .hp-hero-inner { max-width: 1380px; padding: 8rem 1.5rem 1.5rem; align-items: stretch; gap: 0; }
body.home .hp-hero-text { width: 100%; }
body.home .hp-hero-title { margin: 0 0 1.1rem; line-height: .84; text-align: right; text-shadow: 0 4px 40px rgba(0,0,0,.35); }
body.home .hp-hero-title span { display: inline; }
body.home .hp-hero-title-sm,
body.home .hp-hero-title-lg { font-size: clamp(3.2rem, 7.6vw, 7.6rem); letter-spacing: 0; margin: 0; }
body.home .hp-hero-title-lg { color: #fff; }
body.home .hp-hero-title-sm { color: rgba(255,255,255,.96); margin-right: .12em; }

/* barre d'infos en verre */
body.home .hp-bar {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.2rem 1.5rem;
  border-radius: var(--v7-r);
  background: var(--v7-verre);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: var(--v7-rim);
  -webkit-backdrop-filter: var(--v7-flou); backdrop-filter: var(--v7-flou);
  color: #fff;
}
body.home .hp-bar-qui { min-width: 0; }
body.home .hp-bar .hp-hero-edition { font-size: 1.1rem; color: #ffd2b0; margin: 0 0 .15rem; }
body.home .hp-bar .hp-hero-when { margin: 0; font-size: 1.05rem; flex-direction: column; gap: 0; color: rgba(255,255,255,.85); }
body.home .hp-bar .hp-hero-when strong { font-size: 1.15rem; }
body.home .hp-bar .hp-compte {
  margin: 0; padding: .5rem 1.1rem; border-radius: 20px;
  background: rgba(10,12,8,.38); border: 1px solid rgba(255,255,255,.2);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
body.home .hp-bar .hp-compte-n { font-size: 2.6rem; color: #ffd2b0; }
body.home .hp-bar .hp-hero-lead { margin: 0; font-size: 1rem; line-height: 1.45; max-width: none; color: rgba(255,255,255,.92); }
body.home .hp-bar .hp-hero-actions { flex-wrap: nowrap; justify-content: flex-end; }
body.home .hp-bar .hp-btn { min-height: 50px; white-space: nowrap; }
body.home .hp-btn--plein { box-shadow: 0 10px 24px -10px rgba(232,115,42,.9), inset 0 1px 0 rgba(255,255,255,.4); }
body.home .hp-btn--clair { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }

@media (max-width: 1180px) {
  body.home .hp-bar { grid-template-columns: auto 1fr; }
  body.home .hp-bar .hp-hero-lead { grid-column: 1 / -1; order: 3; }
  body.home .hp-bar .hp-hero-actions { grid-column: 1 / -1; order: 4; justify-content: flex-start; }
}
@media (max-width: 700px) {
  body.home .hp-hero-inner { padding: 7rem .75rem .75rem; }
  body.home .hp-hero-title { text-align: left; }
  body.home .hp-hero-title-sm, body.home .hp-hero-title-lg { font-size: clamp(3.4rem, 17vw, 6rem); }
  body.home .hp-hero-title-sm { display: block; font-size: clamp(2rem, 9vw, 3.2rem); margin: 0; }
  body.home .hp-bar { grid-template-columns: 1fr; padding: 1rem; border-radius: 26px; }
  body.home .hp-bar .hp-compte { justify-self: start; }
  body.home .hp-bar .hp-hero-actions { flex-wrap: wrap; }
}

/* ══ ACCUEIL — courses : photo + panneau de verre ══ */
body.home .hp-courses { padding: 5rem 0 4rem; }
body.home .hp-tuile { border-radius: var(--v7-r); aspect-ratio: 4 / 5; box-shadow: 0 18px 40px -22px rgba(20,22,18,.55); }
body.home .hp-tuile::after { background: linear-gradient(0deg, rgba(10,12,8,.45) 0%, rgba(10,12,8,0) 55%); }
body.home .hp-tuile-depart {
  top: 1rem; left: 1rem; padding: .4rem .85rem;
  background: var(--v7-verre); border: 1px solid rgba(255,255,255,.3);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.4);
  -webkit-backdrop-filter: var(--v7-flou); backdrop-filter: var(--v7-flou);
}
body.home .hp-tuile-corps {
  position: relative; margin: .75rem; padding: 1.1rem 1.3rem 1.2rem; border-radius: 22px;
  background: var(--v7-verre); border: 1px solid rgba(255,255,255,.32);
  box-shadow: var(--v7-rim);
  -webkit-backdrop-filter: var(--v7-flou); backdrop-filter: var(--v7-flou);
}
body.home .hp-tuile-corps::before { display: none; }
body.home .hp-tuile-corps::after { right: 1rem; bottom: auto; top: 1.1rem; width: 38px; height: 38px; }
body.home .hp-tuile-km { font-size: clamp(3.2rem, 5vw, 4.4rem); }
body.home .hp-tuile-nom { margin-top: .35rem; }
body.home .hp-tuile-txt { padding-right: 0; }

/* ══ ACCUEIL — enfants, week-end, jour J, merci ══ */
body.home .hp-enfants { border-radius: 36px; }
body.home .hp-enfants-liste li { border-radius: 24px; background: var(--v7-verre); box-shadow: var(--v7-rim); }
body.home .hp-weekend {
  margin: 0 clamp(.5rem, 1.6vw, 1.5rem) clamp(.5rem, 1.6vw, 1.5rem);
  border-radius: 40px; padding: 5rem 0;
}
body.home .hp-jour { border-radius: 24px; background: var(--v7-verre); box-shadow: var(--v7-rim); border-color: rgba(255,255,255,.2); }
body.home .hp-we-compte-grille div { border-radius: 20px; background: var(--v7-verre); border-color: rgba(255,255,255,.22); }
body.home .hp-weekend-photo { border-radius: 32px; }
body.home .hp-jourj-lien, body.home .hp-merci .hp-jourj-lien { border-radius: 26px; }
body.home .hp-merci { padding-top: 6rem; }
@media (max-width: 700px) {
  body.home .hp-weekend { border-radius: 28px; padding: 3.2rem 0; }
  body.home .hp-enfants { border-radius: 28px; }
}

/* ══ PAGES INTÉRIEURES — même langage : titre géant + verre ══ */
body:not(.home) .fdh-hero { min-height: clamp(420px, 62vh, 600px); padding: 6rem 0 1.5rem; }
body:not(.home) .fdh-hero::after {
  background: linear-gradient(180deg, rgba(10,12,8,.3) 0%, rgba(10,12,8,.05) 40%, rgba(10,12,8,.6) 85%, rgba(10,12,8,.82) 100%);
}
body:not(.home) .fdh-hero-content { max-width: 1380px; padding: 0 1.5rem; }
body:not(.home) .fdh-hero-title { margin: 0 0 1rem; text-shadow: 0 4px 40px rgba(0,0,0,.35); }
body:not(.home) .fdh-title-gradient { font-size: clamp(3.4rem, 9.5vw, 8.4rem); }
body:not(.home) .fdh-title-white { font-size: clamp(2rem, 4.6vw, 3.8rem); }
body:not(.home) .fdh-badge-new {
  background: var(--v7-verre); border: 1px solid rgba(255,255,255,.3); box-shadow: inset 1px 1px 0 rgba(255,255,255,.4);
  -webkit-backdrop-filter: var(--v7-flou); backdrop-filter: var(--v7-flou);
}
body:not(.home) .fdh-hero-subtitle,
body:not(.home) .fdh-hero-subtitle-sm {
  max-width: 44em; padding: .9rem 1.3rem; border-radius: 22px;
  background: var(--v7-verre); border: 1px solid rgba(255,255,255,.28); box-shadow: var(--v7-rim);
  -webkit-backdrop-filter: var(--v7-flou); backdrop-filter: var(--v7-flou);
  color: rgba(255,255,255,.94);
}
body:not(.home) .fdh-hero-stats {
  width: 100%; margin-top: 1rem !important; padding: 1rem 1.5rem !important; border-radius: var(--v7-r);
  background: var(--v7-verre) !important; border: 1px solid rgba(255,255,255,.3) !important; box-shadow: var(--v7-rim) !important;
  -webkit-backdrop-filter: var(--v7-flou); backdrop-filter: var(--v7-flou);
}
@media (max-width: 700px) {
  body:not(.home) .fdh-hero { min-height: 400px; padding-top: 5.5rem; }
  body:not(.home) .fdh-hero-content { padding: 0 .75rem; }
  body:not(.home) .fdh-hero-stats { padding: .85rem 1rem !important; }
}

/* blocs de contenu des pages intérieures : grands angles, ombre douce */
body:not(.home) .fdh-parcours .fdh-inner,
body:not(.home) .fdh-inner { max-width: 1240px; }
body:not(.home) .fdh-card, body:not(.home) .fdh-bloc, body:not(.home) .fdh-box { border-radius: 26px; }

/* ══ PAGES DE COURSE (/course/…) — le CSS de ces pages est dans la page : on passe devant avec « body » ══ */
body .fdh-hero-inner { max-width: 1380px; }
body .fdh-hero-title-lg { font-size: clamp(3.4rem, 9.5vw, 8.4rem); margin-left: 0; text-shadow: 0 4px 40px rgba(0,0,0,.35); }
body .fdh-hero-title-sm { font-size: clamp(2rem, 4.6vw, 3.8rem); }
body .fdh-hero-badge {
  background: var(--v7-verre); border: 1px solid rgba(255,255,255,.3); box-shadow: inset 1px 1px 0 rgba(255,255,255,.4);
  -webkit-backdrop-filter: var(--v7-flou); backdrop-filter: var(--v7-flou);
}
body .fdh-hero-inner .fdh-hero-lead {
  display: inline-block; max-width: 44em; padding: .9rem 1.3rem; border-radius: 22px;
  background: var(--v7-verre); border: 1px solid rgba(255,255,255,.28); box-shadow: var(--v7-rim);
  -webkit-backdrop-filter: var(--v7-flou); backdrop-filter: var(--v7-flou);
}
body .fdh-stats-bar { padding: 0 1.5rem; }
body .fdh-stats-bar .fdh-stats-card {
  max-width: 1380px; margin: 0 auto; border-radius: var(--v7-r);
  background: linear-gradient(160deg, rgba(255,255,255,.88), rgba(255,255,255,.62)) !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  box-shadow: inset 1.5px 1.5px 0 rgba(255,255,255,.95), 0 24px 50px -24px rgba(20,22,18,.5) !important;
  -webkit-backdrop-filter: var(--v7-flou); backdrop-filter: var(--v7-flou);
}
body .fdh-stats-bar .fdh-stats-card .fdh-stat-val { font-size: clamp(1.8rem, 3vw, 2.4rem); }
@media (max-width: 700px) { body .fdh-stats-bar { padding: 0 .75rem; } }

/* le fond clair descend jusqu'aux montagnes du pied de page (sinon le gris foncé du <body> apparaît) */
html:has(body.home), body.home { background-color: #f6ece1 !important; }
body.home .hp-benev { margin: 0 clamp(.5rem, 1.6vw, 1.5rem) clamp(.5rem, 1.6vw, 1.5rem); border-radius: 40px; padding: 5rem 0 4.5rem; }
body.home .hp-benev-finder { border-radius: 36px; }
@media (max-width: 700px) { body.home .hp-benev { border-radius: 28px; padding: 3.2rem 0 3rem; } }
