/* Webpratique — magazine editorial, Bootscore Child.
 * Style inspired by the supplied visual reference; no external fonts/assets.
 * This file replaces the previous design CSS to avoid conflicting overrides.
 */
:root {
  --wp-paper: #f1f1f0;
  --wp-ink: #242424;
  --wp-muted: #696969;
  --wp-panel: #fff;
  --wp-accent: #b61925;
  --wp-radius: 18px;
  --wp-frame-line: #d4d8dd;
	--wp-content-max-width: 1560px;
}
body {
  background: #fff;
  color: var(--wp-ink);
}
body, button, input, select, textarea { font-family: var(--wp-title-font); }
#masthead, #masthead .navbar { background: #fff; }
#masthead {
  border-bottom: 0;
}

.wp-header-stack {
  position: relative;
  z-index: 1020;
}

.wp-header-stack #masthead {
  position: relative;
  top: auto;
}

#masthead .navbar {
  --bs-navbar-padding-y: 4px;
  --bs-navbar-brand-padding-y: 2px;
}

#masthead .navbar-brand img {
  width: auto;
  height: var(--wp-header-logo-height, 40px);
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 992px) {
  .wp-header-stack {
    position: sticky;
    top: 0;
  }

  body.admin-bar .wp-header-stack {
    top: var(--wp-admin--admin-bar--height, 32px);
  }
}

