/* Variables CSS */
:root {
    /* Variables de base du site */
    --primary-color: #8dc6ff;
    --secondary-color: #776bff;
    --dark-bg: #181f35;
    --light-bg: #f4f4f9;
    --text-dark: #333;
    --text-light: #fff;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    
    /* Variables spécifiques au terminal */
    --terminal-bg: #1d2438;
    --terminal-text: #8dc6ff;
    --terminal-prompt: #776bff;
    --terminal-result: #f4f4f9;
    --window-border: #333;
    --window-title: #181f35;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    margin: 0;
    font-family: 'Consolas', sans-serif;
    line-height: 1.6;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(../images/bg.jpg);
    background-size: cover;
    background-attachment: fixed;
}

/* Section d'en-tête - CONSERVÉE INTACTE */
.full {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/bg.jpg);
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    height: 460px;
}

#logo {
    width: 64px;
    height: 64px;
}

/* Navigation */
.menu {
    border-bottom: 2px solid #8dc6ff;
    width: 50%;
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    color: #8dc6ff;
    font-size: 16px;
    margin-left: 28%;
    height: 64px;
}

.menu_b {
    margin-right: 20px;
    cursor: pointer;
    height: 40%;
    flex: 1;
    padding: 1%;
    font-size: 120%;
    transition: all 0.3s ease;
}

.menu_b:hover {
    transform: scale(1.4);
    color: #fff;
}

.entete {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 128px;
    transition: height 0.8s ease, background-color 0.4s ease;
}

header {
    width: 100%;
    padding-top: 5%;
    padding-bottom: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-family: 'IM Fell English', serif;
    font-size: 3em;
    color: #8dc6ff;
    text-align: center;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
    animation: fadeIn 1s ease-in-out;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-bottom: 0;
}

header p {
    margin-top: 5px;
    width: 5%;
    border-bottom: 2px solid #8dc6ff;
}

.intro-text {
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 30px 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    animation: fadeIn 1.5s ease-in-out;
}

/* FIN DE LA SECTION D'EN-TÊTE */

/* Contenu principal - STYLE TERMINAL */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Fenêtre de terminal */
.terminal-window {
    width: 90%;
    max-width: 900px;
    background-color: var(--window-title);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    animation: fadeIn 1s ease;
}

.window-header {
    background-color: var(--window-title);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #444;
}

.window-actions {
    display: flex;
    margin-right: 15px;
}

