/*
Theme Name:  LCF Kadence Child
Theme URI:   https://lyceecomtedefolx.ad
Description: Thème enfant Kadence pour le Lycée Comte de Folx — Andorra. Reproduit fidèlement la charte graphique navy/orange de l'établissement.
Author:      LCF Andorra
Author URI:  https://lyceecomtedefolx.ad
Template:    kadence
Version:     1.0.0
Text Domain: lcf-kadence-child
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:        education, french, andorra, dark, navy, orange
*/

/* =========================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================= */
:root {
  /* Brand colours */
  --lcf-navy:          #1a3a5c;
  --lcf-navy-dark:     #122840;
  --lcf-navy-deeper:   #0d1f33;
  --lcf-orange:        #d4621a;
  --lcf-orange-hover:  #b85316;
  --lcf-orange-light:  #e8834a;

  /* Background shades */
  --lcf-bg-dark:       #0d1117;
  --lcf-bg-card:       #161b22;
  --lcf-bg-card-hover: #1c2330;
  --lcf-bg-card-alt:   #1a2030;

  /* Text */
  --lcf-text-white:    #ffffff;
  --lcf-text-light:    #c9d1d9;
  --lcf-text-muted:    #8b949e;
  --lcf-text-subtle:   #6e7681;

  /* Borders */
  --lcf-border:        rgba(255,255,255,.08);
  --lcf-border-card:   rgba(255,255,255,.10);

  /* Accent green (note bas de section) */
  --lcf-green:         #2ea043;

  /* Spacing */
  --lcf-max-width:     1600px;
  --lcf-gap:           1.5rem;
  --lcf-radius:        0.5rem;
  --lcf-radius-pill:   9999px;

  /* Typography */
  --lcf-font:          'Inter', 'Segoe UI', Arial, sans-serif;
  --lcf-font-size-base: 1.2rem;
  --lcf-font-size-sm:  1.05rem;
  --lcf-font-size-xs:  0.9rem;

  /* Transitions */
  --lcf-transition:    all 0.2s ease;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--lcf-font);
  font-size: var(--lcf-font-size-base);
  background: var(--lcf-bg-dark);
  color: var(--lcf-text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* =========================================================
   UTILITY
   ========================================================= */
.lcf-container {
  max-width: var(--lcf-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.lcf-section-title {
  font-size: var(--lcf-font-size-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lcf-text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.lcf-section-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 1.2em;
  background: var(--lcf-orange);
  border-radius: 2px;
  flex-shrink: 0;
}

/* =========================================================
   HEADER
   ========================================================= */
.lcf-header {
  background: var(--lcf-navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.lcf-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: var(--lcf-max-width);
  margin: 0 auto;
}

.lcf-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lcf-header__logo-wrap {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.12);
  border-radius: var(--lcf-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.lcf-header__name {
  display: block;
  font-weight: 700;
  font-size: var(--lcf-font-size-sm);
  color: var(--lcf-text-white);
  line-height: 1.2;
}

.lcf-header__tagline {
  display: block;
  font-size: var(--lcf-font-size-xs);
  color: rgba(255,255,255,.6);
  margin-top: 0.1rem;
}

/* Language switcher */
.lcf-lang {
  display: flex;
  gap: 0.35rem;
}

.lcf-lang__btn {
  padding: 0.3rem 0.65rem;
  border-radius: var(--lcf-radius);
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: var(--lcf-font-size-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--lcf-transition);
}
.lcf-lang__btn:hover,
.lcf-lang__btn.is-active {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

/* Navigation */
.lcf-nav {
  border-top: 1px solid rgba(255,255,255,.08);
}

.lcf-nav__inner {
  max-width: var(--lcf-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.lcf-nav__menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.lcf-nav__menu li { position: relative; }

.lcf-nav__menu li a {
  display: block;
  padding: 0.85rem 1.1rem;
  font-size: var(--lcf-font-size-sm);
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: var(--lcf-transition);
  position: relative;
}
.lcf-nav__menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.1rem;
  right: 1.1rem;
  height: 2px;
  background: var(--lcf-orange);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.lcf-nav__menu li a:hover,
.lcf-nav__menu li.current-menu-item a {
  color: #fff;
}
.lcf-nav__menu li a:hover::after,
.lcf-nav__menu li.current-menu-item a::after {
  transform: scaleX(1);
}

/* Mobile hamburger */
.lcf-nav__toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  color: #fff;
  font-size: 1.4rem;
}

/* =========================================================
   HERO
   ========================================================= */
.lcf-hero {
  background: linear-gradient(135deg, var(--lcf-navy-deeper) 0%, var(--lcf-navy) 60%, #1f4878 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 4.5rem;
}

/* Decorative circle top-right */
.lcf-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07);
  pointer-events: none;
}
.lcf-hero::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
  pointer-events: none;
}

.lcf-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--lcf-max-width);
  margin: 0 auto;
}

.lcf-hero__badge {
  display: inline-block;
  font-size: var(--lcf-font-size-xs);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lcf-orange);
  margin-bottom: 1.1rem;
}

.lcf-hero__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--lcf-text-white);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 550px;
}

.lcf-hero__meta {
  font-size: var(--lcf-font-size-sm);
  color: rgba(255,255,255,.65);
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.lcf-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.lcf-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--lcf-radius);
  font-size: var(--lcf-font-size-sm);
  font-weight: 600;
  border: none;
  transition: var(--lcf-transition);
}

