/* Décors de côté de l'accueil (pack « Lion-Industrie-Fonds » de ChatGPT, demande de Dylan du 03/11/2026, tailles calées sur
   la maquette « Du chanvre à la traçabilité »). Fonds 03 ivoire (marques, traçabilité) et 04 sauge (catalogue), feuillages
   en bordure des blocs : sous le contenu, sans clic, découpés par leur calque (aucun défilement horizontal).
   Pas de fiole ni de pipettes (Dylan les fait refaire). Les calques sont dans le panneau visible des blocs déroulants :
   hauteurs, positions sticky et défilements 1-2-3 inchangés. Balisage : site/assemble.py (COTES).
   Étendu à toutes les pages le 03/11 (« fais pareil sur toutes les pages ») : voir « Pages intérieures ». */
.li-cotes-host { isolation:isolate; }
.li-cotes { position:absolute; top:0; bottom:0; left:calc(50% - 50vw); width:100vw; z-index:-1; overflow:hidden; overflow:clip; pointer-events:none; user-select:none; }
.li-cotes--trace, .li-cotes--catalogue, .li-cotes--pro, .li-cotes--pied { left:0; right:0; width:auto; }
.li-cote { position:absolute; display:block; max-width:none; height:auto; pointer-events:none; user-select:none; -webkit-user-drag:none; }
/* Traçabilité : bloc très haut → panneau collé à l'écran pendant tout le défilement du bloc (fond + feuillages) */
.li-cotes-panneau { position:sticky; top:0; height:100vh; height:100svh; overflow:hidden; overflow:clip; }