.window-action {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.action-close { background-color: #ff5f56; }
.action-minimize { background-color: #ffbd2e; }
.action-maximize { background-color: #27c93f; }

.window-title {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

.terminal-content {
    background-color: var(--terminal-bg);
    padding: 20px;
    height: 500px;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeLineIn 0.5s forwards;
}

.prompt {
    color: var(--terminal-prompt);
    margin-right: 10px;
}

.command {
    color: var(--terminal-text);
}

.result {
    color: var(--terminal-result);
    margin-top: 5px;
    margin-left: 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.result.active {
    max-height: 500px;
    opacity: 1;
}

.blink {
    animation: blink 1s infinite;
    color: #fff;
}

/* Section de navigation des commandes */
.command-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.command-button {
    background: rgba(141, 198, 255, 0.2);
    border: 1px solid var(--terminal-text);
    color: var(--terminal-text);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-button:hover {
    background: rgba(141, 198, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLineIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.footer {
    background-color: var(--dark-bg);
    color: white;
    padding-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 1.2rem;
    color: white;
}

.footer-links,
.footer-social {
    margin-bottom: 30px;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style-type: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.social-icons svg {
    width: 20px;
    height: 20px;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #bbb;
}

.footer-legal {
    margin-bottom: 30px;
}

.footer-legal ul {
    list-style-type: none;
    padding: 0;
}

.footer-legal li {
    margin-bottom: 12px;
}

.footer-legal a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.rgpd-notice {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.rgpd-notice a {
    color: var(--primary-color);
    text-decoration: none;
}

.rgpd-notice a:hover {
    text-decoration: underline;
}

.menu_b.active {
    color: #ffffff;
}

/* Hamburger Menu pour responsive */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 200;
}

.hamburger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #8dc6ff;
    transition: all 0.3s ease;
}

.hamburger-menu.active span {
    background-color: #ffffff;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Pour bloquer le scroll quand le menu mobile est ouvert */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 1200px) {
    .menu {
        width: 60%;
        margin-left: 20%;
    }
    
    .terminal-window {
        width: 95%;
    }
}

@media (max-width: 992px) {
    .menu {
        width: 70%;
        margin-left: 15%;
    }
    
    .terminal-content {
        height: 400px;
    }
    
    .command-nav {
        width: 90%;
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    /* Footer responsive */
    .footer-content {
        justify-content: center;
        text-align: center;
    }
    
    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo,
    .footer-links,
    .footer-social,
    .footer-legal {
        margin: 0 20px 30px;
    }
    
    /* Style pour la barre de navigation mobile */
    .entete {
        height: 80px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: rgba(24, 31, 53, 0.95);
    }
    
    .entete #logo {
        position: absolute;
        left: 25px;
        top: 8px;
    }
    
    .hamburger-menu {
        display: flex;
        z-index: 1001;
    }
    
    /* Ajuster l'espacement pour tenir compte de l'entête fixe */
    .full {
        padding-top: 80px;
    }
    
    header {
        padding-top: 40px;
    }
    
    .header-desc span {
        font-size: 1.2rem;
    }
    
    /* Menu plein écran */
    .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        margin: 0;
        background-color: rgba(0, 0, 0, 0.85);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 150;
        border-bottom: none;
    }
    
    .menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .menu_b {
        width: auto;
        padding: 8px 0;
        margin: 5px 0;
        border-bottom: none;
        text-align: center;
        font-size: 1.2rem;
        letter-spacing: 2px;
        transform: translateY(20px);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }
    
    .menu.active .menu_b {
        transform: translateY(0);
        opacity: 1;
    }
    
    .menu.active .menu_b:nth-child(1) { transition-delay: 0.1s; }
    .menu.active .menu_b:nth-child(2) { transition-delay: 0.2s; }
    .menu.active .menu_b:nth-child(3) { transition-delay: 0.3s; }
    .menu.active .menu_b:nth-child(4) { transition-delay: 0.4s; }
    .menu.active .menu_b:nth-child(5) { transition-delay: 0.5s; }
    
    .menu_b:hover {
        transform: translateY(-5px);
        background-color: transparent;
    }
    
    /* Ajustements du terminal pour mobile */
    .terminal-window {
        width: 100%;
    }
    
    .terminal-content {
        height: 350px;
        padding: 15px;
    }
    
    .window-title {
        font-size: 12px;
    }
    
    /* Ajustements des boutons de commande */
    .command-nav { 
        width: 100%;
    }
    
    .command-button {
        width: 80%;
        text-align: center;
        padding: 12px 0;
    }
}

@media (max-width: 576px) {
    /* Smartphones */
    header h1 {
        font-size: 2.2em;
    }
    
    .intro-text {
        font-size: 0.95rem;
        padding: 0 15px 20px 15px;
    }
    
    .full {
        height: 400px;
    }
    
    /* Réduction de la taille du terminal */
    .terminal-content {
        height: 300px;
    }
    
    .window-actions {
        margin-right: 10px;
    }
    
    .window-action {
        width: 10px;
        height: 10px;
        margin-right: 6px;
    }
    
    .prompt, .command {
        font-size: 0.9rem;
    }
    
    .result {
        font-size: 0.9rem;
        margin-left: 15px;
    }
    
    /* Ajustements des boutons pour une meilleure lisibilité */
    .command-button {
        font-size: 0.9rem;
        width: 90%;
    }
}

@media (max-width: 375px) {
    /* Très petits écrans */
    header h1 {
        font-size: 1.8em;
    }
    
    .header-desc span {
        font-size: 0.9rem;
    }
    
    .terminal-content {
        height: 250px;
        padding: 10px;
    }
    
    .prompt, .command {
        font-size: 0.8rem;
    }
    
    .result {
        font-size: 0.8rem;
        margin-left: 10px;
    }
    
    .window-title {
        font-size: 10px;
    }
}