/* CDH-HOME-RENDU v31 — accueil en rendu serveur (maquette « Home retenue »), 19/11/2026.
   Thème clair ici ; thème sombre : bloc CDH-HOME-RENDU de dark.css et dark-mobile.css (sélecteurs préfixés par body : ce fichier est chargé après). Téléphone : body.mobile.
   Polices : reprises du rendu actuel (titres, rubriques, chapôs, bulles). */

.cdhl{--cdhl-voile:255,255,255;--cdhl-titre:#50555A;--cdhl-titre-survol:#000;--cdhl-rub:var(--accentohcon,#E1294B);--cdhl-ch:#5E5E5E;--cdhl-ch-survol:#5E5E5E;--cdhl-survol:var(--accentohcon,#E1294B);
	display:flex;flex-direction:column;gap:14px;margin:0 0 25px;font-family:var(--dapolice-babar,'DM Sans',Roboto,Arial,sans-serif)}
.cdhl a{text-decoration:none}
.cdhl h2{margin:0;padding:0;text-transform:none;border:0;background:none}

/* tranches d'image : n tranches, recouvrement o, biseau p, tranche k décalée de y (% de la hauteur), g = marge de hauteur de l'image (%)
   (réglages dans kifekoi/home_rendu.php). Chaque tranche est une fenêtre sur la même image, de même taille et au même endroit :
   l'image reste cohérente quels que soient le zoom et la taille des tranches. */
.cdhl-tr{--s:calc(1 / (var(--n) - (var(--n) - 1) * var(--o)));position:relative;display:block;width:100%;height:100%;container-type:size}
.cdhl-tr i{position:absolute;top:calc(var(--y,0) * 1cqh);height:100cqh;width:calc(var(--s) * 100%);left:calc(var(--k) * var(--s) * (1 - var(--o)) * 100%);
	overflow:hidden;background:var(--c);clip-path:polygon(var(--p) 0,100% 0,calc(100% - var(--p)) 100%,0 100%);
	transition:top .6s cubic-bezier(.22,.61,.36,1),height .6s cubic-bezier(.22,.61,.36,1),clip-path .6s cubic-bezier(.22,.61,.36,1)}
.cdhl-tr img{position:absolute;left:calc(var(--k) * var(--s) * (var(--o) - 1) * 100cqw);top:calc(var(--g,0) / -2 * 1cqh);width:100cqw;height:calc((100 + var(--g,0)) * 1cqh);
	max-width:none;object-fit:cover;filter:grayscale(1) contrast(1.2);transform-origin:50% 50%;
	transition:filter 1.2s ease,scale 3s ease-in-out,rotate 3s ease-in-out,top .6s cubic-bezier(.22,.61,.36,1)}
.cdhl-tr i::after{content:"";position:absolute;inset:0;background:var(--c);mix-blend-mode:multiply;opacity:.9;transition:opacity .25s ease-in-out}
.cdhl-tr i.c img{filter:grayscale(0) contrast(1)}
.cdhl-tr i.c::after{opacity:0}
/* survol : couleurs d'origine, zoom lent et légère rotation (sens tiré au hasard : --r) ;
   actus : la tranche .g (tirée au hasard, indépendante de la tranche en couleur .c) grandit autant en haut qu'en bas (110 → 140 px), l'image ne bouge pas,
   son biseau s'élargit dans la même proportion pour garder l'angle des autres tranches. Zoom et rotation séparés (scale / rotate), 3 s ease-in-out chacun. */
:is(.cdhl-a,.cdhl-j):hover .cdhl-tr img{filter:grayscale(0) contrast(1);scale:1.08;rotate:var(--r,1.2deg)}
:is(.cdhl-a,.cdhl-j):hover .cdhl-tr i::after{opacity:0}
.cdhl-a:hover .cdhl-tr i.g{top:calc((var(--y,0) - var(--g,0) / 2) * 1cqh);height:calc((100 + var(--g,0)) * 1cqh);z-index:1;
	clip-path:polygon(calc(var(--p) * (100 + var(--g,0)) / 100) 0,100% 0,calc(100% - var(--p) * (100 + var(--g,0)) / 100) 100%,0 100%)}
