.index-admin{
    body {
        font-family: Arial, sans-serif;
    }
    .form-container {
        padding: 50px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        max-width: 1200px;
        margin: 0 auto;
        margin-top: 5%;
    }
    .titre {
        font-size: 1.5em;
        margin-bottom: 20px;
        text-align: center;
        flex-basis: 100%;
    }
    .section {
        flex: 1;
        margin: 20px;
        min-width: 7.5%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .section h2 {
        font-size: 1.2em;
        margin-bottom: 10px;
        text-align: center;
        min-height: 50px; /* hauteur minimale pour chaque titre */
        height: 50px; /* hauteur fixe pour chaque titre */
    }
    .button {
        display: block;
        width: 100%;
        padding: 10px;
        margin: 5px 0;
        background-color: #4CAF50;
        color: white;
        text-align: center;
        text-decoration: none;
        border-radius: 5px;
        transition: background-color 0.3s;
    }
    .button:hover {
        background-color: #45a049;
    }
    .button-logout {
        background-color: #f44336;
    }
    .button-logout:hover {
        background-color: #d32f2f;
    }

    .form-container {
        display: flex;
        justify-content: center;
        align-items: center;
        background: white;
        padding: 20px;
        border-radius: 8px;
        padding-bottom: 500px;
    }
}

.ajouter-une-famille{
    body {
        font-family: Arial, sans-serif;
        background-color: #f4f4f4;
    }

    .container2 {
        max-width: 400px;
        margin: 50px auto;
        padding: 20px;
        background-color: #fff;
        border-radius: 5px;
        margin-top: 10%;
    }

    h2 {
        text-align: center;
    }

    .form-group {
        margin-bottom: 20px;
    }

    label {
        display: block;
        margin-bottom: 5px;
    }

    input[type="text"] {
        width: 100%;
        padding: 8px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 3px;
    }

    button {
        display: block;
        width: 100%;
        padding: 10px;
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }

    button:hover {
        background-color: #0056b3;
    }
}

.modifier-famille{
    body {
        font-family: Arial, sans-serif;
        background-color: #f0f0f0;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        margin: 0;
    }
    .form-container {
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        margin-top: 8%;
    }
    .form-container h2 {
        margin-bottom: 20px;
        margin-right: 1%;
    }
    .form-container label {
        display: block;
        margin-bottom: 0.5%;
        justify-content: center;
        align-items: center;
        margin-right: 1%;
    }

    .form-container select, .form-container input {
        width: 10%;
        padding: 8px;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        border-radius: 4px;
        margin-left: 1125px;
        justify-content: center;
        align-items: center;
    }
    .form-container button {
        background-color: #28a745;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 4px;
        cursor: pointer;
        width: 10%;
        margin-left: 1125px;
        justify-content: center;
        align-items: center;
    }
    .form-container button:hover {
        background-color: #218838;
    }
}

.supprimer-famille{
    body {
        font-family: Arial, sans-serif;
        background-color: #f0f0f0;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        margin: 0;
    }
    .form-container {
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        margin-top: 10%;
    }
    .form-container h2 {
        margin-bottom: 20px;
    }
    .form-container label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
    }
    .form-container select {
        width: 10%;
        padding: 8px;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        border-radius: 4px;
        margin-left: 1135px;
    }
    .form-container button {
        background-color: #dc3545;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 4px;
        cursor: pointer;
        width: 10%;
        margin-left: 1135px;
    }
    .form-container button:hover {
        background-color: #c82333;
    }
}

.ajouter-information{
    body {
        font-family: Arial, sans-serif;
        background-color: #f4f4f4;
    }

    .container3 {
        max-width: 400px;
        margin: 50px auto;
        padding: 20px;
        background-color: #fff;
        border-radius: 5px;
        margin-top: 7%;
    }

    h2 {
        text-align: center;
    }

    .form-group {
        margin-bottom: 20px;
    }

    label {
        display: block;
        margin-bottom: 5px;
    }

    input[type="text"], textarea {
        width: 100%;
        padding: 8px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 3px;
    }

    textarea {
        resize: vertical;
    }

    button {
        display: block;
        width: 100%;
        padding: 10px;
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }

    button:hover {
        background-color: #0056b3;
    }

}

