/* Page d'accueil : héros avec mur de reels, profil, stories, sections. */

/* ---------- héros ---------- */
.hero { position: relative; min-height: calc(100svh - var(--hauteur-barre)); display: grid; align-items: center; overflow: hidden; background: var(--encre); color: var(--creme); }
.mur { position: absolute; inset: -22% -8% -22% 36%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; transform: rotate(-8deg); }
.mur-piste { display: flex; flex-direction: column; gap: 14px; padding-bottom: 14px; animation: defile 70s linear infinite; will-change: transform; }
.mur-colonne:nth-child(even) .mur-piste { animation-direction: reverse; animation-duration: 86s; }
.mur-colonne:nth-child(3) .mur-piste { animation-duration: 58s; }
.mur-tuile { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--encre-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.mur-tuile img, .mur-tuile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes defile { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.hero-voile { position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--encre) 0%, rgba(27, 16, 10, 0.96) 34%, rgba(27, 16, 10, 0.6) 54%, rgba(27, 16, 10, 0.12) 100%),
  linear-gradient(0deg, var(--encre) 0%, transparent 22%, transparent 82%, rgba(27, 16, 10, 0.85) 100%); }
.hero-texte { position: relative; width: min(1120px, 100% - 36px); margin-inline: auto; padding: 56px 0 64px; }
.hero-texte > * { max-width: 640px; }
.pastille { display: inline-block; font: 700 13px var(--texte); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; border: 1.5px solid rgba(255, 248, 238, 0.3); color: var(--jaune); margin-bottom: 22px; }
.hero h1 { max-width: 980px; font-size: clamp(38px, 4.8vw, 68px); line-height: 1.04; letter-spacing: -0.03em; text-shadow: 0 2px 34px rgba(27, 16, 10, 0.85); }
.hero h1 em { display: block; text-shadow: none; filter: drop-shadow(0 2px 18px rgba(27, 16, 10, 0.7)); font-style: normal; background: linear-gradient(90deg, var(--jaune), var(--orange) 55%, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-phrase { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20.5px); color: rgba(255, 248, 238, 0.84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chiffres { list-style: none; padding: 0; margin-top: 44px; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 34px; font-size: 14px; color: rgba(255, 248, 238, 0.7); }
.chiffres b { display: block; font: 700 clamp(28px, 3.4vw, 42px) / 1 var(--titre); color: var(--creme); margin-bottom: 4px; }

/* ---------- profil et stories ---------- */
.profil { width: min(980px, 100% - 36px); margin: 0 auto; padding: 44px 0 10px; }
.profil-tete { display: flex; align-items: center; gap: clamp(18px, 5vw, 56px); }
.avatar { flex: none; width: clamp(92px, 16vw, 158px); aspect-ratio: 1; border-radius: 50%; padding: 5px; background: var(--anneau); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--creme); background: var(--sable); }
.profil-nom { font-size: clamp(24px, 3.4vw, 34px); }
.profil-compteurs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 12px 0; font-size: 15.5px; color: var(--brun); }
.profil-compteurs b { color: var(--encre); font-size: 18px; margin-right: 3px; }
.profil-bio { font-size: 15.5px; line-height: 1.5; }
.stories { display: flex; gap: 16px; overflow-x: auto; padding: 30px 2px 18px; scrollbar-width: thin; }
.story { flex: none; width: 88px; border: 0; padding: 0; background: none; display: grid; gap: 7px; justify-items: center; font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center; }
.story-anneau { width: 80px; height: 80px; border-radius: 50%; padding: 3px; background: var(--anneau); transition: transform 0.2s; }
.story:hover .story-anneau { transform: scale(1.07) rotate(4deg); }
.story-anneau img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--creme); }

/* ---------- grille de l'accueil ---------- */
.vitrine { width: min(980px, 100%); margin: 0 auto; padding: 18px 0 72px; scroll-margin-top: var(--hauteur-barre); }
.vitrine .filtres { padding: 14px 18px 18px; border-top: 1px solid var(--trait); justify-content: center; }
.grille-pied { text-align: center; margin-top: 34px; }

/* ---------- bandes ---------- */
.bande { padding: clamp(56px, 8vw, 96px) 0; scroll-margin-top: var(--hauteur-barre); }
.bande.sombre { background: var(--encre); color: var(--creme); }
.bande.creme { background: var(--sable); }
.bande.sombre .sur-titre { color: var(--jaune); }
.bande.sombre code { background: rgba(255, 248, 238, 0.14); }
.bande h2 { font-size: clamp(30px, 4.4vw, 52px); max-width: 18ch; }
.chapeau { margin-top: 14px; font-size: 18px; color: var(--brun); max-width: 60ch; }

.etapes { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.etapes li { background: rgba(255, 248, 238, 0.07); border: 1px solid rgba(255, 248, 238, 0.14); border-radius: 22px; padding: 26px 24px 28px; }
.numero { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--anneau); color: #fff; font: 700 22px var(--titre); margin-bottom: 18px; }
.etapes h3 { font-size: 24px; margin-bottom: 8px; }
.etapes p { color: rgba(255, 248, 238, 0.8); font-size: 16px; }
.note-claire { margin-top: 28px; color: rgba(255, 248, 238, 0.8); max-width: 70ch; }
.note-claire a { color: var(--jaune); font-weight: 600; }

.dire { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.dire > div { background: var(--carte); border: 1.5px solid var(--trait); border-radius: 20px; padding: 22px; }
.dit { font: 700 19px/1.3 var(--titre); color: var(--orange-texte); margin-bottom: 8px; }
.dire p:not(.dit) { font-size: 15.5px; color: var(--brun); }

.rail { --marge-rail: max(18px, calc((100% - 1120px) / 2)); display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--marge-rail); margin-top: 30px; padding: 4px var(--marge-rail) 22px; scrollbar-width: thin; }
.rail .tuile { flex: 0 0 168px; scroll-snap-align: start; }

.forces { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.forces article { background: var(--carte); border-radius: 20px; padding: 24px 20px; border: 1.5px solid var(--trait); position: relative; overflow: hidden; }
.forces article::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--anneau); }
.forces h3 { font-size: 20px; margin-bottom: 8px; }
.forces p { font-size: 15px; color: var(--brun); }

.chantiers { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.chantiers a { display: grid; gap: 8px; align-content: start; background: var(--encre); color: var(--creme); text-decoration: none; border-radius: 22px; padding: 26px 24px; transition: transform 0.18s, box-shadow 0.18s; }
.chantiers a:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(43, 26, 18, 0.28); }
.chantiers b { font: 700 23px var(--titre); }
.chantiers span { font-size: 15px; color: rgba(255, 248, 238, 0.76); }
.chantiers i { font-style: normal; font-weight: 700; font-size: 14px; color: var(--jaune); margin-top: 6px; }
.chantiers i::after { content: " →"; }

details { border-bottom: 1.5px solid var(--trait); padding: 16px 0; }
details:first-of-type { margin-top: 28px; border-top: 1.5px solid var(--trait); }
summary { font: 700 18px var(--titre); cursor: pointer; list-style-position: outside; }
details p { margin-top: 10px; color: var(--brun); }

@media (max-width: 760px) {
  .mur { inset: -10% -30% -10% -30%; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .mur-colonne:nth-child(n + 4) { display: none; }
  .hero-voile { background: linear-gradient(180deg, rgba(27, 16, 10, 0.74) 0%, rgba(27, 16, 10, 0.9) 45%, var(--encre) 100%); }
  .hero { align-items: end; }
  .chiffres { grid-template-columns: repeat(2, auto); }
  .profil-bio { font-size: 14.5px; }
}
