/* ==========================================================================
   STYLE MAGAZINE - COMPATIBLE BLOCS NATIFS WORDPRESS
   ========================================================================== */

/* 1. Configuration de la Grille Générale (Pour le HTML manuel ET le bloc WP) */
.magazine-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 2. Style des Cartes Fixes (HTML Manuel) */
.magazine-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.magazine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
    border-color: #cf2e2e;
}

/* 3. Style des Cartes Dynamiques (Pour le bloc "Articles Récents" de WP) */
ul.magazine-grid li {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    margin: 0 !important; /* Supprime les marges de liste Astra */
    display: flex;
    flex-direction: column;
    list-style-type: none !important;
}

ul.magazine-grid li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15) !important;
    border-color: #cf2e2e !important;
}

/* 4. Alignement des images du bloc WordPress à l'intérieur de la carte */
ul.magazine-grid .wp-block-latest-posts__featured-image {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

ul.magazine-grid .wp-block-latest-posts__featured-image img {
    width: 100% !important;
    height: 180px !important; /* Force une hauteur propre pour l'effet magazine */
    object-fit: cover !important; /* Cadre l'image proprement sans la déformer */
    border-radius: 6px !important;
}

/* 5. Style du titre de l'article WordPress */
ul.magazine-grid .wp-block-latest-posts__post-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    margin-top: auto; /* Pousse le titre vers le bas si besoin */
}

ul.magazine-grid li:hover .wp-block-latest-posts__post-title {
    color: #cf2e2e !important;
}

/* --- INDEX DES CATÉGORIES (HOME) --- */
.site-directory {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.directory-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.directory-col h4 {
    font-size: 1.1rem;
    color: #1e293b;
    border-bottom: 2px solid #cf2e2e;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.directory-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.directory-list li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.directory-list a {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease;
}

.directory-list a:hover {
    color: #cf2e2e;
    text-decoration: underline; 
}

/* --- STYLE PAGE CAMGIRLS FRANCAISES --- */
.cam-container {
    padding: 1rem 0;
}

.cam-intro-box {
    background: #f8f9fa;
    border-left: 4px solid #cf2e2e;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    border-radius: 0 8px 8px 0;
}

/* Grille de faux flux live / profils */
.cam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cam-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cf2e2e;
}

/* Faux écran vidéo / Miniature */
.cam-video-placeholder {
    height: 180px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3rem;
    position: relative;
}

/* Badge Live rouge clignotant */
.badge-live {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #cf2e2e;
    color: #ffffff;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cam-info {
    padding: 1.25rem;
}

.cam-name {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
}

.cam-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.cam-btn {
    display: block;
    text-align: center;
    background: #cf2e2e;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.cam-btn:hover {
    background: #ae2020;
}

/* Section Guide textuelle pour le SEO */
.seo-guide-content {
    margin-top: 4rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}
/* --- EXTENSION MULTI-PLATEFORMES --- */
.platform-brand-box {
    margin-top: 3rem;
}

.platform-card {
    display: flex;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    align-items: center;
    gap: 1.5rem;
}

.platform-logo-placeholder {
    font-size: 2.5rem;
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 50%;
    min-width: 70px;
    text-align: center;
}

.platform-text {
    flex-grow: 1;
}

.platform-title {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 0 0.5rem 0 !important;
}

.platform-desc {
    font-size: 0.95rem;
    color: #475569;
    margin: 0 !important;
    line-height: 1.5;
}

.platform-link {
    background: #046bd2;
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.platform-link:hover {
    background: #035aa2;
}

@media (max-width: 600px) {
    .platform-card {
        flex-direction: column;
        text-align: center;
    }
}
