/* --- 1. PARAGRAPHES & TEXTE GÉNÉRAL --- */
/* On cible le contenu de l'article pour ne pas casser le menu ou le pied de page */
.entry-content {
    color: #333333; /* Gris foncé pour le texte (lisibilité) */
    font-family: 'Roboto', sans-serif; /* Assurez-vous que la police est chargée */
}

.entry-content p {
    font-size: 17px;
    line-height: 1.7em;
    margin-bottom: 25px;
}

/* --- CORRECTION LIENS (Sauf boutons) --- */
.entry-content a:not(.elementor-button):not(.button):not(.wp-block-button__link) {
    color: #bc0a0f; /* VOTRE ROUGE */
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

/* Hover des liens textes */
.entry-content a:not(.elementor-button):not(.button):not(.wp-block-button__link):hover {
    color: #ffffff !important;
    background-color: #bc0a0f; /* Surlignage ROUGE */
    text-decoration: none;
    padding: 0 4px;
    border-radius: 4px;
}

/* --- STYLE SPÉCIAL POUR LES BOUTONS --- */
.entry-content .elementor-button, 
.entry-content .wp-block-button__link,
.entry-content .button {
    text-decoration: none !important;
    background-color: #bc0a0f !important; /* Bouton ROUGE */
    color: #ffffff !important;
    padding: 12px 25px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    display: inline-block;
    margin: 10px 0;
    border: none !important;
}

/* Hover des boutons (Rouge -> Noir) */
.entry-content .elementor-button:hover, 
.entry-content .wp-block-button__link:hover,
.entry-content .button:hover {
    background-color: #000000 !important; /* Noir au survol */
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* --- 2. TITRES (H2, H3, H4) --- */

.entry-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: #111111; /* Noir quasi pur */
    margin-top: 50px;
    margin-bottom: 20px;
    line-height: 1.3em;
    border-left: 5px solid #bc0a0f; /* Bordure ROUGE */
    padding-left: 20px;
}

.entry-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #222222;
    margin-top: 35px;
    margin-bottom: 15px;
}

.entry-content h4 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555555; /* Gris moyen */
    margin-top: 30px;
}

/* --- 3. LISTES À PUCES & NUMÉROTÉES --- */

.entry-content ul, .entry-content ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

/* Puces (UL) */
.entry-content ul li {
    font-size: 17px;
    line-height: 1.6em;
    margin-bottom: 12px;
    list-style-type: none;
    position: relative;
    padding-left: 10px;
}

.entry-content ul li::before {
    content: "•";
    color: #bc0a0f; /* Puce ROUGE */
    font-weight: bold;
    font-size: 24px;
    position: absolute;
    left: -20px;
    top: -5px;
}

/* Listes numérotées (OL) */
.entry-content ol li {
    font-size: 17px;
    line-height: 1.6em;
    margin-bottom: 12px;
    padding-left: 5px;
}
.entry-content ol li::marker {
    color: #bc0a0f; /* Chiffre ROUGE */
    font-weight: 800;
    font-size: 18px;
}

/* --- 4. IMAGES --- */
.entry-content img {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin: 30px 0;
    height: auto;
    max-width: 100%;
}

/* --- 5. CITATIONS (BLOCKQUOTE) --- */
.entry-content blockquote {
    background-color: #f9f9f9; /* Gris très clair */
    border-left: 4px solid #bc0a0f; /* Bordure ROUGE */
    margin: 40px 0;
    padding: 25px 30px;
    font-style: italic;
    font-size: 18px;
    color: #444;
    border-radius: 0 8px 8px 0;
}

/* --- 6. TABLEAUX --- */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    font-size: 16px;
}

