/*
Theme Name:   GeneratePress Child – Allo Excursion Marrakech
Theme URI:    https://allo-excursion-marrakech.com
Description:  Thème enfant GeneratePress pour allo-excursion-marrakech.com
Author:       Allo Excursion Marrakech
Template:     generatepress
Version:      1.0.0
Text Domain:  generatepress-child
*/

/* ==========================================================================
   Fiche excursion (single-excursion.php) – CSS pur, sans JS
   ========================================================================== */

:root {
	--allo-ink: #1f1a17;
	--allo-muted: #6b625b;
	--allo-sand: #f7f1e8;
	--allo-line: #e7ddd0;
	--allo-accent: #b4532a;
	--allo-yes: #1f7a3f;
	--allo-yes-bg: #ecf7f0;
	--allo-no: #b42318;
	--allo-no-bg: #fdf0ef;
	--allo-wa: #1f9d55;
	--allo-wa-dark: #177a42;
	--allo-radius: 12px;
}

.allo-excursion {
	color: var(--allo-ink);
}

.allo-excursion .allo-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

/* Héro */
.allo-hero {
	padding: 24px 0 8px;
}

.allo-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--allo-muted);
}

.allo-breadcrumb li + li::before {
	content: "›";
	margin-right: 4px;
}

.allo-breadcrumb a {
	color: inherit;
}

.allo-title {
	margin: 0 0 16px;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.15;
}

.allo-badges {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 10px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.allo-badges li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: var(--allo-sand);
	border: 1px solid var(--allo-line);
	border-radius: var(--allo-radius);
	font-size: 15px;
	line-height: 1.3;
}

.allo-badges .allo-icon {
	color: var(--allo-accent);
}

.allo-hero-media {
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--allo-radius);
	background: var(--allo-sand);
}

.allo-hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Mise en page */
.allo-layout {
	display: grid;
	gap: 32px;
	padding: 24px 0 96px;
}

@media (min-width: 960px) {
	.allo-layout {
		grid-template-columns: minmax(0, 1fr) 340px;
		align-items: start;
	}

	.allo-aside {
		position: sticky;
		top: 24px;
	}
}

.allo-section {
	margin-bottom: 40px;
}

.allo-section h2 {
	margin: 0 0 16px;
	font-size: 24px;
}

.allo-lead {
	font-size: 19px;
	line-height: 1.6;
}

.allo-note {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--allo-muted);
}

/* Programme */
.allo-timeline {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 2px solid var(--allo-line);
}

.allo-timeline li {
	position: relative;
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 12px;
	padding: 0 0 20px 20px;
}

.allo-timeline li::before {
	content: "";
	position: absolute;
	top: 6px;
	left: -7px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--allo-accent);
	box-shadow: 0 0 0 3px #fff;
}

.allo-timeline-time {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--allo-accent);
}

.allo-timeline h3 {
	margin: 0 0 4px;
	font-size: 17px;
}

.allo-timeline p {
	margin: 0;
	color: var(--allo-muted);
}

/* Inclus / non inclus */
.allo-included {
	display: grid;
	gap: 16px;
}

@media (min-width: 640px) {
	.allo-included {
		grid-template-columns: 1fr 1fr;
	}
}

.allo-included-col {
	padding: 18px 20px;
	border-radius: var(--allo-radius);
}

.allo-included-col.is-yes {
	background: var(--allo-yes-bg);
}

.allo-included-col.is-no {
	background: var(--allo-no-bg);
}

.allo-included-col h3 {
	margin: 0 0 10px;
	font-size: 17px;
}

.allo-included-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.allo-included-col li {
	display: flex;
	gap: 10px;
	padding: 5px 0;
	line-height: 1.4;
}

.allo-included-col.is-yes .allo-icon {
	color: var(--allo-yes);
}

.allo-included-col.is-no .allo-icon {
	color: var(--allo-no);
}

/* Maillage */
.allo-related {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.allo-related-card {
	display: grid;
	gap: 4px;
	padding: 18px 20px;
	border: 1px solid var(--allo-line);
	border-radius: var(--allo-radius);
	color: var(--allo-ink);
	text-decoration: none;
	transition: border-color 0.2s;
}

.allo-related-card:hover,
.allo-related-card:focus-visible {
	border-color: var(--allo-accent);
}

.allo-related-card .allo-icon {
	color: var(--allo-accent);
}

.allo-related-label {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--allo-muted);
}

