@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(webfonts/Raleway800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(webfonts/Noto.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #ffb524;
  --green: #81c408;
  --green-light: #7cc83e;
  --green-dark: #3d6e1f;
  --green-footer: #45595b;
  --green-footer-border: #4a5e4a;
  --green-muted: #8aad6a;
  --yellow: #d4a017;
  --badge-bg: #f5a623;
  --badge-text: #5a3c00;
  --text-primary: #1a1a1a;
  --bg: #fff;
  --bg-surface: #f9f9f9;
  --border: rgba(0,0,0,0.1);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --teal: #45595b;
  --cream: #f9f5eb;
  --white: #ffffff;
  --shadow: 0 4px 18px rgba(69, 89, 91, 0.10);
}

html {
  text-rendering: optimizeSpeed;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  font-size: 1em;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
html,
body {
  overflow-x: hidden;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
}

h1 {
  font-family: 'Raleway', sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

h2 {
  font-family: 'Raleway', sans-serif;
}

p {
	font-size: 1em;
	line-height: 1.7em;
}

/* ── TOP BAR ── */
.top-bar {
  background: var(--green);
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 230px 100px;
  width: 98%;
  margin: 0 auto;
}

.top-bar__contact,
.top-bar__links {
  font-size: 0.8rem;
}

.top-bar__contact a,
.top-bar__links a {
  color: #fff;
}

.top-bar__contact a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar__contact a:hover,
.top-bar__links a:hover {
  color: var(--orange);
}

.top-bar__contact svg {
  width: 16px;
  height: 16px;
  fill: #ffb524;
  transform: translateY(1px);
}

.top-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--badge-bg);
  display: inline-block;
  flex-shrink: 0;
}

.top-bar__links {
  display: flex;
  gap: 4px;
  align-items: center;
  color: white;
}

.top-bar__links span {
  color: #d4f090;
  opacity: 0.5;
}

/* ── NAV ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.logo a {
  font-size: 2em;
  font-weight: 800;
  color: var(--green);
  font-family: 'Raleway', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 0.8em;
}

.logo img {
  height: 2.5em;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav__links a {
  font-size: 0.9em;
  color: var(--text-primary);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--green);
}

.nav__links .nav__categories {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
}

.nav__categories .arrow {
  font-size: 1.5rem;
  transition: transform 0.2s;
  display: inline-block;
}

.nav__categories.open .arrow {
  transform: rotate(180deg);
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 220px;
  z-index: 100;
  overflow: hidden;
}

.nav__categories.open .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 8px 12px;
  color: #333;
  transition: all 0.2s ease;
}

.dropdown a:hover {
  background-color: var(--green);
  color: #fff;
}

.nav__search {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.nav__search:hover {
  background: var(--green);
  color: #fff;
}

.nav__search svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 48px 32px 36px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero p {
  font-size: 1em;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 6px;
}

/* ── CARDS ── */
.cards-section {
  padding: 8px 32px 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card__img {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #f3f3f3;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.4s ease;
  z-index: 2;
}

.card__img img.loaded {
  opacity: 1;
}

.card:hover .card__img img {
  transform: scale(1.12);
}

.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 193, 7, 0.95);
  color: var(--green-footer);
  font-size: 0.9em;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.2s infinite;
  z-index: 1;
}

