.btn-ghost,
.nav-link:hover {
    color: var(--primary)
}

.agri-page,
.hero {
    position: relative
}

.hero img,
.hero video,
.thumb img {
    height: 100%;
    width: 100%;
    object-fit: cover
}

footer,
footer a {
    color: #cfe7cf
}

.gal img,
.review-card .avatar,
.side .thumb img,
.thumb img {
    object-fit: cover
}

:root {
    --primary: #2E7D32;
    --secondary: #FF8F00;
    --ink: #0F2A1F;
    --muted: #6b7b75;
    --paper: #F6FBF5;
    --radius: 1.1rem;
    --shadow: 0 10px 28px rgba(0, 0, 0, .08);
    --trans: .25s ease
}

html {
    scroll-behavior: smooth
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: var(--paper);
    color: #122
}

.agri-page {
    overflow: hidden
}

.navbar {
    transition: .25s
}

.btn-brand,
.card-article {
    transition: transform var(--trans), box-shadow var(--trans);
    box-shadow: var(--shadow)
}

.navbar.scrolled {
    background: #fff !important;
    box-shadow: var(--shadow)
}

.nav-link {
    font-weight: 600
}

.btn-brand {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #1f6124;
    --bs-btn-hover-border-color: #1f6124;
    border-radius: 999px
}

.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12)
}

.btn-ghost {
    border: 2px solid var(--primary);
    border-radius: 999px;
    padding: .58rem 1.1rem
}

.ad-label,
.hero,
.preload,
footer a:hover {
    color: #fff
}

.btn-ghost:hover,
.hero .btn-ghost:hover,
.nav-pills .nav-link.active {
    background: var(--primary);
    color: #fff
}

.hero {
    min-height: 74vh;
    background: #000
}

.hero img,
.hero video {
    position: absolute;
    inset: 0;
    opacity: .78
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .7))
}

.hero .content {
    position: relative;
    z-index: 3;
    padding-top: 18vh;
    padding-bottom: 10vh
}

.hero-marquee-wrap {
    display: block;
    max-width: min(100%, 980px);
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffffff33;
    backdrop-filter: blur(6px);
    overflow: hidden
}

.card-article,
.thumb {
    background: #fff;
    overflow: hidden
}

.hero-marquee {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    will-change: transform;
    animation: hero-marquee var(--mq-duration, 5s) linear infinite
}

.hero-marquee-wrap:hover .hero-marquee {
    animation-play-state: paused
}

.hero-marquee-item {
    font-weight: 600;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    padding-inline: 2px
}

.ad-label,
.pill {
    font-weight: 700
}

@keyframes hero-marquee {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

.section-title {
    position: relative;
    display: inline-block
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -.45rem;
    width: 62%;
    height: 4px;
    background: var(--secondary);
    border-radius: 4px
}

.card-article {
    border: 0;
    border-radius: var(--radius)
}

.card-article:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 64px rgba(0, 0, 0, .12)
}

.thumb {
    height: 200px
}

.preload,
footer {
    background: #0b1f24
}

.thumb img {
    transition: transform .6s
}

.card-article:hover .thumb img {
    transform: scale(1.06)
}

.pill {
    border-radius: 999px;
    padding: .25rem .6rem
}

.rounded-2xl {
    border-radius: var(--radius) !important
}

.preload {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 999999;
    transition: opacity .35s, visibility .35s
}

.preload.hide {
    opacity: 0;
    visibility: hidden
}

.loader {
    animation: 1s infinite rotate;
    height: 50px;
    width: 50px
}

.loader:after,
.loader:before {
    content: "";
    display: block;
    height: 20px;
    width: 20px
}

.loader:before {
    animation: 1s infinite box1;
    background-color: #fff;
    box-shadow: 30px 0 0 var(--secondary);
    margin-bottom: 10px
}

.loader:after {
    animation: 1s infinite box2;
    background-color: var(--secondary);
    box-shadow: 30px 0 0 #fff
}

@keyframes rotate {
    0% {
        transform: rotate(0) scale(.8)
    }

    50% {
        transform: rotate(360deg) scale(1.2)
    }

    100% {
        transform: rotate(720deg) scale(.8)
    }
}

@keyframes box1 {
    0% {
        box-shadow: 30px 0 0 var(--secondary)
    }

    50% {
        box-shadow: 0 0 0 var(--secondary);
        margin-bottom: 0;
        transform: translate(15px, 15px)
    }

    100% {
        box-shadow: 30px 0 0 var(--secondary);
        margin-bottom: 10px
    }
}

@keyframes box2 {
    0% {
        box-shadow: 30px 0 0 #fff
    }

    50% {
        box-shadow: 0 0 0 #fff;
        margin-top: -20px;
        transform: translate(15px, 15px)
    }

    100% {
        box-shadow: 30px 0 0 #fff;
        margin-top: 0
    }
}

@media (prefers-reduced-motion:reduce) {
    .hero-marquee {
        animation: none
    }

    .loader,
    .loader:after,
    .loader:before {
        animation: none !important
    }
}

.ad-label {
    position: absolute;
    top: .5rem;
    left: .5rem;
    background: #0009;
    font-size: .75rem;
    padding: .2rem .5rem;
    border-radius: .5rem
}

