/* Import d'une police Google pour l'ambiance */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Orbitron:wght@400;700&display=swap');

:root {
    /* Palette plus sombre et mystique */
    --primary-glow-color: rgba(200, 150, 255, 0.65); /* Violet lumineux pour glow */
    --secondary-glow-color: rgba(100, 190, 255, 0.55); /* Bleu clair pour glow secondaire */
    --base-bg-color: #1a1a2e; /* Fond principal tres sombre (bleu nuit/violet) */
    --bg-gradient-1: #2c1a3f; /* Violet fonce pour gradient */
    --bg-gradient-2: #1c2a4f; /* Bleu nuit pour gradient */
    --ball-highlight: #f5f0ff; /* Highlight boule legerement lavande */
    --base-color: #3a3a5e; /* Socle/elements violet/gris fonce */
    --text-color: #e8e0ff; /* Texte legerement teinte lavande */
    --accent-color: #ff8aae; /* Accent rose doux */
}

body {
    font-family: 'Cinzel', serif;
    /* Nouveau degrade sombre et riche */
    background: linear-gradient(45deg, var(--bg-gradient-1), var(--base-bg-color), var(--bg-gradient-2), var(--base-bg-color));
    background-size: 400% 400%;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    text-align: center;
    overflow-x: hidden; /* Empeche SEULEMENT le defilement horizontal */
    animation: gradientBG 20s ease infinite;
    position: relative; /* Pour positionner les etoiles */
    scrollbar-width: thin; /* "auto" ou "thin" */
    scrollbar-color: var(--secondary-glow-color) #2a2a4e; /* Scrollbar adaptee */
}

/* Effet etoiles sur fond sombre */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 70px 70px; /* Espacement plus grand */
    opacity: 0.06; /* Un peu plus visible sur fond sombre */
    pointer-events: none; /* Ne pas interferer avec les clics */
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pour Chrome, Edge, Safari */
body::-webkit-scrollbar {
    width: 8px; /* Largeur de la barre */
}

body::-webkit-scrollbar-track {
    background: rgba(42, 42, 78, 0.5); /* Track sombre */
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--secondary-glow-color); /* Couleur du curseur */
    border-radius: 4px;
    border: 2px solid transparent; /* Cree un padding autour du curseur */
    background-clip: content-box; /* Applique le fond uniquement a la zone de contenu */
}

body::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-glow-color); /* Couleur au survol */
}

header {
    margin-top: 15px; /* Un peu moins de marge en haut */
    margin-bottom: 10px;
    color: var(--ball-highlight);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Pour positionner le burger */
    z-index: 100; /* Assurer que le header est au-dessus */
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
    position: relative;
    padding: 0 15px;
    box-sizing: border-box;
    margin-bottom: 15px; /* Ajout de l'espace en dessous pour desktop */
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em; /* Legerement reduit */
    text-shadow: 0 0 6px var(--primary-glow-color), 0 0 12px var(--primary-glow-color);
    letter-spacing: 2px;
    margin: 0; /* Retirer marge par defaut */
    text-align: center; /* Assurer centrage */
    flex-grow: 1; /* Permet au titre de prendre la place */
}

/* Styles de base du menu burger (cache sur desktop) */
.burger-menu {
    display: none; /* Cache par defaut */
    position: absolute; /* Positionne par rapport a .header-content */
    left: 15px; /* En haut a gauche */
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110; /* Au-dessus du reste du header */
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}
.burger-menu span:last-child {
    margin-bottom: 0;
}

/* Style du burger quand le menu est ouvert */
.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Styles pour la navigation */
#main-nav {
    width: 100%;
    max-width: 700px; /* Augmente de 600px a 700px */
    margin-bottom: 20px;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out; /* Pour l'animation mobile */
}

#main-nav > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center; /* Center items vertically */
    gap: 20px;
    background-color: rgba(26, 26, 46, 0.4); /* Nav sombre et transparent */
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif; /* Meme police que le titre/bouton */
    font-size: 1em;
    padding: 8px 15px;
    border-radius: 15px;
    transition: background-color 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    letter-spacing: 1px;
}

