/* ==========================================================
   SP Démarches — Styles publics v2.1
   Design épuré, fond blanc, police héritée du thème WordPress
   ========================================================== */

/* ---- Reset & base ---- */
.spd-wrapper {
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    width: 100%;
    background: transparent;
}
.spd-wrapper *, .spd-wrapper *::before, .spd-wrapper *::after {
    box-sizing: inherit;
}

/* =====================================================
   HEADER — bandeau bleu marine
   ===================================================== */
.spd-header {
    background: #f2f3f5;
    padding: 32px 36px 0;
    border-radius: 8px 8px 0 0;
    border: 0.5px solid #e2e5ea;
    border-bottom: none;
}

.spd-titre {
    font-size: 1.4em;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 6px;
    line-height: 1.3;
}

.spd-sous-titre {
    font-size: 0.85em;
    color: #6b7280;
    margin: 0 0 26px;
}

.spd-sous-titre strong {
    color: #1e1e1e;
    font-weight: 600;
}

/* ---- Barre de recherche ---- */
.spd-search-bar {
    display: flex;
    margin-bottom: 30px;
}

.spd-search-input {
    flex: 1;
    padding: 12px 18px;
    border: 0.5px solid #d0d4da;
    border-right: none;
    font-size: 0.9em;
    font-family: inherit;
    background: #fff;
    color: #1e1e1e;
    border-radius: 4px 0 0 4px;
    outline: none;
    min-width: 0;
}

