
/* ====================================================================
   STYLE_CONTACT.CSS — CMCI OBILI
   Styles pour la page Contact (Glassmorphism & Bento)
   ==================================================================== */

/* Container de contact */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Animation d'entrée */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Items d'information de contact */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: var(--primary-soft);
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--shadow-sm);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px var(--shadow-primary);
}

.contact-info-item h5 {
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 700;
    font-family: var(--font-display);
}

.contact-info-item p {
    color: var(--text-soft);
    margin: 0;
    line-height: 1.6;
}

/* Bouton WhatsApp */
.whatsapp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 25px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta:hover {
    background: #20BA5A;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-cta i {
    font-size: 24px;
}

/* Section réseaux sociaux */
.social-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.social-section h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-family: var(--font-display);
    font-weight: 700;
}

.social-section h3 i {
    color: var(--accent);
    margin-right: 8px;
}

.contact-social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-social-link.facebook { background: #1877F2; }
.contact-social-link.youtube { background: #FF0000; }
.contact-social-link.instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.contact-social-link.twitter { background: #1DA1F2; }
.contact-social-link.whatsapp { background: #25D366; }

.contact-social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: #fff;
}

/* Statut de disponibilité */
.availability-status {
    margin-top: 25px;
    padding: 15px;
    background: var(--bg-soft);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
}

.status-indicator span {
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Formulaire de contact */
.contact-form {
    margin-top: 20px;
}

.form-label-custom {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-label-custom i {
    margin-right: 5px;
    color: var(--accent);
}

.form-control-custom {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--surface);
    color: var(--text);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-control-custom::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Bouton de soumission */
.btn-submit {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px var(--shadow-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--shadow-lg);
    color: #fff;
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit i {
    margin-right: 8px;
}

/* Section carte */
.map-section {
    margin-top: 30px;
}

.map-subtitle {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 2px dashed var(--border-strong);
}

.map-placeholder i {
    font-size: 48px;
    color: var(--primary);
    filter: drop-shadow(0 4px 8px var(--primary-soft));
}

.map-placeholder h4 {
    color: var(--text);
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
}

.map-placeholder p {
    color: var(--text-muted);
    margin: 0;
}

.btn-map {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--shadow-primary);
}

.btn-map:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-lg);
    color: #fff;
}

.btn-map i {
    font-size: 16px;
}

/* Détails de la carte */
.map-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--bg-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: var(--primary-soft);
    transform: translateY(-3px);
}

.detail-item i {
    color: var(--accent);
    font-size: 20px;
    margin-top: 3px;
}

.detail-item strong {
    color: var(--text);
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-display);
}

.detail-item span {
    color: var(--text-soft);
    font-size: 0.9rem;
}

/* Actions de la carte */
.map-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 25px;
}

/* ============================================
   NOTIFICATIONS & VALIDATIONS
   ============================================ */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    min-width: 320px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.notification-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-close:hover {
    opacity: 1;
}

.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.field-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    transition: color 0.3s;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info-item {
        padding: 15px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .whatsapp-cta {
        padding: 12px 20px;
    }

    .contact-social-links {
        justify-content: center;
    }

    .map-container {
        height: 300px;
    }

    .map-details {
        grid-template-columns: 1fr;
    }

    .map-actions {
        flex-direction: column;
    }

    .btn-map {
        width: 100%;
        justify-content: center;
    }

    .notification {
        left: 10px;
        right: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-120%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}
