/* CSS pour la page annexe Publications avec effets néon */

/* Variables */
:root {
    --primary: #00ffff;
    --secondary: #ff00ff;
    --accent: #ffff00;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
}

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

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Optional: grille néon subtile derrière */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.03) 2px,
        rgba(0, 255, 255, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* Header simple */
header nav {
    padding: 15px 50px;
    background: rgba(10,10,10,0.95);
    border-bottom: 1px solid rgba(0,255,255,0.2);
}

header nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

header nav a:hover::after {
    width: 100%;
}

header nav a:hover {
    color: var(--primary);
}

/* Section Publications */
main {
    padding: 100px 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#projects h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0,255,255,0.5),
                 0 0 20px rgba(0,255,255,0.3),
                 0 0 30px rgba(0,255,255,0.2);
    animation: glowTitle 2s ease-in-out infinite alternate;
}

@keyframes glowTitle {
    0% { opacity: 0.8; text-shadow: 0 0 10px rgba(0,255,255,0.5); }
    100% { opacity: 1; text-shadow: 0 0 20px rgba(0,255,255,0.8), 0 0 40px rgba(0,255,255,0.6); }
}

/* Container des cartes */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Cartes individuelles */
.project-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    width: 250px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0,255,255,0.2);
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    position: relative;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Titre de la carte */
.project-card h3 {
    margin: 10px 0;
    font-size: 1.1rem;
    font-family: 'Audiowide', sans-serif;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* Hover effet néon/glow
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(0,255,255,0.5),
                inset 0 0 15px rgba(0,255,255,0.2);
    border: 1px solid var(--primary);
} */

/* .project-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, var(--primary), transparent);
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.5s ease;
} */

.project-card:hover::before {
    animation: shine 0.5s ease;
}

@keyframes shine {
    0% { transform: rotate(45deg) translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: rotate(45deg) translateY(100%); opacity: 0; }
}

/* Boutons */
.btn-primary {
    background-color: var(--primary);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary), 0 0 25px var(--secondary);
}
/* ==========================
   FOOTER
========================== */

/* Style principal du footer */
footer {
    background: rgba(10, 10, 10, 0.95); /* Fond sombre et légèrement transparent */
    border-top: 1px solid rgba(0, 255, 255, 0.2); /* Bordure cyan subtile */
    padding: 50px 50px 30px; /* Padding haut, côtés, bas */
    margin-top: 100px; /* Décalage par rapport au contenu précédent */
    position: relative;
    z-index: 2;
}

/* Conteneur du contenu du footer */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid; /* utilisation d’une grille pour 3 sections */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* colonnes adaptatives */
    gap: 40px;
    margin-bottom: 30px;
}

/* Titres de chaque section */
.footer-section h3 {
    font-family: 'Audiowide', sans-serif;
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Texte dans la section "Restons en contact" aligné à droite */
.footer-section:last-child {
    text-align: right;
}

/* Liste des liens dans Navigation et Services */
.footer-section ul {
    list-style: none; /* supprime les puces */
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px; /* espacement vertical */
}

/* Liens de Navigation et Services */
.footer-section a {
    color: var(--text-secondary); /* gris clair */
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary); /* cyan */
    transform: translateX(5px);
    display: inline-block;
}

/* ==========================
   SOCIAL LINKS
========================== */

/* Conteneur des liens sociaux */
.social-links {
    display: flex;
    justify-content: flex-end; /* alignement à droite */
    gap: 20px;
    margin-top: 20px;
}

/* Liens sociaux */
.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

/* Icônes sociales */
.social-links a img {
    width: 40px;
    height: 40px;
    display: block;
    transition: all 0.3s ease;
}

/* Effet hover glow cyan sur les icônes */
.social-links a:hover img {
    transform: translateY(-5px);
    filter: drop-shadow(0 0 5px #00ffff)
            drop-shadow(0 0 10px #00ffff)
            drop-shadow(0 0 20px #00ffff)
            drop-shadow(0 0 30px #00ffff);
}

/* ==========================
   FOOTER BOTTOM
========================== */
.footer-bottom {
    font-family: 'Exo 2', sans-serif;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-bottom a {
    color: white;
}

/* Responsive petits écrans */
@media (max-width: 768px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
    }
}
