/*
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 {
	/* Charte : camel / ocre désert, brun foncé, sable chaud */
	--allo-ink: #2e1e12;
	--allo-muted: #6b5a4b;
	--allo-bg: #faf7f2;
	--allo-sand: #f4ede4;
	--allo-line: #e6dacb;
	--allo-accent: #9c6a3b;
	--allo-accent-dark: #7f5530;
	--allo-yes: #1f7a3f;
	--allo-yes-bg: #ecf7f0;
	--allo-no: #b42318;
	--allo-no-bg: #fdf0ef;
	--allo-wa: #25d366;
	--allo-wa-dark: #1ebe5a;
	--allo-wa-ink: #0a2e17;
	--allo-star: #e0a526;
	--allo-radius: 12px;

	/* Couleurs globales GeneratePress (texte, liens, fonds) alignées sur la charte */
	--contrast: #2e1e12;
	--contrast-2: #6b5a4b;
	--contrast-3: #b9a898;
	--base: #f4ede4;
	--base-2: #faf7f2;
	--base-3: #ffffff;
	--accent: #9c6a3b;
}

/* Typographie système : aucune police web à charger, aucun décalage de mise en page */
body,
button,
input,
select,
textarea {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
	background-color: var(--allo-bg);
	color: var(--allo-ink);
}

h1,
h2,
h3 {
	color: var(--allo-ink);
	font-weight: 700;
	letter-spacing: -0.01em;
}

a {
	color: var(--allo-accent-dark);
}

.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-dark);
}

.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 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--allo-wa);
	color: var(--allo-wa-ink);
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s;
}

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

.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;
}

/* ==========================================================================
   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 {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--allo-line);
	border-radius: var(--allo-radius);
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.allo-card:hover,
.allo-card:focus-within {
	border-color: var(--allo-accent);
	box-shadow: 0 8px 24px rgba(46, 30, 18, 0.08);
}

.allo-card-link {
	display: flex;
	flex: 1;
	flex-direction: column;
	color: var(--allo-ink);
	text-decoration: none;
}

.allo-card-link:hover,
.allo-card-link:focus-visible {
	color: var(--allo-ink);
}

.allo-card-wa {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 18px 18px;
	padding: 11px 14px;
	border-radius: 999px;
	background: var(--allo-wa);
	color: var(--allo-wa-ink);
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s;
}

.allo-card-wa:hover,
.allo-card-wa:focus-visible {
	background: var(--allo-wa-dark);
	color: var(--allo-wa-ink);
}

.allo-card-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.allo-card-badges li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--allo-sand);
	font-size: 13px;
	color: var(--allo-muted);
}

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

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

.allo-card-more {
	margin: auto 0 0;
	padding-top: 6px;
	font-weight: 700;
	color: var(--allo-accent-dark);
}

/* Image en position absolue : le ratio 4/3 tient quelle que soit l'orientation de la photo */
.allo-card-media {
	position: relative;
	flex: 0 0 auto;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--allo-sand);
}

.allo-card-media img {
	position: absolute;
	inset: 0;
	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;
	font-weight: 600;
	line-height: 1.3;
}


.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-dark);
}

/* 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);
}

/* ==========================================================================
   Page d'accueil (front-page.php)
   ========================================================================== */

/* Les bandes pleine largeur débordent du conteneur GeneratePress : pas de défilement horizontal */
body.home {
	overflow-x: clip;
}

.home .site-content {
	padding-top: 0;
	padding-bottom: 0;
}

.home .site-main {
	margin: 0;
}

.allo-band {
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
	padding-right: max(16px, calc(50vw - 600px));
	padding-left: max(16px, calc(50vw - 600px));
}

.allo-band-alt {
	background: var(--allo-sand);
}

.allo-home-section {
	padding: 56px 0;
}

.allo-band > .allo-home-section {
	padding-right: 0;
	padding-left: 0;
}

