/* ==========================================================================
   Page Événements : héro, formats en mosaïque, sélecteur de public,
   déroulé d'une journée en défilement horizontal, kit, étapes.
   Mobile first (base 360 px), puis min-width uniquement.
   ========================================================================== */

/* ---------- Héro ---------- */
.evh { min-height: 92svh; }
.evh__in { gap: clamp(22px, 3vw, 40px); }
.evh .d1 { font-size: min(clamp(2.8rem, 15vw, 15rem), 15cqi); line-height: .86; letter-spacing: -.04em; }
.evh .d1 .mask { padding-bottom: .22em; margin-bottom: -.22em; }
.evh .hl { color: #9fd2ac; }
.evh__foot { display: grid; gap: 20px; }
.evh__foot .lead { max-width: 34ch; }
@media (max-width: 599px) { .evh__foot .btn { flex: 1 1 100%; } }
@media (min-width: 961px) {
  .evh__in { grid-template-columns: minmax(0, 1fr); }
  .evh__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
}

/* ---------- Formats : mosaïque de grandes cartes photo ---------- */
.evf { display: grid; gap: 14px; }
.evf .card--photo { min-height: 66svh; max-height: 600px; }
.evf .card h3 { font-size: min(clamp(2rem, 8.6vw, 4rem), 11cqi); line-height: .92; letter-spacing: -.03em; }
.evf .card p { max-width: 36ch; }
.evf__a img { object-position: 45% 50%; }
.evf__c img { object-position: 52% 50%; }
.evf__d img { object-position: 38% 50%; }
.evf__e img { object-position: 22% 50%; }
.evf__f img { object-position: 50% 50%; }
@media (min-width: 721px) {
  .evf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evf .card--photo { min-height: 520px; max-height: none; }
  .evf__a, .evf__f { grid-column: 1 / -1; }
}
@media (min-width: 1081px) {
  .evf { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(300px, 34vw); }
  .evf .card--photo { min-height: 0; }
  .evf__a { grid-column: span 4; }
  .evf__b { grid-column: span 2; }
  .evf__c { grid-column: span 3; }
  .evf__d { grid-column: span 3; }
  .evf__e { grid-column: span 2; }
  .evf__f { grid-column: span 4; }
  .evf__b h3, .evf__e h3 { font-size: min(3.2rem, 12cqi); }
}
@media (min-width: 1440px) { .evf { grid-auto-rows: minmax(300px, 30vw); } }

/* ---------- Sélecteur de public ---------- */
.pick { display: grid; gap: 22px; }
.pick__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pick__tab {
  min-height: 48px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.3); background: transparent; color: #fff;
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.pick__tab:hover { border-color: #fff; }
.pick__tab:active { transform: scale(.97); }
.pick__tab[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--ink); }
.pick__grid { display: grid; gap: clamp(22px, 4vw, 72px); }
.pick__grid > * { min-width: 0; container-type: inline-size; }
.pick__stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); }
.pick__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 50%); opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.pick__stage img.is-on { opacity: 1; transform: none; }
.pick__count { position: absolute; left: 16px; bottom: 14px; padding: 7px 13px; border-radius: 999px; background: rgba(23,24,26,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pick__panels { display: grid; gap: 26px; align-content: start; }
.pick__panel { display: grid; gap: 20px; align-content: start; }
.js .pick__panel { grid-area: 1 / 1; }
.js .pick__panels > .btns { grid-area: 2 / 1; }
.js .pick__panel:not(.is-on) { visibility: hidden; opacity: 0; }
.js .pick__panel.is-on { animation: pickIn .5s var(--ease) both; }
@keyframes pickIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
.pick__panel .d3 { font-size: min(clamp(1.9rem, 8vw, 4.4rem), 10.4cqi); }
.pick__fmt { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid var(--line-l); }
.pick__fmt span { font-size: var(--fs-small); font-weight: 600; color: #9fd2ac; }
.pick__fmt b { font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.25; }
.pick__prog { list-style: none; padding: 0; margin: 0; counter-reset: pg; border-top: 1px solid var(--line-l); }
.pick__prog li { counter-increment: pg; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-l); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); font-weight: 600; }
.pick__prog li::before { content: counter(pg, decimal-leading-zero); font-size: var(--fs-small); font-weight: 700; color: #9fd2ac; }
.pick__note { color: rgba(255,255,255,.72); max-width: 44ch; }
@media (prefers-reduced-motion: reduce) {
  .pick__stage img { transition: none; transform: none; }
  .js .pick__panel.is-on { animation: none; }
}
@media (min-width: 961px) {
  .pick__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .pick__stage { aspect-ratio: auto; height: min(78vh, 760px); position: sticky; top: calc(var(--nav-h) + 20px); }
}

/* ---------- Pourquoi : liste typographique XXL ---------- */
.why { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-l); }
.why li { display: grid; gap: 10px; padding: clamp(20px, 3vw, 36px) 0; border-bottom: 1px solid var(--line-l); }
.why__w { container-type: inline-size; }
.why__w span { display: block; font-size: min(clamp(2.2rem, 10vw, 7.4rem), 10.6cqi); font-weight: 800; line-height: .92; letter-spacing: -.035em; font-variation-settings: "wdth" 100; text-wrap: balance; transition: transform .5s var(--ease), color .3s; }
.why p { font-size: var(--fs-lead); line-height: 1.35; max-width: 32ch; color: rgba(255,255,255,.82); }
@media (min-width: 961px) {
  .why li { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: 48px; }
  .why li:hover .why__w span { transform: translateX(14px); color: var(--sand-l); }
}

/* ---------- Déroulé d'une journée ---------- */
.hs__head { margin-bottom: clamp(28px, 4vw, 56px); }
.hs__track { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; gap: 14px; counter-reset: none; }
.hs__card { position: relative; display: grid; gap: 16px; padding: 14px 14px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); container-type: inline-size; }
.hs__card figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--sand-l); }
.hs__card img { width: 100%; height: 100%; object-fit: cover; }
.hs__body { display: grid; gap: 10px; padding-inline: 6px; }
.hs__n { font-size: min(clamp(3rem, 16vw, 6rem), 26cqi); font-weight: 800; line-height: .8; letter-spacing: -.05em; color: var(--green); font-variant-numeric: tabular-nums; }
.hs__card h3 { font-size: min(clamp(1.6rem, 7vw, 2.6rem), 10.6cqi); letter-spacing: -.025em; line-height: 1; font-variation-settings: "wdth" 100; }
.hs__card p { color: var(--muted); max-width: 40ch; }
.hs__foot { display: none; }

