/* ==========================================
   STYLE SPECIFIQUE PAGES RUBRIQUES / BLOG
   TchatPassion.com
   ========================================== */

:root {
    --tp-blue: #29B6E8;
    --tp-pink: #F0568A;
    --tp-dark: #1e293b;
    --tp-text: #334155;
    --tp-bg-soft: #f8fafc;
    --tp-card-bg: #ffffff;
    --tp-radius: 12px;
    --tp-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* Base Body & Reset */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--tp-bg-soft);
    color: var(--tp-text);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* En-tête simplifié pour les rubriques */
.tp_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tp_logo_link {
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--tp-blue);
}

.tp_logo_link strong {
    color: var(--tp-pink);
}

.tp_header nav a {
    color: var(--tp-text);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.tp_header nav a:hover {
    color: var(--tp-pink);
}

/* Conteneur principal */
.tp_main_content {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 20px;
}

article {
    background: var(--tp-card-bg);
    padding: 40px;
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow);
    border: 1px solid #e2e8f0;
}

/* Typographie */
h1 {
    color: var(--tp-dark);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--tp-blue), var(--tp-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    color: var(--tp-dark);
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tp-bg-soft);
}

p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #475569;
}

p strong {
    color: var(--tp-dark);
}

/* Listes à puces */
ul {
    padding-left: 0;
    list-style: none;
    margin: 25px 0;
}

ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #475569;
}

ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--tp-pink);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Emplacement Google AdSense */
.tp_ad_container {
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 15px;
    margin: 30px 0 !important;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Bloc d'appel à l'action (CTA) */
.tp_cta_box {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
}

.tp_btn_primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--tp-blue) 0%, var(--tp-pink) 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(240, 86, 138, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tp_btn_primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 86, 138, 0.4);
    color: #ffffff;
}

/* Responsivité Mobile */
@media (max-width: 768px) {
    .tp_header {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .tp_header nav a {
        margin: 0 8px;
    }

    .tp_main_content {
        margin: 20px auto;
        padding: 0 12px;
    }

    article {
        padding: 22px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .tp_btn_primary {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 14px 20px;
    }
}

/* Emplacement Google AdSense corrigé */
.tp_ad_container {
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 15px;
    margin: 30px 0 !important;
    min-height: 90px;
    width: 100%; /* Force la largeur pour éviter availableWidth=0 */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Force l'élément AdSense à occuper l'espace du conteneur */
.tp_ad_container .adsbygoogle {
    width: 100% !important;
    min-width: 250px;
    display: block !important;
}

/* ==========================================
   STYLE DU PIED DE PAGE (FOOTER)
   TchatPassion.com
   ========================================== */

.tp_footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 50px 20px 20px 20px;
    margin-top: 60px;
    font-size: 0.95rem;
}

.tp_footer_inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
}

.tp_footer_brand .tp_logo_svg {
    max-width: 220px;
    height: auto;
    margin-bottom: 15px;
}

.tp_footer p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.tp_footer_col h4 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 18px;
    position: relative;
}

.tp_footer_col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #29B6E8;
    margin-top: 8px;
}

.tp_footer_col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tp_footer_col ul li {
    margin-bottom: 10px;
    padding-left: 0 !important;
}

/* Annule les puces personnalisées des rubriques dans le footer */
.tp_footer_col ul li::before {
    content: none !important;
}

.tp_footer_col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tp_footer_col a:hover {
    color: #F0568A;
}

.tp_footer_bottom {
    max-width: 1100px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .tp_footer_inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .tp_footer_inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}