@import url(https://fonts.googleapis.com/css?family=Raleway);
@import "normalize.css";
@import "variables.css";
@import "annuaire.css";
@import "equipe.css";
@import "seminaire.css";
@import "publications.css";
@import "prix-these.css";
@import "utam.css";
@import "organigramme.css";
@import "stflour.css";

body
{
	font-family: sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	font-size: 1.05em;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/*------------------------------*/
/*-----------HEADER-------------*/
/*------------------------------*/

body > header
{
	width: 100%;
	/*height: 200px;*/
	background-color: lightblue;
	background-image: url("../images/bg_math02.jpg");
	background-size: cover;
	background-position: center;
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	align-items: center;
}


#lmbp img
{
	display: block;
	width: 100%;
}

/*------------------------------*/
/*------------MENU--------------*/
/*------------------------------*/

nav
{
	width: 100%;
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	font-style: normal;
	color: var(--text-nav);
	position: sticky;
	background-color: var(--bg-color-nav);
	top: 0px;
	z-index:500;
}

@media (min-width: 768px)
{
	ul.main_menu
	{
		font-size: 1.3em;
		display: flex;
		gap: 0;
		flex-direction: row;
		width: 100%;
		max-width: 1280px;
		justify-content: space-evenly;
		align-items: center;
		margin: auto;
		list-style: none;
	}

	ul.main_menu > li
	{
		flex: 1;
		text-align: center;
	}

	ul.main_menu > li:hover label
	{
		color: var(--text-nav-hover);
		transition: 0.5s;
	}

	ul.main_menu a, ul.main_menu label
	{
		text-decoration: none;
		color: var(--text-nav);
		display: block;
		width: 100%;
		height: 100%;
		padding: 20px 20px 20px 20px;
	}	
	
	ul.submenu
	{
		display: none;
		list-style: none;
		width: 250px;
		background-color: var(--bg-color);
		font-size: 0.8em;
		padding: 0px;
		margin-top: 0px;
		position: absolute;
		list-style: none;
		opacity: 0;
		transition: opacity 0.5s, display 0.5s allow-discrete;
	}

	ul.submenu li
	{
		text-align: left;
	}

	ul.submenu li:hover
	{
		background-color: var(--bg-color-nav-hover);
		transition: 0.5s;
	}
	
	ul.submenu a
	{
		padding: 10px 20px 10px 20px;
		color: var(--text-nav-hover);
	}

	ul.submenu li:hover a
	{
		color: var(--text-nav);
		transition: 0.5s;
	}

	li:hover > ul.submenu
	{
		display: block;
		opacity: 1;
		box-shadow: 0px 10px 10px rgba(0,0,0,0.15);
		/*transition: opacity 0.5s, display 0.5s allow-discrete;*/
	}
	
	.plus
	{
		display: none;
	}

	@starting-style 
	{
		li:hover > ul.submenu 
		{
			opacity: 0;
		}
	}

}	

.burger-icon, #menu_toggle, #toggle_labo, #toggle_recherche, #toggle_activites, #toggle_gp, #toggle_liens
{
	display: none;
}
	
li a:has(.material-symbols-outlined)
{
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 0px;
}
 
.material-symbols-outlined
{
	font-size: 2.0em;
	font-variation-settings:
	'FILL' 1,
	'wght' 400,
	'GRAD' 0,
	'opsz' 48;
}

a:hover .material-symbols-outlined
{
	font-variation-settings:
	'FILL' 0,
	'wght' 400,
	'GRAD' 0,
	'opsz' 48;
	transition: 0.5s;
}

@media (max-width: 768px)
{
	ul.main_menu
	{
		font-size: 1.3em;
		gap: 0;
		display: flex;
		/*display: none;*/
		padding: 0px;
		flex-direction: column;
		justify-content: space-evenly;
		width: 100%;
		align-items: center;
		list-style: none;
		margin: auto;
		max-height: 0;
		opacity: 0;
		/*overflow: hidden;*/
		transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
	}
	
	ul.main_menu > li
	{
		width: 100%;
		border-bottom: 0px;
		border-top: 1px solid #ddd;
	}
	
	ul.main_menu > li:has(input:checked)
	{
		border-bottom: 1px solid #333;
		border-top: 1px solid #333;
	}
	
	
	li.has_submenu > label, ul.main_menu > li > a
	{
		display: block;
		text-decoration: none;
		color: var(--text-nav);
		width: 100%;
		text-align: left;
		padding: 25px;
		cursor: pointer;
	}	
	
	li.has_submenu > label
	{
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		
	}
	
	.plus
	{
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		width: 20px;
		height: 20px;
	}	
	
	.plus span
	{
		display: block;
		height: 2px;
		width: 100%;
		background-color: #888;
		transition: all 0.5s ease-in-out;
	}
	.plus span:nth-child(1) 
	{
		opacity: 1;
		transform: translateY(10px) rotate(90deg);
	}
	.plus span:nth-child(2) 
	{
		opacity: 1;
	}
	.plus span:nth-child(3) 
	{
		opacity: 0;
	}
	input:checked + label .plus span:nth-child(1) 
	{
		opacity: 0;
	}
	
	
	#menu_toggle:checked ~ ul.main_menu
	{
		opacity: 1;
		/*display: flex;*/
		max-height: 3000px;
	}
	
	/*pour éviter les chevauchement avec le menu des séminaires*/
	#menu_toggle:checked ~ ul.main_menu li
	{
		display: block;
	}
	
	/*pour éviter les chevauchement avec le menu des séminaires*/
	#menu_toggle:not(:checked) ~ ul.main_menu li
	{
		display: none;
	}
	
	ul.submenu
	{
		display: flex;
		padding: 0px;
		width: 100%;
		background-color: var(--bg-color-nav-hover);
		flex-direction: column;
		align-items: left;
		justify-content: space-around;
		list-style: none;
		max-height: 0;
		opacity: 0;
		overflow: hidden;
		transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
	}
	
	ul.submenu a
	{
		color: var(--text-nav-hover);
		display: block;
		width: 100%;
		padding: 25px;
		text-decoration: none;
	}
	ul.submenu li
	{
		width: 100%;
		border-top: 1px solid #ccc;
	}
	
	#toggle_labo:checked ~ ul.submenu, #toggle_recherche:checked ~ ul.submenu, #toggle_activites:checked ~ ul.submenu, #toggle_gp:checked ~ ul.submenu, #toggle_liens:checked ~ ul.submenu
	{
		opacity: 1;
		max-height: 3000px;
	}
	
	.burger-icon 
	{
	  width: 65px;
	  height: 50px;
	  display: flex;
	  flex-direction: column;
	  justify-content: space-between;
	  cursor: pointer;
	  padding: 13px;
	}

	.burger-icon span 
	{
	  display: block;
	  height: 3px;
	  width: 100%;
	  background-color: var(--text-nav);
	  transition: all 0.3s ease-in-out;
	}

	/* Animation vers le X quand c'est coché */
	#menu_toggle:checked + .burger-icon span:nth-child(1) 
	{
	  transform: translateY(11px) rotate(45deg);
	}

	#menu_toggle:checked + .burger-icon span:nth-child(2) 
	{
	  opacity: 0; /* La barre du milieu disparaît */
	}

	#menu_toggle:checked + .burger-icon span:nth-child(3) 
	{
	  transform: translateY(-11px) rotate(-45deg);
	}
}


/* ============================================================
   Carrousel d'actualités — remplace .container_actu et
   .container_actu section de l'ancien style.css
   ============================================================ */

.actu-carousel {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 50px;      
    box-sizing: border-box;
}

.actu-carousel__clip {
    overflow: hidden;
    padding: 20px 20px;   /* 20px > border-radius(15px) + débordement d'ombre latérale */
    margin: -20px -20px;  /* compense exactement */
}

.actu-carousel__track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* ── Carte : 3 visibles simultanément ────────────────────── */
.actu-card {
    flex: 0 0 calc((100% - 28px) / 3);
    margin-right: 14px;
    min-height: 280px;
    padding: 22px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    overflow: hidden;
    background-color: var(--bg-color);
    background-size: cover;
    background-position: center;
    position: relative;
    transition: box-shadow 0.3s;
	opacity: 0;
}

.actu-card:hover {
    box-shadow: 0px 7px 13px rgba(0, 0, 0, 0.2);
}

.actu-card__overlay {
    position: absolute;
    inset: 0;
    /* Overlay clair, l'image reste visible mais discrète et le texte
       sombre garde une bonne lisibilité */
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.85) 100%
    );
}

