/* Style général */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Superposition pour améliorer la lisibilité */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Conteneur principal */
.container {
    position: relative;
    z-index: 1; /* Place le conteneur au-dessus des particules */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background-color: transparent;
}

/* Carte centrale */
.card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    padding: 24px;
    max-width: 400px;
    width: 100%;
    color: #2d3748;
}

/* Bouton de lien */
.button {
    display: block;
    width: 100%;
    padding: 8px;
    background-color: #9c4221;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    transition: background-color 0.2s;
    margin-bottom: 12px;
}

/* Boutons dans .container, .card ou .hydration-form */
.container button, .card button, .hydration-form button {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* Styles pour le footer */
.contact-footer {
    position: fixed;
    bottom: 10px;
    right: 10px;
    text-align: right;
    font-size: 18px;
    background-color: rgba(245, 222, 179, 0.7);
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 1000;
}
.contact-footer a {
    color: #8B4513;
    margin: 0 8px;
    text-decoration: none;
}
.contact-footer a:hover {
    color: #DAA520;
}
/* Reste des styles inchangés */

/* Titre */
h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7b341e;
    text-align: center;
    margin-bottom: 24px;
}

/* Texte d'introduction */
.intro {
    font-size: 1rem;
    color: #2d3748;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Bouton de lien */
.button {    display: block;    width: 100%;    padding: 8px;    background-color: #9c4221;    color: white;    text-align: center;    text-decoration: none;    border-radius: 4px;    font-size: 1rem;    transition: background-color 0.2s;    margin-bottom: 12px;}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 4px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #9c4221;
    box-shadow: 0 0 0 2px rgba(156, 66, 33, 0.2);
}

/* Entrée pour les farines */
.flour-entry {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.flour-type,
.flour-quantity {
    width: 50%;
}

/* Boutons */
button {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

#add-flour {
    background-color: #fef7e0;
    color: #7b341e;
}

#add-flour:hover {
    background-color: #f7e1b5;
}

#calculate, #save-recipe, #calculate-base-temp {
    background-color: #9c4221;
    color: white;
}

#calculate:hover, #save-recipe:hover, #calculate-base-temp:hover {
    background-color: #7b341e;
}

/* Résultat */
#result {
    margin-top: 16px;
    text-align: center;
    color: #2d3748;
}

#result p {
    margin: 4px 0;
}

#result .error {
    color: #dc2626;
}

#result .success {
    color: #15803d;
}

/* Cacher le bouton de sauvegarde et TDB par défaut */
.hidden {
    display: none;
}

/* Particules amnimations */ 
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0; /* Place les particules juste au-dessus de l'image de fond */
  background: transparent;  /* Fond transparent pour voir l'image de fond */
}
