/* Réinitialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: #222;
    color: white;
    padding: 20px;
    text-align: center;
}

h1 {
    margin-bottom: 10px;
}

/* Filtre de recherche */
.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px;
}

.filters input, .filters select, .filters button {
    padding: 8px;
    border: none;
    font-size: 1rem;
}

.filters button, 
#popup-save, 
#popup-close {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.filters button:hover, 
#popup-save:hover, 
#popup-close:hover {
    transform: scale(1.05);
}

.filters button {
    background: #ff5722;
    color: white;
    cursor: pointer;
}

.filters button:disabled {
    background: gray;
    cursor: not-allowed;
}

/* Grille des volcans */
.volcan-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.volcan-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.volcan-card h3 {
    margin-bottom: 10px;
}

.volcan-card p {
    font-size: 0.9rem;
    color: #555;
}

.title {
    font-size: 6rem;
    color: rgb(255, 100, 28);
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Style de la popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    width: 300px;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.popup-content label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.popup-content input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.popup-content button {
    margin: 5px;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#popup-save {
    background-color: #28a745;
    color: white;
}

#popup-close {
    background-color: #dc3545;
    color: white;
}

/* Boutons de gestion */
.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modify-btn {
    background-color: #e07b00;
    color: white;
    border: 2px solid #e07b00;
}

.modify-btn:hover {
    background-color: #e07b00;
    border-color: #e07b00;
    transform: translateY(-2px);
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    border: 2px solid #c82333;
}

.delete-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(1px);
}

/* Bouton "Ajouter un volcan" */
#add-volcan {
    background-color: #28a745; /* Vert pour représenter l'action d'ajouter */
    color: white;
    font-size: 1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none; /* Il sera masqué au départ */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Effet au survol */
#add-volcan:hover {
    background-color: #218838; /* Changer de couleur lorsque survolé */
    transform: scale(1.05); /* Légère augmentation de la taille */
}

#add-volcan:disabled {
    background-color: gray; /* Couleur grise quand désactivé */
    cursor: not-allowed; /* Empêcher l'interaction */
}