.ad-card {
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff
}

.ad-card img {
    width: 100%;
    height: auto;
    display: block
}

.ad-side .ad-card+.ad-card,
.side .ad-card+.ad-card {
    margin-top: 1rem
}

.sponsored .pill {
    background: #fff3cd;
    color: #8a6d3b
}

.gal img {
    aspect-ratio: 1/1;
    width: 100%;
    border-radius: 1rem
}

footer a {
    text-decoration: none
}

.mini-nav {
    background: #fff;
    box-shadow: var(--shadow)
}

.mini-nav .brand {
    font-weight: 800;
    color: var(--ink)
}

.mini-nav .brand img {
    border-radius: .6rem
}

.badge-soft {
    background: #fff3cd;
    border: 1px solid #ffe39a;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .25rem .6rem
}

.ad-cover {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow)
}

.ad-meta {
    color: var(--muted);
    font-size: .95rem
}

.btn-brand {
    padding: .65rem 1.2rem
}

.tag {
    display: inline-block;
    background: #eaf4ec;
    color: #245b2a;
    border: 1px solid #c9e3cd;
    border-radius: 999px;
    padding: .2rem .65rem;
    margin: .15rem 0;
    font-size: .85rem
}

.side .thumb {
    height: 120px;
    overflow: hidden
}

.side .thumb img {
    width: 100%;
    height: 100%
}

.box-img{
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 200px;
}
.share-pub-modal-btn{
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--paper);
    border-radius: 50%;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.4s linear ease;
    z-index: 9;
}

.share-pub-modal-btn:hover{
    background: var(--secondary);
}


/* ==== SHARE MODAL (fixes) ==== */
.share-modal{
  position: fixed; inset: 0; display: none; z-index: 1050;
  padding: 16px;            /* évite que la feuille colle aux bords */
}
.share-modal.is-open{ display: flex; align-items: flex-end; justify-content: center; }
@media (min-width:768px){
  .share-modal.is-open{ align-items: center; } /* => centrée verticalement sur desktop */
}

.share-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.45); backdrop-filter: blur(2px); }

.share-sheet{
  position: relative;
  width: 100%; max-width: 520px;  /* largeur box sur desktop */
  background: var(--paper, #fff);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  padding: 12px 16px 16px;
  transform: translateY(100%);    /* mobile = bottom sheet */
  transition: transform .25s ease;
}
.share-modal.is-open .share-sheet{ transform: translateY(0); }
@media (min-width:768px){
  .share-sheet{ transform: scale(.98); }
  .share-modal.is-open .share-sheet{ transform: scale(1); } /* desktop = boîte centrée */
}

.share-handle{ width:44px;height:5px;border-radius:999px;background:rgba(0,0,0,.12);margin:4px auto 12px; }

.share-header{ display:flex;align-items:center;justify-content:space-between;padding:6px 2px 10px;border-bottom:1px dashed rgba(0,0,0,.08); }

.share-grid{ display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:14px 2px 2px; }
@media (min-width:992px){ .share-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); } }

.share-item{
  appearance:none;border:0;background:#f7f7f7;border-radius:12px;
  padding:14px 10px;text-align:center;display:grid;place-items:center;gap:8px;
  cursor:pointer;transition:transform .12s ease, background .2s ease;
}
.share-item i{ font-size:28px;line-height:1; }
.share-item span{ font-size:.92rem;font-weight:600; }
.share-item:hover{ background:#f0f0f0; transform: translateY(-1px); }

.share-footer{ padding-top:10px; }






.nav-pills .nav-link {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: #fff
}

.rate-input input,
.tab-pane {
    display: none
}

.tab-pane.active,
.tinybar span {
    display: block
}

.rating-badge .score {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1
}

.rating-badge .stars i {
    font-size: 1.1rem;
    color: #f7c948
}

.tinybar {
    height: 6px;
    width: 180px;
    background: #e9ecef;
    border-radius: 99px;
    overflow: hidden
}

.tinybar span {
    height: 100%;
    background: var(--bs-success, #198754)
}

.review-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 1rem;
    padding: 1rem
}

.avatar-initial,
.review-card .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%
}

.avatar-initial {
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--couleur3, #009879);
    color: #fff;
    font-weight: 600;
    font-size: 1.25rem;
    text-transform: uppercase
}

.review-tags .tag {
    background: #f1f5f9;
    border-radius: 999px;
    padding: .1rem .5rem;
    margin-right: .25rem;
    font-size: .75rem
}

.rate-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: .35rem
}

.rate-input label {
    width: 28px;
    height: 28px;
    cursor: pointer;
    position: relative
}

.rate-input label::before {
    content: "\f588";
    font-family: bootstrap-icons;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: #cbd5e1;
    transition: color .15s
}

.rate-input input:checked~label::before,
.rate-input label:hover::before,
.rate-input label:hover~label::before {
    content: "\f586";
    color: #f7c948
}

.btn-ghost {
    background: #fff;
    border: 1px solid #e5e7eb
}

.btn-ghost:hover {
    background: #f8f9fa
}

