/* ==========================================================================
   PAGE DE CONTACT - MAROCPSY
   Style moderne, épuré et responsive (Aligné sur l'UX de MarocPsy)
   ========================================================================== */

.psy-contact-page {
    background: #f8fafc;
    min-height: calc(100vh - 140px);
    padding: 32px 16px 64px;
}

.psy-contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 1. Fil d'Ariane Simple (Identique aux Profils) */
.psy-contact-page .psy-profile-breadcrumbs {
    margin: 4px 0 20px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    font-size: 0.77rem !important;
    line-height: 1.5 !important;
    color: #6b7c86 !important;
    padding: 0 2px !important;
}
.psy-contact-page .psy-profile-breadcrumbs a {
    color: #607481 !important;
    text-decoration: none !important;
    padding-block: 4px !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
}
.psy-contact-page .psy-profile-breadcrumbs a:hover {
    text-decoration: underline !important;
    color: #274064 !important;
}
.psy-contact-page .psy-profile-breadcrumbs .psy-breadcrumb-divider {
    color: #a5b2b9 !important;
    font-size: 0.82rem !important;
}
.psy-contact-page .psy-profile-breadcrumbs .psy-breadcrumb-current {
    color: #233e49 !important;
    font-weight: 650 !important;
}

@media (max-width: 680px) {
    .psy-contact-page .psy-profile-breadcrumbs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: thin !important;
        white-space: nowrap !important;
        gap: 7px !important;
        padding-bottom: 4px !important;
    }
    .psy-contact-page .psy-profile-breadcrumbs > * {
        flex-shrink: 0 !important;
    }
    .psy-contact-page .psy-profile-breadcrumbs .psy-breadcrumb-current {
        display: none !important;
    }
    .psy-contact-page .psy-profile-breadcrumbs .psy-breadcrumb-divider:has(+ .psy-breadcrumb-current) {
        display: none !important;
    }
}

.psy-contact-hero {
    margin-bottom: 32px;
}
.psy-contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
}
.psy-contact-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.psy-contact-subtitle {
    font-size: 1.05rem;
    color: #475569;
    margin: 0;
    max-width: 760px;
    line-height: 1.55;
}

/* 2. Grille Principale (Split 2 Colonnes) */
.psy-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 960px) {
    .psy-contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Boutons Raccourcis vers le Formulaire (Mobile) */
.psy-mobile-jump-wrap {
    display: none;
    margin-top: 20px;
    justify-content: center;
}
.psy-btn-jump-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 13px 24px;
    border-radius: 14px;
    box-shadow: 0 6px 18px -2px rgba(2, 132, 199, 0.35);
    transition: all 0.25s ease;
    width: 100%;
    max-width: 380px;
}
.psy-btn-jump-form:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -2px rgba(2, 132, 199, 0.45);
}
.psy-btn-jump-form i.fa-arrow-down {
    font-size: 0.85rem;
    animation: psyBounceDown 1.8s infinite;
}
@keyframes psyBounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.psy-mobile-card-jump {
    display: none;
    margin-top: 18px;
    padding-top: 18px;
    margin-bottom: 4px;
    border-top: 1px dashed #e2e8f0;
}
.psy-btn-card-jump-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f0f9ff;
    color: #0369a1 !important;
    border: 1px solid #bae6fd;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: center;
}
.psy-btn-card-jump-form:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
}

@media (max-width: 960px) {
    .psy-mobile-jump-wrap {
        display: flex;
    }
    .psy-mobile-card-jump {
        display: block;
    }
    .psy-contact-info-col {
        gap: 28px;
    }
}

/* 3. Colonne Gauche : Coordonnées & Accès Rapides */
.psy-contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.psy-contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

.psy-contact-channels-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}
.psy-contact-channels-sub {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0 0 20px;
}