@keyframes skeleton-loading {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.card__img img.loaded + .card__badge,
.card__img img.loaded ~ .skeleton {
  display: none;
}

.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #ffb524;
  border-radius: 12px;
  will-change: transform;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.card__body {
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__body h2 {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.card__body p {
  font-size: 1em;
  color: var(--text-primary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.card__footer {
  display: flex;
  justify-content: flex-end;
}

.btn-read__icon,
.btn-mail__icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}

.btn-read__icon {
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

/* ── FOOTER ── */
footer {
  background: var(--green-footer);
  margin-top: auto;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 36px 32px;
  flex-wrap: wrap;
}

.footer__brand {
  text-align: center;
  flex-shrink: 0;
}

.footer__brand strong {
  color: var(--green);
  font-size: 2em;
  display: block;
  letter-spacing: 1px;
}

.footer__brand small {
  color: var(--orange);
  font-size: 1em;
  letter-spacing: 1px;
}

.footer__form {
  display: flex;
  border-radius: var(--radius-pill);
  overflow: hidden;
  flex-shrink: 0;
  height: 3.5em;
}

.footer__form input[type="email"] {
  padding: 11px 22px;
  font-size: 1em;
  border: none;
  outline: none;
  width: 260px;
  background: #fff;
  color: #333;
}

.footer__form button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 11px 22px;
  font-size: 1em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.footer__form button:hover {
  background: var(--orange);
  color: white;
}

.footer__socials {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.social-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  background: var(--green-footer);
}

.icon {
  width: 20px;
  height: 20px;
  color: var(--orange);
  background: var(--green-footer);
}

.social-btn:hover {
  border: 3px solid var(--orange);
  cursor: pointer;
}

.footer__bottom {
  border-top: 1px solid var(--green-footer-border);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--green-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom a {
  color: var(--green-light);
}

.footer__bottom a:hover {
  color: #fff;
}

/* ── HAMBURGER ── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MENU MOBILE ── */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a,
.mobile-menu__categories-toggle {
  font-family: 'Noto Sans', sans-serif;
  display: block;
  padding: 13px 24px;
  font-size: 1em;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mobile-menu a:hover,
.mobile-menu__categories-toggle:hover {
  background: var(--bg-surface);
  color: var(--green);
}

.mobile-menu__categories-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu__categories-toggle .arrow {
  font-size: 2em;
  transition: transform 0.2s;
}

.mobile-menu__categories-toggle.open .arrow {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  background: var(--bg-surface);
}

.mobile-submenu.open {
  display: block;
}

.mobile-submenu a {
  padding-left: 40px;
  font-size: 1em;
  color: var(--text-primary);
}

/* ── RESPONSIVE ── */
@media (max-width: 1280px) {
  .article h1 { font-size: 1.5em; }
  .article p { font-size: 0.9em; }
}

@media (max-width: 1024px) {
  .logo img { height: 2em; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

.article-layout {
  overflow: hidden;
  padding-bottom: 1.5em;
}

.article-image-wrapper {
  float: left;
  width: calc(50% - 24px);
  margin-right: 24px;
  margin-bottom: 12px;
  padding-top: 10px;
  border-radius: 12px;
  overflow: hidden;
}

.article-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 790px) {
  .article-image-wrapper {
    float: none;
    width: 100%;
    margin-right: 0;
	clear: both;
  }
    .article-image-wrapper img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 600px) {
  .recherche__item {
    flex-direction: column;
    align-items: flex-end;
  }
  .recherche__texte { width: 100%; }
}

@media (max-width: 560px) {
  .logo a { font-size: 2em; }
  .logo img { height: 2em; }
  .cards-grid { grid-template-columns: 1fr; }
  .top-bar__links { display: none; }
  nav { padding: 12px 16px; }
  .hero { padding: 32px 16px 24px; }
  .cards-section { padding: 8px 16px 40px; }
  .footer__top { flex-direction: column; gap: 20px; }
  .footer__form input[type="email"] { width: 180px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .form-row { flex-direction: column; gap: 0; }
}

/* ── SEARCH OVERLAY ── */
.search-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(0px);
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, backdrop-filter 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(12px);
}

.search-box {
  width: 90%;
  max-width: 600px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.search-overlay.active .search-box {
  transform: translateY(0);
}

.search-input-group {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.search-input-group input {
  flex: 1;
  padding: 20px;
  font-size: 18px;
  border: none;
  outline: none;
}

.search-input-group button {
  padding: 0 25px;
  border: none;
  background: #ffc107;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-input-group button:hover {
  background: #e0a800;
}

/* ── NEWSLETTER ── */
#newsletterFeedback {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.feedback-msg {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.feedback-msg.success {
  background: rgba(40, 167, 69, 0.15);
  color: #8dc63f;
  border: 1px solid green;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.feedback-msg.danger {
  background: rgb(248, 215, 218);
  color: #a2204b;
  border: 1px solid red;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.newsletter-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── ACTIVE STATES ── */
.nav__links a.active {
  color: var(--green);
  font-weight: bold;
  border-bottom: 1px solid var(--green);
}

.dropdown a.active {
  background: var(--green);
  color: #fff;
}

.mobile-menu a.active {
  color: var(--green);
  font-weight: bold;
}

.mobile-submenu a.active {
  background: var(--green) !important;
  color: var(--bg) !important;
}

/* ── RECHERCHE ── */
.recherche {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Raleway', sans-serif;
}

.recherche__header { margin-bottom: 2rem; }

.recherche__header h4 {
  font-size: 1rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 0.2rem;
}

.recherche__query {
  color: #e2af18;
  font-weight: 700;
}

.recherche__count {
  font-size: 0.85rem;
  color: #aaa;
}

.recherche__empty p {
  font-size: 0.9rem;
  color: #999;
}

.recherche__liste {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recherche__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.recherche__categorie {
  font-size: 0.72rem;
  color: #545454;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.recherche__titre {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.3rem;
}

.recherche__extrait {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.recherche__btn {
  display: inline-block;
  font-size: 0.78rem;
  padding: 5px 16px;
  background: #e2af18;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.recherche__btn:hover { background: #c99a10; }

/* ── ARTICLE ── */
.article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1em;
  min-width: 0;
}

.p_categorie {
  font-size: 0.8em;
  color: #888;
  margin: 0 0 8px;
}

.div_vote {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

/* ── AVATARS ── */
.avatar-choice {
  width: 56px;
  height: 56px;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  padding: 4px;
  transition: outline 0.2s;
  object-fit: contain;
  background-color: #f9f5eb;
  box-sizing: border-box;
  outline: 1px solid transparent;
  outline-offset: 1px;
  aspect-ratio: 1 / 1;
}

.avatar-choice.selected,
.avatar-choice:hover {
  outline-color: #e2af18;
  background-color: #fef3cd;
}

#avatarPreview {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: contain;
  padding: 1px;
  background-color: #fef3cd;
  outline: 1px solid #e2af18;
  outline-offset: 1px;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  transition: background-color 0.2s;
}

#avatarGrid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.avatar-preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.avatar-wrapper {
  padding-top: 1.5em;
  padding-bottom: 1.5em;
}

/* ── FORMULAIRE COMMENTAIRE ── */
#commentBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 18px;
  border: 2px solid #8dc63f;
  border-radius: 999px;
  background: transparent;
  color: #5a9a1a;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

#commentBtn:hover {
  background: #8dc63f;
  color: #ffffff;
}

#contactBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 18px;
  border: 2px solid #8dc63f;
  border-radius: 999px;
  background: transparent;
  color: #5a9a1a;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

#contactBtn:hover {
  background: #8dc63f;
  color: #ffffff;
}

.star-item {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.star-item svg,
.star-item svg * {
  pointer-events: none;
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-row > div {
  flex: 1 1 220px;
}

.form-control,
#commentText {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  border: 1px solid #D4EDD4;
  border-radius: 12px;
  font-size: 1em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:is(:hover, :focus),
#commentText:is(:hover, :focus) {
  box-shadow: 0 0 0 2px rgba(106, 191, 105, 0.18);
}

#commentText {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-control,
#contactText {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  border: 1px solid #D4EDD4;
  border-radius: 12px;
  font-size: 1em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:is(:hover, :focus),
#contactText:is(:hover, :focus) {
  box-shadow: 0 0 0 2px rgba(106, 191, 105, 0.18);
}

#contactText {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.div_comment {
  padding: 20px;
  border: 1px solid rgba(106, 191, 105, 0.18);
  border-radius: 30px;
  margin-top: 1em;
}

.div_comment:hover,
.div_comment:focus {
  border-color: rgba(106, 191, 105, 1);
}

#uploadFileName,
.rating-summary,
.avatar-preview-row span {
  font-size: 0.8em;
}
.bouton_top {
	position: fixed;
    bottom: 36px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--green);
    background: white;
    color: var(--green);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background 0.2s, color 0.2s;
    z-index: 999;
}
/* -------------------------------
   Tooltip / Glossaire stylisé
   Compatible PC – Tablette – Mobile
------------------------------- */
.glossaire {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted currentColor;
  display: inline-block;           /* important pour le positionnement */
  touch-action: manipulation;      /* évite zoom double-tap indésirable */
}

/* La bulle */
.glossaire::after {
  content: attr(data-gloss);
  position: absolute;
  bottom: 130%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  left: 0;
  right: auto;
  transform: translateX(0);
  margin-left: 0;                    /* ← supprimé le margin-left: 8px */
  min-width: 140px;
  max-width: min(320px, 85vw);       /* ← ne dépasse jamais l'écran */
  width: max-content;
  padding: 10px 14px;
  background: #1e293b;
  color: white;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  z-index: 100;
  transition: all 0.28s ease;
  white-space: normal;
}

/* Flèche */
.glossaire::after::after {
  content: "";
  position: absolute;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: #1e293b;
  left: 12px;                        /* positionne la flèche plus à gauche */
  transform: translateX(0);
}

/* Apparition – Desktop (vrai hover) */
@media (hover: hover) and (pointer: fine) {
  .glossaire:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-6px);
  }
}

/* Apparition – Touch / Mobile / Tablette */
@media (hover: none), (pointer: coarse) {
  .glossaire::after {
    position: fixed;
    top: calc(var(--bubble-top, 100px) - 60px); /* ← au-dessus du mot */
    left: var(--bubble-left, 50%);
    bottom: auto;
    transform: translateX(-50%);
    max-width: min(320px, 85vw);
    z-index: 9999;
  }

  .glossaire.show::after {
    opacity: 1;
    visibility: visible;
  }

  .glossaire {
    outline: none;
  }
}

.glossaire:focus,
.glossaire:active {
  border-bottom-color: #3b82f6;
  color: #3b82f6;
}

.glossaire.near-right::after {
  right: 0;
  left: auto;
  transform: translateX(0);
}

.glossaire.near-left::after {
  left: 0;
  right: auto;
  transform: translateX(0);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.90em;
    border: none;
    padding: 0;
    margin: 0;
    line-height: 1;
}
.breadcrumb a {
    color: var(--green-footer);
}
.breadcrumb a:hover {
    color: var(--orange);
	font-weight: bold;
}
.img-paragraphe {
  display: flow-root;
  margin-top: 5px;
}
.img-paragraphe img {
  float: left;
  margin-right: 15px;
  margin-bottom: 0px;
  width: 100px;
  height: auto;
  border-radius: 8px;
  cursor: zoom-in;
  transition: opacity 0.3s;
}
/* Overlay zoom */
#zoom-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#zoom-overlay.active {
  display: flex;
}

#zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 26px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#zoom-overlay.active img {
  transform: scale(1);
  opacity: 1;
}

/* Fermeture */
#zoom-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
/* MAP */
#map { 
	font-family: 'Noto Sans', sans-serif;
	font-weight: 600;
	height: 60vh; /* 70% de la hauteur de l'écran */
	min-height: 300px;
	width: 100%;
	border: 2px solid #ccc;
	border-radius: 10px;
}
.texte_source {
	padding-bottom: 1em;
	width: 100%;
	font-size: 0.75em;
	font-weight: 600;
	text-align: center;
}

.source {
	font-size: 0.85em;
}

.chart-container {
	width: 100%;
	max-width: 1200px;
	height: 500px;
	margin: 0 auto;
}

@media screen and (max-width: 1280px) {

.chart-container { 
	width: 100%;
	max-width: 1200px;
	height: 300px;
	margin: 0 auto;
}
}

@media screen and (max-width: 980px) {

.chart-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}
}

@media screen and (max-width: 736px) {

.chart-container { 
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}
}
@media (max-width: 1024px) {
    .tableau-desktop { display: none; }
    .tableau-mobile  { display: block; }
}
@media (min-width: 1025px) {
    .tableau-desktop { display: table; }
    .tableau-mobile  { display: none; }
}
.btn-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 2px solid var(--green); /* ou #2e7d32, ta couleur verte */
    border-radius: 50px;
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, border-color 0.2s;
}

.btn-custom:hover {
    color: var(--orange);
    border-color: var(--orange);
}
table td, table th {
    padding: 10px 16px; /* vertical | horizontal */
}

/* ─────────────────────────────────────────────
   SECTION CARROUSEL
───────────────────────────────────────────── */
/* ─────────────────────────────
   CARROUSEL
───────────────────────────── */

.articles-carousel,
.articles-carousel * {
  box-sizing: border-box;
}

.articles-carousel {
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

.container_carrousel {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  overflow: visible;
}

/* ─────────────────────────────
   TITRE
───────────────────────────── */

.carousel-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #2d4a2d;
  text-align: center;
  margin-bottom: 2rem;
}

/* ─────────────────────────────
   VIEWPORT
───────────────────────────── */

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-viewport.dragging {
  cursor: grabbing;
}

/* ─────────────────────────────
   TRACK
───────────────────────────── */

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-track.no-transition {
  transition: none;
}

/* ─────────────────────────────
   CARD
───────────────────────────── */

.article-card {
  flex: 0 0 calc((100% - 60px) / 4);
  min-width: 0;

  display: flex;
  flex-direction: column;

  text-decoration: none;
  color: inherit;

  background: #fff;
  border-radius: 16px;
  overflow: hidden;

  border: 1px solid #e8e8e8;

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,.08);
}