@media (max-width: 991.98px) {
  #masthead .navbar-brand {
    min-width: 0;
    flex: 0 1 auto;
  }

  #masthead .navbar-brand img {
    max-width: min(100%, 250px);
    height: auto;
    max-height: min(var(--wp-header-logo-height, 40px), 40px);
  }

}
#masthead .navbar-brand, #masthead .nav-link { color: var(--wp-ink); }
#masthead .nav-link:hover { color: var(--wp-accent); }
#masthead .navbar-toggler { border-color: #ddd; }
#content.site-content {
  max-width: var(--wp-content-max-width);
  padding-block: 16px 24px !important;
}
.wp-home { min-width: 0; }
.wp-home > section { min-width: 0; }
.wp-home-heading { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 650; letter-spacing: -.04em; border: 0; margin: 0 0 15px; padding: 0; }
.wp-home-atlas { background: #fff; border-radius: var(--wp-radius); padding: clamp(12px, 2vw, 24px); margin-bottom: 18px !important; }
/* Do not change Atlas plugin internals. */
.wp-home-selection { margin-bottom: 22px !important; }
.wp-home-selection .wp-home-widget { margin: 0; }
.wp-selection { min-width: 0; }
.wp-selection-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(180px, auto)); gap: 8px; }
.wp-selection-item { position: relative; min-width: 0; min-height: 185px; border-radius: var(--wp-radius); overflow: hidden; background: #fff; isolation: isolate; }
.wp-selection-item:first-child { grid-row: span 2; min-height: 380px; }
.wp-selection-image { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; background: #e9e9e9; }
.wp-selection-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.70), rgba(0,0,0,.04) 68%); pointer-events: none; }
.wp-selection-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.wp-selection-item:hover .wp-selection-image img { transform: scale(1.025); }
.wp-selection-title { position: absolute; z-index: 1; left: 17px; right: 17px; bottom: 17px; margin: 0; font-family: var(--wp-title-font); font-weight: 500; font-size: clamp(1.1rem, 1.65vw, 1.6rem); line-height: 1.15; letter-spacing: -.035em; pointer-events: none; }
.wp-selection-title a { color: #fff; text-decoration: none; pointer-events: auto; }
.wp-selection-title a:hover { color: #fff; text-decoration: underline; }
.wp-selection-item:first-child .wp-selection-title { left: 25px; right: 25px; bottom: 25px; font-size: clamp(1.9rem, 3.3vw, 3.7rem); line-height: 1.04; }
.wp-home-columns { --bs-gutter-x: 16px; --bs-gutter-y: 16px; align-items: start; }
.wp-home-columns > * { min-width: 0; }
.wp-home-left .wp-home-widget, .wp-home-sidebar .wp-home-widget { margin-bottom: 16px; overflow-wrap: anywhere; }
/* Widgets retain their own colors (WeatherGrid, Mastodon etc.). */
.wp-home-widget-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.wp-home-news > .row { display: flex; flex-direction: column; }
.wp-home-news > .row > div { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; }
.wp-home-news .wp-home-card { display: grid !important; grid-template-columns: minmax(0, 34%) minmax(0, 1fr) !important; min-width: 0; width: 100%; height: auto; background: #fff; border: 0; border-radius: 15px; overflow: hidden; }
.wp-home-news .wp-home-card-image { display: block; width: 100%; height: 100%; min-height: 150px; aspect-ratio: auto; border-radius: 0; overflow: hidden; background: #e9e9e9; }
.wp-home-news .wp-home-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.wp-home-news .wp-home-card-body { min-width: 0; width: 100%; padding: clamp(12px, 1.7vw, 22px); }
.wp-home-news .wp-home-card-title { font-family: var(--wp-title-font); font-size: clamp(1.12rem, 1.7vw, 1.65rem); font-weight: 500; line-height: 1.16; letter-spacing: -.03em; margin-bottom: 10px; overflow-wrap: break-word; }
.wp-home-news .wp-home-card-title a { color: var(--wp-ink); text-decoration: none; }
.wp-home-news .wp-home-card-title a:hover { color: var(--wp-accent); }
.wp-home-news .wp-home-date { color: var(--wp-muted); font-size: .77rem; margin-bottom: 9px; }
.wp-home-news .wp-home-excerpt { font-size: .9rem; line-height: 1.5; margin: 0; overflow-wrap: break-word; }
@media (max-width: 991.98px) {
  .wp-selection-grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: auto; }
  .wp-selection-item:first-child { grid-column: span 2; grid-row: auto; min-height: 330px; }
  .wp-selection-item { min-height: 210px; }
}
@media (max-width: 575.98px) {
  #content.site-content { padding-left: 12px; padding-right: 12px; }
  .wp-home-atlas { padding: 12px; }
  .wp-selection-grid { gap: 7px; }
  .wp-selection-item { min-height: 155px; border-radius: 12px; }
  .wp-selection-item:first-child { min-height: 260px; }
  .wp-selection-item:first-child .wp-selection-title { font-size: 1.9rem; left: 15px; right: 15px; bottom: 15px; }
  .wp-selection-title { font-size: 1.05rem; left: 10px; right: 10px; bottom: 10px; }
  .wp-home-news .wp-home-card { grid-template-columns: minmax(0, 34%) minmax(0, 1fr) !important; }
  .wp-home-news .wp-home-card-image { min-height: 120px; }
  .wp-home-news .wp-home-card-body { padding: 11px; }
  .wp-home-news .wp-home-card-title { font-size: 1.04rem; }
  .wp-home-news .wp-home-excerpt { font-size: .81rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .wp-selection-image img { transition: none; } }




/* Webpratique: pages and posts with configurable right sidebars */
.wp-content-layout .row > * { min-width: 0; }
.wp-magazine-article { min-width: 0; }
.wp-magazine-article-title { font-family: var(--wp-title-font); font-weight: 500; line-height: 1.13; font-size: clamp(2rem, 3.2vw, 3.4rem); overflow-wrap: anywhere; }
.wp-magazine-meta { color: #747474; font-size: .88rem; }
.wp-magazine-content { overflow-wrap: anywhere; }
.wp-magazine-content img, .wp-content-sidebar img { max-width: 100%; height: auto; }
.wp-content-sidebar { min-width: 0; overflow-wrap: anywhere; }
.wp-content-sidebar .wp-home-widget { margin-bottom: 1rem; }
@media (max-width: 991.98px) { .wp-content-sidebar-column { width: 100%; } }

/* Native Bootscore post/page markup restored: editorial styling without removing hooks. */

.wp-content-layout .entry-content {overflow-wrap: anywhere;}
.wp-content-layout .entry-content img,
.wp-content-layout .entry-header img {max-width:100%;height:auto;}



/* ================================================================
   Webpratique — Articles : finition éditoriale (CSS uniquement)
   Ciblé sur single.php ; préserve pages, plugins et hooks Bootscore.
   ================================================================ */


body.single-post .wp-content-layout .entry-content {
  font-size: clamp(1rem, 1.1vw, 1.09rem);
  line-height: 1.8;
  color: #303030;
  overflow-wrap: anywhere;
}

body.single-post .wp-content-layout .entry-content > p,
body.single-post .wp-content-layout .entry-content > ul,
body.single-post .wp-content-layout .entry-content > ol {
  margin-bottom: 1.35em;
}







body.single-post .wp-content-layout .entry-content a {
  text-underline-offset: 3px;
}

body.single-post .wp-content-layout .entry-content :is(img, video, iframe) {
  max-width: 100%;
}

body.single-post .wp-content-layout .entry-content img {
  height: auto;
}

body.single-post .wp-content-layout .entry-content :is(figure, .wp-block-image) {
  max-width: 100%;
}

body.single-post .wp-content-layout .entry-content figcaption {
  color: #777;
  font-size: .82rem;
  line-height: 1.5;
  margin-top: 8px;
}

body.single-post .wp-content-layout .entry-content :is(pre, table, .wp-block-table) {
  max-width: 100%;
  overflow-x: auto;
}

body.single-post .wp-content-layout .entry-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #ececea;
}

body.single-post .wp-content-layout .entry-footer .pagination {
  flex-wrap: wrap;
  gap: 8px;
}

body.single-post .wp-content-layout .entry-footer :is(#comments, .comments-area) {
  margin-top: 26px;
}

body.single-post .wp-content-layout .entry-footer :is(.comment-list, .comment-form) {
  max-width: 100%;
}

body.single-post .wp-content-layout .entry-footer :is(input, textarea) {
  max-width: 100%;
}


 

/* Bloc auteur sous les articles */
.wp-single .wp-author-box {
  --wp-author-avatar-size: clamp(76px, 9vw, 102px);
  --wp-author-overhang: 32px;
  --wp-author-start: #007d70;
  --wp-author-end: #196a96;

  position: relative;
  margin: 28px 0 32px;
  padding: 24px clamp(16px, 3vw, 28px) 28px;
  border-radius: 24px;
 background: #202a37;
  box-shadow: 0 4px 8px rgb(32 37 50 / 12%);
  color: #fff;
  text-align: center;
  overflow-wrap: anywhere;


}

.wp-single .wp-author-box:has(.wp-author-avatar img) {
  margin-top: calc(24px + var(--wp-author-overhang));
  padding-top: calc(var(--wp-author-avatar-size) - var(--wp-author-overhang) + 14px);
}

.wp-single .wp-author-avatar {
  position: absolute;
  top: calc(-1 * var(--wp-author-overhang));
  left: 50%;
  transform: translateX(-50%);
}

.wp-single .wp-author-avatar img {
  display: block;
  width: var(--wp-author-avatar-size);
  height: var(--wp-author-avatar-size);
  border: 3px solid #eaf7f6;
  border-radius: 50%;
  object-fit: cover;
}

.wp-single .wp-author-name {
  margin: 0 0 8px;
  color: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.wp-single .wp-author-bio {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 575.98px) {
  .wp-single .wp-author-name {
    font-size: 1.3rem;
    font-weight: 600;
  }

  .wp-single .wp-author-bio {
    font-weight: 400;
  }
}

#page .wp-single .wp-author-box a:any-link {
  color: inherit;
  text-decoration-line: none !important;
  text-underline-offset: .16em;
}

#page .wp-single .wp-author-bio a:any-link:is(:hover, :focus-visible) {
  text-decoration-line: underline !important;
}

/* ==================================================
   Webpratique - Même conteneur pour pages et billets
   ================================================== */

body.page:not(.home) .wp-content-layout .site-main {
    min-width: 0;
    background: var(--wp-panel, #fff);
    border: 1px solid #e9e9e7;
    border-radius: 18px;
    padding: clamp(18px, 2.5vw, 38px);
}

/* Images des pages */
body.page:not(.home) .wp-content-layout .entry-content img {
    max-width: 100%;
    height: auto;
}

/* Mobile */
@media (max-width: 575.98px) {
    body.page:not(.home) .wp-content-layout .site-main {
        border-radius: 13px;
        padding: 17px 15px;
    }
}



/* ==================================================
   WEBPRATIQUE - ACCUEIL : DERNIERS ARTICLES
   Premier article large, suivants sur 2 colonnes
   ================================================== */

/* Grand conteneur blanc, comme les billets */
.wp-home-news {
    background: #fff;
    border: 1px solid #e9e9e7;
    border-radius: 18px;
    padding: clamp(18px, 2.5vw, 38px);
    min-width: 0;
}

/* Annuler l'ancienne disposition forcée */
.wp-home-news > .row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Deux colonnes pour les articles */
.wp-home-news > .row > .wp-home-news-item {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    min-width: 0;
}

/* Premier article sur toute la largeur */
.wp-home-news > .row > .wp-home-news-item:first-child {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Cartes : image au-dessus du texte */
.wp-home-news .wp-home-card {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #ededeb;
    border-radius: 14px;
    overflow: hidden;
}

/* Images des articles */
.wp-home-news .wp-home-card-image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.wp-home-news .wp-home-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Premier article : image plus panoramique */
.wp-home-news-item:first-child .wp-home-card-image {
    aspect-ratio: 2 / 1;
}

/* Corps des cartes */
.wp-home-news .wp-home-card-body {
    width: 100%;
    padding: 16px;
}

/* Premier article : titre plus grand */
.wp-home-news-item:first-child .wp-home-card-title {
    font-size: clamp(1.5rem, 2.4vw, 2.3rem);
}

/* Éviter les débordements */
.wp-home-news .wp-home-card-title,
.wp-home-news .wp-home-excerpt {
    overflow-wrap: anywhere;
}

/* Mobile : une seule colonne */
@media (max-width: 767.98px) {

    .wp-home-news {
        padding: 15px;
        border-radius: 13px;
    }

    .wp-home-news > .row > .wp-home-news-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .wp-home-news .wp-home-card-image,
    .wp-home-news-item:first-child .wp-home-card-image {
        aspect-ratio: 16 / 9;
    }

    .wp-home-news .wp-home-card-body {
        padding: 13px;
    }
}



/* Accueil : boucle des articles sans cadre extérieur */

.wp-home-news {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    min-width: 0;
}

/* Les cartes remplissent leur colonne */
.wp-home-news .wp-home-card {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

/* Images jusqu'aux bords */
.wp-home-news .wp-home-card-image {
    margin: 0;
    padding: 0;
}

/* Texte avec un peu d'air, sans excès */
.wp-home-news .wp-home-card-body {
    padding: 15px 17px 18px;
}

/* Titre de section */
.wp-home-news > .wp-home-heading {
    margin: 0 0 16px;
}





/* Grande carte Atlas : pleine largeur */
#content.site-content.wp-atlas-fullwidth {
    max-width: none;
    width: 100%;
}

.wp-atlas-fullwidth .wp-atlas-main,
.wp-atlas-fullwidth .wp-atlas-card {
    min-width: 0;
}

/* Carte Atlas sans sidebar — aligner la carte sur le contenu mobile */
@media (max-width: 767.98px) {
  #content.wp-atlas-fullwidth .entry-content > :has(.leaflet-container),
  #content.wp-atlas-fullwidth .entry-content .leaflet-container {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    margin-inline: 0 !important;
  }
}



/* ==================================================
   Réglages des titres
   Modifier les valeurs ici.
   ================================================== */

:root {
  --wp-title-font: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wp-title-weight: 650;
  --wp-title-spacing: normal;

  /* H1 des billets, pages et modèles Atlas */
  --wp-title-h1-size: 24px;
  --wp-title-h1-line-height: 1;
  --wp-title-h1-color: #242424;
  --wp-title-h1-icon: url("/wp-content/uploads/2025/06/favicon_titre.jpg");
  --wp-title-h1-icon-size: 52px;
  --wp-title-h1-icon-gap: 12px;

  /* Titres des cartes sur l’accueil */
  --wp-title-home-news-size: clamp(1.12rem, 1.7vw, 1.65rem);
  --wp-title-home-news-first-size: clamp(1.5rem, 2.4vw, 2.3rem);
  --wp-title-home-selection-size: clamp(1.1rem, 1.65vw, 1.6rem);
  --wp-title-home-selection-first-size: clamp(1.9rem, 3.3vw, 3.7rem);
  --wp-title-home-line-height: 1.15;
}

@media (max-width: 575.98px) {
  :root {
    --wp-title-home-news-size: 1.04rem;
    --wp-title-home-selection-size: 1.05rem;
    --wp-title-home-selection-first-size: 1.9rem;
  }
}

/* Application des réglages */

#content h1,
#main.wp-home .wp-home-card-title,
#main.wp-home .wp-selection-title {
  font-family: var(--wp-title-font);
  font-weight: var(--wp-title-weight);
  letter-spacing: var(--wp-title-spacing);
}

#content .entry-header h1.entry-title,
#page .page-col-center:has(.cgl-search-form) .entry-header .entry-title {
  font-size: var(--wp-title-h1-size);
  line-height: var(--wp-title-h1-line-height);
  color: var(--wp-title-h1-color);
  margin: 0 0 22px;
  min-height: var(--wp-title-h1-icon-size);
  align-content: center;
   padding: 0 0 10px calc(var(--wp-title-h1-icon-size) + var(--wp-title-h1-icon-gap));
  border-bottom: 1px solid var(--wp-frame-line, #d4d8dd);
  background: var(--wp-title-h1-icon) no-repeat left center
    / var(--wp-title-h1-icon-size) var(--wp-title-h1-icon-size);
  overflow-wrap: anywhere;
}

#main.wp-home .wp-home-card-title,
#main.wp-home .wp-selection-title {
  line-height: var(--wp-title-home-line-height);
}

#main.wp-home .wp-home-card-title {
  font-size: var(--wp-title-home-news-size);
}

#main.wp-home .wp-home-news-item:first-child .wp-home-card-title {
  font-size: var(--wp-title-home-news-first-size);
}

