/* ============================================================
   CBATP — Lot 3 : Auth + Contact
   ============================================================ */

/* ============================================================
   AUTH LAYOUT — Split image (gauche) + formulaire (droite)
   ============================================================ */

.cbatp-auth-body {
    margin: 0;
    font-family: var(--cbatp-font-body);
    color: var(--cbatp-slate-700);
    -webkit-font-smoothing: antialiased;
    background: #fff;
    min-height: 100vh;
}

.cbatp-auth-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 992px) {
    .cbatp-auth-wrapper { grid-template-columns: 1fr; }
}

/* COLONNE GAUCHE : visuel BTP + branding */
.cbatp-auth-visual {
    position: relative;
    background:
        linear-gradient(135deg, rgba(0,31,64,0.85) 0%, rgba(0,51,102,0.7) 100%),
        url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=80') center/cover;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

@media (max-width: 992px) {
    .cbatp-auth-visual {
        min-height: 280px;
        padding: 32px;
    }
}

.cbatp-auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
}
.cbatp-auth-brand-logo {
    width: 52px; height: 52px;
    border-radius: 10px;
    background: var(--cbatp-orange);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--cbatp-font-display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.05em;
    flex-shrink: 0;
    overflow: hidden;
}
.cbatp-auth-brand-logo img {
    width: 100%; height: 100%; object-fit: contain;
}
.cbatp-auth-brand-text strong {
    font-family: var(--cbatp-font-display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
    display: block;
    color: #fff;
}
.cbatp-auth-brand-text small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cbatp-auth-quote {
    max-width: 480px;
}
.cbatp-auth-quote-mark {
    font-family: var(--cbatp-font-display);
    font-size: 100px;
    color: var(--cbatp-orange);
    line-height: 0.6;
    margin-bottom: 12px;
    opacity: 0.4;
    font-weight: 800;
}
.cbatp-auth-quote-text {
    font-family: var(--cbatp-font-display);
    font-size: 22px;
    line-height: 1.5;
    color: #fff;
    font-weight: 600;
    margin-bottom: 24px;
}
.cbatp-auth-quote-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.cbatp-auth-quote-author-line {
    width: 32px; height: 2px;
    background: var(--cbatp-orange);
}
.cbatp-auth-quote-author strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: block;
}
.cbatp-auth-quote-author span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.cbatp-auth-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.cbatp-auth-stat strong {
    display: block;
    font-family: var(--cbatp-font-display);
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.cbatp-auth-stat span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    display: block;
}

/* COLONNE DROITE : formulaire */
.cbatp-auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    min-height: 100vh;
}

@media (max-width: 992px) {
    .cbatp-auth-form-wrap { min-height: auto; padding: 48px 24px; }
}

.cbatp-auth-form {
    width: 100%;
    max-width: 440px;
}

.cbatp-auth-form-header {
    margin-bottom: 32px;
}

.cbatp-auth-form-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--cbatp-orange);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}
.cbatp-auth-form-eyebrow::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 20px; height: 2px;
    background: var(--cbatp-orange);
}

.cbatp-auth-form h1 {
    font-family: var(--cbatp-font-display);
    font-size: 32px;
    color: var(--cbatp-ink);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.cbatp-auth-form-subtitle {
    font-size: 15px;
    color: var(--cbatp-slate-500);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Champs de formulaire */
.cbatp-form-group {
    margin-bottom: 18px;
}

.cbatp-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--cbatp-ink);
    margin-bottom: 8px;
}

.cbatp-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--cbatp-slate-200);
    border-radius: var(--cbatp-radius);
    background: var(--cbatp-slate-50);
    font-size: 14px;
    font-family: inherit;
    color: var(--cbatp-ink);
    outline: none;
    transition: all 0.2s;
}
.cbatp-form-input:focus {
    background: #fff;
    border-color: var(--cbatp-orange);
    box-shadow: 0 0 0 3px rgba(247, 123, 1, 0.12);
}
.cbatp-form-input.is-invalid {
    border-color: var(--cbatp-danger);
    background: #fef5f5;
}
.cbatp-form-input::placeholder {
    color: var(--cbatp-slate-400);
}

.cbatp-form-error {
    color: var(--cbatp-danger);
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cbatp-form-help {
    font-size: 12px;
    color: var(--cbatp-slate-500);
    margin-top: 6px;
}

/* Input avec icône à gauche */
.cbatp-form-input-icon {
    position: relative;
}
.cbatp-form-input-icon .cbatp-form-input { padding-left: 44px; }
.cbatp-form-input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cbatp-slate-400);
    font-size: 16px;
    pointer-events: none;
}

/* Toggle password */
.cbatp-form-input-toggle {
    position: relative;
}
.cbatp-form-input-toggle .cbatp-form-input { padding-right: 44px; }
.cbatp-form-input-toggle button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--cbatp-slate-400);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}
.cbatp-form-input-toggle button:hover { color: var(--cbatp-orange); }

/* Checkbox custom */
.cbatp-form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--cbatp-slate-700);
    cursor: pointer;
}
.cbatp-form-check input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--cbatp-orange);
    cursor: pointer;
}

/* Boutons formulaire */
.cbatp-auth-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--cbatp-orange);
    color: #fff;
    border: none;
    border-radius: var(--cbatp-radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}
