/* Atelier premiers secours canins — page « bande-annonce » + inscription (charte Jordan Mathieu : crème, caramel, rouge urgence) */
:root {
  --bg: #F7F3EA; --card: #FFFFFF; --soft: #FFF8EF; --ink: #1F1F1F; --mute: #6F6A63; --line: #E6DDD0;
  --car: #D8904A; --car-d: #A9672E; --olive: #7B8060; --red: #D64535; --red-d: #A8291C;
  --r: 20px; --serif: 'Playfair Display', Georgia, serif; --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--car-d); }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font: 700 clamp(28px, 4.2vw, 44px)/1.12 var(--serif); letter-spacing: -.01em; max-width: 22ch; }
h3 { font: 700 19px/1.3 var(--sans); }
.at-skip { position: absolute; left: -999px; }
.at-skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }

.at-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-left)); background: rgba(247, 243, 234, .85); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.at-top.scrolled { border-bottom-color: var(--line); }
.at-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.at-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.at-brand b { display: block; font: 700 16px/1.1 var(--serif); }
.at-brand small { color: var(--mute); font-size: 12px; }

.at-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; font: 700 16px var(--sans); text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(214, 69, 53, .7); transition: transform .15s, background .2s; }
.at-btn:hover { background: var(--red-d); transform: translateY(-1px); }
.at-btn:disabled { opacity: .6; cursor: wait; }
.at-btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.at-btn-wide { width: 100%; }
.at-btn-pay { background: #111; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.at-btn-pay:hover { background: #000; }
.at-link { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--car); }
.at-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.at-chip:hover { border-color: var(--car); }

/* Héro */
.at-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; max-width: 1180px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) 20px clamp(40px, 6vw, 80px); }
.at-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 14px; border-radius: 999px; background: rgba(214, 69, 53, .1); color: var(--red-d); font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.at-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(214, 69, 53, .55); } 70% { box-shadow: 0 0 0 12px rgba(214, 69, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 69, 53, 0); } }
.at-hero h1 { font: 700 clamp(44px, 7.4vw, 86px)/.98 var(--serif); letter-spacing: -.02em; }
.at-hero h1 em { display: block; color: var(--car); font-style: italic; font-weight: 500; }
.at-lead { font-size: clamp(17px, 1.6vw, 20px); color: #3b3833; max-width: 34em; margin: 22px 0 24px; }
.at-lead b { color: var(--ink); }
.at-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 26px; }
.at-facts li { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; }
.at-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; }
.at-seats { margin-top: 24px; max-width: 420px; }
.at-seats-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.at-seats-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--car), var(--red)); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.at-seats p { margin: 8px 0 0; font-size: 14px; color: var(--mute); }
.at-seats p b { color: var(--red-d); }
.at-hero-photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: #ddd; box-shadow: 0 30px 60px -30px rgba(60, 40, 20, .45); }
.at-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 50%; transform: scale(1.06); animation: zoom 14s ease-out forwards; }
@keyframes zoom { to { transform: scale(1); } }
.at-hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(20, 10, 5, .72)); }
.at-hero-photo figcaption { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 58px; color: #fff; font: 500 clamp(24px, 3vw, 34px)/1.1 var(--serif); }
.at-hero-photo figcaption em { color: #FFC08A; }
.at-ecg { position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px; width: 100%; height: 40px; }
.at-ecg path { fill: none; stroke: #ff6a5a; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: ecg 3.2s linear infinite; filter: drop-shadow(0 0 4px rgba(255, 90, 70, .8)); }
@keyframes ecg { 0% { stroke-dashoffset: 900; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -120; opacity: 0; } }

/* Sections */
.at-sec { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) 20px; }
.at-kicker { margin: 0 0 12px; color: var(--car-d); font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.at-sub { color: var(--mute); margin: 12px 0 0; max-width: 44em; }
.at-small { font-size: 14px; color: var(--mute); }
.at-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.at-reveal.in { opacity: 1; transform: none; }

.at-scen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.at-scen article { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: transform .25s, border-color .25s; }
.at-scen article:hover { transform: translateY(-4px); border-color: var(--car); }
.at-scen span { font-size: 34px; }
.at-scen h3 { margin: 12px 0 6px; }
.at-scen p { margin: 0; color: var(--mute); font-size: 15px; }

.at-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.at-steps > li { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.at-steps > li > b { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--car); color: #fff; font: 700 20px var(--serif); }
.at-step-lead { margin: 4px 0 10px; color: var(--car-d); font-weight: 600; font-size: 15px; }
.at-steps ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.at-steps ul li { position: relative; padding-left: 18px; color: #4a463f; font-size: 15px; line-height: 1.45; }
.at-steps ul li::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.at-steps ul b { color: var(--ink); }
.at-prog-end { margin: 20px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--soft); border: 1px dashed var(--car); color: #3b3833; }

.at-gestes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.at-gestes div { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.at-gestes span { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--soft); font-size: 26px; }
.at-gestes p { margin: 0; color: var(--mute); font-size: 14px; }
.at-more { margin: 18px 0 0; font: 500 italic 19px/1.4 var(--serif); color: var(--car-d); }

.at-people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.at-people article { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px; }
.at-people img { width: 180px; height: 210px; object-fit: cover; border-radius: 16px; }
.at-people p { margin: 8px 0 0; color: var(--mute); font-size: 15px; }
.at-people .at-role { margin-top: 2px; color: var(--car-d); font-weight: 600; }

.at-infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.at-info { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.at-info > span { font-size: 26px; }
.at-info h3 { margin: 8px 0 6px; }
.at-info p { margin: 0 0 8px; color: #3b3833; font-size: 15px; }
.at-maps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }

.at-faq { margin-top: 28px; display: grid; gap: 10px; max-width: 820px; }
.at-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.at-faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.at-faq summary::-webkit-details-marker { display: none; }
.at-faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--car); transition: transform .2s; }
.at-faq details[open] summary::after { transform: rotate(45deg); }
.at-faq details p { margin: 0 0 18px; color: var(--mute); }

/* Formulaire */
.at-form-sec { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.at-form-head { position: sticky; top: 100px; }
.at-paybadges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.at-paybadges span { padding: 6px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.at-form, .at-done { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 4vw, 36px); box-shadow: 0 30px 60px -40px rgba(60, 40, 20, .35); }
.at-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.at-form input:not([type=radio]):not([type=checkbox]), .at-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--soft); font: 400 16px var(--sans); color: var(--ink); transition: border-color .2s, background .2s; }
.at-form input:focus, .at-form textarea:focus { outline: none; border-color: var(--car); background: #fff; }
.at-form .bad { border-color: var(--red) !important; }
.at-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.at-hint { margin: -6px 0 14px; font-size: 13px; color: var(--mute); }
.at-step { display: flex; align-items: center; margin-top: 6px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--soft); overflow: hidden; }
.at-step button { flex: none; width: 48px; height: 48px; border: 0; background: transparent; font-size: 22px; color: var(--car-d); cursor: pointer; }
.at-step input { margin: 0 !important; border: 0 !important; background: transparent !important; text-align: center; font-weight: 700 !important; -moz-appearance: textfield; }
.at-step input::-webkit-inner-spin-button, .at-step input::-webkit-outer-spin-button { -webkit-appearance: none; }
.at-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--mute); }
.at-check input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--car-d); }
.at-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.at-err { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(214, 69, 53, .08); color: var(--red-d); font-weight: 600; font-size: 15px; }
.at-total { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--soft); border: 1px dashed var(--car); }
.at-total b { font: 700 26px var(--serif); }
.at-secure { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--mute); }
.at-done { text-align: center; }
.at-done-ico { display: grid; place-items: center; width: 76px; height: 76px; margin: 4px auto 14px; border-radius: 50%; background: var(--olive); color: #fff; font-size: 34px; font-weight: 700; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.at-done-ico.wait { background: var(--car); font-size: 22px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.at-done h3 { font: 700 30px var(--serif); }
.at-done > p { color: var(--mute); }
.at-pay { margin: 18px 0; padding: 20px; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); }
.at-pay-amount { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 14px; }
.at-pay-amount b { font: 700 34px var(--serif); }

