/* VARIABLES ET RESET */
:root {
    --primary-color: #1f2937;
    --secondary-color: #374151;
    --darker-color: #111827;
    --color-logo: #258FCE;
    --accent-color: #258FCE;
    --bg-dark: #0f121a;
    --card-bg: #1c2333;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-color);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
}

.logo span {
    color: var(--color-logo);
}

/* Variables de couleurs */
:root {
    --gray-hover: rgba(255, 255, 255, 0.15);
    /* Couleur du rectangle */
}

/* Le lien parent */

.nav-links-stable {
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--darker-color);
    border-radius: 8px;
    z-index: -1;
    display: block !important;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 5px;
}

.nav-links a {
    text-decoration: none;
    color: rgb(171, 171, 171);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;

    /* CRUCIAL : permet au lien d'avoir une taille et de contenir le rectangle */
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

/* Le rectangle qui apparaît derrière */
.nav-links a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    /* Commence à 0 */
    height: 100%;
    background-color: var(--darker-color);

    /* Centre le rectangle et le réduit légèrement au départ */
    transform: translate(-50%, -50%) scale(0.8);
    border-radius: 8px;
    opacity: 0;

    /* Empêche le rectangle de passer devant le texte */
    z-index: -1;
    transition: all 0.4s ease;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-discord-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-discord-nav i {
    font-size: 1.1rem;
    color: #5865F2;
    /* Icône toujours en bleu Discord */
}

.btn-discord-nav:hover {
    background: #5865F2;
    /* Le bouton entier devient bleu au survol */
    border-color: #5865F2;
    transform: translateY(-2px);
}

.btn-discord-nav:hover i {
    color: white;
    /* L'icône devient blanche quand le fond est bleu */
}

/* Cacher le texte "Discord" sur petit mobile pour gagner de la place */
@media (max-width: 480px) {
    .btn-discord-nav span {
        display: none;
    }

    .btn-discord-nav {
        padding: 8px 10px;
    }
}

/* Action au survol */
.nav-links a:hover::before {
    width: 100%;
    /* S'étend sur toute la largeur */
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.nav-links a:hover {
    color: #ffffff;
    /* Le texte devient blanc pur */
}

.btn-discord {
    background: #5865F2;
    color: white;
    text-decoration: none;
    border-color: transparent;
    border-radius: 8px;
    padding: 15px 30px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-discord:hover {
    transform: scale(1.10)
}

/* NEWS TICKER (DÉFILANT) */
.news-ticker {
    background: var(--primary-color);
    color: white;
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.ticker-wrapper {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 40px;
}

.ticker-item i {
    margin-right: 8px;
    color: var(--accent-color);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.about-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

.about-flex {
    display: flex;
    align-items: center;
    /* Aligne verticalement au centre */
    justify-content: space-between;
    gap: 60px;
    /* Espace entre la vidéo et le texte */
}

/* Style de la vidéo à gauche */
.about-video {
    flex: 1.2;
    /* Prend un peu plus de place que le texte */
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    aspect-ratio: 16 / 9;
}

.about-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Style du contenu à droite */
.about-content {
    flex: 0.8;
}

.section-title-left {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.about-content p {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Liste à puces stylisée */
.about-list {
    list-style: none;
    margin-bottom: 30px;
}

.about-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.about-list li i {
    color: var(--accent-color);
}

/* Contrôles du lecteur (rappel) */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    padding: 20px;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.about-video:hover .video-controls {
    opacity: 1;
}

/* Responsive : On empile sur mobile */
@media (max-width: 992px) {
    .about-flex {
        flex-direction: column;
        text-align: center;
    }

    .about-list li {
        justify-content: center;
    }
}

/* HERO SECTION */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(15, 18, 26, 0.7), rgba(15, 18, 26, 0.9)), url('https://images.unsplash.com/photo-1587573089734-09cb99c5f068?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--color-logo);
}

.hero p {
    color: var(--text-gray);
    margin: 20px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 8px;
    color: white;
    font-size: bold;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #3d9e60;
    border-color: #3d9e60;
    transform: scale(1.10)
}

.btn-primary i {
    font-size: 1.1rem;
    color: #3d9e60;
    /* Icône toujours en bleu Discord */
}

.btn-primary:hover i {
    color: white;
    /* L'icône devient blanche quand le fond est bleu */
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 8px;
    color: white;
    font-size: bold;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5865F2;
    border-color: #5865F2;
    transform: scale(1.10)
}

.btn-secondary i {
    font-size: 1.1rem;
    color: #5865F2;
    /* Icône toujours en bleu Discord */
}

.btn-secondary:hover i {
    color: white;
    /* L'icône devient blanche quand le fond est bleu */
}

/* SECTIONS COMMUNES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 50px;
}

/* GRILLE FEATURES */
.grid-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    margin: 15px 0 10px 0;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.icon-box {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.purple {
    background: rgba(93, 95, 239, 0.15);
    color: #5d5fef;
}

.blue {
    background: rgba(61, 127, 245, 0.15);
    color: #3d7ff5;
}

.pink {
    background: rgba(235, 77, 75, 0.15);
    color: #eb4d4b;
}

/* GRILLE MÉTIERS */
.grid-jobs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.job-card {
    height: 220px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.job-card:hover {
    filter: brightness(1.2);
}

.job-card span {
    font-weight: bold;
}

.btn-jobs {
    display: block;
    margin: 40px auto 0;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* --- SECTION MÉTIERS --- */
.jobs-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.job-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
}

.job-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.job-image {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.job-card h3 {
    margin-bottom: 15px;
    font-family: 'Montserrat';
}

.job-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* --- SECTION FAQ --- */
.faq-section {
    padding: 80px 0;
    background: var(--primary-color);
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.1);
}

.faq-answer p {
    padding: 20px 25px;
    color: var(--text-gray);
}

/* Classe active pour le menu déroulant */
.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .grid-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-jobs {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .grid-features {
        grid-template-columns: 1fr;
    }
}


/* FOOTER */
.main-footer {
    background-color: #0a0d14;
    /* Plus sombre que le reste pour contraster */
    padding: 70px 0 30px 0;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding: 0 20px;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 20px 0;
    line-height: 1.6;
    max-width: 350px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* RESEAUX SOCIAUX */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* COPYRIGHT BAR */
.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #4b5563;
    font-size: 0.85rem;
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-desc {
        margin: 20px auto;
    }

    .social-links {
        justify-content: center;
    }
}













/* PAGE PLAY.HTML */
/* STYLES SPÉCIFIQUES PAGE JOUER */

.container h1 {
    padding: 20px 0px;
}

.play-page {
    background-color: var(--darker-color);
    min-height: 100vh;
}

.play-main {
    padding-top: 120px;
    padding-bottom: 50px;
}

.play-grid {
    display: grid;
    gap: 40px;
    align-items: start;
}

/* Étapes */
.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.step-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 40px;
}

/* Cartes OS */
.launcher-cards {
    display: flex;
    gap: 15px;
}

.os-card {
    background: var(--card-bg);
    flex: 1;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.os-card i {
    font-size: 2.5rem;
    color: #3d7ff5;
    /* Bleu Windows */
}

.os-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.os-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.os-card.disabled i {
    color: #9ca3af;
}

.os-card small {
    color: #5d5fef;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Boutons */
/* Le bouton d'inscription */
.btn-auth {
    display: block;
    /* Permet de mieux contrôler les marges */
    margin: 10px auto 0;
    /* Force le centrage horizontal avec auto */
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 45px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-auth:hover {
    transform: scale(1.05);
}

.information-box {
    background: #652420;
    border-left: 6px solid #992B1C;
    padding: 15px 25px;
    text-align: left;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    transition: transform 0.3s;
}

.information-box:hover {
    transform: scale(1.05);
}

.information-box h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: none;
}

.information-box p {
    color: #e0e0e0;
    font-size: 0.95rem;
    margin: 0;
}

.btn-discord-help {
    background: #5865F2;
    /* Couleur Discord */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-discord-help:hover {
    transform: scale(1.05);
}

/* Preview Launcher */
.preview-container {
    background: #161b26;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-container img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .play-grid {
        grid-template-columns: 1fr;
    }

    .launcher-preview {
        order: -1;
        /* Met l'image en haut sur mobile */
    }
}

/* --- CONFIGURATION MINIMALE --- */
.specs-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
    transition: transform 0.3s;
}

.specs-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.specs-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.specs-header h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spec-label {
    color: #6b7280; /* Gris foncé */
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.spec-value {
    color: #e5e7eb; /* Blanc cassé */
    font-size: 0.95rem;
    font-weight: 500;
}

/* Effet au survol de la carte globale */
.specs-container:hover {
    transform: scale(1.05);
}

/* --- PREVIEW LAUNCHER (COLONNE DROITE) --- */
.launcher-preview {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.preview-window {
    background: #161b26;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    width: 100%;
    max-width: 600px;
    position: sticky;
    top: 100px;
}

.preview-window img {
    width: 100%;
    display: block;
    filter: brightness(0.9);
}

/* Ajustement Grid pour voir la preview à droite sur PC */
@media (min-width: 1024px) {
    .play-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 50px;
        align-items: start;
    }
}