/* ===================================================
   PAGE archives — STYLE COMPLET VIEUX JOURNAL
================================================== */

/* Conteneur principal */
.content-archives{
  max-width: 1000px;
  margin: 2.5rem auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.04));
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  border-radius: 8px;
}

.fond-archives {
  background-image: url("../images/fonds/fond_archives.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #fff;
}

/* TITRE PRINCIPAL */
.hero h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.hero p {
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* -------------------------------------------------
   SECTION 3 COLONNES : GAZETTES + BOUTIQUE
------------------------------------------------- */
.archives-articles {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Colonnes */
.colonne {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* -------------------------------------------------
   BLOC GAZETTE — page entière
------------------------------------------------- */
.gazette-bloc {
  background: #f4e7c6; /* papier jauni */
  color: #2a1f0f;
  padding: 2rem 1.8rem;
  border: 1px solid #d6c7a8;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  font-family: "Georgia", "Times New Roman", serif;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Bordures déchirées simulées en haut et bas */
.gazette-bloc::before,
.gazette-bloc::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 8px;
  left: 0;
  background: repeating-linear-gradient(
    to right,
    #d6c7a8 0 4px,
    transparent 4px 8px
  );
  pointer-events: none;
}

.gazette-bloc::before { top: 0; }
.gazette-bloc::after { bottom: 0; }

/* TITRE DE GAZETTE */
.gazette-bloc h2 {
  font-family: "IM Fell English SC", "Georgia", serif;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.1rem;
  color: #1a0f05;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  letter-spacing: 1px;
  border-bottom: 2px solid #764c24;
  padding-bottom: 0.3rem;
}

/* Articles à l'intérieur du bloc */
.article-gazette {
  background: transparent; /* plus besoin de couleur individuelle */
  color: #2a1f0f;
  padding: 0;
  border: none;
  box-shadow: none;
}

.article-gazette h3 {
  font-family: "IM Fell English", serif;
  font-size: 1.4rem;
  text-align: left;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid #764c24;
  padding-bottom: 0.2rem;
}

.article-gazette p {
  text-align: justify;
  font-size: 1rem;
  margin: 0.4rem 0;
  line-height: 1.55;
}

.article-gazette p + p {
  text-indent: 1.2rem;
}

/* -------------------------------------------------
   BOUTIQUE ICÔNE
------------------------------------------------- */
.colonne.centrale {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* -------------------------------------------------
   ENSEIGNE DE BOUTIQUE ANCIENNE
------------------------------------------------- */
.colonne.centrale h3 {
  color: #7b2e0f; /* brun ancien */
  text-align: center;
  margin-bottom: 0.1rem;
  font-family: "IM Fell English SC", Georgia, serif;
  
  /* Fond style bois ancien */
  background: linear-gradient(145deg, #f0e1c6, #d4b483);
  background-clip: padding-box;
  
  padding: 0.5rem 1rem;
  
  /* Bordure type métal ancien */
  border: 2px solid #7b2e0f;
  border-radius: 4px;
  
  /* Ombre pour relief */
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3) inset, 1px 1px 4px rgba(0,0,0,0.4);
  display: inline-block;
  
  /* Texture subtile */
  position: relative;
}

/* Flèche vers le bas sous le titre */
.colonne.centrale h3::after {
  content: "▼"; /* flèche vers le bas */
  display: block;
  font-size: 1.8rem;
  color: #7b2e0f;
  text-align: center;
  margin-top: 0.2rem;
  
  /* léger décalage pour donner l’impression de bois gravé */
  text-shadow: 1px 1px 0 #d4b483, -1px -1px 0 #d4b483;
}

.boutique-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 225px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.boutique-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.boutique-icon:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}

/* =========================
   MOBILE MODE
========================= */
.mobile-view {
  display: none;
}

.desktop-view {
  display: grid;
}

/* =========================
   BOUTONS MOBILE
========================= */

.archives-actions {
  text-align: center;
}

.archive-btn {
  background: #f4e7c6;
  border: 2px solid #7b2e0f;
  padding: 1rem;
  font-family: Georgia, serif;
  cursor: pointer;
}

.archive-btn.central {
  background: #2a1f0f;
  color: white;
}

/* =========================
   OVERLAY
========================= */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay-content {
  background: #f4e7c6;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 8px;
}

.hidden {
  display: none;
}

.close-overlay {
  float: right;
  cursor: pointer;
  font-size: 1.5rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .desktop-view {
    display: none;
  }
  
  .content-archives {
    margin: 0;        /* 🔥 supprime le gros vide haut */
    padding: 0rem;    /* réduit respiration */
  }
}

/* =========================
   ARCHIVES ICONES
========================= */
.archives-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;

  justify-items: center;
  align-items: center;

  width: 100%;
  padding: 2rem 0;
}

/* ❌ IMPORTANT : ce n'est PAS un grid */
.archive-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: #f4e7c6;
  cursor: pointer;
}

.archive-icon img {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.archive-icon span {
  margin-top: 0.5rem;
  font-family: "IM Fell English SC", serif;
  font-size: 1rem;
  text-align: center;
}

.archive-icon:hover img {
  transform: scale(1.08);
  filter: brightness(1.2);
}

/* =========================
   MOBILE PORTRAIT
========================= */
@media (max-width: 900px) and (orientation: portrait) {
  .archives-icons {
    grid-template-columns: 1fr;
    gap: 0rem;
	
	align-content: center; /* 🔥 IMPORTANT */
  }

  .archives-actions {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .archive-icon img {
    width: 150px;
  }
}

/* =========================
   MOBILE PAYSAGE
========================= */
@media (max-width: 900px) and (orientation: landscape) {
  .archives-icons {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
	
	align-content: center; /* 🔥 IMPORTANT */
  }

  .archives-actions {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .archive-icon img {
    width: 160px;
  }
}