* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  background: url('../img/background.jpg') center center;
  background-size: cover;
  background-attachment: fixed;
  padding: 40px 20px;
  min-height: 100vh;
}

/*=================================================================================================*/
/* Navigation fixe style post-it - PLUS LARGE */
/*=================================================================================================*/
.fixed-nav {
  position: fixed;
  top: 30px;
  right: 30px;
  background: #feff9c;
  background: linear-gradient(135deg, #feff9c 0%, #fef89a 100%);
  padding: 20px 25px;
  border-radius: 0 0 3px 3px;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.2),
    inset 0 -2px 3px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  min-width: 280px;
  transform: rotate(1deg);
  transition: transform 0.3s;
}

.fixed-nav:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.25),
    inset 0 -2px 3px rgba(0, 0, 0, 0.05);
}

.fixed-nav::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 15px;
  background: rgba(200, 200, 150, 0.4);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.fixed-nav ul {
  list-style: none;
}

.fixed-nav li {
  margin: 10px 0;
}

.fixed-nav a {
  text-decoration: none;
  color: #2c2c2c;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  display: block;
  padding: 5px 8px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.fixed-nav a:hover {
  color: #000;
  background: rgba(120, 193, 230, 0.4);
}

/* Section active surlignée en bleu */
.fixed-nav a.active {
  background: linear-gradient(to right, 
    rgba(100, 149, 237, 0.4) 0%, 
    rgba(135, 206, 250, 0.5) 50%,
    rgba(100, 149, 237, 0.4) 100%);
  color: #000;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(100, 149, 237, 0.3);
}

/*=================================================================================================*/
/* Contenu principal */
/*=================================================================================================*/
.content {
  max-width: 1300px;
  margin: 0 auto;
  padding-right: 280px;
}

/*=================================================================================================*/
/* Page de couverture */
/*=================================================================================================*/
.cover-page {
  width: 100%;
  max-width: 1100px;
  background: #e2f0f0;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(212, 175, 55, 0.15) 2px,
      rgba(212, 175, 55, 0.15) 4px
    );
  margin: 50px 0;
  padding: 80px 60px;
  border-radius: 8px;
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  scroll-margin-top: 20px;
  border: 3px dashed rgba(0, 0, 0, 0.4);
}

.cover-page::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 2px dashed rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  pointer-events: none;
}

.cover-page .title {
  font-size: 50px;
  font-weight: bold;
  color: #19191e;
  text-align: center;
  font-family: 'Georgia', serif;
  text-shadow: none;
  letter-spacing: 2px;
}

.cover-page .subtitle {
  font-size: 18px;
  color: #19191e;
  text-align: center;
  font-family: 'Georgia', serif;
  text-shadow: none;
  max-width: 850px;
  line-height: 1.8;
}

/*========NEW========*/

.cover-page .doctors-table {
  width: 100%;
  max-width: 900px;
  border-collapse: collapse;
  margin: 20px auto;
  table-layout: fixed;
}

.cover-page .doctors-table td {
  text-align: center;
  padding: 15px 10px;
  vertical-align: top;
  width: 20%;
}

.cover-page .doctors-table .doctor-name {
  font-size: 16px;
  font-weight: 600;
  color: #19191e;
  font-family: 'Georgia', serif;
  text-shadow: none;
  margin-top: 15px;
  display: block;
}

.cover-page .doctors-table .doctor-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #19191e;
  box-shadow: none;
  display: block;
  margin: 0 auto;
}

.cover-page .footer {
  text-align: center;
  color: #19191e;
  font-family: 'Georgia', serif;
  text-shadow: none;
  margin-top: 40px;
}

.cover-page .footer .class {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cover-page .footer .date {
  font-size: 20px;
  font-style: italic;
}

/* Images dans la cover page */
.cover-page img {
  max-width: 400px;
  height: auto;
  margin: 5px auto;
  display: block;
  border-radius: 8px;
}

.cover-page img.map {
  max-width: 70%;
  width: 70%;
}

/*=================================================================================================*/
/* Post-it vert pour les liens - EN BAS À DROITE */
/*=================================================================================================*/
.links-postit {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #c1ff9c;
  background: linear-gradient(135deg, #c1ff9c 0%, #b5f89a 100%);
  padding: 20px 25px;
  border-radius: 0 0 3px 3px;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.2),
    inset 0 -2px 3px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  min-width: 280px;
  transform: rotate(1deg);
  transition: transform 0.3s;
}

.links-postit:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.25),
    inset 0 -2px 3px rgba(0, 0, 0, 0.05);
}

.links-postit::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 15px;
  background: rgba(180, 200, 150, 0.4);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.links-postit ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-postit li {
  margin: 12px 0;
}

