/* ==========================================================================
   Compléments WordPress : contenu éditorial, articles, pagination
   ========================================================================== */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }

/* ---------- Contenu éditorial (articles, pages libres) ---------- */
.entry-content { font-size: 1.06rem; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 1.6em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.entry-content a { color: var(--green-700); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--sun-400); }
.entry-content a:hover { color: var(--brown-700); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--green-500); }
.entry-content img { border-radius: var(--radius); height: auto; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-element-caption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .6em; }
.entry-content blockquote, .wp-block-quote {
  margin: 1.8em 0; padding: 26px 30px; border-radius: var(--radius); background: var(--white);
  border-left: 5px solid var(--sun-500); font: 700 1.15rem/1.55 var(--f-title); color: var(--green-900);
}
.entry-content blockquote cite { display: block; margin-top: 10px; font: 700 1.1rem var(--f-script); color: var(--brown-700); }
.entry-content hr { border: 0; height: 2px; background: var(--line); margin: 2.4em 0; }
.entry-content table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--green-50); font-family: var(--f-title); color: var(--green-900); }
.wp-block-button__link { border-radius: 999px; background: var(--green-700); color: #fff; font: 700 .98rem var(--f-title); padding: .9em 1.55em; text-decoration: none !important; }
.wp-block-gallery { gap: 12px !important; }
.wp-block-embed iframe { border-radius: var(--radius); }
.alignwide { margin-left: -8%; margin-right: -8%; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
@media (max-width: 860px) { .alignwide { margin-left: 0; margin-right: 0; } .alignleft, .alignright { float: none; margin: 0 0 1em; } }

/* ---------- Article ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 18px; font-size: .92rem; }
.article-meta .tag { text-decoration: none; }
.article-cover { margin: -60px auto 40px; position: relative; z-index: 2; }
.article-cover img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.share strong { font-family: var(--f-title); color: var(--green-900); margin-right: 6px; }
.share a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--green-700); }
.share a:hover { background: var(--green-700); color: #fff; }
.share svg { width: 18px; height: 18px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.post-nav a { display: block; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.post-nav a:hover { border-color: var(--green-500); }
.post-nav small { display: block; color: var(--brown-700); font: 800 .75rem var(--f-title); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.post-nav .next { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); text-decoration: none; font: 800 .95rem var(--f-title); color: var(--ink); }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 40px 0 20px; }
.notfound strong { display: block; font: 900 clamp(5rem, 14vw, 9rem)/1 var(--f-title); color: var(--sun-500); }
.article-meta svg { width: 16px; height: 16px; vertical-align: -3px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ==========================================================================
   Menu principal (Apparence › Menus) avec sous-menus — v1.1
   ========================================================================== */
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > .nav__link { padding: .55em .8em; }
.nav__item.has-sub > .nav__link { padding-right: .3em; }
.nav__item.is-current > .nav__link { color: var(--green-700); }
.nav__item.is-current > .nav__link::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--sun-500); }
.nav__item.has-sub.is-current > .nav__link::after { left: calc(50% - 6px); }
.sub-toggle { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background .2s; }
.sub-toggle svg { width: 15px; height: 15px; transition: transform .25s; }
.sub-toggle:hover { background: var(--green-50); color: var(--green-700); }
.nav__item.is-open > .sub-toggle svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 10px); left: -6px; min-width: 230px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); z-index: 20;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item.is-open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font: 700 .93rem var(--f-title); }
.sub a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun-400); flex: none; transition: transform .2s; }
.sub a:hover, .sub .is-current > a { background: var(--green-50); color: var(--green-700); }
.sub a:hover::before { transform: scale(1.4); }
.nav__cta-support { display: none; }
.topbar__support { background: var(--sun-400); color: var(--brown-900) !important; padding: 3px 12px; border-radius: 999px; font-weight: 700; }
.topbar__support:hover { background: #fff; }

@media (max-width: 1240px) {
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__item { flex-wrap: wrap; }
  .nav__item > .nav__link { flex: 1; padding: .8em 1em; }
  .nav__item.is-current > .nav__link { background: var(--green-50); border-radius: 14px; }
  .nav__item.is-current > .nav__link::after { display: none; }
  .sub-toggle { width: 46px; height: 46px; }
  .sub { position: static; width: 100%; min-width: 0; padding: 0 0 6px 16px; border: 0; box-shadow: none; background: transparent; opacity: 1; visibility: visible; transform: none; display: none; }
  .sub::before { display: none; }
  .nav__item.is-open > .sub { display: block; }
  .nav__cta-support { display: inline-flex; }
}

/* ---------- Pages Elementor ---------- */
.sgi-elementor { min-height: 40vh; }
.sgi-elementor > .elementor { overflow-x: clip; }
.sgi-sc-stats { border-radius: var(--radius-lg); padding: 30px 0; }

/* ==========================================================================
   Pages Elementor — widget « Section SINIGNANSIGI » (v1.2)
   ========================================================================== */
.sgi-elementor .e-con:has(> .elementor-widget-sgi_section),
.sgi-elementor .e-con:has(> .e-con-inner > .elementor-widget-sgi_section) {
  --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0;
  --gap: 0; --row-gap: 0; --column-gap: 0; --margin-top: 0; --margin-bottom: 0;
  padding: 0; max-width: none;
}
.sgi-elementor .elementor-widget-sgi_section { width: 100%; max-width: 100%; margin: 0 !important; }
.sgi-elementor .elementor-widget-sgi_section > .elementor-widget-container { margin: 0; padding: 0; }
.ph.has-photo { padding: 0; }
.ph.has-photo::before, .ph.has-photo::after { display: none; }
/* Dans l'éditeur Elementor : tout est visible, sans attendre le défilement */
.elementor-editor-active .reveal { opacity: 1 !important; transform: none !important; }
.elementor-editor-active [data-render]:empty::before {
  content: "Bloc automatique : son contenu s'affiche sur le site publié.";
  display: block; padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; grid-column: 1 / -1;
}
.elementor-editor-active [data-countdown] [data-ev-title]:empty::before { content: "Compte à rebours du prochain événement"; }
.highlight strong { white-space: nowrap; }
