/* === Reset de base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Body global === */
body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: #0f1a2b;
    color: #f5f5f5;
    padding: 20px;
}

/* === Header === */
header {
    background-color: #1a2b40;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #3498db;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav a:hover {
    background-color: #3498db;
}

.hacking {
    color: red;
}

/* === Sections === */
section {
    padding: 40px 20px;
    max-width: 900px;
    margin: auto;
    border-bottom: 1px solid #2c3e50;
}

section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #3498db;
}

section li {
    margin-bottom: 40px;
}

.Phishing {
    position: relative;
    cursor: help;
    color: #3498db;
    border-bottom: 1px dotted #3498db;
    display: inline-block;
}

/* Tooltip qui s'affiche à droite */
.tooltip {
    visibility: hidden;
    opacity: 0;
    width: 300px;
    background-color: #222;
    color: #fff;
    text-align: left;
    padding: 15px;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    left: 110%;
    transform: translateY(-50%);
    z-index: 100;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Apparition au survol */
.Phishing:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) translateX(10px);
}

.container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
    flex-wrap: wrap;
}

.texte {
    flex: 1;
    font-size: 1.2em;
    color: #f5f5f5;
}

.mot-cle {
    color: #3498db;
    font-weight: bold;
    border-bottom: 1px dashed #3498db;
    cursor: pointer;
}

/* === Encadré toujours visible et responsive === */
.encadre-haut {
    position: absolute;
    top: 300px;
    right: 60px;
    width: 220px;
    min-height: 300px;
    background-color: #1a2b40;
    padding: 20px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1em;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: top 0.4s ease-in-out;
}

/* Texte à l'intérieur avec effet de fade */
.texte-explication {
    opacity: 1;
    transition: opacity 0.4s ease;
}
.texte-explication.fade-out {
    opacity: 0;
}

/* === Responsive === */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        gap: 20px;
    }

    .encadre-haut {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    section {
        padding: 20px 10px;
    }

    .encadre-haut {
        font-size: 0.9em;
        padding: 15px;
        min-height: 200px;
    }
}

/* === Footer === */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1a2b40;
    color: #ccc;
    margin-top: 40px;
}