#main.wp-home .wp-selection-title {
  font-size: var(--wp-title-home-selection-size);
}

#main.wp-home .wp-selection-item:first-child .wp-selection-title {
  font-size: var(--wp-title-home-selection-first-size);
}

/* Archives de catégorie — panneau et titres Webpratique. */
body.archive #content #main,
body.error404 #content #main,
body.search #content #main {
  min-width: 0;
  background: var(--wp-panel, #fff);
  border: 1px solid var(--wp-frame-line, #d4d8dd);
  border-radius: var(--wp-radius, 18px);
  padding: clamp(12px, 1.5vw, 22px);
}

body.category #main > article.card {
  --bs-card-bg: var(--wp-panel, #fff);
  --bs-card-border-color: #e9e9e7;
  --bs-card-border-radius: 12px;
  overflow: hidden;
}

body.category #main > article.card .blog-post-title {
  font-family: var(--wp-title-font, system-ui, sans-serif);
  font-size: var(--wp-title-home-news-size, 1.125rem);
  font-weight: var(--wp-title-weight, 650);
  line-height: var(--wp-title-home-line-height, 1.15);
  letter-spacing: var(--wp-title-spacing, normal);
}

body.category #main > .entry-header,
body.category #main > article.card .card-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.category #main .pagination {
  flex-wrap: wrap;
  row-gap: 6px;
}

