/* Styles extraits de src/layouts/inc/head.php (externalisés pour le cache navigateur). */
  #pdfViewer {
    width: 100%;
    height: 600px;
    border: 1px solid #ccc;
  }

  .canvas-container {
    position: relative;
    display: inline-block;
  }

  .canvas-container canvas {
    cursor: pointer;
  }


  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--heading-color) !important;
    font-family: var(--heading-font) !important;
  }

  h1 {
    font-size: 1.87rem !important;
    font-weight: 700 !important;
  }

  h2 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
  }

  h3 {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .post-thumbnail,
  .post-img img,
  .container img {
    width: 100%;
    height: auto;
  }

  .transparent-bg {
    background: linear-gradient(to right, #b4ffe549, #b9f2ff2c);
    border: 1px solid #ddd;
  }

  .body-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
  }

  .body-content table th,
  .body-content table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
  }

  .body-content table th {
    background-color: #f2f2f2;
    font-weight: bold;
  }

  .body-content table tr:nth-child(odd) {
    background-color: #f9f9f9;
  }

  @media (max-width: 600px) {
    .body-content table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
    }
  }

  .body-content iframe {
    width: 100%;
    height: auto;
    min-height: 300px;
    border: none;
    display: block;
    margin: 10px 0;
    aspect-ratio: 16 / 9;
  }

  #partners_slider { background: var(--green-50); }
  #partners_slider .partners-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
  #partners_slider .partners-eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .16em;
    font-size: .74rem; font-weight: 700; color: var(--accent-600); margin-bottom: 6px; }
  #partners_slider .partners-title { color: var(--green-700) !important; font-size: 1.9rem; font-weight: 800; margin: 4px 0 10px; }
  #partners_slider .partners-title::after { content: ""; display: block; width: 54px; height: 3px; background: var(--accent-600); border-radius: 2px; margin: 12px auto 0; }
  #partners_slider .partners-head p { color: var(--muted); margin: 14px 0 0; }

  #partners_slider .slick-slide { margin: 0 14px; height: auto; }
  #partners_slider .slick-list { overflow: hidden; margin: 0 auto; }
  #partners_slider .slick-track { display: flex; align-items: stretch; }

  #partners_slider .partner-tile { display: flex; align-items: center; justify-content: center; height: 112px;
    padding: 18px 26px; background: #fff; border: 1px solid #E3E6D8; border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease; }
  #partners_slider .partner-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 0, 0, .10); }
  #partners_slider .partner-tile img { max-height: 68px; max-width: 100%; width: auto; height: auto;
    object-fit: contain; filter: grayscale(35%); opacity: .85; transition: filter .25s ease, opacity .25s ease; }
  #partners_slider .partner-tile:hover img { filter: none; opacity: 1; }
  
  .share_content{
       margin-top: 20px;
  }
  
    .share_socail {
            display: flex;
            flex-direction: row;  /* Aligner les boutons sur une même ligne */
            justify-content: flex-start;  /* Aligner à gauche */
            gap: 10px;
        }
        
        
        .title-share {
            font-size: 18px;
            font-weight: 600 !important;
            color: #35540F !important;
            margin-bottom: 10px;
        }
        
        .m_icon {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            font-size: 19px;
            color: #fff;
            transition: all 0.3s ease;
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        }
        
        .m_icon i {
            transition: transform 0.3s ease;
        }
        
        .m_icon:hover i {
            transform: scale(1.2);
        }
        
        .m_icon.facebook {
            background-color: #3b5998;
        }
        
        .m_icon.twitter {
            background-color: #1da1f2;
        }
        
        .m_icon.whatsapp {
            background-color: #25d366;
        }
        
        .m_icon:hover {
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            transform: translateY(-5px);
        }
        
        /* Animation au survol */
        .m_icon::after {
            content: "";
            position: absolute;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transition: all 0.5s ease;
            z-index: -1;
        }
        
        .m_icon:hover::after {
            width: 120%;
            height: 120%;
        }
        
        /* Tooltip pour l'information */
        .m_icon[data-toggle="tooltip"] {
            position: relative;
        }
        
        .m_icon[data-toggle="tooltip"]::before {
            content: attr(title);
            position: absolute;
            bottom: -40px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(21, 71, 50, 0.8);
            color: #ffffff;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 12px;
            opacity: 0;
            white-space: nowrap;
            pointer-events: none;
            transition: all 0.3s ease;
        }
        
        .m_icon[data-toggle="tooltip"]:hover::before {
            opacity: 1;
            transform: translateX(-50%) translateY(-5px);
        }
        
/* ===================== HERO — redesign premium ===================== */
#hero { overflow: hidden; width: 100%; position: relative; }
#hero .swiper-container { width: 100%; height: 78vh; min-height: 520px; max-height: 820px; position: relative; }
#hero .swiper-slide { position: relative; display: flex; align-items: flex-end; overflow: hidden; }
/* Un seul slide actif : pas de pagination ni de flèches (rien à faire défiler) */
#hero-swiper.hero-single .swiper-pagination,
#hero-swiper.hero-single .swiper-button-next,
#hero-swiper.hero-single .swiper-button-prev { display: none !important; }
#hero .swiper-slide img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; z-index: 1; }
/* Vidéo de fond du slide : même cadrage plein écran que l'image */
#hero .swiper-slide .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: var(--green-900); }
/* Ken Burns : léger zoom lent sur le slide actif */
#hero .swiper-slide-active img { animation: heroKenBurns 9s ease-out both; }
@keyframes heroKenBurns { from { transform: scale(1.08); } to { transform: scale(1); } }
/* Voile dégradé pour la lisibilité du texte */
#hero .swiper-slide::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(20,26,10,.86) 0%, rgba(20,26,10,.35) 45%, rgba(20,26,10,.12) 100%); }

#hero .container { position: relative; z-index: 3; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px 8vh; }
#hero .hero-content { max-width: 760px; color: #fff; }
#hero h2 { color: #fff !important; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -.01em; margin: 0 0 16px; text-shadow: 0 2px 22px rgba(0,0,0,.45); text-wrap: balance; }
#hero p { color: #E9EDDD; font-size: clamp(1rem, 1.6vw, 1.22rem); line-height: 1.6; max-width: 60ch;
  margin: 0 0 28px; text-shadow: 0 1px 10px rgba(0,0,0,.4); padding: 0 !important; text-align: left !important; }
