/* Rendez-vous atelier en ligne - theme par variables (definies par la page qui l'inclut) */
#rdv-atelier {
  --at-surface: #121418; --at-surface-2: #1a1d23; --at-line: #262a32; --at-text: #eef0f4; --at-muted: #8c93a1;
  --at-acc: #2f6bff; --at-acc-text: #fff; --at-ok: #2fbf71; --at-err: #ff6b6b; --at-warn: #f0b429;
  --at-display: inherit; --at-radius: 4px;
  color: var(--at-text); font-size: 16px; line-height: 1.5;
}
#rdv-atelier * { box-sizing: border-box; }
#rdv-atelier h3 { font-family: var(--at-display); font-size: 28px; line-height: 1.1; margin: 0 0 14px; font-weight: 700; }
#rdv-atelier a { color: inherit; }
.at-mut { color: var(--at-muted); }
.small { font-size: 13px; }
.at-card { background: var(--at-surface); border: 1px solid var(--at-line); border-radius: var(--at-radius); padding: 32px; }
@media (max-width: 640px) { .at-card { padding: 20px 16px; } }
.at-loading { display: flex; align-items: center; gap: 14px; color: var(--at-muted); }
.at-loading.small { font-size: 14px; padding: 10px 0; }
.at-spin { width: 20px; height: 20px; border: 2px solid var(--at-line); border-top-color: var(--at-acc); border-radius: 50%; animation: atspin 1s linear infinite; flex: none; }
@keyframes atspin { to { transform: rotate(360deg); } }

.at-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .at-grid { grid-template-columns: minmax(0, 1fr); } }
.at-aside { background: var(--at-surface-2); border: 1px solid var(--at-line); border-radius: var(--at-radius); padding: 24px; position: sticky; top: 100px; }
@media (max-width: 980px) { .at-aside { position: static; } }
.at-k2 { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--at-acc); font-weight: 700; margin-bottom: 14px; }
.at-aside dl, .at-dl { display: grid; grid-template-columns: 82px 1fr; gap: 10px 12px; margin: 0; font-size: 15px; }
.at-aside dt, .at-dl dt { color: var(--at-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.at-aside dd, .at-dl dd { margin: 0; font-weight: 600; }
.at-aside dd .at-mut { font-weight: 400; }
.at-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--at-line); font-size: 14px; color: var(--at-muted); }
.at-note b { color: var(--at-text); }

.at-form section { padding: 0 0 26px; margin: 0 0 26px; border-bottom: 1px solid var(--at-line); }
.at-form section:last-child { border: 0; margin: 0; padding: 0; }
.at-k { display: flex; align-items: center; gap: 12px; font-family: var(--at-display); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 16px; }
.at-k b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--at-acc); color: var(--at-acc-text); font-size: 14px; letter-spacing: 0; flex: none; }
.at-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .at-row { grid-template-columns: 1fr; gap: 0; } }
.at-f { display: block; margin: 12px 0 0; }
.at-f[hidden] { display: none; }
.at-f > span, .at-lbl { display: block; font-size: 13px; color: var(--at-muted); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .08em; }
.at-lbl { margin-top: 18px; }
#rdv-atelier i { color: var(--at-acc); font-style: normal; }
#rdv-atelier input:not([type=checkbox]), #rdv-atelier select, #rdv-atelier textarea {
  width: 100%; background: var(--at-surface-2); border: 1px solid var(--at-line); color: var(--at-text); font: inherit; font-size: 16px;
  padding: 12px 14px; border-radius: var(--at-radius); outline: none; }
#rdv-atelier input:focus, #rdv-atelier select:focus, #rdv-atelier textarea:focus { border-color: var(--at-acc); }
#rdv-atelier select option, #rdv-atelier select optgroup { background: var(--at-surface-2); color: var(--at-text); }
#rdv-atelier .at-miss, #rdv-atelier .at-miss input { border-color: var(--at-err) !important; }
.at-chips.at-miss { outline: 1px solid var(--at-err); outline-offset: 4px; }
.at-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.at-hint { font-size: 13.5px; color: var(--at-muted); margin: 8px 0 0; }
.at-tip { font-size: 14px; margin: 10px 0 0; padding: 10px 14px; border-left: 3px solid var(--at-acc); background: var(--at-surface-2); }
.at-warn { color: var(--at-warn); margin: 0 0 10px; }
.at-err { color: var(--at-err); margin: 14px 0 0; font-weight: 600; }

