/* Reset et base */

/* Vidéo en arrière-plan */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -100;
    pointer-events: none;
    filter: brightness(0.5); /* optionnel : assombrit la vidéo pour bien lire le texte */
}

/* Empêche la transparence des sections */
main, header, footer, section {
    position: relative;
    z-index: 1; /* légèrement transparent pour voir la vidéo mais bien lire le contenu */
    backdrop-filter: blur(1px); /* optionnel pour un léger flou */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Gestion des images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Header */
header {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: white;
    color: #0d6efd;
}

.btn-logout {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-logout:hover {
    background-color: #bb2d3b;
    border-color: #bb2d3b;
    color: white;
}

/* Navigation */
nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin-top: 1rem;
    flex-wrap: wrap;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 3rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

h2 {
    color: #0d6efd;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

/* Team section */
.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    justify-items: center;
    margin-top: 2rem;
}

.member {
    text-align: center;
}

.member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #0d6efd;
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.2);
    margin: 0 auto 1rem;
}

/* Stories section */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.story-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.story-card h3 {
    padding: 1rem 1rem 0;
}

.story-card p {
    padding: 0 1rem 1rem;
    color: #666;
}

/* Gallery section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .team {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

