/* Accueil : un profil altimétrique dont les sommets sont les thèmes du blog */
.hero { position: relative; overflow: hidden; background: var(--forest); color: var(--mist); }
.hero__top { max-width: var(--width); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 1.25rem 0; position: relative; z-index: 2; }
.hero h1 {
    max-width: 11.5em; font-size: clamp(3.6rem, 10.5vw, 9.4rem); font-stretch: 75%; font-weight: 800;
    line-height: .88; letter-spacing: -.012em; text-wrap: balance;
}
.hero__lead { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: 2rem; }
.hero__intro { flex: 1 1 22rem; max-width: 36rem; margin: 0; font-family: var(--font-read); font-size: 1.32rem; line-height: 1.55; color: #d7e0d4; }

/* Le profil */
.profile { position: relative; max-width: 1500px; margin: -3.5rem auto 0; aspect-ratio: 1200 / 400; }
.profile__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.profile__fade { -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.profile__area { fill: url(#profile-fill); }
.profile__line { fill: none; stroke: var(--lichen); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.profile__grid { stroke: #f2f4ee; stroke-width: 1; opacity: .16; vector-effect: non-scaling-stroke; }

.waypoints { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.waypoint { position: absolute; left: var(--x); top: var(--y); transform: translateY(-100%); }
.waypoint a { display: block; text-decoration: none; color: #fff; }
.waypoint__flag {
    display: block; padding: .5rem 1.6rem .5rem .8rem; line-height: 1.1;
    clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 50%, 100% 100%, 0 100%);
    transition: filter .15s;
}
.waypoint__name { display: block; font-size: 1.2rem; font-weight: 700; font-stretch: 80%; white-space: nowrap; }
.waypoint__count { display: block; margin-top: .15rem; font-size: .8rem; font-weight: 500; opacity: .92; }
.waypoint__pole { display: block; width: 3px; height: var(--pole, 44px); background: var(--mist); }
.waypoint a:hover .waypoint__flag { filter: brightness(1.12); }
.waypoint a:focus-visible { outline-offset: 6px; }
.waypoint--a .waypoint__flag { background: var(--pine); }
.waypoint--b .waypoint__flag { background: var(--glacier); }
.waypoint--c .waypoint__flag { background: var(--blaze); }
.waypoint--d .waypoint__flag { background: var(--lichen); color: var(--forest); }
.waypoint--d a { color: var(--forest); }
.waypoint:nth-child(2) { --pole: 22px; }
.waypoint:nth-child(3) { --pole: 34px; }
.waypoint:nth-child(4) { --pole: 58px; }

/* Les thèmes en liste, pour les petits écrans où les fanions ne tiennent pas */
.hero__themes { display: none; position: relative; z-index: 2; margin-top: 1rem !important; max-width: var(--width); margin: 0 auto; padding: 0 1.25rem 2.5rem; list-style: none; flex-wrap: wrap; gap: .6rem; }

/* Un seul moment animé : la ligne se dessine, puis les fanions se plantent */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes plant { from { opacity: 0; transform: translateY(calc(-100% + 18px)); } to { opacity: 1; transform: translateY(-100%); } }
@keyframes fill-in { from { opacity: 0; } to { opacity: 1; } }
.profile__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.4, .1, .2, 1) .25s forwards; }
.profile__area { opacity: 0; animation: fill-in 1.6s ease-out 1.2s forwards; }
.waypoint { opacity: 0; animation: plant .6s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(.9s + var(--i) * .32s); }

/* Les trois raisons de lire le blog */
.pillars { max-width: var(--width); margin: 0 auto; padding: 5rem 1.25rem 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 0 2.25rem; border-left: 1.5px dashed var(--ink-soft); }
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar__icon { display: block; width: 52px; height: 52px; margin-bottom: 1.1rem; color: var(--pine); }
.pillar h2 { margin-bottom: .55rem; font-size: 1.9rem; font-stretch: 80%; font-weight: 800; line-height: 1.05; }
.pillar p { margin: 0; font-family: var(--font-read); font-size: 1.15rem; line-height: 1.55; color: var(--ink-soft); }

@media (max-width: 900px) {
    .pillars { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3.5rem; }
    .pillar, .pillar:first-child, .pillar:last-child { padding: 0; border-left: 0; }
}
@media (max-width: 760px) {
    .waypoints { display: none; }
    .profile { margin-top: -1rem; aspect-ratio: 1200 / 330; }
    .hero__themes { display: flex; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
    .hero__intro { font-size: 1.18rem; }
}
@media (prefers-reduced-motion: reduce) {
    .profile__line { stroke-dashoffset: 0; animation: none; }
    .profile__area, .waypoint { opacity: 1; animation: none; }
}