.cbatp-auth-submit:hover {
    background: var(--cbatp-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(247, 123, 1, 0.3);
}

.cbatp-auth-submit-secondary {
    width: 100%;
    padding: 14px 24px;
    background: #fff;
    color: var(--cbatp-navy);
    border: 1.5px solid var(--cbatp-slate-200);
    border-radius: var(--cbatp-radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}
.cbatp-auth-submit-secondary:hover {
    border-color: var(--cbatp-navy);
    color: var(--cbatp-navy);
    background: var(--cbatp-slate-50);
}

/* Liens auth */
.cbatp-auth-link {
    color: var(--cbatp-orange);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.cbatp-auth-link:hover { color: var(--cbatp-orange-dark); text-decoration: underline; }

.cbatp-auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--cbatp-slate-400);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.cbatp-auth-divider::before,
.cbatp-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--cbatp-slate-200);
}

.cbatp-auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--cbatp-slate-500);
}

.cbatp-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cbatp-slate-500);
    font-size: 13px;
    text-decoration: none;
    margin-top: 24px;
    transition: color 0.2s;
}
.cbatp-auth-back:hover { color: var(--cbatp-orange); }

/* Alertes auth */
.cbatp-auth-alert {
    padding: 14px 16px;
    border-radius: var(--cbatp-radius);
    margin-bottom: 24px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
}
.cbatp-auth-alert i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.cbatp-auth-alert.success {
    background: var(--cbatp-success-bg);
    color: #065f46;
    border-left: 3px solid var(--cbatp-success);
}
.cbatp-auth-alert.error {
    background: var(--cbatp-danger-bg);
    color: #991b1b;
    border-left: 3px solid var(--cbatp-danger);
}
.cbatp-auth-alert.info {
    background: var(--cbatp-info-bg);
    color: #1e40af;
    border-left: 3px solid var(--cbatp-info);
}
.cbatp-auth-alert.warning {
    background: var(--cbatp-warning-bg);
    color: #92400e;
    border-left: 3px solid var(--cbatp-warning);
}

/* ============================================================
   OTP — Code à chiffres
   ============================================================ */

.cbatp-otp-input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
}

.cbatp-otp-digit {
    width: 56px; height: 64px;
    text-align: center;
    border: 2px solid var(--cbatp-slate-200);
    border-radius: var(--cbatp-radius);
    background: var(--cbatp-slate-50);
    font-size: 24px;
    font-weight: 700;
    color: var(--cbatp-ink);
    font-family: var(--cbatp-font-display);
    outline: none;
    transition: all 0.2s;
}
.cbatp-otp-digit:focus {
    border-color: var(--cbatp-orange);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(247, 123, 1, 0.12);
    transform: scale(1.05);
}
.cbatp-otp-digit.filled {
    background: rgba(247, 123, 1, 0.08);
    border-color: var(--cbatp-orange);
    color: var(--cbatp-orange);
}

@media (max-width: 480px) {
    .cbatp-otp-input-group { gap: 6px; }
    .cbatp-otp-digit { width: 44px; height: 52px; font-size: 20px; }
}

.cbatp-otp-resend {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--cbatp-slate-500);
}
.cbatp-otp-timer {
    color: var(--cbatp-orange);
    font-weight: 600;
    font-family: var(--cbatp-font-display);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.cbatp-contact-page {
    padding: 80px 0;
    background: #fff;
}

.cbatp-contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 56px;
    align-items: flex-start;
}
@media (max-width: 992px) {
    .cbatp-contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Carte formulaire de contact */
.cbatp-contact-form-card {
    background: #fff;
    border-radius: var(--cbatp-radius-xl);
    padding: 40px;
    border: 1px solid var(--cbatp-slate-100);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.04);
}

@media (max-width: 600px) {
    .cbatp-contact-form-card { padding: 28px 20px; }
}

.cbatp-contact-form-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cbatp-slate-100);
}
.cbatp-contact-form-header h2 {
    font-size: 26px;
    color: var(--cbatp-ink);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.cbatp-contact-form-header p {
    color: var(--cbatp-slate-500);
    font-size: 14px;
    margin: 0;
}

.cbatp-contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .cbatp-contact-form-row { grid-template-columns: 1fr; }
}

.cbatp-contact-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Aside : Coordonnées */
.cbatp-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cbatp-contact-info-card {
    background: var(--cbatp-slate-50);
    border-radius: var(--cbatp-radius-xl);
    padding: 28px;
    border: 1px solid var(--cbatp-slate-100);
    transition: all 0.2s;
}
.cbatp-contact-info-card:hover {
    background: #fff;
    border-color: var(--cbatp-orange);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 51, 102, 0.06);
}

.cbatp-contact-info-card-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.cbatp-contact-info-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--cbatp-orange);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.cbatp-contact-info-card h4 {
    font-size: 15px;
    color: var(--cbatp-ink);
    margin: 0;
    font-weight: 700;
}

.cbatp-contact-info-card p,
.cbatp-contact-info-card a {
    font-size: 14px;
    color: var(--cbatp-slate-700);
    line-height: 1.6;
    margin: 0;
    text-decoration: none;
    display: block;
}
.cbatp-contact-info-card a:hover {
    color: var(--cbatp-orange);
}

/* Carte horaires */
.cbatp-contact-hours-card {
    background: var(--cbatp-navy);
    color: #fff;
    border-radius: var(--cbatp-radius-xl);
    padding: 28px;
    border: none;
}
.cbatp-contact-hours-card .cbatp-contact-info-icon {
    background: var(--cbatp-orange);
}
.cbatp-contact-hours-card h4 { color: #fff; }

.cbatp-contact-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cbatp-contact-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}
.cbatp-contact-hours-list li:last-child { border-bottom: none; }
.cbatp-contact-hours-list strong {
    color: #fff;
    font-weight: 600;
}

/* Map embed */
.cbatp-contact-map {
    margin-top: 64px;
    border-radius: var(--cbatp-radius-xl);
    overflow: hidden;
    height: 420px;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.08);
}
.cbatp-contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.2);
}
