/*
 * Road book d'une sortie — mise en page inspirée des road books papier :
 * couverture photo plein écran, programme en frise horaire, photos des lieux, consignes.
 * Couleurs du site Acionna (noir / orange). Version imprimable (PDF) en bas du fichier.
 */
.road-book {
	--rb-accent: var(--accent, #ff6a13);
	--rb-fond: var(--bg, #0c0c0d);
	--rb-carte: var(--card, #161311);
	--rb-texte: var(--ink, #f2ece1);
	--rb-doux: var(--ink-dim, #b9b2a6);
	--rb-ligne: var(--line, #332c24);
	color: var(--rb-texte);
}
.rb-conteneur { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Couverture */
.rb-couverture {
	position: relative;
	min-height: 88vh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #111 center / cover no-repeat;
	isolation: isolate;
}
.rb-couverture::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.85) 100%);
}
.rb-bandeau {
	display: flex; align-items: center; gap: 18px;
	padding: 22px max(20px, calc(50% - 470px));
	background: rgba(0,0,0,.72);
	color: #fff;
}
.rb-bandeau img { width: 70px; height: 70px; object-fit: contain; border-radius: 12px; background: #000; }
.rb-bandeau strong { display: block; letter-spacing: .06em; font-size: 1rem; }
.rb-bandeau span { display: block; color: var(--rb-accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-top: 4px; }
.rb-titre-couverture { padding: 0 max(20px, calc(50% - 470px)); color: #fff; }
.rb-surtitre { font-family: Oswald, sans-serif; font-weight: 700; font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 1; letter-spacing: .02em; text-shadow: 0 3px 18px rgba(0,0,0,.5); }
.rb-titre-couverture h1 { font-family: Georgia, "Times New Roman", serif; color: var(--rb-accent); text-transform: uppercase; font-size: clamp(2rem, 6vw, 3.4rem); margin: .1em 0 .2em; text-shadow: 0 3px 18px rgba(0,0,0,.6); }
.rb-dates { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; color: #fff; }
.rb-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.rb-tag { background: rgba(0,0,0,.65); border: 1px solid var(--rb-accent); color: #fff; padding: .35em .9em; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rb-tag--type { background: var(--rb-accent); color: #100b06; }
.rb-fil {
	margin: 34px max(20px, calc(50% - 470px)) 34px;
	background: rgba(0,0,0,.72);
	border-radius: 14px;
	padding: 20px 24px;
	color: #fff;
	backdrop-filter: blur(2px);
}
.rb-fil h2 { color: var(--rb-accent); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .6em; }
.rb-fil p { color: #f3efe8; margin: 0 0 .8em; }
.rb-slogan { text-align: right; color: var(--rb-accent) !important; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-size: .8rem; margin: 0 !important; }
.rb-credit { display: block; font-size: .7rem; color: var(--rb-doux); margin-top: 4px; }
.rb-credit a { color: inherit; }
.rb-credit--couverture { position: absolute; right: 12px; bottom: 6px; color: rgba(255,255,255,.7); }

/* Infos pratiques */
.rb-infos { background: var(--rb-carte); border-bottom: 1px solid var(--rb-ligne); padding: 22px 0; }
.rb-infos .rb-conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.rb-infos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.rb-infos li strong { color: var(--rb-accent); text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; display: block; }
.rb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rb-reserve { padding: 40px 20px; text-align: center; color: var(--rb-doux); }

/* Jours */
.rb-jour, .rb-consignes { padding: 56px 0 30px; border-bottom: 1px solid var(--rb-ligne); }
.rb-kicker { color: var(--rb-accent); text-transform: uppercase; font-weight: 700; letter-spacing: .06em; font-size: .85rem; margin: 0; }
.rb-jour h2, .rb-consignes h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: .1em 0 .1em; color: var(--rb-texte); }
.rb-sous-titre { color: var(--rb-doux); margin: 0; }
.rb-trait { border: 0; height: 3px; background: var(--rb-accent); margin: 14px 0 28px; opacity: .9; }

/* Frise horaire */
.rb-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.rb-timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 3px; background: var(--rb-ligne); border-radius: 2px; }
.rb-timeline li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 0 0 26px 12px; }
.rb-timeline li::before { content: ""; position: absolute; left: -23px; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: var(--rb-accent); box-shadow: 0 0 0 4px var(--rb-fond); }
.rb-heure { align-self: start; background: #000; color: #fff; border: 1px solid var(--rb-accent); border-radius: 8px; padding: .35em .5em; text-align: center; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.rb-etape h3 { margin: 0 0 .35em; font-size: 1.15rem; color: var(--rb-texte); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rb-badge { background: var(--rb-accent); color: #100b06; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; }
.rb-etape p { margin: 0 0 .3em; color: var(--rb-doux); line-height: 1.55; }
.rb-adresse { font-size: .8rem; opacity: .85; }
.rb-adresse::before { content: "📍 "; }

/* Photos */
.rb-galerie { display: grid; gap: 16px; margin-top: 10px; }
.rb-galerie--2 { grid-template-columns: repeat(2, 1fr); }
.rb-galerie--3 { grid-template-columns: repeat(3, 1fr); }
.rb-photo { margin: 0; position: relative; }
.rb-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; display: block; }
.rb-galerie--1 .rb-photo img { aspect-ratio: 21 / 9; }
.rb-photo figcaption { position: absolute; left: 0; right: 0; bottom: 22px; padding: 10px 16px; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); color: #fff; font-weight: 700; letter-spacing: .05em; font-size: .8rem; border-radius: 0 0 14px 14px; }

/* Consignes */
.rb-cartes-consignes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rb-consigne { background: var(--rb-carte); border: 1px solid var(--rb-ligne); border-radius: 14px; padding: 18px 20px; }
.rb-consigne h3 { margin: 0 0 .5em; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 10px; color: var(--rb-texte); }
.rb-consigne h3 span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rb-accent); color: #100b06; font-size: .8rem; }
.rb-consigne p { margin: 0; color: var(--rb-doux); }
.rb-regle-or { margin-top: 24px; background: #000; border: 2px solid var(--rb-accent); border-radius: 14px; padding: 20px 24px; }
.rb-regle-or h3 { color: var(--rb-accent); margin: 0 0 .4em; text-transform: uppercase; letter-spacing: .06em; }
.rb-regle-or p { color: #fff; font-weight: 700; margin: 0; }
.rb-pied { text-align: center; font-size: .75rem; letter-spacing: .08em; color: var(--rb-doux); padding: 22px 0; }

@media (max-width: 720px) {
	.rb-couverture { min-height: 92vh; }
	.rb-timeline li { grid-template-columns: 1fr; gap: 8px; }
	.rb-heure { justify-self: start; }
	.rb-galerie--2, .rb-galerie--3, .rb-cartes-consignes { grid-template-columns: 1fr; }
	.rb-bandeau img { width: 52px; height: 52px; }
}

/* ------------------------------------------------------------------
 * Version PDF : Imprimer > Enregistrer au format PDF (A4)
 * ---------------------------------------------------------------- */
@media print {
	@page { size: A4; margin: 0; }
	* { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
	body { background: #fff !important; }
	header, footer, #mobilemenu, #wpadminbar, .rb-ecran, .nav-ctas, .burger { display: none !important; }
	main { padding: 0 !important; margin: 0 !important; }
	.road-book { --rb-texte: #1b1b1b; --rb-doux: #4a4a4a; --rb-carte: #faf6ef; --rb-ligne: #e2d8c6; --rb-fond: #fff; color: #1b1b1b; }
	.rb-page { break-after: page; page-break-after: always; min-height: 297mm; box-sizing: border-box; }
	.rb-couverture { min-height: 297mm; }
	.rb-jour, .rb-consignes { background: #fbf8f2; padding: 16mm 0 10mm; border: 0; }
	.rb-conteneur { max-width: none; padding: 0 16mm; }
	.rb-timeline li { break-inside: avoid; grid-template-columns: 26mm 1fr; }
	.rb-galerie, .rb-photo, .rb-consigne, .rb-regle-or { break-inside: avoid; }
	.rb-heure { background: #111; color: #fff; }
	.rb-regle-or { background: #111; }
	.rb-pied { display: block; }
	a[href]::after { content: none !important; }
}

/* ------------------------------------------------------------------
 * Affichage écran façon PDF : chaque page est une feuille A4 centrée
 * (la couverture garde ses proportions et n'est plus écrasée).
 * ---------------------------------------------------------------- */
@media screen {
	.road-book { background: #2a2622; padding: 28px 12px 40px; }
	.road-book .rb-page {
		width: min(210mm, 100%);
		margin: 0 auto 28px;
		box-shadow: 0 18px 40px -12px rgba(0,0,0,.7);
		border-radius: 4px;
		overflow: hidden;
		box-sizing: border-box;
	}
	.road-book .rb-couverture { min-height: 0; aspect-ratio: 210 / 297; }
	.road-book .rb-jour, .road-book .rb-consignes, .road-book .rb-fiche {
		--rb-texte: #1b1b1b; --rb-doux: #4a4a4a; --rb-carte: #faf6ef; --rb-ligne: #e2d8c6; --rb-fond: #fbf8f2;
		background: #fbf8f2; color: #1b1b1b; min-height: calc(min(210mm, 100vw - 24px) * 297 / 210);
		padding: 48px 0 30px; border: 0;
	}
	.road-book .rb-page .rb-conteneur { max-width: none; padding: 0 clamp(18px, 6%, 48px); }
	.road-book .rb-bandeau, .road-book .rb-titre-couverture { padding-left: clamp(18px, 6%, 48px); padding-right: clamp(18px, 6%, 48px); }
	.road-book .rb-fil { margin-left: clamp(18px, 6%, 48px); margin-right: clamp(18px, 6%, 48px); }
	.road-book .rb-surtitre { font-size: clamp(2rem, 9vw, 4rem); }
	.road-book .rb-titre-couverture h1 { font-size: clamp(1.6rem, 6.5vw, 3rem); }
	.road-book .rb-infos { width: min(210mm, 100%); margin: 0 auto 28px; border-radius: 6px; box-sizing: border-box; }
	.road-book .rb-infos .rb-conteneur { padding: 0 20px; }
	.road-book .rb-pied { color: #b9b2a6; }
	.road-book .rb-heure { background: #111; }
}

/* Fiche express */
.rb-bloc-sombre { background: #111; border: 2px solid var(--rb-accent); border-radius: 12px; padding: 14px 20px; color: #fff; margin-bottom: 22px; }
.rb-bloc-sombre h3 { color: var(--rb-accent); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .4em; }
.rb-bloc-sombre p { margin: 0; color: #f3efe8; }
.rb-fiche-jours { display: grid; gap: 22px; margin-bottom: 24px; }
.rb-fiche-jours--2 { grid-template-columns: repeat(2, 1fr); }
.rb-fiche-jours--3 { grid-template-columns: repeat(3, 1fr); }
.rb-fiche-jours h3 { font-size: .95rem; letter-spacing: .05em; margin: 0 0 .5em; color: var(--rb-texte); }
.rb-fiche-jours ul { list-style: none; margin: 0; padding: 0; }
.rb-fiche-jours li { padding: .15em 0; font-size: .92rem; color: var(--rb-texte); }
.rb-adresses { background: var(--rb-carte); border: 1px solid var(--rb-ligne); border-radius: 12px; padding: 16px 20px; margin-bottom: 22px; }
.rb-adresses h3 { margin: 0 0 .6em; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rb-texte); }
.rb-adresses table { width: 100%; border-collapse: collapse; }
.rb-adresses th { text-align: left; font-size: .82rem; padding: .45em .8em .45em 0; white-space: nowrap; vertical-align: top; color: var(--rb-texte); }
.rb-adresses td { font-size: .82rem; padding: .45em 0; color: var(--rb-doux); }
.rb-avant-partir .rb-slogan { margin-top: .5em !important; }
@media (max-width: 720px) { .rb-fiche-jours--2, .rb-fiche-jours--3 { grid-template-columns: 1fr; } .rb-adresses th { white-space: normal; } }
@media print { .rb-fiche { background: #fbf8f2; padding: 16mm 0 10mm; } }
@media screen {
	/* La couverture garde le format A4 mais s'agrandit si le texte ne tient pas (petits écrans). */
	.road-book .rb-page.rb-couverture { overflow: visible; }
}

.rb-tag--terminee { background: #2b2b2b; border-color: #8a8a8a; color: #f2ece1; }
