/* ==========================================================================
   1. FONDATIONS ET CONFIGURATION GÉNÉRALE
   ========================================================================== */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body { 
  font-family: Georgia, serif; 
  font-variant-numeric: lining-nums proportional-nums; 
  line-height: 1.4; 
  color: #333; 
  background: #cccccc; 
}

.nombres {
  font-variant-numeric: lining-nums tabular-nums;
}

.base-zone { 
  max-width: 1200px; 
  margin: 0 auto; 
  background: #eafaff; 
  padding: 20px 0; 
}

.page-container { 
  max-width: 800px; 
  margin: 0 auto; 
  background: #ffffff; 
  border: 1px solid #ebd7ec; 
}

/* ==========================================================================
   2. EN-TÊTE DU SITE (HEADER)
   ========================================================================== */
.site-header { 
  text-align: center; 
  margin-bottom: 20px; 
  padding-bottom: 15px; 
  border-bottom: 4px solid #808080; 
}

.site-header h1 { 
  font-size: 2.2rem; 
  margin-bottom: 5px; 
} 

.site-header p,
.site-header-subtitle { 
  color: #666; 
  font-size: clamp(0.85rem, 2vw, 1.05rem); 
  margin-top: 5px; 
  margin-bottom: 0; 
}

/* ==========================================================================
   3. STRUCTURE DE L’ARTICLE ET DES PARAGRAPHES
   ========================================================================== */
.article-container { 
  max-width: 750px; 
  margin: 0 auto 10px auto; 
  background: #f8f9fa; 
  padding: 15px; 
}

.article-title { 
  font-size: clamp(1.8rem, 5vw, 2.8rem); 
  margin-bottom: 10px; 
  line-height: 1.2; 
}

.article-container h2 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  text-align: center;
  margin-bottom: 15px;
}

.para, 
.para-aparte {
  text-align: justify;
  max-width: 66ch; 
  margin-left: auto;     
  margin-right: auto;    
}

.para {
  font-size: clamp(0.95rem, 1vw + 0.5rem, 1.1rem);
  line-height: 1.5; 
}

.para-aparte {
  font-size: clamp(0.95rem, 1vw + 0.5rem, 1rem);
  line-height: 1.4;      
  margin-bottom: 10px;
}

.para + .para {
  margin-top: 1.2em; 
}

.meta-infos {
  display: flex;
  justify-content: space-between;
  font-size: 0.85em;
  margin-bottom: 5px;
}

.title-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
  width: 100%;
  background: #ffffff;
}

.title-side-img {
  flex: 1;
  max-width: 120px;
}

.title-side-img img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-left { text-align: left; margin: 5px 0 5px 16px; }
.img-right { text-align: right; margin: 5px 16px 5px 0; }

.title-center-text {
  flex: 2;
  text-align: center;
}

.title-center-text h1.article-title {
  margin: 0;
  color: #cc0000;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  word-wrap: break-word;
  font-family: Georgia, serif;
}

.article-subtitle-text {
  font-family: Georgia, serif;
  color: #333333;
  font-size: 1.3rem;
  margin-top: 25px;
  margin-bottom: 10px;
}

.article-list {
  margin: 15px 0 15px 15px; 
}

.article-list li {
  margin-bottom: 10px;
}

/* ==========================================================================
   4. BOUTONS ET ACTIONS (PDF, FACEBOOK)
   ========================================================================== */
.actions-article {
  display: flex;
  justify-content: space-between;
  margin-top: 1px;
  padding-top: 1px;
}

.btn-action {
  font-size: 0.9em;
  color: #0066cc;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 5px 0;
  margin-bottom: 20px;
}

.btn-action:hover {
  text-decoration: underline;
  color: #004499;
}

/* ==========================================================================
   5. ENCADRÉS SPÉCIAUX (APARTÉS)
   ========================================================================== */