@media (max-width: 575.98px) {
  body.category #content #main {
    border-radius: 13px;
    padding: 17px 15px;
  }
}

/* Téléphone : ouvrir le contenu principal. */
@media (max-width: 767.98px) {
	
	  :root {
  --wp-title-h1-size: clamp(1rem, 4.5vw, 1.375rem);
  --wp-title-h1-line-height: 1.2;
  --wp-title-h1-icon-size: 28px;
  --wp-title-h1-icon-gap: 8px;
}
	
  #content.site-content {
    padding-inline: 12px !important;
  }

}



/* Liens du site. */
#page {
  --wp-link-hover: #0e979b;
}


#page a:any-link:not(:where(.page-col-center:has(.cgl-search-form) *)) {
  text-decoration-line: none !important;
}

#page :is(
  .entry-content,
  .archive-description,
  .wp-front-card-title,
  .wp-front-excerpt,
  .wp-home-widget,
  .widget,
  .als-localities-widget,
  .als-random-locality-widget,
  .masto-card
) a:any-link:not(.btn, .badge, .masto-button):not(:where(.page-col-center:has(.cgl-search-form) *)):hover {
  color: var(--wp-link-hover) !important;
}

#page .wp-front-latest a.wp-front-card-link:any-link:hover {
  color: inherit !important;
  background-color: transparent;
}




/* Webpratique — cadre, titres et espacements communs */
:root {
  --wp-space: 16px;
  --wp-main-inset: clamp(12px, 1.5vw, 22px);
  --wp-main-radius: var(--wp-radius, 18px);

 --wp-title-h2-size: clamp(1.4rem, 2vw, 1.8rem);
  --wp-title-h3-size: clamp(1.2rem, 1.6vw, 1.45rem);
  --wp-title-h4-size: 1.125rem;
  --wp-title-h5-size: 1rem;
  --wp-title-h6-size: .9375rem;
}

@media (max-width: 767.98px) {
  :root {
    --wp-main-inset: 12px;
    --wp-main-radius: 13px;
  }
}

/* Cadre du contenu principal */
#content.site-content :is(main.site-main, main#main, #main.site-main):not(.wp-home, .wp-single) {
  min-width: 0;
  padding: var(--wp-main-inset);
  border: 1px solid var(--wp-frame-line, #d4d8dd);
  border-radius: var(--wp-main-radius);
  background: var(--wp-panel, #fff);
}


/* Gouttières des colonnes de premier niveau */
#content:is(.wp-content-layout, .wp-atlas-layout) > .row,
#content:is(.wp-content-layout, .wp-atlas-layout) > #primary > .row {
  --bs-gutter-x: var(--wp-space);
  --bs-gutter-y: var(--wp-space);
}

#content .wp-front-columns,
#content .wp-front-left {
  gap: var(--wp-space);
}

/* Police commune. Les cartes et widgets gardent leurs tailles propres. */
#page :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--wp-title-font, system-ui, sans-serif);
}

#content h1 { --wp-heading-size: var(--wp-title-h1-size); }
#content h2 { --wp-heading-size: var(--wp-title-h2-size); }
#content h3 { --wp-heading-size: var(--wp-title-h3-size); }
#content h4 { --wp-heading-size: var(--wp-title-h4-size); }
#content h5 { --wp-heading-size: var(--wp-title-h5-size); }
#content h6 { --wp-heading-size: var(--wp-title-h6-size); }

/* Titres du texte, y compris dans les groupes Gutenberg */
#content.site-content :is(.entry-content, .wp-home-content)
:is(h1, h2, h3, h4, h5, h6):where(.wp-block-heading, .entry-content > *, .wp-home-content > *) {
  margin-block: 1.25em .5em;
  font-size: var(--wp-heading-size);
  font-weight: var(--wp-title-weight, 650);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#content.site-content :is(.entry-content, .wp-home-content)
:is(h1, h2, h3, h4, h5, h6):where(.wp-block-heading, .entry-content > *, .wp-home-content > *):first-child {
  margin-block-start: 0;
}

#content.site-content #main .entry-header {
  margin-block-end: var(--wp-space) !important;
}

