/* ═══════════════════════════════════════
   ATELIERS — hub /ateliers/
   Charge main.css. Angles nets, corner-plus, glow-card, filets rgba(124,152,179,0.1).
   Expérience : 10 ateliers sur 2 colonnes + ticket de caisse sticky qui se remplit
   au scroll puis se résout en offre fondateur.
   ═══════════════════════════════════════ */

/* ── HERO ── */
.at-hero { position: relative; padding: 7rem 0 3.2rem; text-align: center; overflow: hidden; }
.at-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 52% 42% at 50% 10%, rgba(249, 220, 92, 0.08), transparent 66%),
        radial-gradient(ellipse 72% 56% at 50% 42%, rgba(27, 73, 101, 0.32), transparent 72%);
}
.at-hero .container { position: relative; z-index: 1; }
.at-hero-kicker {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--golden); background: var(--golden-dim); border: 1px solid rgba(249, 220, 92, 0.25);
    padding: 0.4rem 0.95rem; border-radius: 100px; margin-bottom: 1.7rem;
}
.at-hero-kicker svg { width: 15px; height: 15px; }
.at-hero .section-title { max-width: 900px; margin: 0 auto; }
.at-hero-sub { max-width: 600px; margin: 1.3rem auto 0; color: var(--light-blue); font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.6; }
.at-hero-stats { display: inline-flex; flex-wrap: wrap; justify-content: center; margin-top: 2.3rem; }
.at-hero-stat { padding: 0.1rem 1.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.at-hero-stat + .at-hero-stat { border-left: 1px solid rgba(124, 152, 179, 0.18); }
.ahs-num { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--golden); font-weight: 400; }
.ahs-lab { font-size: 0.74rem; color: var(--soft-blue); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── EXPÉRIENCE (section élargie) ── */
/* overflow visible : le section{overflow:clip} global casse position:sticky */
.at-experience { padding: 0 0 var(--space-2xl); overflow: visible; }
.at-exp-inner { max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }
.at-exp-head { max-width: 720px; margin-bottom: var(--space-lg); }
.at-exp-sub { color: var(--soft-blue); font-size: 0.96rem; line-height: 1.6; margin-top: 0.6rem; }
/* align-items stretch : la colonne du ticket prend toute la hauteur, sinon le sticky n'a pas de course */
.at-exp-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: stretch; }
.at-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }

/* ── CARTE ATELIER ── */
.atelier-card { position: relative; background: var(--midnight); border: 1px solid rgba(124, 152, 179, 0.1); overflow: visible; display: flex; flex-direction: column; transition: border-color 0.3s, transform 0.3s; }
.atelier-card:hover { border-color: rgba(249, 220, 92, 0.3); transform: translateY(-3px); }
.atelier-illu { aspect-ratio: 16 / 9; overflow: hidden; background: #0A1622; border-bottom: 1px solid rgba(124, 152, 179, 0.1); }
.atelier-illu img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atelier-body { padding: 1.2rem 1.3rem 1.5rem; }
.atelier-body h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.atelier-body p { font-size: 0.88rem; color: var(--light-blue); line-height: 1.5; }
.atelier-badge { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 3; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--midnight); background: var(--golden); padding: 0.3rem 0.7rem; border-radius: 100px; }
.atelier-badge-meta { background: var(--light-blue); }
/* Affordance "prévenez-moi" (carte cliquable -> popup liste d'attente) */
.atelier-notify { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem; font-size: 0.8rem; font-weight: 700; color: var(--golden); opacity: 0.85; transition: opacity 0.3s; }
.atelier-notify svg { width: 15px; height: 15px; transition: transform 0.3s; }
.atelier-card:hover .atelier-notify { opacity: 1; }
.atelier-card:hover .atelier-notify svg { transform: translateX(3px); }
.atelier-card:focus-visible { outline: 2px solid var(--golden); outline-offset: 3px; }

/* ── ZONE DE BASCULE (déclenche la résolution du ticket) ── */
.at-reveal-zone { min-height: 55vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-xl) 0; }
.at-reveal-cue { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--off-white); line-height: 1.35; letter-spacing: -0.01em; }
.at-reveal-cue em { font-family: var(--font-display); font-style: normal; color: var(--golden); font-weight: 400; font-size: 1.5em; }

/* ── TICKET DE CAISSE (sticky) ── */
.at-receipt { position: sticky; top: 100px; background: var(--midnight-light); border: 1px solid rgba(124, 152, 179, 0.15); padding: 1.5rem 1.5rem 1.7rem; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }
.at-receipt-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft-blue); text-align: center; padding-bottom: 0.9rem; border-bottom: 1px dashed rgba(124, 152, 179, 0.25); margin-bottom: 0.3rem; }
.at-receipt-lines { list-style: none; display: flex; flex-direction: column; }
.at-receipt-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; font-size: 0.85rem; padding: 0.42rem 0; border-bottom: 1px dotted rgba(124, 152, 179, 0.15); opacity: 0; transform: translateY(-4px); transition: opacity 0.35s ease, transform 0.35s ease; }
.at-receipt-lines li.in { opacity: 1; transform: none; }
.rl-name { color: var(--light-blue); }
.rl-price { color: var(--soft-blue); font-variant-numeric: tabular-nums; flex: none; }
.at-receipt-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 2px solid rgba(124, 152, 179, 0.3); }
.at-receipt-total-lab { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--soft-blue); }
.at-receipt-amount { font-size: 1.8rem; font-weight: 800; color: var(--off-white); font-variant-numeric: tabular-nums; transition: font-size 0.4s ease, opacity 0.4s ease; }
.at-receipt.resolved .at-receipt-amount { text-decoration: line-through; text-decoration-color: var(--golden); opacity: 0.4; font-size: 1.25rem; }