.at-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.at-chips button { background: var(--at-surface-2); border: 1px solid var(--at-line); color: var(--at-text); font: inherit; font-size: 15px; padding: 10px 16px; border-radius: var(--at-radius); cursor: pointer; transition: border-color .15s, background .15s; }
.at-chips button:hover { border-color: var(--at-muted); }
.at-chips button.on { background: var(--at-acc); border-color: var(--at-acc); color: var(--at-acc-text); }
.at-chips button em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-left: 6px; opacity: .8; }

.at-ck { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 0; font-size: 15px; cursor: pointer; }
.at-ck input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--at-acc); flex: none; }
.at-ck small { color: var(--at-muted); }
.at-ck.at-miss span { color: var(--at-err); }

.at-calh { display: flex; align-items: center; justify-content: space-between; max-width: 420px; margin: 0 0 8px; }
.at-calh b { text-transform: capitalize; font-family: var(--at-display); font-size: 18px; }
.at-nav { background: none; border: 1px solid var(--at-line); color: var(--at-text); width: 36px; height: 36px; border-radius: var(--at-radius); font-size: 20px; cursor: pointer; }
.at-nav:disabled { opacity: .3; cursor: default; }
.at-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 420px; }
.at-cal .d { text-align: center; font-size: 11px; text-transform: uppercase; color: var(--at-muted); letter-spacing: .08em; padding: 4px 0; }
.at-cal button { aspect-ratio: 1; border: 1px solid transparent; background: none; color: var(--at-muted); font: inherit; font-size: 15px; border-radius: var(--at-radius); opacity: .35; text-decoration: line-through; }
.at-cal button.ok { opacity: 1; color: var(--at-text); background: var(--at-surface-2); border-color: var(--at-line); cursor: pointer; text-decoration: none; font-weight: 600; }
.at-cal button.ok:hover { border-color: var(--at-acc); }
.at-cal button.on { background: var(--at-acc); border-color: var(--at-acc); color: var(--at-acc-text); }

.at-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--at-acc); color: var(--at-acc-text) !important; border: 1px solid var(--at-acc); font: inherit; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; padding: 15px 26px; border-radius: var(--at-radius); cursor: pointer; text-decoration: none; }
.at-btn:disabled { opacity: .6; cursor: wait; }
.at-btn.ghost { background: none; color: var(--at-text) !important; border-color: var(--at-line); }
.at-btn.ghost:hover { border-color: var(--at-text); }
#at-go { width: 100%; margin-top: 22px; }
.at-contact { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.at-contact .at-btn { padding: 11px 18px; font-size: 13px; }
.at-link { background: none; border: 0; color: var(--at-muted); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }

.at-mes { margin: 0 0 14px; padding: 14px 18px; background: var(--at-surface-2); border: 1px solid var(--at-line); border-radius: var(--at-radius); font-size: 15px; }
.at-mes a { margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.at-merci { text-align: center; max-width: 680px; margin: 0 auto; }
.at-merci .at-contact { justify-content: center; }
.at-merci p { margin: 0 0 12px; }
.at-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--at-ok); color: #fff; display: grid; place-items: center; font-size: 32px; margin: 0 auto 18px; }

.at-suivi { max-width: 760px; }
.at-stat { font-size: 20px; font-weight: 700; margin: 0 0 22px; color: var(--at-acc); }
.at-stat.ok { color: var(--at-ok); }
.at-stat.off { color: var(--at-err); }
.at-tl { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 26px; padding: 0; }
.at-tl li { position: relative; text-align: center; font-size: 13px; color: var(--at-muted); padding-top: 30px; }
.at-tl li b { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--at-line); background: var(--at-surface); z-index: 1; }
.at-tl li::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--at-line); }
.at-tl li:first-child::before { display: none; }
.at-tl li.done, .at-tl li.on { color: var(--at-text); }
.at-tl li.done b { background: var(--at-acc); border-color: var(--at-acc); }
.at-tl li.done::before, .at-tl li.on::before { background: var(--at-acc); }
.at-tl li.on b { border-color: var(--at-acc); box-shadow: 0 0 0 4px rgba(127, 127, 127, .18); }
.at-tl li.on span { font-weight: 700; }
@media (max-width: 560px) { .at-tl { grid-template-columns: 1fr; gap: 12px; } .at-tl li { text-align: left; padding: 0 0 0 32px; } .at-tl li b { left: 0; transform: none; } .at-tl li::before { display: none; } }