.at-urg { text-align: center; }
.at-urg h2 { margin: 0 auto; font-size: clamp(24px, 3vw, 32px); }
.at-urg a { font-weight: 700; color: var(--red-d); }
.at-foot { padding: 30px 20px 110px; text-align: center; color: var(--mute); font-size: 14px; border-top: 1px solid var(--line); }
.at-foot a { color: var(--mute); }
.at-sticky { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(31, 31, 31, .92); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 600; font-size: 14px; transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); max-width: 520px; margin: 0 auto; }
.at-sticky.on { transform: none; }

@media (max-width: 960px) {
  .at-hero, .at-form-sec { grid-template-columns: 1fr; }
  .at-hero-photo { order: -1; aspect-ratio: 16 / 11; }
  .at-scen { grid-template-columns: 1fr 1fr; }
  .at-steps, .at-gestes, .at-infos, .at-people { grid-template-columns: 1fr; }
  .at-form-head { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .at-brand small { display: none; }
  .at-hero { padding-top: 16px; }
  .at-hero-photo { border-radius: 22px; }
  .at-scen { grid-template-columns: 1fr; }
  .at-people article { grid-template-columns: 110px 1fr; gap: 14px; padding: 14px; }
  .at-people img { width: 110px; height: 140px; }
  .at-row { grid-template-columns: 1fr; }
  .at-facts li { font-size: 14px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .at-reveal { opacity: 1; transform: none; }
  .at-ecg path { stroke-dashoffset: 0; }
}

/* Urgence (vrais chiffres) : dernières places, complet, preuve sociale, date limite */
.at-proof { margin: 14px 0 0; display: inline-flex; padding: 8px 14px; border-radius: 999px; background: rgba(123, 128, 96, .12); color: #4f5340; font-weight: 600; font-size: 14px; }
.at-deadline { margin: 10px 0 0; font-weight: 700; color: var(--red-d); font-size: 15px; }
.at-hot .at-badge { background: var(--red); color: #fff; animation: hotbadge 2.4s ease-in-out infinite; }
.at-hot .at-pulse { background: #fff; }
@keyframes hotbadge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.at-hot .at-seats-bar { height: 10px; }
.at-hot .at-seats-bar i { background: linear-gradient(90deg, #ff8a3d, var(--red), #ff8a3d); background-size: 200% 100%; animation: flow 2s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }
.at-hot .at-seats p b { font-size: 16px; }
.at-hot .at-sticky { background: var(--red-d); }
.at-hot .at-cta-row .at-btn, .at-hot #at-submit { animation: nudge 5s ease-in-out infinite; }
@keyframes nudge { 0%, 88%, 100% { transform: none; } 90% { transform: translateX(-3px) rotate(-1deg); } 92% { transform: translateX(3px) rotate(1deg); } 94% { transform: translateX(-2px); } 96% { transform: translateX(2px); } }
.at-full .at-badge { background: #1F1F1F; color: #fff; }
.at-full .at-seats-bar i { background: #1F1F1F; }
/* Gabarit générique */
.at-desc p { margin: 0 0 14px; color: #3b3833; max-width: 46em; white-space: pre-line; }
@media (prefers-reduced-motion: reduce) { .at-hot .at-badge, .at-hot .at-btn, .at-hot .at-seats-bar i { animation: none !important; } }

/* Billet */
.tk-body .at-top { justify-content: center; }
.tk-wrap { max-width: 520px; margin: 0 auto; padding: 8px 16px 40px; }
.tk-load { text-align: center; color: var(--mute); padding: 40px 0; }
.tk { background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(60, 40, 20, .45); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.tk-top { padding: 26px 24px 22px; background: linear-gradient(135deg, var(--red), var(--car-d)); color: #fff; }
.tk-kicker { margin: 0 0 6px; font-weight: 700; font-size: 13px; letter-spacing: .1em; opacity: .9; }
.tk-top h1 { font: 700 30px/1.1 var(--serif); margin: 0; }
.tk-status { display: inline-block; margin: 14px 0 0; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.18); font-weight: 700; font-size: 14px; }
.tk-status.ok { background: #fff; color: #1d6b34; }
.tk-cut { position: relative; height: 0; border-top: 3px dashed var(--line); margin: 0 26px; }
.tk-cut::before, .tk-cut::after { content: ''; position: absolute; top: -17px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); }
.tk-cut::before { left: -42px; } .tk-cut::after { right: -42px; }
.tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 0; padding: 22px 24px 8px; }
.tk-grid div:nth-child(n+3) { grid-column: 1 / -1; }
.tk-grid dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--car-d); }
.tk-grid dd { margin: 2px 0 0; font-weight: 600; }
.tk-ref { margin: 14px 24px 0; padding: 14px; border: 2px dashed var(--car); border-radius: 16px; background: var(--soft); text-align: center; }
.tk-ref span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--mute); }
.tk-ref b { font: 700 40px ui-monospace, Menlo, monospace; letter-spacing: .12em; }
.tk-show { margin: 14px 24px 22px; text-align: center; font-weight: 700; color: var(--red-d); }
.tk-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.tk-bring { margin: 16px 0 0; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; }
.tk-note { text-align: center; margin-top: 14px; }
.at-ticket-link { margin: 14px 0 0; }
.at-early { margin: 10px 0 0; display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 14px; background: #fff4e6; border: 1px dashed var(--car); font-weight: 600; font-size: 14px; color: var(--car-d); }
.at-early s { color: var(--mute); font-weight: 500; }

/* Un élément caché reste caché, même avec un display défini plus haut */
[hidden] { display: none !important; }
/* Avantage participants (Enjoya) */
.at-perk { margin: 14px 0 0; display: flex; gap: 10px; align-items: flex-start; max-width: 34em; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px -14px rgba(60,40,20,.35); font-size: 15px; font-weight: 600; }
.at-perk span:first-child { font-size: 22px; line-height: 1; }
.at-info-perk { background: #fff8ef; border-color: #f1d3b0; }
.tk-perk { margin: -8px 24px 22px; padding: 10px 12px; border-radius: 12px; background: #fff8ef; border: 1px dashed var(--car); font-size: 14px; font-weight: 600; text-align: center; }
/* Billet verrouillé (paiement en attente) */
.tk-lock { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 26px 24px; text-align: center; box-shadow: 0 30px 60px -36px rgba(60, 40, 20, .45); }
.tk-lock h1 { font: 700 26px/1.15 var(--serif); margin: 0 0 6px; }
.tk-lock-ico { font-size: 44px; margin: 8px 0; }
.tk-lock-ref b { font-family: ui-monospace, Menlo, monospace; letter-spacing: .1em; }
.tk-lock .at-btn { margin: 10px 0; }
.at-paid-step { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); text-align: center; }
.at-paid-step p:first-child { margin: 0 0 8px; font-weight: 700; }
.at-paid-already { display: inline-block; margin-top: 10px; }