/* ── OFFRE FONDATEUR (révélée à la résolution) ── */
/* offre : max-height + opacity en transition -> se révèle en descendant, se replie en remontant */
.at-receipt-offer { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; padding-top: 0; border-top: 1px dashed rgba(249, 220, 92, 0); transition: max-height 0.6s ease, opacity 0.45s ease, margin-top 0.6s ease, padding-top 0.6s ease, border-top-color 0.45s ease; }
.at-receipt.resolved .at-receipt-offer { max-height: 560px; opacity: 1; margin-top: 1.2rem; padding-top: 1.2rem; border-top-color: rgba(249, 220, 92, 0.3); }

/* ── Cercle tracé à la main autour de l'offre (dessiné quand le ticket se fige) ── */
.at-receipt-highlight { position: relative; }
.at-receipt-circle { position: absolute; inset: -18px -50px -24px -50px; pointer-events: none; overflow: visible; opacity: 0; z-index: 4; }
/* tracé piloté en JS via stroke-dashoffset : transition -> réversible (se dé-dessine au scroll vers le haut) */
.at-receipt-circle path { fill: none; stroke: var(--golden); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset 1.3s ease-out; }
.at-receipt.resolved .at-receipt-circle { opacity: 1; }
.at-receipt-kicker { display: inline-block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--golden); background: var(--golden-dim); border: 1px solid rgba(249, 220, 92, 0.25); padding: 0.3rem 0.7rem; border-radius: 100px; }
.at-receipt-price { font-size: 2.6rem; font-weight: 800; color: var(--golden); line-height: 1; margin-top: 0.7rem; letter-spacing: -0.02em; }
.at-receipt-price small { font-size: 0.9rem; font-weight: 600; color: var(--soft-blue); }
.at-receipt-deadline { font-size: 0.82rem; color: var(--light-blue); margin-top: 0.4rem; }

/* ── COMPTEUR (gros) ── */
.at-countdown { display: flex; gap: 0.45rem; margin: 1.1rem 0; }
.at-cd-unit { flex: 1; display: flex; flex-direction: column; align-items: center; background: rgba(13, 27, 42, 0.55); border: 1px solid rgba(124, 152, 179, 0.15); padding: 0.55rem 0.25rem; }
.at-cd-num { font-size: 1.55rem; font-weight: 800; color: var(--golden); font-variant-numeric: tabular-nums; line-height: 1; }
.at-cd-lab { font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--soft-blue); margin-top: 0.25rem; }

/* ── FORMULAIRE DE RÉSERVATION ── */
.at-input { width: 100%; background: rgba(13, 27, 42, 0.55); border: 1px solid rgba(124, 152, 179, 0.22); border-radius: 0; padding: 0.85rem 1rem; color: var(--off-white); font-family: inherit; font-size: 0.95rem; margin-bottom: 0.7rem; transition: border-color 0.3s, box-shadow 0.3s; }
.at-input::placeholder { color: var(--soft-blue); }
.at-input:focus { outline: none; border-color: var(--golden); box-shadow: 0 0 0 3px var(--golden-dim); }
.at-consent { display: none; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.9rem; flex-wrap: wrap; }
.at-consent.show { display: flex; }
.at-consent input[type="checkbox"] { margin-top: 0.15rem; accent-color: var(--golden); width: 15px; height: 15px; flex: none; }
.at-consent label { font-size: 0.72rem; color: var(--soft-blue); line-height: 1.45; flex: 1; min-width: 0; }
.at-consent a { color: var(--light-blue); text-decoration: underline; }
.at-consent-msg { display: none; width: 100%; font-size: 0.72rem; color: var(--golden); }
.at-consent.error .at-consent-msg { display: block; }
.at-consent.error label { color: var(--golden); }
.at-consent.error input[type="checkbox"] { outline: 2px solid var(--golden); outline-offset: 2px; }
.at-founder-thanks { display: none; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; padding: 0.6rem 0; }
.at-founder-thanks.show { display: flex; }
.at-founder-thanks svg { width: 36px; height: 36px; stroke: var(--golden); }
.at-founder-thanks p { color: var(--light-blue); font-size: 0.85rem; line-height: 1.5; }

/* ── Intro du CTA final (H2 au-dessus du bloc kit) ── */
.at-final-intro { text-align: center; padding: var(--space-2xl) 0 0; }
.at-final-intro .section-title { margin: 0 auto; }
.at-final-intro + .final-cta { padding-top: var(--space-lg); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .at-exp-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .at-receipt { position: static; box-shadow: none; }
    .at-receipt-circle { display: none; }
    .at-reveal-zone { display: none; }
    .at-hero { padding: 5.5rem 0 2rem; }
}
@media (max-width: 560px) {
    .at-cards { grid-template-columns: 1fr; }
    .at-hero-stat { padding: 0.1rem 1.05rem; }
    .ahs-num { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
    .at-receipt-lines li { transition: none; }
    .at-receipt-offer { transition: none; }
    .at-receipt-circle path { transition: none; }
    .atelier-card:hover { transform: none; }
}
