input[type="submit"] {
    position: relative;
    left: 10px;
}

h3 {
    display: block;
    font-size: 1.17em;
    margin-top: 0em;
    margin-bottom: 0em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

/* L'élément avec l'identifiant id="fermer" */
#fermer {
    position: fixed;
    right: 10px;
    top: 10px;
}

.tabhead {
    border-collapse: collapse;

}

.tabhead td {
    padding: 5px;
}


/* Tableau des espèces sans bordures */
.tableau {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    border: none;
}

.tableau td,
.tableau th {
    border: none;
    padding: 4px;
}

.colEngrais {
    visibility: hidden;
}

/* Alternance des couleurs du tableau */
.tableau tr:nth-child(odd) {
    background-color: #e8ecdf;
}

.tableau tr:nth-child(even) {
    background-color: #dfe6d3;
}

/* En-têtes */
.tableau th {
    background-color: #788b68;
    color: white;
}

.tableau tr:hover {
    background-color: #ddd;
}

.tableau th {
    padding-top: 2px;
    padding-bottom: 2px;
    text-align: left;
    background-color: #087fc5;
    color: white;
}



.cultur {
    border: 1px solid rgb(2, 11, 85);
    max-width: 650px;
    padding: 3px;
}

#ajoutCulture,
#ajoutNote,
#ajoutEngrais,
#Recolte,
#modifNote,
#modifEmpl,
#suppNote,
#modifEsp,
#suppEsp,
#finCult,
#suppCult,
#suppZone,
#viderZone,
#modifZone {
    position: fixed;
    top: 7em;
    margin: 5px;
    padding: 10px;
    border: 3px solid rgb(33, 143, 48);
    background-color: rgb(228, 242, 248);
    visibility: hidden;
}

#ajoutEspece,
#ajoutZone {
    position: fixed;
    top: 140px;
    border: 2px solid darkblue;
    background-color: rgb(174, 194, 202);
    visibility: hidden;
}



#video {
    border: 1px solid black;
    width: 100%;
    height: 100%;
}

#photo {
    border: 1px solid black;
    width: 100%;
    height: 100%;
}

#canvas {
    display: none;
}

.camera {
    display: grid;
}

.output {
    display: grid;
    vertical-align: top;
}

#startbutton {
    position: relative;
    bottom: 32px;
}


/* Actualités RSS */
.actualites {
    max-width: 650px;
    margin: 20px auto;
    padding: 12px 18px;
    border: 1px solid #2d8b45;
    border-radius: 8px;
    background-color: #f5faf4;
    text-align: left;
}

.actualites h2 {
    margin-top: 0;
    padding-bottom: 8px;
    color: #287a3c;
    border-bottom: 2px solid #b5d6b9;
}

.actualites p {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #dce8dc;
}

.actualites p:last-child {
    border-bottom: none;
}

.actualites a {
    color: #245f32;
    font-weight: bold;
    text-decoration: none;
}

.actualites a:hover {
    text-decoration: underline;
}

.actualites small {
    color: #777;
    white-space: nowrap;
}

/* Présentation des articles RSS */
.article-rss {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #dce8dc;
    align-items: flex-start;
}

.article-rss img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 5px;
}

.rss-texte {
    flex: 1;
}

.rss-texte a {
    color: #245f32;
    font-weight: bold;
    text-decoration: none;
}

.rss-texte small {
    display: block;
    color: #777;
    margin-top: 4px;
}

.rss-texte p {
    margin: 6px 0 0;
    font-size: 0.9em;
    line-height: 1.4;
}

@media (max-width: 500px) {
    .article-rss img {
        width: 90px;
        height: 75px;
    }
}


/* =====================================
   DESIGN GENERAL - MON JARDIN
===================================== */

body {
    margin: 0;
    padding: 0;
    background-color: #f5f7f0;
    color: #354536;
    font-family: Arial, Helvetica, sans-serif;
}

/* Bandeau supérieur */

.site-header {
    background: linear-gradient(120deg, #788b68, #a3ad87);
    color: #ffffff;
    padding: 20px 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.username {
    margin-top: 5px;
    font-size: 13px;
    color: #f4f3e9;
}



.header-titre {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icone {
    font-size: 38px;
}

.header-titre h1 {
    margin: 0;
    font-size: 27px;
    font-weight: 600;
}


/* Navigation */

.navigation {
    background-color: #eeefe5;
    padding: 12px 20px;
    border-bottom: 1px solid #d9ddca;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.navigation img {
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.navigation a:hover img {
    transform: scale(1.08);
}


/* Formulaire de connexion dans le bandeau */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-login form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.header-login label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #f4f3e9;
}

.header-login input {
    padding: 8px;
    border: 1px solid #d9ddca;
    border-radius: 5px;
    width: 150px;
}

.header-login button {
    padding: 9px 16px;
    border: none;
    border-radius: 5px;
    background-color: #eeefe5;
    color: #526344;
    font-weight: bold;
    cursor: pointer;
}

.header-login button:hover {
    background-color: #dfe6d3;
}

@media (max-width: 600px) {
    .site-header {
        align-items: flex-start;
    }

    .header-login form {
        align-items: stretch;
        flex-direction: column;
    }

    .header-login input {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Bouton de déconnexion */

.header-logout a {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 5px;
    background-color: #eeefe5;
    color: #526344;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
}

.header-logout a:hover {
    background-color: #dfe6d3;
}

.navigation a {
    text-decoration: none;
    border: none;
}

.navigation img {
    display: inline-block;
    border: none;
    vertical-align: middle;
}

.presentation {
    max-width: 650px;
    margin: 20px auto;
    padding: 15px 20px;
    text-align: center;
    color: #667653;
    font-size: 1.05em;
    line-height: 1.6;
}

/* Logos des flux RSS */
.logo-flux {
    padding: 12px 0;
    margin-bottom: 5px;
    border-bottom: 1px solid #dce8dc;
}

.logo-flux img {
    max-width: 300px;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
}