/* Theme Variables - Inherit from common.css */
:root {
    /* Mappings to common.css */
    --primary-bg: var(--card-background, #ffffff);
    --secondary-bg: var(--light-gray, #f8f9fa);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --primary-bg: var(--card-background, #1E1E1E);
    --secondary-bg: var(--dark-gray, #343A40);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --hover-color: rgba(255, 255, 255, 0.05);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(30deg);
}

/* Contact Hero Section */
.contact-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
                      radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.3), transparent 45%),
                      radial-gradient(circle at 80% 30%, rgba(255, 64, 129, 0.22), transparent 40%),
                      radial-gradient(circle at 50% 85%, rgba(0, 255, 136, 0.16), transparent 45%);
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 80px;
    animation: fadeIn 1s ease-out;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInDown 1s ease-out;
}

.contact-hero p {
    font-size: 1.2rem;
    animation: slideInUp 1s ease-out;
}

/* Contact Content Section */
.contact-content {
    padding: 5rem 0;
}

/* Contact Grid & Forms */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.contact-form {
    padding: 2rem;
    background: var(--card-background, #ffffff);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Contact Info Styles */
.contact-info {
    background-color: var(--light-gray, #f8f9fa);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-muted, #6c757d);
}

.contact-info .social-links {
    margin-top: 2rem;
}

.contact-info .social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s;
}

.contact-info .social-links a:hover {
    color: var(--secondary-color);
}

/* Discord Section */
.discord-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.discord-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.discord-info h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.discord-info p {
    color: var(--white);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.discord-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    padding: 2rem;
    background: var(--secondary-bg, #f8f9fa); /* Use fallback or map to common */
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--accent-color); /* Assuming --accent-color is defined elsewhere */
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feature p {
    color: var(--text-muted, #6c757d);
}

/* Support Options */
.support-options {
    padding: 5rem 0;
    background: var(--secondary-bg);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.support-card {
    background: var(--primary-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.support-card:hover {
    transform: translateY(-5px);
}

.support-card i {
    font-size: 2.5rem;
    color: var (--accent-color); /* Assuming --accent-color is defined elsewhere */
    margin-bottom: 1rem;
}

.support-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.support-card p {
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.support-card.premium {
    border: 2px solid var(--accent-color);
}

/* Advertising Section */
.advertising {
    padding: 5rem 0;
    background: var(--primary-bg);
}

.ad-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.ad-card {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.ad-card:hover {
    transform: translateY(-5px);
}

.ad-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.ad-card p {
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Map Section */
.map {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.map h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.map-container {
    height: 400px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #6c757d);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Discord Notice Box */
.discord-notice {
    padding: 3rem 0;
    background: rgba(114, 137, 218, 0.05);
}

.notice-box {
    background: #fff;
    border: 3px solid #7289da;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(114, 137, 218, 0.15);
    max-width: 800px;
    margin: 0 auto;
    transform: translateY(-20px);
}

.notice-content {
    text-align: center;
}

.notice-content h3 {
    color: #7289da;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.notice-content h3 i {
    color: #ffd700;
}

.notice-content p {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.notice-main {
    color: #e74c3c;
    font-weight: 600;
}

.notice-update {
    color: #2c3e50;
}

.notice-verify {
    color: #27ae60;
    margin-bottom: 0 !important;
}

/* Amélioration du bouton Discord sur la page contact */
.btn-discord-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(90deg, #7289da 0%, #5865F2 100%);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 1.1rem 2.5rem;
    box-shadow: 0 6px 24px rgba(114,137,218,0.15);
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    border: none;
    text-decoration: none;
    margin: 1.5rem 0 0.5rem 0;
    position: relative;
}

.btn-discord-hero:hover {
    background: linear-gradient(90deg, #5865F2 0%, #7289da 100%);
    box-shadow: 0 10px 32px rgba(114,137,218,0.22);
    transform: translateY(-2px) scale(1.03);
}

.discord-btn-icon {
    font-size: 2.2rem;
    color: #fff;
    background: #5865F2;
    border-radius: 50%;
    padding: 0.3rem 0.7rem;
    box-shadow: 0 2px 8px rgba(88,101,242,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-btn-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.discord-btn-note {
    font-size: 0.95em;
    color: #ffe066;
    font-weight: 500;
    margin-left: 0.5rem;
}

.discord-btn-updated {
    text-align: center;
    font-size: 0.95em;
    color: #888;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .btn-discord-hero {
        flex-direction: column;
        font-size: 1.05rem;
        padding: 0.8rem 1.2rem;
    }

    .discord-btn-icon {
        font-size: 1.7rem;
        padding: 0.2rem 0.5rem;
    }

    .discord-btn-text {
        font-size: 1.05rem;
    }

    .discord-btn-note {
        font-size: 0.9em;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-grid {
        gap: 2rem;
        margin: 2rem 1rem;
    }
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
    }

    .discord-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-hero {
        height: 300px;
        padding: 80px 0;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }

    .discord-features {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 2rem auto;
    }

    .support-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 2rem auto;
    }

    .notice-box {
        margin: 0 1rem;
        padding: 1.5rem;
    }

    .notice-content h3 {
        font-size: 1.5rem;
    }

    .notice-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        height: 250px;
        padding: 60px 0;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-hero p {
        font-size: 1rem;
    }

    .contact-form,
    .contact-info {
        padding: 1rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .info-item i {
        margin: 0;
    }

    .social-links {
        justify-content: center;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .support-card:hover {
        transform: none;
    }

    .btn:active {
        background-color: var(--accent-color-dark);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .contact-hero,
    .support-card,
    .btn {
        transition: none;
    }
}