/* Tablette : rail horizontal natif */
@media (min-width: 721px) {
  .hs__view { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hs__view::-webkit-scrollbar { display: none; }
  .hs__track { display: flex; width: max-content; gap: 16px; }
  .hs__card { width: clamp(320px, 44vw, 460px); scroll-snap-align: start; }
}

/* Bureau : section épinglée, la piste défile à l'horizontale au scroll */
@media (min-width: 961px) {
  .hs.is-pinned { padding-block: 0; }
  .hs.is-pinned .hs__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); }
  .hs.is-pinned .hs__view { overflow: visible; }
  .hs.is-pinned .hs__track { will-change: transform; }
  .hs.is-pinned .hs__card { width: clamp(340px, 30vw, 500px); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
  .hs.is-pinned .hs__card figure { aspect-ratio: auto; height: min(30vh, 300px); }
  .hs.is-pinned .hs__card.is-on { transform: translateY(-10px); box-shadow: 0 30px 60px -30px rgba(23,24,26,.35); }
  .hs.is-pinned .hs__head { margin-bottom: clamp(20px, 3vh, 40px); }
  .hs.is-pinned .hs__head .d2 { font-size: min(clamp(2.3rem, 10vw, 7rem), 9cqi, 11vh); }
  .hs.is-pinned .hs__foot { display: block; margin-top: clamp(20px, 3vh, 36px); }
  .hs__bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
  .hs__bar b { display: block; height: 100%; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); }
}

/* ---------- Kit : panier détouré + liste ---------- */
.kit { align-items: center; }
.kit__stage { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: radial-gradient(120% 80% at 50% 30%, #fff 0%, var(--sand-l) 70%); overflow: hidden; perspective: 1200px; }
.kit__stage::before { content: ""; position: absolute; left: 50%; bottom: 8%; width: 56%; height: 7%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(23,24,26,.28), transparent); filter: blur(4px); }
.kit__obj { position: absolute; left: 50%; bottom: 7%; height: 84%; transform: translateX(-50%); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.kit__obj img { height: 100%; width: auto; max-width: none; }
.kit__list { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line); }
.kit__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.kit__list i { font-style: normal; font-weight: 800; color: var(--green); font-size: var(--fs-small); padding-top: .3em; }
.kit__list b { display: block; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.75rem); letter-spacing: -.015em; line-height: 1.1; }
.kit__list p { color: var(--muted); margin-top: 4px; }
@media (min-width: 961px) { .kit__stage { aspect-ratio: auto; height: min(88vh, 880px); } }

