/* Reset et base */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 5%;
    background: url("../images/header-bg-mini.webp") no-repeat center center;
    background-size: cover; /* ✅ L'image couvre tout le header */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    min-height: 200px; /* ✅ pour que l’image soit bien visible */
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* voile blanc semi-transparent */
    z-index: 0;
}

/* pour que le contenu passe au-dessus du voile */
header * {
    position: relative;
    z-index: 1;
}


header img {
    height: 50px;
	margin-top: 20px;
	margin-bottom: 10px;
}

/* Bouton du menu hamburger (masqué par défaut sur desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
}

/* Menu de navigation (desktop) */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
}

nav a:hover {
    color: #0077cc;
}

/* Contenu principal (desktop) */
main {
    padding: 40px 5%;
    text-align: center;
}

h1 {
    font-size: 2em;
    margin-bottom: 10px;
	color: #0056b3;
}

p {
    font-size: 1.1em;
    color: #555;
}

/* Pied de page */
footer {
    text-align: center;
    padding: 20px;
    background: #f1f1f1;
    margin-top: 40px;
    font-size: 0.9em;
}

select, option {
    width: 95%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

a {
	text-decoration: none;
}

.success {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	border-color: #0d6a1f;
	border-style: solid;
	border-radius: 5px;
	border-width: 1px;
	color: #0d6a1f;
	background-color: #aadcb3;
	font-size: 1.5em;
	padding: 10px;
	margin-bottom: 20px;
	text-align: center;
}

.error {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	border-color: red;
	border-style: solid;
	border-radius: 5px;
	border-width: 1px;
	color: red;
	background-color: #edc7c7;
	font-size: 1.5em;
	margin-bottom: 20px;
	padding: 10px;
	text-align: center;
}

.container {
    width: 100%;
    max-width: 800px;
	margin: 0 auto;
    padding: 20px;
	text-align: left;
}

.container ul {
    list-style: none;
    padding-left: 0;
}

.container li::before {
    content: "✔️";
    margin-right: 8px;
    color: #0077cc;
}

.menu a.logout {
    color: #cc0000;         /* rouge */
    font-size: 1.2em;       /* un peu plus grande */
}

.menu a.logout:hover {
    color: #ff0000;         /* rouge vif au survol */
}

.menu a.logout i {
    margin: 0;              /* pas d’espace inutile */
}


/* Responsive : écrans ≤ 768px (tablettes et mobiles) */
@media (max-width: 768px) {
    header {
        background-position: center top;
        background-size: cover;
        min-height: 80px;
		flex-direction: column;
    }

    header img {
        height: 80px;
        margin-bottom: 10px;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }

    nav ul {
        display: none; /* Masqué par défaut sur mobile */
        flex-direction: column;
        width: 200px;
        text-align: center;
        background: #f9f9f9;
        position: absolute;
        left: 0;
        top: 10px;
        padding: 0;
        margin: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        list-style: none;
		z-index: 1000;
    }

    nav ul.active {
        display: flex; /* Affiché quand la classe 'active' est ajoutée */
    }

    nav li {
        margin: 0;
        padding: 10px;
        border-top: 1px solid #eee;
    }

    main {
        padding: 20px 5%;
        margin-top: 80px;
    }

    h1 {
        font-size: 1.5em;
    }

    p {
        font-size: 1em;
    }
}

/* Responsive : écrans ≤ 480px (petits mobiles) */
@media (max-width: 480px) {
    header img {
        height: 60px;
    }

    h1 {
        font-size: 1.2em;
    }

    p {
        font-size: 0.9em;
    }
}

.fiche_link {
	margin-top: 10px;
	font-weight: bold;
}

.fiche_button {
    display: inline-block;
    background-color: #318f3b;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.fiche_button i {
    margin-right: 6px;
}

.fiche_button:hover {
    background-color: #0056b3;
}
