/*
Theme Name: Les Robiniers
Description: Thème du Gîte Les Robiniers (Beaulieu, Ardèche). Thème à blocs : tout se modifie depuis l'éditeur de WordPress. À l'activation, il crée les pages et importe les photos dans la médiathèque.
Author: Victor Boura
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: robiniers
*/

/* ---------- En-tête ---------- */
.site-header {
	padding: 20px 5vw;
	border-bottom: 1px solid var(--wp--preset--color--ligne);
	gap: 16px 32px;
	background: var(--wp--preset--color--blanc);
}
.site-header .wp-block-site-title { margin: 0; }
.main-nav .wp-block-navigation-item__content { padding-bottom: 3px; border-bottom: 1px solid transparent; }
.main-nav .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--wp--preset--color--noir); }
.main-nav .wp-block-navigation__container { gap: 8px 32px; }

/* ---------- Petits libellés ---------- */
.kicker {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--wp--preset--color--noir);
	margin-bottom: 0.5rem !important;
}
.centre { text-align: center; }
.centre .wp-block-buttons { justify-content: center; }

/* ---------- Bandeau photo (hero) ---------- */
.hero {
	position: relative;
	min-height: 560px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0 !important;
	padding: 80px 6vw;
	box-sizing: border-box;
}
.hero.is-grand { min-height: min(85vh, 760px); }
.hero.is-court { min-height: 420px; }
.hero > .hero-bg {
	position: absolute;
	inset: 0;
	margin: 0 !important;
	z-index: 0;
}
.hero > .hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(15, 15, 15, 0.38);
	z-index: 1;
	pointer-events: none;
}
.hero.is-clair::after { background: rgba(255, 255, 255, 0.72); }
.hero > .hero-contenu {
	position: relative;
	z-index: 2;
	text-align: center;
	margin: 0 !important;
}
.hero:not(.is-clair) .hero-contenu,
.hero:not(.is-clair) .hero-contenu h1,
.hero:not(.is-clair) .hero-contenu h2,
.hero:not(.is-clair) .hero-contenu .kicker { color: #FFFFFF; }
.hero-contenu .wp-block-buttons { justify-content: center; }
.hero:not(.is-clair) .wp-block-button__link { background: #FFFFFF; color: var(--wp--preset--color--noir); }
.hero-contenu .sous-titre { font-size: 22px; }

/* ---------- Sections ---------- */
.section { padding-top: 110px; padding-bottom: 110px; margin-top: 0 !important; }
.section.is-serree { padding-top: 0; }
.section-creme { background: var(--wp--preset--color--creme); }
.intro { max-width: 800px; margin-left: auto !important; margin-right: auto !important; text-align: center; }

/* Chiffres clés */
.chiffres {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px !important;
	background: var(--wp--preset--color--ligne);
	border: 1px solid var(--wp--preset--color--ligne);
	max-width: 1100px;
	margin-top: 64px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.chiffres > * { background: #FFFFFF; padding: 28px 16px; text-align: center; margin: 0 !important; }
.chiffres .chiffre { font-family: var(--wp--preset--font-family--playfair); font-size: 40px; color: var(--wp--preset--color--noir); line-height: 1.3; }
.chiffres p { margin: 0; }

/* Cartes vers les pages */
.cartes .wp-block-image img { width: 100%; height: 460px; object-fit: cover; }
.cartes h3 { font-size: 28px; margin: 20px 0 4px; }
.cartes h3 a { text-decoration: none; }
.cartes p { margin-top: 0; font-size: 16px; }
.decouvrir .wp-block-image img { width: 100%; height: 340px; object-fit: cover; }
.decouvrir h3 { font-size: 22px; margin-top: 16px; }

/* Blocs photo + texte */
.bloc { align-items: center !important; gap: 56px !important; }
.bloc .wp-block-gallery { gap: 16px !important; }
.bloc .wp-block-gallery .wp-block-image img { height: 260px; object-fit: cover; }
.bloc .wp-block-gallery .wp-block-image.photo-large { width: 100% !important; }
.bloc .wp-block-gallery .wp-block-image.photo-large img { height: 420px; }

/* Galerie de la page Photos */
.galerie .wp-block-image img { aspect-ratio: 3 / 2; object-fit: cover; }
.galerie { margin-bottom: 72px !important; }

/* Équipements */
.equipements {
	list-style: none;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1px;
	background: var(--wp--preset--color--ligne);
	border: 1px solid var(--wp--preset--color--ligne);
}
.equipements li { background: #FFFFFF; padding: 24px; text-align: center; margin: 0; }

/* Tarifs */
.tarifs table { border-collapse: collapse; width: 100%; font-size: 17px; table-layout: auto; }
.tarifs td { border: 0; border-bottom: 1px solid var(--wp--preset--color--ligne); padding: 18px 12px 18px 0; }
.tarifs tr:first-child td { border-top: 1px solid var(--wp--preset--color--noir); }
.tarifs tr:last-child td { border-bottom-color: var(--wp--preset--color--noir); }
.tarifs td:first-child { color: var(--wp--preset--color--noir); font-weight: 400; }
.tarifs td:last-child { text-align: right; font-family: var(--wp--preset--font-family--playfair); font-size: 24px; color: var(--wp--preset--color--noir); white-space: nowrap; padding-right: 0; }
.widget-gdf { min-height: 40px; }
.tarifs + .centre { margin-top: 96px !important; }
.carte iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Boutons contour */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--noir);
	border: 1px solid var(--wp--preset--color--noir);
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--wp--preset--color--creme); padding: 64px 5vw 40px; margin-top: 0 !important; }
.site-footer p { font-size: 16px; margin: 0; }
.site-footer .wp-block-site-title { font-size: 24px; margin-bottom: 8px; }
.site-footer .mentions { font-size: 14px; margin-top: 40px; }

/* La page de contenu colle au header et au footer */
.wp-site-blocks > * + * { margin-block-start: 0; }
.entry-content > :first-child { margin-top: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.section { padding-top: 72px; padding-bottom: 72px; }
	.hero { min-height: 460px; }
	.cartes .wp-block-image img { height: 300px; }
	.bloc .wp-block-gallery .wp-block-image img { height: 200px; }
	.tarifs td:nth-child(2) { display: none; }
}