.allo-related-title {
	font-size: 18px;
	font-weight: 700;
}

.allo-related-text {
	font-size: 15px;
	color: var(--allo-muted);
}

/* FAQ */
.allo-faq details {
	border-bottom: 1px solid var(--allo-line);
}

.allo-faq summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.allo-faq summary::-webkit-details-marker {
	display: none;
}

.allo-faq summary::after {
	content: "+";
	font-size: 22px;
	line-height: 1;
	color: var(--allo-accent);
}

.allo-faq details[open] summary::after {
	content: "−";
}

.allo-faq details p {
	margin: 0 0 16px;
	color: var(--allo-muted);
}

/* Tarifs et réservation */
.allo-booking {
	padding: 22px;
	border: 1px solid var(--allo-line);
	border-radius: var(--allo-radius);
	background: #fff;
	box-shadow: 0 8px 24px rgba(31, 26, 23, 0.06);
}

.allo-booking h2 {
	margin: 0 0 12px;
	font-size: 22px;
}

.allo-prices {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 15px;
}

.allo-prices th,
.allo-prices td {
	padding: 10px 6px;
	border: 0;
	border-bottom: 1px solid var(--allo-line);
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.allo-prices th:first-child {
	text-align: left;
}

.allo-prices thead th {
	font-size: 13px;
	color: var(--allo-muted);
	font-weight: 600;
}

.allo-prices tbody th small {
	display: block;
	font-weight: 400;
	font-size: 13px;
	color: var(--allo-muted);
}

.allo-prices td {
	font-weight: 700;
}

.allo-btn-whatsapp,
.allo-whatsapp-float {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--allo-wa);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s;
}

.allo-btn-whatsapp:hover,
.allo-btn-whatsapp:focus-visible,
.allo-whatsapp-float:hover,
.allo-whatsapp-float:focus-visible {
	background: var(--allo-wa-dark);
	color: #fff;
}

.allo-btn-whatsapp {
	margin: 18px 0 12px;
	padding: 14px 18px;
	border-radius: 999px;
	font-size: 17px;
}

.allo-instant {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--allo-yes);
}

.allo-phone {
	margin: 0;
	font-size: 14px;
	text-align: center;
	color: var(--allo-muted);
}

.allo-phone a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: var(--allo-ink);
}

.allo-phone .allo-icon {
	width: 16px;
	height: 16px;
}

/* Bouton WhatsApp flottant (position fixe : aucun impact sur le CLS) */
.allo-whatsapp-float {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 100;
	padding: 12px 18px;
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 959px) {
	.allo-whatsapp-float {
		left: 16px;
	}
}

/* ==========================================================================
   Hubs destination / activité (template-parts/hub.php)
   ========================================================================== */

.allo-hub .allo-lead {
	max-width: 760px;
	margin: 0 0 20px;
}

.allo-hub-body {
	padding: 24px 0 64px;
}

/* Grille de cartes d'excursions */
.allo-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.allo-card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--allo-line);
	border-radius: var(--allo-radius);
	background: #fff;
	color: var(--allo-ink);
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.allo-card a:hover,
.allo-card a:focus-visible {
	border-color: var(--allo-accent);
	box-shadow: 0 8px 24px rgba(31, 26, 23, 0.08);
}

.allo-card-media {
	aspect-ratio: 4 / 3;
	background: var(--allo-sand);
}

.allo-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.allo-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px 18px;
}

.allo-card-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}

.allo-card-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 14px;
	color: var(--allo-muted);
}

.allo-card-meta .allo-icon {
	width: 16px;
	height: 16px;
	color: var(--allo-accent);
}

.allo-card-price {
	margin: auto 0 0;
	padding-top: 8px;
	font-size: 14px;
	color: var(--allo-muted);
}

.allo-card-price strong {
	font-size: 17px;
	color: var(--allo-accent);
}

/* Silo : liens vers les hubs liés */
.allo-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.allo-chips a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid var(--allo-line);
	border-radius: 999px;
	background: var(--allo-sand);
	color: var(--allo-ink);
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s;
}

.allo-chips a:hover,
.allo-chips a:focus-visible {
	border-color: var(--allo-accent);
}

.allo-chips .allo-icon {
	width: 18px;
	height: 18px;
	color: var(--allo-accent);
}

.allo-empty {
	padding: 18px 20px;
	border-radius: var(--allo-radius);
	background: var(--allo-sand);
}