nav ul li a:hover,
nav ul li a:focus { /* Ajout de :focus pour l'accessibilite */
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-shadow: 0 0 5px var(--secondary-glow-color);
    outline: none; /* Supprime l'outline par defaut au focus, remplace par le style */
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.crystal-ball-container {
    margin-bottom: 10px;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Necessaire pour positionner les ondes */
}

.crystal-ball {
    width: 280px;
    height: 280px;
    /* Degrade boule avec centre moins brillant */
    background: radial-gradient(circle at 50% 50%,
        #d8c8f8 5%, /* Highlight central plus doux et legerement etendu */
        #c0a0f0 40%,
        #7050a0 80%,
        #453560 97%);
    border-radius: 50%;
    position: relative;
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.5),
        0 0 20px var(--primary-glow-color),
        0 0 35px var(--secondary-glow-color),
        /* Reflet interne principal un peu reduit */
        inset 0 0 50px rgba(255, 255, 255, 0.15),
        inset 8px -12px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    /* Bordure plus visible sur fond plus clair */
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 10; /* Au-dessus du socle */
    /* Animation subtile au repos */
    animation: slowWobble 15s infinite ease-in-out;
    /* Ajout pour contenir les particules */
    overflow: hidden;
}

@keyframes slowWobble {
    0%, 100% { transform: translateY(0) rotateZ(0deg); }
    25% { transform: translateY(-3px) rotateZ(-0.5deg); }
    75% { transform: translateY(3px) rotateZ(0.5deg); }
}

/* Effet de lueur interne ameliore */
.inner-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0) 60%
    );
    top: 10%;
    left: 10%;
    opacity: 0.7;
    pointer-events: none;
}

.answer {
    font-size: 3.5em; /* La taille de base est definie ici */
    font-weight: bold;
    color: #ffffff;
    text-shadow:
        0 0 2px #fff, /* Ombre blanche tres fine pour la lisibilite */
        0 0 6px var(--secondary-glow-color), /* Glow moins intense */
        0 0 12px var(--secondary-glow-color);
    opacity: 0;
    transition: opacity 0.8s ease-in-out, text-shadow 0.8s ease-in-out, font-size 0.2s ease-out; /* Ajout transition taille */
    position: absolute;
    z-index: 15;
    pointer-events: none;
    width: 90%; /* Limite la largeur pour eviter le depassement */
    overflow: hidden; /* Cache le texte qui depasse */
    text-overflow: ellipsis; /* Ajoute ... si le texte depasse (facultatif) */
    white-space: normal; /* Permet le retour a la ligne si necessaire */
    line-height: 1.1; /* Rapproche un peu les lignes si retour */
    /* Centrage vertical/horizontal */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* Assurer le centrage du texte */
}

/* Style du socle adapte */
.crystal-ball-base {
    width: 180px;
    height: 70px;
    background: linear-gradient(to bottom, #6a7a9e, var(--base-color) 70%);
    border-radius: 10px 10px 50% 50% / 10px 10px 20px 20px; /* Forme de socle */
    margin-top: -35px; /* Chevauche legerement la boule */
    position: relative;
    z-index: 5; /* Derriere la boule */
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.4), /* Ombre socle */
        inset 0 3px 6px rgba(255, 255, 255, 0.2),
        inset 0 -6px 12px rgba(0, 0, 0, 0.35);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

/* Ombre portee du socle */
.crystal-ball-base::after {
    content: '';
    position: absolute;
    bottom: -15px; /* Legerement en dessous */
    left: 50%;
    transform: translateX(-50%) perspective(5px) rotateX(5deg);
    width: 90%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.interaction-zone {
    margin-top: 25px; /* Reduit de 40px pour rapprocher */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

label {
    font-size: 1.2em;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#question-input {
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid var(--secondary-glow-color);
    background-color: rgba(42, 42, 78, 0.75); /* Input fond sombre */
    color: var(--text-color);
    width: 350px;
    font-size: 1.1em;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px); /* Effet de verre depoli (support variable) */
}

#question-input::placeholder {
    color: rgba(232, 224, 255, 0.6);
}

#question-input:focus {
    border-color: var(--primary-glow-color);
    box-shadow: 0 0 12px var(--secondary-glow-color);
}

#ask-button {
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--accent-color), #f08080); /* Corail/Rose */
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-family: 'Orbitron', sans-serif; /* Coherent avec le titre */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#ask-button:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 18px var(--accent-color);
    transform: translateY(-2px);
}

#ask-button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

#ask-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(0);
}

footer {
    margin-top: auto;
    padding: 20px;
    font-size: 0.9em;
    color: rgba(189, 195, 199, 0.7);
}

