/* ==========================================================================
   STYLE CONTACT & LINKTREE
   ========================================================================== */

body {
    background-color: #0b0c16;
    /* Fond sombre bleuté profond */
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    min-height: 100vh;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* Prend 100% de la largeur du navigateur */
    height: 100vh;
    /* Prend 100% de la hauteur du navigateur */
    object-fit: cover;
    /* Zoom et coupe la vidéo proprement pour remplir l'écran sans déformer */
    z-index: -100;
    /* Reste bien en arrière-plan */
    opacity: 0.25;
    /* Transparence pour garder les textes lisibles */
}

h1,
h2,
h3,
.btn-email-pro {
    font-family: 'Rajdhani', sans-serif;
}

/* --- STRUCTURE PRINCIPALE --- */
.contact-container {
    max-width: 1200px;
    margin: 80px auto 100px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        /* Passage sur une seule colonne sur mobile */
        gap: 40px;
    }

    .discord-container {
        flex-direction: column;
        align-items: stretch;
    }

    .discord-widget-box iframe {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
}

/* --- COLONNE GAUCHE (PROFIL) --- */
.profile-header {
    margin-bottom: 40px;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 10px 0;
}

.page-title span {
    color: #facc15;
    /* Le "et" commercial jaune */
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 400px;
}

/* --- CARTES DE LIENS --- */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 15px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.bg-red {
    background: #dc2626;
    color: white;
}

.bg-purple {
    background: #9333ea;
    color: white;
}

.bg-blurple {
    background: #5865F2;
    color: white;
}

.bg-black {
    background: #000000;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.link-texts {
    flex-grow: 1;
}

.link-texts h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
}

.link-texts p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.external-icon {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.link-card:hover .external-icon {
    color: #ffffff;
}

/* --- COLONNE DROITE (TEXTES) --- */
.info-box {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
}

.border-yellow {
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.border-blue {
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.info-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
}

.info-header i {
    font-size: 1.5rem;
}

.text-yellow {
    color: #facc15;
}

.text-blue {
    color: #3b82f6;
}

.info-box p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* --- BOUTON EMAIL --- */
.email-action-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.btn-email-pro {
    background: #eab308;
    color: #000000;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(234, 179, 8, 0.2);
}

.btn-email-pro:hover {
    background: #facc15;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(234, 179, 8, 0.4);
}

/* --- MODAL ANTI-ROBOT --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.bot-icon {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 15px;
}

.modal-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.math-challenge {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#math-answer {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px;
    border-radius: 8px;
    width: 80px;
    font-size: 1.2rem;
    text-align: center;
}

#math-answer:focus {
    outline: none;
    border-color: #3b82f6;
}

.error-msg {
    color: #ef4444 !important;
    display: none;
    margin-top: -10px !important;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-cancel,
.btn-verify {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.btn-verify {
    background: #3b82f6;
    color: white;
}

.btn-verify:hover {
    background: #2563eb;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 0 25px 0;
    text-align: center;
    color: #a855f7;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    letter-spacing: 1px;
}

.captcha-warning {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
    width: 100%;
}

/* --- DISCORD CONTAINER --- */
.discord-container {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.discord-container .link-card {
    flex: 1;
    min-width: 200px;
}

.discord-widget-box {
    display: flex;
    justify-content: center;
}

.discord-widget-box iframe {
    border-radius: 10px;
}