@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Kufam:ital,wght@0,400..900;1,400..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&display=swap');

:root {
  --site-text: #17352f;
  --site-text-muted: #53645f;
  --site-accent: #03a66a;
  --site-accent-dark: #1f6a46;
  --site-accent-soft: #dfe9d8;
  --site-highlight: #cbd32a;
  --site-bg: #f7f5ef;
  --site-surface: #ffffff;
  --site-surface-soft: rgba(255, 255, 255, 0.72);
  --site-border: rgba(23, 53, 47, 0.08);
  --site-shadow: 0 18px 50px rgba(16, 38, 32, 0.08);
  --site-shadow-soft: 0 10px 28px rgba(16, 38, 32, 0.06);
  --site-radius-lg: 10px;
  --site-radius-md: 10px;
  --site-radius-sm: 10px;
  --site-container: 1180px;
  --site-font: "Kufam", sans-serif;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: var(--site-font);
  font-style: normal;
  color: var(--site-text);
  background: linear-gradient(180deg, #f8f6f1 0%, #f5f3ee 100%);
  line-height: 1.65;
}

img {
  display: block;
  height: auto;
  border-radius: 10px;
}

a {
  color: var(--site-accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--site-accent-dark);
}

p {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--site-text-muted);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  line-height: 1.15;
  color: var(--site-text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 2.9rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

h4 {
  font-size: 1.05rem;
}

ul,
ol {
  margin: 0 0 1rem 1.25rem;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-width,
.my-5,
.entry-content,
.wp-block-post-content {
  width: min(var(--site-container), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.yoast-breadcrumbs {
  margin-bottom: 20px;
  color: var(--site-text-muted);
}

/* Liens du header et footer 
header a,
footer a {
  background: linear-gradient(97deg, #cbd32a -24%, #03a66a 120%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--site-accent);
}*/

/* Liens éditoriaux hors home */
.entry-content a,
.wp-block-post-content a,
.single-content a,
.articles-container a,
p a,
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  background: linear-gradient(97deg, #cbd32a -24%, #03a66a 120%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--site-accent);
}

/* Gutenberg */
.entry-content,
.wp-block-post-content,
.single-body {
  max-width: 820px;
}

.entry-content > * + *,
.wp-block-post-content > * + * {
  margin-top: 1.25rem;
}

.entry-content img,
.wp-block-post-content img,
.wp-block-image img,
.wp-block-cover,
.wp-block-gallery,
.wp-block-media-text {
  border-radius: 16px;
}

.wp-block-group,
.wp-block-columns {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.wp-block-quote {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--site-accent);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 16px 16px 0;
  box-shadow: var(--site-shadow-soft);
}

.wp-block-button__link {
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
}

.kadence-blocks-gallery-item {
  width: 100px;
}
.main-menu .nav li a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
}

.main-menu .nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--site-accent);
  transition: width 0.25s ease;
}

.main-menu .nav li a:hover::after,
.main-menu .nav li a:focus-visible::after {
  width: 100%;
}
/************************************** Header ******************************************/

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 199999;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.site-header.hide {
  transform: translateY(-100%);
}

.header-top {
  display: flex;
  align-items: center;
}

.logo {
  width: 20%;
}

.logo img {
  max-height: 100px;
  width: auto;
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 70%;
}

.recherche {
  width: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-menu .nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.main-menu .nav li a {
  font-weight: 700;
}

.main-menu .nav li a:hover {
  color: var(--site-accent);
}

.header-search {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 1rem;
}

/* Search */
.fx-search {
  --h: 40px;
  --radius: 999px;
  --dur: 0.25s;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  height: var(--h);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: width var(--dur) ease, box-shadow var(--dur);
}

.fx-search--compact {
  width: 44px;
  padding: 0 2px 0 4px;
  overflow: hidden;
}

.fx-search--compact.is-open {
  width: clamp(260px, 80vw, 900px);
  padding: 0 6px 0 8px;
}

.fx-search__toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.fx-search__icon {
  transition: transform var(--dur) ease;
}

.fx-search--compact.is-open .fx-search__icon {
  transform: rotate(90deg) scale(1.05);
}

.fx-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: calc(var(--h) - 8px);
  border: 0;
  outline: none;
  background: transparent;
  font: 500 15px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.fx-search__input::placeholder {
  opacity: 0.55;
}

.fx-search__submit {
  border: 0;
  background: transparent;
  font: 600 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.7;
  transition: background 0.15s, opacity 0.15s, transform 0.05s;
}

.fx-search__submit:hover {
  background: rgba(0, 0, 0, 0.06);
  opacity: 1;
}

.fx-search__submit:active {
  transform: translateY(1px);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/************************************** Hero page ******************************************/

.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.hero-image {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-text {
  margin-top: 10vh;
  color: white;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(23, 53, 47, 0.22);
  backdrop-filter: blur(6px);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  margin-bottom: 1rem;
  letter-spacing: 1px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.5;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

/************************************** Footer ******************************************/

.site-footer {
  --green: #0b6b3a;
  --green-dark: #064d2b;
  --ink: #102a24;
  --muted: #5f6f68;
  --line: rgba(16, 42, 36, 0.14);
  --paper: #f4f1e8;
  --white: #ffffff;

  background: var(--paper);
  color: var(--ink);
  padding: 72px 24px 30px;
}

.footer-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: clamp(42px, 7vw, 88px);
  align-items: start;
}

.footer-newsletter,
.footer-block {
  min-width: 0;
}

.footer-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-title {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.2rem, 3.2vw, 2.7rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 750;
}

.footer-subtitle {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 750;
}

.footer-text {
  max-width: 540px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.newsletter-form {
  margin-top: 32px;
  max-width: 560px;
}

.newsletter-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  outline: none;
  box-shadow: 0 12px 30px rgba(16, 42, 36, 0.06);
}

.newsletter-form input[type="email"]::placeholder {
  color: #8a9691;
}

.newsletter-form input[type="email"]:focus {
  border-color: rgba(11, 107, 58, 0.55);
  box-shadow: 0 0 0 4px rgba(11, 107, 58, 0.1);
}

.footer-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-btn::before,
.footer-btn::after {
  content: none !important;
}

.footer-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.footer-btn--secondary {
  margin-top: 22px;
  background: transparent;
  color: var(--green);
  border: 1px solid rgba(11, 107, 58, 0.32);
}

.footer-btn--secondary:hover {
  background: var(--green);
  color: #fff;
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 520px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.newsletter-consent input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  accent-color: var(--green);
}

.newsletter-consent a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-side {
  display: grid;
  gap: 32px;
}

.footer-block {
  padding-top: 2px;
}

.footer-block + .footer-block {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.footer-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 24px;
}

.footer-logos img {
  display: block;
  width: auto;
  max-width: 148px;
  max-height: 56px;
  object-fit: contain;
  opacity: 0.82;
}

.footer-address {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 76px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #6d7a75;
  font-size: 0.88rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--green);
}

.footer-copy {
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .site-footer {
    padding-top: 58px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-title {
    max-width: 760px;
  }

  .footer-side {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-block + .footer-block {
    padding-top: 2px;
    border-top: 0;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 48px 18px 24px;
  }

  .footer-title {
    font-size: clamp(2.15rem, 12vw, 3.4rem);
  }

  .footer-text {
    font-size: 1rem;
  }

  .newsletter-form__row {
    grid-template-columns: 1fr;
  }

  .footer-btn {
    width: 100%;
  }

  .footer-side {
    grid-template-columns: 1fr;
  }

  .footer-block + .footer-block {
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }

  .footer-bottom {
    display: grid;
    gap: 18px;
    margin-top: 56px;
  }

  .footer-copy {
    white-space: normal;
  }
}

/* Boutons éditoriaux hors home */
.entry-content button,
.single-content button,
.articles-container button,
.newsletter-form button {
  position: relative;
  width: 100%;
  font-size: 1rem;
  text-transform: uppercase;
  font-family: var(--site-font);
  color: var(--site-accent);
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
  line-height: 1;
border: 1px solid;
}

.entry-content button::after,
.single-content button::after,
.articles-container button::after,
.newsletter-form button::after {
  content: "";
  display: inline-block;
  width: 23px;
  height: 14px;
  margin-left: 2px;
  background: url(https://www.ffrandonnee.fr/Themes/TheThemeMachine/Styles/dist/images/artistic-buttons/darkgreen-btn-arrow.svg) center no-repeat;
  background-size: contain;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.entry-content button:hover::after,
.single-content button:hover::after,
.articles-container button:hover::after,
.newsletter-form button:hover::after {
  transform: translateX(10px);
}

.entry-content button::before,
.single-content button::before,
.articles-container button::before,
.newsletter-form button::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: url(https://www.ffrandonnee.fr/Themes/TheThemeMachine/Styles/dist/images/artistic-buttons/darkgreen-btn-underline.svg) center no-repeat;
  background-size: contain;
}

/************************************** Articles ******************************************/

.articles-container {
  max-width: 980px;
  margin: 87px auto;
  padding: 2rem 1rem;
  color: var(--site-text);
}

.articles-container h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.articles-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  overflow-x: auto;
  margin-bottom: 2rem;
}

.articles-filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: 0.6rem 1rem;
  border: 1px solid #dfe6e1;
  border-radius: 999px;
  background: #f7faf8;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  color: var(--site-text);
}

.filter-btn:hover {
  background: #edf5f0;
}

.filter-btn.active {
  background: var(--site-accent-dark);
  color: #fff;
  border-color: var(--site-accent-dark);
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-row {
  position: relative;
  display: flex;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--site-border);
  border-radius: 20px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--site-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--site-shadow);
}

.article-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e53935;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 0.5rem;
  text-transform: uppercase;
}

.article-thumb img {
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
}

.article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-content h2 {
  width: auto;
  text-align: left;
  display: block;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  font-size: 1.35rem;
  color: var(--site-text);
  background: none;
  -webkit-text-fill-color: initial;
}

.article-content .date {
  font-size: 0.85rem;
  color: #7a8b85;
  margin-bottom: 0.75rem;
}

.article-content .excerpt {
  font-size: 0.98rem;
  color: var(--site-text-muted);
  line-height: 1.7;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 0.55rem 0.95rem;
  border: 1px solid #d8dfdb;
  border-radius: 12px;
  text-decoration: none;
  color: var(--site-text);
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.85);
}

.pagination a:hover {
  background: #f0f5f1;
}

.pagination .current {
  background: var(--site-accent-dark);
  color: #fff;
  border-color: var(--site-accent-dark);
}

/************************************** Single ******************************************/

.single-container {
  max-width: 100%;
  padding: 16vh 6vw 10vh;
  display: grid;
  grid-template-columns: 4% 20% 4% 56% 14%;
}

.single-sidebar {
  grid-column: 2;
  position: relative;
}

.sidebar-box {
  background: rgba(255, 255, 255, 0.86);
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--site-border);
  margin-bottom: 1.5rem;
  box-shadow: var(--site-shadow-soft);
  position: sticky;
  top: 2rem;
}

.single-content {
  grid-column: 4;
  background: rgba(255, 255, 255, 0.88);
  padding: 2rem;
  border-radius: 22px;
  border: 1px solid var(--site-border);
  box-shadow: var(--site-shadow-soft);
}

.single-thumb img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.single-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.single-meta {
  font-size: 0.95rem;
  color: #7a8b85;
  margin-bottom: 1.5rem;
}

.single-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--site-text-muted);
}

