/* --- Mise en page générale --- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  display: flex;
}

/* --- Menu latéral --- */
#sidebar {
  width: 260px;
  background: #222;
  color: white;
  height: 100vh;
  position: fixed;
  overflow-y: auto;
  padding: 20px;
}
#sidebar h2 {
  margin-top: 0;
  font-size: 22px;
  text-align: center;
}
#sidebar a {
  display: block;
  padding: 10px;
  color: #ddd;
  text-decoration: none;
  border-bottom: 1px solid #333;
}
#sidebar a:hover {
  background: #444;
  color: #fff;
}

/* --- Contenu principal --- */
#content {
  margin-left: 260px;
  padding: 30px;
}

/* --- Sections génériques --- */
.section {
  background: white;
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.section h3 {
  margin-top: 0;
  font-size: 26px;
  border-left: 5px solid #c00;
  padding-left: 10px;
}

/* --- Icônes techniques --- */
.technique {
  font-weight: bold;
  color: #333;
  margin: 10px 0;
  cursor: pointer;
  transition: 0.3s;
}
.technique:hover {
  color: #c00;
  text-shadow: 0 0 8px rgba(255,0,0,0.6);
}

/* --- Popup vidéo --- */
.video-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.video-popup video {
  width: 85%;
  max-width: 900px;
  border: 3px solid white;
  border-radius: 8px;
}
.btn-retour {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: #0077cc;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-retour:hover {
  background: #005fa3;
}

/* --- Bloc d’introduction --- */
.intro-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #fff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}
.intro-left {
  flex: 0 0 150px;
  text-align: center;
}
.intro-logo {
  width: 140px;
  height: auto;
}
.intro-right {
  flex: 1;
}
.intro-title {
  font-size: 32px;
  margin: 0;
  color: #c00;
}
.intro-subtitle {
  font-size: 22px;
  margin: 5px 0 20px 0;
  color: #333;
}
.intro-info p {
  margin: 4px 0;
  font-size: 16px;
}

/* --- Section Code moral --- */
.section.code-moral {
  padding: 0;
  background: none;
  box-shadow: none;
}

/* Titre Code moral sans barre rouge, centré */
.section.code-moral h3 {
  border-left: none;
  padding-left: 0;
  text-align: center;
  color: #c00;
  font-size: 30px;
  margin-bottom: 20px;
}

/* Cadre avec fond image, à l’intérieur de la section */
.code-moral-bg {
  background: url('../../Newimage/Fond%20code%20moral.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 0px center; /* fond décalé à gauche mais cadre contenu */
  padding: 40px;
  border-radius: 12px;
  background-color: transparent;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

/* Contenu centré dans le cadre */
.code-moral-content {
  max-width:100%;
  margin: auto;
}

/* Paragraphe principal en Brush Script, sans débordement */
.code-paragraph {
  font-family: "Brush Script MT", "Dancing Script", cursive;
  font-size: 26px;
  line-height: 1.4;
  text-align: center;
  color: #222;
  padding: 40px 50px;
}

/* Kanji mis en valeur dans le texte */
.kanji-inline {
  font-size: 24px;
  color: #000;
  font-weight: bold;
  font-family: "Yu Mincho", "MS Mincho", serif;
}

/* Espacement des lignes du paragraphe */
.code-paragraph p {
  margin: 5px 0;
}

/* Liste des 12 valeurs */
.code-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.code-list li {
  font-size: 18px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 15px;
}
.code-list li:last-child {
  border-bottom: none;
}
.kanji {
  font-size: 26px;
  color: #000;
  font-weight: bold;
  font-family: "Yu Mincho", "MS Mincho", serif;
}
.image-popup, .video-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  touch-action: none;
}

.image-popup img,
.video-popup video {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 3px solid white;
  border-radius: 8px;
}
.popup-images {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.popup-images .popup-image {
    width: 45%;
    border-radius: 6px;
}

