/* Global Styles */
html {
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    background-color: #f9f9f9;
    width: 100% !important;
    overflow-x: hidden;
}
.mt-4{
    margin-top: 0 !important;
}
h1{
    margin-top: 0;
}
header {
    margin: 0;
    min-height: 10vh;
    background-color: #f8a5c2;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

/* Burger Menu */
.burger {
    display: block;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.burger div {
    width: 100%;
    height: 4px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.burger.open div:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.burger.open div:nth-child(2) {
    opacity: 0;
}
.burger.open div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Menu */
#menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background: rgba(255, 247, 239, 0.95);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out;
    padding: 20px;
}

#menu.open {
    left: 0;
}

#menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 15px;
    transition: background 0.3s;
    border-radius: 5px;
}

#menu a:hover {
    background-color: #f88eb3;
    color: white;
    padding: 10px 15px;
}
.active {
    background-color: #f88eb3;
    color: white;
    padding: 10px 15px;
}
/* Main Content */
main{
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 50px;
    min-height: 72.45vh;
}
.titre {
    text-align: center;
    margin: 20px 0;
}

.flower-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

article {
    border-radius: 10px;
    background-color: #ff99cc;
    color: white;
    text-align: center;
    padding: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

article img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* Retour Button */
.retour {
    display: block;
    width: max-content;
    margin: 30px auto;
    padding: 12px 24px;
    background-color: #ff99cc;
    color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.retour:hover {
    transform: scale(1.1);
}


/* Footer */
footer {
    min-height: 10vh;
    background-color: #f8a5c2;
    text-align: center;
    padding: 50px;
}
/* Gestion Page Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

table th {
    background-color: #f8a5c2;
    color: white;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #fce4ec;
}
th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
th {
    background-color: #f2f2f2;
}
tr:hover {
    background-color: #f1f1f1;
}
a {
    text-decoration: none;
    color: #f88eb3;
    font-weight: bold;
    transition: color 0.3s ease;
}
form{
    display: flex;
    justify-content: center;
}

h1 {
    text-align: center;
    color: #f88eb3;
    margin-bottom: 20px;
}
span {
    width: 200px;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    justify-self: center;
    justify-content: center;
    text-align: center;
    margin: 10px 0;
}
hr {
    border: 0;
    height: 1px;
    background: #f8a5c2;
    margin: 20px 0;
}
    table {
    width: 95%;
    font-size: 14px;
    margin: 10px auto;
}
    th, td {
    padding: 8px;
}
    h1 {
    text-align: center;
}
    a {
    font-size: 14px;
}

a {
    text-decoration: none;
    color: #007BFF;
}
a:hover {
    text-decoration: underline;
}
.menubizzare {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    gap : 20px;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 20px;
}
hr {
    border: 1px solid #ccc;
}

footer, header {
    padding: 0 !important;
    margin: 0 !important;
}
header {
margin-bottom: 50px !important;
}
a {
font-size: 12px;
}
.rose{
    background-color: #f8a5c2;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.rose:hover {
    background-color: #f88eb3;
}
.center{
    display: flex;
    justify-self: center;
}
.recherche {
    margin: 0 auto;
}
/* Responsive for Desktop */
@media (min-width: 576px) {
    .burger {
        display: none;
    }
    #menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
    }

    #menu ul {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}
@media (max-width: 400px) {
    td {
        font-size: 12px;
        padding: 5px;
    }
    td h4{
        font-size: 12px;
    }
    table {
        margin:0 auto!important;
    }
}