/* CDH-HERO v3 — 25/11/2026 (composant com_cdhhero) : hero de l'accueil (components/com_cdhhero/hero.php), maquettes 5 « duotone surligné » et 6 « éditorial clair ».
   Bureau : dans #cdhh, avant la bande grise (mod_cdh_header/tmpl/default.php) ; téléphone : avant la pub du haut (index_mobile.php, classe .mob).
   Une propriété n'est écrite qu'une fois par élément : bureau = .cdhx:not(.mob), téléphone = .cdhx.mob ; les variantes (rendu, 5 / 6, texte clair)
   ne posent que des variables. Titre : taille réduite par le script (--cdhx-tfs) quand il ne tient pas ; chapô : 3 lignes au plus (2 au téléphone). Géométrie fine (découpe le long du biseau de la bande, carte de la 6) : variables posées par cdh-hero.js,
   recalculées au redimensionnement ; valeurs par défaut ci-dessous = rendu avant le script. La pub du bandeau lit --cdhx-pcl / --cdhx-pcr /
   --cdhx-pubh dans ses propres règles (cdh-header.css, nulles sans hero). Parallaxe : animations liées au défilement (sans à-coup) ;
   navigateurs sans animation-timeline : cdh-hero.js. Rien si « réduire les animations ». */

/* commun */
.cdhx{--duo:#EBFC68;position:relative;z-index:3;box-sizing:border-box;font-family:var(--dapolice-babar-slimfast);color:var(--cdhx-encre,#141414);isolation:isolate}
.cdhx.r-cat{--duo:var(--c)}
.cdhx.r-normal{--duo:var(--cdhx-gris-clair,#e6e6e6)}
.cdhx *{box-sizing:border-box}
.cdhx a{text-decoration:none!important}
.cdhx .clair{--cdhx-ink:#fff}
.cdhx-lien{position:absolute;inset:0;z-index:5;background:none}
.cdhx-fond{position:absolute;inset:0;z-index:-1}
.cdhx-img{z-index:4;overflow:hidden;pointer-events:none}
.cdhx-img img{position:absolute;left:0;top:calc(-1 * var(--cdhx-imgmax));width:100%;height:calc(100% + var(--cdhx-imgmax));max-width:none;display:block}
.cdhx-img img:not(.natif){object-fit:cover}
.cdhx-img img.natif{object-fit:none}
.cdhx:not(.r-normal) .cdhx-img{background:var(--duo)}
/* duotone : même traitement que les vignettes des listings (cdh-liste.css, .cdhl-bc) : image en gris contrasté, voile de la couleur en overlay à 75 % */
.cdhx:not(.r-normal) .cdhx-img img{filter:grayscale(1) contrast(1.2)}
.cdhx:not(.r-normal) .cdhx-img::after{content:"";position:absolute;inset:0;background:var(--duo);mix-blend-mode:overlay;opacity:.75;pointer-events:none}
.cdhx-txt{z-index:6;display:flex;flex-direction:column;justify-content:center;pointer-events:none}
.cdhx-txt a{pointer-events:auto}
.cdhx-info{display:flex;align-items:center;letter-spacing:.14em;text-transform:uppercase}
.cdhx-cat{display:inline-block;padding:5px 10px;border-radius:4px;background:var(--pill,var(--c))!important;color:var(--pill-ink,var(--cdhx-ink,#141414))!important;font:700 12px/1 var(--dapolice-caenvoie);letter-spacing:.1em}
.cdhx-t{letter-spacing:-1.5px;text-wrap:balance;color:inherit}
.cdhx-ch{margin:0;font:250 16px/17.6px var(--dapolice-babar-slimfast,'DM Sans','segoe UI',sans-serif);letter-spacing:-.2px;text-wrap:pretty;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--cdhx-chl,3);overflow:hidden}
.cdhx-bb{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;margin:-.12em 0 0 .5em;border:2px solid var(--bb-bord,transparent);border-radius:50%;padding:0 0 2px;
	background:var(--c);color:var(--cdhx-ink,#141414);letter-spacing:0}

/* 5 : duotone surligné (fond jaune, de la rubrique, ou gris clair en couleurs normales) */
.cdhx-5 .cdhx-fond{background:var(--duo)}
.cdhx-5 .cdhx-t > span:not(.cdhx-bb){background:#141414;color:#fff;padding:0 .14em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.cdhx-5{--cdhx-tlh:1.3}
.cdhx-5 .cdhx-ch{max-width:400px;color:var(--cdhx-gris,inherit)}
.cdhx-5.r-cat{--pill:#141414;--pill-ink:var(--c)}
/* 6 : éditorial clair (fond blanc, carte penchée de 1,2°) */
.cdhx-6 .cdhx-fond{background:var(--cdhx-fond6,#fff)}
.cdhx-6 .cdhx-img{border-radius:10px;transform:rotate(1.2deg);box-shadow:0 30px 60px -20px rgba(0,0,0,.45)}
.cdhx-6{--cdhx-tlh:1.2}
.cdhx-6 .cdhx-ch{max-width:560px;color:var(--cdhx-gris,#5E5E5E)}
.cdhx-6 .cdhx-info time{color:var(--cdhx-gris,#5E5E5E)}
/* mode sombre (html.cdhh-nuit, posé par l'en-tête) : fond noir pour la Carte et le Duotone en couleurs normales, textes aux couleurs
   de la liste en sombre ; Duotone jaune / rubrique inchangés (leur fond est leur principe) */
html.cdhh-nuit .cdhx{--cdhx-fond6:#000;--cdhx-gris-clair:#000}
html.cdhh-nuit .cdhx:is(.cdhx-6,.r-normal){--cdhx-encre:whitesmoke;--cdhx-gris:lightgrey}
/* week-end : étiquette « La plus lue de la semaine » (maquette B validée le 25/11) : biseau du site (−14°) incliné de −4°, ombre nette ;
   jaune, noire sur le Duotone jaune ; au-dessus de l'image, hors du lien (pointer-events:none) */
.cdhx-we{position:absolute;z-index:7;margin:0;pointer-events:none;padding:.32em .8em .32em .62em;background:var(--cdhx-we-fond,#EBFC68);color:var(--cdhx-we-encre,#141414);
	font:700 var(--cdhx-we-fs,21px)/1 var(--dapolice-caenvoie);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;transform:rotate(-4deg) skewX(-14deg);
	box-shadow:var(--cdhx-we-o,4px) var(--cdhx-we-o,4px) 0 var(--cdhx-we-ombre,#141414)}
.cdhx-we > span{display:inline-block;transform:skewX(14deg)}
.cdhx-we em{font-style:normal;font-weight:100;margin-left:.4em}
.cdhx-5.r-jaune{--cdhx-we-fond:#141414;--cdhx-we-encre:#EBFC68;--cdhx-we-ombre:#fff}

/* bureau : 1 200 px, bord bas le long de la bande grise ; l'image déborde de --deb à droite (posé par le serveur) */
.cdhx:not(.mob){--cdhx-imgmax:84px;width:1200px;height:clamp(420px,50vh,540px);margin:0 0 calc(-1 * var(--cdhx-yg,26px));
	clip-path:polygon(0 0,calc(100% + var(--deb)) 0,calc(100% + var(--deb)) calc(100% - var(--cdhx-dr,29px) + var(--cdhx-ouv,0px)),0 calc(100% + var(--cdhx-ouv,0px)))}
.cdhx-6:not(.mob){--cdhx-ouv:60px}
.cdhx-5:not(.mob){--bb-bord:#141414}
.cdhx:not(.mob) .cdhx-img{position:absolute}
.cdhx:not(.mob) .cdhx-txt{position:absolute;left:48px;top:0;bottom:0}
.cdhx:not(.mob) .cdhx-info{gap:14px;font:700 13px/1 var(--dapolice-caenvoie)}
.cdhx:not(.mob) .cdhx-t{margin:18px 0 12px}
.cdhx:not(.mob) .cdhx-bb{width:44px;height:44px;font:700 19px/1 var(--dapolice-caenvoie)}
.cdhx-5:not(.mob) .cdhx-img{top:0;bottom:0;right:calc(-1 * var(--deb));width:calc(62% + var(--deb))}
.cdhx-5:not(.mob) .cdhx-txt{width:640px}
.cdhx-5:not(.mob) .cdhx-t{font:700 var(--cdhx-tfs,70px)/var(--cdhx-tlh) var(--dapolice-caenvoie)}
.cdhx-6:not(.mob) .cdhx-fond{clip-path:polygon(0 0,100% 0,100% calc(100% - var(--cdhx-drl,0px)),0 100%)}
.cdhx-6:not(.mob) .cdhx-img{top:var(--cdhx-it,0px);bottom:var(--cdhx-ib,7%);left:calc(5 / 11 * 100% + 30px);right:var(--cdhx-ir,calc(-1 * var(--deb)))}
.cdhx-5:not(.mob) .cdhx-we{right:44px;top:38px}
.cdhx-6:not(.mob) .cdhx-we{left:calc(5 / 11 * 100% + 10px);top:calc(var(--cdhx-it,0px) + 30px)}
.cdhx-6:not(.mob) .cdhx-txt{width:calc(5 / 11 * 100% - 40px)}
.cdhx-6:not(.mob) .cdhx-t{font:700 var(--cdhx-tfs,62px)/var(--cdhx-tlh) var(--dapolice-caenvoie)}
@media (hover:hover){.cdhx:not(.mob),.cdhx:not(.mob) *{cursor:none}}
.cdhx-curseur{position:fixed;left:0;top:0;z-index:9999;width:62px;height:62px;margin:-31px 0 0 -31px;pointer-events:none;will-change:transform;contain:strict}
.cdhx-curseur i{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:#141414;color:#fff;transform:scale(var(--z,.3));opacity:var(--o,0);
	transition:opacity .2s,transform .2s cubic-bezier(.2,.7,.2,1)}
.cdhx-curseur.on{--z:1;--o:1}
.cdhx-curseur svg{width:18px;height:18px;transform:rotate(-45deg)}
/* hero collé en haut de la fenêtre : pas de marge au-dessus de l'en-tête (cdh-header.css : padding-top:var(--cdhh-pt,15px)) ;
   pub du bandeau : démarre 12 px sous le bord de la bande au coin droit (lu par cdh-hero.js) */
.cdhh:has(> .cdhx){--cdhh-pt:0px;--cdhx-pubdesc:12px}
/* pas d'ascenseur horizontal dès la largeur du gabarit (le débord de 150 px reste coupé au bord de la fenêtre) */
@media (min-width:1200px){html{overflow-x:clip}}

/* téléphone : hero + pub + logo = premier écran (70 px = écart sous la pub 20 + bande du logo et du burger 50) ; image 65 %, texte 35 % ; biseau bas ; la pub remonte sous le biseau (même astuce que CDH-SEPARATEURS) */
.cdhx.mob{--pente:17px;--cdhx-imgmax:42px;--cdhx-chl:2;--cdhx-we-fs:14px;--cdhx-we-o:3px;width:100%;height:calc(100svh - 100vw * 250 / 970 - 70px);display:flex;flex-direction:column;
	clip-path:polygon(0 0,100% 0,100% calc(100% - var(--pente)),0 100%);padding-bottom:var(--pente)}
.cdhx.mob .cdhx-img{position:relative;flex-grow:0;flex-shrink:0}
.cdhx.mob .cdhx-txt{position:relative;flex:1 1 0;min-height:0;overflow:hidden}
.cdhx.mob .cdhx-info{gap:10px;font:700 11px/1 var(--dapolice-caenvoie)}
.cdhx.mob .cdhx-t{margin:12px 0 8px;font:700 var(--cdhx-tfs,32px)/var(--cdhx-tlh) var(--dapolice-caenvoie)}
.cdhx.mob .cdhx-bb{width:34px;height:34px;font:700 15px/1 var(--dapolice-caenvoie)}
.cdhx-5.mob .cdhx-img{flex-basis:65%}
.cdhx-5.mob .cdhx-txt{padding:16px 16px 0}
.cdhx-6.mob .cdhx-img{flex-basis:calc(65% - 14px);margin:14px 14px 0}
.cdhx-6.mob .cdhx-txt{padding:14px 16px 0}
.cdhx-5.mob .cdhx-we{left:12px;top:16px}
.cdhx-6.mob .cdhx-we{left:22px;top:28px}
body.mobile .cdhx.mob ~ .reclaaaame.lb{z-index:1}
body.mobile .cdhx.mob ~ .reclaaaame.lb::before{content:"";position:absolute;left:0;right:0;bottom:calc(100% - 1px);height:18px;background:var(--pub-img,none) var(--pub-x,0) 0/var(--pub-w,100%) var(--pub-h,100%) no-repeat var(--fond-nuit,#141414)}

/* parallaxe liée au défilement : pub du bandeau (bureau) jusqu'au biseau du bas, image 0,07 × le défilement (84 px au plus, 42 px au téléphone) */
@media (prefers-reduced-motion:no-preference){@supports (animation-timeline:scroll()){
	#cdhh .cdhh-pub-in{animation:cdhxPub linear both;animation-timeline:scroll(root);animation-range:0 var(--cdhx-pubr,640px)}
	.cdhx-img img{animation:cdhxImg linear both;animation-timeline:scroll(root);animation-range:0 calc(var(--cdhx-imgmax) / .07)}
}}
@keyframes cdhxPub{from{transform:translateY(0)}to{transform:translateY(var(--cdhx-pubmax,0px))}}
@keyframes cdhxImg{from{transform:translateY(0)}to{transform:translateY(var(--cdhx-imgmax,0px))}}
