html {
  font-size: clamp(0.9rem, 1.2vw, 1.2rem);
}

body {
  font-size: 0.8rem; /* hérite de html */
  font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
  line-height: 1.3;
  color: #333;
  margin: 0; /* Supprime toutes les marges par défaut */
  padding: 0; /* Supprime les espacements internes */
 width: 100%;
}
h1 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 0.1rem;
	
}
h2 {
  font-size: clamp(1.2rem, 2.9vw, 1.7rem);
  margin-bottom: 0.1rem;
   margin-left: 1rem;
	color:#13477A;
}

h3 {
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  margin-bottom: 0.1rem;
   margin-left: 1rem;
  color:#2B71B5;
}
p{ 
  margin-left: 1rem;
  } 

header {
  background-color: #305C88;
  color: white;
  padding: 1.5em;
 text-align: center;
}

#logo {
  width: 50px;
  height: 50px;
}

header h1 { margin: 0; }
#hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2em;
  color: white;
  position: absolute;
  top: 1em;
  right: 1em;
  z-index: 1000;
}


header nav ul {
  list-style: none;
  padding: 0;
  margin: 1em 0 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  border-bottom: double;

}
header nav ul li a {
color: white;
	text-decoration: none;
}
header nav ul li a:hover {
  text-decoration: overline;
color:coral;
}
.container { display: flex; flex-direction: row; }
.sidebar {
  width: 30%;
  background-color: #f0f0f0;
  padding: 1em;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.content {
	width: 100%;
    flex-wrap: wrap; /* autorise le wrap si nécessaire */
    flex: 1;
}

#toggle-sidebar-toc {
  display: none;
  max-width: 310px;
  margin: 1em auto;
  padding: 0em;
  background-color: #f0f0f0;
  color: #305C88;
  border: none;
  font-size: 0.7em;
}
.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar nav li {
  margin: 0.5em 0;
 font-size: 0.9em;
}
.sidebar nav a {
  text-decoration: none;
  color: #333;
}
.sidebar nav a:hover {
  text-decoration: underline;
}

.bloc-texte-image {
  display: flex;
  flex-wrap: wrap;
  align-items:stretch;
   padding-left: 0.1em;
  
}
.bloc-texte-image .texte {
  flex: 1 1 300px; /* grandit, rétrécit, largeur minimale */
  min-height: 10px;
  padding: 0.1em;
}
.bloc-texte-image .image {
  	flex: 1 1 300px; /* grandit, rétrécit, largeur minimale */
  min-height: 10px;
  padding: 0.11em;
}
.bloc-texte-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
	min-height: 50px;
}

.carrousel {
  position: relative;
  max-width: 400px;
  margin: 0.2em auto;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: White;
}

.carrousel-images {
  display: flex;
  width: 100%;
  background-color: lightgrey;
  transition: transform 0.5s ease-in-out;
}

.carrousel-images img {
  height: auto;
  object-fit: scale-down;
  background-color: White;
  display: block;
  flex-shrink: 0;
}
.carrousel-item {
  position: relative;
  text-align: center;
}
.carrousel-caption {
  text-align: center;
  margin-top: 0px;
  font-size: 90%;
  font-style: italic;
  color: #444;
}

.caption {
  margin-top: 8px;
  font-size: 12px;
  color: #444;
  font-style: italic;
  text-align: center;
}

