/* =========================================================
   Seofrances — Design overrides
========================================================= */

/* ------------------------------
   Variables globales
------------------------------ */

:root {
  --sf-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sf-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --sf-blue: #1159AF;
  --sf-blue-deep: #123E82;
  --sf-navy: #0F172A;
  --sf-navy-2: #111827;
  --sf-footer-blue: #172554;

  --sf-text-light: #E2E8F0;
  --sf-text-muted: #CBD5E1;
  --sf-text-soft: #94A3B8;
}

/* =========================================================
   Fonts — override Kadence
========================================================= */

body,
input,
select,
optgroup,
textarea {
  font-family: var(--sf-font-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.kt-blocks-info-box-title,
.wp-block-post-title {
  font-family: var(--sf-font-heading) !important;
}

h1 {
  font-weight: 800 !important;
}

h2 {
  font-weight: 700 !important;
}

h3,
h4,
h5,
h6 {
  font-weight: 600 !important;
}

/* =========================================================
   Pages custom Seofrances — reset wrappers Kadence
========================================================= */

body:has(:is(
  .sf-hero,
  .sf-cookies-hero,
  .sf-privacy-hero,
  .sf-legal-hero,
  .sf-blog-cta,
  .sf-contact,
  .sf-contact-premium
)) :where(
  #inner-wrap,
  #primary,
  #main,
  .site-main,
  .content-area,
  .content-container,
  .content-wrap,
  .single-entry,
  .entry-content-wrap,
  .entry-content
) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body:has(:is(
  .sf-hero,
  .sf-cookies-hero,
  .sf-privacy-hero,
  .sf-legal-hero,
  .sf-blog-cta,
  .sf-contact,
  .sf-contact-premium
)) :where(
  .single-entry,
  .content-container,
  .entry-content-wrap
) {
  background: transparent !important;
  box-shadow: none !important;
}

body:has(:is(
  .sf-hero,
  .sf-cookies-hero,
  .sf-privacy-hero,
  .sf-legal-hero,
  .sf-blog-cta,
  .sf-contact,
  .sf-contact-premium
)) .entry-content > :first-child {
  margin-top: 0 !important;
}

body:has(:is(
  .sf-hero,
  .sf-cookies-hero,
  .sf-privacy-hero,
  .sf-legal-hero,
  .sf-blog-cta,
  .sf-contact,
  .sf-contact-premium
)) .entry-content > :last-child {
  margin-bottom: 0 !important;
}

/* =========================================================
   Single post hero — premium Seofrances
========================================================= */

body.single.single-post .entry-hero,
body.single.single-post .entry-hero-container-inner {
  position: relative !important;
  overflow: hidden !important;
  background:
    linear-gradient(135deg, var(--sf-blue) 0%, var(--sf-blue-deep) 100%) !important;
}

/* Texture topographique excentrée */
body.single.single-post .entry-hero-container-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(
      circle at 78% 150%,
      rgba(255, 255, 255, 0.15) 0,
      rgba(255, 255, 255, 0.15) 1px,
      transparent 1px,
      transparent 16px
    );
  opacity: 1;
}

/* Halo premium non uniforme */
body.single.single-post .entry-hero-container-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 18% 10%,
      rgba(255, 255, 255, 0.16) 0,
      rgba(255, 255, 255, 0.07) 26%,
      transparent 54%
    ),
    radial-gradient(
      circle at 88% 82%,
      rgba(14, 165, 233, 0.22) 0,
      rgba(14, 165, 233, 0.08) 28%,
      transparent 58%
    ),
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.05) 0%,
      rgba(15, 23, 42, 0.14) 100%
    );
}

/* Neutralise l’overlay Kadence */
body.single.single-post .hero-section-overlay {
  background: transparent !important;
  opacity: 1 !important;
}

/* Le contenu reste au-dessus des couches décoratives */
body.single.single-post .hero-container.site-container,
body.single.single-post .hero-section-overlay + .hero-container,
body.single.single-post .hero-container {
  position: relative !important;
  z-index: 2 !important;
  background: transparent !important;
}

/* Texte du hero */
body.single.single-post .entry-hero,
body.single.single-post .entry-hero h1,
body.single.single-post .entry-hero .entry-title,
body.single.single-post .entry-hero .entry-meta,
body.single.single-post .entry-hero .category-links,
body.single.single-post .entry-hero a {
  color: #ffffff !important;
}

body.single.single-post .entry-hero .entry-meta {
  opacity: 0.9;
}

