/* rien */
/* Contact Page Styles - Arthur Schick Game Audio Portfolio */

/* Import des polices depuis le CSS principal */
@font-face {
    font-family: 'CourierPrime';
    src: url('../fonts/CourierPrime.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-stretch: condensed;
}

@font-face {
    font-family: 'CourierThin';
    src: url('../fonts/CourierThin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'MatrixZone';
    src: url('../fonts/MatrixZone.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SpecialElite';
    src: url('../fonts/SpecialElite.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

/* Reset et base - FORCER LE BOX-SIZING ET SUPPRIMER TOUS LES CONTOURS PARASITES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

:root {
    --text-light: #f8d7da;
    --accent-pink: #ef87c0;
    --background: #000;
    --card-bg: rgba(0, 0, 0, 0.6);
    --card-border: rgba(255, 110, 199, 0.3);
    
    --scale-ratio: 1;
    --responsive-scale: 1;
    --responsive-margin-left: 0px;
    --responsive-margin-left2: 0px;
    --current-aspect: 1.78;
    --reference-aspect: 1.78;
    --vertical-scale: 1;
    --footer-margin-top: 120px;  /* Valeur par defaut */
}

/* Structure html comme about.css */
html {
    width: 100%;
    height: 100%;
}

/* Configuration body IDENTIQUE Ã€ about.css - TRANSFORMATIONS RETIRÃ‰ES */
body {
    font-family: 'CourierPrime', monospace;
    font-weight: 100;
    font-stretch: condensed;
    background-color: var(--background);
    color: var(--text-light);
    background-image: url('../images/background/bg_7.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    align-items: center;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-width: 100vw;
    overflow-x: hidden;
}

/* Scrollbar personnalisÃ©e pour le body */
body::-webkit-scrollbar {
    width: 1vh;
}

body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb {
    background: rgba(255, 110, 199, 0.5);
    border-radius: 0.1vh;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 110, 199, 0.7);
}

/* Navigation - MODIFIÉE avec échelle responsive */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(var(--responsive-scale));
    transform-origin: top center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    height: 60px;
    width: 1560px;
}

.nav-brand {
    transition: all 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.1);
}

.nav-brand a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 18px;
    font-weight: 100;
    font-stretch: condensed;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 18px;
    font-weight: 100;
    font-stretch: condensed;
    transition: all 0.3s ease;

}

.nav-link:hover {
    transform: scale(1.2);
}

.nav-link.active {
    color: var( --accent-pink);
}

/* Main Content - IDENTIQUE Ã€ ABOUT.CSS */
.main-content {
    padding: 0px 0px 0px 0px;
    width: 1500px;
    margin-left: var(--responsive-margin-left);
    transform-origin: top center;
    transform: translateX(20px);
    scale: var(--responsive-scale);
}

/* Section intro */
.intro-section {
    text-align: center;
    margin-bottom: 30px;
}

.intro-text {
    font-family: 'SpecialElite', 'CourierPrime', monospace;
    font-size: 32px;
    color: var(--accent-pink);
    font-weight: 100;
}

/* Contact Container */
.contact-container {
    width: 1000px;
    margin: 0 auto -280px auto;
}

/* Formulaire de Contact - BORDURES UNIFORMES ET FIXES */
.contact-form-section {
    background: rgba(255, 110, 199, 0.1);
    border: 2px solid rgba(255, 110, 199, 0.3);
    border-radius: 10px;
    padding: 30px;
    width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
    outline: none;
    margin-bottom: -350px;
}

/* Ligne de formulaire - largeurs fixes plutÃ´t que flex */
.form-row {
    display: grid;
    grid-template-columns: 240px 240px 480px;
    gap: 10px;
    margin-bottom: 20px;
    width: 975px;
}

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

/* Largeurs fixes comme les expertise-block */
.form-group.quarter-width {
    width: 220px;
    margin-bottom: 0;
    box-sizing: border-box;
}

/* Largeur fixe pour email */
.form-group.half-width {
    width: 440px;
    margin-bottom: 0;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    font-family: 'CourierThin', monospace;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 9px 11px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 110, 199, 0.4);
    border-radius: 5px;
    color: var(--text-light);
    font-family: 'CourierPrime', monospace;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none !important;
    border-color: rgba(255, 110, 199, 0.4) !important;
    box-shadow: none !important;
}

/* Suppression du fond blanc de l'autocomplÃ©tion */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: var(--text-light) !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--text-light) !important;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    /* Force le même comportement que les inputs sur mobile */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Media query spécifique pour mobile - ajuste la taille de police de la textarea */
@media screen and (max-width: 768px) {
    .form-group textarea {
        font-size: 14px;
    }
}

.message-container {
    position: relative;
}

/* Message d'erreur personnalisÃ© */
.error-message {
    display: none;
    position: absolute;
    margin-left: 5px;
    left: 0;
    color: #f8e5e8;
    font-family: 'CourierPrime', monospace;
    font-size: 13px;
    z-index: 10;
}

