html { font-size: 16px; }

body{
  margin:0;
  padding:12px;
  font-family: Verdana, Arial, sans-serif;
  line-height:1.6;
}

/* Images & médias : neutralise aussi les width="800" */
img, video, iframe{
  max-width:100% !important;
  height:auto !important;
}

/* Liens / URL longues */
a{ overflow-wrap:anywhere; }

/* Petites marges sur images centrées (tes <center><img>...) */
center img{
  display:block;
  margin: 8px auto;
}

/* Tables : on évite les effets “cassés” */
table{ border-collapse: collapse; }

/* -------- Mobile : casser les colonnes “1999” -------- */
@media (max-width: 860px){

  /* Tables fluides (tes width=800) */
  table{
    width:100% !important;
    max-width:100% !important;
  }
  table[width], td[width], th[width]{
    width:auto !important;
  }
  td, th{ width:auto !important; }

  /* Décolonnage des align left/right sur mobile */
  img[align="left"], img[align="right"]{
    float:none !important;
    display:block;
    margin: 8px auto !important;
  }

  table[align="right"], table[align="left"]{
    float:none !important;
    margin: 12px auto !important;
  }
}
/* ===== Entête style carnet / journal ===== */
#headerpage{
  width: 100% !important;
  max-width: 900px;
  margin: 10px auto 18px auto !important;

  background: #fbf7ef;              /* papier */
  border: 1px solid #eadfcf;         /* bordure douce */
  border-left: 6px solid #94AFED;    /* rappel de ton bleu */
  border-radius: 10px;

  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

/* ===== Entête carnet / journal (version propre) ===== */
#headerpage{
  max-width: 900px;
  margin: 10px auto 18px auto;
  padding: 10px 12px;

  background: #fbf7ef;
  border: 1px solid #eadfcf;
  border-left: 6px solid #94AFED;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#headerpage .hp-date{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  color: #6f6a60;
}

#headerpage .hp-right{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Icônes alignées + taille homogène */
#headerpage .hp-right img{
  height: 20px;
  width: auto;
  vertical-align: middle;
}

/* Lien Retour index */
#headerpage .hp-back{
  color: #3d3a33;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* ===== headerpage avec bannière ===== */

.hp-title-image {
  position: relative;
}

.hp-image {
  width: 100%;
  height: auto;
  display: block;
}

.hp-title-image .hp-date {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.8em;
}


/* Mobile : empiler proprement */
@media (max-width: 700px){
  #headerpage{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  #headerpage .hp-right{
    justify-content: center;
  }
}

/* ===== Titre d’article (couleur distincte de l’entête) ===== */
#pagetitle{
  background: transparent !important;
  padding: 14px 12px !important;
}

#pagetitle center{
  display: block;
  max-width: 900px;
  margin: 0 auto 14px auto;
  padding: 18px 16px;

  background: #f2f2f2;                 /* papier sable */
  border: 1px solid #e3dacb;
  border-left: 8px solid #bfa89a;      /* différent du bleu */
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(0,0,0,.06);
}

/* Titre */
#pagetitle font{
  font-size: 24px !important;
  letter-spacing: 0.6px;
  color: #2f2f2f !important;
}



/* ===== Corriger l’espace entre photo et légende ===== */

/* Dans tes légendes: <center><i><img><br>Texte</i></center> */
center i br{
  display: none;
}

/* Et on garde l'image bien collée à la légende */
center i img{
  display: block;
  margin: 0 auto 2px auto !important;
}

/* (Optionnel) style de légende */
center i{
  display: block;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.3;
}


table.geo{
  width: 260px;
  margin: 8px 0 16px 16px;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  float: right;
  border-collapse: separate;
  border-spacing: 0;
}

table.geo td{ padding: 10px 12px; font-size: 0.9rem; color:#333; }

table.geo td[bgcolor]{
  background:#94AFED !important;
  font-weight: 700;
  text-align:center;
  padding: 7px 10px;
  border-radius: 10px 10px 0 0;
}

table.geo i{ font-style: normal; font-weight: 700; }

@media (max-width: 860px){
  table.geo{ float:none; width:100% !important; margin: 16px auto; }
}

/* Plus d’images dans l’encart */
table.geo img{ display:none !important; }

/* On donne de l’air et un aspect fiche */
table.geo{
  font-size: 0.9rem;
}

table.geo td{
  line-height: 1.5;
}

/* Labels (Pays / Département / Commune) en ton discret */
table.geo td{
  color: #555;
}

/* Valeurs mises en avant */
table.geo i{
  font-style: normal;
  font-weight: 700;
  color: #222;
}

/* ===== Métadonnée date ===== */
.meta{
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 10px;
}

/* ===== Encadré géographique (nouveaux articles) ===== */
.geo{
  max-width: 260px;
  float: right;
  margin: 8px 0 16px 16px;
  padding: 10px 12px;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

.geo-title{
  font-weight: 700;
  margin-bottom: 6px;
}

.geo-row{
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.geo-row span{
  color: #555;
}

/* ===== Photos + légendes ===== */
figure.photo{
  margin: 16px auto;
  text-align: center;
}

figure.photo img{
  max-width: 100%;
  height: auto;
}

figure.photo figcaption{
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
  line-height: 1.3;
  font-style: italic; 
}

/* ===== Mobile ===== */
@media (max-width: 860px){
  .geo{
    float: none;
    max-width: 100%;
    margin: 16px auto;
  }
}

/* ===== Suggestions fin d’article ===== */
.suggestions{
  max-width: 900px;
  margin: 24px auto 10px auto;
  padding: 14px 14px;
  background: #f2f2f2;              /* graphite léger */
  border: 1px solid #dedede;
  border-radius: 14px;
}

.suggestions h3{
  margin: 0 0 10px 0;
  font-size: 1rem;
  letter-spacing: .5px;
}

.sugg-grid{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sugg-card{
  flex: 1 1 200px;
  min-width: 200px;
  max-width: 260px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 10px;
  text-decoration: none;
  color: #222;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.sugg-card:hover{
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
}

.sugg-card img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-bottom: 8px;
}

.sugg-title{
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.25;
}

@media (max-width: 700px){
  .sugg-card{ max-width: none; }
}

hr {
  border: none;
  margin: 4rem auto;
  position: relative;
  width: 60%;
  height: 1px;
  background: rgba(0,0,0,0.2);
}

hr::after {
  content: "\25C6";
  position: absolute;
  left: 50%;
  top: -0.65em;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 0.5em;
  color: rgba(0,0,0,0.5);
}


