body {
  margin: 0;
  background: #111;
  color: white;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.viewer {
  width: 600px;
  height: 400px;
  border: 1px solid #444;
  position: relative;
}

.label {
  position: absolute;
  top: 5px;
  left: 10px;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.toggle {
  position: absolute;
  top: 5px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #999;
  color: white;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
}

.controls {
  margin-top: 10px;
  color: white;
  background: rgba(48, 48, 48, 1);
  padding: 6px 6px;
  border-radius: 6px;
}

.controls label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0;
}

.controls input[type=range] {
  width: 300px;
}

/* Styles pour les tableaux de fonctions logiques */

table {
  border-collapse: collapse;
  margin: 30px auto;
  width: 80%;
  background: #222;
  color: white;
}

th,
td {
  border: 1px solid #555;
  padding: 10px;
  text-align: center;
}

th {
  background-color: #333;
}

caption {
  margin-bottom: 10px;
  font-weight: bold;
  color: #ccc;
  font-size: 1.1em;
}

.yes {
  color: #00ff00;
  font-weight: bold;
}

.no {
  color: #ff4444;
  font-weight: bold;
}

hr {
  width: 80%;
  border: 1px solid #b6b6b6;
  margin: 20px auto;
}

/* Style pour le panneau d'interface utilisateur (UI) */
#ui {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 200px;
  background: rgba(64, 64, 64, 0.75);
  padding: 6px 6px;
  border-radius: 6px;
}

/* =========================
       RESET ET BASE
       ========================= */
* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

html {
  scroll-behavior: smooth;
}

/* Ajout d'un scroll-margin-top pour que les ancres apparaissent correctement sous le header fixe */
section {
  scroll-margin-top: 80px;
}

/* =========================
     HEADER ET NAVBAR
  ========================= */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #000;
  /* Fond sombre */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
  z-index: 1000;
}

/* Logo et nom du site */
.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: #ffffff;
  font-size: 1.2em;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

/* Menu de navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #ff5a00;
}

/* Bouton GitHub */
.github-btn {
  background-color: #333;
  border: 1px solid #444;
  padding: 6px 12px;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
  transition: background 0.2s;
}

.github-btn:hover {
  background-color: #444;
}

/* =========================
         SECTION HERO
  ========================= */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 40px 0px;
  /* laisser de l'espace pour le contenu */
  margin-top: 20px;
  /* marge réduite sous le header */
  background: #111;
  /* Fond sombre */
}

/* =========================
         SECTION HERO
  ========================= */
.hero-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 40px 0px;
  /* laisser de l'espace pour le contenu */
  margin-top: 20px;
  /* marge réduite sous le header */
  background: #111;
  /* Fond sombre */
}

.hero-text {
  max-width: 50%;
  color: #fff;
}

.hero-text h1 {
  font-size: 2em;
  color: #ffd700;
  /* Jaune (cerveau) */
  margin-bottom: 0.2em;
}

.hero-text em {
  color: #ffa500;
  /* Orange (ML) */
  font-style: normal;
  font-weight: bold;
}

.hero-text p {
  font-size: 1.2em;
  margin-bottom: 1em;
  line-height: 1.4em;
}

/* Boutons d'appel à l'action */
.cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 1.5em;
  justify-content: center;
}

