/* ======= 📌 1️⃣ Mise en page générale ======= */

body {
    background: linear-gradient(to right, #c8c8f3, #70cdf1, #868383);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}

#pageTitleContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 20px auto;
}

#themeTitle {
    font-size: 2em;
    font-weight: bold;
    margin-top: 10px;
}

.titre-annee {
    text-align: center;
    font-size: 1.6em;
    margin: 30px 0 10px;
    color: #2c3e50;
}

.theme-list {
    text-align: center;
    font-size: 1.4em;
    font-weight: normal;
    color: #555;
    margin-bottom: 10px;
}

/* ======= 📌 2️⃣ Barre de recherche ======= */

.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px auto;
  text-align: center;
  max-width: 100%;
}

.search-container form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}




#searchInput,
#anneeInput {
    padding: 8px;
    border-radius: 5px;
    border: 2px solid #8A2BE2;
    width: 200px;
}

button {
    padding: 8px 12px;
    background-color: #8A2BE2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #9370DB;
}

/* ======= 📌 3️⃣ Grille des timbres ======= */

.stampCategory {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 950px;
  margin: 60px auto 0;
}


/* ======= 📌 4️⃣ Style Polaroid ======= */

.polaroid {
    width: 180px;
    min-height: auto;
    height: auto;   
    background-color: #f0f8ff;
    border: 4px solid #68075b;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.polaroid:hover {
    transform: rotate(1deg);
    box-shadow: 0 8px 16px rgba(112, 15, 223, 0.3);
    z-index: 10;
}

/* ======= 📌 5️⃣ Image du timbre ======= */

.polaroid img,
.timbre-img {
    display: block;
    margin: 0 auto;
    max-height: 100px;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.5s ease-in-out;
    cursor: url('../Images/divers/loupe.png'), auto;
}

.polaroid img:hover {
    transform: scale(1.2);
}

.image-placeholder {
    height: 100px;
    background-color: #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #999;
    margin-bottom: 8px;
}

/* ======= 📌 6️⃣ Informations du timbre ======= */

.nom-container {
    text-align: center;
    margin-bottom: 8px;
}

.nom-container .date {
    font-size: 1.4em;
    font-weight: bold;
    color: #68075b;
    margin-bottom: 4px;
}

.nom-container h5 {
    font-size: 0.85em;
    font-weight: normal;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.numero {
    font-size: 0.85em;
    font-style: italic;
    color: #555;
    margin-top: 6px;
}

/* ======= 📌 7️⃣ Statuts de collection ======= */

.etat-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.etat {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    color: #fff;
    text-align: center;
}

.etat.neuf {
    background-color: #4caf50;
}

.etat.obliteré {
    background-color: #f44336;
}

.etat.double {
    background-color: #2196f3;
}

.etat.recherche {
    background-color: #ff9800;
}

.etat.non-desire {
    background-color: #9e9e9e;
}

/* ======= 📌 8️⃣ Autres éléments ======= */

.centrer {
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
}

.arrow-container {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.arrow-link {
    color: black;
    font-size: 36px;
    margin: 10px 0;
}

.arrow-link:hover,
.arrow-link:active {
    color: black;
}

/* ======= 📌 9️⃣ Style du journal ======= */

.journal {
    text-align: justify;
    line-height: 1.6;
    font-size: 0.95em;
    color: #333;
    background-color: #fdfdfd;
    padding: 20px;
    margin: 30px auto;
    max-width: 800px;
    border-left: 4px solid #68075b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.journal p {
    margin-bottom: 1em;
}

blockquote {
    font-style: italic;
    text-align: center;
    padding: 10px 20px;
    border-left: 4px solid #222;
    color: #555;
    background-color: #f4f4f4;
    border-radius: 6px;
    margin: 20px 0;
}

.theme-list {
    text-align: center;
    font-size: 2.2em;
    font-weight: bold;
    color: #4B0082;
    margin: 60px 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-top: 60px;
}

.timbre-img {
  width: 100%;
  height: auto;
  max-height: 100px;
}

#anneeSelect {
  padding: 8px;
  border-radius: 5px;
  border: 2px solid #8A2BE2;
  width: 200px;
  background-color: white;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1em;
  color: #333;
}

.message-timbre {
  text-align: center;
  font-size: 0.95em;
  margin-top: 10px;
  font-weight: bold;
  color: #b30000; /* rouge doux */
}