.psy-channel-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.psy-channel-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: all 0.2s;
}
.psy-channel-item:hover {
    background: #f1f6fc;
    border-color: #bfd5f3;
}
.psy-channel-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.psy-channel-icon.icon-email {
    background: #e0f2fe;
    color: #0284c7;
}
.psy-channel-icon.icon-phone {
    background: #dfeaf9;
    color: #1e529b;
}
.psy-channel-icon.icon-location {
    background: #fef3c7;
    color: #d97706;
}
.psy-channel-info {
    flex: 1;
}
.psy-channel-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}
.psy-channel-val {
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.psy-channel-val a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.psy-channel-val a:hover {
    color: #0284c7;
}
.psy-channel-hint {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 3px;
}

/* WhatsApp Click-to-Reveal */
.psy-wa-reveal-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    max-width: 100%;
}
.psy-wa-reveal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap !important;
    word-break: keep-all !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.psy-wa-reveal-btn:hover {
    border-color: #286ed0;
    background: #f1f6fc;
    color: #18427d;
    box-shadow: 0 2px 8px rgba(40,110,208, 0.2);
    transform: translateY(-1px);
}
.psy-wa-reveal-tag {
    background: #286ed0;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.02em;
    white-space: nowrap !important;
}
.psy-wa-revealed-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: psyFadeIn 0.25s ease;
}
@keyframes psyFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
.psy-wa-direct-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f6fc;
    border: 1.5px solid #8cb3e9;
    color: #142e53 !important;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap !important;
    word-break: keep-all !important;
}
.psy-wa-direct-link:hover {
    background: #286ed0;
    color: #ffffff !important;
    border-color: #286ed0;
    box-shadow: 0 4px 12px rgba(40,110,208, 0.35);
    transform: translateY(-1px);
}
.psy-wa-direct-link i {
    font-size: 1.05rem;
    color: #1e529b;
    transition: color 0.2s ease;
}
.psy-wa-direct-link:hover i {
    color: #ffffff;
}
.psy-wa-chat-pill {
    background: rgba(30,82,155, 0.15);
    color: #163765;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap !important;
}
.psy-wa-direct-link:hover .psy-wa-chat-pill {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.nowrap-phone {
    white-space: nowrap !important;
    word-break: keep-all !important;
    font-variant-numeric: tabular-nums;
}

/* Badges de Réassurance */
.psy-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}
.psy-trust-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #334155;
    font-weight: 500;
}
.psy-trust-badge-item i {
    color: #194582;
    font-size: 0.95rem;
}

/* Carte Accès Rapides (FAQ / Actions) */
.psy-quick-links-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
}
.psy-quick-links-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.psy-quick-links-title i {
    color: #0284c7;
}
.psy-quick-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.psy-quick-item {
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.psy-quick-item strong {
    display: block;
    font-size: 0.88rem;
    color: #0f172a;
    margin-bottom: 3px;
}
.psy-quick-item p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 8px;
    line-height: 1.4;
}
.psy-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.psy-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
    background: #ffffff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}
.psy-quick-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}
.psy-quick-btn.btn-pro {
    color: #194582;
    border-color: #abc7ef;
}
.psy-quick-btn.btn-pro:hover {
    background: #194582;
    color: #ffffff;
    border-color: #194582;
}

/* 4. Colonne Droite : Formulaire */
.psy-contact-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
}

.psy-form-header {
    margin-bottom: 24px;
}
.psy-form-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}
.psy-form-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

/* Alertes & Notifications */
.psy-contact-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.psy-contact-alert-success {
    background: #edf3fc;
    border: 1px solid #abc7ef;
    color: #102d55;
}
.psy-contact-alert-success i {
    color: #194582;
    font-size: 1.25rem;
    margin-top: 2px;
}
.psy-contact-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.psy-contact-alert-error i {
    color: #dc2626;
    font-size: 1.25rem;
    margin-top: 2px;
}

/* Form Groups */
.psy-contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.psy-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) {
    .psy-form-row {
        grid-template-columns: 1fr;
    }
}

.psy-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.psy-field-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}
.psy-field-label .req {
    color: #e11d48;
}
.psy-field-label i {
    color: #64748b;
    font-size: 0.82rem;
}

.psy-input-box {
    position: relative;
    display: flex;
    align-items: center;
}
.psy-input-box i.input-icon {
    position: absolute;
    inset-inline-start: 14px;
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.15s;
}

.psy-input,
.psy-select,
.psy-textarea {
    width: 100%;
    font-family: inherit;
    font-size: 0.94rem;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
    padding-inline-start: 40px;
    transition: all 0.2s;
    outline: none;
}
.psy-textarea {
    padding-inline-start: 14px;
    resize: vertical;
    min-height: 130px;
    line-height: 1.5;
}

.psy-input:focus,
.psy-select:focus,
.psy-textarea:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.psy-input:focus + i.input-icon,
.psy-select:focus + i.input-icon {
    color: #0284c7;
}

.psy-field-hint {
    font-size: 0.76rem;
    color: #64748b;
}

/* Honeypot field (Anti-Spam) */
.psy-hp-trap {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
}

/* Bouton d'action */
.psy-btn-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px -1px rgba(2, 132, 199, 0.35);
    transition: all 0.2s;
    margin-top: 6px;
}
.psy-btn-contact-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -1px rgba(2, 132, 199, 0.45);
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
}
.psy-btn-contact-submit:active {
    transform: translateY(0);
}
.psy-btn-contact-submit[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* RTL Support */
[dir="rtl"] .psy-contact-page .psy-profile-breadcrumbs .psy-breadcrumb-divider {
    display: inline-block;
    transform: scaleX(-1);
}
[dir="rtl"] .psy-quick-item i.psy-drawer-arrow,
[dir="rtl"] .psy-quick-btn i.fa-arrow-right {
    transform: rotate(180deg);
}
[dir="rtl"] .psy-input-box i.input-icon {
    inset-inline-start: 14px;
    inset-inline-end: auto;
}