.single-body h2 {
  margin-top: 2rem;
  font-size: 1.7rem;
  color: var(--site-text);
  background: none;
  -webkit-text-fill-color: initial;
}

.single-body p {
  margin-bottom: 1rem;
}

/************************************** Home ******************************************/
.home-page {
  --home-bg: #f5f3ee;
  --home-surface: #ffffff;
  --home-surface-soft: #f0f4ee;
  --home-text: #17352f;
  --home-text-muted: #53645f;
  --home-border: rgba(23, 53, 47, 0.08);
  --home-primary: #2f6b46;
  --home-primary-dark: #245338;
  --home-secondary: #dfe9d8;
  --home-shadow: 0 18px 50px rgba(16, 38, 32, 0.08);
  --home-radius-lg: 10px;
  --home-radius-md: 10px;
  --home-radius-sm: 10px;
  color: var(--home-text);
  background: linear-gradient(180deg, #f8f6f1 0%, #f5f3ee 100%);
}

.home-page,
.home-page * {
  box-sizing: border-box;
}

.home-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.home-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.home-section-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.1;
  color: var(--home-text);
  text-align: left;
}

.home-section-head {
  margin-bottom: 32px;
}

.home-hero,
.home-intro,
.home-topics,
.home-stats,
.home-posts {
  padding: 48px 0;
}