/* ─────────────────────────────
   IMAGE
───────────────────────────── */

.card-image-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────
   BADGE
───────────────────────────── */

.card-badge {
  position: absolute;
  top: 12px;
  left: 0;

  background: #8dc63f;
  color: #fff;

  font-size: 12px;
  padding: 5px 12px;

  border-radius: 0 20px 20px 0;
}

/* ─────────────────────────────
   BODY
───────────────────────────── */

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 0.95em;
  line-height: 1.35;
  margin-bottom: 12px;
  color: #222;
}

.card-desc {
  font-size: 0.85em;
  line-height: 1.6;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
  flex: 1;
}

/* ─────────────────────────────
   BOUTON
───────────────────────────── */

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 18px;
  border: 2px solid #8dc63f;
  border-radius: 999px;
  background: transparent;
  color: #5a9a1a;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.card-btn:hover {
  background: #8dc63f;
  color: #ffffff;
}

/* ─────────────────────────────
   NAVIGATION
───────────────────────────── */

.carousel-nav {
  display: flex;
  align-items: center;
  gap: 10px;
justify-content: flex-start;
  margin-top: 25px;
}


.nav-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
  flex-shrink: 0;
}

.card-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #8dc63f;
  background: white;
  color: #8dc63f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s;
}

.nav-btn:hover {
  background: #8dc63f;
  color: white;
}

