/* Styles pour la page de contact */
/*
 Theme Name: Perso
 Description: Styles pour la page de contact
 Version: 1.0.0
*/

/* Variables CSS héritées */

/* Styles spécifiques à la page de contact */
body.page-template-page-contact {
    background-color: var(--white);
    color: var(--text-light);
}

/* Section principale */
.contact-main-section {
    width: 100%;
    padding: 20px 0;
}

/* Hero section - plus compact */
.contact-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background-color: var(--section-bg);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--black);
    margin: 15px 0 10px 0;
    line-height: 1.2;
}

.contact-subtitle {
    font-size: 1.1em;
    color: var(--text-light);
    margin: 0;
    font-weight: 400;
}

/* Contenu principal - Layout réorganisé */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

/* Colonne gauche - Informations */
.contact-left-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Colonne droite - Formulaire */
.contact-right-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Sections d'informations - même hauteur que le formulaire */
.contact-info-section {
    background-color: var(--section-bg);
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Formulaire - même hauteur que les informations */
.contact-form-section {
    background-color: var(--white);
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Horaires - centré en bas */
.contact-hours-section {
    grid-column: 1 / -1;
    background-color: var(--section-bg);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 20px;
    text-align: center;
}

.section-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 20px 0;
    line-height: 1.3;
    display: inline-block;
}

/* Détails de contact - plus compacts */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 1.2em;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-text strong {
    font-weight: 600;
    color: var(--black);
    font-size: 0.95em;
}

.contact-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9em;
}

.contact-text a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.contact-text span {
    color: var(--text-light);
    line-height: 1.4;
    font-size: 0.9em;
}

/* Horaires - design amélioré et centré */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.hours-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.hours-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hours-item.special {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.hours-item strong {
    font-weight: 600;
    color: var(--black);
    font-size: 0.95em;
    margin-bottom: 5px;
    display: block;
}

.hours-item.special strong {
    color: var(--white);
}

.hours-item span {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9em;
}

.hours-item.special span {
    color: var(--white);
    font-weight: 400;
}

/* Formulaire de contact - taille réduite */
.contact-form-section {
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    height: fit-content;
}

.contact-form-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: var(--black);
    font-weight: 500;
    font-size: 0.9em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background-color: #fafafa;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-form {
    max-width: 100%;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.submit-btn {
    background: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    margin-top: auto;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(202, 151, 36, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(202, 151, 36, 0.3);
}

/* Responsive */
@media (min-width: 1440px) {
    .contact-title {
        font-size: 2.8em;
    }
    
    .contact-subtitle {
        font-size: 1.2em;
    }
    
    .contact-content {
        gap: 40px;
    }
    
    .contact-info-section,
    .contact-hours-section {
        padding: 30px 25px;
    }
    
    .contact-form-section {
        padding: 40px;
        max-width: 800px;
    }
}

@media (max-width: 1024px) {
    .contact-content {
        gap: 25px;
    }
    
    .contact-title {
        font-size: 2.2em;
    }
    
    .contact-subtitle {
        font-size: 1.05em;
    }
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-hero {
        padding: 25px 15px;
        margin-bottom: 30px;
    }
    
    .contact-title {
        font-size: 2em;
    }
    
    .contact-subtitle {
        font-size: 1em;
    }
    
    .contact-info-section,
    .contact-hours-section {
        padding: 20px 15px;
    }
    
    .contact-form-section {
        padding: 25px 20px;
        margin-top: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-item {
        gap: 12px;
        padding: 12px;
    }
    
    .section-title {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .contact-main-section {
        padding: 15px 0;
    }
    
    .contact-hero {
        padding: 20px 10px;
        margin-bottom: 25px;
    }
    
    .contact-title {
        font-size: 1.8em;
        line-height: 1.1;
    }
    
    .contact-subtitle {
        font-size: 0.95em;
    }
    
    .contact-info-section,
    .contact-hours-section {
        padding: 18px 12px;
    }
    
    .contact-form-section {
        padding: 20px 15px;
    }
    
    .contact-item {
        gap: 10px;
        padding: 10px;
    }
    
    .contact-icon {
        font-size: 1.1em;
    }
    
    .hours-item {
        padding: 10px 12px;
        flex-direction: column;
        text-align: center;
        gap: 3px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .contact-form textarea {
        height: 100px;
        min-height: 100px;
    }
    
    .submit-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.3em;
    }
}
