*   {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
    body {
        height: auto;
        margin: 0;
        display:flex; 
        flex-direction: row;
        justify-content:center;
        align-items:center;
        color: rgb(67, 7, 7);
        font-family: Geneva, Tahoma, sans-serif;
        background-image: linear-gradient(120deg, #ffc29c,#ffc29c);
        gap: 25px; 
    } 
    .body-bg {
        filter: blur(0px);
        background-image: url('bois.png'); 
        background-size: cover; /* Ajuste l'image pour couvrir toute la page */
        background-position: center;
        background-attachment: fixed; /* Permet au fond de rester fixe en scrollant */
        position: fixed; /* Fixe l'élément sur toute la page */
        top: 0;
        left: 0;
        width: 100vw; /* 100% de la largeur de la fenêtre */
        height: 100vh; /* 100% de la hauteur de la fenêtre */
        opacity: 0.45; 
        z-index: -4; 
    }
    
    #wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        padding: 30px;
        background-color: rgb(255, 255, 255);
        border: 1px solid rgb(67, 7, 7);
        box-shadow: 2px 2px 8px rgb(67, 7, 7);
        height: 400px;
        min-width: 250px;
        width: fit-content;
        position: relative;
        z-index: -2;
    }
    .wrapper-bg {
        background-image: url('fleur.png'); 
        background-size: cover;
        background-position: center;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%; 
        height: 100%;
        opacity: 0.55; 
        border-radius: 10px; 
        z-index: -1; 
    }
    #wrapper::before,
    #wrapper::after {
        content: ""; 
        position: absolute;
        width: 85px; 
        height: 85px;
        background-image: url('feuille.png'); 
        background-size: cover;
    }
    #wrapper::before {
        top: -38px;
        right: 84%;
        transform: scaleX(-1);
    }
    #wrapper::after {
        top: -38px;
        left: 84%;
    }
    .wrapper-corner {
        content: "";
        position: absolute;
        width: 85px;
        height: 85px;
        background-image: url('feuille.png');
        background-size: cover;
    }
    .wrapper-bottom-left {
        bottom: -38px;
        right: 84%;
        transform: scaleX(-1) scaleY(-1);
    }
    .wrapper-bottom-right {
        bottom: -38px;
        left: 84%;
        transform: scaleY(-1);
    }

    .countvalue {
        text-align:center;
        font-size: 35px;
        margin-bottom: 20px;
        width: max-content;
        text-shadow: 3px 3px 7px rgba(255, 153, 0, 0.919);
    }
    
        /* MENU DEROULANT */
.menu {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 100;
}

.menu-button {
    position: relative;
    background-color: rgb(67, 7, 7);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.menu-list {
    list-style: none;
    background: white;
    padding: 10px;
    position: absolute;
    top: 40px;
    left: 0;
    width: 150px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    display: none; /* Caché par défaut */
}

.menu-list li {
    padding: 8px 0;
    text-align: center;
}

.menu-list a {
    text-decoration: none;
    color: rgb(67, 7, 7);
    display: block;
    font-size: 14px;
}

.menu-list a:hover {
    background: rgba(67, 7, 7, 0.1);
}

/* Afficher le menu lorsque la classe active est ajoutée */
.menu-list.active {
    display: block;
}

.hidden {
    display: none;
}

.counter-container {
    text-align: center;
    font-size: 20px;
    color: white;
    background: url('background.jpg') center/cover; /* Remplace par ton image de fond */
    padding: 50px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Style pour la prochaine date d'arrosage */
#next-watering-message {
    color: #19683c; /* Vert plus doux */
    font-size: 19px; /* Taille de police personnalisée */
    font-family: 'Georgia', serif; /* Police personnalisée */
    margin-top: 15px;
    text-align: center;
    margin-right: 20px;
}

/* Style pour le message "Arroser la plante!" */
#watering-reminder {
    color:rgb(67, 7, 7);
    font-size: 21px; /* Plus grand pour attirer l'attention */
    font-weight: bold;
    font-family: 'Georgia','serif';
    margin-top: 10px;
    text-align: center;
    gap: 10px;
}