#content.site-content .entry-header h1.entry-title {
  margin-block-end: 0;
}

#content.site-content .entry-header > h1.entry-title + :is(img, figure, a:has(img)) {
  margin-block-start: var(--wp-space);
}

#content .archive-description {
  margin-block-start: var(--wp-space);
  overflow-wrap: anywhere;
}

#content .archive-description > :last-child {
  margin-block-end: 0;
}

/* Citations classiques et bloc Citation de WordPress */
#content :is(.entry-content, .wp-home-content, .wp-atlas-card .entry)
blockquote:not(.wp-block-pullquote blockquote, blockquote blockquote) {
  position: relative;
  margin: 1.25em 0;
  padding: .85em 1em .85em 3em;
  border-inline-start: 3px solid var(--wp-frame-line, #d4d8dd);
  border-radius: 8px;
  background: #f7f7f6;
  color: var(--wp-ink, #242424);
  font-size: 1.05em;
  font-style: italic;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#content :is(.entry-content, .wp-home-content, .wp-atlas-card .entry)
blockquote:not(.wp-block-pullquote blockquote, blockquote blockquote)::before {
  content: "“";
  content: "“" / "";
  position: absolute;
  inset-block-start: .08em;
  inset-inline-start: .18em;
  color: var(--wp-accent, #b61925);
  font: 4rem/.9 Georgia, serif;
  pointer-events: none;
}

#content :is(.entry-content, .wp-home-content, .wp-atlas-card .entry) blockquote > :last-child {
  margin-block-end: 0;
}

#content :is(.entry-content, .wp-home-content, .wp-atlas-card .entry) blockquote > cite {
  display: block;
  color: var(--wp-muted, #696969);
  font-size: .875em;
  font-style: normal;
}

/* Widgets et panneau de recherche */
#content :is(.wp-home-sidebar, .wp-content-sidebar, .wp-atlas-sidebar > aside,
             .wp-front-selection, .wp-front-footer-top, .wp-home-atlas,
             .wp-404-widgets) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--wp-space);
}

#content :is(.wp-home-sidebar, .wp-content-sidebar, .wp-atlas-sidebar > aside,
             .wp-front-selection, .wp-front-footer-top, .wp-home-atlas,
             .wp-404-widgets) > :is(.wp-home-widget, .widget, .wp-site-search-box) {
  min-width: 0;
  margin-block: 0 !important;
}

#content .wp-home-widget-title {
  margin: 0 0 .625rem;
  font-size: 1rem;
  font-weight: var(--wp-title-weight, 650);
}

#content .wp-site-search-box,
#content .wp-404-widgets,
#main.wp-home > :is(.wp-home-atlas, .wp-home-content) {
  margin-block-end: var(--wp-space) !important;
}

#content .wp-front-footer-top {
  margin-block-start: var(--wp-space) !important;
}

#content .wp-front-pages ul,
#content .wp-front-centre > .entry-footer .pagination {
  margin-block: var(--wp-space) 0;
}

#content .wp-front-centre > .entry-footer .pagination {
  flex-wrap: wrap;
  row-gap: .375rem;
}

/* Éviter un espace vide sous le contenu quand une sidebar est vide. */
@media (max-width: 991.98px) {
  #content :is(.wp-content-sidebar-column, .wp-atlas-sidebar):not(:has(aside > *)) {
    display: none;
  }
}



/* Single Webpratique — image, cartouche et article */

.wp-single {
  --wp-single-dark: #202532;
  --wp-single-radius: 26px;
  --wp-single-inset: clamp(18px, 6vw, 36px);
  --wp-single-gap: 16px;
--wp-single-title-opacity: 35%;

--wp-single-meta-size: .875rem;
--wp-single-meta-weight: 600;
--wp-single-meta-color: #f1f3f6;

--wp-single-caption-size: .875rem;
--wp-single-category-size: .875rem;



  min-width: 0;
}

.wp-single-breadcrumb .breadcrumb {
  --bs-breadcrumb-divider: "›";
  --bs-breadcrumb-divider-color: #b5bec9;
  margin: 0 0 8px;
  color: #e0e5ec;
  font-size: .8125rem;
  line-height: 1.4;
  row-gap: 3px;
  overflow-wrap: anywhere;
}

.wp-single-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  padding-inline: 2px 8px;
}

.wp-single-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  border-radius: var(--wp-single-radius);
}

.wp-single-hero > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.wp-single-comment-count {
  position: absolute;
  z-index: 1;
  inset: 12px auto auto 12px;
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 99px;
  background: #fff;
  color: var(--wp-single-dark);
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
}

.wp-single-heading {
  padding: 16px var(--wp-single-inset) 18px;
  border-radius: var(--wp-single-radius);
  background: var(--wp-single-dark);
  color: #fff;
  overflow-wrap: anywhere;
}

.wp-single-hero > .wp-single-heading {
  border-start-start-radius: 0;
  border-start-end-radius: 0;
}

#content.site-content .wp-single .wp-single-heading h1.entry-title {
  min-height: 0;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.wp-single-caption,
.wp-single-heading .entry-meta {
  margin: 0 0 4px;
  line-height: 1.35;
}

.wp-single-caption {
  font-size: var(--wp-single-caption-size);
}

.wp-single-heading .entry-meta {
  color: var(--wp-single-meta-color);
  font-size: var(--wp-single-meta-size);
  font-weight: var(--wp-single-meta-weight);
}
.wp-single-heading a:any-link {
  color: inherit;
}

.wp-single-heading a:any-link:hover {
  text-decoration-line: underline !important;
}

.wp-single-heading .category-badge {
  margin: 0;
}