.lcf-hero__btn--pronote {
  background: #2d8c4e;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}
.lcf-hero__btn--pronote:hover { background: #237a41; }

.lcf-hero__btn--esidoc-college {
  background: #d4621a;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}
.lcf-hero__btn--esidoc-college:hover { background: #b85316; }

.lcf-hero__btn--esidoc-lycee {
  background: #4caf50;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}
.lcf-hero__btn--esidoc-lycee:hover { background: #3d9142; }

.lcf-hero__btn-icon {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.lcf-hero__btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================================
   DOCUMENTS SECTION
   ========================================================= */
.lcf-docs {
  background: var(--lcf-bg-dark);
  padding: 3rem 1.5rem;
}

.lcf-docs__inner {
  max-width: var(--lcf-max-width);
  margin: 0 auto;
}

/* Filter pills */
.lcf-docs__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.lcf-filter-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--lcf-radius-pill);
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: var(--lcf-text-muted);
  font-size: var(--lcf-font-size-sm);
  font-weight: 500;
  transition: var(--lcf-transition);
}
.lcf-filter-btn:hover {
  border-color: rgba(255,255,255,.35);
  color: var(--lcf-text-light);
}
.lcf-filter-btn.is-active {
  background: var(--lcf-orange);
  border-color: var(--lcf-orange);
  color: #fff;
}

/* Documents grid */
.lcf-docs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.lcf-doc-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--lcf-bg-card);
  border: 1px solid var(--lcf-border-card);
  border-radius: var(--lcf-radius);
  padding: 0.85rem 1rem;
  transition: var(--lcf-transition);
}
.lcf-doc-card:hover {
  background: var(--lcf-bg-card-hover);
  border-color: rgba(255,255,255,.18);
}

.lcf-doc-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--lcf-radius);
  background: var(--lcf-bg-card-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.lcf-doc-card__info {
  flex: 1;
  min-width: 0;
}

.lcf-doc-card__title {
  font-size: var(--lcf-font-size-base);
  font-weight: 600;
  color: var(--lcf-text-white);
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.lcf-doc-card__sub {
  font-size: var(--lcf-font-size-xs);
  color: var(--lcf-text-muted);
  margin-top: 0.1rem;
}

.lcf-doc-card__dl {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--lcf-font-size-sm);
  font-weight: 600;
  color: var(--lcf-orange);
  white-space: nowrap;
  flex-shrink: 0;
}
.lcf-doc-card__dl:hover { color: var(--lcf-orange-light); }

/* Note verte bas de section */
.lcf-docs__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--lcf-font-size-xs);
  color: var(--lcf-green);
  margin-top: 0.5rem;
}
.lcf-docs__note::before {
  content: '●';
  font-size: var(--lcf-font-size-xs);
}

/* =========================================================
   ACTUALITÉS + AGENDA  (double colonne)
   ========================================================= */
.lcf-news-agenda {
  background: var(--lcf-bg-dark);
  padding: 0 1.5rem 3rem;
}

.lcf-news-agenda__inner {
  max-width: var(--lcf-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* --- News --- */
.lcf-news-card {
  border-radius: var(--lcf-radius);
  overflow: hidden;
  background: var(--lcf-bg-card);
  border: 1px solid var(--lcf-border-card);
  margin-bottom: 0.85rem;
  transition: var(--lcf-transition);
}
.lcf-news-card:hover { border-color: rgba(255,255,255,.2); }

.lcf-news-card__img {
  width: 100%;
  height: 140px;
  background: var(--lcf-bg-card-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
}
.lcf-news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lcf-news-card__body {
  padding: 0.85rem 1rem;
}

.lcf-news-card__date {
  font-size: var(--lcf-font-size-xs);
  color: var(--lcf-text-muted);
  margin-bottom: 0.35rem;
}

.lcf-news-card__title {
  font-size: var(--lcf-font-size-sm);
  font-weight: 600;
  color: var(--lcf-text-white);
  line-height: 1.35;
}

.lcf-news__more {
  display: block;
  text-align: center;
  color: var(--lcf-orange);
  font-size: var(--lcf-font-size-sm);
  font-weight: 600;
  margin-top: 1rem;
  transition: var(--lcf-transition);
}
.lcf-news__more:hover { color: var(--lcf-orange-light); }

/* --- Agenda --- */
.lcf-agenda__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.lcf-agenda-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lcf-agenda-item__date {
  width: 52px;
  height: 52px;
  border-radius: var(--lcf-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--lcf-navy);
  color: #fff;
}
.lcf-agenda-item__date.is-orange {
  background: var(--lcf-orange);
}

.lcf-agenda-item__day {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.lcf-agenda-item__month {
  font-size: var(--lcf-font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.lcf-agenda-item__info {}

.lcf-agenda-item__title {
  font-size: var(--lcf-font-size-sm);
  font-weight: 600;
  color: var(--lcf-text-white);
  line-height: 1.3;
}

.lcf-agenda-item__sub {
  font-size: var(--lcf-font-size-xs);
  color: var(--lcf-text-muted);
  margin-top: 0.1rem;
}

.lcf-agenda__more {
  display: block;
  text-align: right;
  color: var(--lcf-orange);
  font-size: var(--lcf-font-size-sm);
  font-weight: 600;
  margin-top: 1.25rem;
  transition: var(--lcf-transition);
}
.lcf-agenda__more:hover { color: var(--lcf-orange-light); }

/* =========================================================
   NEWSLETTER + SOCIAL (double colonne)
   ========================================================= */
.lcf-bottom {
  background: var(--lcf-bg-dark);
  border-top: 1px solid var(--lcf-border);
  padding: 2.5rem 1.5rem;
}

.lcf-bottom__inner {
  max-width: var(--lcf-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* Newsletter */
.lcf-newsletter__desc {
  font-size: var(--lcf-font-size-sm);
  color: var(--lcf-text-muted);
  margin-bottom: 0.9rem;
}

.lcf-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lcf-newsletter__input {
  padding: 0.65rem 1rem;
  background: var(--lcf-bg-card);
  border: 1px solid var(--lcf-border-card);
  border-radius: var(--lcf-radius);
  color: var(--lcf-text-light);
  font-size: var(--lcf-font-size-sm);
  outline: none;
  transition: var(--lcf-transition);
}
.lcf-newsletter__input::placeholder { color: var(--lcf-text-subtle); }
.lcf-newsletter__input:focus { border-color: rgba(255,255,255,.3); }

.lcf-newsletter__submit {
  padding: 0.65rem 1.25rem;
  background: var(--lcf-navy);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--lcf-radius);
  color: #fff;
  font-size: var(--lcf-font-size-sm);
  font-weight: 600;
  transition: var(--lcf-transition);
}
.lcf-newsletter__submit:hover { background: var(--lcf-navy-dark); }

.lcf-newsletter__note {
  font-size: var(--lcf-font-size-xs);
  color: var(--lcf-text-subtle);
  margin-top: 0.35rem;
}

/* Social */
.lcf-social__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lcf-social__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--lcf-radius-pill);
  border: 1px solid var(--lcf-border-card);
  background: var(--lcf-bg-card);
  color: var(--lcf-text-light);
  font-size: var(--lcf-font-size-sm);
  font-weight: 500;
  transition: var(--lcf-transition);
}
.lcf-social__link:hover {
  border-color: rgba(255,255,255,.25);
  color: #fff;
}

.lcf-social__icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.lcf-social__icon--fb   { background: #1877f2; }
.lcf-social__icon--ig   { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.lcf-social__icon--tk   { background: #010101; border: 1px solid rgba(255,255,255,.15); }
.lcf-social__icon--li   { background: #0077b5; }
.lcf-social__icon--yt { background: #ff0000; }

/* =========================================================
   FOOTER
   ========================================================= */
.lcf-footer {
  background: #080c10;
  border-top: 1px solid var(--lcf-border);
  padding: 1.75rem 1.5rem 1.25rem;
}

.lcf-footer__inner {
  max-width: var(--lcf-max-width);
  margin: 0 auto;
}

.lcf-footer__partners-label {
  font-size: var(--lcf-font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lcf-text-subtle);
  margin-bottom: 0.65rem;
}

.lcf-footer__partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.lcf-partner-pill {
  padding: 0.3rem 0.85rem;
  border-radius: var(--lcf-radius-pill);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--lcf-text-muted);
  font-size: var(--lcf-font-size-xs);
  font-weight: 500;
  transition: var(--lcf-transition);
}
.lcf-partner-pill:hover {
  border-color: rgba(255,255,255,.25);
  color: var(--lcf-text-light);
}

.lcf-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  border-top: 1px solid var(--lcf-border);
  padding-top: 1.25rem;
  flex-wrap: wrap;
}

.lcf-footer__col-label {
  font-size: var(--lcf-font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lcf-text-subtle);
  margin-bottom: 0.35rem;
}

.lcf-footer__address,
.lcf-footer__contact {
  font-size: var(--lcf-font-size-sm);
  color: var(--lcf-text-muted);
  line-height: 1.6;
}

.lcf-footer__contact a {
  color: var(--lcf-orange);
  transition: var(--lcf-transition);
}
.lcf-footer__contact a:hover { color: var(--lcf-orange-light); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .lcf-docs__grid {
    grid-template-columns: 1fr;
  }
  .lcf-news-agenda__inner,
  .lcf-bottom__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 680px) {
  .lcf-nav__menu { display: none; flex-direction: column; }
  .lcf-nav__menu.is-open { display: flex; padding-bottom: 0.5rem; }
  .lcf-nav__toggle { display: block; }
  .lcf-hero__title { font-size: 1.75rem; }
  .lcf-hero__buttons { flex-direction: column; }
  .lcf-header__top { padding: 0.6rem 1rem; }
  .lcf-footer__bottom { flex-direction: column; gap: 1rem; }
}

@media (max-width: 600px) {
  .lcf-doc-card {
    flex-wrap: nowrap;
    gap: 0.6rem;
    padding: 0.75rem;
  }
  .lcf-doc-card__title {
    font-size: var(--lcf-font-size-sm);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .lcf-doc-card__dl {
    flex-shrink: 0;
    font-size: var(--lcf-font-size-xs);
    padding-left: 0.5rem;
  }
  .lcf-doc-card__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .lcf-doc-card__icon img {
    width: 28px;
    height: 28px;
  }
}

/* =========================================================
   KADENCE OVERRIDES
   ========================================================= */
.wp-site-blocks,
#page,
.site,
body,
#wrapper,
.site-container,
.content-container,
.wp-block-group {
  background: var(--lcf-bg-dark) !important;
}

.lcf-custom-header-active .site-header,
.lcf-custom-header-active #masthead {
  display: none;
}

.wp-block-kadence-rowlayout {
  margin-bottom: 0;
}

/* =========================================================
   SINGLE / PAGE — harmonisation dark theme
   ========================================================= */

body.single,
body.page {
  background: var(--lcf-bg-dark) !important;
}

body.single .site-main,
body.single article.type-post,
body.page .site-main,
body.page article.type-page,
body.single #primary,
body.page #primary,
body.single #wrapper,
body.page #wrapper {
  background: var(--lcf-bg-dark) !important;
  color: var(--lcf-text-light) !important;
  max-width: 100% !important;
  padding: 0 !important;
}

body.single .entry-wrap,
body.single .entry-content-wrap,
body.page .entry-wrap,
body.page .entry-content-wrap,
body.single article,
body.page article,
body.single #primary .content-container,
body.page #primary .content-container {
  max-width: var(--lcf-max-width) !important;
  margin: 0 auto !important;
  padding: 2rem 1.5rem !important;
  background: var(--lcf-bg-dark) !important;
}

body.single h1.entry-title,
body.page h1.entry-title,
body.single .entry-header .entry-title,
body.page .entry-header .entry-title {
  color: var(--lcf-text-white) !important;
  font-weight: 700 !important;
}

body.single .entry-content,
body.single .entry-content *,
body.page .entry-content,
body.page .entry-content * {
  color: var(--lcf-text-light) !important;
}

body.single .entry-content a:not(.wp-block-button__link),
body.page .entry-content a:not(.wp-block-button__link) {
  color: var(--lcf-orange) !important;
}
body.single .entry-content a:not(.wp-block-button__link):hover,
body.page .entry-content a:not(.wp-block-button__link):hover {
  color: var(--lcf-orange-light) !important;
}
body.single .entry-content a:hover,
body.page .entry-content a:hover {
  color: var(--lcf-orange-light) !important;
}

body.single .kadence-breadcrumbs,
body.page .kadence-breadcrumbs {
  color: var(--lcf-text-muted) !important;
  max-width: var(--lcf-max-width) !important;
  margin: 0 auto !important;
  padding: 1rem 1.5rem 0 !important;
}
body.single .kadence-breadcrumbs a,
body.page .kadence-breadcrumbs a {
  color: var(--lcf-orange) !important;
}

body.single .entry-date,
body.single .posted-on,
body.single .posted-on time {
  color: var(--lcf-text-muted) !important;
}

body.single .post-thumbnail,
body.page .post-thumbnail {
  max-width: var(--lcf-max-width) !important;
  margin: 0 auto 2rem !important;
}

body.single .entry-taxonomies,
body.single .entry-meta {
  color: var(--lcf-orange) !important;
}

/* ── Accordéons pages internes ── */
body.page details summary,
body.single details summary,
body.page details[open] summary,
body.single details[open] summary {
  color: var(--lcf-orange) !important;
  font-size: var(--lcf-font-size-sm);
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  list-style: none;
}
body.page details summary:hover,
body.single details summary:hover,
body.page details[open] summary:hover,
body.single details[open] summary:hover {
  color: var(--lcf-orange-light) !important;
}
body.page details,
body.single details {
  border-left: 3px solid var(--lcf-orange);
  margin-bottom: 0.75rem;
  background: var(--lcf-bg-card);
  border-radius: 0 var(--lcf-radius) var(--lcf-radius) 0;
  padding: 0.75rem 1rem;
}
body.page details[open],
body.single details[open] {
  border-left-color: var(--lcf-orange-light);
}

/* ── Hero image de fond ── */
.lcf-hero.has-bg-image {
  position: relative;
}
.lcf-hero.has-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 51, var(--lcf-hero-overlay, 0.45));
  z-index: 0;
  pointer-events: none;
}
.lcf-hero.has-bg-image .lcf-hero__inner {
  position: relative;
  z-index: 1;
}
.lcf-hero.has-bg-image .lcf-hero__deco-circle {
  z-index: 0;
}

/* ── Colonnes Gutenberg — texte sans coupure ── */
body.page .wp-block-columns .wp-block-column,
body.single .wp-block-columns .wp-block-column {
  min-width: 180px !important;
  flex-basis: auto !important;
}

body.page .wp-block-column p,
body.page .wp-block-column strong,
body.page .wp-block-column h3,
body.single .wp-block-column p,
body.single .wp-block-column strong,
body.single .wp-block-column h3 {
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  white-space: normal;
}

/* ── Boutons Gutenberg pages internes ── */
body.page .wp-block-button__link,
body.single .wp-block-button__link {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: var(--lcf-font-size-sm) !important;
}

.lcf-news-filter-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--lcf-radius-pill);
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: var(--lcf-text-muted);
  font-size: var(--lcf-font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--lcf-transition);
}
.lcf-news-filter-btn:hover {
  border-color: rgba(255,255,255,.35);
  color: var(--lcf-text-light);
}
.lcf-news-filter-btn.is-active {
  background: var(--lcf-orange);
  border-color: var(--lcf-orange);
  color: #fff;
}

/* ── Filtres actualités ── */
.lcf-news-filter-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--lcf-radius-pill);
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: var(--lcf-text-muted);
  font-size: var(--lcf-font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--lcf-transition);
}
.lcf-news-filter-btn:hover {
  border-color: rgba(255,255,255,.35);
  color: var(--lcf-text-light);
}
.lcf-news-filter-btn.is-active {
  background: var(--lcf-orange);
  border-color: var(--lcf-orange);
  color: #fff;
}

/* ── Page Actualités ── */
.lcf-page-actualites {
  background: var(--lcf-bg-dark);
  padding: 3rem 1.5rem;
}
.lcf-page-actualites__inner {
  max-width: var(--lcf-max-width);
  margin: 0 auto;
}
.lcf-page-actualites__title {
  color: var(--lcf-text-white);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 2rem;
}
.lcf-news-act__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.lcf-act__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) {
  .lcf-act__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .lcf-act__grid { grid-template-columns: 1fr; }
}
.lcf-news-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.lcf-news-card__excerpt {
  font-size: var(--lcf-font-size-xs);
  color: var(--lcf-text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}
.lcf-act__empty {
  color: var(--lcf-text-muted);
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 0;
}

/* ── Pagination ── */
.lcf-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.lcf-pagination__btn {
  padding: 0.45rem 1rem;
  border-radius: var(--lcf-radius-pill);
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: var(--lcf-text-muted);
  font-size: var(--lcf-font-size-sm);
  font-weight: 500;
  transition: var(--lcf-transition);
  text-decoration: none;
}
.lcf-pagination__btn:hover {
  border-color: rgba(255,255,255,.35);
  color: var(--lcf-text-light);
}
.lcf-pagination__btn.is-active {
  background: var(--lcf-orange);
  border-color: var(--lcf-orange);
  color: #fff;
}

/* ── Page Agenda ── */
.lcf-page-agenda {
  background: var(--lcf-bg-dark);
  padding: 3rem 1.5rem;
}
.lcf-page-agenda__inner {
  max-width: var(--lcf-max-width);
  margin: 0 auto;
}
.lcf-page-agenda__title {
  color: var(--lcf-text-white);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 2rem;
}

/* Carte événement */
.lcf-agenda-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--lcf-bg-card);
  border: 1px solid var(--lcf-border-card);
  border-radius: var(--lcf-radius);
  padding: 1.25rem;
  transition: var(--lcf-transition);
}
.lcf-agenda-card:hover {
  border-color: rgba(255,255,255,.2);
  background: var(--lcf-bg-card-hover);
}
.lcf-agenda-card__date {
  width: 64px;
  min-width: 64px;
  height: 64px;
  border-radius: var(--lcf-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--lcf-navy);
  color: #fff;
  flex-shrink: 0;
}
.lcf-agenda-card__date.is-orange {
  background: var(--lcf-orange);
}
.lcf-agenda-card__info {
  flex: 1;
}
.lcf-agenda-card__title {
  font-size: var(--lcf-font-size-sm);
  font-weight: 600;
  color: var(--lcf-text-white);
  line-height: 1.3;
  margin: 0 0 0.25rem;
}
.lcf-agenda-card__sub {
  font-size: var(--lcf-font-size-xs);
  color: var(--lcf-text-muted);
  margin: 0;
}
.lcf-agenda-card__real-date {
  font-size: var(--lcf-font-size-xs);
  color: var(--lcf-orange);
  margin: 0.25rem 0 0;
  font-weight: 600;
}