.allo-home-section h2 {
	margin: 0 0 24px;
	font-size: clamp(26px, 3.2vw, 34px);
	line-height: 1.2;
}

.allo-center {
	margin: 28px 0 0;
	text-align: center;
}

/* Boutons */
.allo-btn,
.allo-btn-inline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid var(--allo-accent);
	border-radius: 999px;
	background: var(--allo-accent);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

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

.allo-btn-ghost {
	background: transparent;
	color: var(--allo-accent-dark);
}

.allo-btn-inline.allo-btn-whatsapp {
	margin: 0;
	border-color: var(--allo-wa);
	background: var(--allo-wa);
	color: var(--allo-wa-ink);
}

.allo-btn-inline.allo-btn-whatsapp:hover,
.allo-btn-inline.allo-btn-whatsapp:focus-visible {
	border-color: var(--allo-wa-dark);
	background: var(--allo-wa-dark);
	color: var(--allo-wa-ink);
}

/* Héro */
.allo-home-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(520px, 72vh, 680px);
	overflow: hidden;
	background: var(--allo-ink);
	color: #fff;
}

.allo-home-hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.allo-home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(46, 30, 18, 0.88) 0%, rgba(46, 30, 18, 0.6) 55%, rgba(46, 30, 18, 0.25) 100%);
}

.allo-home-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 680px;
	padding: 64px 0;
}

.allo-home-title {
	margin: 0 0 16px;
	color: #fff;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.1;
}


.allo-home-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.allo-home-badges li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 15px;
	font-weight: 600;
}

.allo-home-badges .allo-icon {
	width: 18px;
	height: 18px;
	color: #e9c9a4;
}

.allo-home-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Désert : texte + image */
.allo-split {
	display: grid;
	gap: 32px;
	align-items: center;
}

@media (min-width: 900px) {
	.allo-split {
		grid-template-columns: 1fr 1fr;
		gap: 56px;
	}
}

.allo-split-text p {
	font-size: 17px;
	line-height: 1.7;
}

.allo-split-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0 0;
}

.allo-split-media {
	margin: 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--allo-radius);
	background: var(--allo-sand);
}

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

/* Grilles de 4 cartes */
@media (min-width: 1000px) {
	.allo-cards-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Piliers */
.allo-pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.allo-pillars li {
	padding: 24px;
	border: 1px solid var(--allo-line);
	border-radius: var(--allo-radius);
	background: #fff;
}

.allo-pillar-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--allo-sand);
	color: var(--allo-accent);
}

.allo-pillar-icon .allo-icon {
	width: 26px;
	height: 26px;
}

.allo-pillars h3 {
	margin: 0 0 8px;
	font-size: 18px;
}

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

/* Avis clients */
.allo-reviews {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.allo-reviews figure {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	padding: 24px;
	border-radius: var(--allo-radius);
	background: #fff;
}

.allo-stars {
	display: inline-flex;
	gap: 2px;
	margin-bottom: 12px;
	color: var(--allo-star);
}

.allo-reviews blockquote {
	flex: 1;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	font-size: 16px;
	font-style: normal;
	line-height: 1.6;
}

.allo-reviews blockquote p {
	margin: 0;
}

.allo-reviews figcaption {
	color: var(--allo-muted);
}

.allo-reviews figcaption strong {
	color: var(--allo-ink);
}

/* FAQ (réponses HTML) */
.allo-home-faq .allo-section {
	max-width: 860px;
	margin: 0 auto;
}

.allo-faq-answer {
	padding-bottom: 16px;
	color: var(--allo-muted);
}

.allo-faq-answer p {
	margin: 0 0 12px;
}

.allo-faq-answer ul {
	margin: 0 0 12px 20px;
}

/* Sous 1232px, le conteneur GeneratePress touche les bords : même marge de 16px que les bandes */
@media (max-width: 1232px) {
	.allo-home > .allo-home-section {
		padding-right: 16px;
		padding-left: 16px;
	}
}

/* ==========================================================================
   Footer 4 colonnes (inc/footer.php) et barre de copyright
   ========================================================================== */

.allo-footer {
	border-top: 1px solid var(--allo-line);
	background: var(--allo-sand);
	color: var(--allo-ink);
}

.allo-footer-inner {
	display: grid;
	gap: 36px;
	padding: 56px 16px 48px;
}

@media (min-width: 700px) {
	.allo-footer-inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1100px) {
	.allo-footer-inner {
		grid-template-columns: 1.3fr 0.8fr 1fr 1.3fr;
		padding-right: 40px;
		padding-left: 40px;
	}
}

.allo-footer-logo {
	display: inline-block;
	margin-bottom: 14px;
}

.allo-footer-logo img {
	display: block;
	width: 206px;
	height: auto;
	aspect-ratio: 412 / 144;
}

.allo-footer-brand p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--allo-muted);
}

