/* Pages dediees des chapitres (7/11/2026) : en haut le texte et une photo carree,
   puis les videos, puis toutes les photos. */

.coq-chp-hero{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:28px clamp(28px,4vw,56px);align-items:start;padding:36px clamp(20px,4vw,64px) 40px;background:#fff4ef}
.coq-chp-hero__texte{display:flex;flex-direction:column;gap:12px;min-width:0;max-width:860px}
.coq-chp-hero__retour{align-self:flex-start;font-family:'Work Sans',sans-serif;font-weight:600;font-size:14px;color:#4b4246;margin-bottom:4px}
.coq-chp-hero__retour:hover{color:#d42228}
.coq-chp-hero__surtitre{font-family:'Work Sans',sans-serif;font-weight:600;font-size:14px;line-height:1.3;letter-spacing:2.4px;text-transform:uppercase;color:#4b4246;margin-bottom:8px}
.coq-chp-hero__geant{letter-spacing:-.045em;color:#2a2326;white-space:nowrap}
.coq-chp-hero__script{font-family:'Damion',cursive;font-weight:400;font-size:clamp(32px,3.4vw,50px);transform:rotate(-4deg);transform-origin:left;margin:4px 0 0 10%}
.coq-chp-hero__lede{margin:6px 0 0;font-style:italic;font-size:clamp(20px,1.6vw,24px);line-height:1.3;text-wrap:pretty;max-width:760px}
.coq-chp-hero__para{margin:0;font-size:18px;line-height:1.5;color:#4b4246;text-wrap:pretty;max-width:760px}
.coq-chp-hero__actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px;margin-top:6px}
.coq-chp-hero__devis{background:#e3262b;color:#fff;font-family:'Damion',cursive;font-size:24px;line-height:1;padding:12px 26px 10px;border-radius:999px;transition:transform .3s cubic-bezier(.3,1.6,.5,1),background .2s}
.coq-chp-hero__devis:hover{background:#c81c22;color:#fff;transform:rotate(-3deg) scale(1.05)}
.coq-chp-hero__voir{font-family:'Work Sans',sans-serif;font-weight:600;font-size:15px;color:#2a2326;border-bottom:2px solid currentColor;padding-bottom:2px}
.coq-chp-hero__voir:hover{color:#d42228}

/* La photo carree, en polaroid legerement penche. */
.coq-chp-hero__photo{justify-self:stretch;align-self:center;margin:12px 0 0;position:relative;width:100%;max-width:none;background:#fff;padding:10px 10px 44px;box-shadow:0 22px 50px rgba(42,35,38,.2);transform:rotate(2deg)}
.coq-chp-hero__photo figcaption{position:absolute;left:14px;right:14px;bottom:10px;font-family:'Damion',cursive;font-size:22px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Les videos : clips verticaux en polaroids. */
.coq-chp-clips{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:28px 22px}
.coq-chp-clip{margin:0;position:relative;background:#fff;padding:8px 8px 40px;box-shadow:0 12px 28px rgba(42,35,38,.16);transform:rotate(var(--coq-rot,0deg));transition:transform .4s cubic-bezier(.3,1.6,.5,1)}
.coq-chp-clip:hover{transform:rotate(0deg) scale(1.02)}
.coq-chp-clip video{display:block;width:100%;aspect-ratio:9/16;object-fit:cover;background:#2a2326;cursor:pointer}
.coq-chp-clip figcaption{position:absolute;left:12px;right:12px;bottom:8px;font-family:'Damion',cursive;font-size:20px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.coq-chp-clip__voir{all:unset;position:absolute;inset:8px 8px 40px;cursor:pointer;display:grid;place-items:center;-webkit-tap-highlight-color:transparent}
.coq-chp-clip__play{width:64px;height:64px;border-radius:50%;background:rgba(227,38,43,.92);display:grid;place-items:center;padding-left:4px;box-sizing:border-box;box-shadow:0 8px 24px rgba(0,0,0,.3);transition:transform .35s cubic-bezier(.3,1.6,.5,1)}
.coq-chp-clip__voir:hover .coq-chp-clip__play,.coq-chp-clip__voir:focus-visible .coq-chp-clip__play{transform:scale(1.12) rotate(-6deg)}
.coq-chp-clip__voir:focus-visible{outline:3px solid #e3262b;outline-offset:2px}

/* La fenetre de lecture : la video en grand, avec le son et les commandes. */
.coq-chp-lecteur{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:rgba(26,20,23,.92)}
.coq-chp-lecteur[hidden]{display:none}
.coq-chp-lecteur__cadre{position:relative;margin:0;background:#fff;padding:10px 10px 46px;box-shadow:0 24px 60px rgba(0,0,0,.45);max-width:min(92vw,560px)}
.coq-chp-lecteur__cadre video{display:block;max-width:100%;max-height:calc(100svh - 140px);width:auto;height:auto;background:#000}
.coq-chp-lecteur__titre{position:absolute;left:14px;right:60px;bottom:10px;font-family:'Damion',cursive;font-size:24px;line-height:1.1;color:#2a2326;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.coq-chp-lecteur__fermer{all:unset;box-sizing:border-box;position:absolute;top:-18px;right:-18px;width:44px;height:44px;border-radius:50%;background:#e3262b;color:#fff;display:grid;place-items:center;font-family:'Work Sans',sans-serif;font-weight:700;font-size:22px;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.coq-chp-lecteur__fermer:focus-visible{outline:3px solid #fff;outline-offset:2px}
.coq-chp-lecteur__nav{all:unset;box-sizing:border-box;position:absolute;top:50%;width:48px;height:48px;margin-top:-24px;border-radius:50%;background:#fff;color:#2a2326;display:grid;place-items:center;font-family:'Work Sans',sans-serif;font-weight:700;font-size:22px;cursor:pointer}
.coq-chp-lecteur__nav--prec{left:clamp(8px,3vw,40px)}
.coq-chp-lecteur__nav--suiv{right:clamp(8px,3vw,40px)}
.coq-chp-lecteur__nav[hidden]{display:none}
html.coq-chp-lecteur-ouvert{overflow:hidden}

/* Toutes les photos : mosaique sur toute la largeur, 4 colonnes au plus (le nombre de
   colonnes est donne par la page : jamais plus que de photos). Chaque photo garde son format. */
.coq-chp-mur{column-count:var(--cols,4);column-gap:12px}
.coq-chp-mur__photo{margin:0 0 12px;break-inside:avoid;position:relative;overflow:hidden;border-radius:4px;background:#ddd6d2;cursor:zoom-in}
@media (max-width:1100px){.coq-chp-mur{column-count:min(var(--cols,4),3)}}

/* Telephone : la photo carree passe au-dessus du texte. */
@media (max-width:819px){
	.coq-chp-hero{grid-template-columns:minmax(0,1fr);padding:16px 20px 32px;gap:22px}
	.coq-chp-hero__photo{order:-1;justify-self:center;margin:0;max-width:340px;padding:8px 8px 40px;transform:rotate(1.5deg)}
	.coq-chp-hero__photo figcaption{font-size:20px;bottom:8px}
	.coq-chp-clips{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
	.coq-chp-mur{column-count:min(var(--cols,4),2);column-gap:8px}
	.coq-chp-mur__photo{margin-bottom:8px}
	.coq-chp-clip{padding:6px 6px 32px}
	.coq-chp-clip figcaption{font-size:16px;bottom:6px}
	.coq-chp-clip__voir{inset:6px 6px 32px}
	.coq-chp-clip__play{width:52px;height:52px}
	.coq-chp-lecteur{padding:12px}
	.coq-chp-lecteur__fermer{top:-14px;right:-6px}
	.coq-chp-lecteur__nav{top:auto;bottom:18px;margin-top:0}
}

@media (prefers-reduced-motion:reduce){
	.coq-chp-clip,.coq-chp-hero__devis,.coq-chp-clip__play{transition:none}
}
