/* ============================================================================================================================
   Arceau Studio : page d'accueil (index.html). Tokens et composants viennent de tokens.css / ui.css / skin.css ;
   ici seulement la mise en page de la page (préfixe .hm-). Aucune couleur en dur : tout passe par les variables.
   ========================================================================================================================== */
html { scroll-behavior: smooth; }
body.hm { margin: 0; background: var(--n-0); color: var(--text); font-family: var(--font-sans); font-size: var(--fs-lg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.hm img { max-width: 100%; display: block; }
.hm a { color: inherit; }
.hm-wrap { width: min(1160px, 100% - 2 * var(--sp-16)); margin-inline: auto; }
.hm-skip { position: absolute; left: var(--sp-8); top: -60px; background: var(--primary-fill); color: var(--on-primary); padding: var(--sp-8) var(--sp-12); z-index: var(--z-modal); }
.hm-skip:focus { top: var(--sp-8); }
.hm [hidden] { display: none !important; }
.hm :focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ── En-tête ── */
.hm-head { position: sticky; top: 0; z-index: var(--z-header); background: var(--n-0); border-bottom: 1px solid var(--n-3); }
.hm-head .hm-wrap { display: flex; align-items: center; gap: var(--sp-16); min-height: 60px; }
.hm-brand { display: flex; align-items: center; gap: var(--sp-8); text-decoration: none; margin-right: auto; }
.hm-brand img { height: 16px; filter: var(--logo-filter); }
.hm-brand .tag { font-size: var(--fs-2xs); font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--primary-text); border: 1px solid var(--primary-fill); padding: 1px var(--sp-6); }
.hm-nav { display: flex; gap: var(--sp-24); }
.hm-nav a { color: var(--text-dim); text-decoration: none; font-family: var(--font-display); font-size: var(--fs-sm); font-weight: var(--fw-semi); letter-spacing: .06em; text-transform: uppercase; }
.hm-nav a:hover { color: var(--text-strong); }
.hm-head .btn { text-decoration: none; }
@media (max-width: 860px) { .hm-nav { display: none; } }
/* boutons d'en-tête : fins et discrets (« html:root » : priorité sur la peau des boutons de skin.css) */
html:root .hm-head .btn { box-sizing: border-box; white-space: nowrap; min-height: 0; height: 32px; padding: 0 var(--sp-14); font-size: var(--fs-2xs); letter-spacing: .1em; align-self: center; }
html:root .hm-head .btn.hm-login:not(.btn-primary):not(.btn-danger) { height: auto; padding: 0; border: 0; background: transparent; color: var(--text-dim); font-size: var(--fs-sm); font-weight: var(--fw-semi); letter-spacing: .06em; margin-left: var(--sp-8); }   /* « Se connecter » : même style que les liens du menu (il en est un) */
html:root .hm-head .btn.hm-login:not(.btn-primary):not(.btn-danger):hover { color: var(--text-strong); background: transparent; }
@media (max-width: 560px) {
    .hm-head .hm-wrap { gap: var(--sp-8); }
    .hm-head .hm-login { display: none; }                      /* « Se connecter » reste accessible dans le bouton principal puis la page de connexion */
    html:root .hm-head .btn { height: 30px; padding-inline: var(--sp-12); }
    .hm-brand .tag { display: none; }
    .hm-cta .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
}

/* ── Titres et textes ── */
.hm-kicker { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--primary-text); margin: 0 0 var(--sp-12); }
.hm h1, .hm h2, .hm h3 { font-family: var(--font-display); color: var(--text-strong); margin: 0; line-height: 1.08; letter-spacing: -.01em; }
.hm h1 { font-size: clamp(34px, 5.6vw, 66px); font-weight: var(--fw-bold); max-width: 24ch; }
.hm h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: var(--fw-bold); max-width: 22ch; }
.hm h3 { font-size: var(--fs-xl); font-weight: var(--fw-semi); line-height: 1.2; }
.hm-lead { font-size: clamp(17px, 1.7vw, 21px); color: var(--text-dim); max-width: 60ch; margin: var(--sp-20) 0 0; }
.hm-section { padding-block: clamp(56px, 8vw, 104px); }
.hm-section.alt { background: var(--n-1); border-block: 1px solid var(--n-3); }
.hm-center { text-align: center; }
.hm-center h2, .hm-center .hm-lead { margin-inline: auto; }

