/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Fond noir demandé */
    background-color: #000000;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    /* On permet le scroll si le contenu est plus grand que l'écran */
    overflow-x: hidden;
    overflow-y: auto;
}

/* Le canvas prend tout l'écran et reste fixe en arrière-plan */
#canvas1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Tout au fond */
}

/* Conteneur principal pour le contenu par-dessus le canvas */
.container {
    position: relative;
    z-index: 2;
    /* Au-dessus du canvas */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

header {
    margin-bottom: 50px;
    animation: fadeIn 1.5s ease-out;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 190, 255, 0.5);
}

header p {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Styles pour la liste des liens (index.html) */
.link-list h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0, 190, 255, 0.3);
    /* Couleur cohérente avec le h1 */
    display: inline-block;
    padding-bottom: 10px;
}

.link-item {
    background: rgba(255, 255, 255, 0.05);
    /* Fond semi-transparent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(2px);
    /* Léger flou derrière la carte */
}

.link-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 190, 255, 0.15);
    border-color: rgba(0, 190, 255, 0.4);
}

.link-item h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.link-item a {
    text-decoration: none;
    color: #4dd0e1;
    /* Cyan clair pour les liens */
    transition: color 0.3s;
}

.link-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.link-item p {
    font-size: 1rem;
    color: #aaaaaa;
    line-height: 1.5;
}

/* --- Styles Spécifiques à photos.html --- */

.container.gallery {
    max-width: 1200px;
    /* Conteneur plus large pour la galerie */
}

.subtitle {
    color: #ccc;
    font-size: 1.2rem;
}

.back-link {
    color: #aaa;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px;
    display: inline-block;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
}

/* Grille des albums */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    animation: fadeIn 1.5s ease-out;
}

.album-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.album-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 190, 255, 0.5);
}

.album-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #222;
    position: relative;
    /* --- APPLICATION DU FLOU PERMANENT --- */
    filter: blur(20px);
    transition: filter 0.5s ease;
    /* ------------------------------------ */
}

/* On garde le flou, donc pas de .album-card:hover .album-cover { filter: blur(0); } */

.album-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.album-info {
    padding: 20px;
    text-align: left;
}

.album-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    color: #ffffff;
}

.album-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #bbb;
}

/* Carte désactivée / Placeholder */
.album-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.album-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Animation générale --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive styles (pour 404.html et autres) --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 20px;
    }
}