.carrousel-buttons {
  position: absolute;
  top: 5%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carrousel-buttons button {
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 1em;
  cursor: pointer;
  font-size: 1em;
}

.carrousel-dots {
  text-align: center;
  margin: 1em 0;
}

.carrousel-dots .dot {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin: 0 5px;
  background-color: #13477A;
  border-radius: 50%;
  cursor: pointer;
}


.carrousel-dots .active {
  background-color: grey !important;
}
.bloc-interactif h2 {
  font-size: 1.2em;
  margin: 1em 0 0.5em;
  cursor: pointer;
  color: #004080;
}
.bloc-interactif p {
  font-size: 1em;
  color: #333;
}

.table-wrapper {
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
 img {
    width: 100%;
  }
  .container { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
	.carrousel {
    max-width: 100%;
  }

  .carrousel-images img {
    width: 100vw;
    height: 100vw;
  }
  .carrousel-images {
    height: 100vw;
  }
	.table-wrapper {
    max-width: 70%;
  }
	.table-responsive {
    width: 100%;
  }
@media (min-width: 768px) {
  img {
    width: 60%;
}
	.table-responsive {
    width: 100%;
  }
}
 
  #toggle-sidebar-toc { display: block; }
  header nav ul { display: none; flex-direction: column; background-color: #305C88; padding: 1em; }
  header nav ul.show { display: flex; }
  #hamburger { display: block; }
}
footer {
  background-color: #305C88; 
  color: white;              
  text-align: center;
  padding: 15px;
}
A.lien:visited {
  color: #335D9C;
}
A.lien:link {font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif; color: #335D9C;}
A.lien:hover { font-family : Tahoma,Verdana, Arial, Helvetica, sans-serif; text-decoration: none; color: #7770A1; }
A.lienblanc:link {font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif; color: white;}
A.lienblanc:hover {font-family : Tahoma,Verdana, Arial, Helvetica, sans-serif; text-decoration: none; color: white; }
A.lienblanc:visited {
  color: white;
}
hr {
  border: 0;
    height: 1px;
    background: #333;
    background-image: linear-gradient(to right, #ccc, #333, #ccc);
}
a[href="#top"] {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cadre-bleu-gris {
  background-color: #b0c4de; /* bleu-gris (LightSteelBlue) */
  border: 2px solid #708090; /* gris ardoise (SlateGray) */
  padding: 20px;
  border-radius: 8px; /* coins arrondis optionnels */
  color: #333; /* couleur du texte */
}
.caroussel_dyn {
  max-width: 90vw;
  aspect-ratio: 1 / 1;
  margin: 2em auto;
  background-color: black;
  overflow: hidden;
  position: relative;
}

.caroussel-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

.caroussel-track {
  flex: 1;
  overflow: hidden;
  height: 100%;
}

.caroussel-images {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.caroussel-images img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
  background-color: black;
}

.arrow {
  background: rgba(255,255,255,0.6);
  border: none;
  font-size: 1.5em;
  padding: 0.5em;
  cursor: pointer;
  z-index: 2;
}

.pagination-dots {
  text-align: center;
  margin-top: 0.5em;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: white;
}


.caroussel_dyn .arrow {
  background: rgba(255,255,255,0.6);
  border: none;
  font-size: 1.5em;
  padding: 0.5em;
  cursor: pointer;
  z-index: 2;
}

.caroussel_dyn .pagination-dots {
  text-align: center;
  margin-top: 0.5em;
}

.caroussel_dyn .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.caroussel_dyn .dot.active {
  background-color: white;
}

table-responsive {
  margin: 1.5rem auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
 
}

.table-bordures {
   border-collapse: collapse;
}

.table-bordures td, .table-bordures th {
  padding: 0.8em;
  border: 1px solid #999;
  text-align: center;
  vertical-align: middle;
}

.table-bordures a {
  text-decoration: none;
  color: #333;
}

.table-bordures a:hover {
  text-decoration: underline;
}

.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
}

.video-link {
  display: inline-block;
  text-align: center;
}

p.article_liste
	{
	display:inline-block;
	width:265px;
	border:1px solid #142650;
	border-radius:4px 4px 4px 4px;
	background:white;
	text-align:center;
	color:#1034A6;
	font:bold 12px Verdana;
	margin: 5px;
	padding:6px;
	box-shadow:4px 8px 8px 0px #999;
	text-decoration:none;
	position: inherit;
	}
p.article_liste:hover
{
background:black; 
box-shadow:1px 3px 2px 0px #999;
color:cadetblue;
}

.cadre_simple {
    border: 2px solid;
	border-color: #AEB0B1;
    border-radius: 0.5em;
    background-color: white;
	margin-top: 0.5em;
	margin-left: 0.5em;
    margin-right: 0.5em;
	padding-right:0.2em;
	padding-left:0.2em;
	        }
.encadre {
      border: 2px solid #ccc;
      padding: 1vw;
      margin: 1vw auto;
      max-width: 90%;
      box-sizing: border-box;
      border-radius: 8px;
      background-color: #f9f9f9;
         }

    @media (min-width: 768px) {
      .encadre {
        max-width: 600px;
        padding: 30px;
        }
    }
a img {
  border: 1px solid #999;
}