.links-postit a {
  text-decoration: underline;
  color: #31376b;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s;
  display: block;
  padding: 5px 8px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.links-postit a:hover {
  color: #000;
  background: rgba(255, 255, 255, 0.5);
}

/*=================================================================================================*/
/* Blocs type carnet */
/*=================================================================================================*/
.section-block {
  background: #fef9e7;
  background-image: 
    repeating-linear-gradient(
      transparent,
      transparent 24px,
      #d4d4aacc 24px,
      #d4d4aacc 25px
    );
  background-size: 100% 25px, 25px 100%;
  padding: 30px 60px 50px 60px;
  margin: 50px 0;
  border-radius: 8px;
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  min-height: 300px;
  scroll-margin-top: 20px;
}

.section-block::before {
  content: '';
  position: absolute;
  left: 45px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e85d75;
}

/* Titres */
.section-block h1 {
  color: #1a1a1a;
  font-size: 42px;
  margin-bottom: 30px;
  font-weight: bold;
  position: relative;
  z-index: 1;
  border-bottom: 3px solid #2c3e50;
  padding-bottom: 10px;
}

.section-block h2 {
  color: #2c3e50;
  font-size: 36px;
  margin-bottom: 25px;
  margin-top: 25px;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.section-block h3 {
  color: #34495e;
  font-size: 28px;
  margin-bottom: 20px;
  margin-top: 20px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  font-style: italic;
}

.section-block h4 {
  color: #2b2b2b;
  font-size: 22px;
  margin-bottom: 15px;
  margin-top: 15px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* Texte */
.section-block p,
.section-block ul,
.section-block ol {
  line-height: 28px;
  color: #1e1e1e;
  font-size: 17px;
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  text-align: justify;
  letter-spacing: 0.3px;
}

.section-block strong {
  font-weight: bold;
  color: #121212;
}

.section-block strongorange {
  font-weight: bold;
  color: #eb2b28;
}

.section-block em {
  font-style: italic;
}

.section-block casegeneral {
  font-style: italic;
  color: #373737;
}

.section-block u {
  text-decoration: underline;
  text-decoration-color: #2c3e50;
  text-decoration-thickness: 1.5px;
}

.section-block ul,
.section-block ol {
  margin-left: 40px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.section-block li {
  margin-bottom: 8px;
}

/* Liste compacte - moins d'espacement vertical */
.section-block ul.ulpack,
.section-block ol.olpack {
  margin-left: 40px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.section-block ul.ulpack li,
.section-block ol.olpack li {
  margin-bottom: 3px;
  line-height: 22px;
}

/* Images */
.section-block img {
  max-width: 100%;
  height: auto;
  margin: 25px 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  box-shadow: none;
  display: block;  
}

.section-block img.center {
  margin-left: auto;
  margin-right: auto;
}

.section-block img.small {
  width: 30%;
  max-width: 30%;
}

.section-block img.medium {
  width: 70%;
  max-width: 70%;
}

.section-block img.large {
  width: 100%;
  max-width: 100%;
}

/*=================================================================================================*/
/* Methodology overview */
/*=================================================================================================*/
.methodology-overview ol {
  counter-reset: step;
  margin-left: 0;
  padding-left: 0;
}

.methodology-overview > ol > li {
  list-style: none;
  margin-bottom: 20px;
  padding-left: 0;
  font-weight: 600;
}

.methodology-overview > ol > li::before {
  counter-increment: step;
  content: counter(step) ".  ";
  font-weight: bold;
  color: #1e1e1e;
}

.methodology-overview ul {
  margin-top: 8px;
  margin-left: 40px;
  list-style-type: disc;
}

.methodology-overview ul li {
  font-weight: normal;
  margin-bottom: 4px;
}

/*=================================================================================================*/
/* Tableau des ppts potentielles */
/*=================================================================================================*/
.toxicity-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}
.toxicity-table th,
.toxicity-table td {
  border: 1.5px solid #000;
  padding: 9px 12px;
  vertical-align: top;
  line-height: 1.4;
}
.toxicity-table th {
  text-align: left;
  font-weight: 600;
}

/*=================================================================================================*/
/* Layout tableau + camembert côte à côte */
/*=================================================================================================*/

.split-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin: 25px 0;
}

.split-left {
  flex: 0 0 45%;
}

.split-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Table des propriétés */
.property-table {
  border-collapse: collapse;
  width: 100%;
  line-height: 1.3;
  font-size: 14px;
}

.property-table th, 
.property-table td {
  border: 1px solid #000000;
  padding: 6px 10px;
  text-align: left;
  font-family: 'Georgia', serif;
}

.property-table th {
  background-color: #e8e8d0;
  font-weight: bold;
  font-size: 15px;
}

.property-table td:first-child {
  font-size: 13px;
}

.property-table td:last-child {
  text-align: center;
  font-weight: bold;
  font-size: 15px;
}

/* Iframe pour graphiques interactifs */
.interactive-camembert {
  width: 100%;
  height: 400px;
  border: none;
  overflow: hidden;
  display: block;
}

/*=================================================================================================*/
/* Tableau du clustering de propagation styles */
/*=================================================================================================*/
.propagation-cluster-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}
.propagation-cluster-table th,
.propagation-cluster-table td {
  border: 1.5px solid #000;
  padding: 8px 12px;
  vertical-align: top;
  line-height: 1.4;
}
.propagation-cluster-table th {
  text-align: left;
  font-weight: 600;
}
.cluster-name {
  font-weight: bold;
}

/*=================================================================================================*/
/* --- Notification boxes --- */
/*=================================================================================================*/
.box-note,
.box-remark,
.box-warning,
.box-error,
.box-success {
  padding: 0.625rem 0.9375rem 0.625rem 0.625rem;
  margin: 1.25rem 0.3125rem 1.25rem 0.3125rem;
  border: 1px solid #eee;
  border-left-width: 0.3125rem;
  border-radius: 0.3125rem 0.1875rem 0.1875rem 0.3125rem;
  line-height: 28px;
  color: #333;
  font-size: 17px;
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  text-align: justify;
  letter-spacing: 0.3px;
}

.box-note {
  background-color: #eeeeee;
  border-left-color: #b2b2b2;
}

.box-remark {
  background-color: #e6f0f3;
  border-left-color: #2980b9;
}

.box-warning {
  background-color: #ffecfb;
  border-left-color: #f10fa6;
}

.box-error {
  background-color: #f4dddb;
  border-left-color: #c0392b;
}

.box-success {
  background-color: #ddffdd;
  border-left-color: #48ca83;
}

/*=================================================================================================*/
/* Boxes dépliables */
/*=================================================================================================*/
.box-collapsible {
  position: relative;
  cursor: default;
}

.box-collapsible .box-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.box-collapsible .box-toggle {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s;
  color: #333;
  margin-top: 2px;
}

.box-collapsible .box-toggle:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.box-collapsible .box-toggle::before {
  content: '+';
}

.box-collapsible.expanded .box-toggle::before {
  content: '−';
}

.box-collapsible .box-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  margin-top: 0;
}

.box-collapsible.expanded .box-content {
  max-height: 2000px;
  margin-top: 15px;
  transition: max-height 0.5s ease-in;
}

.box-collapsible .box-content ul,
.box-collapsible .box-content ol {
  margin-left: 40px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.box-collapsible .box-content li {
  margin-bottom: 12px;
  line-height: 28px;
}

/*=================================================================================================*/
/* Carte interactive pour study cases */
/*=================================================================================================*/
.case-map-container {
  margin: 30px auto;
  text-align: center;
  position: relative;
  display: block;
}

.case-map-container img {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: none;
  margin: 0 auto;
}

/* Épingles sur la carte */
.map-pin {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #d32f2f;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: all 0.3s;
  z-index: 10;
}

.map-pin:hover {
  background-color: #ff5252;
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.6);
}

.map-pin.active {
  background-color: #f0e91c;
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(210, 204, 25, 0.8);
}

/* Étiquettes des épingles */
.pin-label {
  position: absolute;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Georgia', serif;
  font-weight: normal;
  color: #333;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 9;
  border: 2px solid #000;
  transform: translate(-50%, -100%);
}

/* Contenu des study cases */
.case-content {
  display: none;
  animation: fadeIn 0.5s ease-in;
  margin-top: 30px;
}

.case-content.active {
  display: block;
}

/* Sections communes (toujours visibles) */
.case-common-section {
  margin: 25px 0;
}

/* Sections spécifiques (changent selon sélection) */
.case-specific-content {
  display: none;
}

.case-specific-content.active {
  display: block;
  animation: fadeIn 0.5s ease-in;
}

/* Bouton retour à la carte */
.back-to-map-btn {
  display: block;
  margin: 40px auto 20px;
  padding: 15px 30px;
  background: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Georgia', serif;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.back-to-map-btn:hover {
  background: #34495e;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

.back-to-map-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.back-to-map-btn::before {
  content: '↑ ';
  font-size: 20px;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .split-container {
    flex-direction: column;
  }
  
  .split-left {
    flex: 1;
    width: 100%;
  }
}


/* Responsive */
@media (max-width: 1200px) {
  .content {
    padding-right: 20px;
    max-width: 900px;
  }
  
  .fixed-nav {
    position: relative;
    top: 0;
    right: 0;
    max-width: 100%;
    margin-bottom: 30px;
    transform: rotate(0deg);
  }
  
  .fixed-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }
  
  .section-block {
    padding: 35px 30px;
  }
  
  .section-block::before {
    left: 20px;
  }
  
  .section-block h1 {
    font-size: 32px;
  }
  
  .section-block h2 {
    font-size: 28px;
  }
}