/* ================= 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;
    --gray: #6B6B6B;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--text);
}

/* ================= HERO ================= */
.offres-hero {
    position: relative;
    height: 40vh;        /* 🔥 réduit la hauteur */
    min-height: 250px;   /* 🔥 limite minimale plus petite */
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: url('../pictures/slider11.png') center/cover no-repeat;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: white;
}

.hero-container h1 {
    font-size: clamp(26px, 5vw, 42px);
    font-weight: 700;
}

.hero-container p {
    margin-top: 10px;
    color: #ddd;
    font-size: 15px;
}

.highlight {
    color: var(--accent);
}

/* ================= SECTION OFFRES ================= */
.offres {
    padding: 80px 20px;
    text-align: center;
}

.section-subtitle {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
}

.offres h2 {
    font-size: clamp(28px, 5vw, 40px);
    color: var(--primary);
    margin-top: 10px;
}

/* ================= GRID ================= */
.offres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* ================= CARD ================= */
.offre-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.offre-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* ligne design */
.offre-card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ================= IMAGE ================= */
.offre-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ================= CONTENT ================= */
.offre-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.offre-content h3 {
    color: var(--primary);
    font-size: 18px;
}
.offre-desc {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 2; /* 🔥 max 2 lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================= ANIMATION SCROLL ================= */

.offre-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

/* quand visible */
.offre-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================= STATUS ================= */
.status {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 20px;
    width: fit-content;
    font-weight: 600;
}

.disponible {
    background: #e6f7ec;
    color: #1a7f37;
}

.indisponible {
    background: #fdeaea;
    color: #b83227;
}

/* ================= ACTIONS ================= */
.offre-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ================= BOUTONS ================= */
.btn-offre {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

/* 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;
}

/* bouton désactivé */
.btn-offre.disabled {
    background: #ccc;
    pointer-events: none;
}





/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .offres {
        padding: 60px 20px;
    }

    .offres h2 {
        font-size: 22px;
    }

    .offre-card img {
        height: 180px;
    }

    .offre-actions {
        flex-direction: column;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .btn {
        width: 100%;
    }
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 16px;
    margin-top: 30px;
}

/* ICON */
.empty-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

/* TITRE */
.empty-state h3 {
    font-size: 22px;
    color: #111827;
    margin-bottom: 10px;
}

/* TEXTE */
.empty-state p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

/* BOUTON */
.btn-empty {
    background: #2563eb;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.25s;
}

.btn-empty:hover {
    background: #1d4ed8;
}