/* Reset et base */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: #FFFF99;
	font-style: normal;
    background-image: url(images/fondn+.jpg);
    background-repeat: repeat;
}

/* Bannière en haut */
.bando {
    width: 100%;
    height:380px;
    background-color: rgba(248, 248, 248, 0.9);
    background-image: url(images/BandoAbbatiale2.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    text-align: center;
    position: relative;
}
.bando-titre {
	margin-top:200px;
	margin-right:40px;
	float: right;
	font-size:2.5em;
	font-family: "Copperplate Gothic Bold";
	color:#EECE39;
	text-outline:rgb(128,128,128);
	text-shadow:rgb(102,102,102);
}
/* Layout général */
.page-wrapper {
    display: flex;
   /* margin-top: 380px;  Espace pour la bannière */
}

/* Menu à gauche */
.sidebar {
    width: 150px;
    background-image: url(images/colonnes.png);
    background-repeat: repeat;
    color: white;
    position: fixed;
    top: 380px; /* Positionné sous la bannière */
    left: 0;
    height: calc(100vh - 380px); /* Hauteur moins la bannière */
    overflow-y: auto;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li a {
    color: white;
    padding: 8px 20px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #444;
}

/* Sous-menus */
.submenu {
    display: none;
    padding-left: 20px;
    background-color: rgb(49, 22, 7);
}

.menu li.has-submenu:hover .submenu {
    display: block;
}


/* Contenu central */
.main-content {
    flex: 1;
    padding: 20px;
    margin-left: 170px; /* Espace pour le menu */
    
}
/* Pied de page */
.footer {
    width: calc(100% - 170px);
    margin-left: 170px;
    color: white;
    text-align: center;
    padding: 10px 0;
}

/* Bouton hamburger (masqué sur PC) */
.menu-toggle {
    display: none;
    background: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

/* Adaptation pour mobile */
@media (max-width: 767px) {
    .page-wrapper {
        flex-direction: column;
        /*margin-top: 380px;*/
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        
    }

    .menu {
        display: none;
    }

    .menu-toggle {
        display: block;
        position: relative;
        width: 100%;
        top: 0;
    }

    .menu.active {
        display: block;
    }

    .footer {
        width: 100%;
        margin-left: 0;
    }
}
/* ===== STYLES PERSONNALISÉS ===== */
a:link {
	color: #FF9900;
	text-decoration: none;
	cursor: auto;
}
a:visited {
    color: #CC7A00;
}

a:hover {
    color: #FFCC00;
    text-decoration: underline;
}
.gris {
    color: hsl(0, 0%, 100%);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 24px;
}
.gros1 {
	
	font-size: 1.4em;
}

.bleu {
    color: hsl(210, 100%, 50%);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 24px;
}
.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 (9/16 = 0.5625) */
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.sous-titreligne {
	background-color: #FF9900;
    color: black;
    padding: 5px 15px;
    display: inline-block;
    border-radius: 0px 0px 0px 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 1);
    margin-bottom: 5px; /* Espace en bas */
}
/* LIGHTBOX */
    /* Déplace la légende en bas de la lightbox */
    .lightcase-caption {
        bottom: 0 !important;
        top: auto !important;
    }

    /* Ajuste la taille de la lightbox sur mobile */
    @media (max-width: 767px) {
        .lightcase-content {
            max-width: 95% !important;
            max-height: 90vh !important;
            margin: auto;
        }

        .lightcase-caption {
            font-size: 14px;
            padding: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
        }
    }

