/* ========================================
   PAGE CONTACT — REDESIGN EDITORIAL
   Utilise les variables de style-modern.css
   ======================================== */

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */
.contact-main {
    background: #faf8f5;
    min-height: 100vh;
    padding-top: 90px;
}

/* ========================================
   HERO CONTACT
   ======================================== */
.contact-hero {
    position: relative;
    background: #0d3b66;
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #d4a017;
}

.contact-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(212, 160, 23, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
}

.contact-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 700px;
}

.page-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: none;
    animation: heroSlideIn 0.8s ease forwards;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #d4a017;
    margin-top: 1.2rem;
}

.hero-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 550px;
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 1.7;
    animation: heroSlideIn 0.8s ease 0.15s backwards;
}

/* ========================================
   SECTION CONTACT
   ======================================== */
.contact-section {
    padding: 4rem 0 5rem;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* ========================================
   EN-TÊTES
   ======================================== */
.section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.icon-wrapper {
    display: none;
}

.section-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    color: #111827;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #d4a017;
    margin-top: 0.8rem;
}

.section-header p {
    color: #6b7280;
    font-family: 'Raleway', sans-serif;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-top: 1rem;
}

/* ========================================
   CONTENEURS FORMULAIRE & INFOS
   ======================================== */
.contact-form-container,
.contact-info-container {
    background: #ffffff;
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    animation: fadeUp 0.6s ease forwards;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #0d3b66;
    border-radius: 0;
}

.contact-info-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #d4a017;
    border-radius: 0;
}

/* ========================================
   FORMULAIRE
   ======================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    transition: all 0.3s ease;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #0d3b66;
    font-size: 0.75rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.85rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    font-size: 0.92rem;
    font-family: 'Raleway', sans-serif;
    color: #111827;
    transition: all 0.25s ease;
    background: #faf8f5;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0d3b66;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
    font-weight: 300;
}

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

.form-group.focused label {
    color: #0d3b66;
}

/* ========================================
   BOUTON SUBMIT
   ======================================== */
.btn-submit {
    margin-top: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: #0d3b66;
    color: #ffffff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(13, 59, 102, 0.25);
}

.btn-submit:hover {
    background: #082845;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 59, 102, 0.35);
}

.btn-submit.success {
    background: #1a6b3c;
}

/* ========================================
   INFOS DE CONTACT
   ======================================== */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.2rem;
    background: #faf8f5;
    border: 1px solid #f3f4f6;
    border-radius: 0;
    transition: all 0.25s ease;
}

.contact-info-item:hover {
    border-left: 3px solid #0d3b66;
    padding-left: calc(1.2rem - 2px);
    background: #f9fafb;
}

.info-icon {
    min-width: 42px;
    height: 42px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
}

.info-icon.blue {
    background: #0d3b66;
}

.info-icon.red {
    background: #d4a017;
}

.contact-info-content h4 {
    margin: 0 0 0.25rem 0;
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #111827;
}

.contact-info-content p {
    margin: 0.2rem 0;
    color: #6b7280;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-info-content a {
    color: #0d3b66;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-info-content a:hover {
    color: #d4a017;
}

/* ========================================
   RÉSEAUX SOCIAUX
   ======================================== */
.social-section {
    text-align: left;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.social-section h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7280;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s ease;
    border: 1px solid #e5e7eb;
    background: #faf8f5;
    color: #4b5563;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.social-link.facebook {
    background: #faf8f5;
    color: #0d3b66;
    border-color: #d1d5db;
}

.social-link.facebook:hover {
    background: #0d3b66;
    color: #ffffff;
    border-color: #0d3b66;
}

.social-link.twitter {
    background: #faf8f5;
    color: #0d3b66;
    border-color: #d1d5db;
}

.social-link.twitter:hover {
    background: #0d3b66;
    color: #ffffff;
    border-color: #0d3b66;
}

.social-link.instagram {
    background: #faf8f5;
    color: #0d3b66;
    border-color: #d1d5db;
}

.social-link.instagram:hover {
    background: #c0392b;
    color: #ffffff;
    border-color: #c0392b;
}

.social-link.youtube {
    background: #faf8f5;
    color: #c0392b;
    border-color: #d1d5db;
}

.social-link.youtube:hover {
    background: #c0392b;
    color: #ffffff;
    border-color: #c0392b;
}

/* ========================================
   CARTE
   ======================================== */
.map-section {
    margin-top: 3rem;
}

.map-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    color: #111827;
    margin-bottom: 1.5rem;
    text-align: left;
}

.map-section h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #d4a017;
    margin-top: 0.6rem;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    animation: fadeUp 0.6s ease 0.2s backwards;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(15%) contrast(1.05);
    transition: filter 0.4s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) contrast(1);
}

/* ========================================
   ALERTES PHP
   ======================================== */
.alert-success-php {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    border-radius: 0;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    animation: fadeUp 0.5s ease;
}

.alert-success-php i {
    font-size: 1.3rem;
    color: #22c55e;
}

.alert-error-php {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 0;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    animation: fadeUp 0.5s ease;
}

.alert-error-php i {
    font-size: 1.3rem;
    color: #ef4444;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .contact-container {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-main {
        padding-top: 70px;
    }

    .contact-hero {
        padding: 3.5rem 0 3rem;
    }

    .contact-hero .hero-content {
        text-align: center;
    }

    .page-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        margin: 0 auto;
    }

    .contact-section {
        padding: 2.5rem 0 3rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .contact-form-container,
    .contact-info-container {
        padding: 2rem 1.5rem;
    }

    .section-header {
        text-align: center;
    }

    .section-header h2::after {
        margin-left: auto;
        margin-right: auto;
    }

    .social-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .map-section h2 {
        text-align: center;
    }

    .map-section h2::after {
        margin-left: auto;
        margin-right: auto;
    }

    .map-container {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .contact-form-container,
    .contact-info-container {
        padding: 1.5rem 1.2rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem 0.85rem;
        font-size: 0.88rem;
    }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .info-icon {
        min-width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .map-container {
        height: 280px;
    }
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   PRINT
   ======================================== */
@media print {
    .contact-hero,
    .social-section,
    .map-section {
        display: none;
    }
    .contact-form-container,
    .contact-info-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}