/* BODY */
body {
    background-image: url(img/bg1.jpg);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: "Courier New", Courier, monospace;
    margin: 0;
    padding: 120px 20px;
    
    
    display: flex;
    flex-direction: column;
    align-items: center; 
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.content:hover{
    transform: scale(1.02);
    transition: transform 0.2s ease;
    cursor: pointer;
}

/* pour donner au box le radius.. blur */
.navbar, .sidebar, .content, .banner img, .box {
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid #ffffff;
    backdrop-filter: blur(8px);
    border-radius: 15px; /* L'arrondi partout */
    box-sizing: border-box;
    
}

.navbar:hover{
    transform: scale(1.02);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.navbar a:hover{
    transform: scale(1.02);
    transition: transform 0.2s ease;
    cursor: pointer;
}

/* centrer le tout */
.navbar {
    padding: 15px;
    display: flex;
    justify-content: center; 
    gap: 30px;
}

.navbar a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

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

.banner img:hover{
    transform: scale(1.02);
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* layout box gauche*/
.main-content {
    display: flex;
    gap: 20px;
    align-items: stretch; 
}

.main-content updates:hover{
    transform: scale(1.02);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.sidebar {
    width: 250px;
    padding: 20px;
}

/* enlever les liens + hover */
.sidebar a {
    text-decoration: none;
    color: inherit;    
    display: block;   
    padding: 5px 0;    
}


.box a:hover {
    color: #ffffff;
    background-color: #4c8b439b;
    border-radius: 8px;
    padding-left: 10px;
    transition: all 0.3s ease;
}

/* interieur de side bar color etc*/
.sidebar .box, .sidebar .updates {
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid #ffffff;
    backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.sidebar .box:hover, .sidebar .updates:hover {
    transform: scale(1.05);
}

.content {
    flex: 1;
    padding: 30px;
}

.footer-badges {
    margin-top: 10px;
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; 
    padding: 15px;
    


.footer-badges img {
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 31px;
    width: 88px;
}
}

.gallery {
    display: flex;          
    gap: 15px;              
    margin-top: 20px;
    width: 100%;           
}

.gallery img {
    flex: 1;                
    width: 0;              
    height: 200px;         
    object-fit: cover;      
    border: 2px solid #010101;
    box-sizing: border-box;
}

.gallery img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* BLOG 

/* Style des articles de blog */
.blog-list {
    margin-top: 30px;
}

.blog-post {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* Le titre cliquable */
.blog-post summary {
    list-style: none; /* Enlève la flèche par défaut du navigateur */
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

/* La flèche personnalisée */
.arrow {
    transition: transform 0.3s ease;
    color: #4c8b43; /* Ton vert */
}

/* Rotation de la flèche quand c'est ouvert */
.blog-post[open] .arrow {
    transform: rotate(90deg);
}

/* Contenu de l'article qui apparaît */
.post-content {
    padding: 20px 10px;
    line-height: 1.6;
    animation: fadeIn 0.5s ease;
}

/* Animation fluide pour l'apparition du texte */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enlever la flèche par défaut sur Safari/Chrome */
.blog-post summary::-webkit-details-marker {
    display: none;
}
