/**
 * CONTACT PAGE - DARK FIX
 * Force les éléments blancs à être sombres
 */

/* ============================================
   BANNER ANIMÉ
   ============================================ */
.contact-hero {
    position: relative;
    padding: 140px 0 100px;
    text-align: center;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: linear-gradient(135deg, #0a0a0b 0%, #1a0f10 50%, #0a0a0b 100%);
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, transparent 0%, rgba(230, 57, 70, 0.03) 50%, transparent 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(230, 57, 70, 0.03) 2px, rgba(230, 57, 70, 0.03) 4px);
    z-index: 0;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(50px) translateX(50px); }
}

.contact-hero::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: -400px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(230, 57, 70, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.contact-hero .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.contact-hero .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 107, 122, 0.9), rgba(230, 57, 70, 0.4));
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.6), 0 0 40px rgba(230, 57, 70, 0.3);
    opacity: 0;
    animation: floatParticles 15s infinite ease-in-out;
    filter: blur(0.5px);
}

.contact-hero .particle:nth-child(2n) {
    animation-duration: 18s;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.5);
}

.contact-hero .particle:nth-child(3n) {
    animation-duration: 12s;
    background: radial-gradient(circle at 30% 30%, rgba(230, 57, 70, 1), rgba(255, 107, 122, 0.3));
}

.contact-hero .particle:nth-child(5n) {
    filter: blur(1px);
    width: 6px;
    height: 6px;
}

@keyframes floatParticles {
    0% { opacity: 0; transform: translateY(110vh) translateX(0) scale(0); }
    5% { opacity: 0.8; }
    50% { transform: translateY(50vh) translateX(30px) scale(1.2); }
    95% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-10vh) translateX(-20px) scale(0.8); }
}

.contact-hero .container {
    position: relative;
    z-index: 3;
}

.contact-hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 30px;
    opacity: 0;
    letter-spacing: -0.02em;
    animation: slideInScale 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.contact-hero p {
    color: #a1a1aa;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    font-weight: 300;
    letter-spacing: 0.02em;
    animation: slideInScale 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
    line-height: 1.8;
}