.allo-footer-title {
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 700;
	color: var(--allo-ink);
}

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

.allo-footer li + li {
	margin-top: 10px;
}

.allo-footer a {
	color: var(--allo-ink);
	text-decoration: none;
}

.allo-footer a:hover,
.allo-footer a:focus-visible {
	color: var(--allo-accent-dark);
	text-decoration: underline;
}

.allo-footer address {
	margin: 0 0 16px;
	font-style: normal;
}

.allo-footer address p {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 1.5;
}

.allo-footer address .allo-icon {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--allo-accent);
}

.allo-footer address a {
	font-weight: 700;
}

/* Carte : ratio fixe (CLS 0), chargée à la demande (loading="lazy") */
.allo-footer-map {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--allo-radius);
	background: var(--allo-line);
}

.allo-footer-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Barre de copyright GeneratePress */
.site-info {
	background: var(--allo-ink);
	color: var(--allo-sand);
}

.site-info a {
	color: #fff;
}

.inside-site-info {
	padding-top: 18px;
	padding-bottom: 18px;
	font-size: 14px;
}

/* ==========================================================================
   Pages (À propos, Contact) : boutons de blocs
   ========================================================================== */

.wp-block-button.allo-wa-button .wp-block-button__link {
	border-radius: 999px;
	background: var(--allo-wa);
	color: var(--allo-wa-ink);
	font-weight: 700;
}

.wp-block-button.allo-wa-button .wp-block-button__link:hover,
.wp-block-button.allo-wa-button .wp-block-button__link:focus-visible {
	background: var(--allo-wa-dark);
	color: var(--allo-wa-ink);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid var(--allo-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--allo-accent-dark);
	font-weight: 700;
}

.allo-contact-list {
	padding-left: 20px;
}

/* ==========================================================================
   Archives excursion / destination / activité (template-parts/archive.php)
   ========================================================================== */

.allo-archive-hero {
	padding: 32px 0 8px;
}

.allo-archive-hero .allo-lead {
	max-width: 780px;
	margin: 0;
	color: var(--allo-muted);
}

.allo-archive-grid {
	padding: 24px 0 64px;
}

/* Titres des cartes de hubs en h2 (hiérarchie sous le H1 de l'archive) */
.allo-card-title {
	font-size: 18px;
	line-height: 1.3;
}

@media (max-width: 1232px) {
	.allo-archive {
		padding-right: 16px;
		padding-left: 16px;
	}
}

/* ==========================================================================
   Header : fond sable translucide, sticky, logo compact, nav centrée, CTA WhatsApp
   ========================================================================== */

/* Les ancres (#excursions-grid) ne passent pas sous le header collant */
html {
	scroll-padding-top: 88px;
}

.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	border-bottom: 1px solid rgba(156, 106, 59, 0.15);
	background: rgba(250, 247, 242, 0.95);
	box-shadow: 0 4px 20px rgba(46, 30, 18, 0.04);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.site-header .inside-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 12px 24px;
}

.site-header .site-logo {
	flex: 0 0 auto;
	margin: 0;
}

