/**
 * Contact Page Styles
 * 
 * @package Maisons-CTL-Custom
 * @version 1.1.0
 * @date 2025-10-01
 * @time 15:35
 * @path wp-content/themes/maisons-ctl-custom/assets/css/contact.css
 * 
 * Changelog :
 * v1.1.0 (01/10/2025 - 15:35)
 * - Amélioration de l'affichage des horaires (support multi-lignes)
 * - Ajout du style pour le lien Google Maps sous la carte
 * 
 * v1.0.0 (01/10/2025 - 14:35)
 * - Création initiale
 */

/* ============================================
   CONTAINER PRINCIPAL
============================================ */
.contact-page {
    background: #f8f9fa;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   HERO SECTION
============================================ */
.contact-hero {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    text-align: center;
    padding: 60px 40px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
    color: #ffffff !important;
}

.contact-hero p {
    font-size: 1.2em;
    opacity: 0.95;
    font-weight: 300;
    color: #ffffff !important;
}

/* ============================================
   LAYOUT PRINCIPAL (Formulaire + Sidebar)
============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    background: white;
    padding: 50px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ============================================
   FORMULAIRE
============================================ */
.contact-form-wrapper {
    padding-right: 20px;
}

.contact-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2C3E50;
    font-weight: 600;
    font-size: 0.95em;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2C3E50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Bouton Submit */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 62, 80, 0.3);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   MESSAGES & LOADING
============================================ */
.message {
    display: none;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    animation: slideDown 0.3s ease-out;
    font-weight: 500;
}

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

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    display: none;
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 25px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2C3E50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Info Box */
.info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #2C3E50;
}

.info-box h3 {
    color: #2C3E50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.info-box p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   SIDEBAR INFORMATIONS
============================================ */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.contact-info-card h3 {
    color: #2C3E50;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 700;
}

/* Items d'information */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    color: #2C3E50;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.info-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #2C3E50;
    text-decoration: underline;
}

.info-item p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* Horaires */
.horaire-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    gap: 15px;
}

.horaire-item:last-child {
    border-bottom: none;
}

.horaire-item span {
    color: #555;
    font-weight: 500;
    min-width: 80px;
}

.horaire-item strong {
    color: #2C3E50;
    font-weight: 600;
    text-align: right;
    line-height: 1.4;
}

.horaire-item.closed strong {
    color: #e74c3c;
}

/* Google Maps */
.contact-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-map iframe {
    display: block;
    border-radius: 10px;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .contact-form-wrapper {
        padding-right: 0;
    }

    .contact-hero h1 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 20px 10px;
    }

    .contact-hero {
        padding: 40px 20px;
        border-radius: 15px 15px 0 0;
    }

    .contact-hero h1 {
        font-size: 1.8em;
    }

    .contact-hero p {
        font-size: 1em;
    }

    .contact-content {
        padding: 25px 20px;
        border-radius: 0 0 15px 15px;
    }

    .contact-info-card {
        padding: 20px;
    }
}