/* Ajustement responsive du hero article */
@media (max-width: 767px) {
  body.single.single-post .entry-hero-container-inner::before {
    background-image:
      repeating-radial-gradient(
        circle at 78% 138%,
        rgba(255, 255, 255, 0.13) 0,
        rgba(255, 255, 255, 0.13) 1px,
        transparent 1px,
        transparent 15px
      );
  }
}

/* =========================================================
   Footer Kadence + footer custom Seofrances
========================================================= */

/* Reset wrappers Kadence du footer */
#colophon,
.site-footer,
.site-footer-wrap,
.site-footer-row-container-wrap,
.site-footer-row-container,
.site-footer-row-container-inner,
.site-footer .site-container,
.site-footer .site-footer-row,
.site-footer .site-footer-section,
.site-footer .footer-widget-area,
.site-footer .footer-widget-area-inner,
.site-footer .widget,
.site-footer .widget_block {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--sf-navy) !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Le widget footer occupe toute la largeur */
.site-footer :where(
  .site-footer-row-container-inner > .site-container,
  .site-top-footer-inner-wrap,
  .site-top-footer-inner-wrap.site-footer-row,
  .site-top-footer-inner-wrap .site-footer-section,
  .site-footer-section-inner,
  .footer-widget-area,
  .footer-widget-area-inner,
  .widget,
  .widget_block
) {
  width: 100% !important;
  max-width: none !important;
}

/* Neutralise la grille Kadence autour du footer HTML */
.site-footer .site-top-footer-inner-wrap,
.site-footer .site-top-footer-inner-wrap.site-footer-row,
.site-footer .site-top-footer-inner-wrap .site-footer-section {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Footer custom */
.sf-footer-custom {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 4rem 2rem 2rem !important;
  box-sizing: border-box !important;
  clear: both;
  background:
    radial-gradient(circle at 82% 12%, rgba(96, 165, 250, 0.12) 0, transparent 28%),
    linear-gradient(135deg, var(--sf-navy) 0%, var(--sf-navy-2) 58%, var(--sf-footer-blue) 100%);
  color: var(--sf-text-light);
}

.sf-footer-inner {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1.7fr 1fr 1fr 1fr !important;
  gap: 3rem !important;
  align-items: start !important;
}

.sf-footer-col,
.sf-footer-col * {
  min-width: 0 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
  hyphens: none !important;
}

.sf-footer-custom h3,
.sf-footer-custom h4 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.sf-footer-custom h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.sf-footer-custom h4 {
  font-size: 1rem;
  font-weight: 750;
}

.sf-footer-custom p {
  margin-top: 0;
  color: var(--sf-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.sf-footer-note {
  color: #93C5FD !important;
  margin-top: 1rem !important;
}

.sf-footer-contact {
  margin-top: 0 !important;
  font-size: 0.9rem !important;
}

.sf-footer-custom ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sf-footer-custom li {
  margin-bottom: 0.55rem;
}

.sf-footer-custom a,
.sf-footer-custom a:visited {
  color: var(--sf-text-muted) !important;
  text-decoration: none !important;
}

.sf-footer-custom a:hover,
.sf-footer-custom a:focus {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* Ligne basse : copyright + liens légaux */
.sf-footer-bottom {
  max-width: 1180px !important;
  margin: 2.5rem auto 0 !important;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--sf-text-soft);
  font-size: 0.85rem;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1.5rem !important;
  flex-wrap: wrap !important;
}

.sf-footer-legal-links {
  display: inline-flex !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}

.sf-footer-legal-links a,
.sf-footer-legal-links a:visited {
  color: var(--sf-text-soft) !important;
  text-decoration: none !important;
}

.sf-footer-legal-links a:hover,
.sf-footer-legal-links a:focus {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* =========================================================
   En breve : article blog
========================================================= */



.article-keypoints {
  border: 1px solid #e5e7eb;
  border-left: 5px solid #1f4e79;
  background: #f8fafc;
  padding: 20px;
  margin: 24px 0;
  border-radius: 10px;
}

.article-keypoints-title {
  font-weight: 700;
  font-size: 1.1em;
  color: #0f172a;
  cursor: pointer;
}

.article-keypoints-list {
  margin: 14px 0 0;
  padding-left: 1.4rem;
  line-height: 1.65;
}

.article-keypoints-list li + li {
  margin-top: 6px;
}

/* =========================================================
   Responsive footer
========================================================= */

@media (max-width: 980px) {
  .sf-footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
  }
}

@media (max-width: 640px) {
  .sf-footer-custom {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .sf-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .sf-footer-bottom {
    display: block !important;
    text-align: left !important;
  }

  .sf-footer-legal-links {
    display: flex !important;
    margin-top: 0.8rem !important;
  }
}