@keyframes blink {
    0%, 33%, 66%, 100% {
        opacity: 1;
    }
    16.5%, 50%, 83% {
        opacity: 0;
    }
}

.error-message.blinking {
    animation: blink 0.6s ease-in-out;
}

.submit-btn {
    display: flex;
    margin: -10px 0 -20px auto;
    width: auto;
    padding: 5px 10px;
    background: linear-gradient(45deg, rgba(255, 110, 199, 0.2), rgba(255, 110, 199, 0.4));
    border-bottom: 1px solid var(--accent-pink);
    border-left: 1px solid var(--accent-pink);
    border-right: 1px solid var(--accent-pink);
    border-top: none;
    border-radius: 1px;
    color: var(--text-light);
    font-family: 'CourierPrime', monospace;
    font-size: 14px;
    cursor: pointer;
}

.submit-btn:hover {
    background: linear-gradient(45deg, rgba(255, 110, 199, 0.4), rgba(255, 110, 199, 0.6));
}

/* Liens sociaux Ã  l'intÃ©rieur du formulaire - 3 COLONNES x 2 LIGNES */
.social-links {
    display: grid;
    grid-template-columns: 300px 300px 300px;
    grid-template-rows: 50px 50px;
    gap: 30px;
    margin-top: 50px;
    width: 940px;
    margin-left: auto;
    margin-right: auto;
}

/* Structure normale pour TOUS les contact-item */
.contact-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 5px;
    align-items: center;
    width: 300px;
    height: 50px;
}

/* Structure spÃ©ciale UNIQUEMENT pour l'item tÃ©lÃ©phone qui contient 2 boutons */
.contact-item:has(div[style*="display: flex"]) {
    grid-template-columns: 90px 1fr;
}

/* Pour l'item tÃ©lÃ©phone qui a deux boutons - doit tenir dans 90px */
.contact-item div {
    display: grid;
    grid-template-columns: 40px 40px;
    gap: 5px;
    width: 85px;
    height: 40px;
}

.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 110, 199, 0.3);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none !important;
}

.icon-button:hover {
    border: 1px solid rgba(239, 135, 192, 1);
    background: rgba(255, 110, 199, 0.1);
    transform: scale(1.1);
    outline: none !important;
}

.icon-button:focus {
    border: 1px solid rgba(239, 135, 192, 1);
    background: rgba(255, 110, 199, 0.1);
    outline: none !important;
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: var(--accent-pink);
}

.contact-text {
    font-family: 'CourierThin', monospace;
    font-size: 16px;
    color: var(--text-light);
    text-decoration: none;
    width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

footer {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255, 235, 237, 0.2);
    padding: 26px 30px;
    transform: scale(1.05) translateY(200px);
    margin-top: var(--footer-margin-top);  /* UTILISE LA VARIABLE CALCULEE */
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background/bg_5.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px);
    z-index: -1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 0px;
    transform: scale(0.95);
    margin-top:-1px;
}

.footer-copyright {
    font-family: 'CourierPrime', monospace;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 100;
    margin-left: 30px;
}

.contact-button-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 0 0px 0;
    margin-bottom: -80px;
    margin-top: 30px;
    margin-right: -20px;
    width: 1500px;
}

.contact-btn {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 0.5px 20px;
    font-family: 'CourierPrime', monospace;
    font-weight: 100;
    font-stretch: condensed;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 260px;
    text-align: center;
    position: relative;
    text-decoration: none !important;
    z-index: 500;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 110, 199, 0.3);
}

/* ========================================
   POPUP STYLES
   ======================================== */

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
        backdrop-filter: blur(0.4vh);

}

.popup-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
    }

/* Popup Container */
.popup-container {
    border: 1px solid rgba(233, 177, 208, 0.3);
    border-radius: 10px;
    padding: 40px 50px;
    width: 500px;
    min-width: 500px;
    max-width: 500px;
    height: 350px;
    text-align: center;

    animation: popupSlideIn 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    scale: var(--responsive-scale);
}

/* Fond flouté derrière le popup container */
.popup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(2px);
    z-index: -1;
    border-radius: 15px;
    background: rgba(255, 110, 199, 0.1);
}

/* Popup Icon */
.popup-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    fill: #ef87c0;
    animation: checkmarkPop 0.5s ease 0.2s both;
}

/* Popup Title */
.popup-title {
    font-family: 'SpecialElite', 'CourierPrime', monospace;
    font-size: 28px;
    color: #ef87c0;
    margin-bottom: 15px;
    font-weight: 100;
}

/* Popup Message */
.popup-message {
    font-family: 'CourierPrime', monospace;
    font-size: 18px;
    color: #f8d7da;
    line-height: 1.6;
}

/* Popup Close Button (X) */
.popup-close-x {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close-x svg {
    width: 24px;
    height: 24px;
    fill: #f8d7da;
    transition: all 0.3s ease;
}

.popup-close-x:hover svg {
    fill: #ff6ec7;
    transform: scale(1.2);
}

/* Popup Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

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

/* Loading state for submit button */
.submit-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}