/* Colonne pleine hauteur : titre1+titre2 en haut, texte au centre
   (flex-grow), lien toujours collé en bas */
.actu-card__content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.actu-card__head {
    flex: 0 0 auto;
}

.actu-card .actu_lieu {
    font-size: 0.78em;
    color: var(--text-color);
    display: block;
    margin-bottom: 4px;
}

.actu-card h3 {
    color: var(--text-nav);
    margin: 0 0 8px 0;
    font-size: 1.15em;
    line-height: 1.3;
}

.actu-card__texte {
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
    max-height: 7.5em;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.actu-card__texte p,
.actu-card__texte div {
    margin: 0;
    display: inline;
}

.actu_lien {
    flex: 0 0 auto;
    margin-top: 12px;
}

/* Bouton discret : simple lien souligné, pas de fond plein */
.actu-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-nav);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82em;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s, color 0.25s;
}

.actu-card__btn::after {
    content: '→';
    transition: transform 0.25s;
}

.actu-card__btn:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.actu-card__btn:hover::after {
    transform: translateX(3px);
}

/* ── Flèches ──────────────────────────────────────────────── */
.actu-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-nav);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s;
    z-index: 2;
}

.actu-carousel__arrow:hover {
    background-color: var(--bg-color);
}

.actu-carousel__arrow--prev { left: 0; }
.actu-carousel__arrow--next { right: 0; }