.nav-dots {
  display: flex;
  gap: 22px;
}

.nav-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: #c7dba5;
}

.nav-dot.active {
  background: #5a9a1a;
  transform: scale(1.3);
}

/* ─────────────────────────────
   RESPONSIVE
───────────────────────────── */

@media (max-width: 1100px) {

  .article-card {
    flex: 0 0 calc((100% - 40px) / 3);
  }

}

@media (max-width: 768px) {

  .article-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }

  .carousel-heading {
    font-size: 24px;
  }

}

@media (max-width: 520px) {

  .container_carrousel {
    padding: 20px 10px;
  }

  .article-card {
    flex: 0 0 100%;
  }

  .card-desc {
    font-size: 14px;
  }

}

.nutrient{
margin-bottom: 1rem;
}

.label_detail{
display:flex;
justify-content:space-between;
font-weight:bold;
margin-bottom:6px;
}

.progress{
position:relative;
background:#f1f8e9;
border-radius:50px;
height:28px;
overflow:hidden;
}

.bar{
height:100%;
line-height:28px;
padding-right:12px;
text-align:right;
font-size:13px;
font-weight:bold;
color:#333;
border-radius:50px;
transition:0.4s ease;
}

/* Gamme bananier */
.yellow { background: linear-gradient(90deg,#fdd835,#fff176); }
.green-light { background: linear-gradient(90deg,#9ccc65,#dcedc8); }
.green-dark { background: linear-gradient(90deg,#2e7d32,#66bb6a); }

/* Effet fun au hover */
.nutrient:hover .bar{
filter: brightness(1.1);
transform: scaleX(1.10);
}

@media (max-width: 1024px) {
    .tableau-desktop { display: none; margin: 15px 0 15px 0; }
    .tableau-mobile  { display: block; }
}
@media (min-width: 1025px) {
    .tableau-desktop { display: table; margin: 15px 0 15px 0; }
    .tableau-mobile  { display: none; }
}
.custom-select-wrap {
	margin: 15px 0 15px 0;
  position: relative;
  width: 100%;
}

.custom-select-wrap i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1em;
  color: #5a9a1a;
  pointer-events: none;
  transition: color .2s;
}

select.card-btn-select {
  text-align: center;
  display: inline-flex;
  align-items: center;
width: 100%;
  padding: 10px 44px 10px 18px;
  border: 2px solid #8dc63f;
  border-radius: 999px;
  background: transparent;
  color: #5a9a1a;
  font-size: 1em;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

select.card-btn-select:hover {
  background: #8dc63f;
  color: #fff;
}

select.card-btn-select:hover + i {
  color: #fff;
}

select.card-btn-select:focus-visible {
  box-shadow: 0 0 0 3px #8dc63f55;
}
.sitemap {
  margin-left: auto;
  max-width: 1200px;
}

/* STYLE RECETTES */


  h2.section-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 4vw, 36px);
    color: var(--teal);
    margin-bottom: 32px;
    text-align: center;
  }

  h2.section-title span {
    color: var(--green);
  }

  .recettes {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
	padding-top: 30px;
  }

  /* ---- CARD ---- */
  .card-recette {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
  }

  .card-recette:hover {
    box-shadow: 0 8px 32px rgba(69, 89, 91, 0.16);
    transform: translateY(-3px);
  }

  /* ---- IMAGE ---- */
  .card-recette__img {
    flex: 0 0 220px;
    position: relative;
    overflow: hidden;
  }

  .card-recette__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }

  .card-recette:hover .card-recette__img img {
    transform: scale(1.05);
  }

  /* Badge catégorie sur l'image */
  .card-recette__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--orange);
    color: var(--white);
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 999px;
  }

  /* ---- CONTENU ---- */
  .card-recette__body {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
  }

  .card-recette__titre {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: clamp(17px, 2vw, 21px);
    color: var(--teal);
    line-height: 1.3;
  }

  .card-recette__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--teal);
    opacity: 0.8;
    flex: 1;
  }

  /* Métadonnées : durée, difficulté, portions */
  .card-recette__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--teal);
    opacity: 0.75;
    margin-top: 4px;
  }

  .card-recette__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .card-recette__meta svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    fill: var(--green);
  }

  /* ---- RESPONSIVE MOBILE ---- */
  @media (max-width: 600px) {
    .card-recette {
      flex-direction: column;
    }

    .card-recette__img {
      flex: 0 0 200px;
      width: 100%;
      height: 200px;
    }

    .card-recette__body {
      padding: 18px 18px 20px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .card-recette,
    .card-recette__img img,
  }

/* BARRE OUTIL RECETTE */
.recipe-toolbar{
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:12px;
    padding:20px;
    margin-bottom:30px;
}

.recipe-search{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:8px;
    margin-bottom:15px;
}

.toolbar-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.tool-btn{
    border:none;
    background:#8dc63f;
    color:#fff;
    padding:10px 15px;
    border-radius:30px;
    cursor:pointer;
}

.tool-btn:hover{
    background:#6ea72c;
}

.tool-panel{
    display:none;
    margin-top:15px;
    padding:15px;
    background:#f8f8f8;
    border-radius:8px;
}

.tool-panel.active{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
}

.tool-panel label{
    display:flex;
    align-items:center;
    gap:6px;
}

#activeFilters{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:15px;
}