/* ── Boutons ── */
.hm .btn { text-decoration: none; }
.hm .btn-lg { min-height: 52px; padding: var(--sp-12) var(--sp-24); font-size: var(--fs-md); }
.hm-cta { display: flex; flex-wrap: wrap; gap: var(--sp-12); margin-top: var(--sp-32); }
.hm-fine { color: var(--text-faint); font-size: var(--fs-sm); margin: var(--sp-16) 0 0; }

/* ── Hero : la salle en plein cadre, le titre par-dessus ── */
.hm-hero { position: relative; isolation: isolate; min-height: clamp(540px, calc(100vh - 140px), 820px); display: flex; align-items: center; overflow: hidden; background: var(--n-0); }
.hm-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 68%; z-index: -3; }
.hm-hero-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--n-0) 94%, transparent) 0%, color-mix(in srgb, var(--n-0) 78%, transparent) 38%, color-mix(in srgb, var(--n-0) 8%, transparent) 72%, transparent 100%),
        linear-gradient(0deg, var(--n-0) 0%, transparent 28%); }
.hm-hero-body { padding-block: clamp(56px, 9vw, 120px); }
.hm-hero h1 { font-size: clamp(44px, 8.2vw, 112px); max-width: none; line-height: 1; }
.hm h1 em { font-style: normal; color: var(--primary); }
.hm-hero h1 span, .hm-hero h1 em { display: block; }   /* trois temps, une ligne chacun */
.hm-hero .hm-lead { color: var(--text); max-width: 46ch; text-shadow: 0 1px 18px var(--shade-4); }
.hm-credit { position: absolute; left: max(var(--sp-16), calc((100% - 1160px) / 2)); bottom: var(--sp-12); font-size: var(--fs-xs); color: var(--text-faint); }
.hm-close { position: absolute; right: var(--sp-16); bottom: var(--sp-16); z-index: 3; background: var(--n-1); }
.hm-live { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; background: var(--n-0); }
.hm-hero.is-live .hm-hero-body, .hm-hero.is-live .hm-credit { visibility: hidden; }
@media (max-width: 760px) {   /* téléphone : la salle en bandeau au-dessus, le titre dessous (plutôt qu'un voile qui cache l'image) */
    .hm-hero { display: block; min-height: 0; }
    .hm-hero-bg { position: relative; inset: auto; height: 300px; z-index: 0; object-position: 58% 62%; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
    .hm-hero-shade { display: none; }
    .hm-hero-body { margin-top: calc(-1 * var(--sp-24)); padding-block: 0 var(--sp-32); }
    .hm-credit { display: none; }
    .hm-live { top: 0; }
}

/* ── Bandeau LED : les logos des sponsors fictifs défilent comme sur un vrai bandeau ── */
.hm-ticker { overflow: hidden; background: var(--n-0); border-block: 1px solid var(--n-3); padding-block: var(--sp-12); }
.hm-ticker-track { display: flex; width: max-content; animation: hm-scroll 46s linear infinite; }
.hm-ticker-set { display: flex; flex: none; }
.hm-ticker-set img { height: 56px; width: auto; margin-right: var(--sp-12); border-radius: 2px; }
@keyframes hm-scroll { to { transform: translateX(-50%); } }
.hm-ticker:hover .hm-ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hm-ticker-track { animation: none; } }
.hm-proofsec { padding-block: clamp(32px, 5vw, 56px) 0; }
.hm-proofsec .hm-proof { margin-top: 0; }

/* ── Cadres d'image (sections suivantes) ── */
.hm-shot { margin: clamp(36px, 5vw, 64px) auto 0; border: 1px solid var(--n-4); border-radius: var(--r-lg); overflow: hidden; background: var(--n-1); box-shadow: 0 30px 80px var(--shade-4); }
.hm-shot img { width: 100%; height: auto; }
.hm-shot figcaption { padding: var(--sp-12) var(--sp-16); color: var(--text-faint); font-size: var(--fs-sm); border-top: 1px solid var(--n-3); }