.site-header .header-image {
	display: block;
	width: auto;
	max-height: 48px;
}

/* Navigation */
.site-header .main-navigation,
.site-header .main-navigation ul ul {
	background: transparent;
}

.site-header #site-navigation {
	flex: 1 1 auto;
	margin: 0;
}

.site-header .main-navigation .inside-navigation {
	justify-content: center;
}

.site-header .main-navigation .main-nav > ul {
	display: flex;
	gap: 28px;
}

.site-header .main-navigation .main-nav ul li a {
	position: relative;
	padding: 8px 0;
	color: #2e1e12;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	transition: color 0.2s;
}

.site-header .main-navigation .main-nav ul li a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 2px;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background: #9c6a3b;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.site-header .main-navigation .main-nav ul li a:hover,
.site-header .main-navigation .main-nav ul li a:focus-visible,
.site-header .main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: #9c6a3b;
}

.site-header .main-navigation .main-nav ul li a:hover::after,
.site-header .main-navigation .main-nav ul li a:focus-visible::after,
.site-header .main-navigation .main-nav ul li[class*="current-menu-"] > a::after {
	transform: scaleX(1);
}

/* Bouton WhatsApp */
.allo-header-cta {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	border-radius: 50px;
	background: #25d366;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s;
}

.allo-header-cta:hover,
.allo-header-cta:focus-visible {
	background: #1ebe5a;
	color: #fff;
}

.allo-header-cta .allo-icon {
	width: 18px;
	height: 18px;
}

/* Mobile (breakpoint GeneratePress) : logo | CTA + menu, puis menu déroulé pleine largeur */
@media (max-width: 768px) {
	.site-header .inside-header {
		flex-wrap: wrap;
		gap: 0;
		padding: 10px 16px;
	}

	.site-header .header-image {
		max-height: 40px;
	}

	.allo-header-cta {
		order: 1;
		margin-left: auto;
		padding: 7px 14px;
		font-size: 14px;
	}

	.site-header #mobile-menu-control-wrapper {
		order: 2;
		margin-left: 8px;
	}

	.site-header #site-navigation {
		order: 3;
		flex-basis: 100%;
	}

	.site-header .menu-toggle {
		padding: 0 10px;
		background: transparent;
		color: #2e1e12;
		line-height: 40px;
	}

	.site-header .menu-toggle:hover,
	.site-header .menu-toggle:focus {
		background: transparent;
		color: #9c6a3b;
	}

	.site-header .main-navigation .main-nav > ul {
		display: block;
		padding: 8px 0 12px;
	}

	.site-header .main-navigation .main-nav ul li a {
		padding: 12px 0;
		border-top: 1px solid rgba(156, 106, 59, 0.12);
	}

	.site-header .main-navigation .main-nav ul li a::after {
		display: none;
	}
}

/* Fiches excursion / destination / activité : même marge de 16px sous 1232px (le conteneur GeneratePress touche les bords) */
@media (max-width: 1232px) {
	article.allo-excursion {
		padding-right: 16px;
		padding-left: 16px;
	}
}

/* ==========================================================================
   Badge éditorial des cartes et encart transferts intervilles (accueil)
   ========================================================================== */

.allo-badge {
	align-self: flex-start;
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--allo-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.allo-intercity-transfers {
	margin-top: 24px;
	padding: 20px 24px;
	border-left: 4px solid var(--allo-accent);
	border-radius: var(--allo-radius);
	background: var(--allo-sand);
}

.allo-intercity-transfers p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
}

/* ==========================================================================
   Accueil : héro centré et en-têtes de sections (H2 + sous-titre)
   ========================================================================== */

.allo-home-hero {
	justify-content: center;
}

/* Voile uniforme : le texte centré doit rester lisible sur toute la largeur de l'image */
.allo-home-hero::after {
	background: linear-gradient(180deg, rgba(46, 30, 18, 0.55) 0%, rgba(46, 30, 18, 0.7) 100%);
}