.home-hero {
  padding-top: 100px;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 56px;
  align-items: center;
}

.home-hero__content {
  max-width: 600px;
}

.home-hero__eyebrow {
  margin-bottom: 24px;
}

.home-hero__logo img {
  max-height: 56px;
  width: auto;
}

.home-hero__eyebrow-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--home-primary);
}

.home-hero__title {
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--home-text);
}

.home-hero__text {
  max-width: 580px;
  margin: 0 0 32px;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--home-text-muted);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-button:hover,
.home-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 53, 47, 0.12);
}

.home-button--primary {
  color: #ffffff;
  background: var(--home-primary);
}

.home-button--primary:hover,
.home-button--primary:focus-visible {
  color: #ffffff;
  background: var(--home-primary-dark);
}

.home-button--secondary {
  color: var(--home-text);
  background: var(--home-secondary);
}

.home-hero__media {
  position: relative;
}

.home-hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--home-radius-lg);
  box-shadow: var(--home-shadow);
}

.home-intro__inner {
  padding: 40px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-lg);
}

.home-intro__inner p {
  margin: 0 0 18px;
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--home-text-muted);
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--home-primary);
  text-decoration: none;
}

.home-text-link::after {
  content: "→";
  font-size: 1.1em;
}

.home-topics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.home-topic-card {
  min-width: 0;
}

