/**
 * Styles publics Postal Warmup - Design Premium
 */

:root {
    --pw-primary: #2271b1;
    --pw-success: #166534;
    --pw-warning: #9a3412;
    --pw-info: #0369a1;
    --pw-bg-light: #f8fafc;
    --pw-border: #e2e8f0;
    --pw-text-main: #1e293b;
    --pw-text-muted: #64748b;
}

/* Conteneur principal - Largeur de lecture optimale */
.uxnote-theme-shell {
    max-width: 800px !important;
    margin: 0 auto !important;
    line-height: 1.8 !important;
    color: var(--pw-text-main) !important;
    font-size: 17px !important;
}

/* Boutons et Liens */
.warmup-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--pw-btn-bg, var(--pw-primary));
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.warmup-btn:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* Blocs d'expertise (Call-outs via Blockquotes) */
.uxnote-theme-shell blockquote {
    margin: 25px 0 !important;
    padding: 20px 25px !important;
    border-radius: 12px !important;
    border: 1px solid var(--pw-border) !important;
    background: var(--pw-bg-light) !important;
    position: relative !important;
    font-style: normal !important;
}

.uxnote-theme-shell blockquote::before {
    display: none !important; /* Retirer les guillemets par défaut */
}

/* Call-out : Astuce (💡) */
.uxnote-theme-shell blockquote:has(strong:contains("💡")),
.uxnote-theme-shell blockquote:contains("💡") {
    border-left: 5px solid var(--pw-info) !important;
    background: #f0f9ff !important;
}

/* Call-out : Attention (⚠️) */
.uxnote-theme-shell blockquote:has(strong:contains("⚠️")),
.uxnote-theme-shell blockquote:contains("⚠️") {
    border-left: 5px solid var(--pw-warning) !important;
    background: #fff7ed !important;
}

/* Call-out : Action (✅) */
.uxnote-theme-shell blockquote:has(strong:contains("✅")),
.uxnote-theme-shell blockquote:contains("✅") {
    border-left: 5px solid var(--pw-success) !important;
    background: #f0fdf4 !important;
}

/* FAQ Interactive (Details/Summary) */
.uxnote-theme-shell details {
    margin-bottom: 12px;
    border: 1px solid var(--pw-border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: all 0.2s ease;
}

.uxnote-theme-shell details[open] {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.uxnote-theme-shell summary {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    color: var(--pw-text-main);
}

.uxnote-theme-shell summary::-webkit-details-marker {
    display: none;
}

.uxnote-theme-shell summary::after {
    content: "＋";
    font-size: 1.2rem;
    color: var(--pw-text-muted);
}

.uxnote-theme-shell details[open] summary::after {
    content: "－";
}

.uxnote-theme-shell details .faq-content {
    padding: 0 20px 20px 20px;
    color: var(--pw-text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Roadmap / Timeline (Listes ordonnées dans la section "Ce que tu vas apprendre") */
.uxnote-section-auto ol {
    list-style: none !important;
    counter-reset: roadmap-counter !important;
    padding-left: 0 !important;
    margin-top: 30px !important;
}

.uxnote-section-auto ol li {
    counter-increment: roadmap-counter !important;
    position: relative !important;
    padding-left: 50px !important;
    margin-bottom: 30px !important;
    min-height: 40px !important;
}

.uxnote-section-auto ol li::before {
    content: counter(roadmap-counter) !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 32px !important;
    height: 32px !important;
    background: var(--pw-primary) !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    z-index: 2 !important;
}

.uxnote-section-auto ol li::after {
    content: "" !important;
    position: absolute !important;
    left: 15px !important;
    top: 32px !important;
    width: 2px !important;
    height: calc(100% + 10px) !important;
    background: var(--pw-border) !important;
    z-index: 1 !important;
}

.uxnote-section-auto ol li:last-child::after {
    display: none !important;
}

.pw-public-stat {
    font-weight: 600;
    color: var(--pw-primary);
}

/* Badge Temps de Lecture */
.uxnote-reading-meta {
    border-bottom: 1px solid var(--pw-border);
    padding-bottom: 15px;
}

/* Sticky CTA Mobile */
.pw-sticky-cta {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 20px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom 0.3s ease-in-out;
}

.pw-sticky-cta.is-visible {
    bottom: 0;
}

.pw-sticky-cta .warmup-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .pw-sticky-cta {
        display: none !important;
    }
}

/* Barre de progression de lecture */
.pw-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
}

.pw-progress-bar {
    height: 4px;
    background: var(--pw-primary, #2271b1);
    width: 0%;
    transition: width 0.1s ease;
}

/* Bloc Partage WhatsApp */
.uxnote-whatsapp-share {
    margin: 40px 0;
    padding: 20px;
    border: 1px dashed #25d366;
    border-radius: 12px;
    background: #f0fff4;
    text-align: center;
}

.pw-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.pw-whatsapp-btn:hover {
    transform: scale(1.05);
    background: #128c7e;
}

