/* ============================================================
   CA4SFC — Feuille de style principale
   Identité : terre, agriculture, patrimoine (vert olive + terracotta)
   ============================================================ */
:root {
  --primary: #3f6b1f;        /* vert olive cultures */
  --primary-dark: #2c4d13;
  --secondary: #b3541e;      /* terracotta */
  --accent: #e8b33d;         /* jaune moisson */
  --dark: #1e2a14;
  --light: #f7f6ef;
}

body { font-family: 'Nunito', sans-serif; color: #2b3325; background: #fff; }
h1,h2,h3 { font-family: 'Merriweather', serif; font-weight: 900; }
h4,h5,h6 { font-weight: 800; }
a { text-decoration: none; }

/* Topbar */
.topbar { background: var(--primary-dark); color: #e3ecd6; font-size: .84rem; padding: .4rem 0; letter-spacing: .01em; }
.topbar .container { gap: 1rem; }
.topbar .svg-i { opacity: .75; }
.topbar a { color: #e3ecd6; }
.topbar a:hover { color: #fff; }

/* Navigation */
.main-nav { background: linear-gradient(100deg, var(--primary-dark) 0%, var(--primary) 62%, #4b7b26 100%); padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 6px 22px rgba(12,24,6,.2); }
.main-nav .container { gap: 1rem; }
.main-nav .navbar-brand { display: flex; align-items: center; gap: .65rem; margin: 0; padding: 0; color: #fff !important; }
.main-nav .brand-logo { flex: 0 0 auto; width: 46px; height: 46px; padding: 2px; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 2px 10px rgba(9,18,4,.3), 0 0 0 1px rgba(255,255,255,.3); }
.main-nav .brand-text { display: flex; flex-direction: column; justify-content: center; }
.main-nav .brand-name { color: #fff; font-family: 'Merriweather', Georgia, serif; font-size: 1.12rem; font-weight: 900; letter-spacing: .05em; line-height: 1.05; }
.main-nav .brand-tagline { margin-top: .22rem; color: rgba(230,242,216,.8); font-size: .54rem; font-weight: 800; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.main-nav .navbar-nav { flex-wrap: nowrap; gap: .1rem; }
.main-nav .navbar-collapse { min-width: 0; }
.main-nav .nav-link { position: relative; display: flex; align-items: center; padding: .55rem .5rem !important; color: #eaf3df !important; font-size: .86rem; font-weight: 700; line-height: 1.2; white-space: nowrap; transition: color .18s ease; }
.main-nav .nav-link::after { content: ""; position: absolute; left: .5rem; right: .5rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .22s ease; }
.main-nav .nav-link:hover { color: #fff !important; }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .nav-link.active { color: var(--accent) !important; }
.main-nav .nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.main-nav .navbar-toggler { margin-left: auto; padding: .45rem .6rem; border: 1px solid rgba(255,255,255,.4); border-radius: 10px; transition: background .18s ease; }
.main-nav .navbar-toggler:hover { background: rgba(255,255,255,.12); }
.main-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(232,179,61,.4); }
.navbar-toggler-icon { filter: invert(1); }
.main-nav .nav-cta { margin-left: .65rem; }
.main-nav .nav-cta .btn-involve { display: inline-flex; align-items: center; padding: .5rem 1.05rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: .84rem; white-space: nowrap; box-shadow: 0 6px 16px rgba(9,18,4,.24); transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.main-nav .nav-cta .btn-involve:hover { background: #93451a; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(9,18,4,.3); }
.footer-logo { border-radius: 50%; background: #fff; padding: 2px; }
.btn-involve { background: var(--secondary); color: #fff !important; font-weight: 800; border-radius: 999px; }
.btn-involve:hover { background: #93451a; color: #fff !important; }

/* Menu mobile */
.mobile-nav { --bs-offcanvas-width: 340px; }
.mobile-nav .offcanvas-header { align-items: center; gap: .75rem; padding: 1rem 1.15rem; border-bottom: 1px solid #e8eddd; background: var(--light); }
.mobile-nav-brand { display: flex; align-items: center; gap: .6rem; }
.mobile-nav-brand .brand-logo { flex: 0 0 auto; width: 38px; height: 38px; padding: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.16); }
.mobile-nav-brand .brand-name { display: block; color: var(--primary-dark); font-family: 'Merriweather', Georgia, serif; font-size: 1rem; font-weight: 900; letter-spacing: .04em; line-height: 1.1; }
.mobile-nav-brand .brand-tagline { display: block; margin-top: .15rem; color: #6b7461; font-size: .52rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mobile-nav .offcanvas-body { display: flex; flex-direction: column; padding: 1rem; }
.mobile-menu { gap: .12rem; }
.mobile-menu li a { display: flex; align-items: center; padding: .7rem .85rem; border-bottom: 0; border-radius: 10px; color: #2b3325; font-weight: 700; transition: background .18s ease, color .18s ease; }
.mobile-menu li a:hover { background: #f2f6ea; color: var(--primary-dark); }
.mobile-menu li a.is-active { background: #eef3e7; color: var(--primary-dark); box-shadow: inset 3px 0 0 var(--primary); }
.mobile-menu-cta { display: inline-flex; align-items: center; justify-content: center; margin-top: 1.1rem; padding: .7rem 1rem; }

/* Densité de la barre selon la largeur de l'écran */
@media (min-width: 1200px) {
  .main-nav .brand-logo { width: 42px; height: 42px; }
  .main-nav .brand-name { font-size: 1.04rem; }
  .main-nav .brand-tagline { display: none; }
  .main-nav .nav-link { padding: .45rem .26rem !important; font-size: .78rem; }
  .main-nav .nav-link::after { left: .26rem; right: .26rem; }
  .main-nav .nav-cta { margin-left: .3rem; }
  .main-nav .nav-cta .btn-involve { padding: .4rem .65rem; font-size: .74rem; }
}
@media (min-width: 1400px) {
  .main-nav .nav-link { padding: .5rem .4rem !important; font-size: .84rem; }
  .main-nav .nav-link::after { left: .4rem; right: .4rem; }
  .main-nav .nav-cta { margin-left: .45rem; }
  .main-nav .nav-cta .btn-involve { padding: .46rem .8rem; font-size: .8rem; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #557f2d 100%); color: #fff; padding: 5rem 0 4rem; position: relative; overflow: hidden; }
.hero h1 { font-size: 2rem; line-height: 1.35; }
.hero .lead { color: #e3ecd6; }
.hero .slogan { color: var(--accent); font-style: italic; font-weight: 700; }
.btn-cta { background: var(--secondary); border: none; color: #fff; font-weight: 700; padding: .7rem 1.6rem; border-radius: 30px; }
.btn-cta:hover { background: #93451a; color:#fff; }
.btn-outline-cta { border: 2px solid #fff; color: #fff; font-weight: 700; padding: .6rem 1.5rem; border-radius: 30px; }
.btn-outline-cta:hover { background: #fff; color: var(--primary); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .62rem 1.25rem; border: 1px solid #cbd9b8; border-radius: 999px; background: #fff; color: var(--primary-dark); font-size: .88rem; font-weight: 800; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.btn-ghost:hover { border-color: var(--primary); background: #f4f8ee; color: var(--primary-dark); transform: translateY(-1px); }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--light); }
.section-head { max-width: 780px; margin-bottom: 2.3rem; }
.section-eyebrow { margin: 0 0 .5rem; color: var(--secondary); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-head .section-title { margin: 0 0 .55rem; font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.3; }
.section-head .section-sub { margin: 0; }
.section-head.is-centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.has-action { display: flex; max-width: none; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-head.has-action .section-sub { margin-top: .45rem; }
.section-title { color: var(--primary-dark); margin-bottom: .4rem; }
.section-sub { color: #6b7461; max-width: 760px; white-space: pre-line; }
.card-feature { border: none; border-radius: 14px; box-shadow: 0 4px 18px rgba(63,107,31,.09); transition: .25s; height: 100%; }
.card-feature:hover { transform: translateY(-5px); box-shadow: 0 10px 26px rgba(63,107,31,.17); }

/* Axes stratégiques */
.axe-card { position: relative; display: flex; height: 100%; flex-direction: column; overflow: hidden; padding: 1.6rem 1.6rem 1.5rem; border: 1px solid rgba(44,77,19,.1); border-radius: 18px; background: #fff; box-shadow: 0 5px 18px rgba(34,48,24,.06); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.axe-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.axe-card:hover { transform: translateY(-4px); border-color: rgba(63,107,31,.24); box-shadow: 0 16px 34px rgba(34,48,24,.13); }
.axe-card:hover::before { transform: scaleX(1); }
.axe-card-index { position: absolute; top: 1.35rem; right: 1.5rem; color: rgba(44,77,19,.16); font-family: 'Merriweather', Georgia, serif; font-size: 1.15rem; font-weight: 900; letter-spacing: .02em; }
.axe-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; margin-bottom: 1.15rem; border-radius: 15px; background: linear-gradient(145deg, #eef3e2, #dde8c9); color: var(--primary-dark); font-size: 1.45rem; transition: background .25s ease, color .25s ease, transform .25s ease; }
.axe-card:hover .axe-card-icon { background: var(--primary); color: #fff; transform: rotate(-4deg); }
.axe-card-title { margin: 0 0 .6rem; color: var(--primary-dark); font-family: 'Merriweather', Georgia, serif; font-size: 1.12rem; font-weight: 700; line-height: 1.45; }
.axe-card-text { margin: 0; color: #62705a; font-size: .9rem; line-height: 1.72; }

/* Projets */
.project-group + .project-group { margin-top: 3rem; }
.project-group-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.35rem; }
.project-group-title { margin: 0; color: var(--primary-dark); font-family: 'Merriweather', Georgia, serif; font-size: 1.15rem; font-weight: 700; }
.project-group-count { flex: 0 0 auto; padding: .2rem .6rem; border-radius: 999px; background: #eef3e7; color: var(--primary-dark); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.project-group-rule { flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, #dee7d5, rgba(222,231,213,0)); }
.project-card-link { display: block; height: 100%; color: inherit; border-radius: 18px; }
.project-card-link:hover, .project-card-link:focus { color: inherit; }
.project-card-link:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.project-card { display: flex; height: 100%; flex-direction: column; overflow: hidden; border: 1px solid rgba(44,77,19,.1); border-radius: 18px; background: #fff; box-shadow: 0 6px 20px rgba(34,48,24,.07); transition: transform .25s ease, box-shadow .25s ease; }
.project-card-link:hover .project-card, .project-card-link:focus-visible .project-card { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(34,48,24,.15); }
.project-card-media { position: relative; overflow: hidden; background: #e9eddf; }
.project-card-cover { display: block; width: 100%; height: 215px; object-fit: cover; transition: transform .45s ease; }
.project-card-link:hover .project-card-cover, .project-card-link:focus-visible .project-card-cover { transform: scale(1.045); }
.project-status { position: absolute; top: .85rem; left: .85rem; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--primary-dark); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 3px 12px rgba(20,35,12,.18); }
.project-status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--primary); }
.project-status.is-upcoming::before { background: var(--accent); }
.project-status.is-past::before { background: #8c9a7d; }
.project-card-year { position: absolute; right: .85rem; bottom: .85rem; padding: .25rem .65rem; border-radius: 999px; background: rgba(30,42,20,.78); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.project-card-body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 1.35rem 1.4rem .35rem; }
.project-card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin: 0 0 .55rem; color: #26351c; font-family: 'Merriweather', Georgia, serif; font-size: clamp(1.05rem, 1.25vw, 1.16rem); font-weight: 700; line-height: 1.5; }
.project-card-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin: 0; color: #6b7461; font-size: .9rem; line-height: 1.68; }
.project-card-cta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: auto 1.4rem 0; padding: .9rem 0 1.2rem; border-top: 1px solid #eef1e8; color: var(--primary-dark); font-size: .86rem; font-weight: 800; }
.project-card-cta span { display: inline-flex; align-items: center; justify-content: center; width: 1.85rem; height: 1.85rem; border-radius: 50%; background: #eef3e7; font-size: 1rem; transition: transform .2s ease, background .2s ease; }
.project-card-link:hover .project-card-cta span, .project-card-link:focus-visible .project-card-cta span { transform: translateX(3px); background: #e1ebd5; }

/* Catalogue des cultures */
.crop-tile-link { display: block; height: 100%; color: inherit; border-radius: 18px; }
.crop-tile-link:hover, .crop-tile-link:focus { color: inherit; }
.crop-tile-link:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.crop-tile { display: flex; height: 100%; flex-direction: column; overflow: hidden; border: 1px solid rgba(44,77,19,.1); border-radius: 18px; background: #fff; box-shadow: 0 6px 20px rgba(34,48,24,.07); transition: transform .25s ease, box-shadow .25s ease; }
.crop-tile-link:hover .crop-tile, .crop-tile-link:focus-visible .crop-tile { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(34,48,24,.15); }
.crop-tile-media { position: relative; display: flex; align-items: center; justify-content: center; height: 178px; overflow: hidden; background: linear-gradient(140deg, #eef3e2, #dfe9cb); }
.crop-tile-cover { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.crop-tile-link:hover .crop-tile-cover, .crop-tile-link:focus-visible .crop-tile-cover { transform: scale(1.045); }
.crop-tile-placeholder { color: var(--primary); font-size: 3rem; opacity: .8; }
.crop-tile-cat { position: absolute; top: .8rem; left: .8rem; padding: .28rem .65rem; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--primary-dark); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 3px 12px rgba(20,35,12,.16); }
.crop-tile-body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 1.15rem 1.25rem .35rem; }
.crop-tile-title { margin: 0 0 .25rem; color: #26351c; font-family: 'Merriweather', Georgia, serif; font-size: 1.08rem; font-weight: 700; line-height: 1.4; }
.crop-tile-link:hover .crop-tile-title, .crop-tile-link:focus-visible .crop-tile-title { color: var(--secondary); }
.crop-tile-sci { margin: 0 0 .6rem; color: var(--secondary); font-size: .82rem; font-style: italic; line-height: 1.4; }
.crop-tile-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin: 0; color: #6b7461; font-size: .88rem; line-height: 1.65; }
.crop-tile-cta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: auto 1.25rem 0; padding: .85rem 0 1.1rem; border-top: 1px solid #eef1e8; color: var(--primary-dark); font-size: .84rem; font-weight: 800; }
.crop-tile-cta span { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #eef3e7; font-size: .95rem; transition: transform .2s ease, background .2s ease; }
.crop-tile-link:hover .crop-tile-cta span, .crop-tile-link:focus-visible .crop-tile-cta span { transform: translateX(3px); background: #e1ebd5; }
.project-content { line-height: 1.8; overflow-wrap: anywhere; }
.project-content a { color: var(--primary-dark); text-decoration: underline; }
.news-card-link { display: block; height: 100%; color: inherit; text-decoration: none; border-radius: 16px; }
.news-card-link:hover, .news-card-link:focus { color: inherit; }
.news-card-link:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.news-card { display: flex; height: 540px; max-height: 540px; flex-direction: column; overflow: hidden; border: 1px solid rgba(44,77,19,.08); border-radius: 16px; background: #fff; box-shadow: 0 5px 20px rgba(34,48,24,.08); transition: transform .25s ease, box-shadow .25s ease; }
.news-card-link:hover .news-card, .news-card-link:focus-visible .news-card { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(34,48,24,.16); }
.news-card-media { position: relative; flex: 0 0 220px; height: 220px; max-height: 220px; overflow: hidden; background: #e9eddf; }
.news-card-cover { display: block; width: 100%; height: 220px; max-height: 220px; object-fit: cover; object-position: center; transition: transform .4s ease; }
.news-card-link:hover .news-card-cover, .news-card-link:focus-visible .news-card-cover { transform: scale(1.035); }
.news-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: 1.9rem; margin-bottom: .9rem; }
.news-card-type { display: inline-flex; flex-shrink: 0; align-items: center; padding: .35rem .7rem; border-radius: 999px; background: #eef3e7; color: var(--primary-dark); font-size: .72rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.news-card-type-event { background: var(--primary); color: #fff; }
.news-card .card-body { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; overflow: hidden; padding: 1.35rem 1.4rem 1.2rem; }
.news-card-date { color: #67715e; font-size: .75rem; font-weight: 700; text-align: right; }
.news-card-title { display: -webkit-box; min-height: 4.65em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin: 0 0 .65rem; color: #26351c; font-family: 'Merriweather', Georgia, serif; font-size: clamp(1rem, 1.2vw, 1.08rem); font-weight: 700; line-height: 1.55; }
.news-card-summary { display: -webkit-box; min-height: 4.95em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin-bottom: 1rem; color: #687064 !important; font-size: .91rem !important; line-height: 1.65; }
.news-card-cta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .85rem; border-top: 1px solid #edf0e8; color: var(--primary-dark); font-size: .88rem; font-weight: 800; }
.news-card-cta span { display: inline-flex; width: 1.8rem; height: 1.8rem; align-items: center; justify-content: center; border-radius: 50%; background: #eef3e7; font-size: 1.1rem; transition: transform .2s ease, background .2s ease; }
.news-card-link:hover .news-card-cta span, .news-card-link:focus-visible .news-card-cta span { transform: translateX(3px); background: #e1ebd5; }
.detail-hero { position: relative; display: flex; min-height: 360px; align-items: stretch; overflow: hidden; background: var(--primary-dark); }
.detail-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero-overlay { position: relative; z-index: 1; display: flex; width: 100%; align-items: end; padding: 3rem 0 2rem; background: linear-gradient(90deg, rgba(20,35,12,.78), rgba(20,35,12,.2)), linear-gradient(0deg, rgba(20,35,12,.55), transparent 75%); color: #fff; }
.detail-hero h1 { text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.detail-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.7); }
.detail-hero .breadcrumb-item, .detail-hero .breadcrumb-item.active { color: rgba(255,255,255,.85); }
.detail-hero .breadcrumb-item a { color: #fff; }
.news-content { line-height: 1.8; overflow-wrap: anywhere; }
.news-content a { color: var(--primary-dark); text-decoration: underline; }
.project-content img, .news-content img { display: block; max-width: 100%; height: auto; margin: 1.25rem auto; border-radius: 10px; }
.project-content img.content-image-left, .news-content img.content-image-left { float: left; width: 50%; margin: .4rem 1.25rem 1rem 0; }
.project-content img.content-image-right, .news-content img.content-image-right { float: right; width: 50%; margin: .4rem 0 1rem 1.25rem; }
.project-content img.content-image-center, .news-content img.content-image-center { float: none; margin: 1.25rem auto; }
.project-content img.content-image-25, .news-content img.content-image-25 { width: 25%; }
.project-content img.content-image-50, .news-content img.content-image-50 { width: 50%; }
.project-content img.content-image-75, .news-content img.content-image-75 { width: 75%; }
.project-content img.content-image-100, .news-content img.content-image-100 { width: 100%; }
.project-content::after, .news-content::after { content: ""; display: table; clear: both; }
.project-content h2, .news-content h2 { margin-top: 2rem; }
.project-content h3, .news-content h3, .project-content h4, .news-content h4 { margin-top: 1.5rem; }
.rich-editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .5rem; border: 1px solid #ced4da; border-bottom: 0; border-radius: .375rem .375rem 0 0; background: #f8f9fa; }
.rich-editor-block { width: auto; max-width: 150px; }
.rich-editor-area { min-height: 300px; padding: .75rem; border: 1px solid #ced4da; border-radius: 0 0 .375rem .375rem; background: #fff; overflow-wrap: anywhere; }
.rich-editor-area:focus { outline: 0; border-color: #86b7fe; box-shadow: 0 0 0 .2rem rgba(13,110,253,.15); }
.rich-editor-area img { display: block; max-width: 100%; height: auto; margin: .75rem 0; }
.feature-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(63,107,31,.1); color: var(--primary); display:flex; align-items:center; justify-content:center; font-size: 1.6rem; margin-bottom: 1rem; }
.feature-icon.alt { background: rgba(179,84,30,.12); color: var(--secondary); }

/* Cartes cultures & recettes */
.crop-card img, .crop-card .img-placeholder { height: 200px; object-fit: cover; width: 100%; border-radius: 14px 14px 0 0; }
.img-placeholder { background: linear-gradient(135deg,#eef3e2,#dce8c8); display:flex; align-items:center; justify-content:center; color: var(--primary); font-size: 2.6rem; }
.badge-crop { background: rgba(63,107,31,.12); color: var(--primary-dark); font-weight: 700; border-radius: 20px; padding: .3rem .7rem; font-size: .75rem; }
.badge-terra { background: rgba(179,84,30,.12); color: var(--secondary); font-weight: 700; border-radius: 20px; padding: .3rem .7rem; font-size: .75rem; }

/* Page header interne */
/* En-tête de page commun : même traitement que le hero de la bibliothèque */
.page-head { position: relative; overflow: hidden; padding: 1.6rem 0 2.6rem; background: radial-gradient(circle at 88% 6%, rgba(232,179,61,.26), transparent 44%), linear-gradient(128deg, var(--primary-dark) 0%, var(--primary) 58%, #5b8631 100%); color:#fff; }
.page-head::after { content: ""; position: absolute; right: -90px; bottom: -160px; width: 380px; height: 380px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.05), 0 0 0 84px rgba(255,255,255,.035); pointer-events: none; }
.page-head .container { position: relative; z-index: 1; }
.page-head .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.55); margin-bottom: 1.7rem; font-size: .85rem; }
.page-head .breadcrumb-item, .page-head .breadcrumb-item.active { color: rgba(255,255,255,.78); }
.page-head .breadcrumb-item a { color: #fff; }
.page-head h1 { margin: 0 0 .95rem; color: #fff; font-size: clamp(2.05rem, 4.1vw, 2.9rem); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.page-head h1:last-child { margin-bottom: 0; }
.page-eyebrow { display: flex; align-items: center; gap: .6rem; width: fit-content; margin: 0 0 .55rem; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.page-eyebrow::after { content: ""; flex: 0 0 auto; width: 1.6rem; height: 2px; border-radius: 2px; background: currentColor; opacity: .85; }
.page-lead { max-width: 690px; margin: 0; padding-left: 1.05rem; border-left: 3px solid rgba(232,179,61,.7); color: #e9f2dd; font-size: clamp(1.02rem, 1.2vw, 1.15rem); line-height: 1.72; white-space: pre-line; }

/* En-tête avec panneau latéral (chiffres clés) */
.page-head-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.page-head-aside { width: 100%; max-width: 360px; padding: 1.3rem 1.45rem; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(255,255,255,.1); backdrop-filter: blur(10px); box-shadow: 0 18px 38px rgba(9,18,4,.22); }
.page-head-aside-title { margin: 0 0 .9rem; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.page-head-aside .hero-stats { display: flex; flex-direction: column; gap: 0; margin: 0; }
.page-head-aside .hero-stats li { flex-direction: row; align-items: baseline; justify-content: space-between; gap: .9rem; padding: .6rem 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.page-head-aside .hero-stats li:first-child { padding-top: 0; }
.page-head-aside .hero-stats li:last-child { padding-bottom: 0; border-bottom: 0; }
.page-head-aside .hero-stats strong { font-size: 1.8rem; line-height: 1; }
.page-head-aside .hero-stats span { max-width: 68%; font-size: .66rem; letter-spacing: .05em; line-height: 1.3; text-align: right; }
@media (min-width: 1200px) {
  .page-head.has-aside .page-head-layout { grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); align-items: end; gap: 2.6rem; }
  .page-head.has-aside .page-head-aside { justify-self: end; }
}
.breadcrumb-item a { color: var(--accent); }
.breadcrumb-item.active { color: #e3ecd6; }
@media (max-width: 767px) { .page-head { padding: 1.3rem 0 2rem; } .page-head::after { display: none; } }

/* Raison d’être (À propos) : texte éditorial + colonne visuelle */
.raison-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
.raison-head { margin-bottom: 1.7rem; }
.raison-body { max-width: 66ch; }
.raison-body p { margin: 0 0 1.15rem; color: #4c5743; font-size: 1.01rem; line-height: 1.85; }
.raison-body > p:first-child { color: #2b3325; font-size: clamp(1.06rem, 1.3vw, 1.16rem); font-weight: 500; line-height: 1.78; }
.raison-body > p:last-child { margin: 1.6rem 0 0; padding-top: 1.35rem; border-top: 1px solid #e3e9d8; color: var(--primary-dark); font-family: 'Merriweather', Georgia, serif; font-size: clamp(1.05rem, 1.5vw, 1.16rem); font-weight: 700; line-height: 1.6; }
.raison-aside { display: grid; gap: 1.15rem; align-content: start; }
.raison-media { position: relative; margin: 0; overflow: hidden; border-radius: 20px; background: #eef3e2; box-shadow: 0 20px 44px rgba(34,48,24,.18); }
.raison-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.raison-media.is-wide img { aspect-ratio: 16 / 10; }
.raison-media figcaption { position: absolute; inset: auto 0 0; padding: 2.4rem 1.15rem 1rem; background: linear-gradient(180deg, rgba(17,28,10,0), rgba(17,28,10,.85)); color: #f2f6ea; font-size: .77rem; font-weight: 600; line-height: 1.5; }
.raison-media.is-wide figcaption { padding: 1.9rem 1rem .85rem; font-size: .74rem; }
.raison-commit { padding: 1.3rem 1.35rem 1.2rem; border: 1px solid rgba(44,77,19,.12); border-radius: 18px; background: #fbfcf6; box-shadow: 0 8px 24px rgba(34,48,24,.06); }
.raison-commit-title { margin: 0 0 .95rem; color: var(--primary-dark); font-family: 'Merriweather', Georgia, serif; font-size: .98rem; font-weight: 700; }
.raison-commit ul { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.raison-commit li { display: flex; align-items: flex-start; gap: .75rem; color: #5f6b55; font-size: .84rem; line-height: 1.55; }
.raison-commit-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 10px; background: #eef3e2; color: var(--primary); font-size: 1rem; }
.raison-commit strong { display: block; color: #2b3325; font-size: .88rem; font-weight: 800; }
@media (min-width: 992px) {
  .raison-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 3.2rem; align-items: start; }
  .raison-aside { position: sticky; top: 92px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .raison-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 2.2rem; }
}
@media (max-width: 575px) {
  .raison-body p { font-size: .98rem; line-height: 1.8; }
  .raison-media { border-radius: 16px; }
}

/* Valeurs (À propos) */
.value-card { display:flex; flex-direction:column; background:#fff; border:1px solid #e6ecd9; border-radius:16px; overflow:hidden; box-shadow:0 10px 26px rgba(34,48,24,.07); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.value-card:hover { transform: translateY(-4px); border-color: rgba(63,107,31,.3); box-shadow:0 22px 44px rgba(34,48,24,.15); }
.value-card-media { position:relative; margin:0; overflow:hidden; background:#eef3e2; }
.value-card-media img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; transition: transform .55s ease; }
.value-card-media::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(30,42,20,0) 58%, rgba(30,42,20,.16)); pointer-events:none; }
.value-card:hover .value-card-media img { transform: scale(1.04); }
.value-card-body { display:flex; flex-direction:column; gap:.55rem; flex:1 1 auto; padding:1.5rem 1.6rem 1.65rem; }
.value-card-title { display:flex; align-items:center; gap:.65rem; margin:0; font-family:'Merriweather',Georgia,serif; font-size:1.05rem; font-weight:900; line-height:1.4; color:var(--dark); }
.value-card-icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; width:2.4rem; height:2.4rem; border-radius:11px; background:#eef3e2; color:var(--primary); font-size:1.1rem; }
.value-card-desc { margin:0; font-size:.93rem; line-height:1.7; color:#59634f; }
@media (max-width: 575px) {
  .value-card-body { padding:1.25rem 1.25rem 1.35rem; }
  .value-card-title { font-size:1rem; }
}

/* Organes */
.organ-card { border-top: 4px solid var(--primary); background:#fff; border-radius: 12px; box-shadow: 0 3px 12px rgba(0,0,0,.06); }

/* Footer */
.site-footer { background: var(--dark); color: #c2cbb4; padding: 3.5rem 0 1.5rem; }
.site-footer h5, .site-footer h6 { color: #fff; }
.site-footer a { color: #c2cbb4; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .45rem; font-size: .92rem; }
.site-footer hr { border-color: #38452b; }

/* Chatbot */
#ca4sfc-chatbot { position: fixed; bottom: 22px; right: 22px; z-index: 1050; }
#chatbot-toggle { width: 60px; height: 60px; border-radius: 50%; border: none; background: var(--secondary); color: #fff; font-size: 1.6rem; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
#chatbot-toggle:hover { background: #93451a; }
#chatbot-window { position: fixed; bottom: 95px; right: 22px; width: 360px; max-width: calc(100vw - 30px); height: 480px; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden; }
.chatbot-header { background: var(--primary); color: #fff; padding: .9rem 1rem; display: flex; justify-content: space-between; align-items: center; }
#chatbot-messages { flex: 1; overflow-y: auto; padding: 1rem; background: #f8f7f0; display: flex; flex-direction: column; gap: .6rem; }
.bot-msg, .user-msg { max-width: 85%; padding: .6rem .85rem; border-radius: 14px; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; }
.bot-msg { background: #fff; border: 1px solid #e3e8d5; align-self: flex-start; border-bottom-left-radius: 4px; }
.user-msg { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bot-typing { font-style: italic; color: #8b9479; font-size: .85rem; align-self: flex-start; }
.chatbot-disclaimer { font-size: .72rem; color: #6b7461; background: #fff8e6; border-top: 1px solid #f0e3b8; padding: .35rem .8rem; line-height: 1.3; }
#chatbot-form { display: flex; border-top: 1px solid #e8ece0; }
#chatbot-input { flex: 1; border: none; padding: .85rem 1rem; outline: none; font-size: .92rem; }
#chatbot-form button { border: none; background: var(--secondary); color: #fff; width: 54px; }

/* Formulaires */
.form-card { background:#fff; border-radius: 14px; box-shadow: 0 5px 22px rgba(0,0,0,.08); padding: 2rem; }
.required::after { content: " *"; color: #b3541e; }
.involve-hero { padding-bottom: 2.9rem; }
.involve-hero-lead { max-width: 760px; margin: .2rem 0 1.6rem; color: #e6efdb; font-size: 1.05rem; line-height: 1.7; }
.involve-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.involve-hero-actions .btn { padding: .7rem 1.15rem; border-radius: 999px; font-weight: 800; }
.involve-hero-actions .btn-outline-light:hover { color: var(--primary-dark); }
.involvement-tabs { justify-content: center; gap: .65rem; margin-bottom: 2rem; }
.involvement-tabs .nav-link { display: inline-flex; align-items: center; padding: .8rem 1.2rem; border: 1px solid #dfe7d7; border-radius: 999px; background: #fff; color: var(--primary-dark); font-weight: 800; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.involvement-tabs .nav-link:hover { background: #eef3e7; }
.involvement-tabs .nav-link.active { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 5px 14px rgba(63,107,31,.2); }
.involvement-tab-content { max-width: 900px; margin: 0 auto; }
.involvement-form-card { padding: clamp(1.35rem, 4vw, 2.5rem); border: 1px solid rgba(44,77,19,.08); }
.involvement-form-card h5 { margin-bottom: .65rem; color: var(--primary-dark); font-family: 'Merriweather', Georgia, serif; font-size: 1.35rem; }
.involvement-form-card > p.small.text-muted { margin-bottom: 1.5rem; line-height: 1.65; }
.involvement-form-card .form-control, .involvement-form-card .form-select { padding: .7rem .85rem; border-color: #dce3d5; border-radius: 9px; }
.involvement-form-card .form-control:focus, .involvement-form-card .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(63,107,31,.14); }
.involvement-form-card .btn-cta { min-height: 44px; margin-top: .35rem; }
@media (max-width: 576px) {
  .involve-hero { padding-bottom: 2rem; }
  .involve-hero-actions { flex-direction: column; align-items: stretch; }
  .involvement-tabs { display: grid; grid-template-columns: 1fr; }
  .involvement-tabs .nav-link { justify-content: center; }
}

/* Divers */
.cta-band { background: linear-gradient(120deg, var(--secondary), #cf6a2c); color:#fff; padding: 3rem 0; }
.cta-band h2 { margin-bottom: .65rem; color: #fff; font-size: clamp(1.55rem, 3vw, 2rem); }
.cta-band p { max-width: 640px; margin: 0 auto 1.4rem; color: #fdeee3; line-height: 1.65; }
.cta-band .btn { padding: .65rem 1.4rem; font-weight: 800; }
.cta-band .btn-outline-light:hover { color: var(--secondary); }

/* Accueil : diaporama */
.home-slider { position: relative; overflow: hidden; background: radial-gradient(circle at 88% 6%, rgba(232,179,61,.26), transparent 44%), linear-gradient(128deg, var(--primary-dark) 0%, var(--primary) 58%, #5b8631 100%); color: #fff; }
.home-slider::after { content: ""; position: absolute; right: -90px; bottom: -160px; width: 380px; height: 380px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.05), 0 0 0 84px rgba(255,255,255,.035); pointer-events: none; }
.home-slides { position: relative; z-index: 1; }
.home-slide { display: none; padding: 3.2rem 0 3.4rem; }
.home-slide.is-active { display: block; animation: home-slide-in .5s ease both; }
.home-slide .page-eyebrow { margin-bottom: .65rem; }
.home-slide h1, .home-slide h2 { margin: 0 0 1rem; color: #fff; font-family: 'Merriweather', Georgia, serif; font-size: clamp(1.95rem, 3.4vw, 2.8rem); font-weight: 900; line-height: 1.18; }
.home-slide .slogan { max-width: 720px; margin: 0 0 1.1rem; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--accent); font-size: clamp(.98rem, 1.4vw, 1.12rem); font-style: italic; font-weight: 700; line-height: 1.55; }
.home-slide .lead { max-width: 720px; margin: 0; color: #e6efdb; font-size: 1rem; font-weight: 400; line-height: 1.75; white-space: pre-line; }
.home-slide-badge { display: inline-flex; align-items: center; margin-bottom: .8rem; padding: .32rem .8rem; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.home-slide-badge.is-event { border-color: rgba(232,179,61,.65); background: rgba(232,179,61,.2); color: #ffe6ad; }
.home-slide-date { margin: 0 0 .6rem; color: #d9e6cb; font-size: .86rem; font-weight: 700; }
.home-slide-summary { max-width: 700px; margin: 0; color: #e6efdb; font-size: .98rem; line-height: 1.7; }
.home-slide-image-wrap { display: flex; align-items: center; justify-content: center; }
.home-slide-image { display: block; width: 100%; max-height: 340px; aspect-ratio: 4 / 3; border: 6px solid rgba(255,255,255,.92); border-radius: 20px; object-fit: cover; box-shadow: 0 26px 54px rgba(9,18,4,.34); }
.home-slide-image.is-logo { width: auto; height: auto; max-width: 280px; aspect-ratio: 1; border: 0; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 26px 54px rgba(9,18,4,.34), 0 0 0 14px rgba(255,255,255,.08); }
.home-slider-controls { position: absolute; right: max(1rem, calc((100vw - 1140px) / 2)); bottom: 2.6rem; z-index: 4; display: flex; align-items: center; gap: .6rem; padding: .4rem .55rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.home-slider-count { min-width: 3.2rem; color: #fff; font-size: .8rem; font-weight: 800; text-align: center; }
.home-slider-progress { width: min(220px, 30vw); height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.3); }
.home-slider-progress-bar { width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.home-slider-progress-bar.is-running { animation: home-slide-progress 5s linear forwards; }
.home-slider-control { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: .9rem; line-height: 1; transition: background .18s ease, color .18s ease; }
.home-slider-control:hover, .home-slider-control:focus-visible { background: #fff; color: var(--primary-dark); }
@keyframes home-slide-progress { to { transform: scaleX(1); } }
@keyframes home-slide-in { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Accueil : chiffres clés */
.home-stats { position: relative; z-index: 3; margin-top: -1.9rem; }
.home-stats-card { display: grid; max-width: 980px; margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); overflow: hidden; border: 1px solid rgba(44,77,19,.1); border-radius: 18px; background: #fff; box-shadow: 0 20px 44px rgba(34,48,24,.14); }
.home-stat { padding: 1.4rem 1.25rem; text-align: center; }
.home-stats-card .home-stat + .home-stat { border-left: 1px solid #eef1e8; }
.home-stat-num { color: var(--primary-dark); font-family: 'Merriweather', Georgia, serif; font-size: clamp(1.85rem, 3vw, 2.3rem); font-weight: 900; line-height: 1; }
.home-stat-label { margin-top: .45rem; color: #6b7461; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  .home-slide.is-active, .home-slider-progress-bar.is-running { animation: none; }
}
@media (max-width: 991px) {
  .home-slide { padding: 2.6rem 0 3rem; }
  .home-stats { margin-top: 0; }
  .home-slide-image-wrap { margin-top: 2rem; }
  .home-slide-image { max-height: 300px; }
  .home-slide-image.is-logo { max-width: 220px; }
}
@media (max-width: 767px) {
  .home-slide-image-wrap { margin-top: 1.35rem; }
  .home-slide-image.is-logo { max-width: 160px; }
  .home-slide .slogan { font-size: .95rem; }
  .home-slider-controls { right: 1rem; bottom: 1rem; gap: .4rem; padding: .35rem .45rem; }
  .home-slider-progress { width: 84px; }
  .home-slide .hero-actions { flex-direction: column; align-items: stretch; }
  .home-slide .hero-actions .btn { justify-content: center; }
  .home-stat-label { font-size: .68rem; }
}
@media (max-width: 479px) {
  .home-stats-card { grid-template-columns: 1fr; }
  .home-stats-card .home-stat + .home-stat { border-left: 0; border-top: 1px solid #eef1e8; }
  .library-empty-actions { flex-direction: column; align-items: stretch; }
  .library-empty-actions .btn { text-align: center; }
}
.team-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid var(--light); }
.team-placeholder { width: 110px; height: 110px; border-radius: 50%; background: #eef3e2; display:flex; align-items:center; justify-content:center; color: var(--primary); font-size: 2.2rem; margin: 0 auto; }
.team-placeholder.team-initials { font-family: 'Merriweather', Georgia, serif; font-size: 1.8rem; font-weight: 700; letter-spacing: .04em; }
.team-member-card { display: flex; flex-direction: column; align-items: center; border: 1px solid #e8eede; background: #fff; color: inherit; font: inherit; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.team-member-card:hover, .team-member-card:focus-visible { color: inherit; border-color: rgba(63,107,31,.32); box-shadow: 0 18px 34px rgba(34,48,24,.16); }
.team-member-card:focus-visible { outline: 3px solid rgba(63,107,31,.5); outline-offset: 3px; }
.team-member-cta { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding: .42rem .95rem; border: 1px solid rgba(63,107,31,.34); border-radius: 999px; background: #f6f9ef; color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .01em; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.team-member-cta .svg-i { transition: transform .18s ease; }
.team-member-card:hover .team-member-cta, .team-member-card:focus-visible .team-member-cta { background: var(--primary); border-color: var(--primary); color: #fff; }
.team-member-card:hover .team-member-cta .svg-i { transform: translateX(2px); }

/* Équipe : navigation par groupe (pilules) */
.team-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-bottom: 2.8rem; }
.team-nav-link { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border: 1px solid #d8e3c6; border-radius: 999px; background: #fff; color: var(--primary-dark); font-size: .85rem; font-weight: 800; text-decoration: none; box-shadow: 0 2px 8px rgba(34,48,24,.05); transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.team-nav-link .svg-i { color: var(--primary); font-size: .95rem; }
.team-nav-link:hover, .team-nav-link:focus-visible { border-color: var(--primary); background: #f4f8ec; color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(34,48,24,.12); }
.team-nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.55rem; height: 1.55rem; padding: 0 .4rem; border-radius: 999px; background: #eef3e2; color: var(--primary); font-size: .72rem; font-weight: 800; }

/* Équipe : groupes (tous les membres, comité scientifique, comité de rédaction) */
.team-group + .team-group { margin-top: 2.9rem; }
.team-group-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.5rem; padding-bottom: 1.05rem; border-bottom: 1px solid #e6ebd9; }
.team-group-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.7rem; height: 2.7rem; border-radius: 12px; background: #eef3e2; color: var(--primary); font-size: 1.3rem; }
.team-group-title { margin: 0; color: var(--primary-dark); font-family: 'Merriweather', Georgia, serif; font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 900; line-height: 1.3; }
.team-group-sub { margin: .2rem 0 0; color: #6b7461; font-size: .85rem; line-height: 1.55; }
.team-group-empty { margin: 0; padding: 1.15rem 1.25rem; border: 1px dashed #cfdbb9; border-radius: 14px; background: #fbfdf7; color: #6b7461; font-size: .87rem; line-height: 1.6; }
.team-more-link { margin: 2.4rem 0 0; font-size: .88rem; font-weight: 700; }
.team-more-link a { display: inline-flex; align-items: center; gap: .4rem; color: var(--primary); text-decoration: none; }
.team-more-link a:hover { color: var(--primary-dark); text-decoration: underline; }

#equipe, #gouvernance, #team-tous, #team-scientifique, #team-redaction { scroll-margin-top: 90px; }
@media (max-width: 575px) {
  .team-nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; }
  .team-nav::-webkit-scrollbar { display: none; }
  .team-nav-link { flex: 0 0 auto; padding: .5rem .85rem; font-size: .79rem; }
  .team-group-head { align-items: flex-start; }
  .team-photo, .team-placeholder { width: 92px; height: 92px; }
  .team-placeholder.team-initials { font-size: 1.5rem; }
}
@media (max-width: 576px) {
  .hero h1 { font-size: 1.45rem; }
  .hero { padding: 3rem 0; }
  .detail-hero { min-height: 280px; }
  .detail-hero-overlay { padding: 2rem 0 1.5rem; }
  .news-card .card-body { padding: 1.15rem; }
  .news-card-title { font-size: 1rem; }
  .news-card-meta { align-items: flex-start; }
  .news-card-date { max-width: 60%; }
  .axe-card { padding: 1.3rem 1.25rem 1.25rem; }
  .axe-card-index { top: 1.1rem; right: 1.15rem; }
  .axe-card-title { font-size: 1.05rem; }
  .project-card-cover { height: 180px; }
  .project-card-body { padding: 1.15rem 1.2rem .25rem; }
  .project-card-cta { margin: auto 1.2rem 0; }
  .crop-tile-media { height: 160px; }
  .crop-tile-body { padding: 1.05rem 1.15rem .3rem; }
  .crop-tile-cta { margin: auto 1.15rem 0; }
}

.legal-note { font-size: .8rem; color: #5b6451; background: var(--light); border-radius: 10px; padding: .8rem 1rem; }
.legal-note summary { cursor: pointer; font-weight: 700; color: var(--primary-dark); }
.empty-state { background: var(--light); border: 2px dashed #c9d7b0; border-radius: 14px; padding: 2.2rem 1.5rem; text-align: center; }
.empty-state .svg-i { font-size: 2.4rem; color: var(--primary); }

/* Bibliothèque de ressources */
.library-hero { position: relative; overflow: hidden; padding: 1.6rem 0 2.4rem; background: radial-gradient(circle at 88% 6%, rgba(232,179,61,.26), transparent 44%), linear-gradient(128deg, var(--primary-dark) 0%, var(--primary) 58%, #5b8631 100%); color: #fff; }
.library-hero::after { content: ""; position: absolute; right: -90px; bottom: -160px; width: 380px; height: 380px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.05), 0 0 0 84px rgba(255,255,255,.035); pointer-events: none; }
.library-hero .container { position: relative; z-index: 1; }
.library-breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.55); margin-bottom: 1.7rem; }
.library-breadcrumb .breadcrumb-item, .library-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.78); font-size: .85rem; }
.library-breadcrumb .breadcrumb-item a { color: #fff; }
.library-eyebrow { margin: 0 0 .45rem; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.library-hero h1 { margin: 0 0 .85rem; font-size: clamp(2rem, 4vw, 2.6rem); }
.library-lead { max-width: 700px; margin-bottom: 1.8rem; color: #e6efdb; font-size: 1.02rem; line-height: 1.7; white-space: pre-line; }
.library-search, .hero-search { display: flex; max-width: 680px; padding: .4rem; border-radius: 999px; background: #fff; box-shadow: 0 12px 30px rgba(12,24,6,.28); transition: box-shadow .2s ease; }
.library-search:focus-within, .hero-search:focus-within { box-shadow: 0 0 0 3px rgba(232,179,61,.55), 0 12px 30px rgba(12,24,6,.28); }
.library-search-icon, .hero-search-icon { display: flex; align-items: center; padding: 0 .5rem 0 .95rem; color: #75806a; font-size: 1.05rem; }
.library-search input, .hero-search input { flex: 1 1 auto; min-width: 0; padding: .7rem .2rem; border: 0; background: transparent; color: var(--dark); font-size: 1rem; }
.library-search input:focus, .hero-search input:focus { outline: none; }
.library-search-submit, .hero-search-submit { padding: .72rem 1.7rem; border: 0; border-radius: 999px; background: var(--secondary); color: #fff; font-size: .95rem; font-weight: 800; white-space: nowrap; transition: background .2s ease; }
.library-search-submit:hover, .hero-search-submit:hover { background: #93451a; }
.library-search-hint, .hero-search-hint { max-width: 680px; margin: .75rem 0 0; color: rgba(255,255,255,.72); font-size: .8rem; line-height: 1.5; }
.library-stats, .hero-stats { display: flex; flex-wrap: wrap; gap: 1.3rem 2.6rem; margin: 1.9rem 0 0; padding: 0; list-style: none; }
.library-stats li, .hero-stats li { display: flex; flex-direction: column; gap: .2rem; padding-left: 1rem; border-left: 2px solid rgba(255,255,255,.22); }
.library-stats strong, .hero-stats strong { font-family: 'Merriweather', serif; font-size: 1.5rem; line-height: 1; }
.library-stats span, .hero-stats span { color: #d9e6cb; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.5rem; }
.hero-actions .btn { display: inline-flex; align-items: center; padding: .65rem 1.35rem; border-radius: 999px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease; }
.hero-actions .btn:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(12,24,6,.22); }
.hero-actions .btn:active { transform: translateY(0); }
.hero-actions .btn-outline-light:hover { color: var(--primary-dark); }
.hero-actions .btn.is-active { background: #fff; color: var(--primary-dark); border-color: #fff; }
.hero-links { display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.hero-links a { color: #e6efdb; font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hero-links a:hover { color: #fff; }
.page-head .hero-search { margin-top: 1.6rem; }
.page-head .hero-stats { margin-top: 1.8rem; }
.page-head h1 + .hero-actions { margin-top: 1.1rem; }

.library-section { padding-top: 2.6rem; }
.library-toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.7rem; }
.filter-rail { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.filter-rail-track { display: flex; flex: 1 1 auto; min-width: 0; gap: .5rem; overflow-x: auto; padding: .25rem; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: none; }
.filter-rail-track::-webkit-scrollbar { display: none; }
.filter-chip { display: inline-flex; align-items: center; gap: .45rem; flex: 0 0 auto; padding: .48rem .95rem; border: 1px solid #dbe4cd; border-radius: 999px; background: #fff; color: #3d4a33; font-size: .87rem; font-weight: 700; scroll-snap-align: start; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.filter-chip:hover { border-color: var(--primary); background: #f4f8ee; color: var(--primary-dark); }
.filter-chip:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
.filter-chip.is-active { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(63,107,31,.24); }
.filter-chip-count { padding: .05rem .45rem; border-radius: 999px; background: #eef3e7; color: var(--primary-dark); font-size: .73rem; font-weight: 800; }
.filter-chip.is-active .filter-chip-count { background: rgba(255,255,255,.22); color: #fff; }
.filter-rail-nav { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 2rem; height: 2rem; margin: 0 .2rem; border: 1px solid #dbe4cd; border-radius: 50%; background: #fff; color: var(--primary-dark); font-size: 1.1rem; line-height: 1; transition: background .18s ease, color .18s ease; }
.filter-rail-nav:hover:not(:disabled) { background: var(--primary); color: #fff; }
.filter-rail-nav:disabled { opacity: .3; cursor: default; }
.filter-rail:not(.is-scrollable) .filter-rail-nav { display: none; }
.library-suggest { flex: 0 0 auto; }
.library-suggest:hover { color: var(--primary-dark); }
.library-result { margin-bottom: 1.3rem; color: #5b6451; font-size: .9rem; }
.library-result a { color: var(--secondary); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.resource-card { display: flex; height: 100%; flex-direction: column; overflow: hidden; border: 1px solid rgba(44,77,19,.09); border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(34,48,24,.07); transition: transform .25s ease, box-shadow .25s ease; }
.resource-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(34,48,24,.14); }
.resource-card-cover { position: relative; display: flex; align-items: center; justify-content: center; height: 172px; overflow: hidden; background: linear-gradient(140deg, #eef3e2, #dfe9cb); }
.resource-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.resource-card:hover .resource-card-cover img { transform: scale(1.04); }
.resource-card-icon { color: var(--primary); font-size: 3rem; opacity: .85; }
.resource-card-format { position: absolute; right: .8rem; bottom: .8rem; padding: .3rem .65rem; border-radius: 999px; background: rgba(30,42,20,.82); color: #fff; font-size: .71rem; font-weight: 800; letter-spacing: .03em; }
.resource-card-body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 1.25rem 1.3rem 1.3rem; }
.resource-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .75rem; }
.resource-card-type { padding: .28rem .65rem; border-radius: 999px; background: #eef3e7; color: var(--primary-dark); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.resource-card-year { color: #75806a; font-size: .8rem; font-weight: 700; }
.resource-card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin: 0 0 .5rem; font-family: 'Merriweather', Georgia, serif; font-size: clamp(1rem, 1.15vw, 1.08rem); font-weight: 700; line-height: 1.5; }
.resource-card-title a { color: #26351c; }
.resource-card-title a:hover { color: var(--secondary); }
.resource-card-subtitle { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin: 0 0 .55rem; color: var(--secondary); font-size: .85rem; font-weight: 700; line-height: 1.45; }
.resource-card-authors { margin: 0 0 .6rem; color: #5b6451; font-size: .82rem; font-weight: 700; }
.resource-card-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin: 0 0 .9rem; color: #6b7461; font-size: .88rem; line-height: 1.6; }
.resource-card-annexes { margin: 0 0 .9rem; color: var(--primary-dark); font-size: .78rem; font-weight: 800; }
.resource-card-actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid #eef1e8; }
.btn-resource { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; padding: .55rem .9rem; border-radius: 10px; font-size: .83rem; font-weight: 800; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.btn-resource-ghost { border: 1px solid #dbe4cd; background: #fff; color: var(--primary-dark); }
.btn-resource-ghost:hover { border-color: var(--primary); background: #f4f8ee; color: var(--primary-dark); }
.btn-resource-solid { background: var(--primary); color: #fff; }
.btn-resource-solid:hover { background: var(--primary-dark); color: #fff; }

.library-note { display: flex; align-items: center; gap: .9rem; margin-top: 2.6rem; padding: 1.1rem 1.3rem; border: 1px solid #e3e9d8; border-left: 4px solid var(--accent); border-radius: 12px; background: #fafbf5; }
.library-note-body { flex: 1 1 auto; }
.library-note-action { flex: 0 0 auto; align-self: center; white-space: nowrap; }
.library-note-icon { flex: 0 0 auto; margin-top: .15rem; color: var(--secondary); font-size: 1.15rem; }
.library-note-title { margin: 0 0 .25rem; color: var(--primary-dark); font-size: .95rem; }
.library-note p { margin: 0; color: #5b6451; font-size: .85rem; line-height: 1.6; }
.library-note p a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; }

/* Catalogue : état vide et actions */
.library-empty { position: relative; overflow: hidden; padding: 2.6rem 2rem 2.2rem; border: 1px solid #e3e9d8; border-radius: 20px; background: radial-gradient(circle at 10% -10%, rgba(232,179,61,.16), transparent 46%), #fbfcf6; box-shadow: 0 8px 26px rgba(34,48,24,.06); text-align: center; }
.library-empty::after { content: ""; position: absolute; top: -80px; right: -70px; width: 200px; height: 200px; border: 1px solid rgba(63,107,31,.1); border-radius: 50%; box-shadow: 0 0 0 26px rgba(63,107,31,.03); pointer-events: none; }
.library-empty > * { position: relative; z-index: 1; }
.library-empty-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: 999px; background: #eef3e7; color: var(--primary-dark); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.library-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.6rem; height: 3.6rem; margin: 1.1rem auto .85rem; border-radius: 18px; background: linear-gradient(145deg, #eef3e2, #dde8c9); color: var(--primary-dark); font-size: 1.6rem; }
.library-empty h2, .library-empty h3 { margin: 0 0 .65rem; color: var(--primary-dark); font-size: clamp(1.3rem, 2.4vw, 1.55rem); }
.library-empty > p { max-width: 640px; margin: 0 auto; color: #5b6451; font-size: .94rem; line-height: 1.75; }
.library-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.5rem; }
.library-empty-actions .btn { padding: .68rem 1.4rem; font-size: .9rem; }
.library-empty-cats { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e8eddd; }
.library-empty-cats-title { margin: 0 0 .85rem; color: #75806a; font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.library-empty-cats ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.library-empty-cats li { padding: .42rem .9rem; border: 1px solid #dbe4cd; border-radius: 999px; background: #fff; color: #3d4a33; font-size: .84rem; font-weight: 700; }
.library-empty.is-compact { padding: 2.1rem 1.5rem; }
.library-empty.is-compact .library-empty-icon { width: 3rem; height: 3rem; margin: .2rem auto .8rem; font-size: 1.35rem; }

@media (max-width: 991px) {
  .library-hero { padding: 1.3rem 0 2rem; }
  .library-lead { font-size: .96rem; }
}
@media (max-width: 767px) {
  .library-hero::after { display: none; }
  .library-search, .hero-search { padding: .3rem; }
  .library-search-submit, .hero-search-submit { padding: .55rem 1rem; font-size: .87rem; }
  .library-stats, .hero-stats { gap: 1rem 1.6rem; }
  .library-stats li, .hero-stats li { padding-left: .8rem; }
  .library-stats strong, .hero-stats strong { font-size: 1.25rem; }
  .hero-actions .btn { padding: .6rem 1.1rem; font-size: .9rem; }
  .library-toolbar { flex-direction: column; align-items: stretch; }
  .library-suggest { order: 2; align-self: flex-end; }
  .library-note { flex-wrap: wrap; }
  .library-note-action { width: 100%; }
  .library-empty { padding: 2rem 1.25rem 1.75rem; }
  .library-empty-cats li { padding: .38rem .8rem; font-size: .8rem; }
  .resource-card-cover { height: 150px; }
}
.publication-subtitle { max-width: 820px; margin: .5rem 0 1rem; color: #edf3e6; font-size: 1.05rem; line-height: 1.6; }
.publication-label { margin-bottom: .6rem; color: var(--secondary); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.publication-authors li + li { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid #f0f3ea; }
.publication-author-name { display: block; color: var(--primary-dark); font-size: .92rem; font-weight: 800; line-height: 1.4; }
.publication-author-role { display: block; margin-top: .1rem; color: #5b6451; font-size: .84rem; line-height: 1.5; }
.publication-summary { color: #38402f; line-height: 1.8; }
.publication-summary p:last-child { margin-bottom: 0; }
.publication-summary ul, .publication-summary ol { margin-bottom: 1.2rem; }
.publication-keywords { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; list-style: none; }
.publication-keywords li { padding: .28rem .75rem; border-radius: 999px; background: #eef3e7; color: var(--primary-dark); font-size: .8rem; font-weight: 700; }
.publication-annex-list li { padding: .8rem 0; border-bottom: 1px solid #f0f3ea; }
.publication-annex-list li:first-child { padding-top: 0; }
.publication-annex-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.publication-annexe-title { display: block; color: var(--primary-dark); font-size: .9rem; font-weight: 700; line-height: 1.45; }
.publication-annexe-title:hover { color: var(--secondary); text-decoration: underline; }
.publication-annexe-meta { display: block; margin-top: .15rem; color: #6b7461; font-size: .76rem; }
.publication-annex-list .btn { margin-top: .5rem; padding: .28rem .7rem; border-radius: 8px; font-size: .76rem; font-weight: 700; }
.publication-annexe-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; height: 1.5rem; margin-left: .25rem; padding: 0 .4rem; border-radius: 999px; background: #eef3e7; color: var(--primary-dark); font-size: .76rem; font-weight: 800; }
.publication-parent { color: #5b6451; font-size: .9rem; }
.publication-parent a { color: var(--primary-dark); font-weight: 700; }
.publication-side, .detail-side { position: sticky; top: 90px; }
.publication-file-meta { color: #6b7461; font-size: .82rem; }
.publication-meta { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .88rem; }
.publication-meta dt { color: #6b7461; font-weight: 700; }
.publication-meta dd { margin: 0; color: var(--dark); }
@media (max-width: 991px) { .publication-side, .detail-side { position: static; } }

/* Icônes SVG inline */
.svg-i { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex-shrink: 0; }