.home-topic-card__link {
  display: block;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  box-shadow: 0 14px 36px rgba(16, 38, 32, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-topic-card__link:hover,
.home-topic-card__link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(16, 38, 32, 0.1);
}

.home-topic-card__media {
  overflow: hidden;
}

.home-topic-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.home-topic-card__content {
  padding: 24px;
}

.home-topic-card__title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--home-text);
}

.home-topic-card__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--home-text-muted);
}
.home-topic-card__wave {
  position: relative;
  margin-top: -40px;
  background: var(--home-surface);
  border-top-left-radius: 50% 40px;
  border-top-right-radius: 50% 40px;
  padding-top: 40px;
}
.home-topic-card__icon {
  position: absolute;
  top: -28px;
  left: 24px;

  width: 56px;
  height: 56px;

  background: #2E6F5E;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.home-topic-card__icon img {
  width: 26px;
  height: 26px;
}
.home-stats__panel {
  padding: 40px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(47, 107, 70, 0.08);
  border-radius: var(--home-radius-lg);
}

.home-stats__panel .home-section-title {
  margin-bottom: 28px;
}

.home-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-stat {
  padding: 28px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(23, 53, 47, 0.06);
  border-radius: var(--home-radius-md);
  text-align: center;
}

.home-stat__value {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1;
  font-weight: 800;
  color: var(--home-primary);
}

.home-stat__label {
  margin: 0;
  font-size: 1.05rem;
  color: var(--home-text-muted);
}

.home-section-head--with-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.home-posts__nav {
  display: flex;
  gap: 12px;
}

.home-posts__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  background: var(--home-surface);
  color: var(--home-text);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 38, 32, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.home-posts__arrow:hover,
.home-posts__arrow:focus-visible {
  transform: translateY(-2px);
  background: var(--home-secondary);
}

.home-posts__arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.home-posts__slider {
  overflow: hidden;
}

.home-posts__track {
  display: flex;
  gap: 24px;
  transition: transform 0.35s ease;
  will-change: transform;
}

.home-posts__slide {
  flex: 0 0 calc((100% - 48px) / 3);
}

.home-post-card {
  min-width: 0;
  margin: 0;
}

.home-post-card__link {
  display: block;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  box-shadow: 0 14px 36px rgba(16, 38, 32, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-post-card__link:hover,
.home-post-card__link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(16, 38, 32, 0.1);
}

.home-post-card__media {
  overflow: hidden;
}

.home-post-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.home-post-card__content {
  padding: 24px;
}

.home-post-card__meta {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #6f817b;
}

.home-post-card__title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--home-text);
}

