/* === RESET & GLOBAL === */
* {
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg, #f6f8fb 0%, #fff 100%);
    margin: 0;
    color: #111;
    line-height: 1.4;
    padding-bottom: 40px;
}


/* === HEADER === */
header {
    background: url(../images/ciel.jpg) center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

header p {
    margin: 0;
    color: #fff;
    font-size: 30px;
}

.logo img {
    width: 70%;
    max-width: 250px;
    height: auto;
    margin-bottom: 10px;
}


/* === LAYOUT CONTAINER === */
.container {
    margin: 20px;
}


/* === CARDS TONNELLES === */
.tonnelles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

.card {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(20, 30, 50, 0.05);
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center center;
    border-radius: 8px;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: -8px 8px 20px rgba(0, 0, 0, 0.1);
}

.card .text {
    display: flex;
    justify-content: space-between;
}

.meta {
    display: flex;
    justify-content: end;
}

.btn {
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}


/* === SERVICES === */
.titre-service h4 {
    text-align: center;
    text-decoration: underline;
}

.options {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 30px;
    margin: 50px 0;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 220px;
    text-align: center;
}

.service-icon {
    font-size: 60px;
    color: #1976d2;
}

.service-details {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
}


/* === PRESENTATION (SLIDER + TEXTE) === */
.presentation {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

/* === SLIDER === */
.slider {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 500px;
    aspect-ratio: 5/4;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    object-position: center;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    border: none;
    color: #1976d2;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-btn.prev {
    left: 10px;
}

.nav-btn.next {
    right: 10px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.message {
    max-width: 400px;
    text-align: center;
    font-size: 18px;
    color: #1976d2;
}


/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 80%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 5%;
    right: 5%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 2.5rem;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.nav.left {
    left: 5%;
    top: 50%;
}

.nav.right {
    right: 5%;
    top: 50%;
}

.close:hover,
.nav:hover {
    background: rgba(255, 255, 255, 0.4);
}


/* === FOOTER === */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 15px 0;
    background: #f6f8fb;
    font-size: 14px;
}

.contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
}

.contact-logo img {
    width: 250px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-item img {
    width: 30px;
}

footer a {
    color: #1976d2;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* === RESPONSIVE (MOBILE ≤ 600px) === */
@media (max-width: 600px) {

    header p {
        font-size: 20px;
    }

    .logo img {
        width: 70%;
        max-width: 220px;
    }

    .services {
        flex-direction: column;
        gap: 30px;
    }

    .service-icon {
        font-size: 50px;
    }

    .service-details {
        font-size: 14px;
    }

    .slider {
        width: 100%;
        max-width: 100%;
    }

    .message {
        max-width: 100%;
        font-size: 15px;
    }

    .contact {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .contact-logo img {
        width: 180px;
    }
}