/* =============================================================================
   N2M SÉCURITÉ — Calendrier RDV (P18)
   Type · Calendrier mensuel · Créneaux · Formulaire. Inspiré du calendrier DPM.
   ============================================================================= */

.n2m-rdv { max-width: 960px; margin: 0 auto; }
.n2m-rdv-step { margin-bottom: 34px; }
.n2m-rdv-h2 { display: flex; align-items: center; gap: 12px; font-family: 'Barlow Condensed', sans-serif; font-size: 22px; color:var(--n2m-white); margin: 0 0 18px; font-weight: 700; }
.n2m-rdv-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #F5C200; color: #050508; font-size: 15px; flex-shrink: 0; }

/* ── Format ── */
.n2m-rdv-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.n2m-rdv-type { cursor: pointer; }
.n2m-rdv-type input { position: absolute; opacity: 0; pointer-events: none; }
.n2m-rdv-type__in { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; border: 1.5px solid var(--n2m-hairline); border-radius: 12px; background: var(--n2m-surface); transition: .2s; text-align: center; }
.n2m-rdv-type:hover .n2m-rdv-type__in { border-color: rgba(245,194,0,.5); }
.n2m-rdv-type__ic { font-size: 26px; }
.n2m-rdv-type__lb { font-size: 13px; font-weight: 600; color:var(--n2m-white); line-height: 1.3; }
.n2m-rdv-type input:checked + .n2m-rdv-type__in { border-color: #F5C200; background: rgba(245,194,0,.1); box-shadow: 0 0 0 1px #F5C200 inset; }

/* ── Date + créneaux ── */
.n2m-rdv-pick { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }

.n2m-rdv-cal { background: var(--n2m-surface); border: 1px solid var(--n2m-hairline); border-radius: 14px; padding: 16px; }
.n2m-rdv-cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.n2m-rdv-cal__title { font-weight: 700; color:var(--n2m-white); font-size: 16px; text-transform: capitalize; }
.n2m-rdv-cal__arrow { width: 34px; height: 34px; border-radius: 8px; background: var(--n2m-surface); border: 1px solid var(--n2m-hairline); color:var(--n2m-white); font-size: 20px; cursor: pointer; line-height: 1; }
.n2m-rdv-cal__arrow:hover:not([disabled]) { background: rgba(245,194,0,.15); border-color: #F5C200; }
.n2m-rdv-cal__arrow[disabled] { opacity: .3; cursor: not-allowed; }
.n2m-rdv-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.n2m-rdv-cal__dow { text-align: center; font-size: 11px; color:var(--text-muted); padding: 6px 0; font-weight: 600; }
.n2m-rdv-cal__blank { aspect-ratio: 1; }
.n2m-rdv-cal__day { aspect-ratio: 1; border: none; border-radius: 8px; background: var(--n2m-surface); color:var(--n2m-white); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .15s; }
.n2m-rdv-cal__day:hover { background: rgba(245,194,0,.2); }
.n2m-rdv-cal__day.is-off { background: transparent; color: #3f4756; cursor: default; }
.n2m-rdv-cal__day.is-sel { background: #F5C200; color: #050508; }

.n2m-rdv-slots-head { font-size: 14px; color:var(--text-secondary); margin: 0 0 14px; font-weight: 600; }
.n2m-rdv-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 9px; }
.n2m-rdv-slot { padding: 11px 6px; border-radius: 9px; background: var(--n2m-surface); border: 1px solid var(--n2m-hairline); color:var(--n2m-white); font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s; }
.n2m-rdv-slot:hover { border-color: #F5C200; background: rgba(245,194,0,.12); }
.n2m-rdv-slot.is-sel { background: #F5C200; border-color: #F5C200; color: #050508; }
.n2m-rdv-slot.is-taken { opacity: .3; text-decoration: line-through; cursor: not-allowed; }

/* ── Recap + formulaire ── */
.n2m-rdv-recap { display: flex; align-items: center; gap: 14px; background: rgba(245,194,0,.08); border: 1px solid rgba(245,194,0,.3); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; color:var(--n2m-white); font-size: 14.5px; }
.n2m-rdv-recap__ic { font-size: 26px; }
.n2m-rdv-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.n2m-rdv-feedback { font-size: 13.5px; margin: 12px 0 0; }
.n2m-rdv-feedback.error { color: #ff6b6b; }
.n2m-rdv-spinner { display: none; width: 16px; height: 16px; margin-left: 8px; border: 2px solid rgba(5,5,8,.3); border-top-color: #050508; border-radius: 50%; animation: n2mRdvSpin .7s linear infinite; vertical-align: middle; }
.n2m-rdv-submit.is-loading .n2m-rdv-btn-tx { opacity: .55; }
.n2m-rdv-submit.is-loading .n2m-rdv-spinner { display: inline-block; }
@keyframes n2mRdvSpin { to { transform: rotate(360deg); } }

/* ── Succès ── */
.n2m-rdv-success { text-align: center; padding: 40px 20px; }
.n2m-rdv-success__ic { color: #10B981; }
.n2m-rdv-success h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 30px; color:var(--n2m-white); margin: 14px 0 8px; }
.n2m-rdv-success__msg { font-size: 17px; color: #F5C200; font-weight: 700; margin: 0 0 6px; }
.n2m-rdv-success__sub { font-size: 14px; color:var(--text-muted); margin: 0 0 22px; }

@media (max-width: 820px) {
    .n2m-rdv-types { grid-template-columns: repeat(2, 1fr); }
    .n2m-rdv-pick { grid-template-columns: 1fr; }
    .n2m-rdv-cal { max-width: 380px; }
}