.aparte-bonhomme h4, 
.aparte-sombre h4, 
.aparte-commentaire h4 {
  color: #c53030;
  margin-top: 0;
  text-transform: uppercase;
  font-size: 0.90rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.aparte-bonhomme h5, 
.aparte-sombre h5, 
.aparte-commentaire h5 {
  font-size: 1.0rem;   
  line-height: 1.3;     
  margin-bottom: 8px; 
}

.aparte-bonhomme,
.aparte-sombre,
.aparte-commentaire {
  padding: 10px;
  margin: 10px 0;
  border-left: 5px solid;
  border-radius: 0 8px 8px 0;
}

.aparte-bonhomme { background-color: #e8f8e8; border-left-color: #309d30; }
.aparte-sombre   { background-color: #f8e8e8; border-left-color: #e53e3e; }
.aparte-commentaire { background-color: #d9e6f3; border-left-color: #30679d; }

.text-alert { color: #cc0000; }

.text-alert-large {
  font-family: Georgia, serif;
  color: #cc0000;
  font-size: 1.4rem;
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 15px;
}

/* ==========================================================================
   6. IMAGES ET ALIGNEMENTS
   ========================================================================== */
.wrap-img  { float: right; margin: 5px 0 5px 16px; }
.wrap-imgR { float: left; margin: 5px 16px 5px 0; }

/* ==========================================================================
   7. GRILLE DES AUTRES ARTICLES (BAS DE PAGE)
   ========================================================================== */
.articles-grid, 
.articles-grid1 {
  display: grid;
  gap: 20px;
  margin-top: 15px;
  margin-bottom: 30px;
}
.articles-grid  { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.articles-grid1 { grid-template-columns: 1fr; }

.article-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card {
  background: #ffffff;
  padding: 15px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card-link:hover .article-card { 
  transform: translateY(-4px); 
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  border-color: #b0b0b0;
}

.card-content-wrapper {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-text {
  flex: 1; 
  text-align: left;
}

.article-card h3 { 
  margin-top: 0; 
  font-size: 1.2rem;
  color: #4b0082; 
  margin-bottom: 6px;
  font-family: Georgia, serif;
  line-height: 1.4;
}

.article-card p { 
  color: black; 
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.card-thumb {
  width: 150px;
  height: 200px;
  object-fit: cover; 
  border-radius: 4px;
  flex-shrink: 0; 
}

.card-read-more { 
  display: inline-block; 
  color: #0066cc; 
  font-size: 0.85rem;
  font-weight: bold; 
  text-align: left;
}

.article-card-link:hover .card-read-more {
  text-decoration: underline;
}

.footer { 
  margin-top: 40px; 
  text-align: center; 
  font-size: 0.85rem; 
  color: #666; 
  padding-top: 20px; 
  border-top: 1px solid #ccc; 
}

/* ==========================================================================
   8. STYLE DES TABLEAUX (AFFICHAGE ORDINATEUR PAR DÉFAUT)
   ========================================================================== */
.table-historique-container {
  width: 100%;
  margin: 20px 0;
}

@media screen and (min-width: 769px), print {
  /* Socle commun pour tous les tableaux sur PC */
  .table-historique, 
  .table-regimes {
    display: table !important;
    width: 100%;
    max-width: 750px;
    border-collapse: collapse !important;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
    border: 1px solid #ebd7ec !important;
    margin: 0 auto 20px auto;
    background-color: #ffffff !important;
  }

  .table-historique tr, 
  .table-regimes tr {
    display: table-row !important;
  }

  .table-historique th, .table-historique td,
  .table-regimes th, .table-regimes td {
    display: table-cell !important;
    border: 1px solid #ebd7ec !important;
  }

  .table-historique th, .table-historique td { padding: 12px 10px !important; text-align: left !important; }
  .table-regimes th, .table-regimes td { padding: 15px 10px !important; }

  /* En-têtes communes (Bleu acier / Violet) */
  .table-historique thead th, .table-historique th,
  .table-regimes thead th {
    font-weight: bold;
    background-color: #eafaff !important;  
    color: #4b0082 !important;             
    border-bottom: 3px solid #808080 !important;
    text-align: left;
  }

  /* Première colonne commune (Titres de lignes / Critères) */
  .table-historique tbody td:first-child,
  .table-historique td.critere-col,
  .table-regimes tbody td:first-child {
    font-weight: bold;
    background-color: #eafaff !important;    
    color: #333 !important;
  }

  /* Largeurs & Alignements spécifiques - Tableau Historique */
  .table-historique td:first-child { width: 22%; }
  .table-historique td:nth-child(2), .table-historique td:nth-child(3) { width: 39%; }

  /* Largeurs & Alignements spécifiques - Tableau Régimes */
  .table-regimes th.centre, .table-regimes td.centre { text-align: center !important; }
  .table-regimes th:nth-child(1), .table-regimes td:nth-child(1) { width: 25%; }
  .table-regimes th:nth-child(2), .table-regimes td:nth-child(2) { width: 15%; }
  .table-regimes th:nth-child(3), .table-regimes td:nth-child(3) { width: 20%; }
  .table-regimes th:nth-child(4), .table-regimes td:nth-child(4) { width: 40%; }

  .row-demo-complete td     { color: #006633 !important; }
  .row-demo-defaillante td  { color: #cc6600 !important; }
  .row-regime-autoritaire td { color: #cc0000 !important; }
  .table-regimes td.pays-col { color: #333333 !important; }

  .liste-pays {
    white-space: pre-line;
    display: block;
  }
}

/* ==========================================================================
   9. RESPONSIVE DESIGN (AFFICHAGE MOBILE UNIQUEMENT < 768px)
   ========================================================================= */
@media screen and (max-width: 768px) {
  html, body {