#hero .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
#hero .btn-get-started { display: inline-flex; align-items: center; gap: 9px; padding: 14px 30px; border-radius: 8px;
  background: var(--green-600); color: #fff; font-weight: 650; font-size: 1rem; text-decoration: none; border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.28); min-width: 0; transition: background-color .2s, transform .15s; }
#hero .btn-get-started:hover { background: var(--green-700); transform: translateY(-2px); color: #fff; }
#hero .btn-hero-secondary { display: inline-flex; align-items: center; gap: 9px; padding: 14px 28px; border-radius: 8px;
  background: rgba(255,255,255,.12); color: #fff; font-weight: 650; font-size: 1rem; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.55); transition: background-color .2s, transform .15s; }
#hero .btn-hero-secondary:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); color: #fff; }

#hero .swiper-button-next, #hero .swiper-button-prev { z-index: 4; color: #fff; width: 52px; height: 52px;
  border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); transition: all .2s; }
#hero .swiper-button-next:hover, #hero .swiper-button-prev:hover { background: var(--accent-600); border-color: var(--accent-600); }
#hero .swiper-button-next:after, #hero .swiper-button-prev:after { font-size: 18px; font-weight: 700; }

#hero .swiper-pagination { z-index: 4; bottom: 24px; }
#hero .swiper-pagination-bullet { width: 10px; height: 10px; background: rgba(255,255,255,.55); opacity: 1;
  transition: all .3s; margin: 0 5px !important; }
#hero .swiper-pagination-bullet-active { background: var(--accent-600); width: 26px; border-radius: 5px; }

@media (max-width: 992px) {
  #hero .swiper-container { height: 72vh; min-height: 470px; }
  #hero .container { padding-bottom: 11vh; }
}
@media (max-width: 640px) {
  #hero .swiper-container { height: 74vh; min-height: 440px; }
  #hero .hero-content { max-width: 100%; }
  #hero .swiper-slide::after { background: linear-gradient(to top, rgba(20,26,10,.9) 0%, rgba(20,26,10,.5) 55%, rgba(20,26,10,.25) 100%); }
  #hero .hero-actions .btn-get-started, #hero .hero-actions .btn-hero-secondary { flex: 1 1 auto; justify-content: center; }
  #hero .swiper-button-next, #hero .swiper-button-prev { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #hero .swiper-slide-active img { animation: none; }
}

.portfolio-filters {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.portfolio-filters li {
  padding: 10px 20px !important;
  border: 1px solid #ccc;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  white-space: nowrap;
}

.portfolio-filters li:hover,
.portfolio-filters li.filter-active,
.portfolio-filters li.active {
  background-color: #466F1A;
  color: #fff !important;
  border-color: #466F1A;
}


:root {
  /* Palette RNI — vert forêt (#466F1A) + accent ocre. Source unique. */
  --green-900: #22350D;
  --green-700: #35540F;
  --green-600: #466F1A;
  --green-400: #6FA02F;
  --green-100: #DFEAC8;
  --green-50:  #F1F6E7;
  --accent-700: #9C6A14;
  --accent-600: #C0871E;
  --accent-100: #FBEFD6;
  --ink: #1E2113;
  --muted: #6B7060;

  /* Anciens noms conservés (référencés par var()) — pointent désormais vers le vert forêt */
  --primary-color: #466F1A;
  --primary-color-light: #6FA02F;
  --primary-color-rgb: 70, 111, 26;
  --text-light: #f8f9fa;
  --text-dark: #212529;
  --border-radius-base: 0.375rem;
  --box-shadow-subtle: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#reservationModal .modal-dialog {}

#reservationModal .modal-content {
  border-radius: var(--border-radius-base);
  border: none;
  box-shadow: var(--box-shadow-subtle);
  overflow: hidden;
}

#reservationModal .modal-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-bottom: none;
  padding: 1.25rem 1.5rem;
}

#reservationModal .modal-title {
  font-weight: 500;
  font-size: 1.25rem;
  color: #fff !important;
}

#reservationModal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
  transition: opacity 0.15s ease-in-out;
}

#reservationModal .btn-close:hover {
  opacity: 1;
}

#reservationModal .modal-body {
  padding: 1.5rem 2rem;
  color: var(--text-dark);
}

#reservationModal .modal-body p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

#reservationModal .modal-body p strong {
  color: var(--primary-color);
}

#reservationModal hr {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#reservationModal .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #495057;
}

#reservationModal .form-control,
#reservationModal .form-select {
  border-radius: var(--border-radius-base);
  border: 1px solid #ced4da;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#reservationModal .form-control:focus,
#reservationModal .form-select:focus {
  border-color: var(--primary-color-light);
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.35);
  outline: none;
}

#reservationModal .form-check-label {
  padding-left: 0.5em;
  cursor: pointer;
}

#reservationModal .form-check-input {
  border-color: #adb5bd;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

#reservationModal .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

#reservationModal .form-check-input:focus {
  border-color: var(--primary-color-light);
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.35);
  outline: none;
}

#reservationModal .modal-body .container {
  background-color: #f8f9fa;
  padding: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius-base);
  border: 1px solid #e9ecef;
}

#reservationModal .modal-body .container p strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 1rem;
}

#reservationModal .modal-body .container .row {
  margin-bottom: 0.75rem;
}

#reservationModal .modal-body .container .row:last-child {
  margin-bottom: 0;
}

#reservationModal .modal-body .btn-success {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--border-radius-base);
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, transform 0.1s ease-in-out;
  margin-top: 1.5rem;
}

#reservationModal .modal-body .btn-success:hover {
  background-color: var(--primary-color-light);
  border-color: var(--primary-color-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(var(--primary-color-rgb), 0.2);
}

#reservationModal .modal-body .btn-success:focus {
  background-color: var(--primary-color-light);
  border-color: var(--primary-color-light);
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.5);
}