.wp-single-heading .badge {
  padding: 0;
  background: transparent !important;
  color: #fff !important;
  white-space: normal;
  text-align: start;
font-size: var(--wp-single-category-size);
}

#content.site-content #main.wp-single .wp-single-header {
  margin-block-end: var(--wp-single-gap) !important;
}

.wp-single-columns {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--wp-single-gap);
  align-items: start;
}

.wp-single-article {
  min-width: 0;
  padding: clamp(24px, 6vw, 36px) var(--wp-single-inset);
  border: 1px solid var(--wp-frame-line, #d4d8dd);
  border-radius: var(--wp-single-radius);
  background: var(--wp-panel, #fff);
}

/* Single — Continuez votre lecture et Voir aussi */

.wp-single-reading {
  overflow: hidden;
  border-radius: 20px;
  background: #202a37;
  color: #fff;
}

.wp-single-reading .wp-front-label {
  margin: 0;
  padding: 16px;
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.wp-single-reading .wp-front-latest-inner {
  padding: 10px;
  border-top: 2px solid rgb(0 0 0 / 15%);
  border-radius: 20px 20px 20px 20px;
  background: rgb(255 255 255 / 5%);
  box-shadow: 0 -1px 0 rgb(255 255 255 / 10%);
}

.wp-single-reading .wp-front-card {
  position: relative;
  min-width: 0;
  padding: 6px;
  border-radius: 16px;
  overflow-wrap: anywhere;
}

.wp-single-reading .wp-front-card::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: inherit;
  content: "";
  mask-image: linear-gradient(to bottom, #000 6px, transparent 20px);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .wp-front-latest .wp-front-card:hover {
    background-color: rgb(255 255 255 / 6%);
  }
}

.wp-front-latest .wp-front-card:is(:focus-visible, :has(:focus-visible)) {
  background-color: rgb(255 255 255 / 6%);
}


.wp-single-reading .wp-front-card + .wp-front-card {
  margin-top: 6px;
}

.wp-single-reading .wp-front-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.wp-single-reading .wp-front-card--mini:not(.wp-front-card--text) .wp-front-card-content {
  display: grid;
  grid-template-columns: min(100px, 32%) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.wp-single-reading .wp-front-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.wp-single-reading .wp-front-card-title {
  margin: 0;
  color: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.15;
}

.wp-single-reading .wp-front-card-date {
  display: block;
  margin-top: 4px;
  color: #b5bec9;
  font-size: .8rem;
  line-height: 1.35;
}

.wp-single-reading .wp-single-neighbours a {
  display: block;
  padding: 10px;
  background: rgb(255 255 255 / 5%);
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.3;
}

.wp-single-reading .wp-single-neighbours .wp-single-direction {
  display: none;
}

.wp-single-direction-label {
  display: block;
  margin-bottom: 3px;
  color: #b5bec9;
  font-size: .72rem;
  text-transform: uppercase;
}

/* Mobile et tablette — image, cartouche, texte, puis sidebar */

@media (max-width: 991.98px) {
  .wp-single-hero {
    background: var(--wp-single-dark);
    box-shadow: 0 4px 8px rgb(32 37 50 / 12%);
  }

  body.single-post .wp-content-layout .wp-single .entry-content {
    font-size: .9375rem;
    line-height: 1.5;
  }

  body.single-post .wp-content-layout .wp-single .entry-content > p {
    margin-bottom: 1.8em;
  }
}

/* Ordinateur — le cartouche et les deux colonnes remontent sur l’image */

@media (min-width: 992px) {
  .wp-single {
    --wp-single-overlap: clamp(24px, 2.5vw, 40px);
    --wp-single-inset: clamp(22px, 2.4vw, 36px);
  }

  .wp-single-hero > img,
  .wp-single-hero > .wp-single-heading {
    grid-area: 1 / 1;
  }

		
  .wp-single-hero:not(.wp-single-hero--portrait) > img {
    aspect-ratio: 16 / 9;
  }

  .wp-single-hero > .wp-single-heading {
  z-index: 1;
  align-self: end;
  justify-self: center;
  width: 64%;
  margin-block: 12px 0;
  padding-block: 14px calc(18px + var(--wp-single-overlap));
  border-radius: var(--wp-single-radius) var(--wp-single-radius) 0 0;
  background: rgb(32 37 50 / var(--wp-single-title-opacity));
  backdrop-filter: blur(10px);
}

  .wp-single-columns {
    z-index: 2;
    width: 81%;
    margin-inline: auto;
  }

  .wp-single-columns--with-sidebar {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  }

  .wp-single-header:has(.wp-single-hero) + .wp-single-columns {
    margin-block-start: calc(-1 * (var(--wp-single-overlap) + var(--wp-single-gap)));
  }
}


/* Single — liens du cartouche */
#page .wp-single .wp-single-heading a:any-link {
  text-decoration-line: underline !important;
  text-decoration-color: rgb(255 255 255 / 55%);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

#page .wp-single .wp-single-heading a:any-link:is(:hover, :focus-visible) {
  text-decoration-color: #fff;
  text-decoration-thickness: 2px;
}

/* Cartes centrales partagées — accueil, archives, recherche et bas du single */

.wp-front-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wp-front-cards > * {
  min-width: 0;
}

.wp-front-cards > .wp-front-card {
  --wp-card-accent: linear-gradient(105deg, #007d70, #196a96);
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--wp-frame-line, #d4d8dd);
  border-radius: 20px;
  background: var(--wp-panel, #fff);
  color: var(--wp-ink, #242424);
  box-shadow: 0 4px 8px -6px rgb(26 45 76 / 28%);
  overflow: hidden;
}

.wp-front-cards > .wp-front-card--feature {
  grid-column: 1 / -1;
}

:where(.wp-front-centre, .wp-front-latest:not(.wp-single-reading)) .wp-front-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

:where(.wp-front-centre, .wp-front-latest:not(.wp-single-reading)) .wp-front-card-link:hover {
  color: inherit;
  text-decoration: underline;
}

:where(.wp-front-centre, .wp-front-latest:not(.wp-single-reading)) .wp-front-card-image {
  display: block;
  width: 100%;
  height: auto;
}


:where(.wp-front-centre, .wp-front-latest:not(.wp-single-reading)) .wp-front-card-title {
  margin: 0;
  color: inherit;
  font-family: var(--wp-title-font, system-ui, sans-serif);
  font-size: var(--wp-title-home-news-size, 1.125rem);
  font-weight: var(--wp-title-weight, 650);
  line-height: var(--wp-title-home-line-height, 1.15);
  letter-spacing: var(--wp-title-spacing, normal);
  overflow-wrap: anywhere;
}

.wp-front-cards > .wp-front-card :is(
  .wp-front-card-content,
  .wp-front-card-heading,
  .wp-front-card-meta
) {
  display: contents;
}

.wp-front-cards .wp-front-card-link:has(> .wp-front-card-image) {
  position: relative;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 13px;
}


#page .wp-front-cards .wp-front-card-meta > a {
  align-self: flex-start;
  order: 1;
  max-width: calc(100% - 24px);
  margin: 0 12px 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--wp-card-accent);
  color: #fff !important;
  font-size: .825rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.wp-front-cards > .wp-front-card .wp-front-card-title {
  order: 2;
  margin: 0 12px 6px;
  padding: 0;
  color: inherit;
 font-size: var(--wp-title-h3-size);
  font-weight: var(--wp-title-weight, 650);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.wp-front-cards .wp-front-excerpt {
  order: 3;
  margin: 0 12px 8px;
  padding: 0;
  font-size: .875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.wp-front-cards :is(.wp-front-card-date, .wp-front-card-meta > span) {
  order: 4;
  margin: 0 12px 8px;
  color: #617083;
  font-size: .625rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

#page .wp-front-cards .wp-front-card-title a:any-link:is(:hover, :focus-visible) {
  color: #0e979b !important;
  text-decoration: none !important;
}

#page .wp-front-cards .wp-front-card-meta a:any-link:is(:hover, :focus-visible) {
  text-decoration-line: underline !important;
  text-underline-offset: .15em;
}

/* Accueil — masquer les métadonnées à partir de la quatrième carte. */
#main.wp-home .wp-front-cards > .wp-front-card:nth-child(n + 4)
.wp-front-card-meta {
  display: none;
}
@media (max-width: 575.98px) {
  .wp-front-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Espacement du bloc sous les commentaires */
.wp-single-more {
  margin-top: 32px;
}

.wp-single-more > h2 {
  margin: 0 0 12px;
  padding-block-end: 8px;
  border-block-end: 1px solid var(--wp-frame-line, #d4d8dd);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: var(--wp-title-weight, 650);
  line-height: 1.25;
}

/* Pied de page — cadre commun aux trois zones */
#footer.bootscore-footer {
  box-sizing: border-box;
  width: calc(100% - 24px);
  max-width: calc(var(--wp-content-max-width) - 24px);
  margin-inline: auto;
margin-block-end: 60px;
  border: 1px solid var(--wp-frame-line, #d4d8dd);
  border-radius: var(--wp-main-radius, 18px);
  background-color: var(--wp-panel, #fff);
}

#footer > :is(.bootscore-footer-top, .bootscore-footer-columns, .bootscore-footer-info) {
  background-color: transparent !important;
}


/* ConjuGrid — liste, fiches de verbe et recherche */
#page .page-col-center:has(.cgl-search-form) {
  --cg-line: var(--wp-frame-line, #d4d8dd);
  --cg-radius: var(--wp-main-radius, 18px);
  --cg-accent: var(--wp-section-accent, #007d70);
  --cg-ink: var(--wp-ink, #242424);
  --cg-panel: var(--wp-panel, #fff);
  --cg-soft: #f2f3f5;

  box-sizing: border-box;
  width: calc(100% - 24px);
  max-width: calc(var(--wp-content-max-width, 1560px) - 24px);
  min-width: 0;
  margin: 16px auto 24px;
  padding: var(--wp-main-inset, 16px);
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: var(--cg-panel);
  color: var(--cg-ink);
  overflow-wrap: anywhere;
}

#page .page-col-center:has(.cgl-search-form) .entry-header .entry-title {
  margin: 0 0 20px;
  padding-block-end: 10px;
  border-block-end: 1px solid var(--cg-line);
  font-family: var(--wp-title-font, system-ui, sans-serif);
  font-size: var(--wp-title-h1-size, 30px);
  font-weight: var(--wp-title-weight, 650);
  line-height: 1.2;
}



@media (max-width: 575.98px) {
  #page .page-col-center .cgl-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  #page .page-col-center .cgl-search-form :is(input[type="text"], input[type="search"]) {
    flex-basis: auto;
    width: 100%;
  }
}

/* ConjuGrid — disposition Atlas avec la sidebar Bootscore existante */
@media (min-width: 992px) {
  #page .wp-site-main:has(> .page-col-center .cgl-search-form) {
    --cg-gap: var(--wp-space, 16px);
    --cg-width: min(calc(100% - 24px), calc(var(--wp-content-max-width, 1560px) - 24px));
    --cg-columns-width: calc(var(--cg-width) - var(--cg-gap));

    display: grid;
    grid-template-columns:
      minmax(0, calc(var(--cg-columns-width) * .75))
      minmax(0, calc(var(--cg-columns-width) * .25));
    justify-content: center;
    align-items: start;
    gap: 24px var(--cg-gap);
    padding-block-start: 16px;
  }

  #page .wp-site-main > .page-col-center:has(.cgl-search-form) {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  #page .wp-site-main > .page-col-center:has(.cgl-search-form)
  + .col-lg-3:has(> #secondary) {
    grid-row: 1;
    grid-column: 2;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
  }

  #page .wp-site-main:has(> .page-col-center .cgl-search-form) > #footer {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* ConjuGrid mobile — sidebar affichée sous le contenu */
@media (max-width: 991.98px) {
  #page .wp-site-main:has(> .page-col-center .cgl-search-form)
  #secondary > button[data-bs-target="#sidebar"] {
    display: none !important;
  }

  #page .wp-site-main:has(> .page-col-center .cgl-search-form)
  #secondary #sidebar {
    position: static;
    inset: auto;
    z-index: auto;
    width: 100%;
    max-width: none;
    height: auto;
    visibility: visible;
    transform: none;
    border: 0;
    background: transparent;
  }

  #page .wp-site-main:has(> .page-col-center .cgl-search-form)
  #secondary #sidebar > .offcanvas-header {
    display: none;
  }

  #page .wp-site-main:has(> .page-col-center .cgl-search-form)
  #secondary #sidebar > .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: var(--wp-space, 16px);
    padding: 0;
    overflow: visible;
  }
	
	  #page .wp-site-main > .page-col-center:has(.cgl-search-form)
  + .col-lg-3:has(> #secondary) {
    box-sizing: border-box;
    width: calc(100% - 24px);
    margin-inline: auto;
  }
	
}



@media (max-width: 767.98px) {
  .wp-archive-breadcrumb .breadcrumb {
    flex-wrap: wrap !important;
    row-gap: 4px;
  }

  .wp-archive-breadcrumb :is(.breadcrumb-item, .breadcrumb-item a) {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}



/* Dernière bande du pied de page. */
#footer .bootscore-footer-info {
  font-size: 0.7rem;
}

#footer .bootscore-footer-info .bootscore-copyright {
  font-size: inherit;
}



/* Menu CalcGrid — apparence du menu de Webpratique. */
#page .cg-card {
  position: relative;
  margin: 0 0 20px;
  padding: 0;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(90deg, #00c196 0%, #1b6da0 100%);
  box-shadow:
    0 0 0 1px #0e3f7e0a,
    0 1px 1px -.5px #2a33450a,
    0 3px 3px -1.5px #2a33460a,
    0 6px 6px -3px #2a33460a,
    0 12px 12px -6px #0e3f7e0a,
    0 24px 24px -12px #0e3f7e0a;
}

#page .cg-card > h3.stickywrap-heading.cg-heading {
  display: flex;
  align-items: center;
  margin: 0 !important;
  padding: 20px 20px 10px !important;
  color: #fff !important;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

#page .cg-card > .stickywrap-inner {
  position: relative;
  padding: 0;
  border-top: 2px solid rgb(0 0 0 / 15%);
  border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 10%), transparent);
  box-shadow: 0 -1px 0 rgb(255 255 255 / 10%);
}

