:root {
    --bg-color: #0f0518; /* Violet très sombre, presque noir */
    --text-color: #f3e8ff; /* Blanc cassé violet */
    --card-bg: rgba(147, 51, 234, 0.05); /* Tint violet */
    --card-border: rgba(168, 85, 247, 0.2); /* Bordure violette subtile */
    --primary: #c084fc; /* Violet clair éclatant */
    --accent: #e879f9; /* Fuchsia pour le contraste */
    --hover-bg: rgba(168, 85, 247, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    /* Curseur Souris centré : coordonnées 16 16 */
    cursor: url('cursor.svg') 16 16, auto;
}

/* On force le LION sur tous les éléments cliquables, centré aussi */
a, a:hover, button, button:hover, .card, .close-btn, .footer-btn, .btn-primary, .linkedin-link {
    cursor: url('cursor-lion.svg') 16 16, pointer !important;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--hover-bg);
    border-color: rgba(255, 255, 255, 0.3);
}

.features h3 {
    margin-bottom: 0.8rem;
    color: white;
    font-size: 1.4rem;
    /* Suppression du flex/gap car l'emoji est parti */
}

#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Dégradé violet profond */
    background: radial-gradient(circle at bottom, #2e1065 0%, #0f0518 100%);
}

.main-container {
    max-width: 1400px; /* Élargi de 1100px à 1400px pour réduire les marges */
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Typography & Hero */
.hero {
    text-align: center;
    padding: 4rem 0 6rem 0;
    animation: fadeIn 1s ease-out;
}

.logo-wrapper {
    margin-bottom: 2rem;
}

/* Nouveau Logo CSS */
.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    position: relative;
    text-shadow: 0 0 20px rgba(192, 132, 252, 0.5);
    animation: neon-flicker 6s infinite alternate; /* Effet de vie/respiration */
}

.logo-highlight {
    background: linear-gradient(90deg, var(--primary), var(--accent), #38bdf8, var(--primary));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-flow 4s ease infinite; /* Couleurs qui bougent */
}

/* Animations du titre */
@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 20px rgba(192, 132, 252, 0.6);
        transform: skewX(0deg);
    }
    20%, 24%, 55% {
        /* Micro-coupures d'intensité */
        text-shadow: 0 0 5px rgba(192, 132, 252, 0.2);
    }
    90% {
        text-shadow: 0 0 30px rgba(192, 132, 252, 0.9), 0 0 10px rgba(56, 189, 248, 0.4);
    }
}

.logo {
    display: none; /* Cache l'ancienne image si elle traîne */
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Curseur machine à écrire */
.cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 100;
    margin-left: 2px;
    animation: blink 0.7s infinite;
}

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

.hero-text {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Button */
.btn-primary {
    display: inline-block;
    padding: 1.2rem 3.5rem; /* Bouton plus gros */
    font-size: 1.2rem;      /* Texte plus grand */
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
    /* Curseur HOTDOG GÉANT (64px) centré (32 32) */
    cursor: url('cursor-hotdog.svg') 32 32, pointer !important;
}

/* Cards Grid */
.features {
    display: grid;
    /* Default to 1 column for mobile */
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 6rem;
}

/* Tablet / Small Desktop: 2 columns (2x2) */
@media (min-width: 600px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Desktop: 4 columns (4x1) */
@media (min-width: 1024px) {
    .features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--hover-bg);
    border-color: rgba(255, 255, 255, 0.3);
}

.features h3 {
    margin-bottom: 0.8rem;
    color: white;
    font-size: 1.4rem; /* Un tout petit peu plus grand pour l'emoji */
    display: flex;
    align-items: center;
    gap: 10px; /* Espace entre emoji et texte */
}

.features p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials {
    margin-bottom: 6rem;
    text-align: center;
}

.testimonials h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial p {
    font-style: italic;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
}

.author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author .name {
    font-weight: 600;
    color: var(--primary);
}

.linkedin-link {
    color: #94a3b8;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.linkedin-link:hover {
    color: white;
}

/* Footer & Links */
footer {
    text-align: center;
    padding-bottom: 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Plus d'espace entre les boutons */
    flex-wrap: wrap;
    align-items: center;
}

.footer-btn {
    background: rgba(255, 255, 255, 0.03); /* Fond très léger par défaut */
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: all 0.3s ease;
    text-decoration: none;
    
    /* Zone de clic agrandie */
    padding: 0.8rem 2rem;
    border-radius: 50px; /* Forme pilule */
}

.footer-btn:hover {
    background: rgba(192, 132, 252, 0.15); /* Fond violet au survol */
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.3); /* Effet néon */
}

.separator {
    display: none; /* On cache les points car on a des boutons maintenant */
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: flex-end; /* Alignement à droite */
    gap: 1.5rem;
    padding: 1rem 0;
    margin-bottom: -2rem; /* Remonte un peu pour ne pas pousser le héros trop bas */
    position: relative;
    z-index: 10;
}

.nav-link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

/* Modals (Popins) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 5, 24, 0.85); /* Fond plus sombre */
    backdrop-filter: blur(8px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(-540deg);
    width: 90%;
    max-width: 700px; /* Un peu plus large pour respirer */
    max-height: 85vh;
    
    /* GLASSMORPHISM TOTAL */
    background: rgba(15, 5, 24, 0.7); /* Très transparent */
    backdrop-filter: blur(20px); /* Gros flou pour la lisibilité */
    -webkit-backdrop-filter: blur(20px);
    
    z-index: 100;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(192, 132, 252, 0.1);
    
    /* Bordure subtile */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.modal.active {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
}

.panel-content {
    padding: 4rem 3rem; /* Beaucoup plus d'espace */
}

/* Bouton fermer stylisé */
.close-btn {
    position: absolute; /* Retour à l'absolu, plus fiable ici */
    top: 1.5rem;
    right: 1.5rem;
    
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.4);
}

.modal h2 {
    font-family: 'Orbitron', sans-serif; /* Raccord avec le logo */
    font-size: 2.2rem;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, white, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    display: block; /* Prend toute la largeur */
}

.modal h3 {
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal p {
    margin-bottom: 1.2rem;
    color: #e2e8f0; /* Texte plus clair */
    font-size: 1.05rem;
    line-height: 1.8; /* Lecture plus aérée */
}

.modal ul {
    list-style: none; /* Puces personnalisées */
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.modal li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: #cbd5e1;
}

.modal li::before {
    content: "🌭"; /* Puce Hotdog ! */
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
}

/* Scrollbar invisible mais fonctionnelle (style minimaliste) */
.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 10px;
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.modal.active {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
}

.panel-content {
    /* Ajout de padding-right plus grand pour éloigner le texte de la scrollbar */
    padding: 3rem 2rem 3rem 3rem; 
}

/* Scrollbar personnalisée plus élégante */
.modal::-webkit-scrollbar {
    width: 10px; /* Un peu plus large pour être utilisable */
}

.modal::-webkit-scrollbar-track {
    background: transparent; /* Fond transparent pour faire flotter le curseur */
    margin-block: 20px; /* Marges en haut et en bas de la track */
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(192, 132, 252, 0.3); /* Violet semi-transparent */
    border-radius: 10px; /* Arrondi complet */
    border: 3px solid #1e1b4b; /* Bordure de la couleur du fond pour effet "flottant" */
}

.modal::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 132, 252, 0.6);
}

.close-btn {

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .side-panel { max-width: 100%; }
}