/* Styles Généraux */
body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.5;
}

/* Header et Menu */
#main-header {
	position: fixed;
	top: 0;
	width: 100%;
	background-color: #2c3e50; /* Couleur pleine au départ */
	color: white;
	transition: background-color 0.4s ease;
	z-index: 100;
}

#main-header.transparent {
    background-color: rgba(44, 62, 80, 0.7); /* Transparent au scroll */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
}

.nav-links li {
    margin-left: 20px;
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Sous-menus */
.submenu {
    display: none;
    position: absolute;
    background: #34495e;
    top: 100%;
    left: 0;
    padding: 10px;
    list-style: none;
    min-width: 150px;
}

.dropdown:hover .submenu {
    display: block;
}

.hero {
	font-family: Arial, Helvetica, sans-serif;
	margin: 70px;
	text-align: left;
}

/* Le cadre principal */
.diaporama-container {
  max-width: 200px; /* Vous pouvez changer la largeur ici */
  position: relative;
  margin: auto;
  overflow: hidden; /* Pour que rien ne dépasse du cadre */
  border: 5px solid #fff; /* Optionnel : un petit bord blanc */
  box-shadow: 0px 4px 15px rgba(0,0,0,0.3); /* Un bel effet d'ombre */
}

/* On cache les images par défaut pour le script */
.ma-diapo {
  display: none;
}

/* Style du texte sur l'image */
.texte-legende {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 20px;
  background-color: rgba(0,0,0,0.5); /* Fond noir transparent */
  padding: 10px 0;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* Mise en page Parallèle */
.content-split {
    display: flex;
    padding: 50px 5%;
    gap: 20px;
    margin-top: 30px; /* Pour éviter que le menu cache le début */
}

.column {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.placeholder-slider {
    height: 100px;
    background: #f9f9f9;
    display: flex 1;
    align-items: center;
    justify-content: center;
}

/* mise en page de gallerie photo remise des diplomes */

/* Style des boutons de l'album */
.album-filter {
	display: flex;
    flex-direction: column; /* Aligne les boutons verticalement */
    gap: 10px;              /* Ajoute un espace constant entre les boutons */
	/* margin-bottom: 20px;  */
  /*  border-bottom: 2px solid #0056b3;   */
    padding-bottom: 10px;
	align-items: flex-start; /* Empêche les boutons de prendre toute la largeur si vous ne le voulez pas */
}

.btn-album {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 10px 20px;
    cursor: pointer;
    /* margin-right: 5px; */
    /* border-radius: 5px 5px 0 0; */
	border-radius: 5px; /* J'ai arrondi les 4 coins car l'effet "onglet" marche moins bien en vertical */
    font-weight: bold;
	text-decoration: none; /* Pour enlever le soulignage du lien */
    color: black;
}

.btn-album.active {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

/* Gestion de l'affichage des albums */
.album-content {
    display: none; /* Cache tout par défaut */
    padding: 20px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.album-content.active {
	display: block;
}

/* Conteneur principal */
.image-zoom-container {
	position: relative;
	display: inline-block;
	margin: 10px;
	vertical-align: middle;
}

/* Style de la miniature (40x40) */
.img-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid #0056b3; /* Bleu Apiref */
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Conteneur de la grande image (caché par défaut) */
.img-preview {
    display: none;
    position: absolute;
    top: 0;
    left: 50px; /* Décale la grande image pour ne pas cacher la souris */
    width: 450px;
    height: 450px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    border-radius: 8px;
    overflow: hidden;
}

/* La grande image à l'intérieur */
.img-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garde les proportions sans couper l'image */
}

/* Le bandeau de commentaire */
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 86, 179, 0.85); /* Fond bleu transparent */
    color: white;
    padding: 12px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

/* Affichage au survol */
.image-zoom-container:hover .img-preview {
    display: block;
}

.image-zoom-container:hover .img-thumb {
    transform: scale(1.2);
}


/* Footer */
footer {
	background: #2c3e50;
	color: white;
	font-family: Calibri;
	line-height: 1.5;
	margin-top: 10px;
	font-size: 12px;
}

.footer-container {
	display: flex;
	justify-content: flex-end; /* Aligne l'ensemble vers la droite */
	align-items: center;
}

.footer-text {
	margin-right: 30px;
	text-align: center;
}

.footer-logos img {
    width: 75px;
    height: 75px;
    margin-left: 10px;
    background: white; /* Pour voir l'emplacement si pas d'image */
}
/* --- RESPONSIVE DESIGN --- */

/* Cacher le menu hamburger par défaut sur ordinateur */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

@media screen and (max-width: 768px) {
    /* Menu Mobile */
    .nav-links {
        position: absolute;
        top: 70px;
        left: -100%; /* Caché à gauche */
        flex-direction: column;
        background-color: #2c3e50;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }

    .nav-links.active {
        left: 0; /* Affiche le menu */
    }

    .nav-links li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block; /* Affiche le bouton hamburger */
    }

    /* Sous-menus sur Mobile */
    .submenu {
        position: static;
        background: #3e5871;
    }

    /* Passage des colonnes en mode vertical */
    .content-split {
        flex-direction: column;
        margin-top: 100px;
    }

    /* Footer Mobile */
    .footer-container {
	flex-direction: column;
	text-align: center;
    }

    .footer-text {
	margin-right: 0;
	margin-bottom: 20px;
	
    }

    .footer-logos {
        justify-content: center;
        display: flex;
    }
}



/* Le conteneur qui limite la vue */
.scroll-container {
  width: 100%;
  border: 1px solid #ccc;
  overflow: hidden; /* Cache le texte qui sort du cadre */
  background: #f9f9f9;
  white-space: nowrap; /* Empêche le texte de revenir à la ligne */
  padding: 10px 0;
}

/* L'élément qui bouge */
.scroll-text {
  display: inline-block;
  padding-left: 100%; /* Commence à l'extérieur à droite */
  animation: scroll-animation 15s linear infinite;
  font-family: sans-serif;
  font-weight: bold;
}

/* Définition de l'animation */
@keyframes scroll-animation {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Optionnel : Pause au survol de la souris */
.scroll-container:hover .scroll-text {
  animation-play-state: paused;
}