/* Animation de 'reflexion' amelioree */
.crystal-ball.thinking {
    animation: pulseThink 1.5s infinite ease-in-out;
}

.crystal-ball.thinking .answer {
    opacity: 0;
}

.crystal-ball.thinking .inner-glow {
    animation: innerPulse 1.5s infinite ease-in-out;
}

@keyframes pulseThink {
    0% { 
        transform: scale(1); 
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow-color), 0 0 35px var(--secondary-glow-color), inset 0 0 60px rgba(255, 255, 255, 0.2), inset 8px -12px 35px rgba(0, 0, 0, 0.4); 
    }
    50% { 
        transform: scale(1.07);
        box-shadow: 0 9px 40px rgba(0, 0, 0, 0.6), 0 0 28px var(--primary-glow-color), 0 0 45px var(--secondary-glow-color), inset 0 0 70px rgba(255, 255, 255, 0.3), inset 8px -12px 45px rgba(0, 0, 0, 0.5); 
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow-color), 0 0 35px var(--secondary-glow-color), inset 0 0 60px rgba(255, 255, 255, 0.2), inset 8px -12px 35px rgba(0, 0, 0, 0.4); 
    }
}

@keyframes innerPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}


/* Affichage de la reponse */
.crystal-ball .answer.visible {
    opacity: 1;
}

/* Styles pour les pages de contenu (A Propos, Mentions Legales) */
.content-page {
    max-width: 800px; /* Largeur maximale pour la lisibilite */
    margin: 20px auto; /* Centre le contenu avec marge */
    padding: 30px;
    background-color: rgba(42, 42, 78, 0.75);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-align: left; /* Alignement standard pour le texte */
    backdrop-filter: blur(5px);
}

.content-page h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--ball-highlight);
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
    text-shadow: 0 0 6px var(--primary-glow-color);
}

.content-page h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--secondary-glow-color);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--secondary-glow-color);
    padding-bottom: 5px;
    font-size: 1.4em;
}

.content-page p,
.content-page ul,
.content-page ol {
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: rgba(236, 240, 241, 0.95);
}

.content-page strong {
    color: var(--ball-highlight);
}

.content-page a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-page a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Style pour le lien actif dans la nav */
nav ul li a.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 5px var(--secondary-glow-color);
}

/* Styles for dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    list-style: none;
    padding: 10px 0;
    margin-top: 0; /* Remove margin-top to prevent gap */
    min-width: 240px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block; /* Use block display to show the menu */
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block; /* Make link take full width */
    text-align: left;
    padding: 12px 20px;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 5px var(--secondary-glow-color);
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center; /* Center for consistency */
    gap: 5px;
}


/* Style pour le bloc de contenu SEO sur la page d'accueil */
.seo-content {
    max-width: 800px;
    margin: 40px auto 20px auto; /* Espace au-dessus et en dessous */
    padding: 20px 30px;
    background-color: rgba(42, 42, 78, 0.75);
    border-radius: 10px;
    text-align: center; /* Centre sur la page d'accueil */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
}

.seo-content h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--ball-highlight);
    margin-bottom: 15px;
    font-size: 1.6em;
    text-shadow: 0 0 5px var(--primary-glow-color);
}

.seo-content p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1em; /* Legerement plus petit que sur les pages dediees */
    color: rgba(236, 240, 241, 0.9);
}

.seo-content strong {
    color: var(--accent-color); /* Utilisation de l'accent pour les mots cles */
}

.seo-content em {
    color: var(--secondary-glow-color);
    font-style: normal; /* Ou italic si prefere */
}

/* Animation particules */
.particle-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; /* Ne pas interferer */
    overflow: hidden; /* Contenir les particules */
    border-radius: 50%;
}

.particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--start-size);
    height: var(--start-size);
    border-radius: 50%;
    /* Couleur definie par JS */
    opacity: 0;
    transform-origin: center center;
    /* Animation */
    animation: particleFlow var(--duration) var(--delay) ease-out forwards;
}

@keyframes particleFlow {
    0% {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0) scale(1);
        opacity: 1;
        width: var(--start-size);
        height: var(--start-size);
    }
    100% {
        /* Se deplace vers l'exterieur en tournant et retrecissant */
        transform: translate(-50%, -50%) rotate(calc(var(--angle) + 45deg)) translateY(140px) scale(0.5); 
        opacity: 0;
        width: var(--end-size);
        height: var(--end-size);
    }
}