#watering-missed {
    background-color: #ffcccb; /* Couleur de fond pour signaler l'oubli */
    color: #d8000c; /* Couleur du texte en rouge pour attirer l'attention */
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #d8000c;
    border-radius: 5px;
    font-weight: bold;
}

#watering-message {
    background-color: #fff1d3;  /* Vert clair pour un effet "succès" */
    font-family: 'Georgia', serif; /* Police personnalisée */
    font-size: 15px;
    color: #2c662d;             /* Texte vert foncé */
    padding: 10px 15px;         /* Espacement intérieur */
    border-radius: 8px;         /* Coins arrondis */
    text-align: center;         /* Centrage du texte */
    margin-top: 10px;           /* Espacement par rapport aux autres éléments */
    display: inline-block;      /* Adapter la largeur au contenu */
    border: 1px solid #2c662d;  /* Bordure verte foncée */
    position: relative;
}

#watering-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Georgia, Times, 'Times New Roman', serif;
    gap: 10px; /* Espace entre les éléments */
    padding: 20px; /* Un peu de padding autour des éléments */
    padding-top: 10px;
    background-color: rgba(255, 255, 255, 0.8); /* Un fond légèrement transparent */
    border-radius: 10px;
    box-shadow: 2px 2px 8px rgb(67, 7, 7);
    letter-spacing: 0.5px;
    }
    
    .checkbox-container {
        display: flex;
        align-items: center;
        gap: 5px; /* Espacement entre la case et le texte */
    }
    label {
        font-family: Georgia, Times, 'Times New Roman', serif !important;
        position: relative;
        flex-direction: column;
        font-size: 14px !important;
        color:rgba(67, 7, 7, 0.95) !important;
        padding-top: 8px !important;
    }

    input[type="checkbox"] {
        transform: scale(1.3) !important; 
        margin-right: 4px !important;
        vertical-align: -1.5px !important;
    }

    input[type="password"] {
        margin-right: 10px !important;
        vertical-align: -30px !important;
        font-size: 15px;
    }

    button {
        padding: 10px 15px;
        background-color: rgb(67, 7, 7);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 12px;
        vertical-align: -30px !important;
    }

    button:disabled {
        background-color: #ccc; /* Changement de couleur pour les boutons désactivés */
        cursor: not-allowed;
    }

    #photo-journal {
        position: absolute;
        top: 850px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 65%;
        max-width: 800px;
        margin-top: 40px;
        padding: 20px;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 12px;
        box-shadow: 2px 2px 8px rgba(67, 7, 7, 0.3);
        gap: 25px;
    }
    
    .journal-entry {
        text-align: center;
    }
    
    .journal-entry img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
    }
    
    .journal-entry p {
        margin-top: 8px;
        font-style: italic;
        font-size: 14px;
        color: rgb(67, 7, 7);
    }

    h1.title {
        font-family: 'Georgia';
        color: rgb(67, 7, 7);
        padding-bottom: 3px;
        text-align: center;
        font-weight: bold;
        text-shadow: 
            2px 2px 4px rgba(255, 255, 255, 0.841), 
            -2px -2px 4px rgba(0, 0, 0, 0.5);
            font-size: 25px;
    }

    /* NOTIFICATION */

    .notification-badge {
        position: absolute;
        top: -5px;
        right: 5px;
        background-color: red;
        color: white;
        border-radius: 50%;
        padding: 2px 6px;
        font-size: 12px;
    }
    
    .hidden {
        display: none;
    }

        /*Page web sur téléphone*/
@media screen and (max-width: 800px) {
    body {
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 25px;
      height: 90vh;
    } 
    #wrapper {
      min-width: 200px; 
      max-width: 250px; 
      width: 100%; 
      flex-wrap: nowrap;
      padding: 30px;
      margin: 3%;
      margin-top: -20px;
    }  
    .countvalue { 
      text-align: center;
      align-content: center;
      font-size: 35px;
      margin-bottom: 20px;
      flex-direction: row;
      flex-wrap: nowrap;
      width: max-content;
    }
}
html, body {
  overflow-y: auto;  /* autorise le scroll vertical */
  margin: 0;
  padding: 0;
  touch-action:manipulation 
} 