/* ---------- Trois étapes ---------- */
.org { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.org li { position: relative; display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: rgba(255,255,255,.06); border: 1px solid var(--line-l); container-type: inline-size; overflow: hidden; }
.org__n { font-size: min(clamp(6rem, 34vw, 15rem), 46cqi); font-weight: 800; line-height: .76; letter-spacing: -.06em; color: #9fd2ac; font-variant-numeric: tabular-nums; }
.org h3 { font-size: min(clamp(1.8rem, 7.4vw, 3rem), 12cqi); letter-spacing: -.025em; line-height: 1; margin-bottom: 10px; }
.org p { color: rgba(255,255,255,.76); max-width: 34ch; }
@media (min-width: 861px) {
  .org { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .org li { min-height: 520px; align-content: space-between; }
  .org { align-items: start; }
  .org li:nth-child(2) { margin-top: 48px; }
  .org li:nth-child(3) { margin-top: 96px; }
}

/* ---------- Contacts ---------- */
.ct__side { display: grid; gap: 20px; }

/* Photo réelle à la place de l'objet détouré */
.kit__stage::before { display: none; }
.kit__obj { inset: 0; left: 0; bottom: 0; height: 100%; width: 100%; transform: none !important; }
.kit__obj img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* =========================================================
   Trois étapes jusqu'au jour J : trajet du disque au défilement
   ========================================================= */
.jour { --jp: 0; overflow: hidden; }
.jour__track { position: relative; }
.jour__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.jour__step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.jour__node { position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green-dd); border: 2px solid rgba(255,255,255,.25); font-weight: 800; color: rgba(255,255,255,.6); transition: background-color .5s var(--ease-smooth), border-color .5s, color .5s, transform .5s var(--ease-smooth); }
.jour__step.is-on .jour__node { background: #9fd2ac; border-color: #9fd2ac; color: var(--green-dd); transform: scale(1.08); }
.jour__card { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px 22px 24px; border-radius: var(--radius-lg); background: rgba(255,255,255,.05); border: 1px solid var(--line-l); container-type: inline-size; opacity: .82; transform: translateY(10px); transition: opacity .6s var(--ease-smooth), transform .6s var(--ease-smooth), background-color .6s, border-color .6s; }
.jour__step.is-on .jour__card { opacity: 1; transform: none; background: rgba(255,255,255,.09); border-color: rgba(159,210,172,.45); }
.jour__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(159,210,172,.14); }
.jour__ico svg { width: 28px; height: 28px; fill: none; stroke: #9fd2ac; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.jour__k { font-size: .8rem; font-weight: 700; color: #9fd2ac; }
.jour__card h3 { font-size: min(clamp(1.7rem, 7vw, 2.6rem), 13cqi); letter-spacing: -.025em; line-height: 1; }
.jour__card p { color: rgba(255,255,255,.75); }
.jour__chip { justify-self: start; margin-top: 4px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .85rem; font-weight: 700; }
.jour__step.is-on .jour__chip { background: #9fd2ac; color: var(--green-dd); }

/* Rail : vertical sur mobile (à gauche des étapes) */
.jour__rail { position: absolute; z-index: 0; left: 21px; top: 22px; bottom: 22px; width: 2px; background: rgba(255,255,255,.16); border-radius: 2px; }
.jour__fill { position: absolute; inset: 0; background: #9fd2ac; transform-origin: 50% 0; transform: scaleY(var(--jp)); border-radius: 2px; }
.jour__disc { position: absolute; left: 50%; top: calc(var(--jp) * 100%); width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff 0 18%, #e8efe9 19% 54%, #9fd2ac 55% 100%); box-shadow: 0 0 0 6px rgba(159,210,172,.18), 0 8px 18px rgba(0,0,0,.35); transform: rotate(calc(var(--jp) * 720deg)); }

/* Bureau : rail horizontal au-dessus de trois colonnes */
@media (min-width: 961px) {
  .jour__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 78px; }
  .jour__step { grid-template-columns: 1fr; gap: 0; }
  .jour__node { position: absolute; top: -78px; left: 22px; width: 52px; height: 52px; font-size: 1.1rem; }
  .jour__rail { left: 48px; right: 48px; top: 25px; bottom: auto; width: auto; height: 2px; }
  .jour__fill { transform-origin: 0 50%; transform: scaleX(var(--jp)); }
  .jour__disc { top: 50%; left: calc(var(--jp) * 100%); width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .jour__card { padding: 30px 30px 32px; min-height: 100%; }
  .jour__card:hover { transform: translateY(-4px); }
}

/* Action finale */
.jour__cta { display: grid; gap: 18px; margin-top: clamp(28px, 4vw, 48px); padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--green); }
.jour__cta b { display: block; font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: -.02em; line-height: 1.1; }
.jour__cta span { display: block; margin-top: 6px; color: rgba(255,255,255,.82); }
@media (max-width: 599px) { .jour__cta .btn { width: 100%; } }
@media (min-width: 961px) { .jour__cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

@media (prefers-reduced-motion: reduce) {
  .jour { --jp: 1 !important; }
  .jour__card, .jour__node, .jour__disc { transition: none !important; }
  .jour__card { opacity: 1; transform: none; }
}
@media (min-width: 961px) { .jour__rail { left: 48px; right: calc((100% - 36px) / 3 - 48px); } }