/* Styles pour les ondes mysterieuses */
.crystal-ball-container::before,
.crystal-ball-container::after {
    content: '';
    position: absolute;
    bottom: 35px; /* Positionne vers le bas du container (pres du socle) */
    left: 50%;
    transform: translateX(-50%);
    width: 320px; /* Taille initiale des ondes */
    height: 320px;
    border: 2px solid var(--primary-glow-color);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1; /* Derriere le socle et la boule */
}

/* Animation specifique quand la classe .thinking est active sur le container */
.crystal-ball-container.thinking::before {
    animation: wavePulse 3s ease-out infinite;
}

.crystal-ball-container.thinking::after {
    animation: wavePulse 3s 1.5s ease-out infinite; /* Decale pour alternance */
}

@keyframes wavePulse {
    0% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.7;
        border-color: var(--primary-glow-color);
    }
    70% {
        transform: translateX(-50%) scale(1.5);
        opacity: 0;
        border-color: var(--secondary-glow-color);
    }
    100% {
        opacity: 0;
    }
}

/* Styles Zone Interaction */
.interaction-zone {
    margin-top: 25px; /* Reduit de 40px pour rapprocher */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.privacy-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px; /* Espace apres bouton */
}

.privacy-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-glow-color); /* Couleur de la coche */
}

.privacy-option label {
    font-size: 0.9em;
    color: rgba(236, 240, 241, 0.8);
    cursor: pointer;
    text-shadow: none;
}

/* Styles Section Dernieres Questions */
.latest-questions {
    max-width: 800px;
    width: 95%;
    margin: 30px auto 10px auto; /* Reduit marge basse pour bouton */
    padding: 20px 25px;
    background-color: rgba(42, 42, 78, 0.6);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    text-align: center;
}

.latest-questions h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--ball-highlight);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-shadow: 0 0 5px var(--primary-glow-color);
}

#latest-questions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    margin-bottom: 20px; /* Ajout espace avant bouton */
}

#latest-questions-list li,
#all-questions-list li {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95em;
    color: rgba(236, 240, 241, 0.9);
    word-break: break-word; /* Coupe les mots longs */
}

#latest-questions-list li:last-child,
#all-questions-list li:last-child {
    border-bottom: none;
}

/* Styles Page Vos Questions & Pagination */
#all-questions-container {
    margin-bottom: 25px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.pagination-controls button {
    padding: 8px 15px;
    background: linear-gradient(45deg, var(--secondary-glow-color), #4a90e2);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9em;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.pagination-controls button:hover:not(:disabled) {
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4), 0 0 10px var(--secondary-glow-color);
    transform: translateY(-1px);
}

.pagination-controls button:active:not(:disabled) {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

#page-info {
    font-size: 1em;
    color: var(--text-color);
    font-weight: bold;
}

/* Style pour le bouton "Voir plus" modernise */
.btn-see-more {
    display: inline-block;
    padding: 12px 24px; /* Padding legerement ajuste */
    margin-top: 15px; 
    /* Nouveau gradient plus "magique" */
    background: linear-gradient(45deg, rgba(220, 160, 255, 0.8), rgba(180, 120, 235, 0.9)); 
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 30px; /* Plus arrondi */
    font-size: 1em;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 8px rgba(220, 160, 255, 0.3); /* Ombre + leger glow */
    letter-spacing: 1.5px; /* Espacement augmente */
    text-transform: uppercase;
}

.btn-see-more:hover {
    background: linear-gradient(45deg, rgba(230, 170, 255, 0.9), rgba(190, 130, 245, 1));
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow-color); /* Ombre/Glow plus prononce */
    transform: translateY(-2px);
    color: white;
}

.btn-see-more:active {
    transform: translateY(0px) scale(0.97);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4), 0 0 5px rgba(220, 160, 255, 0.3);
}

/* Styles Section Questions Suggerees */
.suggested-questions {
    margin: 30px 0 20px 0;
    width: 100%;
    max-width: 700px; /* Limite la largeur */
    text-align: center;
}

.suggested-questions h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--secondary-glow-color);
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: normal;
    text-shadow: 0 0 4px rgba(120, 220, 255, 0.5);
}

.suggestions-wrapper {
    display: flex;
    flex-wrap: wrap; /* Permet le passage a la ligne */
    justify-content: center;
    gap: 10px;
}

