/* ==========================================================================
   ASAE Event - Stylesheet for Contact Page (contact.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. CONTEXTUAL HEADER INVERSION (Transparent header when light)
   -------------------------------------------------------------------------- */
.page-template-page-contact .site-header:not(.is-sticky) {
    border-bottom: 1px solid rgba(26, 24, 23, 0.08);
}

.page-template-page-contact .site-header:not(.is-sticky) .logo-text {
    color: var(--color-dark);
}

.page-template-page-contact .site-header:not(.is-sticky) .logo-text span {
    color: var(--color-bordeaux);
}

.page-template-page-contact .site-header:not(.is-sticky) .main-navigation a {
    color: var(--color-dark);
}

.page-template-page-contact .site-header:not(.is-sticky) .main-navigation a:hover {
    color: var(--color-bordeaux);
}

/* --------------------------------------------------------------------------
   1. HERO CONTACT
   -------------------------------------------------------------------------- */
.contact-hero-section {
    position: relative;
    padding: 220px 0 120px 0;
    background-color: var(--color-soie);
    text-align: center;
    overflow: hidden;
}

.contact-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-hero-tag {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-bordeaux);
    display: inline-block;
    margin-bottom: 16px;
}

.contact-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    line-height: 1.15;
    color: var(--color-dark);
    margin-bottom: 24px;
}

.contact-hero-line {
    width: 60px;
    height: 1px;
    background-color: var(--color-bordeaux);
    margin: 0 auto 30px auto;
}

.contact-hero-desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.75;
    color: #55514E;
}

.contact-hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape-sable {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 150%;
    background-color: var(--color-sable);
    border-radius: 50%;
    transform: rotate(15deg);
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   2. GRID FORMULAIRE & INFORMATIONS
   -------------------------------------------------------------------------- */
.contact-form-section {
    background-color: var(--color-sable);
    padding: 120px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

/* Sidebar d'infos */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.sidebar-info-block {
    background-color: var(--color-soie);
    padding: 40px;
    border: 1px solid rgba(26, 24, 23, 0.04);
}

.sidebar-meta {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-bordeaux);
    display: block;
    margin-bottom: 8px;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-dark);
    margin-bottom: 16px;
}

.sidebar-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #66625F;
}

.sidebar-details-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-left: 10px;
}

.sidebar-detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-icon {
    color: var(--color-bordeaux);
    font-size: 24px;
    margin-top: 2px;
}

.detail-content h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.detail-content p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #55514E;
}

/* Le Formulaire Wrapper */
.contact-form-wrapper {
    background-color: var(--color-soie);
    border: 1px solid rgba(26, 24, 23, 0.04);
    padding: 60px 48px;
    position: relative;
    box-shadow: 0 20px 40px rgba(26, 24, 23, 0.03);
}

/* Barre de progression */
.form-progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-muted);
    transition: color 0.4s ease;
}

.progress-step.active {
    color: var(--color-bordeaux);
}

.step-num {
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.progress-step.active .step-num {
    background-color: var(--color-bordeaux);
    border-color: var(--color-bordeaux);
    color: #FFFFFF;
}

.step-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.progress-line {
    height: 1px;
    flex-grow: 1;
    background-color: rgba(26, 24, 23, 0.08);
    margin: 0 16px;
    transition: background-color 0.4s ease;
}

.progress-step.active + .progress-line {
    background-color: var(--color-bordeaux);
}

/* Slides */
.form-step-slide {
    display: none;
}

.form-step-slide.active {
    display: block;
    animation: slideIn 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.step-slide-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.step-slide-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* Champs de formulaires */
.form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(26, 24, 23, 0.12);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-dark);
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-bordeaux);
    box-shadow: 0 4px 12px rgba(109, 7, 26, 0.04);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a1817'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

.budget-helper-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--color-bordeaux);
    line-height: 1.4;
    margin-top: 4px;
}

/* Actions */
.form-actions {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(26, 24, 23, 0.15);
    color: var(--color-dark);
    padding: 18px 32px;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-sable);
    border-color: var(--color-dark);
}

/* Messages d'état (Succès / Erreur) */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    box-sizing: border-box;
    z-index: 10;
}

.success-content {
    max-width: 480px;
}

.success-icon {
    font-size: 64px;
    color: var(--color-bordeaux);
    margin-bottom: 24px;
    display: block;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 16px;
}

.success-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #55514E;
}

.form-error-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(109, 7, 26, 0.05);
    border: 1px solid rgba(109, 7, 26, 0.15);
    padding: 16px 20px;
    margin-top: 24px;
}

.error-icon {
    color: var(--color-bordeaux);
    font-size: 20px;
}

.error-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-dark);
}

/* Animations de transition */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-sidebar {
        order: 2;
    }

    .contact-form-wrapper {
        order: 1;
    }
}

@media (max-width: 767px) {
    .contact-hero-section {
        padding: 160px 0 80px 0;
    }

    .contact-form-section {
        padding: 80px 0;
    }

    .contact-form-wrapper {
        padding: 40px 24px;
    }

    .form-progress-bar {
        margin-bottom: 32px;
    }

    .step-label {
        display: none; /* Cache les textes sur mobile pour éviter les chevauchements */
    }

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

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
        justify-content: center;
    }
}
