/* ==========================================================================
   BAOBAB AGROBUSINESS — finitions modernes communes
   Chargé sur toutes les pages (base.html et base_land_rental.html), après theme.css.
   - Bandeau de page (.page-hero) pour les pages institutionnelles (À propos, Contact).
   - Cartes de catalogue : survol, couverture photo, avatar technicien.
   - Apparition au défilement ([data-reveal], cartes de catalogue) : voir js/site-reveal.js.
   ========================================================================== */

:root {
  --bb-green-900: #0B3D2E;
  --bb-green-700: #0F6B4E;
  --bb-green-600: #12875F;
  --bb-green-500: #18A46F;
  --bb-green-100: #E7F6EF;
  --bb-surface: #F6FBF8;
  --bb-gold: #E3A93A;
  --bb-text-muted: rgba(11, 31, 23, 0.70);
  --bb-radius: 1.15rem;
  --bb-shadow: 0 6px 22px rgba(11, 61, 46, 0.08);
  --bb-shadow-lg: 0 20px 44px rgba(11, 61, 46, 0.16);
}

/* ---------- Apparition au défilement ---------- */
/* Les éléments ne sont masqués que si le script a démarré (classe posée sur <html>). */
.reveal-on [data-reveal],
.reveal-on .harvest-catalog-page .harvest-catalog-card {
  /* « translate » (et non « transform ») : l'effet de survol des cartes reste libre. */
  opacity: 0;
  translate: 0 18px;
  transition: opacity .6s ease, translate .6s ease, transform .3s ease, box-shadow .3s ease;
}
.reveal-on [data-reveal].is-visible,
.reveal-on .harvest-catalog-page .harvest-catalog-card.is-visible {
  opacity: 1;
  translate: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-reveal],
  .reveal-on .harvest-catalog-page .harvest-catalog-card {
    opacity: 1; translate: none; transition: none;
  }
}

/* ---------- Bandeau de page (À propos, Contact…) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  color: #fff;
  padding: clamp(2.25rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 181, 123, .55) 0%, transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(227, 169, 58, .45) 0%, transparent 42%),
    linear-gradient(135deg, var(--bb-green-900), var(--bb-green-700));
  box-shadow: var(--bb-shadow-lg);
}
.page-hero--image { background-size: cover; background-position: center; }
.page-hero--image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11, 61, 46, .94) 0%, rgba(11, 61, 46, .78) 45%, rgba(11, 61, 46, .35) 100%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero__kicker {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px; padding: .35rem .85rem; margin-bottom: 1rem;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.12; margin: 0 0 .85rem; color: #fff; max-width: 40rem;
}
.page-hero p.lead { font-size: clamp(1rem, 1.7vw, 1.2rem); opacity: .95; max-width: 36rem; margin: 0; line-height: 1.55; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.page-hero__actions .btn { border-radius: 999px; font-weight: 700; padding: .65rem 1.3rem; }
.page-hero__actions .btn-light { color: var(--bb-green-700); }

/* ---------- Titres de section ---------- */
.section-head { text-align: center; margin: 0 auto 2rem; max-width: 40rem; }
.section-kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bb-green-600); margin: 0 0 .55rem;
}
.section-head h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 800; color: var(--bb-green-900);
  letter-spacing: -.02em; margin: 0 0 .55rem;
}
.section-head p { color: var(--bb-text-muted); margin: 0; line-height: 1.55; }

/* ---------- Cartes génériques ---------- */
.feature-card {
  height: 100%;
  background: #fff; border: 1px solid rgba(15, 107, 78, .10); border-radius: var(--bb-radius);
  padding: 1.5rem 1.35rem; box-shadow: var(--bb-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--bb-shadow-lg); border-color: rgba(25, 135, 84, .35); }
.feature-card__icon {
  width: 3rem; height: 3rem; border-radius: .9rem; margin-bottom: 1rem;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem;
  color: #fff; background: linear-gradient(135deg, var(--bb-green-500), var(--bb-green-700));
  box-shadow: 0 8px 18px rgba(25, 135, 84, .25);
}
.feature-card__icon--gold { background: linear-gradient(135deg, #F2B33D, #D9822B); box-shadow: 0 8px 18px rgba(217, 130, 43, .25); }
.feature-card__icon--teal { background: linear-gradient(135deg, #2FB7A6, #137A6E); box-shadow: 0 8px 18px rgba(19, 122, 110, .25); }
.feature-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--bb-green-900); margin: 0 0 .45rem; }
.feature-card p { font-size: .92rem; color: var(--bb-text-muted); line-height: 1.5; margin: 0; }

/* ---------- Catalogues : cartes ---------- */
.harvest-catalog-page .harvest-catalog-card {
  border-radius: var(--bb-radius) !important;
  overflow: hidden;
}
.harvest-catalog-page .harvest-catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bb-shadow-lg) !important;
}
.harvest-catalog-page .parcelle-img,
.harvest-catalog-page .catalog-cover img {
  transition: transform .6s ease;
}
.harvest-catalog-page .harvest-catalog-card:hover .parcelle-img,
.harvest-catalog-page .harvest-catalog-card:hover .catalog-cover img {
  transform: scale(1.06);
}
.harvest-catalog-page .harvest-catalog-card > a.d-block { overflow: hidden; }