.suggestion-btn {
    padding: 8px 15px;
    background-color: rgba(58, 58, 94, 0.7); 
    color: var(--text-color);
    border: 1px solid var(--secondary-glow-color);
    border-radius: 20px;
    font-size: 0.9em;
    font-family: 'Cinzel', serif; /* Police principale */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.suggestion-btn:hover {
    background-color: rgba(78, 78, 114, 0.85);
    border-color: var(--primary-glow-color);
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 0 0 5px var(--primary-glow-color);
    transform: translateY(-1px);
}

.suggestion-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Styles pour la section Auteur */
.author-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-section h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--ball-highlight);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.6em;
    text-shadow: 0 0 6px var(--primary-glow-color);
}

.author-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.author-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-glow-color);
    box-shadow: 0 0 15px var(--secondary-glow-color);
}

.author-info h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-color);
}

.author-info p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-info .author-linkedin {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.author-linkedin:hover {
    background-color: #ffaad4;
    box-shadow: 0 0 10px var(--accent-color);
    transform: translateY(-2px);
}


/* ---- Styles Mobile ---- */
@media (max-width: 768px) {
    /* Appliquer box-sizing a plus d'elements pour eviter depassements */
    body, header, .header-content, main, footer, .interaction-zone, .seo-content, .content-page {
        box-sizing: border-box;
    }

    .header-content {
        margin-bottom: 0; /* Annuler la marge sur mobile */
        padding: 0 10px; /* Reduire padding horizontal */
    }

    h1 {
        font-size: 1.8em; /* Titre plus petit */
        text-align: center;
        padding-left: 45px; /* Espace burger + marge */
        padding-right: 10px; /* Moins d'espace a droite */
    }

    .burger-menu {
        display: block;
        left: 10px; /* Rapprocher du bord */
    }

    #main-nav {
        position: fixed; /* Fixe a l'ecran */
        top: 0;
        left: 0;
        width: 250px; /* Largeur du menu coulissant */
        height: 100%;
        background-color: rgba(26, 26, 46, 0.98); /* Fond menu mobile tres sombre */
        backdrop-filter: blur(5px);
        padding-top: 80px; /* Espace pour le header */
        transform: translateX(-100%); /* Cache par defaut */
        opacity: 0;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
        max-width: none; /* Annule la largeur max */
        margin-bottom: 0;
        border-radius: 0; /* Annule le radius */
        z-index: 105; /* Juste sous le bouton burger */
    }

    #main-nav.nav-active {
        transform: translateX(0);
        opacity: 1;
    }

    #main-nav ul {
        flex-direction: column; /* Liens en colonne */
        align-items: center;
        gap: 15px;
        background-color: transparent; /* Pas de fond pour la liste elle-meme */
        box-shadow: none;
        padding: 20px 0;
        border-radius: 0;
    }

    #main-nav ul li {
        width: 80%; /* Occupe plus de largeur */
        text-align: center;
    }

    #main-nav ul li a {
        font-size: 1.2em;
        display: block; /* Prend toute la largeur du li */
        padding: 15px 0;
        border-radius: 5px;
    }

    #main-nav ul li a:hover,
    #main-nav ul li a:focus {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Style pour le lien actif sur mobile */
    #main-nav ul li a.active {
        background-color: rgba(255, 255, 255, 0.15); 
        font-weight: bold;
    }

    /* Mobile dropdown styles */
    .dropdown .contact-link::after {
        content: '';
        transition: transform 0.3s ease;
        margin-left: auto; /* Push arrow to the right */
        padding-right: 20px; /* Space from edge */
    }

    .dropdown.open .contact-link::after {
        transform: rotate(180deg);
    }

    .dropdown .dropdown-menu {
        display: none; /* Hidden by default */
        position: static; /* Remove absolute positioning */
        transform: none;
        background-color: transparent;
        box-shadow: none;
        list-style: none;
        padding: 0;
        margin-top: 5px;
        min-width: 100%;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown.open .dropdown-menu {
        display: block; /* Show when .open is added */
    }

    .dropdown-menu li a {
        padding: 12px 20px 12px 40px; /* Indent sub-items */
        font-size: 1em; /* Smaller font size */
        background-color: rgba(0,0,0,0.2);
    }

    /* Optionnel: Ajouter un overlay sur le reste de la page quand le menu est ouvert */
    body.nav-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 100;
        opacity: 0;
        transition: opacity 0.4s ease-in-out;
        pointer-events: none;
    }
    body.nav-open.nav-active::after {
        opacity: 1;
        pointer-events: auto; /* Permet de cliquer dessus pour fermer ? (a ajouter en JS) */
    }

    /* Ajustements pour les conteneurs principaux */
    main {
        padding: 15px; /* Reduire padding */
        width: 100%; /* Assurer pleine largeur */
    }
    
    .crystal-ball-container {
         width: 100%; /* Permet de centrer correctement */
    }
    
    .crystal-ball {
        width: 240px; /* Reduire taille boule */
        height: 240px;
    }
    
    .crystal-ball-base {
        width: 150px; /* Reduire taille socle */
        height: 60px;
        margin-top: -30px; /* Ajuster chevauchement */
    }
    
    /* Ajustements pour la zone d'interaction */
    .interaction-zone {
        width: 100%; /* Prendre toute la largeur */
        gap: 15px;
        margin-top: 30px;
    }
    
    #question-input {
        width: 90%; /* Largeur relative */
        max-width: 350px; /* Empeche d'etre trop large */
        font-size: 1em;
    }

    #ask-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    
    /* Ajustements pour le contenu SEO / Pages */
    .seo-content, .content-page {
        width: 95%; /* Legerement moins que 100% pour voir la marge */
        padding: 15px 15px; /* Padding horizontal reduit */
        margin: 25px auto 15px auto; /* Garder centrage vertical/horizontal */
        box-sizing: border-box; /* S'assurer que c'est bien la */
    }

    .seo-content h2, .content-page h2 {
        font-size: 1.4em;
    }
    .content-page h3 {
        font-size: 1.2em;
    }
    .seo-content p, .content-page p, .content-page ul, .content-page ol {
        font-size: 1em;
    }

    footer {
        padding: 15px;
    }

    .privacy-option label {
        font-size: 0.85em;
    }

    .latest-questions {
        width: 100%;
        padding: 15px 20px;
        margin-top: 25px;
        margin-bottom: 10px; /* Reduit marge basse pour bouton */
        box-sizing: border-box;
    }

    #latest-questions-list {
         margin-bottom: 15px; /* Espace avant bouton sur mobile */
    }

    .latest-questions h2 {
        font-size: 1.3em;
    }

    #latest-questions-list li,
    #all-questions-list li {
        font-size: 0.9em;
        padding: 6px 10px;
    }

    .pagination-controls button {
        padding: 7px 12px;
        font-size: 0.8em;
    }

    #page-info {
        font-size: 0.9em;
    }

    .btn-see-more {
        padding: 10px 20px;
        font-size: 0.9em;
        letter-spacing: 1px;
    }

    .suggested-questions {
        margin: 20px 0 15px 0; /* Marges verticales reduites */
    }

    .suggested-questions h3 {
        font-size: 1.0em; /* Taille titre reduite */
        margin-bottom: 10px; /* Marge basse reduite */
    }

    .author-content {
        flex-direction: column;
        text-align: center;
    }

    .author-photo {
        width: 100px;
        height: 100px;
    }
    
    .suggestions-wrapper {
        gap: 8px; /* Espacement reduit */
    }
    
    .suggestion-btn {
        font-size: 0.8em; /* Taille police reduite */
        padding: 6px 10px; /* Padding reduit */
    }

    /* Reduire aussi l'espace avant la zone d'interaction */
    .interaction-zone {
        margin-top: 25px; /* Marge haute reduite */
    }
} 

/* --- Fin animations footer responsive --- */

/* === STYLES BLOG === */

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    width: 100%;
}

.blog-vignette {
    background-color: rgba(42, 42, 78, 0.6);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-vignette:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--primary-glow-color);
}

.blog-vignette img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-vignette h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2em;
    margin: 0;
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.2);
}

.article-page h1 {
    font-family: 'Orbitron', sans-serif;
    color: var(--ball-highlight);
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.2em;
    text-shadow: 0 0 8px var(--primary-glow-color);
}

.article-header-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.article-page .article-intro {
    font-size: 1.2em;
    font-style: italic;
    color: rgba(236, 240, 241, 0.85);
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.article-page h2 {
    text-align: left;
}

.article-page blockquote {
    border-left: 4px solid var(--primary-glow-color);
    margin: 25px 0;
    padding: 15px 20px;
    background-color: rgba(26, 26, 46, 0.5);
    font-style: italic;
    color: rgba(236, 240, 241, 0.9);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-page h1 {
        font-size: 1.8em;
    }
}