/* ── Dots ─────────────────────────────────────────────────── */
.actu-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.actu-carousel__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background-color: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s, transform 0.3s;
}

.actu-carousel__dot.active {
    background-color: var(--text-nav);
    transform: scale(1.25);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 992px) {
    .actu-card {
        flex: 0 0 calc((100% - 12px) / 2);   /* 12px = 1 × gap */
        margin-right: 12px;
    }
}

@media (max-width: 640px) {
    /* 1 carte visible en mobile */
    .actu-carousel {
        padding: 0 40px;
    }
	.actu-carousel__clip {
        padding: 20px 10px;
        margin: -20px -10px;
    }
    .actu-card {
        flex: 0 0 100%;
        margin-right: 0;
        min-height: 240px;
    }
    .actu-carousel__arrow {
        width: 34px;
        height: 34px;
    }
}


/*------------------------------*/
/*------------MAIN--------------*/
/*------------------------------*/

main
{
	width: 100%;
	max-width: 1280px;
	margin: auto;
	padding-left: 10px;
	padding-right: 10px;
	flex: 1 0 auto;
}

/*------------------------------*/
/*----------Bouton actu---------*/
/*------------------------------*/

.actu-see-all 
{
    text-align: center;
    margin-top: 1.1rem;
}
 
.actu-see-all__link 
{
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--text-nav);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s, color 0.25s;
}
 
.actu-see-all__link:hover 
{
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}


/*--------------------------------*/
/*------------CONTENT-------------*/
/*--------------------------------*/

main>section
{
	margin-bottom: 40px;
}

section header
{
	width: 80%;
	margin: auto;
	display: flex;
	flex-direction: row;
	gap: 20px;
	align-items: center;
	padding-top: 15px;
	padding-bottom: 15px;
	clear: both;
}

section header hr
{
	border: none;
	border-top: 1px solid var(--text-nav);
	padding-left: 10px;
	padding-right: 10px;
	flex-grow: 1;
}

section header h2
{
	white-space: nowrap;
	color: var(--text-nav);
	font-size: 2em;
	text-align: center;
}

@media (max-width: 850px) 
{
	section header 
	{
        width: 100%; 
    }
	
    section header h2 
	{
        font-size: 4.3vw; 
    }
}


.labo_acces
{
	margin-bottom: 40px;
	max-width: 1024px;
	margin: auto;
}

.plan
{
	text-align: center;
}

.plan img
{
	width: 40%;
}

.container_actu
{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
	align-content: space-around;
}

.container_actu section
{
	width: 350px;
	box-shadow: 0px 10px 15px rgba(0,0,0,0.3);
	padding: 10px;
	height: 250px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: 0.5s;
	margin-bottom: 20px;
}

