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

body {
  font-size: 1rem; /* hérite de html */
  font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}
h1 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
	color:#13477A;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
	color:#13477A;
}

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: 220px;
  background-color: #f0f0f0;
  padding: 1em;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.content { flex: 1; padding: 2em; }

#toggle-sidebar-toc {
  display: none;
  max-width: 300px;
  margin: 1em auto;
  padding: 0em;
  background-color: #f0f0f0;
  color: #305C88;
  border: none;
  font-size: 0.8em;
}
.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar nav li {
  margin: 0.5em 0;
}
.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: 2em;
	
}
.bloc-texte-image .texte {
  flex: 1 1 300px; /* grandit, rétrécit, largeur minimale */
  min-height: 200px;

  padding: 1em;
}
.bloc-texte-image .image {
  	flex: 1 1 300px; /* grandit, rétrécit, largeur minimale */
  min-height: 200px;

  padding: 1em;
}
.bloc-texte-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

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

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

.carrousel-images img {
  width: 600px;
  height: 600px;
  object-fit: contain;
  background-color: black;
  display: block;
  flex-shrink: 0;
}

.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: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.carrousel-dots .active {
  background-color: #333;
}
.bloc-interactif h2 {
  font-size: 1.2em;
  margin: 1em 0 0.5em;
  cursor: pointer;
  color: #004080;
}
.bloc-interactif p {
  font-size: 1em;
  color: #333;
}
@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;
  }

@media (min-width: 768px) {
  img {
    width: 80%;
  }
}


  #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;
}
.table-bordures {
  border-collapse: collapse;
}

.table-bordures th,
.table-bordures td {
  border: 1px solid black;
  padding: 8px;
}
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;
}




