/*
*/
html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
    display: flex;
    flex-direction: column;
    background: url('../img/texture_fromage.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #3e2f1c; 
    height: 100%;
}

header {
    background-color: rgba(255, 243, 200, 0.95);
    padding: 20px 40px;
    border-bottom: 4px solid #f1c40f;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

header h1 {
    font-size: 3rem;
    color: #a65c00;
    margin: 0;
    text-shadow: 1px 1px #fff3cd;
}

nav {
    margin-top: 10px;
}

nav a {
    text-decoration: none;
    color: #6c3a00;
    margin: 0 15px;
    font-weight: bold;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #f39c12;
}

main {
    background-color: rgba(255, 255, 255, 0.85);
    margin: 30px auto;
    padding: 40px;
    width: 50%;
    border-radius: 15px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
    flex: 1;
}

h2, h3 {
    color: #d68910;
}

p {
    line-height: 1.6;
}

footer {
    background-color: #f8e9c1;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #5d3c00;
    border-top: 2px solid #f1c40f;
}

/* Image de l'accueil*/
#logo {
    width: 60%;
    display: flex;
    justify-self: center;
    margin: 0 auto 20px;
}

/* Tableau des fromages*/ 
table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background-color: transparent;
    empty-cells:hide
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
}

th {
    background-color: #f1c40f;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:nth-child(odd) {
    background-color: whitesmoke;
}

.cache {
    display: none;
}

label{
    font-size: 1.5em;
}

input, textarea{
    font-family: inherit;
    margin-top: 3px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    font-size: 1.25em;
}

#envoyer{
    font-family: inherit;
    margin-top: 3px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    font-size: 1.25em;
    background-color: #f1c40f;
    cursor: pointer;
}

#envoyer:hover {
    background-color: #f39c12;
}

/*boutons détails*/

.boutonDetail{
    display: block;
    margin: auto;
    aspect-ratio: 1 / 1;
    background: #f1c40f ;
    color: white;
    font-size: 2vw;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    width: 50%;
}

button:hover {
    background-color: #f39c12;
}

.fromage-info {
    background-color: rgba(255, 243, 200, 0.95);   
    padding: 10px 15px;
    border-radius: 8px;         
    border: 1px solid #f1c40f;     
    margin-bottom: 1em;
    font-size: 1rem;
}
  

/* Responsive */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }

    main {
        padding: 20px;
    }
}
