/* === GENERIC PAGE === */
.generic-page {
  background-color: #f5f9fe;
}

.generic-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 50px;
}

.generic-hero p a {
  color: #555;
  text-decoration: underline;
}

.generic-hero__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  width: 100%;
  gap: 50px;
}

.generic-hero__content {
  flex: 1;
  max-width: 550px;
}

.generic-hero__content h1 {
  font-size: 35px;
  font-weight: bold;
  max-width: 900px;
  color: #557c8c;
  margin: 0 auto;
  line-height: 1.5;
}

.generic-hero__content span {
  display: block;
  font-size: 28px;
  font-weight: lighter;
  margin-bottom: 10px;
}

.generic-hero__content p {
  font-size: 16px;
  text-align: justify;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.generic-hero__image {
  flex: 1;
  position: relative;
  max-width: 650px;
}

.generic-hero__image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

.generic-hero__image::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  background: #527887;
  opacity: 0.4;
  border-radius: 50%;
  top: 20%;
  left: -20%;
  z-index: 1;
}

.generic-hero__image::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(92, 175, 231, 0.2);
  border-radius: 50%;
  bottom: 10%;
  right: -10%;
  z-index: 1;
}

@media (max-width: 1024px) {
  .generic-hero__container {
    flex-direction: column;
    text-align: center;
  }

  .generic-hero__content {
    max-width: 100%;
  }

  .generic-hero__image {
    max-width: 80%;
    margin-top: 20px;
  }

  .generic-hero__image::before {
    left: 10%;
    width: 180px;
    height: 180px;
  }

  .generic-hero__image::after {
    right: 10%;
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .generic-page {
    padding: 60px 0px;
  }

  .generic-hero__content {
    text-align: center;
  }

  .generic-hero__content h1 {
    font-size: 2rem;
    text-align: center;
    overflow-wrap: anywhere; /* norme moderne */
    word-wrap: break-word; /* alias / fallback pour anciens navigateurs */
    hyphens: auto;
  }

  .generic-hero__content p {
    font-size: 1rem;
  }

  .generic-hero__image {
    max-width: 100%;
  }
}

.generic-values {
  position: relative;
  background-color: #557c8c;
  color: white;
  padding: 70px 20px;
  text-align: center;
  z-index: 10;
}

.generic-values ul {
  padding-left: 30px; /* Décale la liste vers la droite */
  color: #fff;
}

.generic-values__container ul li {
  line-height: 1.8; /* Tu peux aussi augmenter si tu veux plus d’aération */
}

.generic-values__container ul {
  list-style-position: inside;
  padding-bottom: 10px;
}

.generic-values::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/background.webp") no-repeat center bottom;
  background-size: cover;
  opacity: 0.2;
  z-index: -1;
}

.generic-values__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  color: #fff;
}

.generic-values__container h2 {
  color: white;
  font-family: "Inter", sans-serif;
  font-size: 30px;
  font-weight: normal;
  margin-bottom: 10px;
  opacity: 1;
}

.generic-values__container h2 strong {
  display: block;
  font-size: 40px;
  font-weight: bold;
}

.generic-values__container a {
  text-decoration: underline;
}

.generic-values__container p {
  color: #fff;
}

/* === GENERIC SECTIONS === */
.generic-section {
  padding: 50px 10%;
  background-color: #f5f9fe;
  display: flex;
  justify-content: center;
  padding-bottom: 0;
}

.generic-card {
  display: flex;
  align-items: center;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  width: 100%;
  gap: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.generic-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.2);
}

.generic-card__image {
  flex: 1;
  max-width: 450px;
}

.generic-card__image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
}

.generic-card__content {
  flex: 1;
  max-width: 550px;
  text-align: justify;
}

.generic-card__content a {
  color: #555;
  text-decoration: underline;
}

.generic-section .generic-card__content .btn-primary {
  color: #ffffff; /* texte blanc */
  text-decoration: none; /* enlève le soulignement */
}

.generic-card h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: left;
}

.generic-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.generic-card ul {
  padding-left: 30px;
  color: #555;
  padding-bottom: 20px;
}

.generic-card--left {
  flex-direction: row;
}

.generic-card--right {
  flex-direction: row-reverse;
  margin-bottom: 50px;
}

@media (max-width: 1024px) {
  .generic-card {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }

  .generic-card__image {
    max-width: 70%;
    margin: 0 auto;
  }

  .generic-card__content {
    max-width: 100%;
  }

  .generic-hero__content p {
    text-align: center;
  }

  .generic-card h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .generic-card p {
    font-size: 1.1rem;
    text-align: center;
  }

  .generic-card ul {
    text-align: center;
    list-style-position: inside;
  }
}