#reservationModal .modal-body .btn-success:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  #reservationModal .modal-body {
    padding: 1.5rem;
  }
  #reservationModal .modal-header {
    padding: 1rem 1.25rem;
  }
  #reservationModal .modal-body .container {
    padding: 1rem;
  }
}


/* =========================================================
   Footer RNI — refonte (palette vert forêt + accent ocre)
   ========================================================= */
.rni-footer {
  background: linear-gradient(180deg, #223610 0%, #1A2A0B 100%);
  color: #E9EEDD;
  border-top: 3px solid var(--accent-600);
  font-size: 15px;
  line-height: 1.65;
}
.rni-footer .container { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.rni-footer a { color: inherit; text-decoration: none; transition: color .2s ease; }
.rni-eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .72rem; font-weight: 700; color: var(--accent-600); margin-bottom: 6px;
}

/* --- Bandeau magazine --- */
.rni-foot-magwrap { padding: 42px 0 8px; }
.rni-mag {
  display: grid; grid-template-columns: 140px 1fr; gap: 26px; align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 22px 26px;
}
.rni-mag-cover {
  position: relative; width: 140px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden;
  background: linear-gradient(160deg, var(--green-600), var(--green-900));
  box-shadow: 0 12px 28px rgba(0,0,0,.35); display: grid; place-items: center;
}
.rni-mag-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rni-mag-fallback {
  text-align: center; color: #fff; font-weight: 800; font-size: 1.15rem; line-height: 1.15;
  letter-spacing: .02em; padding: 8px; text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.rni-mag-fallback small {
  display: block; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-600); font-weight: 700; margin-bottom: 8px;
}
.rni-mag-body h3 { margin: 0 0 8px; font-size: 1.5rem; color: #fff !important; font-weight: 800; letter-spacing: -.01em; }
.rni-mag-body p { margin: 0 0 16px; color: #C3CDAE; max-width: 62ch; }

/* --- Boutons --- */
.rni-btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 11px 20px;
  font-weight: 650; font-size: .92rem; border: none; cursor: pointer; font-family: inherit;
  transition: background-color .2s ease, transform .15s ease;
}
.rni-btn-accent { background: var(--accent-600); color: #fff; }
.rni-btn-accent:hover { background: var(--accent-700); color: #fff; transform: translateY(-1px); }
.rni-btn i { font-size: 1rem; }

/* --- Grille principale --- */
.rni-foot-main { padding: 40px 0 34px; }
.rni-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 44px; }
.rni-foot-brand .rni-foot-logo img { height: auto; width: auto; max-height: 74px; max-width: 240px; object-fit: contain; margin-bottom: 18px; }
.rni-foot-mission { color: #C3CDAE; margin: 0 0 18px; max-width: 42ch; }
.rni-foot-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.rni-foot-contact li { display: flex; gap: 11px; align-items: flex-start; color: #D6DDC7; }
.rni-foot-contact i { color: var(--accent-600); margin-top: 3px; flex-shrink: 0; }
.rni-foot-contact a:hover { color: var(--accent-600); }

.rni-footer h4 {
  font-size: 1.05rem; color: #fff !important; font-weight: 700; margin: 0 0 20px; position: relative; padding-bottom: 12px;
}
.rni-footer h4::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px;
  background: var(--accent-600); border-radius: 2px;
}
.rni-foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.rni-foot-links a { color: #C9D2B8; display: inline-flex; align-items: center; gap: 8px; }
.rni-foot-links a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-400);
  flex-shrink: 0; transition: transform .2s ease;
}
.rni-foot-links a:hover { color: #fff; }
.rni-foot-links a:hover::before { background: var(--accent-600); transform: scale(1.4); }

/* --- Newsletter --- */
.rni-foot-news p { color: #C3CDAE; margin: 0 0 16px; }
.rni-foot-news p strong { color: #fff; }
.rni-news-form { display: flex; gap: 10px; flex-wrap: wrap; }
.rni-news-field {
  position: relative; flex: 1 1 200px; display: flex; align-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 8px;
}
.rni-news-field i { position: absolute; left: 14px; color: #9FA889; }
.rni-news-field input {
  width: 100%; background: transparent; border: none; color: #fff; padding: 12px 14px 12px 40px;
  font-size: .92rem; font-family: inherit;
}
.rni-news-field input::placeholder { color: #9FA889; }
.rni-news-field input:focus { outline: none; }
.rni-news-field:focus-within { border-color: var(--accent-600); box-shadow: 0 0 0 3px rgba(192,135,30,.25); }
.rni-news-note { color: #97A17F; font-size: .8rem; margin: 12px 0 0; }

/* --- Barre inférieure --- */
.rni-foot-bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 18px 0; }
.rni-foot-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.rni-foot-copy { color: #B9C2A5; font-size: .88rem; }
.rni-foot-copy strong { color: #fff; }
.rni-foot-credits { margin-left: 6px; }
.rni-foot-credits a { color: var(--accent-600); }
.rni-foot-credits a:hover { text-decoration: underline; }
.rni-foot-social { display: flex; gap: 10px; }
.rni-foot-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #E9EEDD; font-size: 1rem;
  transition: background-color .2s ease, transform .15s ease;
}
.rni-foot-social a:hover { background: var(--accent-600); color: #fff; transform: translateY(-2px); }

/* --- Responsive --- */
@media (max-width: 992px) {
  .rni-foot-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .rni-foot-news { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .rni-foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .rni-mag { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .rni-mag-body p { margin-left: auto; margin-right: auto; }
  .rni-foot-bottom-inner { flex-direction: column-reverse; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .rni-btn, .rni-foot-social a, .rni-foot-links a::before { transition: none; }
}

/* =========================================================
   Pages légales (mentions, confidentialité) + bandeau cookies
   ========================================================= */
.legal-hero { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; padding: 46px 0 40px; }
.legal-hero .container { max-width: 820px; }
.legal-hero .eyebrow-l { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; color: var(--accent-600); margin-bottom: 8px; }
.legal-hero h1 { color: #fff !important; font-size: 2rem; font-weight: 800; margin: 0; }
.legal-hero p { color: #C7CFB6; margin: 10px 0 0; }

.legal-content { padding: 48px 0 64px; }
.legal-content .container { max-width: 820px; }
.legal-content h2 { font-size: 1.35rem !important; color: var(--green-700) !important; margin: 34px 0 12px; font-weight: 700; }
.legal-content > .container > h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 1.05rem !important; color: var(--ink) !important; margin: 20px 0 8px; }
.legal-content p, .legal-content li { color: #3A3F2E; line-height: 1.75; font-size: 1rem; }
.legal-content ul { padding-left: 1.4rem; margin: 0 0 1rem; }
.legal-content li { margin-bottom: .5rem; }
.legal-content a { color: var(--green-600); font-weight: 600; }
.legal-content strong { color: var(--ink); }
.legal-todo { color: var(--accent-700); font-style: italic; font-weight: 700; }
.legal-updated { color: var(--muted); font-size: .88rem; margin-bottom: 28px; }

/* Bandeau cookies */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2000;
  max-width: 960px; margin: 0 auto; background: var(--green-900); color: #E9EEDD;
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  padding: 18px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: .92rem; line-height: 1.55; color: #D6DDC7; }
.cookie-banner p a { color: var(--accent-600); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { border: none; cursor: pointer; font-family: inherit; font-weight: 650; font-size: .9rem;
  border-radius: 8px; padding: 10px 18px; transition: background-color .2s, transform .15s; }
.cookie-accept { background: var(--accent-600); color: #fff; }
.cookie-accept:hover { background: var(--accent-700); transform: translateY(-1px); }
.cookie-refuse { background: rgba(255,255,255,.10); color: #E9EEDD; }
.cookie-refuse:hover { background: rgba(255,255,255,.18); }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; } .cookie-actions { justify-content: center; } }

/* Liens légaux (barre inférieure du footer) */
.rni-foot-legal { display: inline-flex; gap: 14px; margin-left: 10px; }
.rni-foot-legal a { color: #B9C2A5; }
.rni-foot-legal a:hover { color: var(--accent-600); }
@media (max-width: 640px) { .rni-foot-legal { display: flex; margin: 8px 0 0; justify-content: center; } }

/* Section « Chiffres clés » (accueil) — design épuré */
.impact-section { background: #fff; padding: 60px 0; border-top: 1px solid #E3E6D8; border-bottom: 1px solid #E3E6D8; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.impact-tile { padding: 8px 18px; }
.impact-tile + .impact-tile { border-left: 1px solid #E9ECE0; }
.impact-num { font-size: clamp(2.1rem, 4.5vw, 3rem); font-weight: 800; line-height: 1; color: var(--green-600); font-variant-numeric: tabular-nums; }
.impact-label { margin-top: 12px; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; }
@media (max-width: 700px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .impact-tile:nth-child(odd) { border-left: none; }
  .impact-tile:nth-child(n+3) { border-top: 1px solid #E9ECE0; padding-top: 30px; }
}

/* ============================================================
   CONTENU EDITORIAL DES PAGES (RNI) — style unifie
   Portee : .rni-page (ajoute dans page.rw.php). N'affecte PAS les articles.
   Objectif : une typographie coherente et institutionnelle, calee sur la
   charte (variables :root), qui neutralise les styles « inline » herites
   (couleurs teal, italiques, tailles arbitraires) du contenu ancien.
   ============================================================ */

/* Hero de page (bandeau titre + fil d'Ariane) */
.rni-hero { background: linear-gradient(135deg, var(--green-900), var(--green-700)); padding: 46px 0 60px; }
.rni-hero .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.rni-hero .page-title-text { color: #fff !important; font-family: 'Raleway', sans-serif; font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; margin: 0 0 10px; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.rni-hero .breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.rni-hero .breadcrumbs li { display: flex; align-items: center; }
.rni-hero .breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.4); }
.rni-hero .breadcrumbs a { color: #DCE7C0; text-decoration: none; }
.rni-hero .breadcrumbs a:hover { color: #fff; }
.rni-hero .breadcrumbs .current { color: #fff; }

/* Conteneur de contenu : « feuille » blanche qui chevauche legerement le hero */
.rni-page { background: #F7F8F2; padding: 0 20px 76px; }
.rni-article {
  max-width: 820px; margin: -34px auto 0; background: #fff;
  border: 1px solid #E3E6D8; border-radius: 16px;
  box-shadow: 0 20px 46px -30px rgba(34, 53, 13, .38);
  padding: clamp(24px, 5vw, 56px); position: relative; z-index: 2;
}
/* Mise en page à deux colonnes (contenu + sidebar) : l'article remplit sa
   colonne au lieu d'être centré à 820px ; le sidebar s'aligne sur la feuille
   remontée de 34px sur le hero (desktop uniquement). */
.rni-page-row .rni-article { max-width: none; margin-left: 0; margin-right: 0; }
@media (min-width: 992px) { .rni-page-row .sidebar { margin-top: -34px; } }

/* Base typographique */
.rni-prose { color: var(--ink); font-size: 1.06rem; line-height: 1.78; }
.rni-prose > *:first-child { margin-top: 0 !important; }
.rni-prose > *:last-child { margin-bottom: 0 !important; }

/* Titres — police d'affichage + neutralisation des styles inline herites */
.rni-prose h1, .rni-prose h2, .rni-prose h3,
.rni-prose h4, .rni-prose h5, .rni-prose h6,
.rni-prose h1 *, .rni-prose h2 *,
.rni-prose h3 *, .rni-prose h4 * {
  font-family: 'Raleway', sans-serif !important;
  color: var(--green-700) !important;
  font-style: normal !important; text-decoration: none !important;
  background: none !important; line-height: 1.25;
}
.rni-prose h1, .rni-prose h2, .rni-prose h3,
.rni-prose h4, .rni-prose h5, .rni-prose h6 {
  margin: 2.4rem 0 1rem; font-weight: 800; letter-spacing: -.01em; text-wrap: balance;
}
.rni-prose h1, .rni-prose h1 * { font-size: clamp(1.6rem, 3vw, 2rem) !important; }
.rni-prose h2, .rni-prose h2 * { font-size: clamp(1.35rem, 2.4vw, 1.7rem) !important; }
.rni-prose h2 { padding-bottom: .5rem; border-bottom: 2px solid var(--green-100); }
.rni-prose h3, .rni-prose h3 * { font-size: 1.28rem !important; font-weight: 700 !important; }
.rni-prose h3 { display: flex; align-items: center; gap: .6rem; }
.rni-prose h3::before { content: ""; flex: 0 0 auto; width: 9px; height: 20px; border-radius: 3px; background: var(--accent-600); }
.rni-prose h4, .rni-prose h4 * { font-size: 1.12rem !important; font-weight: 700 !important; color: var(--green-600) !important; }

/* Paragraphes + emphase */
.rni-prose p { margin: 0 0 1.25rem; }
.rni-prose > p:first-of-type { font-size: 1.14rem; color: #2C3320; }
.rni-prose strong, .rni-prose b { color: var(--green-700); font-weight: 700; }
.rni-prose em, .rni-prose i { color: #4B5043; }
.rni-prose p span[style*="color"],
.rni-prose li span[style*="color"] { color: inherit !important; }

/* Liens — soulignement anime */
.rni-prose a {
  color: var(--green-600); font-weight: 600; text-decoration: none;
  background-image: linear-gradient(var(--green-400), var(--green-400));
  background-size: 100% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 1px; transition: background-size .2s, color .2s, background-image .2s;
}
.rni-prose a:hover { color: var(--green-700); background-size: 100% 100%; background-image: linear-gradient(var(--green-50), var(--green-50)); }

/* Listes a puce */
.rni-prose ul { list-style: none; padding-left: 0; margin: 0 0 1.4rem; }
.rni-prose ul li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.rni-prose ul li::before { content: ""; position: absolute; left: .15rem; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-600); box-shadow: 0 0 0 3px var(--accent-100); }

/* Listes numerotees — badges verts */
.rni-prose ol { list-style: none; counter-reset: rni-ol; padding-left: 0; margin: 0 0 1.4rem; }
.rni-prose ol > li { counter-increment: rni-ol; position: relative; padding-left: 2.6rem; margin-bottom: .7rem; }
.rni-prose ol > li::before {
  content: counter(rni-ol); position: absolute; left: 0; top: .02em;
  width: 1.7rem; height: 1.7rem; background: var(--green-600); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-family: 'Raleway', sans-serif; font-size: .85rem; font-weight: 700;
}
.rni-prose li ul, .rni-prose li ol { margin: .5rem 0 .2rem; }

/* Images + figures */
.rni-prose img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.6rem auto; display: block; box-shadow: 0 14px 32px -20px rgba(34, 53, 13, .45); }
.rni-prose figure { margin: 1.8rem 0; }
.rni-prose figure img { margin: 0 auto .6rem; }
.rni-prose figcaption { text-align: center; font-size: .86rem; color: var(--muted); font-style: italic; }

/* iframe (cartes, videos) */
.rni-prose iframe { width: 100%; min-height: 400px; border: 0; border-radius: 12px; margin: 1.6rem 0; box-shadow: 0 14px 32px -20px rgba(34, 53, 13, .45); }

/* Citations */
.rni-prose blockquote { margin: 1.8rem 0; padding: 1.1rem 1.5rem; border-left: 4px solid var(--accent-600); background: var(--green-50); border-radius: 0 12px 12px 0; color: var(--ink); font-style: italic; font-size: 1.08rem; }
.rni-prose blockquote p:last-child { margin-bottom: 0; }

/* Separateur */
.rni-prose hr { border: 0; height: 2px; margin: 2.4rem 0; background: linear-gradient(90deg, var(--green-400), var(--green-100), transparent); }

/* Tableaux */
.rni-prose table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .98rem; }
.rni-prose thead th, .rni-prose th { background: var(--green-700); color: #fff; padding: 12px 16px; text-align: left; font-weight: 700; }
.rni-prose td { border-bottom: 1px solid #E3E6D8; padding: 11px 16px; }
.rni-prose tbody tr:nth-child(even) { background: var(--green-50); }

/* Code en ligne */
.rni-prose code { background: var(--green-50); border: 1px solid var(--green-100); border-radius: 6px; padding: .1em .4em; font-size: .92em; color: var(--green-700); }

/* Responsive */
@media (max-width: 640px) {
  .rni-hero { padding: 34px 0 46px; }
  .rni-article { margin-top: -20px; padding: 22px 18px; border-radius: 12px; }
  .rni-prose { font-size: 1rem; }
  .rni-prose iframe { min-height: 260px; }
}

/* ============================================================
   PAGE ARTICLE (post.rw.php) — en-tete, couverture, pied
   Portee : .rni-article-page. La colonne .col-lg-8 n'est pas modifiee
   (pas de marge horizontale ajoutee : le contenu reste aligne).
   ============================================================ */
.rni-article-page .post-header { margin-bottom: 24px; }

.rni-article-page .post-cat {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-600); color: #fff;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; text-decoration: none;
  margin-bottom: 16px; transition: background 0.15s ease;
}
.rni-article-page .post-cat:hover { background: var(--green-700); color: #fff; }

.rni-article-page .post-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 800; color: var(--green-700);
  line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 18px; text-wrap: balance;
}

.rni-article-page .post-meta {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
  color: var(--muted); font-size: 0.88rem;
  padding-bottom: 22px; border-bottom: 1px solid #E3E6D8;
}
.rni-article-page .post-meta span { display: inline-flex; align-items: center; gap: 7px; }
.rni-article-page .post-meta i { color: var(--green-600); font-size: 1rem; }

.rni-article-page .post-cover { margin: 26px 0 30px; }
.rni-article-page .post-cover img {
  width: 100%; height: auto; max-height: 470px; object-fit: cover;
  border-radius: 16px; display: block;
  box-shadow: 0 26px 54px -30px rgba(34, 53, 13, 0.5);
}

.rni-article-page .post-footer { margin-top: 36px; padding-top: 26px; border-top: 1px solid #E3E6D8; }

.rni-article-page .post-tags {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px;
}
.rni-article-page .post-tags .tags-label {
  color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-right: 4px;
  display: inline-flex; align-items: center; gap: 6px;
}
.rni-article-page .post-tags .tags-label i { color: var(--green-600); }
.rni-article-page .post-tags .tag {
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100);
  font-size: 0.8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}

.rni-article-page .post-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rni-article-page .post-share .share-label {
  color: var(--ink); font-weight: 700; font-size: 0.9rem; margin-right: 4px;
}
.rni-article-page .post-share a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 1.05rem; text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.rni-article-page .post-share a:hover { transform: translateY(-2px); opacity: 0.92; }
.rni-article-page .post-share .s-fb { background: #1877F2; }
.rni-article-page .post-share .s-tw { background: #111111; }
.rni-article-page .post-share .s-wa { background: #25D366; }
.rni-article-page .post-share .s-li { background: #0A66C2; }

@media (max-width: 640px) {
  .rni-article-page .post-cover img { max-height: 260px; }
  .rni-article-page .post-cover { margin: 20px 0 24px; }
}

/* ============================================================
   SIDEBAR ARTICLE (blog-sidebar.php) — harmonisee a la charte RNI.
   Portee : .sidebar (col-lg-4). Cartes blanches, titres Raleway verts,
   accent ocre, comptes en pastilles, articles recents en vignettes.
   ============================================================ */
.sidebar .widget-item {
  background: #fff;
  border: 1px solid #E3E6D8;
  border-radius: 14px;
  padding: 22px 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 14px 34px -26px rgba(34, 53, 13, 0.4);
}

.sidebar .widget-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-700);
  margin: 0 0 16px;
  padding-bottom: 12px;
  position: relative;
  border-bottom: 1px solid #EEF1E6;
}
.sidebar .widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent-600);
}

/* Recherche */
.sidebar .search-widget form {
  display: flex;
  align-items: center;
  background: var(--green-50);
  border: 1px solid #D6DCC6;
  border-radius: 10px;
  padding: 4px 4px 4px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sidebar .search-widget form:focus-within {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(111, 160, 47, 0.15);
}
.sidebar .search-widget form input[type=text] {
  flex: 1;
  width: auto;
  border: 0;
  background: transparent;
  padding: 8px 4px;
  color: var(--ink);
  font-size: 0.92rem;
}
.sidebar .search-widget form input[type=text]:focus { outline: none; }
.sidebar .search-widget form button {
  position: static;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: var(--green-600);
  color: #fff;
  width: 40px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: background 0.15s ease;
}
.sidebar .search-widget form button:hover { background: var(--green-700); }

/* Categories */
.sidebar .categories-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .categories-widget ul li { padding: 0; margin-bottom: 4px; }
.sidebar .categories-widget ul li:last-child { margin-bottom: 0; }
.sidebar .categories-widget ul a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar .categories-widget ul a:hover { background: var(--green-50); color: var(--green-700); }
.sidebar .categories-widget ul a span {
  flex: 0 0 auto;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

/* Articles recents */
.sidebar .recent-posts-widget .post-item {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #EEF1E6;
}
.sidebar .recent-posts-widget .post-item:first-child { padding-top: 0; }
.sidebar .recent-posts-widget .post-item:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar .recent-posts-widget .post-item img {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  margin: 0;
  border-radius: 10px;
  object-fit: cover;
}
.sidebar .recent-posts-widget .post-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.3;
}
.sidebar .recent-posts-widget .post-item h4 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.sidebar .recent-posts-widget .post-item h4 a:hover { color: var(--green-600); }
.sidebar .recent-posts-widget .post-item time {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ============================================================
   PAGE ARTICLE — Articles similaires + Commentaires (charte RNI)
   ============================================================ */

/* --- Articles similaires --- */
.post-related { margin-top: 44px; }
.post-related .related-title {
  font-family: 'Raleway', sans-serif; font-size: 1.35rem; font-weight: 800;
  color: var(--green-700); margin: 0 0 18px;
}
.post-related .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-related .related-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid #E3E6D8; border-radius: 14px; overflow: hidden; text-decoration: none;
  box-shadow: 0 14px 34px -26px rgba(34, 53, 13, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-related .related-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(34, 53, 13, 0.5); }
.post-related .related-thumb { display: block; aspect-ratio: 16 / 10; background: var(--green-50); overflow: hidden; }
.post-related .related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-related .related-card:hover .related-thumb img { transform: scale(1.05); }
.post-related .related-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.post-related .related-h3 { font-weight: 700; font-size: 0.95rem; color: var(--ink); line-height: 1.35; }
.post-related .related-card:hover .related-h3 { color: var(--green-700); }
.post-related .related-date { font-size: 0.78rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.post-related .related-date i { color: var(--green-600); }

/* --- Commentaires --- */
.post-comments { margin-top: 46px; padding-top: 32px; border-top: 1px solid #E3E6D8; }
.post-comments .comments-title {
  font-family: 'Raleway', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--green-700);
  display: flex; align-items: center; gap: 10px; margin: 0 0 24px;
}
.post-comments .comments-title i { color: var(--green-600); }
.post-comments .comments-title .count {
  background: var(--green-100); color: var(--green-700); font-size: 0.85rem; font-weight: 700;
  padding: 2px 12px; border-radius: 999px;
}
.post-comments .comments-empty {
  color: var(--muted); background: var(--green-50); border: 1px dashed var(--green-100);
  border-radius: 12px; padding: 18px; text-align: center;
}

.post-comments .comment { display: flex; gap: 14px; padding: 18px 0; }
.post-comments .comments-list > .comment + .comment { border-top: 1px solid #EEF1E6; }
.post-comments .comment-avatar {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-600); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-family: 'Raleway', sans-serif; font-size: 1.05rem;
}
.post-comments .comment-avatar.sm { flex-basis: 36px; width: 36px; height: 36px; font-size: 0.9rem; background: var(--green-400); }
.post-comments .comment-main { flex: 1; min-width: 0; }
.post-comments .comment-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.post-comments .comment-head strong { color: var(--green-700); font-weight: 700; }
.post-comments .comment-head time { color: var(--muted); font-size: 0.8rem; }
.post-comments .comment-pending {
  background: var(--accent-100); color: var(--accent-700); font-size: 0.7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.post-comments .comment-text { color: var(--ink); line-height: 1.7; margin: 0 0 8px; overflow-wrap: anywhere; }
.post-comments .comment-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.post-comments .cbtn {
  background: none; border: 0; color: var(--muted); font-size: 0.82rem; font-weight: 600; cursor: pointer;
  padding: 4px 8px; border-radius: 7px; display: inline-flex; align-items: center; gap: 5px;
  transition: background 0.15s ease, color 0.15s ease; text-decoration: none;
}
.post-comments .cbtn:hover { background: var(--green-50); color: var(--green-700); }
.post-comments .cbtn.cbtn-del:hover { background: #FBE3E0; color: #B0392B; }

.post-comments .comment-replies {
  margin-top: 14px; padding-left: 16px; border-left: 2px solid #EEF1E6;
}

.post-comments .comment-subform { margin-top: 12px; }
.post-comments .comment-subform textarea,
.post-comments .comment-subform input[type=text],
.post-comments .comment-form textarea,
.post-comments .comment-form input[type=text] {
  width: 100%; border: 1px solid #D6DCC6; border-radius: 10px; padding: 10px 12px;
  font-size: 0.92rem; color: var(--ink); background: #fff; margin-bottom: 10px; font-family: inherit;
}
.post-comments textarea:focus, .post-comments input[type=text]:focus {
  outline: none; border-color: var(--green-400); box-shadow: 0 0 0 3px rgba(111, 160, 47, 0.15);
}
.post-comments .cform-actions { display: flex; gap: 8px; }

.post-comments .comment-form-wrap {
  margin-top: 32px; background: #fff; border: 1px solid #E3E6D8; border-radius: 14px; padding: 22px;
  box-shadow: 0 14px 34px -26px rgba(34, 53, 13, 0.4);
}
.post-comments .comment-form-wrap h3 {
  font-family: 'Raleway', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--green-700); margin: 0 0 16px;
}

.post-comments .cbtn-primary {
  display: inline-flex; align-items: center; gap: 8px; background: var(--green-600); color: #fff;
  border: 0; border-radius: 10px; padding: 11px 22px; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  text-decoration: none; transition: background 0.15s ease, transform 0.15s ease;
}
.post-comments .cbtn-primary:hover { background: var(--green-700); color: #fff; transform: translateY(-1px); }

.post-comments .comment-login {
  margin-top: 28px; text-align: center; background: var(--green-50); border: 1px solid var(--green-100);
  border-radius: 14px; padding: 28px;
}
.post-comments .comment-login i { font-size: 1.6rem; color: var(--green-600); }
.post-comments .comment-login p { color: var(--ink); margin: 10px 0 16px; }

@media (max-width: 767px) {
  .post-related .related-grid { grid-template-columns: 1fr; }
}

/* Bouton « Copier le lien court » — même style que les cercles de partage */
.rni-article-page .post-share .s-copy {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; font-size: 1.15rem;
  background: var(--green-600); transition: transform 0.15s ease, background 0.15s ease;
}
.rni-article-page .post-share .s-copy:hover { transform: translateY(-2px); background: var(--green-700); }
.rni-article-page .post-share .s-copy.copied { background: var(--green-700); }

/* Barre de partage sur les PAGES (.rni-page) — même visuel que les articles */
.rni-page .post-share { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:32px; padding-top:22px; border-top:1px solid #E3E6D8; }
.rni-page .post-share .share-label { color: var(--ink); font-weight:700; font-size:.9rem; margin-right:4px; }
.rni-page .post-share a, .rni-page .post-share .s-copy {
  width:40px; height:40px; border-radius:50%; display:grid; place-items:center; color:#fff; font-size:1.05rem;
  text-decoration:none; border:0; cursor:pointer; transition:transform .15s ease, background .15s ease, opacity .15s ease;
}
.rni-page .post-share a:hover, .rni-page .post-share .s-copy:hover { transform:translateY(-2px); opacity:.92; }
.rni-page .post-share .s-fb { background:#1877F2; }
.rni-page .post-share .s-tw { background:#111111; }
.rni-page .post-share .s-wa { background:#25D366; }
.rni-page .post-share .s-li { background:#0A66C2; }
.rni-page .post-share .s-copy { background:var(--green-600); font-size:1.15rem; }
.rni-page .post-share .s-copy:hover, .rni-page .post-share .s-copy.copied { background:var(--green-700); }

/* Tags de l'article devenus cliquables (archive /tag/{slug}) */
.rni-article-page .post-tags a.tag { text-decoration: none; transition: background .15s ease, color .15s ease; }
.rni-article-page .post-tags a.tag:hover { background: var(--green-100); color: var(--green-700); }

/* ============================================================
   Bouton « En savoir plus » unifié pour les sections de l'accueil
   ============================================================ */
.rni-btn-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--green-600);
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 12px 26px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 30px -14px rgba(70, 111, 26, 0.55);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.rni-btn-more:hover,
.rni-btn-more:focus {
  background: var(--green-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(53, 84, 15, 0.65);
}
.rni-btn-more i { transition: transform 0.18s ease; }
.rni-btn-more:hover i { transform: translateX(3px); }

/* ============================================================
   HERO — habillage éditorial « conservation » : compteur, barre de
   progression de l'autoplay, invite à défiler. (bullets masquées)
   ============================================================ */
#hero .hero-overlay { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
#hero .hero-overlay .container {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 28px;
  width: 100%; max-width: 1180px; padding: 0 24px;
}
#hero .hero-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }

#hero .hero-counter { pointer-events: auto; display: inline-flex; align-items: center; gap: 13px; font-family: 'Raleway', sans-serif; color: #fff; }
#hero .hero-counter #heroCurrent { font-size: 1.95rem; font-weight: 800; line-height: 1; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
#hero .hero-counter-sep { width: 36px; height: 2px; background: rgba(255,255,255,.55); }
#hero .hero-counter-total { font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.72); }

#hero .hero-scroll {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 11px;
  color: rgba(255,255,255,.88); text-decoration: none;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  transition: color .2s ease;
}
#hero .hero-scroll:hover { color: #fff; }
#hero .hero-scroll-icon {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.42);
  display: grid; place-items: center; font-size: 1rem;
  animation: heroScrollBounce 1.8s ease-in-out infinite;
}
@keyframes heroScrollBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

#hero .hero-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: rgba(255,255,255,.16); z-index: 4; }
#hero .hero-progress-fill { display: block; width: 100%; height: 100%; background: var(--accent-600); transform: scaleX(0); transform-origin: left center; will-change: transform; animation: heroProgressGrow 5s linear forwards; }
@keyframes heroProgressGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Le compteur + la progression remplacent les puces */
#hero .swiper-pagination { display: none !important; }

@media (max-width: 640px) {
  #hero .hero-counter #heroCurrent { font-size: 1.5rem; }
  #hero .hero-scroll span:not(.hero-scroll-icon) { display: none; } /* garder juste le chevron */
  #hero .hero-overlay .container { bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #hero .hero-scroll-icon { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  #hero .hero-progress-fill { animation: none; transform: scaleX(1); }
}

/* ============================================================
   HERO — contenu CENTRÉ, sobre et lisible (charte RNI).
   Supprime le panneau sombre + la bordure hérités de main.css
   (.hero .container) ; voile léger plein cadre pour la lisibilité,
   la photo reste bien visible.
   ============================================================ */
#hero .swiper-slide { align-items: center; }

/* Voile plein cadre léger (remplace le panneau sombre à bord dur) :
   discret en haut, un peu plus dense en bas où se placent texte et pagination. */
#hero .swiper-slide::after {
  background: linear-gradient(180deg, rgba(18,24,8,.26) 0%, rgba(18,24,8,.40) 55%, rgba(18,24,8,.66) 100%) !important;
}

/* Neutralise le panneau (dégradé) + la bordure de l'ancien thème et centre le contenu. */
#hero .container {
  background: none !important; border: 0 !important; margin: 0 auto !important;
  padding: 0 24px !important; display: flex; justify-content: center; max-width: 1180px;
}
#hero .hero-content { max-width: 800px; margin: 0 auto; text-align: center; }

/* Badge (eyebrow) en pilule verte, centré */
#hero .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: rgba(70,111,26,.85); color: #fff; font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px;
}
#hero .hero-eyebrow i { font-size: .95rem; }

#hero h2 {
  font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.08; margin: 0 0 18px;
  text-align: center; text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.5);
}
#hero p {
  margin: 0 auto 30px !important; max-width: 60ch; text-align: center !important;
  color: #F2F5EA; text-shadow: 0 1px 14px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.5);
}

/* Boutons en pilule, centrés : primaire clair, secondaire fantôme */
#hero .hero-actions { justify-content: center; }
#hero .btn-get-started {
  background: #fff; color: var(--green-700); border-radius: 999px; padding: 14px 32px; font-weight: 700;
}
#hero .btn-get-started:hover { background: var(--green-50); color: var(--green-700); }
#hero .btn-hero-secondary { border-radius: 999px; padding: 13px 28px; border-color: rgba(255,255,255,.6); }

/* Pagination centrée */
#hero .swiper-pagination {
  display: block !important; bottom: 30px !important; text-align: center;
  left: 0; right: 0; transform: none; width: 100%; padding: 0;
}
#hero .swiper-pagination-bullet { width: 9px; height: 9px; background: rgba(255,255,255,.5); opacity: 1; border-radius: 999px; transition: width .3s ease, background .3s ease; margin: 0 5px !important; }
#hero .swiper-pagination-bullet-active { background: #fff; width: 30px; }

/* Flèches discrètes */
#hero .swiper-button-next, #hero .swiper-button-prev { width: 46px; height: 46px; background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.28); }

@media (max-width: 640px) {
  #hero .swiper-pagination { bottom: 22px !important; }
  #hero .hero-content { max-width: 100%; }
}

/* Espace entre la section Partenaires et le footer
   (bat la règle globale .section{padding-bottom:0!important} de l'accueil) */
#partners_slider { padding-bottom: 72px !important; }
@media (max-width: 640px) { #partners_slider { padding-bottom: 48px !important; } }

/* ============================================================
   HERO — raffinement du design (lisibilité + finitions premium)
   ============================================================ */
/* Voile enrichi : dégradé bas + focus radial doux derrière le contenu,
   pour que le texte ressorte nettement sans masquer la photo. */
#hero .swiper-slide::after {
  background:
    radial-gradient(130% 95% at 50% 66%, rgba(18,24,8,.52) 0%, rgba(18,24,8,.28) 44%, transparent 74%),
    linear-gradient(180deg, rgba(18,24,8,.30) 0%, rgba(18,24,8,.40) 50%, rgba(18,24,8,.72) 100%) !important;
}
/* Eyebrow plus premium : verre dépoli + fine bordure */
#hero .hero-eyebrow {
  background: rgba(53,84,15,.72); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
/* Boutons : ombres portées + verre dépoli sur le fantôme */
#hero .btn-get-started { box-shadow: 0 12px 30px rgba(0,0,0,.32); }
#hero .btn-get-started:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.42); }
#hero .btn-hero-secondary { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
/* Pagination remontée pour laisser la place à l'indicateur de défilement */
#hero .swiper-pagination { bottom: 66px !important; }

/* Indicateur de défilement animé (bas-centre) */
#hero .hero-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.32);
  text-decoration: none; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: heroScrollBounce 2s ease-in-out infinite; transition: background .2s, border-color .2s;
}
#hero .hero-scroll:hover { background: var(--accent-600); border-color: var(--accent-600); }
#hero .hero-scroll i { font-size: 1.25rem; }
@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@media (max-width: 640px) {
  #hero .swiper-pagination { bottom: 58px !important; }
  #hero .hero-scroll { width: 38px; height: 38px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { #hero .hero-scroll { animation: none; } }
