/* ---- Reset (preflight Tailwind desactive dans WindPress) ---- */
*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; padding: 0; font: inherit; }

/* ---- Typography ---- */
body { font-size: 18px; line-height: 1.6; }
.font-display { font-family: 'Playfair Display', serif; }
.font-sans { font-family: 'DM Sans', sans-serif; }

/* ---- Buttons ---- */
.btn-orange {
    background-color: #D6843A;
    color: white;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #D6843A;
}
.btn-orange:hover {
    background-color: #C96F24;
    border-color: #C96F24;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(214, 132, 58, 0.35);
}
.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.btn-outline-white:hover {
    border-color: white;
    background: rgba(255,255,255,0.08);
}

/* ---- Cards ---- */
.card-premium {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card-premium:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* ---- Stats ---- */
.stat-number {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    line-height: 1;
}

/* ---- Gradients ---- */
.gradient-violet {
    background: linear-gradient(135deg, #2A0A8A 0%, #150548 100%);
}
.gradient-hero {
    background: linear-gradient(160deg, #1E0866 0%, #2A0A8A 40%, #150548 100%);
}

/* ---- Grain texture ---- */
.subtle-grain { position: relative; }
.subtle-grain::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ---- Service icons ---- */
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(42,10,138,0.08) 0%, rgba(42,10,138,0.04) 100%);
    color: #2A0A8A;
}

/* ---- Metric bars ---- */
.metric-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(42,10,138,0.1);
    overflow: hidden;
}
.metric-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #2A0A8A, #D6843A);
}

