/* ========================================
   CONTACT PAGE - Against Stones
   Design épuré, moderne et minimaliste
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Gold */
    --gold-primary: #FFD700;
    --gold-secondary: #D4AF37;

    /* Backgrounds */
    --bg-primary: #0A0A0A;
    --bg-card: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 215, 0, 0.3);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-subtle: #64748B;
}

/* ========================================
   CONTACT CONTAINER
   ======================================== */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* ========================================
   HEADER
   ======================================== */
.contact-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    text-align: center;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg,
                var(--gold-primary) 0%,
                #FFFFFF 40%,
                #FFFFFF 60%,
                var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 48px 0;
    line-height: 1.6;
}

/* ========================================
   TABS - Pills style
   ======================================== */
.tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    padding: 12px 28px;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tab-btn.active {
    background: linear-gradient(135deg,
                var(--gold-primary) 0%,
                var(--gold-secondary) 100%);
    color: #000000;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ========================================
   SITE CONTENT
   ======================================== */
.site-content {
    animation: fadeIn 0.5s ease;
}

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

.site-name {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.site-address {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 32px 0;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--gold-primary);
    border-radius: 8px;
}

.site-address strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   MAP CONTAINER
   ======================================== */
.map-container {
    width: 100%;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
    border: 1.5px solid var(--border-subtle);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-container:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(255, 215, 0, 0.2);
    transform: translateY(-4px);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================
   SITE DESCRIPTION
   ======================================== */
.site-description {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-form {
    padding: 32px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 90%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid var(--border-subtle);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-subtle);
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1),
                inset 0 2px 6px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.form-group input:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
    border-color: rgba(255, 215, 0, 0.2);
}

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

/* ========================================
   SUBMIT BUTTON - Premium
   ======================================== */
.btn-submit {
    width: 100%;
    height: 60px;
    padding: 0 32px;
    background: linear-gradient(135deg,
                var(--gold-primary) 0%,
                var(--gold-secondary) 100%);
    border: none;
    border-radius: 14px;
    color: #000;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Shine effect */
.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.4) 50%,
                transparent 100%);
    transition: left 0.6s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 768px) {
    .contact-container {
        padding: 60px 32px;
    }

    .contact-title {
        font-size: 32px;
    }

    .contact-subtitle {
        font-size: 15px;
        margin-bottom: 36px;
    }

    .tabs {
        gap: 8px;
        padding: 6px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .site-name {
        font-size: 24px;
    }

    .map-container {
        height: 320px;
        border-radius: 16px;
        margin-bottom: 28px;
    }

    .site-description {
        padding: 20px;
        margin-bottom: 32px;
    }

    .contact-form {
        padding: 28px;
        border-radius: 16px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }

    .btn-submit {
        height: 56px;
        font-size: 16px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 480px) {
    .contact-container {
        padding: 40px 20px;
    }

    .contact-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .contact-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .tabs {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }

    .tab-btn {
        width: 100%;
        padding: 12px 20px;
        text-align: center;
    }

    .site-name {
        font-size: 22px;
    }

    .site-address {
        padding: 16px 20px;
        font-size: 14px;
    }

    .map-container {
        height: 280px;
        border-radius: 14px;
        margin-bottom: 24px;
    }

    .site-description {
        padding: 18px;
        font-size: 14px;
        margin-bottom: 28px;
    }

    .contact-form {
        padding: 24px;
        border-radius: 16px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 18px;
        font-size: 14px;
        border-radius: 12px;
    }

    .form-group textarea {
        min-height: 130px;
    }

    .btn-submit {
        height: 54px;
        font-size: 15px;
        border-radius: 12px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.tab-btn:focus-visible,
.btn-submit:focus-visible,
.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .contact-form,
    .map-container,
    .tabs {
        border-width: 2px;
    }

    .form-group input,
    .form-group textarea {
        border-width: 2px;
    }
}

/* ========================================
   LOADING STATE (optionnel)
   ======================================== */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    z-index: 1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   SUCCESS MESSAGE (optionnel)
   ======================================== */
.success-message {
    padding: 20px 24px;
    background: rgba(34, 197, 94, 0.15);
    border: 1.5px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    color: #22C55E;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    animation: fadeIn 0.5s ease;
}

.success-message::before {
    content: '✓';
    margin-right: 8px;
    font-size: 18px;
}

.error-message {
    padding: 20px 24px;
    background: rgba(239, 68, 68, 0.15);
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #EF4444;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-message::before {
    content: '⚠';
    margin-right: 8px;
    font-size: 18px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .tabs,
    .contact-form,
    .btn-submit {
        display: none;
    }

    .map-container {
        box-shadow: none;
        border: 1px solid #333;
    }

    .site-description {
        box-shadow: none;
        border: 1px solid #333;
    }
}