.modifier-infos{
    body {
        font-family: Arial, sans-serif;
        background-color: #f4f4f4;
    }

    .form-container {
        max-width: 400px;
        margin: 50px auto;
        padding: 20px;
        background-color: #fff;
        border-radius: 5px;
        margin-top: 6%;
    }

    h2 {
        text-align: center;
    }

    .form-group {
        margin-bottom: 20px;
    }

    label {
        display: block;
        margin-bottom: 5px;
    }

    input[type="text"], textarea, select {
        width: 100%;
        padding: 8px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 3px;
    }

    textarea {
        resize: vertical;
    }

    button {
        display: block;
        width: 100%;
        padding: 10px;
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }

    button:hover {
        background-color: #0056b3;
    }

}

.supprimer-info{
    body {
        font-family: Arial, sans-serif;
        background-color: #f4f4f4;
    }

    .container-sup-info {
        max-width: 400px;
        margin: 50px auto;
        padding: 20px;
        background-color: #fff;
        border-radius: 5px;
        margin-top: 5%;
    }

    h2 {
        text-align: center;
    }

    .form-group {
        margin-bottom: 20px;
    }

    label {
        display: block;
        margin-bottom: 5px;
    }

    input[type="text"], textarea, select {
        width: 100%;
        padding: 8px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 3px;
    }

    textarea {
        resize: vertical;
    }

    button {
        display: block;
        width: 100%;
        padding: 10px;
        background-color: #dc3545;
        color: #fff;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

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

}

.ajouter-un-produit{
    body {
        font-family: Arial, sans-serif;
        background-color: #f4f4f9;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .container-ajouter-produit {
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        width: 300px;
        text-align: center;
        margin-top: 4%;
    }

    .h1-ajouter-produit {
        margin-bottom: 20px;
        color: #333;
    }

    .form-group {
        margin-bottom: 15px;
        text-align: left;
    }

    label {
        display: block;
        margin-bottom: 5px;
        color: #333;
    }

    input[type="text"],
    input[type="number"],
    select {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }

    button {
        background-color: #007bff;
        color: #fff;
        padding: 10px 15px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        width: 100%;
        font-size: 16px;
    }

    button:hover {
        background-color: #0056b3;
    }

}

footer{
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: absolute;
    width: 100%;
}

.modifier-horaires{
    body.modifier-horaires {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        background-color: #f0f8ff;
        font-family: Arial, sans-serif;
    }

    form {
        background: #fff;
        border-radius: 10px;
        padding: 20px;
        width: 80%;
        max-width: 600px;
        margin-left: 38%;
        margin-top: 5%;
    }

    h1.modifier-horaires {
        text-align: center;
        color: #333;
    }

    ul {
        list-style: none;
        padding: 0;
    }

    li {
        margin-bottom: 15px;
    }

    u {
        font-weight: bold;
        color: #007bff;
    }

    input[type="time"] {
        margin: 0 5px;
    }

    button {
        display: block;
        width: 100%;
        padding: 10px;
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
    }

    button:hover {
        background-color: #0056b3;
    }
}

.connexion{
    body.connexion {
        background-color: #f5f5f5;
        font-family: Arial, sans-serif;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        margin: 0;
    }
    
    background: url('../images/background1.jpg') no-repeat center center/cover;

    .form-container {
        background-color: #ffffff;
        padding: 20px;
        border-radius: 8px;
        width: 300px;
        text-align: center;
        margin-top: 5%;
    }

    .titre {
        font-size: 1.2em;
        margin-bottom: 20px;
        color: #333333;
        font-weight: bold;
    }

    form fieldset {
        border: none;
        padding: 0;
    }

    form legend {
        font-size: 1.1em;
        color: #333333;
        margin-bottom: 10px;
    }

    label {
        display: block;
        margin: 10px 0 5px;
        text-align: left;
    }

    input[type="text"], input[type="password"] {
        width: calc(100% - 22px);
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    button#afficher_mdp {
        margin-top: -30px;
        margin-bottom: 10px;
        display: inline-block;
        background-color: #007bff;
        color: #fff;
        border: none;
        padding: 5px 10px;
        border-radius: 4px;
        cursor: pointer;
    }

    button#afficher_mdp:hover {
        background-color: #0056b3;
    }

    input[type="checkbox"] {
        margin-right: 5px;
    }

    input[type="submit"] {
        background-color: #28a745;
        color: #fff;
        border: none;
        padding: 10px 15px;
        border-radius: 4px;
        cursor: pointer;
    }

    input[type="submit"]:hover {
        background-color: #218838;
    }

    .enligne {
        display: inline-block;
    }

}