.cdhl-a:hover .cdhl-tr i.g img{top:0}
@media (prefers-reduced-motion:reduce){:is(.cdhl-a,.cdhl-j):hover .cdhl-tr img{scale:none;rotate:none}}

/* bulle de ragots : au bord de l'image, centrée sur la hauteur du titre */
.cdhl .cdhl-b{position:absolute;top:50%;z-index:3;display:flex;align-items:center;justify-content:center;width:35px;height:35px;box-sizing:border-box;border:2px solid transparent;border-radius:50%;padding:0 0 2px;
	margin:0;transform:translateY(-50%);background:var(--c);color:#2e2e2e;font:400 15.36px/16px var(--dapolice-caenvoie,Antonio,Helvetica,Arial,sans-serif);letter-spacing:normal;text-align:center}
.cdhl .cdhl-fonce .cdhl-b{color:#fff}
.cdhl .cdhl-b-ferme{font:10px/10px 'segoe UI',sans-serif;text-transform:uppercase}
.cdhl .cdhl-b-ferme br{display:none}

/* textes */
.cdhl-x{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}
.cdhl .cdhl-pre{font:400 11px/1 var(--dapolice-babar,'DM Sans',sans-serif);letter-spacing:1px;text-transform:uppercase;color:var(--cdhl-rub);vertical-align:middle}
.cdhl-puce{vertical-align:middle}
.cdhl-ch{margin:6px 0 0;font:250 16px/17.6px var(--dapolice-babar-slimfast,'DM Sans','segoe UI',sans-serif);letter-spacing:-.2px;color:var(--cdhl-ch);hyphens:auto;-webkit-user-select:none;user-select:none}

/* actus */
.cdhl-a{display:flex;gap:30px;align-items:center;min-height:140px}
.cdhl-v{position:relative;display:block;flex:none}
.cdhl-a .cdhl-v{width:234px;height:110px}
.cdhl .cdhl-t .cdhl-b{left:-47.5px}
.cdhl .cdhl-t{position:relative;font:700 19.52px/21.472px var(--dapolice-caenvoie,Antonio,Helvetica,Arial,sans-serif);letter-spacing:-.5px;color:var(--cdhl-titre);text-wrap:balance}
.cdhl .cdhl-t > a{color:var(--cdhl-titre);vertical-align:middle}
.cdhl .cdhl-t .cdhl-cat{display:inline-block;position:relative;top:.22em;margin:0 0 0 5px;vertical-align:middle;white-space:nowrap;text-transform:uppercase;
	font:200 12.8px/1 var(--dapolice-babar-slimfast,'DM Sans','segoe UI',sans-serif);letter-spacing:-.2px;color:var(--cdhl-rub)}
.cdhl-breve{min-height:76px}
.cdhl-breve .cdhl-v{width:132px;height:62px}

/* à la une : lamelles (maquette Lam11) — bloc sombre biseauté (16 px), sombre aussi en thème clair ; par rangée : bulle 34 px + titre
   (17 / 20 px, 2 lignes), vignette d'actu (253 × 121) à taille réelle recadrée à 85 px, en 6 lamelles biseautées (8 px, 4 px d'écart,
   décalées 0 / −4 / +3 / −3 / +4 / −2 px), teinte de rubrique en dégradé (0,9 → 0), la dernière en couleur réelle */
.cdhl-unes{position:relative;display:flex;flex-direction:column;gap:8px;margin:0 -20px 0 -48px;padding:22px 0 28px 28px}
/* fond : rectangle incliné (skewY, même pente que le bandeau rouge, −1,31°) plutôt qu'un clip-path, pour pouvoir arrondir les coins ;
   dépasse de 30 px à gauche de la zone du site (bord du bloc blanc à 18 px de la liste), coins gauches arrondis comme la bande du header (4 px) */
.cdhl-unes::before{content:"";position:absolute;inset:9px 0;background:linear-gradient(#1b1b1b,#2b2b2b);border-radius:4px 0 0 4px;transform:skewY(-1.31deg)}
.cdhl .cdhl-u{--cdhl-titre:#F5F5F5;--cdhl-titre-survol:#fff;--cdhl-rub:#EBFC68;position:relative;display:flex;align-items:center;gap:26px;height:99px;padding:0 22px}
.cdhl-ux{flex:1;min-width:0;display:flex;align-items:center;gap:12px}
.cdhl .cdhl-u .cdhl-b{position:relative;top:auto;left:auto;right:auto;flex:none;width:34px;height:34px;transform:none}
.cdhl .cdhl-ut{margin:0;font:700 17px/20px var(--dapolice-caenvoie,Antonio,Helvetica,Arial,sans-serif);letter-spacing:-.5px;
	display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cdhl .cdhl-ut > a{color:var(--cdhl-titre)}
.cdhl-u .cdhl-v{width:281px;height:85px}
.cdhl-lam{position:relative;display:block;width:100%;height:100%;container-type:size}
.cdhl-lam i{position:absolute;top:calc(var(--y,0) * 1cqh);left:calc(var(--k) * 16.427cqw);width:17.865cqw;height:100cqh;overflow:hidden;background:var(--c);
	clip-path:polygon(15.94% 0,100% 0,84.06% 100%,0 100%)}
.cdhl-lam img{position:absolute;left:calc(var(--k) * -15.004cqw);top:-21.18cqh;width:90.036cqw;height:142.35cqh;max-width:none;object-fit:cover;
	filter:grayscale(1) contrast(1.2);transform-origin:50% 50%;transition:filter 1.2s ease,scale 3s ease-in-out,rotate 3s ease-in-out}
.cdhl-lam i.c img{filter:none}
.cdhl-lam i::after{content:"";position:absolute;inset:0;background:var(--c);mix-blend-mode:multiply;opacity:var(--t,0);transition:opacity .25s ease-in-out}
.cdhl-u:hover .cdhl-lam img{filter:none;scale:1.08;rotate:var(--r,1.2deg)}
.cdhl-u:hover .cdhl-lam i::after{opacity:0}
@media (prefers-reduced-motion:reduce){.cdhl-u:hover .cdhl-lam img{scale:none;rotate:none}}
/* bandeau rouge : à cheval sur l'arête du bas du bloc, à droite ; 22 px avant la 1re actu */
.cdhl-hr{position:relative;z-index:3;height:0;margin:-14px 0 8px;padding:0}
.cdhl-hr > span{position:absolute;right:10px;top:-29px;height:24px;padding:0 8px;background:var(--accentfouyouyou,#B3203C);color:#fff;
	font:400 11.2px/24px var(--dapolice-babar,'DM Sans',sans-serif);text-transform:uppercase;letter-spacing:.5px;white-space:nowrap;transform:rotate(-1.31deg);transform-origin:100% 50%}
.cdhl-hr-t{display:inline-block;white-space:nowrap}

/* articles : bande jaune, plus large que les actus (déborde jusqu'aux bords du bloc blanc, 10 px de chaque côté) */
.cdhl-j{display:flex;gap:26px;align-items:center;margin:15px -20px;padding:34px 40px;background:var(--accentohcon-yallah,#EBFC68);
	clip-path:polygon(0 0,100% 12px,100% 100%,0 calc(100% - 12px))}
.cdhl-j .cdhl-v{width:360px;height:144px}
.cdhl .cdhl-j .cdhl-b{right:-43.5px;background:#141414;color:var(--accentohcon-yallah,#EBFC68)}
.cdhl .cdhl-j .cdhl-pre{color:#141414;letter-spacing:2px}
.cdhl .cdhl-jt{position:relative;margin:4px 0 0;font:700 25px/27px var(--dapolice-caenvoie,Antonio,Helvetica,Arial,sans-serif);letter-spacing:-.5px}
.cdhl .cdhl-jt > a{vertical-align:middle}
.cdhl .cdhl-j a{color:#141414}
.cdhl .cdhl-j .cdhl-rub{font:400 12.8px/16px var(--dapolice-babar,'DM Sans',sans-serif);color:var(--accentohcon,#E1294B)}
.cdhl .cdhl-j .cdhl-ch{margin:8px 0 0;color:var(--cdhl-ch)}
.cdhl .cdhl-j .cdhl-jt > a{color:var(--cdhl-titre)}

/* pages : puces comme celles des derniers ragots (colonne de droite) ; changement de page sans rechargement */
.cdhl{scroll-margin-top:90px}
.cdhl.is-charge > :not(nav){opacity:.45;transition:opacity .2s}
.cdhl-pages{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 14px;margin:28px 0 25px;font:300 14px/1.2 var(--dapolice-babar,'DM Sans',sans-serif);color:var(--cdhl-ch)}
/* pagination en face des boutons, le tout centré et aligné au milieu : la phrase passe au-dessus des puces (sinon la ligne ne tient pas dans la colonne) */
.cdhl-pages-p{display:flex;flex-direction:column;align-items:center;gap:2px}
.cdhl-pages-t{font-style:italic;color:gray;font-size:.9em;line-height:1.2}
.cdhl-pages-n{display:flex;gap:2px}
.cdhl-pages-n a,.cdhl-pages-n span{display:block;width:30px;height:30px;border-radius:50%;text-align:center;font:300 19.2px/30px var(--dapolice-babar,'DM Sans',Roboto,Arial,sans-serif);transition:color .1s ease-out,background .15s ease-in}
.cdhl .cdhl-pages-n a{color:#000}
.cdhl .cdhl-pages-n a:hover{background:#F4F78B;color:#000}
.cdhl-pages-n span{background:#000;color:#fff}
/* boutons : classes du site (bouton_de_comptoir = « ragoter », + multi = « signaler un truc » sur deux lignes) ; ici en ligne, sans largeur maxi */
.cdhl-pages-b{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px}
.cdhl .cdhl-bt{display:inline-block;max-width:none;margin:0;text-align:center;text-decoration:none}
.cdhl a.cdhl-bt,.cdhl a.cdhl-bt:hover{color:#fff}
/* la règle du site a:link, a:visited{transition:color .2s, background .4s} (plus forte) écrasait la transition du bouton : le padding sautait au survol au lieu de glisser */
.cdhl a.cdhl-bt{transition:.4s cubic-bezier(.645,.045,.355,1)}

/* téléphone (et tablettes, qui reçoivent le gabarit téléphone) : pas de chapô ; mesures et polices reprises de la liste actuelle
   (vignette 50 % collée au bord gauche, bulle de 39 px à cheval sur son bord, titre à 24 px de l'image et 11 px de la bulle, 35 px entre deux actus) */
/* titres : noir au survol de la carte (blanc en thème sombre, bloc de dark.css) */
.cdhl :is(.cdhl-a,.cdhl-j,.cdhl-u):hover :is(.cdhl-t,.cdhl-jt,.cdhl-ut) > a:not(.cdhl-cat){color:var(--cdhl-titre-survol)}
.cdhl .cdhl-t .cdhl-cat:hover{color:var(--cdhl-rub)}
.cdhl .cdhl-a:hover .cdhl-ch{color:var(--cdhl-ch-survol)}
.cdhl :is(.cdhl-t,.cdhl-jt,.cdhl-ut) > a:not(.cdhl-cat),.cdhl .cdhl-ch{transition:color .15s ease-in-out}
body.mobile .cdhl{gap:35px;padding:20px 12px 0 0}
/* téléphone : biseau en haut de la liste, toujours, même pente que le bas de la bande sous le billboard (.reclaaaame::after :
   20 px de haut, 100 % → 13,73 %) ; clair : bord haut du fond blanc de la liste, en biais sur l'en-tête ; sombre (dark-mobile.css) :
   bas de la bande blanche de 20 px, en biais sur le fond #191919 ; collées → les rubans partent sous la bande ; sans collées → 55 px
   au-dessus de la 1re actu (même haut que l'ancienne liste) */
body.mobile .cdhl{position:relative}
body.mobile .cdhl::before{content:"";position:absolute;top:-19px;left:0;right:0;height:20px;background:#fff;clip-path:polygon(0 100%,100% 13.73%,100% 100%);pointer-events:none}
body.mobile .cdhl:not(:has(> .cdhl-unes)){padding-top:55px}
body.mobile .cdhl-ch{display:none}
body.mobile .cdhl-a{padding:5px 0;display:grid;grid-template-columns:50% 1fr;gap:24px;align-items:center;min-height:0}
body.mobile .cdhl-a .cdhl-v{width:100%;height:auto;aspect-ratio:188/90}
body.mobile .cdhl .cdhl-a .cdhl-t{font:400 17.6px/19.2px var(--dapolice-caenvoie,Antonio,Helvetica,Arial,sans-serif);letter-spacing:-.5px}
body.mobile .cdhl .cdhl-t .cdhl-cat{top:0;margin-left:4px;font:400 12.32px/1 var(--dapolice-caenvoie,Antonio,Helvetica,Arial,sans-serif);letter-spacing:normal}
body.mobile .cdhl .cdhl-b{width:39px;height:39px}
body.mobile .cdhl .cdhl-t .cdhl-b{left:-50px}
body.mobile .cdhl .cdhl-j .cdhl-b{position:static;display:inline-flex;vertical-align:middle;margin-right:8px;transform:none}
/* téléphone, à la une (pas de maquette : adaptation) : lamelles sur 44 % de la largeur, titre sur 3 lignes */
body.mobile .cdhl-unes{margin:0 -12px 0 0;padding:20px 0 26px;gap:10px}
body.mobile .cdhl-unes::before{inset:4px 0;border-radius:0}
body.mobile .cdhl .cdhl-u{height:auto;min-height:72px;gap:14px;padding:0 12px 0 14px}
body.mobile .cdhl-ux{gap:10px}
body.mobile .cdhl .cdhl-u .cdhl-b{width:30px;height:30px}
body.mobile .cdhl .cdhl-ut{font-size:15.5px;line-height:20px;-webkit-line-clamp:3}
body.mobile .cdhl-u .cdhl-v{width:44%;height:auto;aspect-ratio:281/85}
/* téléphone : bandeau rouge centré sur le biseau du bas du bloc (milieu du bloc : 4 px au-dessus de son bas), 75 % de sa largeur comme l'ancien,
   texte centré, ou qui défile s'il est trop long (script cdhlTire d'accueil_rendu.php) */
body.mobile .cdhl-hr{margin:-35px 0 -10px}
body.mobile .cdhl-hr > span{left:calc((100% + 12px) * .125);right:calc((100% + 12px) * .125 - 12px);top:-16px;overflow:hidden;text-align:center;transform-origin:50% 50%}
body.mobile .cdhl-j{flex-direction:column-reverse;align-items:stretch;gap:22px;margin:0 -12px 0 0;padding:34px 18px 32px}
body.mobile .cdhl-j .cdhl-v{width:100%;height:auto;aspect-ratio:360/144}
body.mobile .cdhl .cdhl-jt{font-size:22px;line-height:24px}
body.mobile .cdhl-pages{justify-content:center;margin:10px 0 25px}
body.mobile .cdhl-pages-b{justify-content:center}
