/* --- CONFIGURATION GÉNÉRALE --- */
body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; /* Police moderne */
  background-color: #f4f5f7; /* Fond de page gris très léger pour le contraste */
  margin: 0;
  padding: 20px;
  color: #333;
}

/* --- LE BLOC CENTRAL (1000px) --- */
/* On applique le style sur une "div" imaginaire ou directement sur le contenu */
/* Pour que ça marche sans toucher ton HTML, on va styler une div wrapper si tu en as une, 
   sinon on applique au body mais avec une astuce de centrage */

.conteneur-principal {
  /* Cette astuce centre le contenu si tu n'as pas de div conteneur */
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  background-color: #fff; /* Fond blanc du papier */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Petite ombre portée "classe" */
  padding: 40px; /* Espace intérieur */
  box-sizing: border-box; /* Gère bien les largeurs */
  display: block;
}

/* --- TYPOGRAPHIE & COULEURS (Style La Poste) --- */

/* Le titre principal en Orange */
h2 {
  color: #FF5E00; /* Orange vif fidèle à l'image */
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 30px;
  border-bottom: 2px solid #FF5E00; /* Petit soulignement déco */
  padding-bottom: 10px;
}

/* Les sous-titres en Bleu Canard */
h3 {
  color: #007C89; /* Bleu canard spécifique */
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 25px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

/* Textes introductifs */
p {
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

/* Mise en valeur des liens et textes importants */
a {
  color: #0056b3;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #FF5E00;
  text-decoration: underline;
}

strong {
  color: #222;
}

/* --- LISTES À PUCES STYLISÉES --- */
ul {
  list-style: none; /* On enlève les ronds moches */
  padding-left: 0;
}

ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #444;
}

/* La petite flèche orange personnalisée */
ul li::before {
  content: "▶";
  color: #FF5E00;
  font-size: 0.7rem;
  position: absolute;
  left: 0;
  top: 6px;
}

/* --- TABLEAUX MODERNES --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  margin-bottom: 30px;
  font-size: 0.9rem;
  background-color: white;
  border: 1px solid #e0e0e0;
}

/* En-tête du tableau */
thead tr {
  background-color: #007C89; /* Fond Bleu Canard */
  color: white;
}

thead td {
  padding: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255,255,255,0.3); /* Séparateur discret */
}

/* Corps du tableau */
tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

/* Zébrure (une ligne sur deux grise) */
tbody tr:nth-child(even) {
  background-color: #f9fbfb;
}

/* Effet au survol de la ligne */
tbody tr:hover {
  background-color: #f0f8ff;
}

/* La colonne date en gras et centrée si besoin */
tbody td:last-child {
  font-weight: 700;
  color: #333;
  white-space: nowrap; /* Empêche la date de se couper en deux lignes */
}

/* --- RESPONSIVE MOBILE (La méthode "Pro") --- */
@media screen and (max-width: 1024px) {
  /* Ajustement pour tablette/mobile */
  body > * {
    width: 100%;
    margin: 10px auto;
    padding: 15px; /* Moins de marge interne sur mobile */
  }

  /* SOLUTION TABLEAU : SCROLL HORIZONTAL */
  /* C'est la méthode la plus propre pour ne pas casser la mise en page */
  table {
    display: block;      /* Transforme le tableau en bloc */
    overflow-x: auto;    /* Active le scroll horizontal */
    white-space: nowrap; /* Force le contenu à rester sur une ligne */
    border: 0;
  }
  
  /* On ajoute une petite ombre pour indiquer qu'on peut scroller */
  table::-webkit-scrollbar {
    height: 6px;
  }
  table::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }
}

/* Style pour l'image en haut à droite */
.img-top-right {
  float: right;           /* C'est ça qui met l'image à droite */
  margin-left: 30px;      /* Ajoute de l'espace entre le texte et l'image */
  margin-bottom: 20px;    /* Un peu d'espace en bas */
  max-width: 450px;       /* Largeur max (ajuste selon tes besoins) */
  height: auto;           /* Garde les proportions de l'image */
  border-radius: 4px;     /* Optionnel : arrondit un peu les coins */
}

/* IMPORTANT : Gestion pour mobile (Smartphone) */
/* Sur petit écran, on annule l'effet droite pour que l'image passe au-dessus ou en-dessous */
@media screen and (max-width: 768px) {
  .img-top-right {
    float: none;          /* Annule l'alignement à droite */
    display: block;       /* L'image prend sa propre ligne */
    margin: 0 auto 20px;  /* Centre l'image avec une marge en bas */
    width: 100%;          /* L'image prend toute la largeur */
    max-width: 100%;
  }
}