.entry-content thead tr {
    background-color: #111111; /* En-tête Noir */
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

.entry-content th, .entry-content td {
    padding: 15px 20px;
}

.entry-content tbody tr {
    border-bottom: 1px solid #eeeeee;
}

.entry-content tbody tr:nth-of-type(even) {
    background-color: #f8f8f8;
}

/* Survol du tableau : légère teinte rouge très pâle */
.entry-content tbody tr:hover {
    background-color: #fff5f5; 
}

/* Boîtes neutres (gris très léger, pas de couleur vive) */
.art-neutral {
    background-color: #f9fafb;
    border-color: #e5e7eb;
	border-left: 3px dashed;
	padding-left: 15px;
}
.highlight-url {
    display: block;
    background-color: #ffffff;
    color: #d63031;
    font-size: 1.6em !important;
    font-weight: 800;
    text-align: center;
    padding: 15px;
    margin: 15px 0;
    border: 2px dashed #1a2b4c;
    border-radius: 6px;
    word-break: break-all;
}

/* --- 2. FAQ STYLISÉE --- */

.single-post .entry-content details.custom-faq {
    background: #ffffff;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.single-post .entry-content details.custom-faq summary {
    background-color: #f0f4f8;
    color: #000;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Flèche +/- */
.single-post .entry-content details.custom-faq summary::after {
    content: "+";
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 10px;
}
.single-post .entry-content details.custom-faq[open] summary::after {
    content: "-";
}

.single-post .entry-content details.custom-faq div.faq-content {
    padding: 20px;
    color: #444;
    background-color: #fff;
    border-top: 1px solid #eee;
}
.single-post .entry-content .boite {
    padding-left: 15px;
	padding-top: 5px;
    border: 3px dashed;
    position: relative;
	background-color: #fafafa;
	border-color: #1a2b4c;
}


/* --- 1. BOITES D'ALERTES --- */

.single-post .entry-content .alert-box {
    padding: 15px 20px 15px 50px;
    margin-bottom: 25px;
    border-radius: 4px;
    border-left: 6px solid;
    position: relative;
    font-size: 0.95em;
    line-height: 1.6;
}

.single-post .entry-content .alert-box::before {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    font-weight: bold;
    font-family: sans-serif;
}

/* Info (Bleu) */
.single-post .entry-content .alert-box.info {
    background-color: #eef4fc;
    border-color: #1a2b4c; /* Ton bleu foncé */
    color: #2c3e50;
}
.single-post .entry-content .alert-box.info::before {
    content: "\2139"; /* Code universel pour "i" */
    color: #1a2b4c;
}
/* LIRE (Bleu) sans icone*/
.single-post .entry-content .alert-box.lire {
	padding: 10px 10px 10px 10px !important;
    margin-bottom: 10px !important;
    background-color: #eef4fc;
    border-color: #1a2b4c; /* Ton bleu foncé */
    color: #2c3e50;
}

/* Succès (Vert) */
.single-post .entry-content .alert-box.success {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #14532d;
}
.single-post .entry-content .alert-box.success::before {
    content: "\2713"; /* Check mark */
    color: #22c55e;
}

/* Attention (Orange) */
.single-post .entry-content .alert-box.warning {
    background-color: #fff7ed;
    border-color: #f97316;
    color: #7c2d12;
}
.single-post .entry-content .alert-box.warning::before {
    content: "\26A0"; /* Warning sign */
    color: #f97316;
}

/* Danger (Rouge) */
.single-post .entry-content .alert-box.danger {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #7f1d1d;
}
.single-post .entry-content .alert-box.danger::before {
    content: "\2716"; /* Croix */
    color: #ef4444;
}
/* =========================================
   9. BLOC PUB AMAZON (Version 50/50 + Titre Coloré)
   ========================================= */

/* --- Conteneur Global --- */
.entry-content .ad-amazon-compact {
    margin: 20px 0;
    padding: 15px;
    border-radius: 12px;
    background-color: #1a2b4c;
    position: relative;
    overflow: hidden;
    color: #fff !important;
    font-family: system-ui, -apple-system, sans-serif;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

/* --- HAUT : Titre & Sous-titre --- */
.ad-header {
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.ad-amazon-compact h3 {
    background: none !important;
    border: none !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    display: block !important;
    text-transform: uppercase;
    font-size: 30px !important; /* Gros titre */
    font-weight: 900 !important;
    line-height: 1.1;
    /* Pas de couleur ici pour laisser les styles Standard/Anime décider */
}

.ad-amazon-compact p.ad-subtitle {
    color: #ccc !important;
    font-size: 16px !important;
    margin: 0 !important;
}

/* --- MILIEU : GRILLE 50% / 50% --- */
.ad-body-grid {
    display: grid !important;
    grid-template-columns: 45% 1fr !important; /* 50% Image / 50% Reste */
    gap: 15px !important;
    align-items: center !important;
    margin-bottom: 15px;
    width: 100% !important;
}

/* Colonne Image */
.ad-img-item {
    width: 100% !important;
    display: block !important;
}

.ad-amazon-compact .ad-img-item img {
    width: 100% !important; 
    height: auto !important;
    display: block !important;
    border-radius: 8px !important;
    margin: 0 !important; 
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* Colonne Texte */
.ad-list-item {
    width: 100% !important;
    text-align: left !important;
}

.ad-amazon-compact ul {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-left : -15px !important;
    display: block !important;
}

.ad-amazon-compact ul li {
    list-style: none !important;
    margin-bottom: 12px;
    padding-left: 40px !important;
    color: #eee !important;
    font-weight: 500;
	background: none !important;
	border-left: none;
}

.ad-amazon-compact ul li::before {
    content: "✅ " !important;
    margin-right: 10px;
    font-size: 1.1em;
}

.ad-amazon-compact strong {
    color: #fff !important;
    font-weight: 800 !important;
}

/* --- BAS : Bouton Large --- */
.entry-content .ad-btn-full {
    display: block;
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
    border-radius: 6px;
    border: none;
    box-sizing: border-box;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, filter 0.2s;
}

.entry-content .ad-btn-full:hover {
    filter: brightness(110%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* --- DISCLAIMER --- */
.ad-disclaimer {
    font-size: 13px !important;
    color: #ccc !important; /* Gris clair lisible */
    text-align: center;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    opacity: 0.9;
}

/* --- STYLES COULEURS (C'est ici que la couleur du titre est définie) --- */

/* Standard (Bleu) */
.style-standard { background-color: #1a2b4c; border-color: #bc0a0f; border: 4px solid #bc0a0f; }
.style-standard h3 { color: #28c2f6 !important; } /* TITRE BLEU */
.style-standard ul li { font-size: 20px !important; line-height: 2.0; }
.style-standard .ad-btn-full { background-color: #00A8E1; border-left: none; color: #fff !important; }
/* Verrouiller la boîte du bouton dans .style-standard */
.entry-content .style-standard a.ad-btn-full,
.entry-content .style-standard a.ad-btn-full:hover {
    display: block !important; /* ou block si tu préfères toute la largeur */
    padding: 16px 24px !important;    /* marge haut/bas + gauche/droite */
    line-height: 1.2 !important;
    margin-top: 5px !important;
    border: 0 !important;
    box-sizing: border-box !important;

    background-color: #00A8E1 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Effet hover visuel, sans toucher à la taille */
.entry-content .style-standard a.ad-btn-full:hover {
    filter: brightness(110%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: none; /* pour l’instant on coupe le translateY pour simplifier */
}


/* Anime (Violet) */
.style-anime { background-color: #151525; border-color: #9b59b6; border: 4px solid #e0bbff; }
.style-anime h3 { color: #e0bbff !important;  } /* TITRE VIOLET CLAIR */
.style-anime ul li { font-size: 18px !important; line-height: 1.5; }
.style-anime .ad-btn-full { background: linear-gradient(90deg, #8e44ad 0%, #9b59b6 100%); color: #fff !important; }

/* --- STYLE 3 : SEEDBOX (Blanc & Compact) --- */
.style-seedbox { background-color: #121212; border-color: #bc0a0f; border: 4px solid #bc0a0f; }

.style-seedbox h3 { font-size: 22px; color: #fff !important; text-shadow: 0 0 10px rgba(255, 255, 255, 0.4); }

.entry-content .ad-amazon-compact.style-seedbox a.ad-btn-full,
.entry-content .ad-amazon-compact.style-seedbox a.ad-btn-full:hover {
    display: block !important;
    padding: 16px 24px !important;
    line-height: 1.2 !important;
    margin-top: 5px !important;
    border: 0 !important;
    box-sizing: border-box !important;
    background-color: #fff !important;
    color: #000000 !important;
    text-decoration: none !important;
}

/* Effet hover visuel, sans toucher à la taille */
.entry-content .ad-amazon-compact.style-seedbox a.ad-btn-full:hover {
  color: #121212 !important;
	font-size: 1.2em;
	filter: brightness(110%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: none; /* pour l’instant on coupe le translateY pour simplifier */
}

/* --- OVERRIDE : Cassage de la grille uniquement pour ce style --- */
.style-seedbox .ad-body-grid {
    display: block !important; /* On annule la grille 50/50 */
    text-align: center !important;
    margin-bottom: 15px !important;
}

.style-seedbox .ad-img-item {
    width: 100% !important;
    display: block !important;
}

.style-seedbox .ad-img-item img {
    margin: 0 auto !important; /* Centre la bannière */
    width: auto !important; /* Garde la taille réelle */
    max-width: 100% !important; /* Responsive */
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* On cache la colonne de texte (liste) au cas où elle traîne */
.style-seedbox .ad-list-item {
    display: none !important;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .ad-body-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 20px !important;
    }
    .ad-list-item {
        text-align: left !important;
        padding-left: 10px;
    }
    .entry-content .ad-amazon-compact h3 {
        font-size: 24px !important;
    }
}

