:root {
    --primary-color: #0a192f;
    --secondary-color: #172a45;
    --accent-color: #64ffda;
    --text-color: #e6f1ff;
    --text-secondary: #8892b0;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background-color: var(--primary-color);
    z-index: 1000;
    transition: transform 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    height: 50px;
    width: auto;
}

/* Modification: Menu à droite */
.nav-links {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
    z-index: 1150;

}

.nav-links a {
    margin-left: 30px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.tagline {
    color: var(--accent-color);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: block;
}

.about {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.about-content {
    max-width: 800px;
}

.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.service-item ul {
    margin-left: 20px;
    color: var(--text-secondary);
}

.service-item li {
    margin-bottom: 8px;
}

.approach {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.approach-content {
    max-width: 800px;
}

.contact {
    padding: 80px 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

input, textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-content a.contact-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

.footer {
    padding: 60px 0 30px;
    background-color: var(--secondary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.privacy-notice {
    font-style: italic;
    font-size: 12px !important;
    margin-top: 15px !important;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.expertise-note {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 15px;
}

/* Style pour le jeu de sensibilisation à la cybersécurité */
.game-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color);
}

.game-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-intro {
    margin-bottom: 30px;
}

.game-intro h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.game-intro p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.phishing-challenge {
    text-align: left;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin-bottom: 30px;
}

.email-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.email-header p {
    margin: 5px 0;
    color: var(--text-secondary);
}

.email-body {
    margin-bottom: 20px;
}

.game-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.game-button {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
}

.game-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.game-result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 5px;
    display: none;
}

.success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.failure {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.game-result h4 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.tips-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 15px;
}

.tips-list li {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Styles pour les pop-ups - AMÉLIORÉS POUR RESPONSIVE */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    padding: 15px;
    overflow-y: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch; 
}

body.popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.popup-content {
    background-color: var(--secondary-color);
    width: 90%;
    max-width: 550px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: popIn 0.4s ease-out;
    max-height: calc(100vh - 30px);
    display: flex;
    flex-direction: column;
}

.wide-popup {
    max-width: 800px;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.popup-header {
    background-color: var(--primary-color);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.popup-header h3 {
    color: var(--danger-color);
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    padding-right: 40px; /* Espace pour la croix */
    flex: 1;
}

.close-popup {
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-popup:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.popup-body {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Effet de typing */
.typing-effect {
    padding: 15px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.typing-text {
    color: var(--accent-color);
    font-family: monospace;
    font-size: 16px;
    overflow: hidden;
    border-right: 2px solid var(--accent-color);
    white-space: nowrap;
    margin: 0;
    letter-spacing: 1px;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color) }
}

.data-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.data-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    flex-wrap: wrap;
}

.data-list li:nth-child(1) { animation-delay: 0.2s; }
.data-list li:nth-child(2) { animation-delay: 0.4s; }
.data-list li:nth-child(3) { animation-delay: 0.6s; }
.data-list li:nth-child(4) { animation-delay: 0.8s; }
.data-list li:nth-child(5) { animation-delay: 1.0s; }
.data-list li:nth-child(6) { animation-delay: 1.2s; }

@keyframes fadeInUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.data-type {
    color: var(--text-secondary);
    font-weight: 600;
    margin-right: 10px;
}

.security-message {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--danger-color);
    padding: 15px;
    margin: 25px 0;
    border-radius: 0 5px 5px 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.security-message p {
    margin: 10px 0;
    color: var(--text-color);
}

.security-message strong {
    color: var(--accent-color);
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    animation: fadeIn 1s ease-out 1.8s forwards;
    opacity: 0;
}

.popup-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.popup-button.secondary {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.popup-button.secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* Styles pour la section des conseils */
.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tip-item {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-5px);
    background-color: rgba(0, 0, 0, 0.3);
}

.tip-icon {
    font-size: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-content h4 {
    color: var(--accent-color);
    margin: 0 0 10px 0;
    font-size: 16px;
}

.tip-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.final-message {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.final-message p {
    color: var(--text-color);
    margin-bottom: 15px;
}

.final-message .popup-button {
    margin-top: 15px;
}

/* Animation du lien de phishing */
@keyframes dangerPulse {
    0% { color: #3498db; text-shadow: none; }
    50% { color: var(--danger-color); text-shadow: 0 0 5px rgba(231, 76, 60, 0.5); }
    100% { color: #3498db; text-shadow: none; }
}

/* Customisation pour le jeu */
#phishing-link:hover {
    animation: dangerPulse 1.5s infinite;
    text-decoration: underline;
}

/* Styles pour la hamburger sur mobile */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1200;
}

.hamburger-inner {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.hamburger-inner::before {
    transform: translateY(-8px);
}

.hamburger-inner::after {
    transform: translateY(8px);
}

.hamburger.active .hamburger-inner {
    background-color: transparent;
}

.hamburger.active .hamburger-inner::before {
    transform: rotate(45deg);
}

.hamburger.active .hamburger-inner::after {
    transform: rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.9);
    z-index: 1100;
}

/* Media queries pour responsive */
@media (max-width: 768px) {

    body.popup-open .nav-links:not(.active) {
        display: none;
    }
    body.popup-open .nav-links.active {
        z-index: 1; 
    }
    body.popup-open .hamburger {
            z-index: 1;
    }

    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        visibility: hidden;
        opacity: 0;
        width: 300px;
        height: 100vh;
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1150;
        pointer-events: none;
        transition: right 0.3s ease;
    }
    
    .nav-links.active {
        right: 0;
        z-index: 1150;
        visibility: visible;
        opacity: 1;
    }
    
    .nav-links a {
        margin: 15px 0;
        font-size: 18px;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .game-container {
        padding: 20px;
    }
    
    .tips-container {
        grid-template-columns: 1fr;
    }
    
    /* Améliorations pour les popups sur mobile */
    .popup-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .popup-header {
        padding: 12px 15px;
    }
    
    .popup-header h3 {
        font-size: 16px;
        max-width: none;
        padding-right: 40px;
    }
    
    .popup-body {
        padding: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .popup-button {
        width: 100%;
    }
    
    .data-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .data-type {
        margin-bottom: 5px;
    }
    
    .tip-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tip-icon {
        margin-bottom: 10px;
    }
}

/* Pour les très petits écrans mobiles */
@media (max-width: 480px) {
    .popup-header h3 {
        font-size: 14px;
    }
    
    .close-popup {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}