@media (max-width: 420px) {
  #page .cg-card > h3.stickywrap-heading.cg-heading {
    font-size: 1.1rem;
  }
}





/* Conteneur Masonry */
.masonry-cards {
  column-count: 1;
  column-gap: 1rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem 1rem; /* padding horizontal pour respirer */
}

@media (min-width: 650px) {
  .masonry-cards {
    column-count: 2;
  }
}

@media (min-width: 900px) {
  .masonry-cards {
    column-count: 3;
  }
}

/* Carte individuelle */
.card-masonry {
  display: inline-block; /* nécessaire pour column layout */
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 1rem; /* uniquement en bas, pas sur les côtés */
  background: #ffffff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
}

.card-masonry:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* Titres dans les cartes */
.card-masonry h3 {
  margin-top: 0;
  line-height: 1.3rem;
}

.masonry-cards h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.masonry-cards h3 a {
  color: #333; /* Couleur du lien */
  text-decoration: none; /* Supprime le soulignement */
  transition: color 0.3s ease;
}

.masonry-cards h3 a:hover {
  color: #003399;
  text-decoration: underline;
}

/* Texte des cartes */
.card-masonry p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

/* Liens dans le contenu */
.card-masonry a {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
  line-height: 1.3rem;
  color: #0073aa;
  text-decoration: none;
  transition: color 0.2s;
}

