/*
╔══════════════════════════════════════════════════════════════╗
║  SOMMAIRE - CONTACT.CSS                                      ║
╠══════════════════════════════════════════════════════════════╣
║  1. Layout contact                                           ║
║  2. Carte informations                                       ║
║  3. Carte Google Maps                                        ║
║  4. Formulaire                                               ║
║  5. Message succès                                           ║
║  6. Responsive                                               ║
╚══════════════════════════════════════════════════════════════╝
*/

/* ═══════════════════════════════════════════════════════════════
   1. LAYOUT CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

/* ═══════════════════════════════════════════════════════════════
   2. CARTE INFORMATIONS
   ═══════════════════════════════════════════════════════════════ */
.contact-info {
    order: 2;
}

.info-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.info-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.info-item:last-of-type {
    border-bottom: none;
}

.info-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.info-label {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: var(--fs-sm);
    color: var(--color-text-primary);
    font-weight: var(--fw-medium);
}

a.info-value:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   3. CARTE GOOGLE MAPS
   ═══════════════════════════════════════════════════════════════ */
.map-container {
    margin: var(--space-xl) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.map-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-tertiary);
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
}

.map-header i {
    color: var(--color-text-muted);
}

.map-frame {
    position: relative;
    aspect-ratio: 16/9;
    min-height: 200px;
}

.map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(100%) invert(92%) contrast(90%);
}

body.light-mode .map-frame iframe {
    filter: grayscale(100%) contrast(90%);
}

/* Réseaux sociaux */
.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.contact-info .social-link {
    width: 48px;
    height: 48px;
    font-size: var(--fs-lg);
}

/* ═══════════════════════════════════════════════════════════════
   4. FORMULAIRE
   ═══════════════════════════════════════════════════════════════ */
.contact-form-wrapper {
    order: 1;
}

.contact-form {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.form-input {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--fs-base);
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(237, 237, 237, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.input-line {
    display: block;
    height: 2px;
    background: var(--color-border);
    margin-top: var(--space-xs);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.input-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.form-input:focus + .input-line::after {
    width: 100%;
}

.btn-submit {
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--color-bg-primary);
    background: var(--color-text-primary);
    border: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-submit:hover {
    background: var(--color-text-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit:active {
    transform: translateY(0);
}

/* État loading */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════
   5. MESSAGE SUCCÈS
   ═══════════════════════════════════════════════════════════════ */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    animation: fadeIn 0.5s ease;
}

.form-success.show {
    display: flex;
}

.success-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(39, 202, 64, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.success-icon i {
    font-size: var(--fs-3xl);
    color: #27ca40;
}

.form-success h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-sm);
}

.form-success p {
    color: var(--color-text-muted);
    margin: 0;
}

/* Masquer le formulaire quand succès */
.contact-form.hidden {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   6. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-info {
        order: 1;
    }
    
    .contact-form-wrapper {
        order: 2;
    }
}

@media (min-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--space-3xl);
    }
    
    .info-card,
    .contact-form {
        padding: var(--space-2xl);
    }
}
