/* ===========================================================
   Portail des modules â€” BTS Informatique
   Palette : encre nuit + accents par rubrique (faĂ§on fiche langage)
   =========================================================== */

:root{
  --encre:        #0D1420;
  --encre-2:      #16223A;
  --papier:       #F7F5F0;
  --papier-2:     #EDEAE1;
  --texte:        #1C2333;
  --texte-clair:  #5B6478;
  --bordure:      #E1DDD1;

  --accent-python:   #E8A33D;
  --accent-data-ia:  #7B6FE8;
  --accent-mongodb:  #4FA867;
  --accent-php:      #7F8FD1;
  --accent-gestion:  #D9695F;

  --police-titre: 'Space Grotesk', sans-serif;
  --police-code:  'JetBrains Mono', monospace;
  --police-texte: 'Work Sans', sans-serif;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font-family: var(--police-texte);
  line-height: 1.55;
}

/* ===== BanniĂ¨re ===== */
.banniere{
  width: 100%;
  background: var(--encre);
  line-height: 0;
}
.banniere__image{
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

/* ===== Navigation ===== */
.nav{
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--papier);
  border-bottom: 1px solid var(--bordure);
}
.nav__toggle{
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .9rem 1.2rem;
  background: none;
  border: none;
  font-family: var(--police-code);
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--texte);
  cursor: pointer;
}
.nav__list{
  list-style: none;
  margin: 0;
  padding: 0 1.2rem;
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin-inline: auto;
}
.nav__list a{
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: 1rem .1rem;
  margin-right: 2rem;
  text-decoration: none;
  color: var(--texte-clair);
  font-weight: 600;
  font-size: .95rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.nav__tag{
  font-family: var(--police-code);
  font-size: .7rem;
  color: var(--texte-clair);
  opacity: .6;
}
.nav__list a:hover,
.nav__list a.actif{
  color: var(--texte);
}
.nav__list a[data-accent="python"]:hover,       .nav__list a[data-accent="python"].actif       { border-color: var(--accent-python); }
.nav__list a[data-accent="data-ia"]:hover,      .nav__list a[data-accent="data-ia"].actif      { border-color: var(--accent-data-ia); }
.nav__list a[data-accent="mongodb"]:hover,      .nav__list a[data-accent="mongodb"].actif      { border-color: var(--accent-mongodb); }
.nav__list a[data-accent="php"]:hover,          .nav__list a[data-accent="php"].actif          { border-color: var(--accent-php); }
.nav__list a[data-accent="gestion-projets"]:hover, .nav__list a[data-accent="gestion-projets"].actif { border-color: var(--accent-gestion); }

/* ===== Rubriques / modules ===== */
main{
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}

.module{
  scroll-margin-top: 4.5rem;
  background: #fff;
  border: 1px solid var(--bordure);
  border-left: 5px solid var(--texte);
  border-radius: 6px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.module[data-accent="python"]           { border-left-color: var(--accent-python); }
.module[data-accent="data-ia"]          { border-left-color: var(--accent-data-ia); }
.module[data-accent="mongodb"]          { border-left-color: var(--accent-mongodb); }
.module[data-accent="php"]              { border-left-color: var(--accent-php); }
.module[data-accent="gestion-projets"]  { border-left-color: var(--accent-gestion); }

.module__file{
  font-family: var(--police-code);
  font-size: .75rem;
  color: var(--texte-clair);
  background: var(--papier-2);
  padding: .5rem 1.5rem;
  border-bottom: 1px solid var(--bordure);
}
.module__inner{ padding: 1.5rem 1.5rem 1.8rem; }

.module__title{
  font-family: var(--police-titre);
  font-size: 1.6rem;
  margin: 0 0 .6rem;
}
.module__desc{
  color: var(--texte-clair);
  margin: 0 0 1rem;
  max-width: 60ch;
}
.module__list{
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
}
.module__list li{ margin-bottom: .35rem; }

.module__link{
  font-family: var(--police-code);
  font-size: .8rem;
  color: var(--texte-clair);
  text-decoration: none;
}
.module__link:hover{ color: var(--texte); }

/* ===== Pied de page ===== */
.pied{
  text-align: center;
  padding: 2rem 1rem;
  font-family: var(--police-code);
  font-size: .8rem;
  color: var(--texte-clair);
}

/* ===== Responsive ===== */
@media (max-width: 720px){
  .nav__toggle{ display: flex; }
  .nav__list{
    display: none;
    flex-direction: column;
    padding: 0 1.2rem 1rem;
  }
  .nav__list.ouvert{ display: flex; }
  .nav__list a{ margin-right: 0; padding: .7rem .1rem; }
}


:root {
  --res-primary: #4f46e5;
  --res-primary-dark: #3730a3;
  --res-accent: #06b6d4;
  --res-bg: #ffffff;
  --res-band: #eef2ff;
  --res-border: #e5e7eb;
  --res-text: #1f2937;
  --res-muted: #9ca3af;
}

.res-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--res-bg);
  color: var(--res-text);
  border: 1px solid var(--res-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.12);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ----- En-tête ----- */
.res-table thead th {
  width: 50%;
  padding: 18px 20px;
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--res-primary), var(--res-accent));
}
.res-table thead th:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

/* ----- Bandes horizontales (Cours, TP...) ----- */
.res-table__band th {
  padding: 10px 20px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--res-primary-dark);
  background: var(--res-band);
  border-top: 1px solid var(--res-border);
  border-bottom: 1px solid var(--res-border);
  border-left: 5px solid var(--res-primary);
}
.res-table__icon {
  margin-right: 6px;
}

/* ----- Cellules ----- */
.res-table td {
  width: 50%;
  padding: 16px 20px;
  vertical-align: top;
  text-align: left;
}
.res-table td:first-child {
  border-right: 1px solid var(--res-border);
}

/* ----- Listes ----- */
.res-table .res-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.res-table .res-group__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid var(--res-border);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.res-table .res-group__list li:hover {
  transform: translateY(-2px);
  border-color: var(--res-primary);
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.15);
}

.res-item__name {
  flex: 1 1 200px;
  font-weight: 500;
  line-height: 1.35;
}
.res-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ----- Boutons ----- */
.res-btn {
  display: inline-block;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--res-primary);
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.res-btn:hover {
  background: var(--res-primary-dark);
  transform: scale(1.05);
}
.res-btn--alt {
  background: transparent;
  color: var(--res-primary);
  border: 1.5px solid var(--res-primary);
  padding: 5.5px 14px;
}
.res-btn--alt:hover {
  background: var(--res-primary);
  color: #fff;
}

/* ----- Cellule vide ----- */
.res-empty {
  margin: 0;
  padding: 12px 0;
  text-align: center;
  font-style: italic;
  color: var(--res-muted);
}

/* ----- Mobile : une seule colonne ----- */
@media (max-width: 640px) {
  .res-table thead { display: none; }
  .res-table td {
    display: block;
    width: auto;
  }
  .res-table td:first-child {
    border-right: none;
    border-bottom: 1px dashed var(--res-border);
  }
  .res-table td:first-child::before,
  .res-table td:last-child::before {
    display: block;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--res-primary);
  }
  .res-table td:first-child::before { content: "Science des données"; }
  .res-table td:last-child::before  { content: "Visualisation des données"; }
}