@media (max-width: 768px) {
  .generic-section {
    padding: 40px 5%;
  }

  .generic-card {
    padding: 20px;
    gap: 20px;
  }

  .generic-card__image {
    max-width: 90%;
  }

  .generic-card h2 {
    font-size: 1.6rem;
  }

  .generic-card p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .generic-page {
    padding-top: 0;
  }

  .generic-hero {
    padding-bottom: 65px;
  }

  .generic-hero__container {
    gap: 10px;
  }

  .generic-section {
    padding: 30px 5%;
  }

  .generic-card {
    padding: 15px;
    gap: 15px;
  }

  .generic-card h2 {
    font-size: 1.4rem;
  }

  .generic-card p {
    font-size: 0.95rem;
  }

  .generic-card__image {
    max-width: 100%;
  }
}

.section-two-cols {
  background-color: #f4f7f9;
  padding: 80px 60px;
  display: flex;
  justify-content: center;
}

.section-two-cols__container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 50px;
}

.section-two-cols__text {
  flex: 1;
  color: #555;
  text-align: left;
}

.section-two-cols__text h2 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
}

.section-two-cols__text p {
  color: #555;
  text-align: justify;
  padding-top: 10px;
}

.section-two-cols__text ul {
  list-style-type: disc; /* puces classiques */
  list-style-position: outside; /* ← la clé */
  margin: 0 0 0 1.2em; /* un petit retrait à gauche */
  padding: 0; /* plus propre */
  padding-left: 10px;
}

.section-two-cols__text li {
  margin-bottom: 12px;
  line-height: 1.4;
}

.section-two-cols__media {
  flex: 1;
}

.section-two-cols__media video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ====== LISTE APPROCHE (OL + sous UL) ====== */
.section-two-cols__text ol {
  list-style-position: inside;
  padding-left: 0;
  margin: 0;
}

.section-two-cols__text ol > li {
  margin-bottom: 18px; /* espace entre les 4 grandes étapes */
  line-height: 1.4;
}

.section-two-cols__text ol > li > strong {
  color: #4e7c8d; /* même bleu que tes titres / <strong> */
}

/* Sous-liste à puces */
.section-two-cols__text ol ul {
  list-style-type: disc; /* disques classiques */
  margin: 10px 0 0 25px; /* léger retrait */
  padding-left: 0;
}

.section-two-cols__text ol ul li {
  margin-bottom: 8px;
  line-height: 1.4;
}

/* ====== Images dans la colonne média ====== */
.section-two-cols__media img {
  width: 100%;
  height: auto; /* conserve les proportions */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  object-fit: cover; /* si l’image déborde d’un cadre fixe */
}

/* Responsive : limite la largeur comme pour la vidéo */
@media screen and (max-width: 1024px) {
  .section-two-cols__media img {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ====== Responsive : mêmes règles que pour les UL ====== */
@media screen and (max-width: 1024px) {
  .section-two-cols__text ol > li,
  .section-two-cols__text ol ul li {
    text-align: center;
    margin-left: 0;
    padding-left: 0;
  }
}

/* === Responsive === */

@media screen and (max-width: 1024px) {
  .section-two-cols {
    padding: 40px 20px;
  }

  .section-two-cols__container {
    flex-direction: column;
    gap: 30px;
  }

  .section-two-cols__text {
    text-align: center;
  }

  .section-two-cols__text ul {
    list-style-position: inside;
    padding-left: 0;
  }

  .section-two-cols__text li {
    text-align: center; /* ✅ centre le texte */
    list-style-position: inside; /* ✅ garde les puces alignées avec le texte */
    margin-left: 0; /* ✅ retire l'indentation gauche */
  }

  .section-two-cols__text p {
    text-align: center;
  }

  /* 1) le wrapper qui contient le bouton */
  .section-two-cols__buttons {
    display: flex; /* crée un contexte flex */
    justify-content: center; /* centre horizontalement */
  }

  /* 2) le lien lui-même reprend une largeur auto */
  .section-two-cols .btn-secondary {
    display: inline-flex; /* shrink-wrap autour du texte + icône */
    margin: 0 auto; /* ceinture + bretelles */
  }

  /* Vidéo tout en haut */
  .section-two-cols__media {
    order: -1; /* ⬅️ remonte avant le texte */
  }

  .section-two-cols__media video {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 480px) {
  .section-two-cols {
    padding: 30px 15px;
  }

  .section-two-cols__text h2 {
    font-size: 26px;
  }

  .section-two-cols__text li {
    font-size: 14px;
  }
}

/* === Cartes d'information réutilisables === */
.info-cards {
  background: #f4f7f9;
  padding: 80px 20px;
  padding-top: 0;
  display: flex;
  justify-content: center;
  color: #555;
}

.info-cards__container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px; /* espace horizontal & vertical */
  max-width: 1200px;
  width: 100%;
  justify-content: space-between;
}

.info-card {
  flex: 1 1 30%; /* 3 cartes sur desktop */
  min-width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 25px 25px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

/* Titres & textes */
.info-card h3 {
  font-size: 24px;
  color: #527887;
  margin-bottom: 15px;
  font-weight: 700;
}
.info-card__list {
  padding-left: 18px;
  margin: 0 0 15px;
}
.info-card__list li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.info-card__note {
  margin-top: auto;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

/* Tableau dans carte profils */
.info-card__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 5px;
}
.info-card__table th,
.info-card__table td {
  border: 1px solid #e3e9ee;
  padding: 8px 10px;
  text-align: left;
}
.info-card__table th {
  background: #eef3f7;
  color: #527887;
  font-weight: 600;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .info-cards {
    padding: 60px 20px;
    padding-top: 0;
  }
  .info-card {
    flex: 1 1 45%;
  } /* 2 cartes par ligne */
}

@media (max-width: 768px) {
  .info-cards {
    padding: 40px 15px;
    padding-top: 0;
  }
  .info-cards__container {
    gap: 25px;
  }
  .info-card {
    flex: 1 1 100%;
    max-width: 100%;
  } /* 1 carte par ligne */
  .info-card h3 {
    font-size: 22px;
  }
}

.generic-examples {
  background-color: #f5f9fe; /* même fond que .generic-page */
  padding: 80px 20px;
}

.generic-examples__container {
  width: min(95%, 1200px);
  margin-inline: auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  padding: clamp(2.5rem, 5vw, 4rem);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.generic-examples__container:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.12);
}

/* ------------------------ Heading principal ------------------------ */
.generic-examples h2 {
  font-size: clamp(2rem, 3.5vw, 2.4rem);
  color: #557c8c;
  margin-bottom: 2.5rem;
  position: relative;
}
.generic-examples h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.75rem;
  width: 80px;
  height: 4px;
  background: var(--cg-primary);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* ----------------------------- Articles ---------------------------- */
.example {
  margin-left: 25px;
}

.example + .example {
  margin-top: 0rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e6ecf0;
}

.example h3 {
  font-size: 1.45rem;
  color: var(--cg-heading);
  margin: 0 0 1rem 0;
  padding-left: 46px; /* laisse la place pour l’icône */
  line-height: 1.3;
  position: relative;
  color: #557c8c;
}

/* Icônes avec Font Awesome (assurez‑vous que la lib est chargée) */
.example h3::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 30px;
  color: var(--cg-primary);
}
.example:nth-of-type(1) h3::before {
  content: "\f0ad";
} /* fa-cogs → IA */
.example:nth-of-type(2) h3::before {
  content: "\f542";
} /* fa-project-diagram → Modèle 2TK */
.example:nth-of-type(3) h3::before {
  content: "\f0f1";
} /* fa-stethoscope → Clinique */

/* Texte & citations */
.example p,
.example__citation,
.list li {
  color: #555;
  font-size: 0.96rem;
  line-height: 1.6;
  text-align: justify;
}

.example__citation {
  border-left: 3px solid var(--cg-primary);
  padding-left: 0.75rem;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.8;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Puces 🟢 */
.list {
  margin: 1.25rem 0;
  padding-left: 2rem;
}
.list li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--cg-primary);
  border-radius: 50%;
}

