body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #F5F5F5;
    color: #014139;
}

header {
    background-color: #014139;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Desktop */
#main-nav {
    display: flex;
    gap: 1rem;
}

#main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}
#main-nav a[href="#moncompte"] {
    background-color: #f1f1f1;
    color: #014139;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
}


.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* 📱 Mobile styles */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    #main-nav {

        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        align-items: flex-end;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease;
    }

    #main-nav.show {

        max-height: 300px;
    }

    #main-nav a {
        padding: 0.5rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .layout {
        flex-direction: column;
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }
}


.layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

.main-content {
    flex: 3;
    min-width: 60%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

section {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(1, 65, 57, 0.1);
}
section:target {
    scroll-margin-top: 80px;
}


h2 {
    color: #E2B900;
    margin-bottom: 1rem;
}
h2.section-title {
    background-color: #fff9e5;
    border-left: 5px solid #E2B900;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1.4rem;
    color: #014139;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.btn {
    background-color: #E2B900;
    color: #014139;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.btn:hover {
    background-color: #c9a500;
}

.map-container iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 10px;
}

ul {
    list-style: none;
    padding-left: 1rem;
    margin: 0;
}

ul li {
    margin-bottom: 0.5rem;
}

ul li::before {
    content: "✔️ ";
    margin-right: 0.5rem;
}

#horaires ul li::before {
    content: none;
}

footer {
    background-color: #014139;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: 2rem;
}

@media screen and (max-width: 768px) {
    .layout {
        flex-direction: column;
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }

    nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.service-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    background-color: #ffffff;
    border: 2px solid #E2B900;
    border-radius: 10px;
    padding: 1rem;
    min-height: 160px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
    background-color: #fff9e5;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.service-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.service-item p {
    margin: 0;
    color: #014139;
    font-weight: 500;
    font-size: 0.95rem;
}

.service-item.full {
    grid-column: span 2;
}

section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

section ul {
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

section ul li::before {
    content: \"✔️ \";
    margin-right: 0.5rem;
}

.recommandations {
    background-color: #fff7db;
    border-left: 4px solid #E2B900;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #014139;
    line-height: 1.5;
}
#machines {
    margin-top: 1rem;
}

.groupe-titre {
    font-size: 1.2rem;
    color: #014139;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    border-left: 5px solid #E2B900;
    padding-left: 0.6rem;
}

.machines-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.machine-item {
    background-color: #f5f5f5;
    border: 1px solid rgba(1, 65, 57, 0.15);
    border-left: 4px solid #E2B900;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s ease;
}

.machine-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.machine-item h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #014139;
    margin-bottom: 0.5rem;
}

.machine-item p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
}

.machine-item strong {
    font-size: 1rem;
}

/* États visuels */
.machine-item.libre strong {
    color: #007F00;
}

.machine-item.occupée strong {
    color: #D00000;
}

.machine-item.en-stock strong {
    color: #007F00;
}

.machine-item.hors-stock strong {
    color: #D00000;
}

.machine-item.occupée {
    background-color: #ffdbdb;
}

.machine-item.hors-stock {
    background-color: #ffdbdb;
}