.filter-tag{
    background:#8dc63f;
    color:white;
    border-radius:20px;
    padding:5px 10px;
}

/* ===========================
      BANANAS NEWS GRID
=========================== */

.news-grid{

    max-width:1700px;

    margin: 1em auto;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

    align-items:stretch;

}


/* ===========================
        ARTICLE A LA UNE
=========================== */

.featured{

    grid-column:span 2;

    grid-row:span 2;

    min-height:620px;

}


/* ===========================
          CARDS
=========================== */

.news-card{

    background:#FFF;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 8px 30px rgba(0,0,0,.08);

    transition:.30s;

    display:flex;

    flex-direction:column;

    min-height:290px;
	
	padding: 20px 20px;

}

.news-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 45px rgba(0,0,0,.16);

}


/* image */

.news-card img{

    width:100%;

    height:220px;

    object-fit:cover;

    display:block;

}

.featured img{

    height:420px;

}


/* contenu */

.news-content{

    padding:22px;

    display:flex;

    flex-direction:column;

    flex:1;

}

.news-category{

    font-size:13px;

    font-weight:bold;

    color:#7dbb36;

    text-transform:uppercase;

    letter-spacing:2px;

}

.news-title{

    font-size:28px;

    font-weight:700;

    margin:12px 0;

    line-height:1.2;

}

.news-card:not(.featured) .news-title{

    font-size:20px;

}

.news-description{

    flex:1;

    color:#555;

    line-height:1.6;

    margin-bottom:18px;

}

.news-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:14px;

    color:#888;

}


/* ===========================
        TABLETTE
=========================== */

@media(max-width:1200px){

.news-grid{
	gap:20px;
    grid-template-columns:repeat(3,1fr);

}

.featured{

    grid-column:span 3;

    grid-row:auto;

    min-height:auto;

}

.featured img{

    height:350px;

}

}

/* ===========================
      PETITE TABLETTE
=========================== */

@media (max-width:1000px){

    .news-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .featured{
        grid-column:span 2;
    }

}

/* ===========================
          MOBILE
=========================== */

@media(max-width:768px){

.news-grid{
	gap:15px;
    grid-template-columns:1fr;

}

.featured{

    grid-column:auto;

}

.news-card{
    width: 100%;
    flex: 0 0 100%;
    min-height:auto;
    margin-left: auto;
    margin-right: auto;

}

.featured img{

    height:260px;

}

.news-card img{

    height:220px;

}

.news-title{

    font-size:22px;

}

.news-card:not(.featured) .news-title{

    font-size:22px;

}

}

.accueil {
	font-size:0.9em;
}