/* 🌍 Mise en page globale */
body {
    font-family: Arial, sans-serif;
    background: #F5E1FD;   
    color: #4B0082;
    margin: 0;
    padding: 20px;
    text-align: center;
}

/* 🏗️ Conteneurs des sections */
#result, #archivesContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 12px;
}

/* 🏗️ Conteneur du formulaire aligné */
.selection-container {
    display: flex;
    align-items: center; /* Aligner les éléments sur la même ligne */
    justify-content: center;
    gap: 15px; /* Espacement entre les éléments */
    margin: 20px auto;
    width: 60%; /* Ajuste la largeur */
    padding: 10px;
    background: #E6CCFF; /* Fond violet clair */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(75, 0, 130, 0.1);
}

/* 🔘 Sélecteurs */
select {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 2px solid #6A0DAD;
    background: white;
    color: #4B0082;
}

/* 🔘 Bouton */
button {
    padding: 10px;
    background: #6A0DAD;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
button:hover {
    background: #4B0082;
}


/* 🖼️ Polaroids des timbres */
.polaroid {
    width: 250px;
    height: 400px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    
}

.polaroid:hover {
    transform: scale(1.05);
}

/* 📷 Images des timbres */
.timbre-image {
    width: 180px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin: 10px 0;
}

/* 📜 Informations des timbres */
.titre-timbre {
    font-size: 10px;
    font-weight: bold;
    color: #007BFF;
}

/* 🔍 Fiche détaillée d'un timbre */
.fiche-timbre {
    max-width: 600px;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    text-align: center;
}

.fiche-timbre h2 {
    margin-bottom: 20px;
    color: #333;
}

.fiche-timbre img {
    width: 200px;
    height: 200px;
    object-fit:contain;
    border-radius: 10px;
    margin-bottom: 10px;
}

.fiche-timbre p {
    font-size: 12px;
}

/* 🌍 Conteneur des archives */
.continent-container {
    width: 100%;
    margin-bottom: 30px;
    padding: 10px;
}

/* 📍 Titres des sections */
h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* 🔘 Boutons */
.btn-link {
    display: block;
    padding: 10px;
    background: #007BFF;
    color: white;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.btn-link:hover {
    background: #0056b3;
}


/* 📍 Conteneur des timbres */
.stamps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
    justify-content: center;
    gap: 30px;
    overflow: hidden; /* Désactive le défilement */
    height: auto; /* Ajustez la hauteur selon vos besoins */
    max-height: 500px; /* Définissez une hauteur maximale si nécessaire */
    margin: 20px auto; /* Centre le conteneur */
    width: 100%; /* Ajustez la largeur selon vos besoins */
    
}

/* 📜 Fiches compactes */
.compact-polaroid {
    width: 220px;
    height: 300px;
    padding: 30px;
    background: rgb(245, 226, 250);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease-in-out; 
    padding-top: 25px;
    margin-top: 25px;
    position:static;      
}

.compact-polaroid:hover {
    transform: scale(1.05);
}

/* 🖼️ Images réduites */
.compact-polaroid img {
    width: 140px;
    height: 140px;
    object-fit:contain;
    border-radius: 8px;
}

/* 📍 Conteneur de chaque pays */
.country-section {
    text-align: center;
    margin-bottom: 30px;
}

/* 📍 Nom du pays centré */
.titre-pays {
    font-size: 28px;
    font-weight: bold;
    color: #6A0DAD;
    text-transform: uppercase;
    border-bottom: 3px solid #6A0DAD;
    padding-bottom: 10px;
    display: inline-block;
    margin: 0 auto;
}

/* 📍 Conteneur des pays */
.countries-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    position:static;
}

/* Conteneur pour positionner le calendrier à droite */
.calendar-wrapper {
    position: absolute;
    right: 20px; /* Ajustez cette valeur pour positionner le calendrier à droite */
    top: 550px; /* Ajustez cette valeur pour positionner le calendrier verticalement */
    width: 260px; /* Largeur du calendrier */
}

/* Styles pour le calendrier */
#calendar-container {
    width: 100%;
    background: #e6d5f8;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #4a90e2;
    padding: 10px;
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#mois-actuel {
    font-size: 25px; /* Ajustez cette valeur pour réduire la taille de la police */
    margin: 0; /* Assurez-vous qu'il n'y a pas de marges indésirables */
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.day {
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 2px;
    background-color: #f0e6ff;
    font-size: 12px;
}

.day.empty-day {
    background-color: transparent;
    border: none;
}

.day.has-stamps {
    background-color: #b388ff;
}

.selection-container {
    text-align: center;
}



/* 🎯 Boutons de navigation */
.nav-btn {
    background: #0073e6;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: #005bb5;
}







.timbre-centrer {
    display: block;
    margin: auto; /* Centre horizontalement */
    text-align: center;
    max-width: 100%;
}

.stamps-container {
    display: flex;
    justify-content: center; /* Centre les timbres horizontalement */
    flex-wrap: wrap;
    gap: 20px; /* Espacement entre les timbres */
}

.journal {
    text-align: justify;
    line-height: 1.6;
}


.compact-popup {
    width: 400px !important; /* Ajuste la largeur de l'alerte */
    padding: 10px; /* Réduit l'espace intérieur */
}

.compact-popup img {
    max-width: 100%;
    height: auto;
}

.container {
    text-align: center;
    margin: 10px;
    margin-top: 20px;
    max-width: 800px;
    padding: 20px;
    background-color: rgb(241, 218, 218);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 1.5);
    margin: 50px auto;
}

.stamps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.clear-row {
    flex-basis: 100%;
    height: 10px;
}

.timbre-header {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #444;
    margin-bottom: 5px;
}

.arrow-container {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.arrow-link {
    color: black;
    font-size: 36px;
    margin: 10px 0;
    transition: none;
}

.arrow-link:hover {
    color: black;
}

.arrow-link:active {
    color: black;
}