.card-masonry a:hover {
  color: #003399;
  text-decoration: underline;
}

/* Liste des articles dans une carte */
.category-posts a {
  display: block;
  margin: 0.7rem 0;
}


.child-categories {
    margin-bottom: 1rem;
}

.child-categories a {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: #f2f2f2;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
}

#page .masonry-cards .child-categories a:any-link:is(:hover, :focus-visible) {
    background-color: #e4002b;
    color: #fff !important;
}






.wp-games-intro {
    margin: 0 0 28px;
    font-size: 1.08em;
    line-height: 1.65;
}

.wp-games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 40px;
}

.wp-game-card {
    position: relative;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.05);
}

.wp-game-card-featured {
    grid-column: span 2;
    padding: 30px;
}

.wp-game-icon {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 14px;
}

.wp-game-card h3 {
    margin: 0 0 10px;
    font-size: 1.45em;
}

.wp-game-card h3 a {
    color: inherit;
    text-decoration: none;
}

.wp-game-card p {
    margin: 0 0 20px;
    line-height: 1.6;
}

.wp-game-button {
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
}

.wp-sudoku-details {
    margin-top: 20px;
}

.wp-sudoku-details > h3 {
    margin-top: 36px;
}

.wp-sudoku-levels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 32px;
}

.wp-sudoku-levels > div {
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.025);
}

.wp-sudoku-levels strong {
    display: block;
    margin-bottom: 7px;
    font-size: 1.05em;
}

.wp-sudoku-levels span {
    display: block;
    line-height: 1.55;
}

@media (max-width: 700px) {

    .wp-games-grid,
    .wp-sudoku-levels {
        grid-template-columns: 1fr;
    }

    .wp-game-card-featured {
        grid-column: auto;
    }

    .wp-game-card {
        padding: 20px;
    }

}