/***********************************
 * RESPONSIVE                      *
 ***********************************/
@media (min-width: 768px) {
  .example {
    display: grid;
    grid-template-columns: 1fr 0.4fr;
    column-gap: 3rem;
  }
  .example p,
  .example .list {
    grid-column: 1 / -1; /* mobile first: let flow by default */
  }
}

@media (min-width: 1024px) {
  .example {
    grid-template-columns: 0.7fr 1.3fr;
  }
  .example h3 {
    grid-column: 1 / -1;
  }
}

/******** Fin extension EXEMPLES ********/

/* ====== Tableau Enseignement ====== */
.teaching-table {
  overflow-x: auto;
}

table.teaching {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.teaching th,
table.teaching td {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
}
table.teaching thead {
  background: #f5f9fe;
  position: sticky;
  top: 0; /* garde l’en-tête visible */
}
table.teaching tbody tr:nth-child(odd) {
  background: #fafcff;
}
table.teaching td.hours {
  text-align: center;
  font-weight: 600;
}
@media (max-width: 768px) {
  table.teaching th:nth-child(2),
  table.teaching td:nth-child(2) {
    display: none;
  } /* cache 'Discipline' sur mobile si désiré */
}

/* ====== BREAKPOINT  ≤ 500 px : table → cartes empilées =============== */
@media (max-width: 600px) {
  /* on démonte entièrement la table */
  table.teaching,
  table.teaching thead,
  table.teaching tbody,
  table.teaching th,
  table.teaching td,
  table.teaching tr {
    display: block;
    width: 100%;
  }
  table.teaching thead {
    display: none;
  } /* cache l’en-tête */

  table.teaching tr {
    border: 1px solid #d3e1ef;
    border-radius: 8px;
    margin: 0 0 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  }

  table.teaching td {
    border: none; /* retire les anciennes bordures */
    position: relative;
    padding: 10px 12px 10px 45%; /* laisse la place pour le label */
    font-size: 0.9rem;
  }
  table.teaching td::before {
    /* petit label à gauche */
    content: attr(data-label);
    position: absolute;
    left: 12px;
    top: 10px;
    font-weight: 600;
    color: #527887;
    width: 40%; /* aligne toutes les étiquettes */
    white-space: pre-wrap;
  }
  table.teaching td.hours {
    padding-left: 45%;
    text-align: left; /* ou center si tu préfères */
    font-weight: 600;
  }
}