@keyframes slideInScale {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================
   PAGE CONTENT
   ============================================ */

/* Force background sombre pour toute la page */
.contact-page {
    background: #0a0a0b !important;
}

/* Contact cards - Force dark */
.contact-cards .contact-card {
    background: linear-gradient(145deg, rgba(30, 30, 32, 0.8), rgba(20, 20, 22, 0.8)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
}

.contact-card h3 {
    color: #ffffff !important;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Section formulaire */
.contact-form-section {
    background: linear-gradient(145deg, rgba(30, 30, 32, 0.8), rgba(20, 20, 22, 0.8)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
}

.contact-form-section h2 {
    color: #ffffff !important;
}

/* Formulaire - Layout amélioré */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form .form-group label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px;
    color: #ffffff !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--color-primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.contact-form .form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-form .form-group select option {
    background: #1a1a1c !important;
    color: #ffffff !important;
    padding: 10px;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Responsive formulaire */
@media (max-width: 600px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Info card (Nos coordonnées) - FORCE DARK */
.contact-info .info-card {
    background: linear-gradient(145deg, rgba(30, 30, 32, 0.8), rgba(20, 20, 22, 0.8)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
}

.contact-info .info-card h3 {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Info items - FORCE DARK */
.contact-info .info-item {
    background: transparent !important;
    border: none !important;
    padding: 16px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.contact-info .info-item:hover {
    background: rgba(230, 57, 70, 0.05) !important;
}

.contact-info .info-item strong {
    color: #ffffff !important;
}

.contact-info .info-item p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.contact-info .info-item a {
    color: var(--color-primary) !important;
}

.contact-info .info-item div {
    background: transparent !important;
}

/* Info icon */
.info-icon {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(255, 107, 107, 0.1)) !important;
    border: 1px solid rgba(230, 57, 70, 0.3) !important;
}

/* Horaires */
.horaires {
    background: transparent !important;
}

.horaire-row {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.horaire-row:last-child {
    border-bottom: none !important;
}

.horaire-row span {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Success/Error messages */
.success-message {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05)) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    color: #22c55e !important;
}

.error-message,
.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05)) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
}

/* Map container (si présent) */
.map-container {
    background: rgba(20, 20, 22, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Form errors */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: rgba(239, 68, 68, 0.6) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.error-text {
    color: #ef4444 !important;
}

/* FAQ si présent */
.faq-item {
    background: rgba(30, 30, 32, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.faq-question {
    color: #ffffff !important;
}

.faq-answer {
    color: rgba(255, 255, 255, 0.8) !important;
}
/* Styles spécifiques à la page contact - Dark Theme Premium */
body { background: #0a0a0b; }

.contact-page {
    padding-bottom: var(--space-20);
    background: #0a0a0b;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin: var(--space-10) 0;
}

.contact-card {
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-fast);
}

.contact-card:hover {
    border-color: rgba(230, 57, 70, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(230, 57, 70, 0.15);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    font-size: 26px;
    color: var(--color-primary);
}

.contact-card h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: #ffffff;
    margin-bottom: var(--space-3);
}

.contact-card p {
    color: #a1a1aa;
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-5);
    line-height: 1.6;
}

.contact-card .btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.contact-card .btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(230, 57, 70, 0.1);
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-full);
}

.availability-badge .dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-8);
}

.contact-form-section {
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}

.contact-form-section h2 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: #ffffff;
    margin-bottom: var(--space-6);
}

.contact-form .form-group label {
    color: #ffffff;
    font-weight: var(--font-weight-medium);
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: var(--radius-lg);
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: #71717a;
}

.contact-form .form-group select {
    cursor: pointer;
}

.contact-form .form-group select option {
    background: #1a1a1c;
    color: #ffffff;
}

.success-message {
    text-align: center;
    padding: var(--space-12);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    font-size: 40px;
    color: #4ade80;
}

.success-message h2 {
    font-size: var(--font-size-2xl);
    color: #ffffff;
    margin-bottom: var(--space-3);
}

.success-message p {
    color: #a1a1aa;
    margin-bottom: var(--space-8);
}

.contact-info .info-card {
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.contact-info .info-card h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: #ffffff;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info .info-item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.contact-info .info-item:last-child {
    margin-bottom: 0;
}

.contact-info .info-item strong {
    color: #ffffff;
    display: block;
    margin-bottom: var(--space-1);
}

.contact-info .info-item p {
    color: #a1a1aa;
    margin: 0;
}

.contact-info .info-item a {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.contact-info .info-item a:hover {
    color: #ff6b7a;
}

.info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(230, 57, 70, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    border: none;
}

.horaires {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.horaire-row {
    display: flex;
    justify-content: space-between;
    color: #a1a1aa;
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.horaire-row:last-child {
    border-bottom: none;
}

.horaire-row .closed {
    color: #f87171;
}

.error-text {
    display: block;
    color: #f87171;
    font-size: var(--font-size-sm);
    margin-top: var(--space-1);
}

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

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

@media (max-width: 1024px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form-section {
        padding: var(--space-6);
    }
}

/* ============================================
   THÈME CLAIR
   ============================================ */

/* Body & Page */
[data-theme="light"] body {
    background: #f8f9fa !important;
}

[data-theme="light"] .contact-page {
    background: #f8f9fa !important;
}

/* Hero Banner */
[data-theme="light"] .contact-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
}

[data-theme="light"] .contact-hero::before {
    background-image:
        linear-gradient(90deg, transparent 0%, rgba(230, 57, 70, 0.05) 50%, transparent 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(230, 57, 70, 0.05) 2px, rgba(230, 57, 70, 0.05) 4px);
}

[data-theme="light"] .contact-hero::after {
    background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, transparent 70%);
}

[data-theme="light"] .contact-hero h1 {
    color: #1a1a1a;
}

[data-theme="light"] .contact-hero p {
    color: #525252;
}

[data-theme="light"] .contact-hero .particle {
    background: radial-gradient(circle at 30% 30%, rgba(230, 57, 70, 0.7), rgba(230, 57, 70, 0.3));
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.4), 0 0 30px rgba(230, 57, 70, 0.2);
}

/* Contact Cards */
[data-theme="light"] .contact-card,
[data-theme="light"] .contact-cards .contact-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .contact-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .contact-card h3 {
    color: #1a1a1a !important;
}

[data-theme="light"] .contact-card p {
    color: #525252 !important;
}

[data-theme="light"] .contact-card-icon {
    background: rgba(230, 57, 70, 0.1) !important;
}

[data-theme="light"] .contact-card .btn-outline {
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

[data-theme="light"] .contact-card .btn-outline:hover {
    background: rgba(230, 57, 70, 0.05);
    border-color: #e63946;
}

[data-theme="light"] .availability-badge {
    background: rgba(34, 197, 94, 0.1);
}

/* Form Section */
[data-theme="light"] .contact-form-section {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .contact-form-section h2 {
    color: #1a1a1a !important;
}

[data-theme="light"] .contact-form .form-group label {
    color: #1a1a1a !important;
}

[data-theme="light"] .contact-form .form-group input,
[data-theme="light"] .contact-form .form-group select,
[data-theme="light"] .contact-form .form-group textarea {
    background: #f8f9fa !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .contact-form .form-group input::placeholder,
[data-theme="light"] .contact-form .form-group textarea::placeholder {
    color: #9ca3af !important;
}

[data-theme="light"] .contact-form .form-group input:focus,
[data-theme="light"] .contact-form .form-group select:focus,
[data-theme="light"] .contact-form .form-group textarea:focus {
    background: #ffffff !important;
    border-color: #e63946 !important;
}

[data-theme="light"] .contact-form .form-group select {
    background-color: #f8f9fa !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23525252' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
}

[data-theme="light"] .contact-form .form-group select option {
    background: #ffffff !important;
    color: #1a1a1a !important;
    padding: 10px;
}

[data-theme="light"] .contact-form select,
[data-theme="light"] .contact-form-section select {
    background-color: #f8f9fa !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .contact-form select option,
[data-theme="light"] .contact-form-section select option {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

/* Info Cards */
[data-theme="light"] .contact-info .info-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .contact-info .info-card h3 {
    color: #1a1a1a !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .contact-info .info-item strong {
    color: #1a1a1a !important;
}

[data-theme="light"] .contact-info .info-item p {
    color: #525252 !important;
}

[data-theme="light"] .contact-info .info-item a {
    color: #e63946 !important;
}

[data-theme="light"] .info-icon {
    background: rgba(230, 57, 70, 0.1) !important;
}

/* Horaires */
[data-theme="light"] .horaires {
    background: transparent !important;
}

[data-theme="light"] .horaire-row {
    color: #525252 !important;
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .horaire-row span {
    color: #525252 !important;
}

[data-theme="light"] .horaire-row .closed {
    color: #ef4444 !important;
}

/* Success Message */
[data-theme="light"] .success-message h2 {
    color: #1a1a1a;
}

[data-theme="light"] .success-message p {
    color: #525252;
}

[data-theme="light"] .success-icon {
    background: rgba(34, 197, 94, 0.1);
}

/* Alerts */
[data-theme="light"] .alert-error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .error-text {
    color: #ef4444 !important;
}