/* Couverture photo (récoltes) */
.catalog-cover {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--bb-green-900);
}
.catalog-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catalog-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 61, 46, .45) 0%, transparent 50%);
}
.catalog-cover__chip {
  position: absolute; left: .75rem; bottom: .7rem; z-index: 1;
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(255, 255, 255, .95); color: var(--bb-green-900);
  font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .28rem .65rem;
}

.catalog-cover--empty {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #12875F, #0B3D2E); color: rgba(255, 255, 255, .55); font-size: 3rem;
}

/* Avatar technicien (photo ou initiale) */
.tech-avatar {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(11, 61, 46, .18);
}
.tech-avatar--initial {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem; color: #fff; text-transform: uppercase;
  background: linear-gradient(135deg, var(--bb-green-500), var(--bb-green-700));
}

/* Pagination plus douce */
.harvest-catalog-page .pagination .page-link { border-radius: .65rem !important; margin: 0 .15rem; border: 1px solid rgba(15, 107, 78, .15); color: var(--bb-green-700); }
.harvest-catalog-page .pagination .active .page-link { background: #198754; border-color: #198754; color: #fff; }

/* ---------- Formulaire de contact ---------- */
.contact-card {
  background: #fff; border: 1px solid rgba(15, 107, 78, .10); border-radius: 1.35rem;
  box-shadow: var(--bb-shadow-lg); padding: clamp(1.35rem, 3vw, 2.25rem);
}
.contact-card .form-control,
.contact-card .form-select {
  border-radius: .8rem; padding: .7rem .95rem; border-color: rgba(15, 107, 78, .2); background: var(--bb-surface);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-card .form-control:focus { background: #fff; border-color: #198754; box-shadow: 0 0 0 .2rem rgba(25, 135, 84, .15); }
.contact-card .form-label { font-weight: 600; font-size: .9rem; color: var(--bb-green-900); }
.contact-info {
  display: flex; gap: .95rem; align-items: flex-start; padding: 1rem; border-radius: 1rem;
  background: #fff; border: 1px solid rgba(15, 107, 78, .10); text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.contact-info:hover { transform: translateY(-3px); box-shadow: var(--bb-shadow); border-color: rgba(25, 135, 84, .35); color: inherit; }
.contact-info__icon {
  flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: .8rem;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
  background: var(--bb-green-100); color: var(--bb-green-700);
}
.contact-info strong { display: block; color: var(--bb-green-900); font-size: .95rem; }
.contact-info span.txt { color: var(--bb-text-muted); font-size: .9rem; word-break: break-word; }

/* ---------- Chiffres / valeurs ---------- */
.value-row { display: flex; gap: 1rem; align-items: flex-start; }
.value-row + .value-row { margin-top: 1.1rem; }
.value-row__icon {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bb-green-100); color: var(--bb-green-700); font-size: 1.1rem;
}
.value-row strong { display: block; color: var(--bb-green-900); }
.value-row span.txt { color: var(--bb-text-muted); font-size: .92rem; line-height: 1.5; }

.cta-band {
  position: relative; overflow: hidden; border-radius: 1.5rem; color: #fff; text-align: center;
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  background: radial-gradient(circle at 15% 20%, #1FB57B 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, #F2B33D 0%, transparent 40%),
              linear-gradient(135deg, var(--bb-green-900), var(--bb-green-700));
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; color: #fff; margin: 0 0 .55rem; }
.cta-band p { max-width: 34rem; margin: 0 auto 1.4rem; opacity: .95; }
.cta-band h2.h5 { font-size: 1.1rem; }
.cta-band p.mx-0 { margin-left: 0; margin-right: 0; }
.cta-band .btn { border-radius: 999px; font-weight: 700; padding: .65rem 1.3rem; }
.cta-band .btn-light { color: var(--bb-green-700); }
.cta-band .btn-outline-light:hover { color: var(--bb-green-700); }

@media (max-width: 575.98px) {
  .page-hero { border-radius: 1.15rem; margin-bottom: 1.75rem; }
  .page-hero__actions { flex-direction: column; }
  .page-hero__actions .btn { width: 100%; }
  .cta-band .btn { width: 100%; }
}

/* ---------- Page Contact ---------- */
.contact-hero { padding-bottom: clamp(4rem, 8vw, 5.5rem); }
.contact-hero__perks { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin: 1.4rem 0 0; }
.contact-hero__perks li {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px; padding: .4rem .85rem;
}
.contact-hero__perks i { color: #F2C14E; }
.contact-quick { position: relative; z-index: 2; margin-top: -4.25rem; padding: 0 clamp(.5rem, 2vw, 1.5rem); }
.contact-quick__card {
  display: flex; flex-direction: column; gap: .2rem; height: 100%;
  background: #fff; border-radius: 1.15rem; padding: 1.35rem 1.25rem;
  border: 1px solid rgba(15, 107, 78, .10); box-shadow: 0 16px 36px rgba(11, 61, 46, .14);
  color: inherit; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.contact-quick__card:hover, .contact-quick__card:focus-visible {
  transform: translateY(-5px); box-shadow: 0 24px 48px rgba(11, 61, 46, .20);
  border-color: rgba(25, 135, 84, .4); color: inherit; outline: none;
}
.contact-quick__icon {
  width: 3rem; height: 3rem; border-radius: .9rem; margin-bottom: .75rem;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff;
  background: linear-gradient(135deg, var(--bb-green-500), var(--bb-green-700));
  box-shadow: 0 8px 18px rgba(25, 135, 84, .25);
}
.contact-quick__icon--teal { background: linear-gradient(135deg, #2FB7A6, #137A6E); box-shadow: 0 8px 18px rgba(19, 122, 110, .25); }
.contact-quick__icon--gold { background: linear-gradient(135deg, #F2B33D, #D9822B); box-shadow: 0 8px 18px rgba(217, 130, 43, .25); }
.contact-quick__card strong { font-size: 1.05rem; color: var(--bb-green-900); }
.contact-quick__card .txt { color: var(--bb-text-muted); font-size: .9rem; word-break: break-word; }
.contact-quick__cta { margin-top: auto; padding-top: .7rem; font-weight: 700; font-size: .88rem; color: #198754; }
.contact-quick__cta i { transition: transform .2s ease; }
.contact-quick__card:hover .contact-quick__cta i { transform: translateX(3px); }

.contact-topics { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: 1.25rem; }
.contact-topics__label { width: 100%; font-size: .85rem; font-weight: 600; color: var(--bb-green-900); margin-bottom: .1rem; }
.contact-topic {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid rgba(15, 107, 78, .2); background: var(--bb-surface); color: var(--bb-green-900);
  border-radius: 999px; padding: .4rem .85rem; font-size: .85rem; font-weight: 600;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.contact-topic:hover { border-color: #198754; transform: translateY(-1px); }
.contact-topic.is-active { background: #198754; border-color: #198754; color: #fff; }
.contact-topic:focus-visible { outline: 3px solid rgba(25, 135, 84, .35); outline-offset: 2px; }

.contact-field { position: relative; }
.contact-field > i {
  position: absolute; left: .95rem; top: 50%; transform: translateY(-50%);
  color: var(--bb-green-600); pointer-events: none; font-size: 1rem;
}
.contact-field--area > i { top: 1.05rem; transform: none; }
.contact-card .contact-field .form-control { padding-left: 2.6rem; }

.contact-aside {
  border-radius: 1.35rem; overflow: hidden; background: #fff;
  border: 1px solid rgba(15, 107, 78, .10); box-shadow: var(--bb-shadow);
}
.contact-aside img { width: 100%; height: 190px; object-fit: cover; object-position: center 30%; display: block; }
.contact-aside__body { padding: 1.35rem 1.35rem 1.5rem; }
.contact-aside__body h2 { color: var(--bb-green-900); }
.contact-aside__body > p { color: var(--bb-text-muted); }

.faq-lite { display: grid; gap: .6rem; }
.faq-lite details {
  background: #fff; border: 1px solid rgba(15, 107, 78, .12); border-radius: .9rem; padding: 0 1rem;
  transition: box-shadow .2s ease;
}
.faq-lite details[open] { box-shadow: var(--bb-shadow); }
.faq-lite summary {
  list-style: none; cursor: pointer; padding: .85rem 0; font-weight: 700; font-size: .93rem; color: var(--bb-green-900);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-lite summary::-webkit-details-marker { display: none; }
.faq-lite summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: #198754; transition: transform .2s ease; }
.faq-lite details[open] summary::after { transform: rotate(45deg); }
.faq-lite details p { margin: 0 0 .9rem; color: var(--bb-text-muted); font-size: .9rem; line-height: 1.55; }

@media (max-width: 767.98px) {
  .contact-quick { margin-top: -3.5rem; padding: 0 .5rem; }
  .contact-quick__card {
    display: grid; grid-template-columns: 2.75rem 1fr; column-gap: .9rem; row-gap: .1rem;
    padding: 1rem 1.1rem; align-items: center;
  }
  .contact-quick__icon { grid-row: span 3; width: 2.75rem; height: 2.75rem; margin: 0; font-size: 1.2rem; align-self: start; }
  .contact-quick__cta { padding-top: .3rem; }
  .contact-quick__card .txt { font-size: .84rem; }
  .contact-topic { font-size: .8rem; padding: .35rem .7rem; }
}

/* ---------- Catalogues : Premium « À la une » et liste unique ---------- */
.featured {
  position: relative;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(227, 169, 58, .18) 0%, transparent 45%),
    linear-gradient(180deg, #FFFBF0 0%, #FFFFFF 100%);
  border: 1px solid rgba(227, 169, 58, .30);
}
.featured-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.featured-kicker {
  display: inline-flex; align-items: center; gap: .35rem; margin: 0 0 .3rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #B7791F;
}
.featured-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; color: var(--bb-green-900); letter-spacing: -.02em; margin: 0; }
.featured-sub { margin: .2rem 0 0; color: var(--bb-text-muted); font-size: .9rem; }
.featured-nav { display: flex; gap: .4rem; flex-shrink: 0; }
.featured-nav__btn {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid rgba(15, 107, 78, .2);
  background: #fff; color: var(--bb-green-700); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(11, 61, 46, .08); transition: background .2s ease, transform .2s ease, opacity .2s ease;
}
.featured-nav__btn:hover { background: var(--bb-green-100); transform: translateY(-1px); }
.featured-nav__btn:disabled { opacity: .35; transform: none; }
.featured.is-static .featured-nav { display: none; }

.featured-rail {
  display: flex; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .35rem .25rem 1rem; margin: 0 -.25rem;
  scrollbar-width: thin; scrollbar-color: rgba(183, 121, 31, .45) transparent;
}
.featured-rail > * {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 2rem) / 3) !important; min-width: 280px;
  width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important;
}
.featured-rail .harvest-catalog-card { height: 100%; }
@media (max-width: 991.98px) { .featured-rail > * { flex-basis: calc((100% - 1rem) / 2) !important; } }
@media (max-width: 575.98px) {
  .featured { padding: 1.15rem .9rem 1rem; border-radius: 1.15rem; }
  .featured-rail > * { flex-basis: 84% !important; min-width: 0; }
  .featured-nav { display: none; }
}

/* Badge Premium sur la photo */
.premium-flag {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .02em; color: #3b2a00;
  background: linear-gradient(135deg, #F7CF6A, #E3A93A); border-radius: 999px; padding: .3rem .65rem;
  box-shadow: 0 6px 14px rgba(183, 121, 31, .35);
}
/* Liseré doré des cartes Premium, cartes Standard sobres */
.harvest-catalog-page .harvest-catalog-card--premium {
  border: 1.5px solid rgba(227, 169, 58, .75) !important;
  box-shadow: 0 10px 26px rgba(183, 121, 31, .14) !important;
}
.harvest-catalog-page .harvest-catalog-card--standard { border: 1px solid rgba(15, 107, 78, .10) !important; }

/* Technicien : bandeau de couleur en haut de la carte, avatar qui déborde */
.tech-card-band { position: relative; height: 54px; background: linear-gradient(135deg, #E7F6EF, #CDEBDD); }
.tech-card-band--premium { background: linear-gradient(135deg, #FFF3D1, #F7D98C); }
.tech-card-band + .card-body .tech-avatar { width: 62px; height: 62px; margin-top: -30px; position: relative; z-index: 1; }
.tech-card-band .premium-flag { top: auto; bottom: .55rem; left: auto; right: .7rem; }

/* En-tête de la liste principale */
.catalog-list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; margin-bottom: 1.1rem; }
.catalog-list-title { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 800; color: var(--bb-green-900); letter-spacing: -.02em; margin: 0; }
.catalog-list-sub { color: var(--bb-text-muted); font-size: .9rem; }

/* Contact : compteur, champs invalides, écran de confirmation */
.contact-counter { text-align: right; font-size: .78rem; color: var(--bb-text-muted); margin-top: .3rem; }
.contact-card .form-control:user-invalid, .split-form .form-control:user-invalid { border-color: #dc3545; background: #fff7f7; }
.contact-card .form-control:user-invalid:focus { box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .15); }
.contact-card .form-control:user-valid:not(:placeholder-shown), .split-form .form-control:user-valid:not(:placeholder-shown) { border-color: rgba(25, 135, 84, .55); }
.contact-success { text-align: center; padding: 2.5rem 1rem 1.5rem; outline: none; animation: contactPop .5s ease both; }
.contact-success__check { width: 84px; height: 84px; margin: 0 auto 1.1rem; }
.contact-success__check svg { width: 100%; height: 100%; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.contact-success__check circle { stroke: #198754; stroke-dasharray: 152; stroke-dashoffset: 152; animation: contactDraw .6s ease forwards; fill: var(--bb-green-100); }
.contact-success__check path { stroke: #198754; stroke-dasharray: 40; stroke-dashoffset: 40; animation: contactDraw .35s .5s ease forwards; }
.contact-success h3 { color: var(--bb-green-900); }
@keyframes contactDraw { to { stroke-dashoffset: 0; } }
@keyframes contactPop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .contact-success, .contact-success__check circle, .contact-success__check path { animation: none; stroke-dashoffset: 0; }
}

/* ==========================================================================
   Écran partagé moderne (connexion, inscription, contact) :
   panneau photo à gauche, formulaire en carte à droite.
   ========================================================================== */
.split-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  border-radius: 1.75rem; overflow: hidden; background: #fff;
  box-shadow: 0 30px 70px rgba(11, 61, 46, .18); border: 1px solid rgba(15, 107, 78, .08);
  min-height: 640px; margin-bottom: 2.5rem;
}
.split-shell--narrow { max-width: 1060px; margin-left: auto; margin-right: auto; }
.split-visual {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column;
  background-color: var(--bb-green-900); background-size: cover; background-position: center;
}
.split-visual::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 85% 105%, rgba(227, 169, 58, .45) 0%, transparent 45%),
    linear-gradient(160deg, rgba(7, 38, 28, .93) 0%, rgba(11, 61, 46, .82) 50%, rgba(11, 61, 46, .55) 100%);
}
/* Halo décoratif animé */
.split-visual::after {
  content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%;
  top: -160px; right: -140px; background: radial-gradient(circle, rgba(124, 224, 176, .28), transparent 65%);
  animation: splitFloat 9s ease-in-out infinite alternate;
}
@keyframes splitFloat { to { transform: translate(-40px, 60px) scale(1.1); } }
.split-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .02em; color: #fff; text-decoration: none; }
.split-brand img { width: auto; height: 46px; object-fit: contain; }
.split-brand:hover { color: #fff; }
.split-visual__body { margin-top: auto; padding-top: 2.5rem; }
.split-visual h1, .split-visual .split-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em;
  color: #fff; margin: 0 0 .85rem;
}
.split-visual h1 em, .split-visual .split-title em { font-style: normal; color: #7CE0B0; }
.split-visual p.lead { font-size: 1.02rem; color: rgba(255, 255, 255, .9); line-height: 1.55; margin: 0 0 1.6rem; max-width: 30rem; }
.split-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.split-points li, a.split-point {
  display: flex; align-items: center; gap: .85rem; padding: .8rem .95rem; border-radius: 1rem;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px);
  color: #fff; text-decoration: none; transition: background .2s ease, transform .2s ease;
}
a.split-point:hover { background: rgba(255, 255, 255, .2); transform: translateX(4px); color: #fff; }
.split-points .ico {
  flex-shrink: 0; width: 2.4rem; height: 2.4rem; border-radius: .75rem; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16); color: #F2C14E; font-size: 1.1rem;
}
.split-points strong { display: block; font-size: .95rem; }
.split-points small { display: block; color: rgba(255, 255, 255, .78); font-size: .82rem; line-height: 1.35; word-break: break-word; }
.split-foot { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.split-foot span {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: .35rem .75rem;
}
.split-foot i { color: #F2C14E; }

.split-form { padding: clamp(1.75rem, 4vw, 3.25rem); display: flex; flex-direction: column; justify-content: center; }
.split-form__inner { width: 100%; max-width: 30rem; margin: 0 auto; }
.split-form__inner--wide { max-width: 36rem; }
.split-form .split-heading { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: var(--bb-green-900); letter-spacing: -.03em; margin: 0 0 .4rem; }
.split-form .split-sub { color: var(--bb-text-muted); margin: 0 0 1.6rem; }
.split-form .form-label { font-weight: 600; font-size: .88rem; color: var(--bb-green-900); margin-bottom: .35rem; }
.split-form .form-control, .split-form .form-select {
  border-radius: .85rem; padding: .78rem 1rem; border: 1.5px solid rgba(15, 107, 78, .16); background: var(--bb-surface);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.split-form .form-control:focus { background: #fff; border-color: #198754; box-shadow: 0 0 0 .25rem rgba(25, 135, 84, .12); }
.split-form .input-group > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split-form .input-group > .btn {
  border-radius: 0 .85rem .85rem 0; border: 1.5px solid rgba(15, 107, 78, .16); border-left: 0;
  background: var(--bb-surface); color: var(--bb-green-700);
}
.split-form .input-group > .btn:hover { background: var(--bb-green-100); }
.split-form .btn-submit {
  border-radius: 999px; padding: .85rem 1.2rem; font-weight: 700; font-size: 1.02rem;
  background: linear-gradient(135deg, #18A46F, #0F6B4E); border: 0; color: #fff;
  box-shadow: 0 12px 26px rgba(15, 107, 78, .28); transition: transform .2s ease, box-shadow .2s ease;
}
.split-form .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(15, 107, 78, .34); color: #fff; }
.split-switch { text-align: center; margin: 1.5rem 0 0; color: var(--bb-text-muted); }
.split-switch a { font-weight: 700; color: #198754; text-decoration: none; }
.split-switch a:hover { text-decoration: underline; }
.split-divider { display: flex; align-items: center; gap: .75rem; color: var(--bb-text-muted); font-size: .8rem; margin: 1.4rem 0 0; }
.split-divider::before, .split-divider::after { content: ""; flex: 1; height: 1px; background: rgba(15, 107, 78, .12); }
.split-form img.captcha { border-radius: .6rem; border: 1px solid rgba(15, 107, 78, .15); }
.split-form .alert { border-radius: .9rem; }
.split-form .iti { width: 100%; }
.split-form .iti input.form-control { padding-left: 90px; }

/* Apparition des deux panneaux */
.split-visual > *, .split-form__inner { animation: splitRise .8s cubic-bezier(.2, .7, .2, 1) both; }
.split-form__inner { animation-delay: .12s; }
@keyframes splitRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .split-visual > *, .split-form__inner, .split-visual::after { animation: none; }
}

@media (max-width: 991.98px) {
  /* Téléphone : grand en-tête photo, formulaire en « feuille » qui remonte par-dessus */
  .split-shell {
    grid-template-columns: 1fr; min-height: 0; border-radius: 1.5rem;
    background: transparent; box-shadow: none; border: 0; overflow: visible;
  }
  .split-visual {
    border-radius: 1.5rem 1.5rem 0 0; padding: 1.4rem 1.3rem 3.6rem; min-height: 330px;
  }
  .split-visual__body { padding-top: 1.75rem; }
  .split-visual h1, .split-visual .split-title { font-size: 1.85rem; }
  .split-visual p.lead { margin-bottom: 1rem; font-size: .95rem; }
  .split-shell--auth .split-points { display: none; }
  .split-foot { order: 3; margin-top: .25rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .split-foot::-webkit-scrollbar { display: none; }
  .split-foot span { flex-shrink: 0; }
  .split-form {
    position: relative; z-index: 2; margin-top: -2.25rem; padding: 1.75rem 1.25rem 2rem;
    background: #fff; border-radius: 1.6rem 1.6rem 1.5rem 1.5rem;
    box-shadow: 0 -10px 30px rgba(11, 61, 46, .12), 0 20px 40px rgba(11, 61, 46, .10);
  }
  .split-form::before {
    content: ""; position: absolute; top: .65rem; left: 50%; transform: translateX(-50%);
    width: 42px; height: 5px; border-radius: 999px; background: rgba(15, 107, 78, .18);
  }
}
}

/* Contact en écran partagé */
.split-shell--contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.split-shell--contact .contact-topics { margin-bottom: 1.1rem; }
.split-form .contact-field .form-control { padding-left: 2.6rem; }
.split-form .contact-field > i { color: var(--bb-green-600); }
.split-form .btn-submit { width: 100%; }
@media (max-width: 991.98px) {
  .split-shell--contact { grid-template-columns: 1fr; }
  .split-shell--contact .split-points { gap: .5rem; }
  .split-shell--contact .split-foot { display: none; }
}

/* ==========================================================================
   Page Contact (design dédié « cx- »)
   ========================================================================== */
/* Bandeau pleine largeur, malgré le conteneur de la page */
.cx-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center;
  width: 100vw; margin-left: calc(50% - 50vw); margin-top: -1.5rem;
  padding: clamp(3.5rem, 9vw, 6.5rem) 1.25rem clamp(7rem, 12vw, 9rem);
  background: #0B3D2E;
}
.cx-hero__bg {
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center;
  transform: scale(1.08); animation: cxPan 18s ease-in-out infinite alternate;
}
.cx-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 38, 28, .78) 0%, rgba(7, 38, 28, .88) 60%, rgba(7, 38, 28, .96) 100%);
}
@keyframes cxPan { to { transform: scale(1.16) translateX(-2%); } }
.cx-blob {
  position: absolute; z-index: -1; border-radius: 50%; filter: blur(40px); opacity: .55; pointer-events: none;
  animation: cxFloat 12s ease-in-out infinite alternate;
}
.cx-blob--1 { width: 380px; height: 380px; background: #18A46F; top: -120px; left: -80px; }
.cx-blob--2 { width: 320px; height: 320px; background: #E3A93A; bottom: -140px; right: -60px; animation-delay: -6s; opacity: .4; }
@keyframes cxFloat { to { transform: translate(60px, 40px) scale(1.15); } }
.cx-hero__inner { max-width: 50rem; margin: 0 auto; }
.cx-pill {
  display: inline-flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 700;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px);
  border-radius: 999px; padding: .45rem 1rem; margin-bottom: 1.4rem;
}
.cx-pill__dot { width: .55rem; height: .55rem; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: cxPulse 1.8s infinite; }
@keyframes cxPulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.cx-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.04em;
  color: #fff; margin: 0 0 1.1rem;
}
.cx-grad {
  background: linear-gradient(90deg, #7CE0B0, #F2C14E, #7CE0B0); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: cxShine 6s linear infinite;
}
@keyframes cxShine { to { background-position: 200% center; } }
.cx-lead { font-size: clamp(1rem, 1.8vw, 1.2rem); color: rgba(255, 255, 255, .88); max-width: 40rem; margin: 0 auto; line-height: 1.6; }
.cx-hero__inner > * { animation: splitRise .9s cubic-bezier(.2, .7, .2, 1) both; }
.cx-hero__inner > *:nth-child(2) { animation-delay: .1s; }
.cx-hero__inner > *:nth-child(3) { animation-delay: .2s; }

/* Cartes de contact posées sur le bandeau */
.cx-cards {
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.1rem;
  margin: -5.5rem auto 3rem; max-width: 1140px;
}
/* L'adresse e-mail tient sur une seule ligne (carte du milieu plus large). */
.cx-card--teal strong { white-space: nowrap; word-break: normal; }
.cx-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .25rem;
  padding: 1.6rem 1.4rem 1.4rem; border-radius: 1.35rem; background: #fff; color: inherit; text-decoration: none;
  box-shadow: 0 24px 50px rgba(11, 61, 46, .18); border: 1px solid rgba(15, 107, 78, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cx-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #18A46F, #0F6B4E); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.cx-card--teal::after { background: linear-gradient(90deg, #2FB7A6, #137A6E); }
.cx-card--gold::after { background: linear-gradient(90deg, #F2B33D, #D9822B); }
.cx-card:hover, .cx-card:focus-visible { transform: translateY(-8px); box-shadow: 0 32px 60px rgba(11, 61, 46, .24); color: inherit; outline: none; }
.cx-card:hover::after, .cx-card:focus-visible::after { transform: scaleX(1); }
.cx-card__icon {
  position: relative; width: 3.4rem; height: 3.4rem; border-radius: 1rem; margin-bottom: .9rem;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff;
  background: linear-gradient(135deg, #18A46F, #0F6B4E); box-shadow: 0 10px 22px rgba(25, 135, 84, .3);
  transition: transform .3s ease;
}
.cx-card--teal .cx-card__icon { background: linear-gradient(135deg, #2FB7A6, #137A6E); box-shadow: 0 10px 22px rgba(19, 122, 110, .3); }
.cx-card--gold .cx-card__icon { background: linear-gradient(135deg, #F2B33D, #D9822B); box-shadow: 0 10px 22px rgba(217, 130, 43, .3); }
.cx-card:hover .cx-card__icon { transform: rotate(-8deg) scale(1.08); }
.cx-card__label { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bb-text-muted); }
.cx-card strong { font-size: 1.05rem; color: var(--bb-green-900); word-break: break-word; }
.cx-card__go { margin-top: auto; padding-top: .8rem; font-weight: 700; font-size: .9rem; color: #198754; }
.cx-card__go i { transition: transform .2s ease; }
.cx-card:hover .cx-card__go i { transform: translateX(4px); }

/* Formulaire + engagements */
.cx-main {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  border-radius: 1.75rem; overflow: hidden; background: #fff; margin-bottom: 3.5rem;
  box-shadow: 0 30px 70px rgba(11, 61, 46, .14); border: 1px solid rgba(15, 107, 78, .08);
}
.cx-main__form { justify-content: flex-start; }
.cx-main__side {
  position: relative; padding: clamp(1.5rem, 3vw, 2.5rem);
  background: radial-gradient(circle at 100% 0%, rgba(227, 169, 58, .16), transparent 45%), linear-gradient(180deg, #F2FAF6, #E7F6EF);
  border-left: 1px solid rgba(15, 107, 78, .08);
}
.cx-side__photo {
  position: relative; height: 190px; border-radius: 1.2rem; margin-bottom: 1.5rem;
  background-size: cover; background-position: center 30%; box-shadow: 0 16px 34px rgba(11, 61, 46, .18);
}
.cx-side__badge {
  position: absolute; left: .85rem; bottom: .85rem; display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255, 255, 255, .95); color: var(--bb-green-900); font-weight: 700; font-size: .8rem;
  border-radius: 999px; padding: .35rem .75rem;
}
.cx-side__badge i { color: #0d6efd; }
.cx-main__side h2 { font-size: 1.3rem; font-weight: 800; color: var(--bb-green-900); margin: 0 0 1rem; }
.cx-steps { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 1rem; position: relative; }
.cx-steps li { display: flex; gap: .9rem; align-items: flex-start; }
.cx-steps__n {
  flex-shrink: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, #18A46F, #0F6B4E); box-shadow: 0 6px 14px rgba(25, 135, 84, .3);
}
.cx-steps strong { display: block; color: var(--bb-green-900); font-size: .95rem; }
.cx-steps small { display: block; color: var(--bb-text-muted); font-size: .86rem; line-height: 1.45; }
.cx-side__privacy { font-size: .85rem; color: var(--bb-text-muted); margin: 0; padding-top: 1rem; border-top: 1px dashed rgba(15, 107, 78, .2); }
.cx-side__privacy i { color: #198754; margin-right: .25rem; }

/* Questions fréquentes en accordéon */
.cx-faq { margin-bottom: 3rem; }
.cx-faq__list { max-width: 820px; margin: 0 auto; display: grid; gap: .75rem; }
.cx-faq__list details {
  background: #fff; border: 1px solid rgba(15, 107, 78, .12); border-radius: 1.1rem; padding: 0 1.2rem;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.cx-faq__list details[open] { box-shadow: 0 14px 30px rgba(11, 61, 46, .10); border-color: rgba(25, 135, 84, .35); }
.cx-faq__list summary {
  list-style: none; cursor: pointer; padding: 1rem 0; display: flex; align-items: center; gap: .85rem;
  font-weight: 700; color: var(--bb-green-900);
}
.cx-faq__list summary::-webkit-details-marker { display: none; }
.cx-faq__list summary::after {
  content: "+"; margin-left: auto; width: 1.9rem; height: 1.9rem; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 400; font-size: 1.3rem;
  background: var(--bb-green-100); color: #198754; transition: transform .25s ease, background .25s ease, color .25s ease;
}
.cx-faq__list details[open] summary::after { transform: rotate(45deg); background: #198754; color: #fff; }
.cx-faq__ico {
  flex-shrink: 0; width: 2.3rem; height: 2.3rem; border-radius: .75rem; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bb-surface); color: var(--bb-green-700);
}
.cx-faq__list details p { margin: 0 0 1.1rem 3.15rem; color: var(--bb-text-muted); line-height: 1.6; }

@media (max-width: 991.98px) {
  .cx-cards { grid-template-columns: 1fr; margin-top: -4.5rem; gap: .8rem; }
  .cx-card--teal strong { white-space: normal; overflow-wrap: anywhere; }
  .cx-card { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; row-gap: .1rem; padding: 1.1rem 1.15rem; align-items: center; }
  .cx-card__icon { grid-row: span 3; width: 3rem; height: 3rem; margin: 0; font-size: 1.3rem; align-self: start; }
  .cx-card__go { padding-top: .25rem; }
  .cx-main { grid-template-columns: 1fr; border-radius: 1.4rem; }
  .cx-main__side { border-left: 0; border-top: 1px solid rgba(15, 107, 78, .08); }
  .cx-faq__list details p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-hero__bg, .cx-blob, .cx-pill__dot, .cx-grad, .cx-hero__inner > * { animation: none; }
}

/* Le bandeau pleine largeur (100vw) ne doit jamais créer de défilement horizontal. */
html:has(.cx-hero), body:has(.cx-hero) { overflow-x: clip; }

/* Champ piège anti-robots du formulaire de contact : hors écran, invisible pour les personnes. */
.cx-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================================
   Formulaires en étapes (fil d'Ariane) : parcelle, technicien, récolte
   ========================================================================= */
.form-steps { margin: 0 0 1.25rem; }
.form-steps__list {
  list-style: none; margin: 0; padding: .45rem; display: flex; gap: .35rem; overflow-x: auto;
  background: #fff; border: 1px solid rgba(15, 107, 78, .1); border-radius: 1.1rem;
  box-shadow: 0 10px 28px rgba(11, 61, 46, .07); scrollbar-width: none;
}
.form-steps__list::-webkit-scrollbar { display: none; }
.form-steps__item { flex: 1 1 0; min-width: max-content; position: relative; }
.form-steps__btn {
  width: 100%; display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border: 0; border-radius: .8rem;
  background: transparent; color: var(--bb-text-muted, #5f6f68); font-weight: 600; font-size: .9rem; text-align: left;
  transition: background .2s ease, color .2s ease;
}
.form-steps__btn:hover { background: #F2FAF6; }
.form-steps__num {
  flex-shrink: 0; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; background: #EEF3F1; color: #5f6f68; transition: all .25s ease;
}
.form-steps__icon { display: none; }
.form-steps__opt {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #B7791F;
  background: #FFF6E5; border-radius: 999px; padding: .1rem .45rem;
}
.form-steps__item.is-current .form-steps__btn { background: linear-gradient(135deg, #18A46F, #0F6B4E); color: #fff; box-shadow: 0 8px 20px rgba(25, 135, 84, .28); }
.form-steps__item.is-current .form-steps__num { background: rgba(255, 255, 255, .22); color: #fff; }
.form-steps__item.is-current .form-steps__opt { background: rgba(255, 255, 255, .2); color: #fff; }
.form-steps__item:not(.is-current) .form-steps__opt { display: none; }
@media (max-width: 1399.98px) { .form-steps__btn { padding: .5rem .6rem; gap: .4rem; font-size: .85rem; } }
.form-steps__item.is-done .form-steps__num { background: #198754; color: #fff; }
.form-steps__item.is-done .form-steps__num { font-size: 0; }
.form-steps__item.is-done .form-steps__num::before { content: "\2713"; font-size: .85rem; }
.form-steps__counter { margin: .55rem .25rem 0; font-size: .82rem; color: var(--bb-text-muted, #5f6f68); font-weight: 600; }
.form-steps__controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin: 0 0 1rem; }
.form-steps__controls [hidden] { display: none !important; }
.form-steps__controls .btn-success { margin-left: auto; }
form.js-steps [data-step][hidden] { display: none !important; }
form.js-steps [data-step-final][hidden] { display: none !important; }
form.js-steps [data-step].is-active { animation: formStepIn .35s ease both; }
@keyframes formStepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 767.98px) {
  .form-steps__item { flex: 0 0 auto; }
  .form-steps__item:not(.is-current) .form-steps__label,
  .form-steps__item:not(.is-current) .form-steps__opt { display: none; }
  .form-steps__controls .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { form.js-steps [data-step].is-active { animation: none; } }

/* Progression du badge « Certifié » */
.cert-progress {
  border-radius: 1.1rem; padding: 1rem 1.1rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFF8EA, #F2FAF6); border: 1px solid rgba(217, 130, 43, .22);
}
.cert-progress__head { display: flex; align-items: center; gap: .75rem; }
.cert-progress__icon {
  flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: .85rem; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.25rem; background: linear-gradient(135deg, #F2B33D, #D9822B); box-shadow: 0 8px 18px rgba(217, 130, 43, .3);
}
.cert-progress__title { font-weight: 800; color: var(--bb-green-900, #0b3d2e); margin: 0; font-size: 1rem; }
.cert-progress__sub { margin: 0; font-size: .85rem; color: var(--bb-text-muted, #5f6f68); }
.cert-progress__count { margin-left: auto; font-weight: 800; color: #B7791F; white-space: nowrap; }
.cert-progress__track { height: .45rem; border-radius: 999px; background: rgba(15, 107, 78, .1); overflow: hidden; margin: .8rem 0 .7rem; }
.cert-progress__bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #F2B33D, #198754); transition: width .4s ease; }
.cert-progress__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .85rem; color: #5f6f68; }
.cert-progress__list li.is-done { color: #198754; font-weight: 600; }
.cert-progress__done { margin: .7rem 0 0; font-weight: 700; color: #198754; }
.cert-progress.is-complete { border-color: rgba(25, 135, 84, .35); background: linear-gradient(135deg, #EAF8F1, #F2FAF6); }

/* Badge « Certifié » (catalogues et fiches) */
.badge-certified {
  display: inline-flex; align-items: center; gap: .3rem; font-weight: 700;
  background: linear-gradient(135deg, #F2B33D, #D9822B) !important; color: #fff !important;
}

/* Trois dernières cultures : trois blocs indépendants */
.previous-crops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.previous-crop-slot {
  border: 1px dashed rgba(15, 107, 78, .28); border-radius: 1rem; padding: .8rem; background: #FAFDFB;
  display: flex; flex-direction: column; gap: .5rem; transition: border-color .2s ease, background .2s ease;
}
.previous-crop-slot.is-filled { border-style: solid; border-color: rgba(25, 135, 84, .45); background: #F2FAF6; }
.previous-crop-slot__head { display: flex; align-items: center; gap: .5rem; }
.previous-crop-slot__tag {
  flex-shrink: 0; font-weight: 800; font-size: .8rem; color: #fff; background: linear-gradient(135deg, #18A46F, #0F6B4E);
  border-radius: .55rem; padding: .2rem .5rem;
}
.previous-crop-slot__hint { margin: 0; font-size: .8rem; color: var(--bb-text-muted, #5f6f68); line-height: 1.25; }
.previous-crop-slot__clear { align-self: flex-start; padding: 0; color: #b02a37; text-decoration: none; font-size: .82rem; }
.previous-crop-slot__clear:hover { color: #842029; text-decoration: underline; }
.previous-crop-slot__clear[hidden] { display: none; }
@media (max-width: 767.98px) { .previous-crops-grid { grid-template-columns: 1fr; } }

/* « Autre culture » à préciser (vente de récolte) */
.crop-other-wrap[hidden] { display: none !important; }
