/* === TABLETTES (petits écrans ≤ 890px) === */
@media screen and (max-width: 1024px) {
  /* On remet un box-sizing global */
  *, *::before, *::after {
	box-sizing: border-box;
  }
  
  /* MENU */
  
  body {
	width: auto;
	height: 100vh;
	margin: 0;
	padding: 0;
  }
  
  .site-branding {
	width: 100%;
  }
  
  .logobrand img {
	width: 50px;
	height: auto;
	opacity: 1;
	margin: 10px 20px;
  }
  
  /* ===== MENU COMPLET ===== */
  
  /* MENU */
  
  #site-navigation {
	display: none;
  }
  
  .menu {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgba(255, 255, 255, 0.95);
	width: 100vw; /* plein écran */
	height: 100vh;
	position: fixed;
	top: 0!important;
	right: 0!important;
	transform: translateX(100%);
	z-index: 998;
	transition: transform 0.5s ease;
	padding-top: 0px;
	overflow-y: auto;
	margin: 0;
	padding: 0;
  }
  
  .open {
	transform: translateX(0%);
  }
  
  .nav {
	width: 100%;
	max-width: 1024px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0;
	margin: 0;
	position: fixed;
	top: 0;
	right: 50%;
	
	
  }
  
  /* === BOUTON MENU BURGER EN CROIX PARFAITE AVEC 2 BARRES === */
  .menu-toggle {
	position: fixed;
	top: 30px;
	right: 30px;
	width: 30px;
	height: 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 999;
	gap: 10px;
	padding: 0;
  }
  
  .menu-toggle .bar {
	width: 100%;
	height: 4px;
	background-color: #E20119;
	border-radius: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	transform-origin: center;
  }
  
  .menu-toggle.open .bar1 {
	transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.open .bar2 {
	transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .menu-toggle:not(.open):hover .bar1 {
	transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle:not(.open):hover .bar2 {
	transform: rotate(-45deg) translate(5px, -5px);
  }
  
  ul#primary-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
	max-width: 1024;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: transparent;
  }
  
  ul#primary-menu > li {
	width: 100%;
	margin: 0;
	padding: 0;
	margin-bottom: 10px;
	text-align: center;
  }
  
  ul#primary-menu > li > a {
	font-family: "League Spartan", sans-serif;
	color: black;
	font-size: 32px;
	text-transform: uppercase;
	font-weight: 700;
	text-decoration: none;
	display: block;
	width: 100%;
	padding: 12px 0;
	margin: 0;
  }
  
  #primary-menu li a {
	position: relative;
	display: inline-block;
	color: black;
	padding: 1rem;
	text-decoration: none;
	transition: color 0.3s ease;
	margin: 0;
  }
  
  #primary-menu li a:hover {
	color: #E20119;
  }
  
  /* Soulignement animé */
  #primary-menu li a::after {
	content: '';
	position: absolute;
	bottom: 0.1em;
	left: 0;
	width: 0%;
	height: 2px;
	background-color: #E20119;
	transition: width 0.3s ease;
  }
  
  #primary-menu li a:hover::after {
	width: 100%;
  }
  
  /* Animation apparition */
  @keyframes fadeInUp {
	from {
	  opacity: 0;
	  transform: translateY(20px);
	}
	to {
	  opacity: 1;
	  transform: translateY(0);
	}
  }
  
  #primary-menu li {
	opacity: 0;
	transform: translateY(20px);
  }
  
  #primary-menu li.animate {
	animation: fadeInUp 0.3s ease forwards;
  }
  
  .RSMenu{
  display: block;
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  margin:0;
  padding:0;
  
  
  /* ACCUEIL */
  
  /* sliders */
  
  .slider-wrapper {
	position: relative;
	width: auto;
	overflow: hidden;
	max-height: 100%;
	height: 50vh;
	
  }
  
  .sliders {
	position: absolute;
	top: 0%;
	left: 0;
	width: 100%;
	height: 50vh;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	pointer-events: none;
  }
  
  .sliders.active {
	opacity: 1;
	pointer-events: auto;
  }
  
  .slidersImages {
	position: absolute;
	z-index: 1;
	width: 100%;
	height: AUTO;
	top: 0;
	left: 0;
	overflow: hidden;
  }
  
  .slidersImages img {
	width: 100%;
	height: auto;
	object-fit: cover;
  }
  
  .boxSlider {
	position: relative;
	z-index: 2;
	max-width: 70%;
	background: linear-gradient(rgba(251, 251, 251, 0.60), rgba(28, 27, 27, 0.80));
	padding: 10px;
	margin: 20px;
	top: 10%;
	left: 10%;
	color: white;
  }
  
  .slidersTitre p{
	color: #E20119;
	text-transform: uppercase;
	font-size: 32px;
	line-height: 1em;
	font-weight: 700;
	text-align: center;
	padding-bottom: 0px;
	margin-top: 20px;
  }
  
  .slidersTexte>p {
	font-size: 24px;
	font-weight: 500;
	margin-left: 20px;
	margin-right: 20px;
	padding-top: 0px;
	margin-top:0;
  }
  
  .slidersTexte span {
	color: white !important;
  }
  
  /* Dots (ronds blancs) */
  .dotsContainer {
	position: absolute;
	top: 33%;
	left: 25%;
	width: 50%;
	text-align: center;
	z-index: 10;
  }
  
  .dot {
	display: inline-block;
	height: 8px;
	width: 8px;
	margin: 4px;
	background-color:#E20119;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s ease;
  }
  
  .dot.active {
	background-color: white;
  }
  .chiffres {
	display: flex;
	flex-direction: row;
	width: 100%;
	justify-content: center;
	align-items: start;
	margin:0;
  }
  .events{
	width: 100%; 
	margin:0;
  }
  .video{
	margin-right:30px;
	margin-left: 30px;
	width: 800px;
	height: auto;
  }
  
  
  .video>p>iframe{
	width: 740px!important;
	height:460px !important;
	margin:0;
	padding:0;
	
  }
  .stats{
	display: flex;
	flex-direction: row;
	width: 300px;
	text-align: center;
	align-items: center;
	justify-content: center;
	margin: 0;
	top: 0;
  }
  .titrespage,.titrespageJSP{
	color:  #E20119;
	font-size: 68px;
	text-align: center;
	text-transform: uppercase;
	font-weight: 700;
	margin: 0;
	z-index: 1;
	position: absolute;
	top: 20%;
	left: 50%;
	transform: translateX(-50%);
	padding:0;
	width: 100%;
  }
  
  .titrespageJSP{
	top: 40%;
  }
  .introtxt{
	color: white;
	font-size: 28px;
	font-weight: 600;
	margin-left: 15%;
	margin-right: 5%;
	margin-top: 25px;
  }
  
  .titresSDIS{
	color:  #E20119;
	font-size: 42px;
	text-align: center;
	text-transform: uppercase;
	font-weight: 700;
	padding: 50px 0 50px 0;
	margin-bottom:20px;
  }
  
  organigramme-grid {
	display: grid;
	grid-template-columns: repeat(4, max-content); /* 4 colonnes */
	justify-content: center;
	gap: 40px;
	max-width: 1024px;
	margin: 0 auto;
	padding: 30px 10px;
  }
  .organigramme-grid .personne:nth-child(1) {
	grid-column: 2;
	grid-row: 1;
  }
  
  .organigramme-grid .personne:nth-child(2) {
	grid-column: 3;
	grid-row: 1;
  }
  
  .organigramme-grid .personne:nth-child(3) {
	grid-column: 2;
	grid-row: 2;
  }
  
  .organigramme-grid .personne:nth-child(4) {
	grid-column: 3;
	grid-row: 2;
  }
  
  .organigramme-grid .personne:nth-child(5) {
	grid-column: 2;
	grid-row: 3;
  }
  
  .organigramme-grid .personne:nth-child(6) {
	grid-column: 3;
	grid-row: 3;
  }
  
  .personne {
	text-align: center;
	width: 300px;
  }
  
  .EMimg img {
	width: 350px;
	height: auto;
	
  }
  
  .nomEM{
	font-size: 26px;
	font-weight: 600;
	font-weight: bold;
	margin-top: 10px;
	white-space: nowrap;
  }
  
  .EMtitre{
	font-size: 21px;
  }
  
  /* REJOINS NOUS */
  
  .inscription {
	background-color: #3A3838;
	padding: 5px;
	width: auto;
	margin: 0 auto 50px;
  }
  
  /* TEMOIGNAGES */
  .temoignages {
	position: relative;
	background-color: #C5C4C4;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
	padding-bottom: 50px; /* Espace pour les dots */
	box-sizing: border-box;
  }
  
  .temoignages-track {
	display: flex;
	flex-direction: column;
	transform: none !important;
	transition: none !important;
	width: 100% !important;
  }
  
  .slide {
	flex-direction: column;
	align-items: center;
	flex: none;
	width: 100%;
	padding: 10px;
  }
  
  .temoignage_personne {
	flex: 1 1 auto;
	width: 90%;
	margin: 20px auto;
	padding: 15px;
  }
  
  
  .temoinageimg {
	width: 100%;
	height: auto;
	max-width: 100%;
  }
  
  
  .temoinageimg img {
	width: 100%;
	height: auto;
	object-fit: cover;
	
  }
  
  .textTemoignage {
	font-size: 16px;
	margin: 15px 0;
	margin-left: 0;
	margin-right: 0;
	padding-left: 15px;
	margin-bottom: 0;
  }
  .textTemoignage p{
	margin-bottom: 10px;
  }
  
  .NomTemoin {
	font-size: 18px;
	margin-top: 5px;
	text-align: center;
  }
  
  /* Dots à l'intérieur de la section */
  .carousel-dots {
	display: none !important;
  }
  
  .carousel-dots button {
	display: none !important;
  }
  
  /* FLECHES FORMATIONS */
  
  #overlay-container {
	display: block !important;
  }
  
  #overlay-container {
	display: flex !important;
	flex-direction: row;
	gap: 20px;
	align-items: flex-start;
	margin-top: 20px;
	padding: 20px;
	background-color: #C5C4C4;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	color: black;
	box-sizing: border-box;
	flex-wrap: wrap; /* au cas où ça déborde */
  }
  
  #overlay-container .left-overlay {
	flex: 1;
	min-width: 200px;
  }
  
  #overlay-container .formationimg {
	flex: 1;
	min-width: 200px;
  }
  
  #overlay-container img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
  }
  
  #overlay-container .top-row {
	font-weight: bold;
	font-size: 20px;
	text-transform: uppercase;
	margin-bottom: 10px;
  }
  
  #overlay-container .presentationFormation {
	font-size: 16px;
	line-height: 1.4;
	border-left: 6px solid #E20119;
	padding-left: 15px;
  }
  
  .formations-section {
	margin-bottom: 0;
	padding-bottom: 0;
  }
  
  #overlay-container {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
  }
  
  .mobile-overlay {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
  }
  
  p.instruction {
	display: none;
	margin: 0 !important;
	padding: 0 !important;
  }
  
  /* Réduire les marges en bas */
  .formations-section {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
  }
  
  #overlay-container {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
  }
  
  /* S'assurer que les .mobile-overlay ne laissent pas de vide */
  .mobile-overlay:last-child {
	margin-bottom: 0 !important;
  }
  
  /* Supprimer marges inutiles éventuelles du bloc instruction */
  .instruction {
	margin: 0 !important;
	padding: 0 !important;
  }
  
  .formations-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #1f1b1b;
	padding: 0;
	padding-bottom: 0px;
	position: relative;
	min-height: auto !important;
  }
  /* JSP */
  .textFormationJsp, .textRejoindreJsp {
	color: white;
	font-size: 28px;
	font-weight: 600;
	margin: -50px 50px 50px 50px;
  }
  .flammes{
	width:auto;
	padding-left: 100px;
	padding-right: 100px;
  }
  /* FOOTER */
  #content {
	flex-grow: 1; /* Prend tout l'espace restant pour pousser le footer vers le bas */
  }
  
  .site-info {
	z-index: 990;
	background-color: #222; /* Ou la couleur de ton footer */
	padding: 15px;
	margin-top: auto; /* Pousse le footer en bas */
	padding-right: 15px;
	padding-left: 15px;
  }
  
  .footerflex {
	display: grid;
	grid-template-columns: auto auto auto;
	border: 2px solid #E20119;
	color: white;
	margin-bottom: 10px;
	
  }
  
  .footerflex > section {
	border-right: 2px solid #E20119;
  }
  
  .footerflex > .droite {
	border-right: none;
  }
  
  .gauche, .center, .droite {
	display: flex;
	flex-direction: column;
	justify-content: left;
	align-items: center;
	padding: 10px 10px;
	font-size: 18px;
  }
  
  .gauche {
	margin-left: 0;
  }
  
  
  .phone {
	display: flex;
	flex-direction: row;
	justify-content: center;
	padding: 0;
	margin: 0;
  }
  
  .phone img {
	width: 40px;
	margin-right: 10px;
  }
  
  .number p {
	margin: 0;
	padding: 0;
  }
  
  h4 {
	font-size: 28px;
	text-transform: uppercase;
	margin: 0;
	padding: 0;
	margin-bottom: 10px;
	text-align: center;
  }
  
  .center > p, 
  .center > a {
	padding: 0;
	margin: 0;
	font-size: 18px;
	text-align: center;
  }
  
  .center > a {
	text-decoration: none;
	color: white;
  }
  
  .center > a:hover {
	color: #E20119;
  }
  
  .RS img{
	width: 40px;
  }
  
  .site-info {
	position: relative;
	
  }
  .siteInfo {
	position: absolute;
	right: 5px;
	bottom: 0px;
	font-size: 12px;
	writing-mode: horizontal-tb;
	transform: rotate(0deg);
	margin-right: 10px;
  }
  
  .siteInfo a {
	color: white;
	text-decoration: none;
  }
  
  .siteInfo a:hover {
	color: #E20119;
  } 
}
@media screen and (min-width: 481px) and (max-width: 1024px) {
  /* ACCUEIL */
  
  /* sliders */
  
  .slider-wrapper {
	position: relative;
	width: auto;
	overflow: hidden;
	max-height: 100%;
	height: 75vh;
	margin-top: 70px;
  }
  
  .sliders {
	position: absolute;
	top: 0%;
	left: 0;
	width: 100%;
	height: 50vh;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	pointer-events: none;
  }
  
  .sliders.active {
	opacity: 1;
	pointer-events: auto;
  }
  
  .slidersImages {
	position: absolute;
	z-index: 1;
	width: 100%;
	height: AUTO;
	top: 0;
	left: 0;
	overflow: hidden;
  }
  
  .slidersImages img {
	width: 100%;
	height: auto;
	object-fit: cover;
  }
  
  .boxSlider {
	position: relative;
	z-index: 2;
	max-width: 70%;
	background: linear-gradient(rgba(251, 251, 251, 0.60), rgba(28, 27, 27, 0.80));
	padding: 10px;
	margin: 20px;
	top: 15%;
	left: 10%;
	color: white;
  }
  
  .slidersTitre p{
	color: #E20119;
	text-transform: uppercase;
	font-size: 20px;
	line-height: 1em;
	font-weight: 700;
	text-align: center;
	padding-bottom: 0px;
	margin-top: 20px;
  }
  
  .slidersTexte>p {
	font-size: 16px;
	font-weight: 500;
	margin-left: 20px;
	margin-right: 20px;
	padding-top: 0px;
	margin-top:0;
  }
  
  .slidersTexte span {
	color: white !important;
  }
  
  /* Dots (ronds blancs) */
  .dotsContainer {
	position: absolute;
	top: 80%;
	left: 25%;
	width: 50%;
	text-align: center;
	z-index: 10;
  }
  
  .dot {
	display: inline-block;
	height: 8px;
	width: 8px;
	margin: 4px;
	background-color:#E20119;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s ease;
  }
  
  .dot.active {
	background-color: white;
  }
  
}