.spd-search-btn {
    padding: 12px 24px;
    background: var(--spd-accent, #1a3a6b);
    color: #fff;
    border: 0.5px solid var(--spd-accent, #1a3a6b);
    font-size: 0.85em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    white-space: nowrap;
    transition: background 0.15s;
}

.spd-search-btn:hover {
    background: var(--spd-accent-dk, #132e57);
}

/* ---- Résultats de recherche ---- */
.spd-search-results {
    background: #fff;
    border: 0.5px solid #e2e5ea;
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.spd-search-results[hidden] { display: none; }

.spd-search-result-item {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    color: #1e1e1e;
    border-bottom: 0.5px solid #e2e5ea;
    transition: background 0.1s;
}

.spd-search-result-item:last-child { border-bottom: none; }
.spd-search-result-item:hover { background: #f0f4ff; }
.spd-search-result-item strong { display: block; color: var(--spd-accent, #1a3a6b); font-weight: 600; font-size: 0.9em; }
.spd-search-result-item span { font-size: 0.8em; color: #6b7280; }

/* =====================================================
   ONGLETS Particuliers / Associations / Pro
   ===================================================== */
.spd-category-tabs {
    display: flex;
    background: #e8eaed;
    border-left: 0.5px solid #e2e5ea;
    border-right: 0.5px solid #e2e5ea;
}

.spd-tab {
    padding: 13px 22px;
    font-size: 0.85em;
    font-family: inherit;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.spd-tab:hover { color: #1e1e1e; }
.spd-tab.active { color: var(--spd-accent, #1a3a6b); border-bottom-color: var(--spd-accent, #1a3a6b); font-weight: 600; }

/* =====================================================
   GRILLE DES THÈMES
   ===================================================== */
.spd-themes-grid {
    list-style: none !important;
    padding: 28px;
    margin: 0;
    background: #f5f6f8;
    border: 0.5px solid #e2e5ea;
    border-top: none;
    border-radius: 0 0 8px 8px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.spd-theme-card { margin: 0; }

.spd-theme-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    padding: 28px 16px 24px;
    background: #fff;
    border: 0.5px solid #e2e5ea;
    border-top: 2px solid transparent;
    border-radius: 0;
    text-decoration: none;
    color: #1e1e1e;
    font-weight: 500;
    font-size: 0.9em;
    line-height: 1.45;
    transition: border-top-color 0.2s, box-shadow 0.2s, color 0.2s;
    min-height: 130px;
}

.spd-theme-link:hover {
    border-top-color: var(--spd-hover, #a0bd50);
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    color: var(--spd-hover, #a0bd50);
}

/* Icône SVG dans la card thème */
.spd-theme-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spd-theme-icon svg {
    width: 36px;
    height: 36px;
}

/* =====================================================
   FIL D'ARIANE
   ===================================================== */
.spd-breadcrumb {
    font-size: 0.82em;
    color: #6b7280;
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 0.5px solid #e2e5ea;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.spd-breadcrumb a {
    color: var(--spd-accent, #1a3a6b);
    text-decoration: none;
    font-weight: 500;
}

.spd-breadcrumb a:hover { text-decoration: underline; }

/* =====================================================
   TITRE DE PAGE THÈME / FICHE
   ===================================================== */
.spd-fiche-titre {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--spd-accent, #1a3a6b);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 0.5px solid #e2e5ea;
    line-height: 1.3;
}

/* =====================================================
   PAGE THÈME — liste des dossiers
   ===================================================== */
.spd-sous-dossier { margin-bottom: 32px; }

.spd-sd-titre {
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--spd-accent, #1a3a6b);
    margin: 0 0 10px;
    padding: 10px 14px;
    background: #f5f6f8;
    border-left: 3px solid var(--spd-accent, #1a3a6b);
}

.spd-fiches-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    border: 0.5px solid #e2e5ea;
    border-radius: 4px;
    overflow: hidden;
}

.spd-fiches-list li {
    margin: 0;
    border-bottom: 0.5px solid #e2e5ea;
}

.spd-fiches-list li:last-child { border-bottom: none; }

.spd-fiche-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    text-decoration: none;
    color: #1e1e1e;
    font-size: 0.9em;
    background: #fff;
    transition: background 0.12s, color 0.12s;
}

.spd-fiche-link:hover {
    background: #f0f4ff;
    color: var(--spd-accent, #1a3a6b);
}

.spd-fiche-link .spd-theme-icon {
    width: auto;
    height: auto;
    color: var(--spd-accent, #1a3a6b);
    font-size: 10px;
    opacity: 0.5;
    flex-shrink: 0;
}

.spd-dossier-link { font-weight: 500; }

/* =====================================================
   FICHE — contenu
   ===================================================== */
.spd-introduction {
    background: #f0f4ff;
    border-left: 3px solid var(--spd-accent, #1a3a6b);
    padding: 16px 20px;
    margin-bottom: 28px;
    font-size: 0.95em;
    line-height: 1.65;
}

.spd-para { margin: 0 0 14px; }

.spd-chapitre-titre {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--spd-accent, #1a3a6b);
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid #e2e5ea;
}

.spd-situation {
    margin-bottom: 28px;
    border: 0.5px solid #e2e5ea;
    border-radius: 6px;
    overflow: hidden;
}

.spd-situation-titre {
    background: var(--spd-accent, #1a3a6b);
    color: #fff;
    padding: 12px 20px;
    margin: 0;
    font-size: 0.95em;
    font-weight: 600;
}

.spd-situation-body { padding: 20px; }

.spd-liste { margin: 0 0 14px; padding-left: 22px; }
.spd-liste li { margin-bottom: 6px; }

.spd-tableau-wrapper { overflow-x: auto; margin-bottom: 20px; }

.spd-tableau {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88em;
    border: 0.5px solid #e2e5ea;
}

.spd-tableau th {
    background: var(--spd-accent, #1a3a6b);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border: 0.5px solid rgba(255,255,255,0.15);
}

.spd-tableau td {
    padding: 9px 14px;
    border: 0.5px solid #e2e5ea;
}

.spd-tableau tr:nth-child(even) td { background: #f9f9fb; }

.spd-attention, .spd-anoter {
    border-radius: 4px;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 0.9em;
}

.spd-attention { background: #fffbeb; border-left: 3px solid #f59e0b; }
.spd-anoter   { background: #f0fdf4; border-left: 3px solid #22c55e; }

.spd-attention strong, .spd-anoter strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---- Services en ligne ---- */
.spd-teleservices {
    background: #f0f4ff;
    border: 0.5px solid #c7d4f0;
    border-radius: 6px;
    padding: 20px 24px;
    margin: 24px 0;
}

.spd-teleservices h3,
.spd-liens-ext h3,
.spd-references h3 {
    margin: 0 0 14px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--spd-accent, #1a3a6b);
}

.spd-teleservices ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spd-btn-service {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--spd-accent, #1a3a6b);
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.88em;
    font-weight: 500;
    font-family: inherit;
    transition: opacity 0.15s;
}

.spd-btn-service:hover { opacity: 0.88; }

/* ---- Liens externes commentés ---- */
.spd-liens-ext {
    background: #f5f6f8;
    border: 0.5px solid #e2e5ea;
    border-radius: 6px;
    padding: 20px 24px;
    margin: 24px 0;
}

.spd-liens-ext ul,
.spd-references ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spd-liens-ext li,
.spd-references li {
    padding: 10px 0;
    border-bottom: 0.5px solid #e2e5ea;
    font-size: 0.9em;
}

.spd-liens-ext li:last-child,
.spd-references li:last-child { border-bottom: none; }

.spd-lien-ext {
    color: var(--spd-accent, #1a3a6b);
    font-weight: 500;
    text-decoration: none;
}

.spd-lien-ext:hover { text-decoration: underline; }

.spd-lien-source {
    display: block;
    font-size: 0.8em;
    color: #6b7280;
    margin-top: 2px;
}

/* ---- Références juridiques ---- */
.spd-references {
    background: #f5f6f8;
    border: 0.5px solid #e2e5ea;
    border-radius: 6px;
    padding: 20px 24px;
    margin: 24px 0;
    font-size: 0.85em;
}

.spd-references a { color: var(--spd-accent, #1a3a6b); }
.spd-ref-complement { color: #6b7280; }

/* ---- Informations locales ---- */
.spd-local-info {
    background: #f0f4ff;
    border: 0.5px solid #c7d4f0;
    border-left: 3px solid var(--spd-accent, #1a3a6b);
    padding: 20px 24px;
    margin: 28px 0;
}

.spd-local-titre {
    margin: 0 0 14px;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--spd-accent, #1a3a6b);
}

.spd-organisme {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 0.5px solid #c7d4f0;
    font-size: 0.9em;
}

.spd-organisme:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.spd-organisme strong { color: var(--spd-accent, #1a3a6b); }
.spd-organisme a { color: var(--spd-accent, #1a3a6b); }

/* ---- Mentions légales ---- */
.spd-footer-legal {
    margin-top: 36px;
    padding-top: 14px;
    border-top: 0.5px solid #e2e5ea;
    font-size: 0.75em;
    color: #9ca3af;
}

.spd-footer-legal a { color: #9ca3af; }
.spd-footer-legal a:hover { color: var(--spd-accent, #1a3a6b); }

/* ---- Notices ---- */
.spd-notice-setup {
    background: #fffbeb;
    border: 0.5px solid #fde68a;
    border-radius: 6px;
    padding: 20px 24px;
    font-size: 0.9em;
}

.spd-error {
    background: #fef2f2;
    border: 0.5px solid #fecaca;
    border-radius: 6px;
    padding: 20px 24px;
    font-size: 0.9em;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 640px) {
    .spd-header { padding: 20px 16px 0; }
    .spd-search-btn { padding: 12px 16px; font-size: 0.8em; }
    .spd-themes-grid { padding: 16px; gap: 10px; grid-template-columns: repeat(2, 1fr); }
    .spd-theme-link { min-height: 110px; padding: 20px 12px 16px; gap: 12px; }
    .spd-theme-icon { width: 36px; height: 36px; }
    .spd-theme-icon svg { width: 28px; height: 28px; }
    .spd-category-tabs { overflow-x: auto; }
    .spd-tab { padding: 11px 16px; }
    .spd-fiche-titre { font-size: 1.2em; }
    .spd-teleservices, .spd-liens-ext, .spd-references, .spd-local-info { padding: 14px 16px; }
    .spd-situation-body { padding: 14px 16px; }
}

@media (max-width: 380px) {
    .spd-themes-grid { grid-template-columns: 1fr; }
}

/* ---- Corrections ciblées v2.1.1 ---- */

/* Puces supprimées — renforcement contre les thèmes qui overrident */
.spd-themes-grid,
.spd-themes-grid li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.spd-themes-grid li::before,
.spd-themes-grid li::marker {
    display: none !important;
    content: none !important;
}

/* Icône SVG prend aussi la couleur verte au survol de la card */
.spd-theme-link:hover .spd-theme-icon svg {
    stroke: var(--spd-hover, #a0bd50);
    transition: stroke 0.2s;
}

/* Largeur 100% — renforcement */
.spd-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
}

/* Fond grille transparent */
.spd-themes-grid {
    background: transparent !important;
}

/* Espacement entre onglets et grille */
.spd-category-tabs {
    margin-bottom: 0;
}

/* ---- Corrections v2.1.2 ---- */

/* Header : flex pour aligner titre et logo */
.spd-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo service-public à droite — pas de filtre, visible sur fond clair */
.spd-logo-sp img {
    max-width: 240px;
    height: auto;
    filter: none;
    opacity: 1;
}

/* Header arrondi seulement en haut */
.spd-header {
    border-radius: 8px 8px 0 0 !important;
}

/* Grille : pas d'arrondi */
.spd-themes-grid {
    border-radius: 0 !important;
    border-top: 1px solid #d0d4da !important;
    padding-top: 20px !important;
}

/* Cards : angles droits partout */
.spd-theme-link {
    border-radius: 0 !important;
}
.spd-theme-link:hover {
    border-top-color: var(--spd-hover, #a0bd50) !important;
}

/* Onglet actif couleur accent */
.spd-tab.active {
    background: #fff;
}

/* ---- Corrections v2.1.3 ---- */

/* Pictos SVG en noir par défaut, vert au survol uniquement */
.spd-theme-icon svg {
    stroke: #1e1e1e !important;
    transition: stroke 0.2s;
}

.spd-theme-link:hover .spd-theme-icon svg {
    stroke: var(--spd-hover, #a0bd50) !important;
}

/* Texte des cards en noir par défaut */
.spd-theme-link {
    color: #1e1e1e !important;
}

.spd-theme-link:hover {
    color: var(--spd-hover, #a0bd50) !important;
}

/* Logo officiel : taille généreuse, bien aligné à droite */
.spd-logo-sp {
    flex-shrink: 0;
}

.spd-logo-sp img {
    max-width: 240px !important;
    width: 240px;
    height: auto;
}

/* ---- Corrections v2.1.4 ---- */

/* Espace sous la barre de recherche — forcé contre Divi */
.spd-wrapper .spd-search-bar {
    margin-bottom: 30px !important;
    display: flex !important;
}

/* Bouton Rechercher : couleur accent (bleu) et non la couleur du thème Divi */
.spd-wrapper .spd-search-btn {
    background: var(--spd-accent, #1a3a6b) !important;
    color: #fff !important;
    border-color: var(--spd-accent, #1a3a6b) !important;
}

.spd-wrapper .spd-search-btn:hover {
    background: var(--spd-accent-dk, #132e57) !important;
}

/* ---- Corrections v2.1.5 ---- */

/* Header sans fond — transparent comme la page */
.spd-wrapper .spd-header {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ---- Nouveaux blocs v2.1.6 ---- */

/* Où s'adresser */
.spd-ou-sadresser {
    background: #f5f6f8;
    border: 0.5px solid #e2e5ea;
    border-radius: 6px;
    padding: 20px 24px;
    margin: 24px 0;
}
.spd-ou-sadresser h3 {
    margin: 0 0 14px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--spd-accent, #1a3a6b);
}
.spd-organisme-item {
    padding: 14px 0;
    border-bottom: 0.5px solid #e2e5ea;
}
.spd-organisme-item:last-child { border-bottom: none; }
.spd-organisme-titre {
    font-size: 0.92em;
    font-weight: 600;
    color: var(--spd-accent, #1a3a6b);
    margin: 0 0 8px;
}
.spd-organisme-texte {
    font-size: 0.88em;
    line-height: 1.6;
    color: #444;
}
.spd-organisme-texte p { margin: 4px 0; }

/* Voir aussi */
.spd-voir-aussi {
    margin: 24px 0;
}
.spd-voir-aussi h3 {
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--spd-accent, #1a3a6b);
    margin: 0 0 10px;
    padding: 10px 14px;
    background: #f5f6f8;
    border-left: 3px solid var(--spd-accent, #1a3a6b);
}

/* Compléments DOM-TOM */
.spd-complement {
    background: #fff8f0;
    border: 0.5px solid #fde68a;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 0.9em;
}
.spd-complement-titre {
    font-size: 0.95em;
    font-weight: 600;
    margin: 0 0 10px;
    color: #92400e;
}

/* ---- Corrections v2.1.8 ---- */

/* Suppression totale des puces Divi sur TOUS les ul/li du plugin */
.spd-wrapper ul,
.spd-wrapper ol,
.spd-wrapper li {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.spd-wrapper ul li::before,
.spd-wrapper ul li::marker,
.spd-wrapper ol li::before,
.spd-wrapper ol li::marker {
    content: none !important;
    display: none !important;
}

/* Sauf les listes de contenu de fiche (spd-liste) qui ont besoin de puces */
.spd-wrapper .spd-liste {
    list-style: disc !important;
    padding-left: 22px !important;
}

.spd-wrapper .spd-liste li::marker {
    content: unset !important;
    display: unset !important;
}

/* Icône SVG inline dans les liens de fiche — remplace le ▶ texte */
.spd-fiche-link .spd-theme-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.4;
    font-size: 0;  /* cache le caractère texte ▶ */
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a3a6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.spd-fiche-link:hover .spd-theme-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0bd50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    opacity: 1;
}

/* ---- Date de vérification ---- */
.spd-meta-verif {
    font-size: 0.8em;
    color: #6b7280;
    margin: -12px 0 20px;
    padding-bottom: 16px;
    border-bottom: 0.5px solid #e2e5ea;
    font-style: italic;
}

.spd-meta-verif strong {
    font-weight: 600;
    font-style: normal;
    color: #444;
}

/* ---- Icônes SVG inline (services, références, adresses) ---- */
.spd-ico {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    flex-shrink: 0;
    margin-right: 6px;
    stroke: currentColor;
    position: relative;
    top: -1px;
}

/* Icône dans les boutons de service — hérite du blanc */
.spd-btn-service .spd-ico {
    stroke: #fff;
    width: 15px;
    height: 15px;
}

/* Icône dans les références — couleur accent */
.spd-ico-ref {
    stroke: var(--spd-accent, #1a3a6b);
    opacity: 0.7;
    width: 15px;
    height: 15px;
}

/* Icône pin organisme */
.spd-ico-pin {
    stroke: var(--spd-accent, #1a3a6b);
    width: 15px;
    height: 15px;
}

/* Icône carte complement */
.spd-ico-map {
    stroke: #92400e;
    width: 15px;
    height: 15px;
}

/* Références : alignement icône + lien */
.spd-references li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.spd-references li .spd-ico-ref {
    margin-top: 3px;
    margin-right: 0;
    flex-shrink: 0;
}

/* ---- Cards sommaire enrichies avec sous-thèmes ---- */

/* La card devient un bloc vertical complet */
.spd-theme-card {
    display: flex;
    flex-direction: column;
}

/* Le lien principal (icône + titre) reste en haut */
.spd-theme-link {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 16px 16px;
    min-height: auto;
    border-bottom: none !important;
    border-radius: 0 !important;
    border-top: 2px solid transparent;
}

.spd-theme-link:hover {
    border-top-color: var(--spd-hover, #a0bd50) !important;
}

.spd-theme-label {
    font-weight: 600;
    font-size: 0.9em;
    line-height: 1.4;
    color: inherit;
}

/* Liste des sous-thèmes en aperçu sous le titre */
.spd-theme-apercu {
    list-style: none !important;
    padding: 0 12px 14px !important;
    margin: 0 !important;
    background: #fff;
    border: 0.5px solid #e2e5ea;
    border-top: 0.5px solid #f0f0f0;
    flex: 1;
}

.spd-theme-apercu li {
    display: inline !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.spd-theme-apercu li::before,
.spd-theme-apercu li::marker {
    content: none !important;
    display: none !important;
}

.spd-theme-apercu a {
    font-size: 0.78em;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
    line-height: 1.8;
}

.spd-theme-apercu a:hover {
    color: var(--spd-hover, #a0bd50);
    text-decoration: underline;
}

/* Responsive : 2 colonnes sur mobile */
@media (max-width: 640px) {
    .spd-theme-apercu {
        display: none; /* Caché sur mobile pour garder des cards compactes */
    }
}

/* ---- Cards sommaire v2.2.2 ---- */

/* Titre en gras majuscules */
.spd-theme-label {
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.82em !important;
    color: #1e1e1e;
}

/* Le lien principal ne prend plus toute la hauteur — juste icône + titre */
.spd-theme-link {
    min-height: auto !important;
    padding: 20px 14px 12px !important;
    border: 0.5px solid #e2e5ea !important;
    border-top: 2px solid transparent !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    background: #fff;
}

/* Aperçu des sous-thèmes : dans le bloc, petit, gris */
.spd-theme-apercu {
    background: #fff !important;
    border: 0.5px solid #e2e5ea !important;
    border-top: none !important;
    padding: 0 14px 14px !important;
    margin: 0 !important;
}

.spd-theme-apercu li {
    display: inline !important;
}

.spd-theme-apercu a {
    font-size: 0.75em !important;
    color: #9ca3af !important;
    text-decoration: none !important;
    line-height: 1.7 !important;
}

.spd-theme-apercu a:hover {
    color: var(--spd-hover, #a0bd50) !important;
    text-decoration: none !important;
}

/* ---- Cards sommaire v2.2.3 ---- */

/* Grille : 3 colonnes max, blocs plus larges */
.spd-wrapper .spd-themes-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
}

/* Logo service-public plus grand */
.spd-logo-sp img {
    max-width: 300px !important;
    width: 300px !important;
}

/* Picto plus grand et plus épais */
.spd-theme-icon svg {
    width: 48px !important;
    height: 48px !important;
    stroke-width: 1.1 !important;
    stroke: #1a3a6b !important;
}

/* Titre en bleu marine, plus grand */
.spd-theme-label {
    font-size: 0.95em !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #1a3a6b !important;
    line-height: 1.4 !important;
}

/* Lien du thème : plus de padding vertical */
.spd-theme-link {
    padding: 28px 18px 16px !important;
    gap: 14px !important;
}

/* Sous-titres : gris foncé et plus grands */
.spd-theme-apercu a {
    font-size: 0.85em !important;
    color: #555 !important;
    line-height: 1.9 !important;
}

.spd-theme-apercu a:hover {
    color: var(--spd-hover, #a0bd50) !important;
}

/* ---- Cards sommaire v2.2.4 ---- */

/* Sous-titres centrés avec espace autour */
.spd-theme-apercu {
    text-align: center !important;
    padding: 10px 18px 20px !important;
}

.spd-theme-apercu a {
    line-height: 2 !important;
}

/* ---- Logo v2.3.2 ---- */
.spd-wrapper .spd-logo-sp img {
    max-width: 380px !important;
    width: 380px !important;
}

/* ---- Hover v3.0.7 : couleur de survol = couleur de la catégorie ---- */

/* Par défaut --spd-hover hérite de --spd-accent si non défini */
.spd-wrapper .spd-theme-link {
    --spd-hover: var(--spd-accent, #1a3a6b);
}

/* Survol : liseré + texte + icône dans la couleur de la catégorie */
.spd-wrapper .spd-theme-link:hover {
    border-top-color: var(--spd-hover) !important;
    color: var(--spd-hover) !important;
}

.spd-wrapper .spd-theme-link:hover .spd-theme-icon svg {
    stroke: var(--spd-hover) !important;
}

/* Sous-liens aperçu au survol */
.spd-wrapper .spd-theme-apercu a:hover {
    color: var(--spd-hover, var(--spd-accent, #1a3a6b)) !important;
}

/* Liens de fiches au survol */
.spd-wrapper .spd-fiche-link:hover {
    color: var(--spd-accent, #1a3a6b) !important;
}