.allo-home-hero-inner {
	max-width: 860px;
	margin: 0 auto;
	text-align: center;
}

.allo-home-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.allo-home-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

.allo-section-header {
	margin-bottom: 32px;
	text-align: center;
}

.allo-home-section .allo-section-header h2,
.allo-section-header h2 {
	margin: 0;
	color: #2e1e12;
	font-weight: 700;
}

.allo-section-subhead {
	max-width: 720px;
	margin: 8px auto 0;
	color: #5c4a3e;
	font-size: 16px;
	line-height: 1.6;
}

/* ==========================================================================
   Boutons WhatsApp (#25D366) : texte et icône en blanc sur tout le site
   ========================================================================== */

.allo-btn-whatsapp,
.allo-btn-inline.allo-btn-whatsapp,
.allo-card-wa,
.allo-header-cta,
.wp-block-button.allo-wa-button .wp-block-button__link,
.allo-btn-whatsapp:hover,
.allo-btn-whatsapp:focus-visible,
.allo-btn-inline.allo-btn-whatsapp:hover,
.allo-btn-inline.allo-btn-whatsapp:focus-visible,
.allo-card-wa:hover,
.allo-card-wa:focus-visible,
.allo-header-cta:hover,
.allo-header-cta:focus-visible,
.wp-block-button.allo-wa-button .wp-block-button__link:hover,
.wp-block-button.allo-wa-button .wp-block-button__link:focus-visible {
	color: #fff !important;
	font-weight: 700;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* L'icône WhatsApp est dessinée en remplissage (pas de contour) : un stroke l'épaissirait et la rendrait floue */
.allo-btn-whatsapp svg,
.allo-card-wa svg,
.allo-header-cta svg {
	color: #fff !important;
	fill: #fff !important;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.allo-btn-whatsapp svg path,
.allo-card-wa svg path,
.allo-header-cta svg path {
	fill: #fff !important;
}

/* Pages (Contact, À propos) : espacement des groupes de boutons de blocs */
.entry-content .wp-block-buttons {
	gap: 12px 16px;
	margin: 28px 0 40px;
}

/* Page Contact, mobile : liste des coordonnées alignée sur le bord gauche du texte et des titres */
@media (max-width: 768px) {
	.entry-content .allo-contact-list {
		margin-left: 0;
		padding-left: 0;
		list-style-position: inside;
	}

	.entry-content .allo-contact-list li {
		margin-bottom: 10px;
		line-height: 1.5;
	}
}

/* Unité de prix non standard sur les cartes (ex. "par buggy (2 places)") */
.allo-card-unit {
	display: block;
	font-size: 13px;
	color: var(--allo-muted);
}

/* Accueil : texte du héro sous le H1 */
.allo-hero-lead {
	margin: 0 0 12px;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(17px, 1.7vw, 20px);
	line-height: 1.6;
}

.allo-hero-rating {
	margin: 0 0 24px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 16px;
}

/* /excursions-marrakech/ : en-tête centré, largeur de lecture identique à l'accueil */
.post-type-archive-excursion .allo-archive-hero,
.post-type-archive-activite .allo-archive-hero {
	text-align: center;
}

.post-type-archive-excursion .allo-archive-hero .allo-breadcrumb ol,
.post-type-archive-activite .allo-archive-hero .allo-breadcrumb ol {
	display: flex;
	justify-content: center;
	margin: 0 auto 12px;
}

.post-type-archive-excursion .allo-archive-hero .allo-lead,
.post-type-archive-activite .allo-archive-hero .allo-lead {
	max-width: 860px;
	margin: 0 auto 2.5rem;
}

/* /activites-marrakech/ : hubs et FAQ centrés sous la grille */
.allo-archive-hubs,
.allo-archive-faq .allo-section {
	max-width: 860px;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

.allo-archive-hubs .allo-chips {
	justify-content: center;
}

.allo-archive-faq .allo-faq {
	text-align: left;
}
