/* Base & Reset */
* {
    margin: 0;
    color: white;
    list-style: none;
    text-decoration: none;
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: rgb(26, 26, 26);
    background-image: url("image/background.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    position: relative;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0;
    width: 100%;
}

nav a {
    color: white;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #E38C25;
}

/* Burger Menu */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Sections Global */
section {
    padding: 2rem;
    margin: 1rem auto;
    max-width: 1200px;
}

h1, h2, h3 {
    color: #E38C25;
    margin-bottom: 1rem;
    text-align: center;
}

/* Auto Slider (Accueil) */
.auto-slider-container {
    width: 80%;
    max-width: 900px;
    margin: 50px auto;
    overflow: hidden;
    position: relative;
    height: 450px;
    border: 2px solid #ffffff;
    border-radius: 20px;
}

.auto-slider-wrapper {
    display: flex;
    width: 500%; 
    transition: transform 0.8s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
}

.auto-slider-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    flex-shrink: 0;
    object-fit: cover;
}

.auto-slider-progress-bar {
    position: absolute; 
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.auto-slider-progress {
    width: 0%; 
    height: 100%; 
    background-color: #E38C25; 
}

/* Horaires */
#horaires {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 600px;
    backdrop-filter: blur(4px);
    text-align: center;
}

table {
    margin: 0 auto;
    border-collapse: collapse;
}

td {
    padding: 0.5rem 1rem;
    text-align: left;
}

/* Services Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 1rem auto;
}

.service-item {
    background: rgba(227, 140, 37, 0.1);
    border: 1px solid #E38C25;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item span {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}
.service-item p {
    font-size: 0.95rem;
}

#service-livraison {
    background: #E38C25;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem auto;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

#service-livraison img {
    height: 30px;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* CTA Button */
.cta-button-container {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: #E38C25;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #f39c2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Manual Slider (Menu) */
.slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 506.25px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 2rem auto;
    border: 3px solid #f39c2f;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    border-radius: 50%;
    transition: all 0.3s;
}

.arrow:hover {
    background: rgba(227, 140, 37, 0.8);
}

.left {
    left: 1rem;
}

.right {
    right: 1rem;
}

/* Contact */
.contact-info {
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info img {
    height: 20px;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.contact-info a {
    color: white;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #E38C25;
}

/* Footer */
footer {
    background-color: #1c1c1c;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Tablette */
@media (max-width: 992px) {
    section {
        padding: 1.5rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    h3 {
        font-size: 1.6rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    .auto-slider-container,
    .slider {
        width: 90%;
        margin: 30px auto;
    }
    .auto-slider-container {
        height: 380px;
    }
    .slider {
        height: calc(90vw * (9 / 16));
        max-height: 450px;
    }

    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.8rem;
    }
    .service-item {
        min-height: 130px;
    }

    .arrow {
        font-size: 2rem;
        padding: 0.3rem 0.8rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }
    nav {
        justify-content: space-between;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .burger-menu {
        display: block;
        left: 1rem;
        right: auto;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 99;
    }

    nav ul.active {
        max-height: 300px;
        padding-bottom: 1rem;
    }

    nav ul li {
        text-align: center;
        padding: 0.8rem 0;
    }
    nav ul li a {
        font-size: 1.1rem;
        display: block;
    }

    section {
        padding: 1rem;
        margin: 0.5rem auto;
    }
    h2 {
        font-size: 1.6rem;
    }
    h3 {
        font-size: 1.2rem;
    }

    .auto-slider-container,
    .slider {
        width: 95%;
        margin: 20px auto;
        border-radius: 10px;
    }
    .auto-slider-container {
        height: 250px;
    }
    .slider {
        height: calc(95vw * (9 / 16));
        max-height: 300px;
    }

    .slider .arrow {
        font-size: 1.5rem;
        padding: 0.2rem 0.5rem;
        transform: translateY(-50%); 

    }

    .slider .left {
        left: 0.5rem; 
        right: auto;
    }

    .slider .right {
        right: 0.5rem;
        left: auto;
    }
    .slider .slides img {
        object-fit: cover;
    }

    #horaires, .contact-info {
        padding: 1rem;
    }
    #horaires table {
        width: 100%;
    }
    #horaires td {
        display: block;
        text-align: center;
        padding: 0.2rem 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .service-item {
        padding: 1rem 0.5rem;
        min-height: auto;
    }
    .service-item p {
        font-size: 0.9rem;
    }

    #service-livraison {
        background: #E38C25;
        padding: 1rem;
        border-radius: 8px;
        text-align: center;
        margin: 1rem auto;
        max-width: 600px;
        display: inline-block;
    }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }
    .contact-info img {
        height: 18px;
    }

    footer {
        padding: 1rem;
        font-size: 0.8rem;
    }
}