/* Thèmes */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --nav-bg: #f8f9fa;
    --nav-text: #333333;
    --nav-hover: #e9ecef;
}

.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #f8f9fa;
    --nav-bg: #2d2d2d;
    --nav-text: #f8f9fa;
    --nav-hover: #3d3d3d;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Bouton de thème */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--nav-hover);
}

/* Navigation */
.navbar {
    background-color: var(--nav-bg);
}

.nav-links a {
    color: var(--nav-text);
}

.nav-links a:hover {
    background-color: var(--nav-hover);
}

/* Liens */
.x-account-link, .x-link {
    color: var(--text-color);
}

/* Écran de chargement */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
}

.loading-gif {
    max-width: 200px;
    height: auto;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden; /* Permet uniquement le défilement vertical */
    overflow-y: auto; /* Permet le défilement vertical */
}

/* Navbar */
.navbar {
    width: 100%;
    padding: 15px 0;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: #1A1A1A;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
    padding: 10px;
}

.nav-links a {
    color: #C3C4C8;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-decoration: none;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #00FF43;
    text-shadow: 0 0 10px rgba(0, 255, 67, 0.8);
    transform: translateY(-2px);
}

/* Contenu principal */
.main-content {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1A1A1A;
    padding: 0;
    overflow: visible; /* Permet le défilement */
}

.centered-logo {
    text-align: center;
}

/* --------------------------------------------- */
/* LOGO — RESPONSIVE OPTIMISÉ */
/* --------------------------------------------- */
.logo-img {
    width: 180vw;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    transition: all 0.3s ease;
    border: none;
}

/* Container du logo pour meilleur contrôle */
.logo-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Texte X */
.x-account-link {
    margin-top: 40px;
    text-align: center;
    color: #C3C4C8;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
}

.x-account-link .x-link {
    color: #00FF43;
}

.x-account-link .x-link:hover {
    text-decoration: underline;
}

/* Section CV */
.cv-container {
    background-color: #1A1A1A;
    padding: 60px 20px;
    font-family: 'Press Start 2P', cursive;
    color: #C3C4C8;
}

.cv-section {
    max-width: 1200px;
    margin: 0 auto;
}

