/* 
 * Styles pour le plugin Offres Partenaires
 */
 
.offres-container {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.offres-container *,
.offres-container *:before,
.offres-container *:after {
    box-sizing: inherit;
}

/* ======================================================
   PAGE LISTE DES OFFRES (comme Capture d'écran)
====================================================== */
.offres-liste-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0;
}

.offre-item {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ff0000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.offre-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.offre-categorie {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff0000;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.offre-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.partenaire-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 8px;
    border: 1px solid #eee;
}

.offre-titre {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.offre-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 16px;
}

.offre-percentage {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 14px;
    margin-right: 12px;
}

.offre-validite {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
}

.offre-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-voir-offre {
    display: inline-block;
    padding: 10px 24px;
    background: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-voir-offre:hover {
    background: #cc0000;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* ======================================================
   FILTRES PAR CATÉGORIE
====================================================== */
.offres-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #FF0000;
    color: white;
}

/* ======================================================
   TEMPLATE SINGLE OFFRE - BASE
====================================================== */
.single-offre-partenaire-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.offre-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.partenaire-logo-large {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.offre-titre-hero {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.offre-percentage-hero {
    font-size: 64px;
    font-weight: 900;
    color: white;
    margin: 20px 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Sections communes */
.offre-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: "";
    display: block;
    width: 4px;
    height: 24px;
    background: #ff0000;
    border-radius: 2px;
}

/* Grid layout pour single offre */
.offre-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.offre-left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.offre-sidebar {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    position: sticky;
    top: 20px;
}

.sidebar-info {
    margin-bottom: 25px;
}

.info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ======================================================
   TEMPLATE SPÉCIFIQUE SANTÉ
====================================================== */
.template-sante .offre-hero {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.template-sante .section-title::before {
    background: #22c55e;
}

/* ======================================================
   TEMPLATE SPÉCIFIQUE ÉDUCATION
====================================================== */
.template-education .offre-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.template-education .section-title::before {
    background: #3b82f6;
}

/* ======================================================
   TEMPLATE SPÉCIFIQUE ALIMENTATION
====================================================== */
.template-alimentation .offre-hero {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.template-alimentation .section-title::before {
    background: #f59e0b;
}

/* ======================================================
   TEMPLATE SPÉCIFIQUE LOISIRS
====================================================== */
.template-loisirs .offre-hero {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.template-loisirs .section-title::before {
    background: #8b5cf6;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (min-width: 768px) {
    .offres-liste-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .offres-liste-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .offre-main-content {
        grid-template-columns: 1fr;
    }
    
    .offre-hero {
        padding: 40px 20px;
    }
    
    .offre-titre-hero {
        font-size: 32px;
    }
    
    .offre-percentage-hero {
        font-size: 48px;
    }
    
    .offre-section {
        padding: 25px;
    }
    
    .offre-categorie {
        font-size: 11px;
        padding: 4px 12px;
    }
}