.modifier-produit{
    body.modifier-produit {
        font-family: Arial, sans-serif;
        background-color: #f4f4f4;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        margin: 0;
    }

    .form-container.modifier-produit {
        background-color: #ffffff;
        padding: 20px;
        border-radius: 8px;
        width: 300px;
        margin-left: 44%;
        margin-top: 5%;
    }

    form.modifier-produit {
        display: flex;
        flex-direction: column;
    }

    h2.modifier-produit {
        margin-bottom: 20px;
        text-align: center;
    }

    label {
        margin-bottom: 5px;
        text-align: center;
    }

    input.modifier-produit, select.modifier-produit, button.modifier-produit {
        margin-bottom: 15px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 16px;
    }

    button.modifier-produit {
        background-color: #007bff;
        color: white;
        border: none;
        cursor: pointer;
    }

    button.modifier-produit:hover {
        background-color: #0056b3;
    }
}

.supprimer-produit{
    body.supprimer-produit {
        font-family: Arial, sans-serif;
        background-color: #f4f4f4;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        margin: 0;
    }

    .form-container.supprimer-produit {
        background-color: #ffffff;
        padding: 20px;
        border-radius: 8px;
        width: 300px;
        margin-left: 44%;
        margin-top: 11%;
    }

    form.supprimer-produit {
        display: flex;
        flex-direction: column;
    }

    h2.supprimer-produit {
        margin-bottom: 20px;
        text-align: center;
    }

    label.supprimer-produit {
        margin-bottom: 5px;
        text-align: center;
    }

    select.supprimer-produit, button.supprimer-produit {
        margin-bottom: 15px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 16px;
    }

    button.supprimer-produit {
        background-color: #007bff;
        color: white;
        border: none;
        cursor: pointer;
    }

    button.supprimer-produit:hover {
        background-color: #0056b3;
    }

}

.ajouter-image{
    body.ajouter-image {
        font-family: Arial, sans-serif;
        background-color: #f4f4f9;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .container.ajouter-image {
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        width: 300px;
        text-align: center;
    }

    h1.ajouter-image {
        margin-bottom: 20px;
        color: #333;
    }

    .form-group.ajouter-image {
        margin-bottom: 15px;
        text-align: left;
    }

    label.ajouter-image {
        display: block;
        margin-bottom: 5px;
        color: #333;
    }

    input[type="file"] {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }

    button {
        background-color: #007bff;
        color: #fff;
        padding: 10px 15px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        width: 100%;
        font-size: 16px;
    }

    button:hover {
        background-color: #0056b3;
    }

    .container-image {
        width: 40%;
        margin: 0 auto;
        padding: 20px 0;
        margin-top: 8%;
    }
}

.supprimer-image{
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }

    .container-supprimer-image{
        width: 30%;
        margin-left: 35%;
        margin-top: 10%;
    }

    h2 {
        text-align: center;
    }

    .form-group {
        margin-bottom: 20px;
    }

    label {
        display: block;
        margin-bottom: 5px;
    }

    select {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    button {
        padding: 10px 20px;
        background-color: #f44336;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
    }

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

}

.interdit{
    margin-left: 42%;
    margin-top: 10%;
}


@media (max-width: 600px) {
    .form-container.connexion {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .interdit{
        width: auto;
        margin-left: auto;
        margin-right: auto;

        footer{
            bottom: 0;
        }
    }

}


@media (min-width: 1000px){
    .interdit{
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        margin-top: 25%;

    }

}

@media (min-width: 1200px){
  
    
    .interdit{
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        margin-top: 12%;
    }

    .index-admin{

    }
}

@media (width: 1366px) and (height: 768px) {
    .connexion footer {
        bottom: 0;
    }
}


@media (min-width: 2000px){
    footer{
        bottom: 0;
    }
}

@media (max-width: 576px) and (min-width: 401px){
    footer .connexion{
        bottom:0;
    }
}