/* 02 / Nos marques : fond ivoire 03 (ombres sur les côtés), feuillage en haut à gauche, branche en bas à droite */
.li-brands { background:#f5f2ec; }
.li-cotes--marques { background:linear-gradient(rgba(255,255,255,.4),rgba(255,255,255,.4)), url("/img/cotes/fond-ivoire-1672.webp") center / cover no-repeat, #f5f2ec; }
.li-cotes--marques .li-cote--haut-gauche { left:-12vw; top:-150px; width:clamp(260px,30vw,480px); opacity:.92; rotate:-4deg; }
.li-cotes--marques .li-cote--bas-droite { right:-9vw; bottom:-180px; width:clamp(260px,34vw,540px); rotate:4deg; }

/* 03 / Traçabilité : fond végétal 01 de Dylan (tiges dans la marge gauche, 03/11 : « la gauche est trop vide »),
   deux feuillages le long du bord droit */
.li-cotes--trace .li-cotes-panneau { background:linear-gradient(90deg, rgba(241,235,223,0) calc(max(44px, (100vw - 1312px) / 2) - 30px), rgba(241,235,223,.86) calc(max(44px, (100vw - 1312px) / 2) + 12px)), url("/img/cotes/fond-vegetal-1672.webp") left -120px center / max(calc(100% + 120px), 178svh) auto no-repeat, #f1ebdf; } /* décalé de 120 px vers la gauche : les tiges restent dans la marge */
.li-cotes--trace .li-cote--haut-droite { right:-11vw; top:-40px; width:clamp(280px,36vw,560px); rotate:3deg; }
.li-cotes--trace .li-cote--milieu-droite { right:-12vw; top:46%; width:clamp(260px,32vw,500px); opacity:.95; scale:-1 1; rotate:8deg; }

/* 04 / Notre engagement : ombre de feuillage en haut à gauche, racines en bas à gauche, tige en haut à droite */
.li-cotes--partenaire .li-cote--ombre { left:-7vw; top:-10%; width:clamp(320px,40vw,620px); filter:brightness(0) blur(10px); opacity:.1; }
.li-cotes--partenaire .li-cote--racines { left:-22vw; bottom:1%; width:clamp(320px,40vw,620px); opacity:.34; }
.li-cotes--partenaire .li-cote--tige { right:-125px; top:-40px; width:clamp(220px,25vw,380px); rotate:-10deg; }

/* 05 / Catalogue : couleur sauge 04 seule (03/11, retour de Dylan) : les feuilles du fond doublaient celles de la photo
   du catalogue et le masque les laissait à moitié transparentes. */
.li-catalogue { background:#eceee3; }
.li-cotes--catalogue { background:#eceee3; }
.li-catalogue.li-cotes-host .li-catalogue-image::after { background:linear-gradient(90deg,#eceee3 0,rgba(236,238,227,.9) 5%,transparent 21%); }

/* 06 / Espace pro et pied de page : feuillages assombris sur les bords (fonds photo et vidéo existants gardés) */
.li-cotes--pro .li-cote, .li-cotes--pied .li-cote { filter:brightness(.6) saturate(.85); opacity:.85; }
.li-cotes--pro .li-cote--bas-gauche { left:-9vw; bottom:-30px; width:clamp(280px,32vw,500px); scale:1 -1; }
.li-cotes--pro .li-cote--droite { right:-10vw; top:-6%; width:clamp(280px,32vw,500px); }
.li-cotes--pied .li-cote--bas-droite { right:-9vw; bottom:-150px; width:clamp(260px,30vw,460px); }

/* Pages intérieures (decorer_page() dans assemble.py) : en-tête ivoire 03, blocs teintés sauge 04, feuillages sur les
   côtés des blocs blancs, branche dans la marge droite des textes légaux (texte laissé sur blanc). */
.li-page-hero.li-cotes-host, .li-page-section.li-cotes-host, .li-legal-layout.li-cotes-host { position:relative; }
.li-cotes--entete { background:linear-gradient(rgba(255,255,255,.4),rgba(255,255,255,.4)), url("/img/cotes/fond-ivoire-1672.webp") center / cover no-repeat, #f5f2ec; }
.li-cotes--entete .li-cote--haut-gauche { left:-12vw; top:-150px; width:clamp(260px,30vw,480px); opacity:.92; rotate:-4deg; }
.li-cotes--entete .li-cote--droite { right:-11vw; bottom:0; width:clamp(280px,32vw,500px); rotate:4deg;
  -webkit-mask-image:linear-gradient(#000 55%, transparent 100%); mask-image:linear-gradient(#000 55%, transparent 100%); } /* plus coupée net par le bloc suivant */
.li-cotes--teinte { --teinte-y:clamp(80px, 9vw, 150px);
  background:linear-gradient(#eceee3 var(--teinte-y), rgba(236,238,227,0) calc(var(--teinte-y) + 170px)) left top / 100% calc(var(--teinte-y) + 170px) no-repeat,
  linear-gradient(rgba(236,238,227,0) 62%, #eceee3) right -15vw top var(--teinte-y) / 112vw 63vw no-repeat,
  url("/img/cotes/fond-sauge-1672.webp") right -15vw top var(--teinte-y) / 112vw auto no-repeat, #eceee3; }
/* taille fixe (blocs hauts), feuilles poussées vers le bord, fondu en bas ; descendu de --teinte-y et fondu en haut (03/11) :
   les feuilles entrent par le haut de l'image, au ras du bloc elles paraissaient coupées par le bloc du dessus */
.li-cotes--teinte .li-cote--bas-gauche { left:-15vw; bottom:-130px; width:clamp(260px,30vw,480px); scale:1 -1; }
.li-cotes--blanc-droite .li-cotes-panneau { background:linear-gradient(90deg, rgba(241,235,223,0) calc(max(44px, (100vw - 1312px) / 2) - 30px), rgba(241,235,223,.86) calc(max(44px, (100vw - 1312px) / 2) + 12px)), url("/img/cotes/fond-vegetal-1672.webp") left -120px center / max(calc(100% + 120px), 178svh) auto no-repeat, #f1ebdf; } /* fond végétal 01 de Dylan : tiges nettes dans la marge, en filigrane sous le texte (marge du site = max(44px, (100vw - 1312px)/2)) */
.li-cotes--blanc-gauche .li-cote--racines { left:-22vw; bottom:1%; width:clamp(320px,40vw,620px); opacity:.34; }
.li-cotes--blanc-gauche .li-cote--ombre { left:-7vw; top:-6%; width:clamp(320px,40vw,620px); filter:brightness(0) blur(10px); opacity:.1; }
.li-cotes--lecture .li-cote--marge-droite { right:-6vw; top:14%; width:clamp(260px,30vw,460px); }
@media (max-width:1279px) { .li-cotes--lecture { display:none; } } /* marge droite trop étroite : le texte d'abord */
/* Pages légales (03/11, retour de Dylan) : le texte commençait collé au bandeau du titre (fond ivoire depuis la v2.1.12) */
.li-legal-layout { padding-top:64px; }
@media (max-width:760px) { .li-legal-layout { padding-top:36px; } }

@media (max-width:1100px) {
  .li-cotes--marques .li-cote--haut-gauche { left:-15vw; }
  .li-cotes--partenaire .li-cote--racines { opacity:.3; }
  .li-cotes--entete .li-cote--droite { right:-17vw; }
}
/* Téléphone : un petit feuillage au plus par bloc, fonds allégés */
@media (max-width:760px) {
  .li-cotes .li-cote { display:none; }
  .li-cotes .li-cote[data-mobile] { display:block; width:170px; opacity:.6; rotate:0deg; }
  .li-cotes--marques { background:linear-gradient(rgba(255,255,255,.5),rgba(255,255,255,.5)), url("/img/cotes/fond-ivoire-768.webp") center / cover no-repeat, #f5f2ec; }
  .li-cotes--marques .li-cote--bas-droite { right:-70px; bottom:-40px; }
  .li-cotes--trace .li-cotes-panneau { background:linear-gradient(rgba(238,236,226,.55),rgba(238,236,226,.55)), url("/img/cotes/fond-ivoire-768.webp") center / cover no-repeat, #eeece2; }
  .li-cotes--trace .li-cote--haut-droite { right:-80px; top:70px; }
  .li-cotes--pro .li-cote--droite { right:-70px; top:-20px; }
  .li-cotes--entete { background:linear-gradient(rgba(255,255,255,.5),rgba(255,255,255,.5)), url("/img/cotes/fond-ivoire-768.webp") center / cover no-repeat, #f5f2ec; }
  .li-cotes--entete .li-cote--droite { right:-80px; top:-30px; bottom:auto; -webkit-mask-image:none; mask-image:none; }
  .li-cotes--teinte { background:#eceee3; } /* feuilles du fond sous les titres : couleur sauge seule */
  .li-cotes--teinte .li-cote--bas-gauche { left:-60px; bottom:-40px; }
}
@media (prefers-contrast:more) { .li-cotes { display:none; } }
@media print { .li-cotes { display:none; } }

/* Accueil, 03/11 (retours de Dylan) */
/* 03 / Traçabilité : le carré vert remonte sous le point de départ du trait (il pendait juste en dessous) ; le trait passe devant */
.li-trace .li-trace-artboard .li-trace-evidence { bottom:25px; }
.li-trace .li-trace-artboard .li-trace-connector { z-index:6; }
.li-trace .li-trace-frame .li-trace-photo-caption { bottom:40px; } /* la légende de la photo reste au-dessus du carré remonté */
/* 04 / Notre engagement : la dernière image (plante adulte) plus grande, ~14 % */
.li-growth-plant[data-growth="4"] { height:114%; bottom:-4%; }

/* Pied de page (03/11) : plus aucun mélange de couleurs (mix-blend-mode) près de la vidéo. Quand un tel élément entrait ou
   sortait de l'écran, Chrome changeait la façon d'afficher la vidéo du pied de page : sa teinte bougeait (« un filtre vert
   foncé qui s'ajoute et repart », sur les pages qui finissent par le bandeau du catalogue). La photo du catalogue a sa teinte
   sauge cuite dans l'image (catalogue-colonne-sauge.webp = multiply #eceee3). */
.li-catalogue-image img { mix-blend-mode:normal; }
@media (max-width:760px) { .li-cotes--blanc-droite .li-cotes-panneau { background:#fff; } } /* téléphone : les tiges passeraient sous le texte */

/* Pied de page, défilement à la molette (03/11, accueil et Notre société) : un voile vert foncé apparaissait et disparaissait
   aussitôt = l'image de la vidéo manquait une fraction de seconde et laissait voir le fond vert uni #004d2b du pied de page
   sous le voile sombre (fond #0a281b de site.css). Fond de secours = l'image fixe de la vidéo (même rendu), et la vidéo n'est plus « promue » en couche
   matérielle par Chrome (opacité 0,999) : elle ne change plus de mode d'affichage pendant le défilement. */
/* v2.1.19 (03/11, Dylan : « je préférais avant quand c'était un peu plus clair ») : la v2.1.18 montre le vrai rendu partout ;
   avant, la carte graphique affichait la vidéo plus claire que le voile prévu. Voile allégé (≈ −15 points) pour retrouver
   cet aspect, textes toujours lisibles ; le fond de secours suit le même voile. */
.li-footer-film .li-contact-shade { background:linear-gradient(90deg, rgba(5,27,19,.78) 0%, rgba(6,29,20,.62) 50%, rgba(7,31,20,.48) 100%),
  linear-gradient(0deg, rgba(4,21,14,.62), rgba(0,0,0,0) 75%); }
.li-footer.li-footer-film.li-contact { background:linear-gradient(90deg, rgba(5,27,19,.78) 0%, rgba(6,29,20,.62) 50%, rgba(7,31,20,.48) 100%),
  linear-gradient(0deg, rgba(4,21,14,.62), rgba(0,0,0,0) 75%), url("contact-poster-v4.webp") center / cover no-repeat, #123219; } /* = voile .li-contact-shade + image fixe */
/* v2.1.18 (03/11, « toujours là sur les deux pages ») : l'opacité 0,999 ne suffisait pas, Chrome gardait la vidéo comme
   calque séparé confié à la carte graphique (« overlay ») ; pendant un défilement à la molette, ce calque passe au noir
   une image et le voile sombre au-dessus devient vert foncé. Un filtre neutre sur le bloc vidéo + voile oblige Chrome à
   les dessiner ensemble dans la page : plus de calque vidéo séparé, donc plus de trou noir. (Invisible : saturation +1 %.) */
.li-contact-media { filter:saturate(1.01); }

/* Catalogue : la photo de la bannière prend tout le bloc (03/11, demande de Dylan), texte sur la partie claire à gauche */
@media (min-width:1000px) {
  .li-cat-hero.li-cotes-host { position:relative; }
  .li-cat-hero .li-cat-hero-photo--banniere { position:absolute; z-index:0; top:0; bottom:0; left:calc(50% - 50vw); width:100vw; max-width:none; margin:0; overflow:hidden; }
  .li-cat-hero .li-cat-hero-photo--banniere img { width:100%; height:100%; object-fit:cover; object-position:right 55%; display:block; }
  .li-cat-hero .li-cat-hero-photo--banniere::before { content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
    background:linear-gradient(90deg, rgba(246,244,238,.82) 0, rgba(246,244,238,.55) 30%, rgba(246,244,238,0) 52%); }
  .li-cat-hero .li-cat-hero-photo--banniere figcaption { position:absolute; z-index:2; right:max(64px, calc((100vw - 1312px) / 2)); bottom:22px; left:auto; display:flex; gap:24px; }
}
@media (max-width:999px) {
  .li-cat-hero .li-cat-hero-photo--banniere { width:100vw; max-width:none; margin:0 calc(50% - 50vw); }
  .li-cat-hero .li-cat-hero-photo--banniere img { width:100%; height:auto; aspect-ratio:5 / 4; object-fit:cover; object-position:88% 58%; display:block; } /* recadré sur le catalogue */
  .li-cat-hero .li-cat-hero-photo--banniere figcaption { padding-inline:20px; }
}

/* Catalogue : bannière ENTIÈRE (08/11/2026, Dylan : « elle est rognée par rapport à celle que je t'ai fournie »).
   Ordinateur : l'en-tête prend la hauteur de l'image (3:2) sans dépasser l'écran, l'image est contenue (rien de coupé),
   calée à droite ; l'espace restant à gauche = couleur du bord gauche de l'image (#F3F1F0), jonction invisible.
   Téléphone / tablette (5:4) : seul le blanc vide à gauche de l'image est retiré. */
@media (min-width:1000px) {
  .li-cat-hero.li-cotes-host { min-height: min(calc(100vw * 2 / 3), calc(100svh - 81px)); }
  .li-cat-hero .li-cat-hero-photo--banniere { background: #F3F1F0; }
  .li-cat-hero .li-cat-hero-photo--banniere img { object-fit: contain; object-position: right center; }
}
@media (max-width:999px) {
  .li-cat-hero .li-cat-hero-photo--banniere img { object-position: 100% 50%; }
}
/* 08/11/2026 (Dylan : « décale un peu le catalogue vers la gauche, plus proche du texte ») : image agrandie de 10 % en
   gardant son bord droit collé au bord de l'écran (pas de jonction visible) → catalogue ~70-95 px plus près du texte ;
   seuls 3 % en haut (bout des feuilles) et 6 % de blanc vide en bas sortent du cadre, jamais les catalogues. */
@media (min-width:1000px) {
  .li-cat-hero .li-cat-hero-photo--banniere img { position:absolute; top:-3%; right:0; width:auto; height:110%; max-width:none; }
}

/* Carte Royal-Cbd (08/11/2026) : nouvelle image claire et moderne (« Écrin ivoire »). Voile allégé pour garder le centre
   lumineux (Dylan : l'ancien fond était « trop terne, sombre, vieux ») : un léger voile en haut pour la mention blanche,
   rien au centre (logo), un dégradé vert forêt en bas seulement pour le titre blanc. */
.li-brand-panel .li-tint-royal { background: linear-gradient(180deg, rgba(11,42,30,.30) 0%, rgba(11,42,30,0) 16%, rgba(11,42,30,0) 52%, rgba(11,42,30,.5) 74%, rgba(11,42,30,.86) 100%); }