.cta-buttons a {
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary {
  background-color: #ffa500;
  color: #111;
}

.btn-primary:hover {
  background-color: #ffbb33;
}

.btn-secondary {
  background-color: #333;
  color: #fff;
  border: 1px solid #444;
}

.btn-secondary:hover {
  background-color: #444;
}

/* Image sur la droite de la hero */
.hero-image {
  max-width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* =========================
  SECTION BADGES / HIGHLIGHTS
  ========================= */
.highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
  max-width: 1000px;
  padding: 0 20px;
}

.highlight-card {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 20px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 280px;
  max-width: 300px;
}

.dual-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.dual-logo img {
  max-width: 110px !important;
  height: auto;
}

.highlight-card h3 {
  color: #ffd700;
  margin-bottom: 10px;
}

.highlight-card img {
  width: 100%;
  max-width: 150px;
  margin-bottom: 10px;
}

/* =========================
  SECTION FOOTER
  ========================= */
.footer-info {
  text-align: center;
  color: #999;
  margin: 0px auto 20px auto;
  font-size: 0.9em;
}

.footer-info p {
  margin: 5px 0;
}

.gradient-text {
  /* Le dégradé : orange (#FFA500) vers jaune (#FFD700) */
  background: linear-gradient(90deg, #FFA500, #ff0000);
  /* Force l'utilisation du background comme "texture" pour le texte */
  -webkit-background-clip: text;
  /* Pour Chrome, Safari, etc. */
  -moz-background-clip: text;
  /* Pour Firefox (expérimental) */
  background-clip: text;
  /* Couleur de base transparente pour que le dégradé soit visible */
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* Optionnel : pour Firefox, utiliser color: transparent */
  color: transparent;
}

.ml-text {
  /* Le dégradé : orange (#FFA500) vers jaune (#FFD700) */
  background: linear-gradient(90deg, #ff5a00, #ff5a00);
  /* Force l'utilisation du background comme "texture" pour le texte */
  -webkit-background-clip: text;
  /* Pour Chrome, Safari, etc. */
  -moz-background-clip: text;
  /* Pour Firefox (expérimental) */
  background-clip: text;
  /* Couleur de base transparente pour que le dégradé soit visible */
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* Optionnel : pour Firefox, utiliser color: transparent */
  color: transparent;
}

section p,
ul,
ol {
  padding-left: 1.5em;
  /* espace entre le bord et la puce */
  margin-left: 0;
}

li {
  text-align: justify;
  margin-bottom: 0.5em;
  margin-left: 2em;
  /* espace vertical entre les puces */
}

body {
  padding: 0 5%;
}

section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.author-section {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.author-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.author-text {
  flex: 1 1 60%;
}

.author-photo {
  flex: 1 1 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.author-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.formation-section {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.formation-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.formation-image {
  width: 50px;
  display: flex;
  justify-content: center;
}

.formation-image img {
  width: 100%;
  max-width: 50px;
  height: auto;
}

.formation-text {
  flex: 1 1 60%;
}

.bordered_rounded {
  border: 2px solid #444;
  border-radius: 12px;
}

.bordered {
  border: 1px solid #444;
}

.nooden-image {
  width: 200px;
  height: auto;
  align-self: align-bottom;
}

.demo-image img {
  width: 100%;
  max-width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid #555;
  display: block;
}



.demo-content {
  margin-top: 20px;
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 20px;
  flex-wrap: wrap;
  /* pour gérer les petits écrans */
  margin: 20px 0;
}

.content-section {
  scroll-margin-top: 80px;
  /* permet de scroller proprement vers l’ancre */
}

.chapter-title {
  text-align: left;
  margin-left: 20px;
  /* optionnel */
}

.block-content {
  margin: 20px auto;
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;

  width: 100%;
  max-width: 960px;
  /* pour coller à la mise en page principale */
  box-sizing: border-box;
}

.zero {
  color: red;
  font-weight: bold;
}

.un {
  color: green;
  font-weight: bold;
}

main {
  padding-top: 80px;
  /* espace pour éviter que le header masque le contenu */
}

.content-section {
  scroll-margin-top: 80px;
  /* correction du scroll vers ancre */
}

.bloc-texte-image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 60px 0;
  flex-wrap: wrap;
}

.bloc-texte-image .texte {
  flex: 1;
  min-width: 300px;
}

.bloc-texte-image .image {
  flex: 0 0 200px;
  max-width: 200px;
}

.bloc-texte-image .image img {
  width: 100%;
  height: auto;
}

.bloc-texte-image.gauche {
  flex-direction: row-reverse;
}

.image-centree {
  display: block;
  /* pour casser l’alignement inline */
  margin-left: auto;
  /* marge auto gauche */
  margin-right: auto;
  /* marge auto droite */
  margin-top: 20px;
  /* optionnel : espace vertical */
  margin-bottom: 20px;
  /* optionnel : espace vertical */
  max-width: 100%;
  /* éviter le dépassement */
  height: auto;
}


.bandeau-image {
  width: 100%;
  height: 300px;
  /* Hauteur fixe modifiable */
  overflow: hidden;
  margin: 40px 0;
}

.bandeau-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Remplit le bloc en recadrant l'image sans la déformer */
  object-position: center;
  display: block;
}