/*
Theme Name: Le Bon Parrainage
Theme URI: https://lebonparrainage.com
Author: Votre nom
Description: Thème personnalisé pour site de parrainage et cashback
Version: 1.1
License: GPL v2 or later
Text Domain: lebonparrainage
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header avec flexbox */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
}

.site-title a {
    color: #2c3e50;
    text-decoration: none;
}

.site-title a:hover {
    color: #e67e22;
}

.site-description {
    color: #7f8c8d;
    margin-top: 5px;
}

/* Bouton menu mobile */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 100;
}

.mobile-menu-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #2c3e50;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 11px; }
.mobile-menu-btn span:nth-child(3) { top: 22px; }

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
}

/* Navigation */
.main-nav {
    background: #1aa5d2;
    position: relative;
}

.main-nav .container {
    padding: 0;
}

.main-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: background 0.3s;
}

.main-menu a:hover {
    background: #e67e22;
}

/* Sous-menus */
.main-menu li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #34495e;
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.main-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
}

.main-menu li ul li ul {
    top: 0;
    left: 100%;
}

.main-menu li ul a {
    padding: 10px 20px;
}

/* Cartes d'offres */
.offres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.carte-offre {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.carte-offre:hover {
    transform: translateY(-5px);
}

.carte-offre img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.carte-offre-content {
    padding: 20px;
}

.carte-offre h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1aa5d2;
}

.cashback {
    background: #27ae60;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    margin: 10px 0;
}

.btn {
    display: inline-block;
    background: #e67e22;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn:hover {
    background: #d35400;
}

/* Footer */
.site-footer {
    background: #1aa5d2;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
    
    .main-nav.active {
        max-height: 500px;
        transition: max-height 0.4s ease-in;
    }
    
    .main-menu {
        flex-direction: column;
    }
    
    .main-menu li {
        width: 100%;
        border-bottom: 1px solid #34495e;
    }
    
    .main-menu a {
        padding: 12px 20px;
    }
    
    /* Sous-menus en mobile */
    .main-menu li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        background: #34495e;
        margin-left: 20px;
    }
    
    .main-menu li:hover > ul {
        display: block;
    }
    
    .main-menu li ul li ul {
        left: 0;
    }
    
    .offres-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .site-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .carte-offre-content {
        padding: 15px;
    }
    
    .btn {
        display: block;
        text-align: center;
    }
}
/* ===== STYLES POUR CATÉGORIES ===== */

/* Badges de catégorie sur les cartes */
.categorie-badge {
    margin-bottom: 10px;
}

.cat-badge {
    display: inline-block;
    background: #3498db;
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    margin-right: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Code promo mini */
.code-promo-mini {
    background: #fef5e7;
    padding: 8px;
    border-radius: 5px;
    font-size: 13px;
    margin: 10px 0;
    text-align: center;
    border: 1px dashed #f39c12;
}

.code-promo-mini strong {
    color: #e67e22;
    font-size: 16px;
}

/* Navigation par catégories */
.categories-cloud {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.categories-cloud h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 20px;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.categorie-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 30px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.categorie-item:hover {
    background: #e67e22;
    color: white;
    transform: translateY(-2px);
}

.cat-icon {
    font-size: 18px;
}

.cat-name {
    font-weight: 500;
}

.cat-count {
    font-size: 12px;
    color: #7f8c8d;
}

.categorie-item:hover .cat-count {
    color: rgba(255,255,255,0.8);
}

/* Page d'archive par catégorie */
.archive-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 40px;
}

.archive-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.archive-description {
    font-size: 16px;
    opacity: 0.9;
}

/* Filtres rapides */
.filtres-rapides {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.filtre-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filtre-btn:hover, .filtre-btn.active {
    background: #e67e22;
    border-color: #e67e22;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .categories-list {
        justify-content: center;
    }
    
    .categorie-item {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .archive-header {
        padding: 25px;
    }
    
    .archive-header h1 {
        font-size: 24px;
    }
}

/* ===== STYLES POUR LE LOGO ===== */

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    height: auto;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    color: #2c3e50;
    text-decoration: none;
}

.site-title a:hover {
    color: #e67e22;
}

.site-description {
    color: #7f8c8d;
    margin: 5px 0 0 0;
    font-size: 14px;
}

/* Si vous voulez un logo + texte côte à côte */
.site-branding.has-logo {
    gap: 15px;
    align-items: center;
}

/* Responsive logo */
@media (max-width: 768px) {
    .custom-logo {
        max-height: 45px;
    }
    
    .site-title {
        font-size: 22px;
    }
    
    .site-description {
        font-size: 12px;
    }
}

/* ===== FOOTER STYLES ===== */

.site-footer {
    background: #1a252f;
    color: #ecf0f1;
    padding: 50px 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #2c3e50;
}

.footer-col h4 {
    color: #e67e22;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e67e22;
}

.footer-logo h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #bdc3c7;
    margin: 15px 0;
}

/* Menu footer */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-menu a:hover {
    color: #e67e22;
    padding-left: 5px;
}

/* Catégories footer */
.footer-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-categories li {
    margin-bottom: 10px;
}

.footer-categories a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-categories a:hover {
    color: #e67e22;
}

/* Newsletter footer */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.footer-newsletter input {
    padding: 10px 15px;
    border: none;
    border-radius: 30px;
    background: #2c3e50;
    color: white;
    outline: none;
}

.footer-newsletter input::placeholder {
    color: #7f8c8d;
}

.footer-newsletter button {
    background: #e67e22;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-newsletter button:hover {
    background: #d35400;
}

/* Réseaux sociaux */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #2c3e50;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: #e67e22;
    transform: translateY(-3px);
}

.footer-contact {
    margin-top: 15px;
    font-size: 13px;
    color: #bdc3c7;
}

/* Footer bottom */
.footer-bottom {
    padding: 20px 0;
    background: #141e28;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    font-size: 12px;
    color: #7f8c8d;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #e67e22;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}







/* ===== FOOTER 4 COLONNES ===== */
/* ===== FOOTER HARMONISÉ AVEC LE HEADER ===== */

.site-footer {
    background: #ffffff;  /* Blanc comme le header */
    color: #2c3e50;       /* Texte foncé comme le header */
    padding: 50px 0 20px;
    margin-top: 60px;
    border-top: 4px solid #e67e22;  /* Petite touche orange comme le survol */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #2c3e50;       /* Même couleur que le texte du header */
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e67e22;  /* Soulignement orange comme les liens au survol */
}

.footer-logo h3 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #7f8c8d;       /* Gris élégant pour la description */
    margin: 15px 0;
}

/* Menu footer */
.footer-menu, .footer-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li, .footer-categories li {
    margin-bottom: 10px;
}

.footer-menu a, .footer-categories a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    font-size: 14px;
}

.footer-menu a:hover, .footer-categories a:hover {
    color: #e67e22;       /* Orange comme le header */
    padding-left: 5px;
}

/* Réseaux sociaux */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f5f5f5;  /* Gris clair comme le background du site */
    border-radius: 50%;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
    font-size: 18px;
}

.social-link:hover {
    background: #e67e22;
    color: white;
    transform: translateY(-3px);
}

.footer-contact {
    margin: 15px 0;
    font-size: 14px;
    color: #7f8c8d;
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    font-size: 12px;
    color: #7f8c8d;
}

.footer-legal {
    margin-top: 10px;
}

.footer-legal a {
    color: #7f8c8d;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #e67e22;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-menu a:hover, .footer-categories a:hover {
        padding-left: 0;
    }
}