/* === TELEPHONES (très petits écrans ≤ 480px) === */
@media screen and (max-width: 480px) {
  
  /* On remet un box-sizing global */
  *, *::before, *::after {
	box-sizing: border-box;
  }
  
  /* MENU */
  
  body {
	width: auto;
	height: 100vh;
	margin: 0;
	padding: 0;
  }
  
  .site-branding {
	width: 100%;
  }
  
  .logobrand img {
	width: 50px;
	height: auto;
	opacity: 1;
	margin: 10px 20px;
  }
  
  /* ===== MENU COMPLET ===== */
  
  /* MENU */
  
  #site-navigation {
	display: none;
  }
  
  .menu {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgba(255, 255, 255, 0.95);
	width: 100vw; /* plein écran */
	height: 100vh;
	position: fixed;
	top: 0!important;
	right: 0!important;
	transform: translateX(100%);
	z-index: 998;
	transition: transform 0.5s ease;
	padding-top: 0px;
	overflow-y: auto;
	margin: 0;
	padding: 0;
  }
  
  .open {
	transform: translateX(0%);
  }
  
  .nav {
	width: 100%;
	max-width: 480px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0;
	margin: 0;
	position: fixed;
	top: 0;
	right: 50%;
	
	
  }
  
  /* === BOUTON MENU BURGER EN CROIX PARFAITE AVEC 2 BARRES === */
  .menu-toggle {
	position: fixed;
	top: 30px;
	right: 30px;
	width: 30px;
	height: 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 999;
	gap: 10px;
	padding: 0;
  }
  
  .menu-toggle .bar {
	width: 100%;
	height: 4px;
	background-color: #E20119;
	border-radius: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	transform-origin: center;
  }
  
  .menu-toggle.open .bar1 {
	transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.open .bar2 {
	transform: rotate(-45deg) translate(5px, -5px);
  }
  
  
  
  ul#primary-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
	max-width: 480px;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: transparent;
  }
  
  ul#primary-menu > li {
	width: 100%;
	margin: 0;
	padding: 0;
	margin-bottom: 10px;
	text-align: center;
  }
  
  ul#primary-menu > li > a {
	font-family: "League Spartan", sans-serif;
	color: black;
	font-size: 32px;
	text-transform: uppercase;
	font-weight: 700;
	text-decoration: none;
	display: block;
	width: 100%;
	padding: 12px 0;
	margin: 0;
  }
  
  #primary-menu li a {
	position: relative;
	display: inline-block;
	color: black;
	padding: 1rem;
	text-decoration: none;
	transition: color 0.3s ease;
	margin: 0;
  }
  
  #primary-menu li a:hover {
	color: #E20119;
  }
  
  /* Soulignement animé */
  #primary-menu li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0%;
	height: 0px;
	background-color: none;
	transition: width 0s ease;
  }
  
  #primary-menu li a:hover::after {
	width: 100%;
  }
  
  /* Animation apparition */
  @keyframes fadeInUp {
	from {
	  opacity: 0;
	  transform: translateY(20px);
	}
	to {
	  opacity: 1;
	  transform: translateY(0);
	}
  }
  
  #primary-menu li {
	opacity: 0;
	transform: translateY(20px);
  }
  
  #primary-menu li.animate {
	animation: fadeInUp 0.3s ease forwards;
  }
  
 .RSMenu{
  display: block;
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  margin:0;
  padding:0;
  
	
  }
  
  
  /* ACCUEIL */
  
  /* sliders */
  
  .slider-wrapper {
	position: relative;
	width: auto;
	overflow: hidden;
	max-height: 100%;
	height: 35vh;
	margin-top: 80px;
  }
  
  .sliders {
	position: absolute;
	top: 0%;
	left: 0;
	width: 100%;
	height: 50vh;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	pointer-events: none;
  }
  
  .sliders.active {
	opacity: 1;
	pointer-events: auto;
  }
  
  .slidersImages {
	position: absolute;
	z-index: 1;
	width: 100%;
	height: AUTO;
	top: 0;
	left: 0;
	overflow: hidden;
  }
  
  .slidersImages img {
	width: 100%;
	height: auto;
	object-fit: cover;
  }
  
  .boxSlider {
	position: relative;
	z-index: 2;
	max-width: 90%;
	width: fit-content;
	background: linear-gradient(rgba(251, 251, 251, 0.60), rgba(28, 27, 27, 0.80));
	padding: 10px;
	top: 5%;
	left:0;
	display:block;
	color: white;
	text-align: center;
	margin-left: auto;
	margin-right:auto;
	margin-top: 0;
	margin-bottom:0;
  }
  
  .slidersTitre p{
	color: #E20119;
	text-transform: uppercase;
	font-size: 18px;
	line-height: 1em;
	font-weight: 700;
	text-align: center;
	padding-bottom: 0px;
	margin-top: 20px;
	margin-bottom: 0;
  }
  
  .slidersTexte>p {
	font-size: 16px;
	font-weight: 500;
	margin-left: 20px;
	margin-right: 20px;
	padding-top: 0px;
	margin-top:0;
  }
  
  .slidersTexte span {
	color: white !important;
  }
  
  /* Dots (ronds blancs) */
  .dotsContainer {
	position: absolute;
	top: 280px;
	left: 50%;
	transform: translate(-50%, 0px);
	width: 100%;
	text-align: center;
	z-index: 10;
  }
  
  .dot {
	display: inline-block;
	height: 8px;
	width: 8px;
	margin: 4px;
	background-color:white;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s ease;
  }
  
  .dot.active {
	background-color: #E20119;
  }
  
  .titres{
	color:  #E20119;
	font-size: 26px;
	text-align: center;
	text-transform: uppercase;
	font-weight: 700;
	margin: 10px;
  }
	
	.accueil>.titres{
	margin-top: 50px;
	}
  
  .chiffres {
	display: flex;
	flex-direction: column-reverse;
	gap: 0px;
	margin: 0;
  }
  
  .chiffre{
	font-size:22px;
  }
  
  .stats {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-around;
	align-items: center;
	width:100%;
	margin-top:30px;
	padding: 0;
	margin-left:0px;
	margin-right:0px;
  }
  
  .chiffresstats {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;	
	
  }
  
  .stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 50px;
	margin: 0 13px 0 13px;
  }
  
  .legendes{
	color:  #E20119;
	font-size: 11px;
	width: auto;
	text-align: center;
	margin:0;
	padding: 0;
	margin-bottom: 30px;
	line-height:1em;
  }
  
  .video{
	margin-left: 20px;
	margin-right: 20px;
	width: auto;
	height: auto;
	margin-bottom: 0;
	padding-bottom: 0;
  }
  .video > p > iframe {
	width: 540px !important;
	height: 240px !important;
	margin: 0;
	padding: 0;
  }
  .responsive-video {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* ratio 16:9 */
	height: 0;
	overflow: hidden;
  }
  .responsive-video iframe {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
  }
  .event{
	position: relative;
	background-color: #3A3838;
	width: 350px;
	height: 620px;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	padding: 10px;
	margin: 10px 10px 10px 10px;
  }
  .date{
	color: white;
	font-weight: 600;
	text-align: right;
	margin-bottom: 20px;
	font-size: 18px;
  }
  
  .eventimg>img{
	max-width: 300px;
	width: auto;
	margin-left: auto;
	margin-right: auto;
	display: block;
  }
  
  .eventtitre{
	font-size: 22px;
	color:  #E20119;
	font-weight: 600;
	text-transform: uppercase;
	text-align: center;
	padding: 10px;
	margin-top: 20px;
	line-height: 1em;
	height: auto;
  }
  
  .eventtexte {
	width: 350px;
	max-height: 540px;
	height: auto;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom:20px;
	color: white;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2em;
	padding: 10px 40px 0px 40px; /* on garde padding gauche 10px */
	position: relative; /* nécessaire pour positionner le ::before */
	box-sizing: border-box;
  }
  
  
  /* Bordure verticale juste au niveau du texte */
  .eventtexte::before {
	content: "";
	position: absolute;
	left: 10px; /* correspond au padding-left de .eventtexte */
	top: 35px;  /* correspond au padding-top */
	bottom: 20px;
	width: 4px;
	background-color: #E20119;
  }
  
  .eventbutton{
	background-color:#E20119;
	width: 200px;
	margin: 10px;
	padding: 10px;
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translate(-50%);
  }
  
  .eventbutton>a{
	color: white;
	font-size: 16px;
	text-decoration: none;
	text-transform: uppercase;
	text-align: center;
	display: block;
	margin-left: auto;
	margin-right: auto;
  }
  /* PRESENTATION */
  .imageSDIS, .imageRejoinNous, .imageJSP, .imagesuisnous{
	z-index: -1;
	position: relative;
	width:100%;
	max-width: 150%;
	max-height: 50vh;
	 height: auto;
	margin-top:80px;
	overflow:hidden;
  }
  
  
  .titrespage {
	position: relative;
	top:25%; 
	left: 50%;
	transform: translate(-50%, -85%);
	color: #E20119;
	font-size: 38px;
	text-align: center;
	text-transform: uppercase;
	font-weight: 700;
	margin: 0;
	z-index: 1;
	width: 100%;
	padding: 0;
	padding-bottom:15px;
  }
	

	
  .introtxt{
	color: white;
	font-size: 20px;
	font-weight: 600;
	margin-left: 5%;
	margin-right: 5%;
	margin-top: -70px;
  }
  
  .titresSDIS{
	color:  #E20119;
	font-size: 28px;
	text-align: center;
	text-transform: uppercase;
	font-weight: 700;
	padding: 30px 0 10px 0;
  }
  .OrganesIntervention{
	padding-bottom:30px;
  }
  .casernes-flex {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: center;
	padding-bottom: 0px;
	margin-top: 0px;
  }
  .caserne-item{
	margin-left: 20px;
	margin-right: 20px;
	height: auto;
  }
  
  .textcaserne {
	position: absolute;
	top: 25%;
	width: 100%;
	padding: 0px;
	padding-top: 10px;
	color: white;
	text-align: center;
	font-weight: 600;
  }
  
  .villes{
	color: white ;
	font-size: 32px ;
	font-weight: 600 ;
	text-transform: uppercase ;
	margin-left: 0px;
	
  }
  
  .adresse{
	color: white;
	font-size: 22px;
	width: auto;
  }
  .organigramme-grid {
	display: flex;
	flex-direction: column;            
	justify-content: center;
	align-items: center;
	gap: 40px;
	max-width: auto;
	margin: 0 auto;
	padding: 40px 20px;
  }
  
  .EMimg img {
	width: 250px;
	height: auto;
  }
  .nomEM{
	font-size: 20px;
	font-weight: 600;
	font-weight: bold;
	margin-top: 10px;
	white-space: nowrap;
  }
  
  .EMtitre{
	font-size: 16px;
  }
  /* REJOINS NOUS */
  
  .inscription {
	background-color: #3A3838;
	padding: 5px;
	width: 100%;
	margin: 0px;
  }
  .inscription-text p {
	color: white;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5em;
	margin: 0 0 10px 0;
  }
  .inscription-text {
	position: relative;
	margin: 50px 5% 0 5%;
	padding-left: 20px;
  }
  .inscription-text::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background-color: #E20119;
  }
  .inscriptionbutton{
	background-color:#E20119;
	width: 200px;
	margin: 10px;
	margin-top: 40px;
	padding: 10px;
	position: relative;
	bottom: 10px;
	left: 50%;
	transform: translate(-50%);
  }
  /* TEMOIGNAGES */
  .temoignages {
	position: relative;
	background-color: #C5C4C4;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
	padding-bottom: 50px; /* Espace pour les dots */
	box-sizing: border-box;
  }
  
  .temoignages-track {
	display: flex;
	flex-direction: column;
	transform: none !important;
	transition: none !important;
	width: 100% !important;
  }
  
  .slide {
	flex-direction: column;
	align-items: center;
	flex: none;
	width: 100%;
	padding: 10px;
  }
  
  .temoignage_personne {
	flex: 1 1 auto;
	width: 90%;
	margin: 20px auto;
	padding: 15px;
  }
  
  
  .temoinageimg {
	width: 100%;
	height: auto;
	max-width: 100%;
  }
  
  
  .temoinageimg img {
	width: 100%;
	height: auto;
	object-fit: cover;
	
  }
  
  .textTemoignage {
	font-size: 16px;
	margin: 15px 0;
	margin-left: 0;
	margin-right: 0;
	padding-left: 15px;
  }
  
  .NomTemoin {
	font-size: 18px;
	margin-top: 5px;
	text-align: center;
  }
  
  /* Dots à l'intérieur de la section */
  .carousel-dots {
	display: none !important;
  }
  
  .carousel-dots button {
	display: none !important;
  }
  
  /* Formation Overlay */
  
  .mobile-overlay {
	display: block !important;
	
  }
  
  .formations {
	flex-direction: column;
	align-items: center;
	gap: 30px;
  }
  
  .form {
	margin-right: 0;
	width: 80%;
  }
  .acronymeFormation{
	font-size: 18px;
  }
  
  .formationimg{
	margin-bottom: 10px;
  }
  /* Cacher l'overlay principal sur mobile */
  #overlay-container {
	display: none !important;
  }
  
  /* Affichage overlay individuel injecté par JS */
  .mobile-overlay {
	width: 90%;
	background-color: #C5C4C4;
	padding: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	border-radius: 0px;
	box-sizing: border-box;
	color: black;
  }
  
  .mobile-overlay .top-row {
	font-weight: bold;
	font-size: 20px;
	text-transform: uppercase;
	text-align: center;
	color: black;
  }
  
  .mobile-overlay .presentationFormation {
	font-size: 16px;
	line-height: 1.4;
	border-left: 6px solid #E20119;
	padding-left: 15px;
	color: black;
  }
  
  .mobile-overlay .formationimg img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
  }
  
  .instruction {
	display: none;
  }
  
  
  /*  */
  
  .textFormationJsp{
	color: white; 
	font-size: 18px;
	font-weight: 600;
	margin: 0px 50px 30px 50px;
  }
  
  .flammes{
	width: auto;
	padding: 20px;
	background-color: #C5C4C4;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 0px;
  }
  .textflamme{
	color: black;
	font-weight: 500;
	font-size: 18px;
	margin-left: 40px;
	margin-right: 40px;
	text-align: center;
	padding:0;
	margin-top: 0;
	margin-bottom: 0;
	border-left: 2px solid #E20119; /* Trait vertical rouge épais */
	border-right: 2px solid #E20119;
	padding-left: 20px;
	padding-right: 20px;
  }
  .imagesuisnous {
	position: relative;
	display: inline-block;
	margin-bottom: 0px;
	margin-top: 0;
  }
  
  .titrespageJSP {
	position: absolute;
	bottom: 25px;
	left: 7%;
	color:  #E20119;
	margin-right: 50px;
	font-size: 38px;
	text-align: left;
	text-transform: uppercase;
	font-weight: 700;
	line-height: 1em;
  }
  
  .textRejoindreJsp, .textSuisNous{
	color: white; 
	font-size: 18px;
	font-weight: 600;
	margin-left: 25px;
	margin-right: 15px;
	margin-top: 0px;
  }
  /* FOOTER */
  
  #content {
	flex-grow: 1; /* Prend tout l'espace restant pour pousser le footer vers le bas */
  }
  
  .site-info {
	z-index: 990;
	background-color: #222; /* Ou la couleur de ton footer */
	padding: 15px;
	margin-top: auto; /* Pousse le footer en bas */
	padding-right: 5px;
	padding-left: 5px;
  }
  
  .footerflex {
	display: grid;
	grid-template-columns: auto auto auto;
	border: 1px solid #E20119;
	color: white;
  }
  
  .footerflex > section {
	border-right: 1px solid #E20119;
  }
  
  .footerflex > .droite {
	border-right: none;
  }
  
  .gauche, .center, .droite {
	display: flex;
	flex-direction: column;
	justify-content: left;
	align-items: center;
	padding: 5px 5px;
	font-size: 11px;
  }
  
  .gauche {
	margin-left: 0;
  }
  
  
  .phone {
	display: flex;
	flex-direction: row;
	justify-content: center;
	padding: 0;
	margin: 0;
  }
  
  .phone img {
	width: 20px;
	margin-right: 10px;
  }
  
  .number p {
	margin: 0;
	padding: 0;
  }
  
  h4 {
	font-size: 13px;
	text-transform: uppercase;
	margin: 0;
	padding: 0;
	margin-bottom: 10px;
	text-align: center;
  }
  
  .center > p, 
  .center > a {
	padding: 0;
	margin: 0;
	font-size: 11px;
	text-align: center;
  }
  
  .center > a {
	text-decoration: none;
	color: white;
  }
  
  .center > a:hover {
	color: #E20119;
  }
  
  .RS img{
	width: 20px;
  }
  
  .site-info {
	position: relative;
  }
  .siteInfo {
	position: relative!important;
	bottom: auto;
	right: auto;
	font-size: 11px;
	writing-mode: horizontal-tb;
	transform: rotate(0deg);
	position: relative;
	right: auto;
	bottom: auto;
	margin-top: 2rem;
	text-align: right;
  }
  
  .siteInfo a {
	color: white;
	text-decoration: none;
  }
  
  .siteInfo a:hover {
	color: #E20119;
  }                
  
  .formations-section{
	height:auto;
	
	
  }
  .formations {
	display: none !important;
  }
  
  #overlay-container {
	
	display: flex !important;
	flex-direction: column;
	gap: 1.5rem; /* espace entre les blocs */
	padding: 1rem;
	margin-bottom: 8rem;
	width: auto;
	height: auto;
	margin-left:20px;
	margin-right:20px;
  }
  
  
  
  .overlay-block {
	padding: 10px;
	width: 100%; 
	box-sizing: border-box;
	margin: 0; /* pour être sûr */
	background-color:#C5C4C4;
  }
  
  .overlay-block .top-row {
	font-weight: bold;
	padding: 0.5rem 1rem;
	background-color: #E20119;
	color: white;
	text-align:center;
	font-size: 18px;
  }
  
  .overlay-block .presentationFormation {
	padding: 1rem;
  }
  
  .overlay-block .formationimg img {
	width: 100%;
	display: block;
	height: auto;
  }
  
  .overlay-block .extra-infos {
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
	color: #444;
  }
  .overlay-block:not(:last-child) {
  margin-bottom: 1.5rem;
}
  #overlay-container .presentationFormation {
    font-size: 16px;
    line-height: 1.4;
    border-left: 3px solid #E20119;
    padding-left: 15px;
  }
  .instruction {
	display: none;
  }
  
  #overlay-container{
	background-color: #1f1b1b !important;
  
  }
  
}