/* ==========================================================================
   CONTACT PAGE - Page de contact
   Hero de base (.contact-hero) défini dans 05-pages/page-base.css
   ========================================================================== */

/* Section contenu contact */
.contact-content {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bloc informations de contact */
.contact-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.contact-info h2 {
    color: #1a73e8;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
}

.info-icon {
    background: #1a73e8;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-content h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-content p {
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.info-content a {
    color: #1a73e8;
    text-decoration: none;
}

.info-content a:hover {
    text-decoration: underline;
}

/* Formulaire de contact */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-form h2 {
    color: #1a73e8;
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

/* .form-row défini dans 03-components/forms.css */

.required {
    color: #e74c3c;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a73e8;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.textarea-large {
    min-height: 150px;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Types de questions */
.question-type {
    background: #e8f4f8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.question-type h3 {
    color: #1a73e8;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.question-type.error {
    border: 2px solid #e74c3c;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.radio-item:hover {
    background: #f0f7ff;
}

.radio-item input[type="radio"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.radio-item label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    font-weight: normal;
}

/* Checkboxes */
.checkbox-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.checkbox-group h3 {
    color: #1a73e8;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    font-weight: normal;
}

/* Champs conditionnels */
.conditional-field {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    animation: formReveal 0.3s ease;
}

.conditional-field.show {
    display: block;
}

.conditional-field label {
    color: #856404;
    font-weight: 600;
}

.conditional-field input,
.conditional-field textarea {
    border-color: #ffeaa7;
    background-color: white;
}

/* Section soumission */
.submit-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.4);
}

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

/* Temps de réponse */
.response-time {
    background: linear-gradient(135deg, #34a853, #2e7d32);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
}

.response-time h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.response-time p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Section exemples */
.examples-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    position: relative;
}

.examples-section::before {
    content: "💡";
    position: absolute;
    top: -15px;
    left: 30px;
    background: #fff3cd;
    padding: 5px 10px;
    font-size: 1.5rem;
}

.examples-title {
    font-size: 1.4rem;
    color: #856404;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Contact cards alternatives */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.contact-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-card h4 {
    color: #1a73e8;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-card p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.btn-contact {
    background: #1a73e8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn-contact:hover {
    background: #0d5bbc;
    color: white;
    text-decoration: none;
}

/* Map container */
.map-section {
    background: white;
    padding: 60px 0;
    text-align: center;
}

.map-container {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #666;
}

.map-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #1a73e8;
}

/* FAQ section */
.faq-section {
    background: white;
    padding: 60px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: #1a73e8;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease; /* @keyframes fadeIn dans 08-utils/animations.css */
}

/* Success message */
.success-message {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    display: none;
}

.success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 15px;
}

.success-message h3 {
    color: #155724;
    margin-bottom: 10px;
}

.success-message p {
    color: #155724;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        position: static;
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
    
    /* .form-row responsive → 09-responsive/mobile.css et tablet.css */

    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* .contact-hero h1 + p → page-base.css */

    .contact-info,
    .contact-form {
        padding: 25px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        padding: 40px 0;
    }
    
    .contact-grid {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    /* .contact-hero + h1 → page-base.css */

    .contact-info,
    .contact-form {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .checkbox-item,
    .radio-item {
        padding: 8px;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .examples-section {
        padding: 20px;
    }
    
    .examples-title {
        font-size: 1.2rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 15px 0;
    }
    
    .map-container {
        height: 300px;
    }
}