/* ── Bandeau d'arguments ── */
.hm-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--n-3); border-radius: var(--r-lg); overflow: hidden; margin-top: var(--sp-32); background: var(--n-1); }
.hm-proof div { padding: var(--sp-20) var(--sp-24); border-right: 1px solid var(--n-3); }
.hm-proof div:last-child { border-right: 0; }
.hm-proof b { display: block; font-family: var(--font-display); font-size: var(--fs-xl); color: var(--text-strong); font-weight: var(--fw-semi); }
.hm-proof span { color: var(--text-dim); font-size: var(--fs-md); }
@media (max-width: 760px) { .hm-proof { grid-template-columns: 1fr; } .hm-proof div { border-right: 0; border-bottom: 1px solid var(--n-3); } .hm-proof div:last-child { border-bottom: 0; } }

/* ── Étapes ── */
.hm-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-16); margin: var(--sp-32) 0 0; padding: 0; }
.hm-steps li { counter-increment: step; background: var(--n-2); border: 1px solid var(--n-3); border-radius: var(--r-lg); padding: var(--sp-24); }
.hm-steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 34px; font-weight: var(--fw-bold); color: var(--primary); margin-bottom: var(--sp-12); line-height: 1; }
.hm-steps h3 { margin-bottom: var(--sp-8); }
.hm-steps p { margin: 0; color: var(--text-dim); font-size: var(--fs-md); }
@media (max-width: 980px) { .hm-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hm-steps { grid-template-columns: 1fr; } }

/* ── Blocs « texte + image » ── */
.hm-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hm-split.flip { grid-template-columns: 1.25fr 1fr; }
.hm-split.flip .hm-shot { order: -1; }
.hm-split .hm-shot { margin: 0; }
.hm-list { list-style: none; margin: var(--sp-20) 0 0; padding: 0; display: grid; gap: var(--sp-12); }
.hm-list li { position: relative; padding-left: var(--sp-28); color: var(--text-dim); font-size: var(--fs-lg); }
.hm-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 14px; height: 2px; background: var(--primary); box-shadow: 0 6px 0 var(--primary-fill); }
.hm-list b { color: var(--text-strong); font-weight: var(--fw-semi); }
@media (max-width: 900px) { .hm-split, .hm-split.flip { grid-template-columns: 1fr; } .hm-split.flip .hm-shot { order: 0; } }

/* ── Cartes d'atouts ── */
.hm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-16); margin-top: var(--sp-32); }
.hm-card { background: var(--n-2); border: 1px solid var(--n-3); border-radius: var(--r-lg); padding: var(--sp-24); }
.hm-card h3 { margin-bottom: var(--sp-8); }
.hm-card p { margin: 0; color: var(--text-dim); font-size: var(--fs-md); }
@media (max-width: 900px) { .hm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hm-grid { grid-template-columns: 1fr; } }

/* ── Questions ── */
.hm-faq { max-width: 820px; margin: var(--sp-32) auto 0; }
.hm-faq details { border-bottom: 1px solid var(--n-3); }
.hm-faq summary { cursor: pointer; list-style: none; padding: var(--sp-20) var(--sp-4); font-family: var(--font-display); font-size: var(--fs-xl); font-weight: var(--fw-semi); color: var(--text-strong); display: flex; justify-content: space-between; gap: var(--sp-16); align-items: center; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: '+'; color: var(--primary); font-size: 28px; line-height: 1; transition: transform var(--dur-base) var(--ease); }
.hm-faq details[open] summary::after { transform: rotate(45deg); }
.hm-faq p { margin: 0 0 var(--sp-20); padding-inline: var(--sp-4); color: var(--text-dim); max-width: 70ch; }

/* ── Appel final et pied de page ── */
.hm-final { text-align: center; }
.hm-final .hm-cta { justify-content: center; }
.hm-foot { border-top: 1px solid var(--n-3); padding-block: var(--sp-32); color: var(--text-faint); font-size: var(--fs-sm); }
.hm-foot .hm-wrap { display: flex; flex-wrap: wrap; gap: var(--sp-16) var(--sp-32); align-items: center; justify-content: space-between; }
.hm-foot nav { display: flex; flex-wrap: wrap; gap: var(--sp-8) var(--sp-24); }
.hm-foot a { color: var(--text-dim); text-decoration: none; }
.hm-foot a:hover { color: var(--text-strong); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hm-faq summary::after { transition: none; } }
