/* ===========================
   Contact Page Specific Styles
   =========================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0;
}

.contact-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Contact Info */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 100px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.contact-info h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: white;
}

.info-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-card h3 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-light);
    font-weight: 500;
}

.info-card p {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.info-card small {
    color: var(--text-light);
    font-size: 0.85rem;
}

.urgency-box {
    background: linear-gradient(135deg, #FED7D7 0%, #FEB2B2 100%);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.urgency-box h3 {
    color: #C53030;
    margin-bottom: 0.5rem;
}

.urgency-box p {
    color: #742A2A;
    margin-bottom: 0.5rem;
}

.urgency-note {
    font-size: 0.85rem;
    font-style: italic;
}

.response-guarantee {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.response-guarantee h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.response-guarantee ul {
    list-style: none;
}

.response-guarantee li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-form-wrapper > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 122, 123, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #E53E3E;
}

.error-message {
    color: #E53E3E;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin: 10px;
}

.form-submit {
    text-align: center;
    padding-top: 2rem;
}

.form-submit .btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(44, 122, 123, 0.3);
}

.form-submit .btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(44, 122, 123, 0.4);
}

.form-submit .btn-primary:active {
    transform: translateY(0);
}

.form-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.privacy-note {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.privacy-note a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Zone Map Section */
.zone-map-section {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.zone-map-section h2 {
    margin-bottom: 1rem;
}

.zone-map-section > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.zone-map {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.zone-list {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
}

.zone-list h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: left;
}

.zone-list ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.zone-list li {
    padding: 0.5rem;
    background: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zone-list strong {
    color: var(--text-dark);
}

.zone-note {
    background: rgba(44, 122, 123, 0.1);
    padding: 1rem;
    border-radius: var(--radius);
    color: var(--primary-color);
    font-weight: 500;
    text-align: center;
}

/* Success Message */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    max-width: calc(100vw - 40px);
    word-wrap: break-word;
}

.alert-success {
    background: #48BB78;
    color: white;
}

.alert-error {
    background: #F56565;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Desktop: cartes en ligne pour largeur suffisante */
@media (min-width: 1200px) {
    .contact-wrapper {
        grid-template-columns: 400px 1fr;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        position: static;
    }

    /* Cartes en grille 3 colonnes sur tablette/desktop sans sidebar */
    .info-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .zone-list ul {
        grid-template-columns: 1fr;
    }

    /* Cartes en colonne sur mobile */
    .info-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 2rem 0;
    }

    .contact-info {
        padding: 1.5rem;
        max-width: 100%;
        overflow: hidden;
    }

    .contact-info h2,
    .contact-info > p,
    .info-cards,
    .info-card {
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .zone-map-section {
        padding: 2rem 1.5rem;
    }

    .checkbox-group label {
        font-size: 0.9rem;
        padding: 10px;
        min-height: 44px;
        align-items: center;
    }

    .alert {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}