/* Atelier Luminaires V3 v1.0.0 — atelier.css */

/* ── Variables CSS (injectées par PHP via wp_add_inline_style) ────────────── */

/* ── Reset & base ─────────────────────────────────────────────────────────── */
#av3-app { max-width: 800px; margin: 0 auto; padding: 0; font-family: Arial, sans-serif; color: #1E293B; }
#av3-app * { box-sizing: border-box; }
.av3-hidden { display: none !important; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.av3-hero {
    background: linear-gradient(135deg, var(--av3-accent-dark), var(--av3-accent));
    border-radius: 14px;
    padding: 32px 36px;
    margin-bottom: 24px;
    color: #fff;
}
.av3-hero-badge { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: 10px; }
.av3-hero-title { font-size: 22px; font-weight: 800; margin: 0 0 10px; line-height: 1.3; }
.av3-hero-desc  { font-size: 14px; opacity: .88; margin: 0 0 16px; line-height: 1.6; }
.av3-hero-meta  { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.av3-hero-meta span { background: rgba(255,255,255,.15); border-radius: 20px; padding: 4px 12px; color: #fff; }

/* ── Indicateurs étapes ───────────────────────────────────────────────────── */
#av3-steps { display: flex; align-items: center; justify-content: center; margin: 0 0 24px; padding: 16px 0; }
.av3-step-dot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.av3-step-dot span {
    width: 32px; height: 32px; border-radius: 50%;
    background: #E2E8F0; color: #94A3B8;
    font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.av3-step-dot em { font-style: normal; font-size: 11px; color: #94A3B8; white-space: nowrap; }
.av3-step-dot.av3-step-active span { background: var(--av3-accent); color: #fff; }
.av3-step-dot.av3-step-active em  { color: var(--av3-accent); font-weight: 600; }
.av3-step-dot.av3-step-done span  { background: var(--av3-accent-muted); color: #fff; }
.av3-step-line { flex: 1; height: 2px; background: #E2E8F0; margin: 0 8px 18px; max-width: 60px; }

/* ── Panels ───────────────────────────────────────────────────────────────── */
.av3-step-panel {
    background: #fff; border-radius: 12px; padding: 28px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07); margin-bottom: 16px;
}
.av3-panel-title { font-size: 18px; font-weight: 800; color: #1E293B; margin: 0 0 6px; }
.av3-panel-sub   { font-size: 13px; color: #64748B; margin: 0 0 20px; }

/* ══════════════════════════════════════════════════════════════════════════ */
/* CALENDRIER — LAYOUT DEUX COLONNES                                         */
/* ══════════════════════════════════════════════════════════════════════════ */

.av3-cal-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ── Colonne gauche : calendrier mensuel ─────────────────────────────────── */
.av3-cal-left {
    flex: 0 0 280px;
    min-width: 0;
    background: #F8FAFC;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #E2E8F0;
}

/* Navigation mois */
.av3-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.av3-month-label { font-weight: 700; font-size: 15px; color: #1E293B; }
.av3-month-btn {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1.5px solid #E2E8F0;
    background: #fff; color: #475569;
    font-size: 18px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.av3-month-btn:hover:not(:disabled) { background: var(--av3-accent); color: #fff; border-color: var(--av3-accent); }
.av3-month-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Grille 7 colonnes */
.av3-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    margin-bottom: 4px;
}
.av3-dow-row { margin-bottom: 6px; }
.av3-dow { text-align: center; font-size: 11px; font-weight: 700; color: #94A3B8; padding: 2px 0; text-transform: uppercase; }

/* Jours — cercles */
#av3-app .av3-day {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: none !important; background: transparent;
    font-size: clamp(10px, 1.8vw, 13px);
    font-weight: 600; color: #475569;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .15s; margin: 0;
    outline: none !important; box-shadow: none !important;
    -webkit-appearance: none; appearance: none;
    padding: 0;
}
#av3-app .av3-day-out   { color: #CBD5E1; cursor: default; border: none !important; outline: none !important; box-shadow: none !important; }
#av3-app .av3-day-none  { color: #CBD5E1; cursor: default; border: none !important; outline: none !important; box-shadow: none !important; }
#av3-app .av3-day-busy  { color: #C0526A !important; background: #FFF0F0 !important; cursor: default; border: 1.5px solid #FDA4AF !important; outline: none !important; box-shadow: none !important; }
#av3-app .av3-day-full  { color: #94A3B8; background: #F1F5F9; cursor: default; border: none !important; outline: none !important; box-shadow: none !important; text-decoration: line-through; }
#av3-app .av3-day-available {
    background: #F8EBE1 !important;
    color: #9E693B !important;
    border: 2px solid #D38C4F !important;
    outline: none !important;
    box-shadow: none !important;
}
#av3-app .av3-day-available:focus {
    outline: 2px solid #D38C4F !important;
    outline-offset: 1px;
}
#av3-app .av3-day-available:hover {
    background: #D38C4F !important;
    color: #fff !important;
    border-color: #986539 !important;
    transform: scale(1.08);
    box-shadow: none !important;
}
#av3-app .av3-day-selected {
    background: #D38C4F !important;
    color: #fff !important;
    border-color: #986539 !important;
    box-shadow: 0 0 0 3px #F6E8DC !important;
}
#av3-app .av3-day-today { font-weight: 800; }

/* Légende */
.av3-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 11px; color: #64748B; }
.av3-legend-item { display: flex; align-items: center; gap: 5px; }
.av3-leg { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.av3-leg-available { background: var(--av3-accent); }
.av3-leg-full      { background: #94A3B8; }
.av3-leg-busy      { background: #FDA4AF; }

/* ── Colonne droite : créneaux du jour ───────────────────────────────────── */
.av3-cal-right {
    flex: 1;
    min-height: 200px;
}

/* Placeholder */
.av3-day-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #94A3B8;
    background: #F8FAFC;
    border-radius: 12px;
    border: 2px dashed #E2E8F0;
    min-height: 200px;
}
.av3-placeholder-icon { font-size: 36px; margin-bottom: 12px; }
.av3-day-placeholder p { font-size: 13px; margin: 0; line-height: 1.5; }

/* Titre du jour sélectionné */
.av3-day-title {
    font-size: 16px; font-weight: 700; color: var(--av3-accent);
    margin: 0 0 12px; text-transform: capitalize;
}

/* Cartes créneaux */
.av3-slot-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    margin-bottom: 10px;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    transition: border-color .15s;
}
.av3-slot-card:hover:not(.av3-slot-full) { border-color: var(--av3-accent); }
.av3-slot-full    { background: #F8FAFC; opacity: .7; }
.av3-slot-selected { border-color: var(--av3-accent); background: var(--av3-accent-light); }

.av3-slot-info { display: flex; flex-direction: column; gap: 4px; }
.av3-slot-time {
    font-size: 16px; font-weight: 700; color: #1E293B;
    font-variant-numeric: tabular-nums;
}
.av3-slot-places { font-size: 13px; color: #64748B; }
.av3-slot-places-full { color: #94A3B8; }

/* Bouton Réserver */
.av3-btn-reserve {
    background: var(--av3-accent);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}
.av3-btn-reserve:hover { background: var(--av3-accent-dark); color: #fff; }
.av3-btn-reserve-selected {
    background: var(--av3-accent-dark);
    box-shadow: 0 0 0 3px var(--av3-accent-mid);
}

/* Responsive layout calendrier */
@media (max-width: 600px) {
    .av3-cal-layout  { flex-direction: column; }
    .av3-cal-left    { flex: none; width: 100%; padding: 10px; box-sizing: border-box; }
    .av3-month-grid  { gap: 2px; }
    .av3-dow         { font-size: 10px; }
    .av3-month-label { font-size: 14px; }
    .av3-month-btn   { width: 24px; height: 24px; font-size: 15px; }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* FORMULAIRE                                                                 */
/* ══════════════════════════════════════════════════════════════════════════ */

.av3-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .av3-form-grid { grid-template-columns: 1fr; } }

.av3-field     { display: flex; flex-direction: column; gap: 5px; }
.av3-field-full { grid-column: 1 / -1; }
.av3-label     { font-size: 13px; font-weight: 600; color: #374151; }
.av3-req       { color: var(--av3-accent); margin-left: 2px; }
.av3-opt       { font-weight: 400; color: #94A3B8; font-size: 12px; }

.av3-input, .av3-select {
    border: 1.5px solid #E2E8F0; border-radius: 8px;
    padding: 10px 12px; font-size: 14px; color: #1E293B;
    background: #fff; transition: border-color .2s; width: 100%;
}
.av3-input:focus, .av3-select:focus {
    outline: none; border-color: var(--av3-accent);
    box-shadow: 0 0 0 3px rgba(var(--av3-accent-rgb, 124,58,237), .12);
}

/* Rappel créneau étape 2 */
.av3-recap-slot { margin-bottom: 20px; }
.av3-recap-slot-inner {
    background: var(--av3-accent-light); border: 1.5px solid var(--av3-accent-mid);
    border-radius: 8px; padding: 10px 16px;
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.av3-recap-slot-label { font-weight: 700; color: var(--av3-accent-text); font-size: 14px; }
.av3-recap-slot-date  { color: #64748B; font-size: 13px; }

/* Privatisation */
.av3-priv-block  { margin: 16px 0; }
.av3-priv-toggle {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--av3-accent-light); border: 1.5px solid var(--av3-accent-mid);
    border-radius: 10px; padding: 14px 16px; cursor: pointer; transition: border-color .2s;
}
.av3-priv-toggle:hover { border-color: var(--av3-accent); }
.av3-priv-check {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--av3-accent-muted); flex-shrink: 0; margin-top: 2px; transition: all .2s;
}
.av3-priv-checked   { background: var(--av3-accent); border-color: var(--av3-accent); }
.av3-priv-title     { font-weight: 700; color: var(--av3-accent-text); font-size: 14px; display: block; }
.av3-priv-subtitle  { font-size: 12px; color: #64748B; display: block; margin-top: 2px; }
.av3-priv-detail    { font-size: 12px; color: var(--av3-accent); display: block; margin-top: 4px; }

/* Notice partagé */
.av3-shared-notice {
    background: #F0F9FF; border: 1px solid #BAE6FD; border-radius: 8px;
    padding: 10px 14px; font-size: 13px; color: #0369A1;
    display: flex; gap: 8px; align-items: flex-start; margin: 12px 0;
}
.av3-shared-icon { font-size: 16px; flex-shrink: 0; }

/* Montant */
.av3-amount-box {
    background: var(--av3-accent-light); border: 1.5px solid var(--av3-accent-mid);
    border-radius: 10px; padding: 14px 18px; margin: 16px 0;
    display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center;
}
.av3-amount-label  { font-size: 14px; color: #475569; }
.av3-amount-calc   { font-size: 13px; color: #94A3B8; }
.av3-amount-total  { font-size: 20px; font-weight: 800; color: var(--av3-accent); margin-left: auto; }
.av3-amount-saving { font-size: 12px; color: #16A34A; background: #DCFCE7; border-radius: 4px; padding: 2px 8px; }

/* CGV */
.av3-cgv-block {
    margin-top: 16px; padding: 14px 16px;
    background: var(--av3-accent-light); border: 1.5px solid var(--av3-accent-mid); border-radius: 10px;
}
.av3-cgv-label {
    display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
    font-size: 14px; color: var(--av3-accent-text); line-height: 1.5; user-select: none;
}
.av3-cgv-checkbox { margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--av3-accent); cursor: pointer; }
.av3-cgv-label a  { color: var(--av3-accent); font-weight: 600; text-decoration: underline; }

/* Honeypot */
.av3-hp-wrap { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* Captcha */
.av3-captcha-block {
    margin-top: 16px; padding: 16px 18px;
    background: var(--av3-accent-light); border: 1.5px solid var(--av3-accent-mid); border-radius: 10px;
}
.av3-captcha-row     { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.av3-captcha-question { font-size: 15px; font-weight: 700; color: var(--av3-accent-text); white-space: nowrap; font-family: Georgia, serif; }
.av3-captcha-input   { width: 80px !important; text-align: center; font-size: 16px; font-weight: 700; padding: 8px 10px; -moz-appearance: textfield; }
.av3-captcha-input::-webkit-outer-spin-button,
.av3-captcha-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.av3-captcha-hint    { margin: 6px 0 0; font-size: 12px; color: var(--av3-accent-muted); }

/* Erreurs */
.av3-error { background: #FEF2F2; border: 1px solid #FCA5A5; border-radius: 8px; padding: 10px 14px; color: #DC2626; font-size: 13px; margin: 12px 0 0; }

/* Actions */
.av3-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.av3-btn {
    border: none; border-radius: 8px; padding: 11px 22px;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.av3-btn-primary     { background: var(--av3-accent); color: #fff; }
.av3-btn-primary:hover { background: var(--av3-accent-dark); }
.av3-btn-ghost       { background: transparent; color: var(--av3-accent); border: 1.5px solid var(--av3-accent-mid); }
.av3-btn-ghost:hover { background: var(--av3-accent-light); }
.av3-btn-full        { width: 100%; }
.av3-btn-cta         { padding: 14px 28px; font-size: 15px; }

/* Récapitulatif */
.av3-recap-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.av3-recap-table tr td { padding: 8px 10px; border: 1px solid var(--av3-accent-mid); font-size: 13px; }
.av3-recap-label { background: var(--av3-accent-pale); font-weight: 700; color: var(--av3-accent-text); width: 38%; }

.av3-info-box { background: #F0F9FF; border: 1px solid #BAE6FD; border-radius: 10px; padding: 14px 18px; margin: 16px 0; font-size: 13px; color: #0369A1; line-height: 1.6; }

/* Confirmation */
.av3-confirm-panel { text-align: center; background: #fff; border-radius: 12px; padding: 48px 32px; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.av3-confirm-icon  { font-size: 52px; margin-bottom: 16px; }
.av3-confirm-title { font-size: 22px; font-weight: 800; color: var(--av3-accent); margin: 0 0 12px; }
.av3-confirm-text  { font-size: 15px; color: #475569; line-height: 1.7; margin: 0 0 12px; }
.av3-confirm-sub   { font-size: 14px; color: var(--av3-accent-muted); }

/* Spinner */
.av3-spinner {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
    border-radius: 50%; animation: av3-spin .6s linear infinite; vertical-align: middle;
}
@keyframes av3-spin { to { transform: rotate(360deg); } }

/* Admin */
.av3-admin-section-title { font-size: 14px; font-weight: 600; color: #1E293B; margin: 16px 0 8px; }