.container_actu section:hover
{
	box-shadow: 0px 20px 30px rgba(0,0,0,0.2);
	transition: 0.5s;
}

.container_actu section h3
{
	color: var(--text-nav);
}

.actu_lien
{
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.actu_lieu
{
	font-size: 0.8em;
}

.container_seminaires
{
	display: flex;
	flex-direction: row; 
	flex-wrap: wrap;
	justify-content: space-around;
	align-content: space-around;
}

.container_seminaires .seminaire-card-link
{
	text-decoration: none;
	color: inherit;
	display: block;
	transition: transform 0.2s;
}

.container_seminaires .seminaire-card-link:hover
{
	transform: translateY(-3px);
}

.container_seminaires .seminaire-card-link:hover section
{
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.container_seminaires section,
.container_seminaires .seminaire-card-link section
{
	width : 350px;
	border: 1px solid var(--text-nav);
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 200px;
	border-radius: 15px;
	overflow: hidden;
}

.container_seminaires section h3,
.container_seminaires .seminaire-card-link section h3
{
	margin: 0px;
	width: 100%;
	padding: 7px;
	background-color: var(--text-nav);
	color: var(--bg-color);
	font-size: 1em;
}

.container_seminaires section span,
.container_seminaires .seminaire-card-link section span
{
	padding: 10px;
	background-clip: padding-box;
}

.container_seminaires section .seminaire_titre,
.container_seminaires .seminaire-card-link section .seminaire_titre
{
	flex-grow: 2;
}

.seminaire-card__placeholder-title
{
	color: var(--text-nav);
	opacity: 0.6;
	font-style: italic;
}

.seminaire-card__placeholder-text
{
	opacity: 0.6;
	font-style: italic;
}

.seminaire_date
{
	font-weight: bold;
	font-style: italic;
}

.sem3
{
	background: linear-gradient(90deg, var(--bg-color) 50%, var(--col_pas) 100%);
	color: var(--col_pas_txt);
	font-weight: bold;
	text-align: right;
}

.sem4
{
	background: linear-gradient(90deg, var(--bg-color) 50%, var(--col_edp) 100%);
	color: var(--col_edp_txt);
	font-weight: bold;
	text-align: right;
}

.sem5
{
	background: linear-gradient(90deg, var(--bg-color) 50%, var(--col_alto) 100%);
	color: var(--col_alto_txt);
	font-weight: bold;
	text-align: right;
}

.sem7
{
	background: linear-gradient(90deg, var(--bg-color) 50%, var(--col_tn) 100%);
	color: var(--col_tn_txt);
	font-weight: bold;
	text-align: right;
}

.sem10
{
	background: linear-gradient(90deg, var(--bg-color) 50%, var(--col_doc) 100%);
	color: var(--col_doc_txt);
	font-weight: bold;
	text-align: right;
}

.semCol
{
	background: linear-gradient(90deg, var(--bg-color) 50%, var(--col_col) 100%);
	color: var(--col_col_txt);
	font-weight: bold;
	text-align: right;
}

.container_marquants
{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
	align-content: space-around;
	width: 100%;
	padding-bottom: 25px;
}

.container_marquants section
{
	width: 283px;
	margin-bottom: 20px;
}

.container_marquants img
{
	height: 400px;
	transition: 0.5s;
}

.container_marquants img:hover
{
	box-shadow: 0px 15px 20px #aaa;
	transition: 0.5s;
}

/*--------------------------------*/
/*-------------PAGE---------------*/
/*--------------------------------*/
.article
{
	max-width: 1100px;
	margin: 2.5rem auto;
	padding: 0 2rem 4rem;
	padding-bottom: 50px;
	text-align: justify;
}

.article a
{
	color: var(--accent-color);
	text-decoration: none;
}

.presentation figure
{
	margin: 0;
	padding: 5px;
	float: right;
	min-width: 260px;
	max-width: 27%;
	text-align: right;
}

.presentation figure img
{
	width: 90%;
}

.presentation_ambp figure
{
	margin: 0;
	padding: 5px;
	float: right;
	width: 160px;
	text-align: right;
}

.presentation_ambp figure img
{
	width: 90%;
}

.presentation_sflour figure
{
	margin: 0;
	padding: 5px;
	float: left;
	width: 200px;
	text-align: left;
}

.presentation_sflour figure img
{
	width: 90%;
}

.presentation_biblio figure
{
	margin: 0;
	padding: 5px;
	float: right;
	width: 175px;
	text-align: right;
}

.presentation_biblio figure img
{
	width: 90%;
}

section .lab_n1
{
	display: flex;
	flex-direction: row;
	width: 100%;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-around;
}

.lab_n1 .right
{
	min-width: 450px;
	height: 250px;
}

.lab_n1 figure img
{
	display: block;
	position: relative;
	width: 100%;
}

.lab_n1 figure
{
	width: 10%;
	flex-shrink: 0;
}

.lab_n1 .left, .lab_n1 .right
{
	width: 50%;
}

.right iframe
{
	width: 100%;
	height: 100%;
}

.lab_n2
{
	width: 90%;
	flex-shrink: 0;
	padding: 5px;
}

.article > section
{
	margin-bottom: 40px;
}

#labo_pres .lab_n1 figure
{
	width: 25%;
	flex-shrink: 0;
}

#labo_pres .lab_n2
{
	order: -1;
	width: 75%;
	flex-shrink: 0;
}

.contact_bibli
{
	text-align: center;
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	flex-wrap: wrap;
}

.contact_bibli section
{
	border-radius: 15px;
	border: 1px var(--accent-color) solid;
	padding: 15px;
	width: 250px;
	margin-left: 10px;
	margin-right: 10px;
	margin-bottom: 25px;
}



/*@media (max-width: 768px)
{
	.container_actu, .container_seminaires
	{
		flex-direction: column;
		align-items: center;
	}		
	
	.container_actu > section, .container_seminaires section
	{
		width: 90%;
		margin-bottom: 25px;
	}
	
}*/

/* ════════════════════════════════════════════════════════════════
   Tableau "Le LMBP en quelques chiffres" — page Présentation du laboratoire
   ════════════════════════════════════════════════════════════════ */
.labo_chiffres_titre {
	color: var(--accent-color);
} 

.labo_chiffres {
	width: 100%;
	max-width: 900px;
	margin: 1.5rem auto 2.5rem;
	border-collapse: separate;
	border-spacing: 0;
}
 
.labo_chiffres th,
.labo_chiffres td {
	width: 33.333%;
	text-align: center;
	vertical-align: middle;
	padding: 1.3rem 1rem;
	font-size: 0.95em;
	font-weight: normal;
	color: var(--text-color);
	background-color: var(--bg-color-nav-hover);
	border: 4px solid var(--bg-color);
}
 
.labo_chiffres th strong,
.labo_chiffres td strong {
	display: block;
	font-size: 2.1em;
	font-weight: bold;
	color: var(--accent-color);
	line-height: 1.1;
	margin-bottom: 0.2rem;
}
 
/* Coins arrondis sur les 4 cellules extrêmes du tableau */
.labo_chiffres tr:first-child th:first-child  { border-top-left-radius: 12px; }
.labo_chiffres tr:first-child th:last-child   { border-top-right-radius: 12px; }
.labo_chiffres tr:last-child td:first-child   { border-bottom-left-radius: 12px; }
.labo_chiffres tr:last-child td:last-child    { border-bottom-right-radius: 12px; }
 
/* Petite animation au survol pour donner un peu de vie aux cases */
.labo_chiffres th,
.labo_chiffres td {
	transition: background-color 0.25s, transform 0.25s;
}
.labo_chiffres th:hover,
.labo_chiffres td:hover {
	background-color: var(--accent-color);
}
.labo_chiffres th:hover strong,
.labo_chiffres td:hover strong {
	color: var(--bg-color);
}
 
/* ── Responsive : une colonne par ligne sur petit écran ───────────── */
@media (max-width: 700px) {
	.labo_chiffres,
	.labo_chiffres tbody,
	.labo_chiffres tr {
		display: block;
		width: 100%;
	}
	.labo_chiffres th,
	.labo_chiffres td {
		display: block;
		width: 100%;
		border-radius: 0 !important;
	}
	.labo_chiffres tr:first-child th:first-child { border-radius: 12px 12px 0 0 !important; }
	.labo_chiffres tr:last-child td:last-child   { border-radius: 0 0 12px 12px !important; }
}


/*--------------------------------*/
/*-----------CALENDAR-------------*/
/*--------------------------------*/
/* ── Conteneur général ──────────────────────────────────────────── */
.cal-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
}

.cal-page__title {
	font-family: 'Playfair Display', serif;
	font-size: 1.7rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--sem-ink, #1e293b);
}

/* ── Légende ─────────────────────────────────────────────────────── */
.cal-legend {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem 1.1rem;
	align-items: center;
	background: var(--sem-bg, #f8fafc);
	border: 1px solid var(--sem-border, #e2e8f0);
	border-radius: 8px;
	padding: .9rem 1.1rem;
	margin-bottom: 1.25rem;
	font-size: .82rem;
}

.cal-legend__item {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	white-space: nowrap;
}

.cal-legend__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
	border: 1px solid rgba(0, 0, 0, .08);
}

/* ── Calendrier ──────────────────────────────────────────────────── */
#lmbp-calendar {
	background: #fff;
	border: 1px solid var(--sem-border, #e2e8f0);
	border-radius: 8px;
	padding: 1rem;
}

/* Petit overlay de chargement, discret */
.cal-loading {
	text-align: center;
	padding: 2.5rem 0;
	color: var(--sem-muted, #64748b);
	font-size: .9rem;
	font-style: italic;
}

/* ── Liens iCal ──────────────────────────────────────────────────── */
.cal-ical-links {
	margin-top: 1.75rem;
}

.cal-ical-links__title {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sem-muted, #64748b);
	margin-bottom: .6rem;
}

.cal-ical-links__list {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.cal-ical-link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .4rem .8rem;
	border-radius: 6px;
	border: 1px solid var(--sem-border, #e2e8f0);
	background: #fff;
	color: var(--sem-ink, #1e293b);
	text-decoration: none;
	font-size: .8rem;
	font-weight: 600;
	transition: background .15s, border-color .15s;
}

.cal-ical-link:hover {
	background: var(--sem-bg, #f8fafc);
	border-color: var(--accent-color, #3b82f6);
}

.cal-ical-link--global {
	background: var(--sem-ink, #1e293b);
	color: #fff;
	border-color: var(--sem-ink, #1e293b);
}

.cal-ical-link--global:hover {
	background: var(--accent-color, #3b82f6);
	border-color: var(--accent-color, #3b82f6);
}

/* ── FullCalendar : ajustements visuels légers ──────────────────── */
.fc {
	font-family: inherit;
	font-size: .85rem;
}
.fc .fc-toolbar-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--sem-ink, #1e293b);
}
.fc .fc-button {
	background: #fff;
	border: 1px solid var(--sem-border, #e2e8f0);
	color: var(--sem-ink, #1e293b);
	box-shadow: none;
	text-transform: capitalize;
}
.fc .fc-button:hover {
	background: var(--sem-bg, #f8fafc);
}
.fc .fc-button-primary:not(:disabled).fc-button-active {
	background: var(--accent-color, #3b82f6);
	border-color: var(--accent-color, #3b82f6);
	color: #fff;
}
.fc-event {
	border: none;
	font-weight: 600;
	font-size: .78rem;
}
.fc-daygrid-event-dot { display: none; } /* on a déjà la couleur de fond */
.fc-daygrid-event {
	border-radius: 4px;
	padding: 1px 4px;
	background-color: var(--fc-event-bg-color, #3788d8) !important;
	color: var(--fc-event-text-color, #fff) !important;
	border-color: var(--fc-event-bg-color, #3788d8) !important;
}
.fc-daygrid-event .fc-event-title,
.fc-daygrid-event .fc-event-time {
	color: var(--fc-event-text-color, #fff) !important;
}

@media (max-width: 640px) {
	.fc .fc-toolbar {
		flex-direction: column;
		gap: .5rem;
	}
}

/*--------------------------------*/
/*------------FOOTER--------------*/
/*--------------------------------*/

#main_footer
{
	background-color: var(--bg-color-footer);
	width: 100%;
	text-align: center;
}

#main_footer_div
{
	max-width: 1280px;
	margin: auto;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
}

#main_footer_div img
{
	height: 100px;
}