.cv-title {
    text-align: center;
    color: #00FF43;
    margin-bottom: 50px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.cv-card {
    background-color: #2A2A2A;
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.cv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: #00FF43;
}

.cv-icon {
    font-size: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.cv-card h3 {
    color: #00FF43;
    margin-bottom: 20px;
    font-size: 16px;
    text-align: center;
}

.cv-list {
    list-style: none;
    padding: 0;
}

.cv-list li {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.6;
    position: relative;
    padding-left: 15px;
}

.cv-list li:before {
    content: '→';
    color: #00FF43;
    position: absolute;
    left: 0;
}

.cv-list strong {
    color: #ffffff;
    font-weight: normal;
}

/* Section secrète */
.secret-section {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #C3C4C8;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
}

.secret-button {
    color: #00FF43;
    border-bottom: 2px solid #00FF43;
    padding: 5px 10px;
    transition: 0.3s ease;
}

.secret-button:hover {
    background-color: rgba(0,255,67,0.2);
    box-shadow: 0 0 10px rgba(0,255,67,0.5);
}

/* Pied de page */
.site-footer {
    background-color: #1A1A1A;
    color: #C3C4C8;
    padding: 30px 0 0;
    font-family: 'Press Start 2P', cursive;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-section h3 {
    color: #00FF43;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #C3C4C8;
    text-decoration: none;
    font-size: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #00FF43;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: inline-block;
    padding: 5px 0;
}

.footer-section p {
    font-size: 10px;
    line-height: 1.6;
    margin: 5px 0;
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #333;
    margin-top: 20px;
}

.footer-bottom p {
    font-size: 10px;
    color: #888;
    margin: 0;
}

/* Bouton de téléchargement CV */
.cv-download-btn {
    display: inline-block;
    background-color: #00FF43;
    color: #1A1A1A;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #00FF43;
    margin-top: 10px;
}

.cv-download-btn:hover {
    background-color: transparent;
    color: #00FF43;
    box-shadow: 0 0 15px rgba(0, 255, 67, 0.5);
    transform: translateY(-2px);
}

/* Boutons CV */
.cv-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.cv-btn {
    display: inline-block;
    background-color: #00FF43;
    color: #1A1A1A;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.cv-btn:hover {
    background-color: transparent;
    color: #00FF43;
    box-shadow: 0 0 15px rgba(0, 255, 67, 0.5);
    transform: translateY(-2px);
}

.fullscreen-btn {
    background-color: #007ACC;
    color: #ffffff;
    border: 2px solid #007ACC;
}

.fullscreen-btn:hover {
    background-color: transparent;
    color: #007ACC;
    box-shadow: 0 0 15px rgba(0, 124, 204, 0.5);
}

.download-btn {
    background-color: #00FF43;
    color: #1A1A1A;
    border: 2px solid #00FF43;
}

.download-btn:hover {
    background-color: transparent;
    color: #00FF43;
    box-shadow: 0 0 15px rgba(0, 255, 67, 0.5);
}

/* Responsive Design - Mobile First Approach */

/* Mobile - 320px et plus */
@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }

    .nav-links a {
        font-size: 7px;
        padding: 8px 12px;
    }

    .logo-img {
        width: 170vw;
        max-width: 560px;
    }

    .logo-container {
        max-width: 560px;
        padding: 0 15px;
    }

    .main-content {
        padding-top: 120px;
    }

    .cv-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .cv-card {
        padding: 20px;
    }

    .cv-title {
        font-size: 18px;
    }

    .frame {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .panel {
        min-height: auto;
        padding: 16px;
    }

    .panel-title {
        font-size: 10px;
        top: -10px;
        left: 16px;
    }

    .art img {
        max-width: 200px;
    }

    .cv-btn {
        font-size: 8px;
        padding: 8px 16px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-section {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Tablettes - 481px à 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-links {
        gap: 12px;
        padding: 12px;
    }

    .nav-links a {
        font-size: 8px;
    }

    .logo-img {
        width: 140vw;
        max-width: 800px;
    }

    .logo-container {
        max-width: 800px;
        padding: 0 20px;
    }

    .main-content {
        padding-top: 100px;
    }

    .cv-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .frame {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .panel {
        padding: 18px;
    }

    .art img {
        max-width: 240px;
    }

    .cv-btn {
        font-size: 9px;
        padding: 9px 18px;
    }
}

/* Desktop - 769px à 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 9px;
    }

    .logo-img {
        width: 120vw;
        max-width: 1000px;
    }

    .logo-container {
        max-width: 1000px;
        padding: 0 25px;
    }

    .cv-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .frame {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .panel {
        padding: 20px;
    }

    .art img {
        max-width: 260px;
    }
}

/* Large Desktop - 1025px et plus */
@media (min-width: 1025px) {
    .cv-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .frame {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .panel {
        padding: 24px;
        min-height: 520px;
    }

    .art img {
        max-width: 280px;
    }

    .logo-img {
        width: 100vw;
        max-width: 1200px;
    }

    .logo-container {
        max-width: 1200px;
        padding: 0 30px;
    }
}

/* Optimisations pour les très petits écrans */
@media (max-width: 320px) {
    .nav-links a {
        font-size: 6px;
        padding: 6px 8px;
    }

    .cv-btn {
        font-size: 7px;
        padding: 6px 12px;
    }

    .panel-title {
        font-size: 8px;
    }

    .logo-img {
        width: 180vw;
        max-width: 480px;
    }

    .logo-container {
        max-width: 480px;
        padding: 0 10px;
    }
}

/* Optimisations pour les très grands écrans */
@media (min-width: 1440px) {
    .frame {
        max-width: 1400px;
    }

    .panel {
        min-height: 600px;
    }
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mode paysage pour mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .main-content {
        padding-top: 80px;
    }

    .panel {
        min-height: 300px;
    }

    .art img {
        max-width: 180px;
    }
}
