/* ================= GOOGLE FONT ================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ================= VARIABLES ================= */
:root {
    --primary: #8B1E1E;
    --secondary: #B83227;
    --accent: #F25C05;
    --light: #F4EDE9;
    --white: #FFFFFF;
    --text: #2E2E2E;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--text);
}

/* ================= HERO ================= */
.offre-details-hero {
    position: relative;
    min-height: 40vh;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: url('../pictures/slider1.jpg') center/cover no-repeat;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.hero-container {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 15px;
}

.hero-container h1 {
    font-size: clamp(26px, 5vw, 42px);
    color: var(--accent);
}

.hero-container p {
    margin-top: 10px;
    opacity: 0.9;
}

/* ================= SECTION ================= */
.offre-details {
    padding: 80px 20px;
}

/* ================= TITRE ================= */
.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary);
}

/* ================= CONTAINER ================= */
.details-container {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;

    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

/* ================= GALERIE ================= */
.details-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.details-gallery img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.4s ease;
}

.details-gallery img:hover {
    transform: scale(1.05);
}

/* ================= OVERLAY + ================= */
.overlay-more {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 22px;
    font-weight: 600;
}

/* ================= TEXTE ================= */
.details-content p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.details-list {
    margin-bottom: 20px;
}

.details-list li {
    margin-bottom: 8px;
}

/* ================= BOUTONS ================= */
.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-offre {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

/* bouton principal */
.btn-offre.primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
}

.btn-offre.primary:hover {
    background: linear-gradient(45deg, var(--accent), var(--primary));
    transform: translateY(-2px);
}

/* bouton secondaire */
.btn-offre.outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-offre.outline:hover {
    background: var(--primary);
    color: white;
}

/* ================= MODAL ================= */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;

    background: rgba(0,0,0,0.9);

    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;

    font-size: 35px;
    color: white;
    cursor: pointer;
}

/* navigation */
.modal-nav span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 10px;
}

#prev { left: 20px; }
#next { right: 20px; }

.modal-nav span:hover,
.close:hover {
    color: var(--accent);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .details-container {
        grid-template-columns: 1fr;
    }

    .details-gallery img {
        height: 150px;
    }

    .btn-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {

    .offre-details-hero {
        min-height: 45vh;
    }

    .hero-container h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 20px;
    }

    .details-gallery {
        grid-template-columns: 1fr 1fr;
    }
}