.home-post-card__excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--home-text-muted);
}

.home-posts__empty {
  margin: 0;
  padding: 24px;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  color: var(--home-text-muted);
}

@media (max-width: 1100px) {
  .single-container {
    grid-template-columns: 1fr;
    padding: 8rem 1.25rem 4rem;
  }

  .single-sidebar,
  .single-content {
    grid-column: auto;
  }

  .single-sidebar {
    position: static;
  }
}

@media (max-width: 1024px) {
  .home-hero__grid,
  .home-topics__grid,
  .home-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-posts__slide {
    flex: 0 0 calc((100% - 24px) / 2);
  }

  .home-hero__grid {
    align-items: start;
  }
}

@media (max-width: 900px) {
  .header-top {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .logo,
  .main-menu,
  .recherche {
    width: 100%;
  }

  .main-menu {
    justify-content: flex-start;
  }

  .footer-column {
    width: 100%;
  }

  .my-5,
  .entry-content,
  .wp-block-post-content {
    width: min(var(--site-container), calc(100% - 24px));
  }
}

@media (max-width: 768px) {
  .article-row {
    flex-direction: column;
  }

  .article-thumb img {
    width: 100%;
    height: auto;
  }

  .hero-image {
    background-attachment: scroll;
  }

  .hero-text {
    margin-top: 6rem;
    padding: 1.25rem;
  }
}

@media (max-width: 767px) {
  .home-hero,
  .home-intro,
  .home-topics,
  .home-stats,
  .home-posts {
    padding: 40px 0;
  }

  .home-container {
    width: min(100% - 24px, 1180px);
  }

  .home-hero__grid,
  .home-topics__grid,
  .home-stats__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-section-head--with-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-posts__slide {
    flex: 0 0 100%;
  }

  .home-hero__title {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .home-hero__text,
  .home-intro__inner p {
    font-size: 1rem;
  }

  .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-button {
    width: 100%;
  }

  .home-intro__inner,
  .home-stats__panel,
  .home-topic-card__content,
  .home-post-card__content {
    padding: 20px;
  }
}
/**************Pages*******************/
.card {
  overflow: hidden;
}

.card__media {
  width: 100%;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/*******************User dropdowmn********************/
.user-menu{
    position:relative;
    display:flex;
    align-items:center;
}

.user-avatar{
    width:46px;
    height:46px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    font-weight:700;
    font-size:15px;
    color:#fff;
    background:linear-gradient(135deg,var(--site-accent),var(--site-accent-dark));
    box-shadow:0 10px 24px rgba(3,166,106,0.18);
    transition:transform .2s ease, box-shadow .2s ease;
}

.user-avatar:hover{
    transform:translateY(-2px);
    box-shadow:0 16px 30px rgba(3,166,106,0.25);
}

.user-dropdown{
    position:absolute;
    top:calc(100% + 14px);
    right:0;
    width:240px;
    padding:10px;
    border-radius:22px;
    background:rgba(255,255,255,.82);
    backdrop-filter:blur(14px);
    border:1px solid rgba(255,255,255,.6);
    box-shadow:0 18px 50px rgba(16,38,32,.12);
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:opacity .2s ease, transform .2s ease, visibility .2s;
}

.user-dropdown.is-open{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.user-dropdown a{
    display:flex;
    align-items:center;
    padding:14px 16px;
    border-radius:14px;
    font-weight:600;
    color:var(--site-text);
    transition:background .2s ease, transform .2s ease;
}

.user-dropdown a:hover{
    background:rgba(3,166,106,.08);
    transform:translateX(4px);
    color:var(--site-accent-dark);
}
/*****************Formaulaire UM**********************/

.um-page-login,
.um-page-register {

    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(3,166,106,0.10), transparent 30%),
        radial-gradient(circle at bottom right, rgba(203,211,42,0.12), transparent 30%),
        linear-gradient(180deg, #f8f6f1 0%, #f5f3ee 100%);
}

/* Card */

.um {

    max-width: 480px !important;
    margin: auto !important;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 12px;
    padding: 42px !important;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.05),
        0 24px 80px rgba(16,38,32,0.08);
}

/* Logo */

.um:before {
    content: "";
    display: block;
    width: 180px;
    height: 80px;
    margin: 0 auto 28px;
    background-image: url('https://itineraires-ffrandonnee.fr/Observatoire/wp-content/uploads/2025/07/logo-ffrando-335x160px-coul-300x143-1.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Labels */

.um .um-field-label label {
    font-weight: 700;
    font-size: 14px;
    color: var(--site-text);
    margin-bottom: 8px;
}

/* Inputs */

.um input[type="text"],
.um input[type="email"],
.um input[type="password"] {
    height: 54px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(23,53,47,0.08) !important;
    background: rgba(255,255,255,0.9) !important;
    padding: 0 18px !important;
    transition: all 0.25s ease;
}

/* Focus */

.um input:focus {
    border-color: var(--site-accent) !important;
    box-shadow:
        0 0 0 4px rgba(3,166,106,0.12) !important;
}

/* Bouton */

.um .um-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 54px;
    padding: 0 24px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    background: #2f6b46 !important;
    color: #ffffff !important;
    border: none !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease !important;
}

/* Hover */

.um .um-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 30px rgba(0,0,0,0.12);
}

/* Liens */
.um a {
    color: var(--site-accent-dark);
    font-weight: 600;
}

/* Erreurs */
.um .um-field-error {
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff2f2;
    color: #9b1c1c;
    border: 1px solid rgba(155,28,28,0.12);
}
label[for="introduction-901"] {

    display: block;
    margin-bottom: 28px;
    padding: 20px 24px;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(3,166,106,0.06),
            rgba(203,211,42,0.08)
        );
    border: 1px solid rgba(3,166,106,0.08);
    color: var(--site-text-muted);
    line-height: 1.8;
    font-size: 15px;
    text-align: justify;
    font-weight: 400 !important;
}
.um-field-introduction .um-field-area {
    display: none;
}
/*********************** Menu principal *************************************/
.site-header,
.header-top,
.main-menu {
  overflow: visible;
}

.main-menu .nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu .nav > li {
  position: relative;
  margin: 0;
  padding: 0;
}

.main-menu .nav a {
  display: inline-flex;
  align-items: center;
  color: #009b63;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-menu .nav a:hover,
.main-menu .nav a:focus {
  color: #006b45;
}

/* Soulignement horizontal des éléments qui possèdent un sous-menu */
.main-menu .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: auto;
  bottom: -2px;
  left: 0;
  display: block;
  width: 0;
  height: 2px;
  margin: 0;
  background: var(--site-accent);
  border: 0;
  transform: none;
  transition: width 0.25s ease;
}

.main-menu .menu-item-has-children:hover > a::after,
.main-menu .menu-item-has-children:focus-within > a::after {
  width: 100%;
  margin: 0;
  transform: none;
}

/* Zone invisible : empêche le sous-menu de disparaître au passage de souris */
.main-menu .menu-item-has-children::after {
  content: "";
  position: absolute;
  z-index: 999;
  top: 100%;
  left: -14px;
  width: calc(100% + 28px);
  height: 16px;
}

/* Sous-menu */
.main-menu .sub-menu {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 12px);
  left: -14px;
  width: 290px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #ffffff;
  border: 1px solid #dfe9df;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(20, 64, 47, 0.16);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.main-menu .sub-menu li {
  margin: 0;
  padding: 0;
}

.main-menu .sub-menu a {
  display: block;
  padding: 11px 12px;
  color: #174336;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.main-menu .sub-menu a:hover,
.main-menu .sub-menu a:focus {
  color: #007f52;
  background: #edf6ef;
}

/* Ouverture à la souris et au clavier */
.main-menu .menu-item-has-children:hover > .sub-menu,
.main-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.login-btn{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 16px;
    border-radius:999px;
    background:#0d6efd;
    color:var(--site-accent);
    text-decoration:none;
    font-weight:600;
    transition:.2s;
}

.login-btn:hover{
    background:#0b5ed7;
    color:#fff;
}

.login-btn svg{
    flex-shrink:0;
}