/* ---- Consultant SEO page ---- */
.btn-outline-violet {
    border: 2px solid #2A0A8A;
    color: #2A0A8A;
    background: transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-outline-violet:hover {
    background-color: #2A0A8A;
    color: white;
}
.violet-gradient-bg {
    background: linear-gradient(135deg, #2A0A8A 0%, #1a0660 40%, #25007A 100%);
}
.hero-pattern {
    background-image: radial-gradient(circle at 20% 80%, rgba(42, 10, 138, 0.03) 0%, transparent 50%),
                       radial-gradient(circle at 80% 20%, rgba(214, 132, 58, 0.03) 0%, transparent 50%);
}
.subtle-grid {
    background-image: linear-gradient(rgba(42, 10, 138, 0.03) 1px, transparent 1px),
                       linear-gradient(90deg, rgba(42, 10, 138, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}
.stat-bar {
    background: linear-gradient(90deg, #2A0A8A, #D6843A);
    border-radius: 8px;
    height: 100%;
}
/* ---- Service cards ---- */
.card-service-main {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    position: relative;
    overflow: hidden;
}
.card-service-main:hover {
    box-shadow: 0 12px 40px rgba(42, 10, 138, 0.1);
    transform: translateY(-4px);
}
.service-number {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 1;
    color: rgba(42, 10, 138, 0.06);
    position: absolute;
    top: -8px;
    right: 16px;
    font-weight: 400;
}
.decision-row {
    position: relative;
    padding-left: 2rem;
}
.decision-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #2A0A8A, #D6843A);
    border-radius: 3px;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}
.decision-row:hover::before { opacity: 1; }
.hero-services-bg {
    background: linear-gradient(160deg, #F5F3F1 0%, #ede9e5 50%, #F5F3F1 100%);
}

.faq-icon { transition: transform 0.3s ease; }
.faq-icon.open { transform: rotate(180deg); }
.faq-card { transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.faq-card.active { box-shadow: 0 4px 24px rgba(42, 10, 138, 0.08); border-color: rgba(42, 10, 138, 0.1); }
details[open] .faq-icon { transform: rotate(180deg); }

/* ---- Page Résultats : onglets par spot de recherche ---- */
.resultats-tab {
    background: transparent;
    color: #6A6A6A;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
    cursor: pointer;
}
.resultats-tab:hover { color: #2A0A8A; }
.resultats-tab .tab-count {
    background: rgba(42,10,138,0.1);
    color: #2A0A8A;
}
.resultats-tab.tab-active {
    background: white;
    color: #2A0A8A;
    border-color: rgba(42,10,138,0.08);
    border-bottom: 1px solid white;
    box-shadow: 0 -4px 16px rgba(42,10,138,0.04);
}
.resultats-tab.tab-active i:first-child { color: #D6843A; }
.resultats-panel { animation: panel-fade 0.35s ease; }
@keyframes panel-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.scroll-mt-32 { scroll-margin-top: 128px; }

/* ---- Icônes réseaux sociaux (footer + contact) ---- */
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(42,10,138,0.06);
    color: #5A5A5A;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.social-icon:hover {
    background: #2A0A8A;
    color: white;
    transform: translateY(-1px);
}
.social-icon.social-icon-light {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.75);
}
.social-icon.social-icon-light:hover {
    background: #D6843A;
    color: white;
}

/* ---- Page Contact : inputs formulaire ---- */
.cg-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    color: #1F1F1F;
    background: #F5F3F0;
    border: 1px solid rgba(42,10,138,0.1);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    line-height: 1.4;
}
.cg-input:focus {
    outline: none;
    background: white;
    border-color: #2A0A8A;
    box-shadow: 0 0 0 3px rgba(42,10,138,0.08);
}
.cg-input::placeholder { color: #A0A0A0; }
textarea.cg-input { resize: vertical; min-height: 120px; }
select.cg-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%232A0A8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ---- Pages légales : design dark (mentions-legales, politique-confidentialite) ---- */
.legal-dark-wrap {
    position: relative;
    padding: 4.5rem 1.5rem 5rem;
    color: rgba(255,255,255,0.85);
    background: #0A0520;
    background-image:
        radial-gradient(ellipse 900px 700px at 85% 5%, rgba(167,139,250,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 700px 500px at 0% 100%, rgba(42,10,138,0.22) 0%, transparent 60%),
        linear-gradient(180deg, #0A0520 0%, #12072E 50%, #0A0520 100%);
    overflow: hidden;
}
.legal-dark-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.legal-dark-container {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}
.legal-dark-h1 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2.25rem, 4vw, 3rem);
    color: white;
    margin: 0 0 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.legal-dark-h1 .accent {
    background: linear-gradient(90deg, #A78BFA 0%, #F472B6 60%, #F97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.legal-dark-updated {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 2.75rem;
}
.legal-dark-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.015) 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 2rem 1.75rem 2.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
}
@media (min-width: 640px) {
    .legal-dark-card { padding: 2.25rem 2.5rem 2.5rem; }
}
.legal-dark-head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}
.legal-dark-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.legal-dark-icon[data-tint="purple"] { background: rgba(167,139,250,0.12); color: #A78BFA; }
.legal-dark-icon[data-tint="blue"]   { background: rgba(96,165,250,0.12); color: #60A5FA; }
.legal-dark-icon[data-tint="green"]  { background: rgba(74,222,128,0.12); color: #4ADE80; }
.legal-dark-icon[data-tint="orange"] { background: rgba(251,146,60,0.14); color: #FB923C; }
.legal-dark-icon[data-tint="pink"]   { background: rgba(244,114,182,0.12); color: #F472B6; }
.legal-dark-icon[data-tint="teal"]   { background: rgba(45,212,191,0.12); color: #2DD4BF; }
.legal-dark-icon[data-tint="yellow"] { background: rgba(250,204,21,0.12); color: #FACC15; }
.legal-dark-h2 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
    margin: 0;
    line-height: 1.3;
}
.legal-dark-h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.0625rem;
    color: white;
    margin: 1.75rem 0 0.75rem;
}
.legal-dark-body { font-size: 1rem; line-height: 1.7; }
.legal-dark-body p {
    color: rgba(255,255,255,0.72);
    margin: 0 0 1.1rem;
}
.legal-dark-body p:last-child { margin-bottom: 0; }
.legal-dark-body strong { color: rgba(255,255,255,0.95); font-weight: 600; }
.legal-dark-link {
    color: #A78BFA;
    text-decoration: none;
    border-bottom: 1px solid rgba(167,139,250,0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.legal-dark-link:hover { color: #F472B6; border-color: #F472B6; }
.legal-dark-body ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1.1rem;
}
.legal-dark-body ul li {
    color: rgba(255,255,255,0.72);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.35rem;
}
.legal-dark-body ul li::before {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 0.75rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #A78BFA;
}
.legal-dark-body ol {
    padding: 0;
    margin: 0.5rem 0 1.1rem;
    list-style: none;
    counter-reset: legitem;
}
.legal-dark-body ol li {
    color: rgba(255,255,255,0.72);
    padding-left: 2.25rem;
    position: relative;
    margin-bottom: 0.75rem;
    counter-increment: legitem;
}
.legal-dark-body ol li::before {
    content: counter(legitem);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    background: rgba(167,139,250,0.12);
    color: #A78BFA;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
}
.legal-dark-kv { margin: 0; }
.legal-dark-kv p {
    margin-bottom: 0.45rem;
    line-height: 1.6;
}
.legal-dark-callout {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(167,139,250,0.06);
    border-left: 3px solid #A78BFA;
    margin: 1.25rem 0 0;
}
.legal-dark-callout p { margin: 0; color: rgba(255,255,255,0.85); }
.legal-dark-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 0;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
}
.legal-dark-table th, .legal-dark-table td {
    text-align: left;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
}
.legal-dark-table th {
    background: rgba(255,255,255,0.04);
    color: white;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.legal-dark-table td {
    color: rgba(255,255,255,0.72);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.legal-dark-table tr:last-child td { border-bottom: none; }
.legal-dark-table td.accent { color: #A78BFA; font-weight: 600; }
.legal-dark-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}
.legal-dark-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    color: rgba(255,255,255,0.88);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.legal-dark-pill i { color: #A78BFA; font-size: 0.8125rem; }
.legal-dark-pill:hover {
    background: rgba(167,139,250,0.1);
    border-color: rgba(167,139,250,0.35);
    color: white;
}
.legal-dark-sub-icons li { list-style: none; }

/* Anciennes classes legal-content : conservées pour compatibilité si besoin */
.legal-content .legal-block {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(42,10,138,0.08);
}
.legal-content .legal-block:last-child { border-bottom: none; }
.legal-content .legal-block:first-child { padding-top: 0; }
.legal-card {
    background: #F5F3F0;
    border: 1px solid rgba(42,10,138,0.06);
    border-radius: 12px;
    padding: 1.5rem;
}
.legal-card dt { line-height: 1.5; }
.legal-card dd { line-height: 1.5; margin: 0; }
.legal-link {
    color: #2A0A8A;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}
.legal-link:hover { color: #D6843A; }


/* ---- Transitions ---- */
a, button { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; }

/* ---- Focus visible ---- */
a:focus-visible, button:focus-visible {
    outline: 2px solid #D6843A;
    outline-offset: 2px;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5F3F0; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

/* ---- Blog Gutenberg styles ---- */

/* Conteneur article : largeur de lecture optimale */
.entry-content { max-width: 720px; font-size: 18px; line-height: 1.75; color: #444; }

/* Headings */
.entry-content h2 { font-family: 'DM Sans', sans-serif; font-size: 1.75rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: #1F1F1F; scroll-margin-top: 140px; }
.entry-content h3 { font-family: 'DM Sans', sans-serif; font-size: 1.375rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: #1F1F1F; scroll-margin-top: 140px; }
.entry-content h4 { font-family: 'DM Sans', sans-serif; font-size: 1.125rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #1F1F1F; }

/* Paragraphes et inline */
.entry-content p { margin-bottom: 1.25rem; }
.entry-content strong { color: #1F1F1F; font-weight: 600; }
.entry-content em { font-style: italic; }
.entry-content a { color: #2A0A8A; text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: #D6843A; }

/* Listes */
.entry-content ul, .entry-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.entry-content ul { list-style-type: disc; }
.entry-content ol { list-style-type: decimal; }
.entry-content li { margin-bottom: 0.5rem; line-height: 1.6; }
.entry-content li::marker { color: #2A0A8A; }

/* Blockquote */
.entry-content blockquote { border-left: 4px solid #2A0A8A; padding: 1.25rem 1.5rem; margin: 2rem 0; background: #f9f8f7; border-radius: 0 8px 8px 0; }
.entry-content blockquote p { margin-bottom: 0; font-style: italic; color: #333; }
.entry-content blockquote cite { display: block; margin-top: 0.75rem; font-size: 0.875rem; color: #8A8A8A; font-style: normal; }

/* Images */
.entry-content img { border-radius: 0.5rem; margin: 1.5rem 0; height: auto; }
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption { font-size: 0.875rem; color: #8A8A8A; text-align: center; margin-top: 0.5rem; }

/* Alignements Gutenberg wide/full */
.entry-content .alignwide { max-width: 1000px; margin-left: -140px; margin-right: -140px; }
.entry-content .alignfull { max-width: none; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); width: 100vw; }
.entry-content .aligncenter { text-align: center; }
.entry-content .alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.entry-content .alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
@media (max-width: 1024px) {
    .entry-content .alignwide { max-width: 100%; margin-left: 0; margin-right: 0; }
}

/* Separateurs */
.entry-content hr,
.entry-content .wp-block-separator { border: none; height: 2px; background: linear-gradient(90deg, transparent, rgba(42,10,138,0.15), transparent); margin: 2.5rem 0; }
.entry-content .wp-block-separator.is-style-dots { background: none; text-align: center; }
.entry-content .wp-block-separator.is-style-dots::before { content: '···'; color: #2A0A8A; font-size: 1.5rem; letter-spacing: 1rem; }

/* Tables */
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 1rem; }
.entry-content th { background: rgba(42,10,138,0.06); font-weight: 600; color: #1F1F1F; text-align: left; padding: 0.75rem 1rem; border-bottom: 2px solid rgba(42,10,138,0.12); }
.entry-content td { padding: 0.75rem 1rem; border-bottom: 1px solid #eee; color: #444; }
.entry-content tr:hover td { background: rgba(42,10,138,0.02); }

/* Code */
.entry-content code { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.875em; background: rgba(42,10,138,0.06); color: #2A0A8A; padding: 0.15em 0.4em; border-radius: 4px; }
.entry-content pre { background: #1a1a2e; color: #e0e0e0; padding: 1.25rem 1.5rem; border-radius: 12px; overflow-x: auto; margin: 1.5rem 0; font-size: 0.875rem; line-height: 1.6; }
.entry-content pre code { background: none; color: inherit; padding: 0; font-size: inherit; }

/* Boutons Gutenberg */
.entry-content .wp-block-button__link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 12px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.entry-content .wp-block-button__link:not(.has-background) { background-color: #D6843A; color: white; }
.entry-content .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(214,132,58,0.35); }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 2px solid #2A0A8A; color: #2A0A8A; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #2A0A8A; color: white; }

/* Colonnes Gutenberg */
.entry-content .wp-block-columns { margin: 2rem 0; gap: 2rem; }

/* Galerie */
.entry-content .wp-block-gallery { margin: 2rem 0; gap: 0.75rem; }
.entry-content .wp-block-gallery img { border-radius: 8px; }

/* Cover block */
.entry-content .wp-block-cover { border-radius: 12px; margin: 2rem 0; min-height: 300px; }

/* Embed (YouTube, etc.) */
.entry-content .wp-block-embed { margin: 2rem 0; }
.entry-content .wp-block-embed__wrapper { border-radius: 12px; overflow: hidden; }

/* Callout / Group avec fond */
.entry-content .wp-block-group.has-background { border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0; }

/* Details / Accordion (WP 6.3+) */
.entry-content details { border: 1px solid rgba(42,10,138,0.1); border-radius: 12px; padding: 1rem 1.25rem; margin: 1rem 0; }
.entry-content details summary { font-weight: 600; color: #1F1F1F; cursor: pointer; }
.entry-content details[open] summary { margin-bottom: 0.75rem; }

/* ---- Astro callouts override (dark theme -> light theme) ---- */
/* Les articles importes d'Astro ont des <div> avec des classes Tailwind dark.
   On force les couleurs pour un fond clair. */
.entry-content div[class*="rounded-xl"],
.entry-content div[class*="rounded-lg"] {
    border-radius: 12px !important;
    padding: 1.25rem 1.5rem !important;
    margin: 1.5rem 0 !important;
    background: #f9f8f7 !important;
    border: 1px solid rgba(42,10,138,0.08) !important;
}
/* Forcer les textes a etre lisibles sur fond clair */
.entry-content div[class*="rounded-xl"] *,
.entry-content div[class*="rounded-lg"] * {
    color: #333 !important;
}
.entry-content div[class*="rounded-xl"] h4,
.entry-content div[class*="rounded-lg"] h4,
.entry-content div[class*="rounded-xl"] p.font-bold,
.entry-content div[class*="rounded-lg"] p.font-bold {
    color: #1F1F1F !important;
    font-weight: 700 !important;
}
.entry-content div[class*="rounded-xl"] ul,
.entry-content div[class*="rounded-lg"] ul {
    padding-left: 1.25rem !important;
    margin: 0.5rem 0 0 !important;
}
.entry-content div[class*="rounded-xl"] li,
.entry-content div[class*="rounded-lg"] li {
    font-size: 0.9375rem !important;
    color: #555 !important;
    margin-bottom: 0.25rem !important;
}
/* Variante : callouts avec icones/emoji en titre */
.entry-content div[class*="bg-green"] { border-left: 4px solid #22c55e !important; }
.entry-content div[class*="bg-yellow"],
.entry-content div[class*="from-yellow"] { border-left: 4px solid #D6843A !important; }
.entry-content div[class*="bg-red"],
.entry-content div[class*="from-red"] { border-left: 4px solid #ef4444 !important; }
.entry-content div[class*="bg-blue"],
.entry-content div[class*="from-blue"] { border-left: 4px solid #2A0A8A !important; }

/* ---- Images : empecher float et forcer block ---- */
.entry-content img { display: block; max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1.5rem 0; float: none !important; }
.entry-content figure { display: block; margin: 2rem 0; float: none !important; clear: both; }
.entry-content figure img { margin: 0; }

/* ---- Nettoyer les paragraphes vides generes par Gutenberg ---- */
.entry-content p:empty { display: none; }

/* ---- Listes : s'assurer que les marqueurs sont visibles ---- */
.entry-content ul { list-style: disc outside; padding-left: 1.75rem; }
.entry-content ol { list-style: decimal outside; padding-left: 1.75rem; }
.entry-content li { display: list-item; padding-left: 0.25rem; }

/* ---- Utilities ---- */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
