body {
    margin: 0;
    background: #ffb400;
    font-family: Arial, sans-serif;
    color: #003686;
}


.bienvenue img {
    height: 100%;
}


/* HEADER */
.header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #ffb400;
    position: relative;
}

/* LOGO */
.logo {
    height: 100px;
}

/* CENTRE */
.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


/* DROITE */
.header-right {
    margin-left: auto; /* 🔥 pousse à droite */
    display: flex;
    align-items: center;
}

/* BURGER */
.burger {
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
}

/* MENU */
#menu {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: #003686;
    border-radius: 8px;
    overflow: hidden;
}

/* LIENS */
#menu a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
}

#menu a:hover {
    background: #001f4d;
}


.divider {
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        #003686,
        transparent
    );
    margin: 20px 0;
opacity: 0.5;
height: 3px;
}

/* CONTENU */
.content {
    max-width: 1200px;
    margin: auto;
}

/* CARD */
.card {
    width: 90%;
    margin: 30px auto;
    background: #ffb400;
    border: 2px solid #003686;
    padding: 15px;
    border-radius: 10px;
}


/* ===== LATEST ===== */
.latest-grid {
    display: grid;
    gap: 10px;
    justify-content: center; /* 🔥 centre les images */
}

/* colonnes */
.latest-grid.count-1 { grid-template-columns: 1fr; }
.latest-grid.count-2 { grid-template-columns: repeat(2, auto); }
.latest-grid.count-3 { grid-template-columns: repeat(3, auto); }

.latest-item {
    text-align: center;
}

/* 🔥 IMAGE FIX */
.latest-item img {
    max-width: 300px;   /* 🔥 limite */
    width: 100%;        /* responsive */
    height: auto;
    border-radius: 10px;
    transition: 0.8s;
}

/* hover */
.latest-item img:hover {
    position: relative;
    width: 600px;
    z-index: 10;
	    transform: scale(2);
}


/* date */
.date {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
	gap-bottom: 50px;
}

.gallery-item {
    text-align: center;
	border-radius: 10px;
    border: 0px solid #003686;
    padding-left: 0px;
}

.gallery-item img {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 12px;
    transition: 0.8s;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(2);
}

/* IMMAT */
.immat {
    text-align: center;
	font-size: 13px;
    margin-top: 5px;
}

/* BUTTON */
#loadMore {
    margin: 20px auto;
    display: block;
    padding: 10px 20px;
    border: none;
    background: #003686;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}
.year-title {
    text-align: center;
    font-size: 22px;
    margin: 20px 0 10px;
    color: #003686;
    font-weight: bold;
}
.year-separator {
    width: 100%;
    text-align: center;
    margin: 40px 0 20px;
    position: relative;
}

.year-separator span {
    background: #ffb400;
    padding: 0 15px;
    font-size: 22px;
    font-weight: bold;
    color: #003686;
}

.year-separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 54, 134, 0.3);
    z-index: -1;
}

.years-nav {
    text-align: center;
}

.year-btn {
    margin: 5px;
    padding: 8px 15px;
    background: #003686;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
#btnTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #003686;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: none;
    z-index: 9999;
}

#btnTop:hover {
    background: #001f4d;
}
.btn-go {
    background: #003686;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
}
.year-btn.active {
    background: #003686;
    color: white;
}

}
.dynamic-card {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.4s ease forwards;
}
.card {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#search {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#suggestions {
    margin-top: 5px;
    border-radius: 8px;
    overflow: hidden;
}

.suggestion {
    padding: 10px;
    background: white;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.suggestion:hover {
    background: #003686;
    color: white;
}
body:not(.admin) .gallery-item img:hover {
    transform: scale(2);
}
.logo-bar {
    display: flex;
    justify-content: center;   /* centré */
    align-items: center;
    gap: 40px;                 /* espace entre logos */
    flex-wrap: wrap;           /* passe à la ligne si trop */
    padding: 10px 0;
    background: #ffb400;
}

.logo-bar img {
                 /* taille uniforme */
    max-width: 150px;          /* évite logos énormes */
    object-fit: contain;
	border-radius: 8px;
    transition: 0.2s;
}

.logo-bar img:hover {
    transform: scale(1.4);    /* léger zoom */
}