/* Contact Page Styles */

/* Container principal */
.contact-container {
    padding-top: 140px;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
    padding-bottom: 80px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    padding-bottom: 30px;
    margin-top: 20px;
}

.contact-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.contact-subtitle {
    font-size: 18px;
    color: var(--silver);
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.4s both;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Formulaire de contact */
.contact-form-section {
    background: var(--white);
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 0;
    padding: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSection 0.6s ease 0.2s forwards;
}

.contact-form-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(206, 28, 28, 0.01),
        transparent
    );
    transition: left 0.6s ease;
}

.contact-form-section:hover::before {
    left: 100%;
}

.contact-form-section:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(26, 26, 26, 0.15);
}

.section-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--accent);
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(26, 26, 26, 0.15);
    border-radius: 0;
    background: var(--cream);
    color: var(--charcoal);
    font-size: 15px;
    font-weight: 300;
    font-family: "Inter", sans-serif;
    transition: all 0.3s ease;
    resize: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(206, 28, 28, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    background: linear-gradient(135deg, var(--charcoal) 0%, #2a2a2a 100%);
    color: var(--cream);
    border: none;
    padding: 18px 40px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.form-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.3s ease;
}

.form-submit:hover::before {
    left: 0;
}

.form-submit span {
    position: relative;
    z-index: 1;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Informations de contact */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-card {
    background: var(--white);
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 0;
    padding: 40px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSection 0.6s ease forwards;
}

.info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(206, 28, 28, 0.01),
        transparent
    );
    transition: left 0.6s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(26, 26, 26, 0.15);
    transform: translateY(-5px);
}

.info-card h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 10px;
    position: relative;
}

.info-card h3::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.info-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--silver);
    margin-bottom: 15px;
    font-weight: 300;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.info-card a:hover {
    opacity: 0.7;
}

/* Disponibilité */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-top: 15px;
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Plateformes section */
.platforms-section {
    grid-column: 1 / -1;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSection 0.6s ease 0.6s forwards;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.platform-card {
    background: var(--white);
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 0;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(206, 28, 28, 0.02),
        transparent
    );
    transition: left 0.6s ease;
}

.platform-card:hover::before {
    left: 100%;
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.platform-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.platform-card:hover .platform-icon {
    opacity: 1;
    transform: scale(1.1);
}

.platform-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.platform-desc {
    font-size: 13px;
    color: var(--silver);
    font-weight: 300;
}

.platform-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Navigation de retour */
.back-navigation {
    position: fixed;
    top: 40px;
    left: 60px;
    z-index: 1001;
    animation: fadeIn 1s ease 0.8s both;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--silver);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    background: rgba(250, 249, 247, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 50px;
}

.back-link:hover {
    color: var(--accent);
    transform: translateX(-5px);
    border-color: rgba(206, 28, 28, 0.2);
}

.back-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-3px);
}

/* Animation delays pour les cards */
.info-card:nth-child(1) {
    animation-delay: 0.3s;
}
.info-card:nth-child(2) {
    animation-delay: 0.4s;
}
.info-card:nth-child(3) {
    animation-delay: 0.5s;
}

/* États de validation du formulaire */
.form-input.error,
.form-textarea.error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.form-input.success,
.form-textarea.success {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.form-message {
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 20px;
    text-align: center;
}

.form-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.form-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding-top: 120px;
        padding-left: 30px;
        padding-right: 30px;
        padding-bottom: 60px;
    }

    .back-navigation {
        top: 30px;
        left: 30px;
    }

    .contact-form-section,
    .info-card {
        padding: 30px 25px;
    }

    .contact-header {
        margin-bottom: 40px;
        padding-bottom: 20px;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .platform-card {
        padding: 25px 20px;
    }

    .back-link {
        padding: 10px 16px;
        font-size: 12px;
    }
}
