/* =========================================================================
   Chalet La Bürsch — Feuille de style principale
   Palette : bois naturel, blanc neige, gris anthracite, vert sapin
   ========================================================================= */

:root {
	--clb-wood: #8a5a34;
	--clb-wood-dark: #5e3c22;
	--clb-wood-light: #c99a68;
	--clb-snow: #fbfaf7;
	--clb-anthracite: #2e2e2e;
	--clb-pine: #2f4d3a;
	--clb-pine-light: #48684f;
	--clb-cream: #f4ede2;
	--clb-gold: #b68a4e;

	--clb-font-heading: 'Cormorant Garamond', Georgia, serif;
	--clb-font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--clb-radius: 6px;
	--clb-shadow: 0 10px 30px rgba(46, 46, 46, 0.12);
	--clb-max-width: 1240px;
}

/* -------------------- Reset léger -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--clb-font-body);
	color: var(--clb-anthracite);
	background: var(--clb-snow);
	line-height: 1.65;
	font-weight: 300;
	overflow-x: hidden; /* empêche tout élément trop large de faire défiler la page entière horizontalement */
}
html { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
	font-family: var(--clb-font-heading);
	font-weight: 600;
	line-height: 1.2;
	color: var(--clb-wood-dark);
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.container { max-width: var(--clb-max-width); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); overflow: hidden; height:1px; width:1px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--clb-pine); color: #fff; padding: 12px 20px; z-index: 10000; }
.skip-link:focus { left: 0; }
.clb-center { text-align: center; }
.clb-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.75rem;
	color: var(--clb-pine);
	font-weight: 500;
	margin-bottom: 0.6em;
}
.clb-section { padding-top: 72px; padding-bottom: 72px; }
.clb-section-title { text-align: left; margin-bottom: 40px; }
.clb-section-title--center { text-align: center; }
.clb-note { color: #6b6b6b; font-size: 0.9rem; }
.clb-lead { font-size: 1.15rem; max-width: 760px; }

/* -------------------- Boutons -------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: var(--clb-radius);
	font-weight: 500;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	border: 2px solid transparent;
	cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--clb-pine); color: #fff; }
.btn-primary:hover { background: var(--clb-pine-light); box-shadow: var(--clb-shadow); }
.btn-outline { border-color: var(--clb-wood); color: var(--clb-wood-dark); background: transparent; }
.btn-outline:hover { background: var(--clb-wood); color: #fff; }
.btn-airbnb { background: transparent; color: #c1443a; border-color: #c1443a; }
.btn-airbnb:hover { background: #c1443a; color: #fff; }
.btn-booking { background: transparent; color: #2c4a6e; border-color: #2c4a6e; }
.btn-booking:hover { background: #2c4a6e; color: #fff; }
.btn-alpesvaudoises { background: transparent; color: #a67c3d; border-color: #a67c3d; }
.btn-alpesvaudoises:hover { background: #a67c3d; color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

.clb-booking-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.clb-booking-buttons--hero { justify-content: center; }

/* Sur le hero et le CTA final (boutons posés sur une photo), une seule couleur neutre
   très discrète (gris clair, 5% d'opacité) pour ne pas entrer en conflit avec la photo,
   avec un flou de fond et un texte gras bien contrasté pour rester lisible. Même gabarit
   que les pastilles "8 personnes / 180 m² / 4 chambres" (padding ajusté au texte, même
   police), mais avec des angles carrés pour s'en distinguer visuellement. */
.clb-booking-buttons--hero .btn,
.clb-booking-buttons--final-cta .btn {
	font-family: var(--clb-font-body);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.03em;
	padding: 6px 16px;
	width: auto;
	max-width: 100%;
	text-align: center;
	border-radius: 0;
	text-shadow: 0 1px 4px rgba(0,0,0,0.4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,0.6);
	background: rgba(46,46,46,0.4);
	color: #fff;
}
.clb-booking-buttons--hero .btn:hover,
.clb-booking-buttons--final-cta .btn:hover {
	background: rgba(46,46,46,0.6);
	color: #fff;
}

/* -------------------- Header -------------------- */
.clb-site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 999;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.clb-site-header.is-scrolled {
	background: rgba(251, 250, 247, 0.96);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(46,46,46,0.06);
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
/* Sur les pages intérieures, le bandeau de titre (fond foncé) sert déjà de fond au menu :
   on force donc le style "scrollé" dès le départ sur ces pages pour un contraste correct. */
body:not(.home) .clb-site-header:not(.is-scrolled) {
	background: transparent;
}
.clb-header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 14px 24px; column-gap: 24px; }
.clb-branding { display: flex; align-items: center; gap: 22px; }
.clb-logo-text { font-family: var(--clb-font-heading); font-size: 1.5rem; color: var(--clb-wood-dark); white-space: nowrap; }
.clb-stars-badge { width: 66px; height: 66px; object-fit: contain; }
.clb-stars-badge-link { display: inline-flex; text-decoration: none; transition: transform 0.2s ease; }
.clb-stars-badge-link:hover { transform: scale(1.06); }
/* Deux variantes du logo (texte blanc / texte noir) basculées automatiquement selon
   le fond du bandeau : transparent sur photo/bandeau foncé = version texte blanc ;
   bandeau clair une fois scrollé = version texte noir d'origine, plus lisible. */
.clb-stars-badge--onlight { display: none; }
.clb-site-header.is-scrolled .clb-stars-badge--onphoto { display: none; }
.clb-site-header.is-scrolled .clb-stars-badge--onlight { display: block; }
.clb-stars-badge--hero { margin-bottom: 12px; }
.clb-stars-badge-large { width: 90px; margin: 20px 0 8px; }
.clb-label-caption { font-size: 0.88rem; color: #666; max-width: 460px; }

/* Sur desktop, .clb-primary-nav s'efface de la mise en page (display:contents) :
   ses enfants (.clb-menu et .clb-header-actions) deviennent directement les
   colonnes 2 et 3 de la grille de l'en-tête, pour un menu vraiment centré
   entre le logo et les actions. Sur mobile, la media query plus bas reprend
   la main pour l'affichage en panneau plein écran (display:contents désactivé). */
.clb-primary-nav { display: contents; }
.clb-menu { display: flex; gap: 26px; justify-self: center; }
.clb-menu a {
	font-size: 0.94rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	position: relative;
	padding: 6px 0;
	color: #fff;
	text-shadow: 0 1px 6px rgba(0,0,0,0.45);
	transition: color 0.3s ease, text-shadow 0.3s ease;
}
.clb-menu a::after {
	content: '';
	position: absolute; left: 0; bottom: 0;
	width: 0; height: 2px; background: var(--clb-gold);
	transition: width 0.25s ease;
}
.clb-menu a:hover::after, .clb-menu .current-menu-item a::after { width: 100%; }
.clb-header-actions { display: flex; align-items: center; gap: 18px; justify-self: end; }

.clb-lang-switcher { display: flex; gap: 8px; }
.clb-lang-switcher li a {
	font-size: 0.8rem;
	opacity: 0.75;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #fff;
	text-shadow: 0 1px 6px rgba(0,0,0,0.45);
	font-weight: 700;
}
.clb-lang-switcher li.is-current a, .clb-lang-switcher li a:hover { opacity: 1; }

.clb-nav-toggle { display: none; position: relative; z-index: 20; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; -webkit-appearance: none; appearance: none; }
.clb-nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.4); }

/* -------- État "scrollé" ou pages intérieures : texte sombre sur fond clair -------- */
.clb-site-header.is-scrolled .clb-menu a,
.clb-site-header.is-scrolled .clb-lang-switcher li a {
	color: var(--clb-anthracite);
	text-shadow: none;
	font-weight: 500;
}
.clb-site-header.is-scrolled .clb-nav-toggle span { background: var(--clb-anthracite); box-shadow: none; }
.clb-site-header.is-scrolled .clb-logo-text { color: var(--clb-wood-dark); }
.clb-logo-text { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.45); transition: color 0.3s ease; }

/* Hauteur réelle du bandeau fixe (logo 66px + paddings) : centralisée en variable
   pour garder le spacer et le bandeau de page toujours parfaitement synchronisés. */
:root { --clb-header-height: 98px; }

.clb-header-inner { min-height: var(--clb-header-height); }

/* Le spacer reprend le même dégradé que le bandeau de page qui le suit directement :
   ainsi, le menu fixe (texte blanc) reste TOUJOURS sur un fond sombre sur les pages
   intérieures, quelle que soit la position de scroll (plus de texte blanc sur fond clair). */
.clb-page-header-spacer {
	height: var(--clb-header-height);
	background: linear-gradient(135deg, var(--clb-pine), var(--clb-wood-dark));
}
body.page-template-page-intranet-php .clb-page-header-spacer {
	background: linear-gradient(135deg, var(--clb-anthracite), #4a4a4a);
}

.clb-page-header {
	background: linear-gradient(135deg, var(--clb-pine), var(--clb-wood-dark));
	color: #fff;
	/* Le spacer réserve déjà la hauteur du bandeau fixe : on n'ajoute qu'une petite
	   marge de confort pour que le logo ne "touche" jamais le texte du titre. */
	padding: 32px 0 50px;
}
.clb-page-header h1 { color: #fff; margin-bottom: 4px; }
.clb-page-header--intranet { background: linear-gradient(135deg, var(--clb-anthracite), #4a4a4a); }

.clb-breadcrumbs ol { display: flex; gap: 8px; font-size: 0.85rem; opacity: 0.85; }
.clb-breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; }

/* -------------------- Hero (page d'accueil) -------------------- */
.clb-hero {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 130px 0 90px; /* laisse la place au bandeau fixe en haut et aux décorations en bas */
}
@media (max-width: 600px) {
	/* Sur petit écran, le contenu (titre + sous-titre + badges + 4 boutons) dépasse
	   souvent la hauteur de l'écran : le hero s'agrandit alors en conséquence
	   plutôt que de superposer/couper son propre contenu. */
	.clb-hero { height: auto; min-height: 100vh; padding-bottom: 130px; }
}
.clb-hero-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.6s ease-in-out;
}
.clb-hero-slide.is-active { opacity: 1; }
.clb-hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(46,46,46,0.35) 0%, rgba(46,46,46,0.55) 100%);
}
.clb-hero-content { position: relative; z-index: 2; text-align: center; color: #fff; }
.clb-hero-content h1 { color: #fff; margin-bottom: 8px; text-shadow: 0 4px 22px rgba(0,0,0,0.45); }
.clb-hero-subtitle {
	font-size: 1.2rem;
	font-weight: 600;
	max-width: 640px;
	margin: 0 auto 20px;
	text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.clb-hero-meta { display: flex; gap: 22px; justify-content: center; margin-bottom: 12px; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.03em; }
.clb-hero-meta span {
	background: rgba(46,46,46,0.4);
	border: 1px solid rgba(255,255,255,0.6);
	padding: 6px 16px;
	border-radius: 30px;
	text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.clb-hero-scroll-cue {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	animation: clb-bounce 2.2s ease-in-out infinite;
	z-index: 2;
	opacity: 0.9;
	filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
	transition: opacity 0.2s ease;
}
.clb-hero-scroll-cue:hover { opacity: 1; }

/* Curseur de progression du diaporama été/hiver */
.clb-hero-progress {
	position: absolute;
	bottom: 78px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	width: min(220px, 60%);
	z-index: 2;
}
.clb-hero-progress-segment {
	flex: 1;
	height: 3px;
	border-radius: 3px;
	background: rgba(255,255,255,0.35);
	overflow: hidden;
	position: relative;
}
.clb-hero-progress-fill {
	position: absolute;
	inset: 0;
	width: 0%;
	background: #fff;
	border-radius: 3px;
}
.clb-hero-progress-segment.is-filling .clb-hero-progress-fill {
	animation: clb-progress-fill 6s linear forwards;
}
@keyframes clb-progress-fill {
	from { width: 0%; }
	to { width: 100%; }
}
@keyframes clb-bounce { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,10px);} }

/* -------------------- Présentation -------------------- */
.clb-presentation-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.clb-presentation-image img { border-radius: var(--clb-radius); box-shadow: var(--clb-shadow); }

/* -------------------- Points forts -------------------- */
.clb-highlights { background: var(--clb-cream); }
.clb-highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.clb-highlight-card { background: #fff; padding: 32px 24px; border-radius: var(--clb-radius); text-align: center; box-shadow: var(--clb-shadow); }
.clb-highlight-icon { font-size: 2.2rem; display: block; margin-bottom: 14px; }

/* -------------------- Galerie -------------------- */
.clb-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
.clb-gallery-grid--full { grid-template-columns: repeat(4, 1fr); }
.clb-gallery-item { position: relative; overflow: hidden; border-radius: var(--clb-radius); box-shadow: var(--clb-shadow); }
.clb-gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s ease; }
.clb-gallery-item:hover img { transform: scale(1.08); }
.clb-gallery-item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0;
	background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent);
	color: #fff; font-size: 0.82rem; padding: 26px 12px 10px;
}
.clb-gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.clb-filter-btn { background: var(--clb-cream); border: none; padding: 10px 18px; border-radius: 30px; cursor: pointer; font-size: 0.85rem; }
.clb-filter-btn.is-active, .clb-filter-btn:hover { background: var(--clb-pine); color: #fff; }
.clb-gallery-item.is-hidden { display: none; }

.clb-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; align-items: center; justify-content: center; }
.clb-lightbox.is-open { display: flex; }
.clb-lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 4px; }
.clb-lightbox-close { position: absolute; top: 24px; right: 32px; background: none; border: none; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* -------------------- Témoignages -------------------- */
.clb-testimonials { background: var(--clb-pine); color: #fff; }
.clb-testimonials .clb-section-title { color: #fff; }
.clb-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.clb-testimonial-card { background: rgba(255,255,255,0.08); padding: 28px; border-radius: var(--clb-radius); border-left: 3px solid var(--clb-gold); }
.clb-stars { color: var(--clb-gold); margin-bottom: 10px; letter-spacing: 2px; }
.clb-testimonial-card footer { margin-top: 14px; font-size: 0.85rem; opacity: 0.85; }

/* -------------------- CTA final -------------------- */
.clb-final-cta { background: var(--clb-wood-dark); color: #fff; }
.clb-final-cta h2 { color: #fff; }
.clb-final-cta .clb-booking-buttons { justify-content: center; }
.clb-airbnb-widget-wrapper { margin-top: 30px; display: flex; justify-content: center; }
.clb-airbnb-widget-wrapper .airbnb-embed-frame { background: #fff; border-radius: var(--clb-radius); overflow: hidden; box-shadow: var(--clb-shadow); }

/* -------------------- Le Chalet -------------------- */
.clb-chalet-intro-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 56px; }
.clb-chalet-facts { background: var(--clb-cream); padding: 28px; border-radius: var(--clb-radius); align-self: start; }
.clb-chalet-facts ul { margin-bottom: 20px; }
.clb-chalet-facts li { padding: 8px 0; border-bottom: 1px dashed rgba(46,46,46,0.15); font-size: 0.92rem; }

.clb-rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.clb-room-card { background: #fff; border-radius: var(--clb-radius); overflow: hidden; box-shadow: var(--clb-shadow); }
.clb-room-card img { height: 200px; object-fit: cover; }
.clb-room-card h3, .clb-room-card p { padding: 0 20px; }
.clb-room-card p { padding-bottom: 20px; color: #555; font-size: 0.92rem; }
.clb-room-card h3 { padding-top: 18px; }

/* -------------------- Tarifs -------------------- */
.clb-table-wrapper { overflow-x: auto; margin: 24px 0 12px; }
.clb-pricing-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--clb-shadow); border-radius: var(--clb-radius); overflow: hidden; }
.clb-pricing-table th, .clb-pricing-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #eee; }
.clb-pricing-table th { background: var(--clb-pine); color: #fff; font-weight: 500; }
.clb-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; color: #fff; }
.clb-badge--haute { background: #b5442e; }
.clb-badge--moyenne { background: var(--clb-gold); }
.clb-badge--basse { background: var(--clb-pine-light); }
.clb-badge--saison { background: var(--clb-wood); margin-bottom: 8px; }

.clb-conditions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 42px 0; }
.clb-conditions-card { background: var(--clb-cream); padding: 28px; border-radius: var(--clb-radius); }
.clb-conditions-card ul { margin-top: 14px; }
.clb-conditions-card li { padding: 6px 0 6px 20px; position: relative; font-size: 0.92rem; }
.clb-conditions-card li::before { content: '—'; position: absolute; left: 0; color: var(--clb-wood); }

/* -------------------- Activités -------------------- */
.clb-activities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 32px; }
.clb-activity-card { background: #fff; border-radius: var(--clb-radius); overflow: hidden; box-shadow: var(--clb-shadow); }
.clb-activity-thumb img { height: 220px; object-fit: cover; }
.clb-activity-body { padding: 24px; }
.clb-activity-meta { display: flex; gap: 20px; margin-top: 14px; font-size: 0.85rem; }

/* -------------------- Réservation -------------------- */
.clb-reservation-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 50px; align-items: start; }
.clb-availability-box, .clb-booking-platforms { background: var(--clb-cream); padding: 26px; border-radius: var(--clb-radius); margin-bottom: 24px; overflow-x: hidden; }
.clb-calendar-legend { display: flex; gap: 18px; margin-top: 14px; font-size: 0.82rem; }
.clb-calendar-nav { display: flex; justify-content: space-between; margin-top: 12px; }
.clb-calendar-nav .btn { padding: 8px 18px; }
.clb-calendar-nav .btn:disabled { cursor: not-allowed; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot--free { background: var(--clb-pine-light); }
.dot--busy { background: #b5442e; }
.clb-mini-month { margin-bottom: 18px; }
.clb-mini-month h4 { font-size: 0.95rem; margin-bottom: 8px; }
.clb-mini-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; min-width: 0; }
.clb-day { font-size: 0.72rem; text-align: center; padding: 6px 0; border-radius: 4px; background: #fff; min-width: 0; overflow: hidden; }
.clb-day.is-busy { background: #f2c9c1; color: #7a1f10; }

/* -------------------- Formulaires -------------------- */
.clb-form-row { margin-bottom: 18px; }
.clb-form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.clb-form label { display: block; font-size: 0.85rem; margin-bottom: 6px; font-weight: 500; }
.clb-form input, .clb-form textarea, .clb-form select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: var(--clb-radius);
	font-family: var(--clb-font-body);
	font-size: 0.95rem;
	background: #fff;
}
.clb-form input:focus, .clb-form textarea:focus { outline: none; border-color: var(--clb-pine); }
.clb-form-notice { padding: 14px 18px; border-radius: var(--clb-radius); margin-bottom: 20px; font-size: 0.9rem; }
.clb-form-success { background: #e5f3e8; color: #235c33; }
.clb-form-error { background: #fbe6e2; color: #7a1f10; }

/* -------------------- Contact -------------------- */
.clb-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.clb-map-embed { margin-top: 24px; border-radius: var(--clb-radius); overflow: hidden; box-shadow: var(--clb-shadow); }

/* -------------------- Intranet -------------------- */
.clb-intranet-login { max-width: 420px; margin: 0 auto; text-align: center; }
#clb-intranet-login-form p { text-align: left; margin-bottom: 16px; }
#clb-intranet-login-form input { width: 100%; padding: 12px; border-radius: var(--clb-radius); border: 1px solid #ddd; }
.clb-intranet-welcome { margin-bottom: 24px; }
.clb-role-badge { display: inline-block; background: var(--clb-cream); border-radius: 20px; padding: 4px 14px; font-size: 0.82rem; font-weight: 600; color: var(--clb-wood-dark); margin-left: 8px; }

/* ---- Alertes (documents à valider / expiration) ---- */
.clb-intranet-alert { background: var(--clb-cream); border-left: 4px solid var(--clb-pine); border-radius: var(--clb-radius); padding: 16px 20px; margin-bottom: 18px; }
.clb-intranet-alert--warning { border-left-color: #b5442e; }
.clb-intranet-alert ul { margin: 8px 0 0; padding-left: 20px; }
.clb-intranet-alert a { text-decoration: underline; color: var(--clb-pine); }

/* ---- Formulaire de dépôt (repliable) ---- */
.clb-doc-upload-box { margin-bottom: 24px; }
.clb-doc-upload-box summary { cursor: pointer; display: inline-block; list-style: none; }
.clb-doc-upload-box summary::-webkit-details-marker { display: none; }
.clb-doc-upload-form { background: #fff; box-shadow: var(--clb-shadow); border-radius: var(--clb-radius); padding: 24px; margin-top: 14px; max-width: 520px; }
.clb-doc-upload-form p { margin-bottom: 14px; }
.clb-doc-upload-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.clb-doc-upload-form input[type="text"], .clb-doc-upload-form input[type="file"], .clb-doc-upload-form input[type="date"], .clb-doc-upload-form select {
	width: 100%; padding: 10px; border-radius: var(--clb-radius); border: 1px solid #ddd;
}
.clb-inline-check { display: inline-block !important; font-weight: 400 !important; margin-right: 14px; }

/* ---- Filtres ---- */
.clb-doc-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.clb-doc-filters select, .clb-doc-filters input[type="search"] { padding: 9px 12px; border-radius: var(--clb-radius); border: 1px solid #ddd; }
.clb-doc-list-heading { font-size: 1rem; color: var(--clb-wood-dark); margin: 0 0 14px; font-weight: 700; }

/* ---- Grille de documents (cartes) ---- */
.clb-intranet-docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-bottom: 30px; }
.clb-doc-card { display: block; background: #fff; box-shadow: var(--clb-shadow); border-radius: var(--clb-radius); padding: 18px; color: inherit; position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.clb-doc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.clb-doc-card-body { display: block; color: inherit; }
.clb-doc-card h4 { margin: 10px 0 6px; font-size: 1.05rem; }
.clb-doc-card-meta { font-size: 0.8rem; color: #777; margin: 0; }
.clb-contact-line { margin: 4px 0 0 !important; line-height: 1.4; }
.clb-contact-line a { color: #777; }
.clb-doc-card-expiry { font-size: 0.78rem; color: #b5442e; margin: 6px 0 0; }
.clb-doc-card-delete { position: absolute; top: 12px; right: 12px; }
.clb-doc-card-delete button { background: none; border: none; cursor: pointer; font-size: 1rem; opacity: 0.5; padding: 4px; }
.clb-doc-card-delete button:hover { opacity: 1; }
.clb-contact-actions { display: flex; gap: 8px; margin-top: 12px; }
.clb-contact-edit-form { margin-top: 12px; }

/* ---- Badges de statut ---- */
.clb-doc-status { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 3px 10px; border-radius: 20px; }
.clb-doc-status--pending { background: #fff3cd; color: #8a6d00; }
.clb-doc-status--validated { background: #d9ecd9; color: var(--clb-pine); }
.clb-doc-status--rejected { background: #fbe2de; color: #b5442e; }
.clb-doc-status--cancelled { background: #e6e6e6; color: #666; text-decoration: line-through; }

/* ---- Sous-navigation des catégories de facture ---- */
.clb-facture-subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.clb-facture-subnav a { padding: 6px 14px; border-radius: 20px; background: #fff; border: 1px solid #ddd; font-size: 0.85rem; font-weight: 600; color: #666; }
.clb-facture-subnav a.is-active { background: var(--clb-pine); border-color: var(--clb-pine); color: #fff; }

/* ---- Bilan Annuel ---- */
.clb-bilan-year { margin-bottom: 36px; overflow-x: auto; }
.clb-bilan-year-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-bottom: 2px solid var(--clb-pine); padding-bottom: 8px; margin-bottom: 12px; }
.clb-bilan-year-header h4 { margin: 0; font-size: 1.4rem; color: var(--clb-wood-dark); font-family: var(--clb-font-heading); }
.clb-bilan-year-total { font-weight: 700; color: var(--clb-pine); font-size: 1.05rem; }
.clb-bilan-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--clb-shadow); border-radius: var(--clb-radius); overflow: hidden; font-size: 0.9rem; }
.clb-bilan-table th, .clb-bilan-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #eee; }
.clb-bilan-table th { background: var(--clb-cream); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.02em; }
.clb-bilan-table tr:last-child td { border-bottom: none; }
.clb-bilan-table tr.is-cancelled { opacity: 0.5; text-decoration: line-through; }
.clb-bilan-grand-total { text-align: right; font-size: 1.15rem; font-weight: 700; color: var(--clb-wood-dark); margin-top: 10px; }

/* ---- Détail d'un document ---- */
.clb-back-link { display: inline-block; margin-bottom: 20px; color: var(--clb-pine); text-decoration: underline; }
.clb-doc-detail { background: #fff; box-shadow: var(--clb-shadow); border-radius: var(--clb-radius); padding: 30px; margin-bottom: 30px; }
.clb-doc-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.clb-doc-detail-header h2 { margin: 0; }
.clb-doc-meta-line { color: #777; font-size: 0.88rem; margin: 8px 0 20px; }
.clb-doc-content { margin-bottom: 20px; }
.clb-doc-validate-form { display: inline-flex; gap: 10px; margin-left: 14px; }
.clb-doc-owner-actions { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.clb-btn-danger { border-color: #b5442e !important; color: #b5442e !important; }
.clb-btn-danger:hover { background: #b5442e !important; color: #fff !important; }
#clb-doc-edit-form textarea { width: 100%; padding: 10px; border-radius: var(--clb-radius); border: 1px solid #ddd; }

/* ---- Commentaires / échanges ---- */
.clb-doc-comments { background: var(--clb-cream); border-radius: var(--clb-radius); padding: 24px 28px; }
.clb-doc-comment-list { list-style: none; margin: 0 0 20px; padding: 0; }
.clb-doc-comment-list li { background: #fff; border-radius: var(--clb-radius); padding: 14px 18px; margin-bottom: 10px; }
.clb-doc-comment-date { font-size: 0.75rem; color: #999; margin-left: 8px; }
.clb-doc-comment-list p { margin: 6px 0 0; }
.clb-doc-no-comments { color: #888; font-style: italic; }
#commentform textarea { width: 100%; padding: 12px; border-radius: var(--clb-radius); border: 1px solid #ddd; }
#commentform input[type="submit"] { margin-top: 10px; }

.clb-intranet-sidebar-block { margin-top: 20px; }

/* ---- Onglets Intranet ---- */
.clb-intranet-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid #eee; margin-bottom: 24px; }
.clb-intranet-tabs a { padding: 10px 16px; font-weight: 600; color: #777; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.clb-intranet-tabs a.is-active { color: var(--clb-pine); border-bottom-color: var(--clb-pine); }
.clb-intranet-tabs a:hover { color: var(--clb-pine); }

/* ---- FAQ ---- */
.clb-faq-list { max-width: 720px; }
.clb-faq-item { background: #fff; box-shadow: var(--clb-shadow); border-radius: var(--clb-radius); padding: 16px 20px; margin-bottom: 12px; }
.clb-faq-item summary { cursor: pointer; font-weight: 600; }
.clb-faq-item div { margin-top: 10px; color: #555; }

/* ---- Calendrier iCal ---- */
.clb-ical-url-box { background: var(--clb-cream); border-radius: var(--clb-radius); padding: 14px 18px; word-break: break-all; }
.clb-ical-url-box code { font-size: 0.85rem; }

/* -------------------- Génériques (index, single, archive, 404) -------------------- */
.clb-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.clb-post-card { background: #fff; border-radius: var(--clb-radius); overflow: hidden; box-shadow: var(--clb-shadow); }
.clb-post-card img { height: 200px; object-fit: cover; }
.clb-post-card h2, .clb-post-excerpt, .clb-post-card .btn { margin: 0 20px; }
.clb-post-card h2 { margin-top: 18px; font-size: 1.2rem; }
.clb-post-excerpt { margin-bottom: 16px; color: #555; font-size: 0.92rem; }
.clb-post-card .btn { margin-bottom: 20px; }
.clb-404 { text-align: center; padding-top: 140px; padding-bottom: 140px; }
.clb-404 h1 { font-size: 6rem; }

/* -------------------- Footer -------------------- */
.clb-site-footer { background: var(--clb-anthracite); color: #d8d8d8; padding-top: 28px; }
.clb-footer-nav { padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.clb-footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding: 32px 0 40px; }
.clb-footer-col h3, .clb-footer-col h4 { color: #fff; }
.clb-footer-col a { color: #d8d8d8; opacity: 0.85; }
.clb-footer-col a:hover { opacity: 1; color: var(--clb-gold); }
.clb-footer-menu { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 10px; column-gap: 30px; }
.clb-footer-menu li { margin-bottom: 0; white-space: nowrap; }
.clb-social-links { display: flex; gap: 14px; margin-top: 12px; }
.clb-footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding: 22px 24px;
	display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
	font-size: 0.82rem;
}
.clb-footer-bottom ul { display: flex; gap: 18px; }

/* -------------------- Contenu éditable (éditeur classique) -------------------- */
.clb-editable-content h2 { margin-top: 0.4em; }
.clb-editable-content h3 { margin-top: 1.4em; color: var(--clb-wood-dark); }
.clb-editable-content table {
	width: 100%;
	min-width: 560px; /* garde des colonnes lisibles ; défile plutôt que d'écraser le texte */
	border-collapse: collapse;
	background: #fff;
	box-shadow: var(--clb-shadow);
	border-radius: var(--clb-radius);
	margin: 24px 0;
}
/* Le tableau défile horizontalement DANS ses propres limites sur petit écran,
   au lieu de pousser toute la page en dehors du viewport. */
.clb-editable-content {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.clb-editable-content th, .clb-editable-content td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid #eee;
}
.clb-editable-content th { background: var(--clb-pine); color: #fff; font-weight: 500; }
.clb-editable-content ul { margin: 14px 0 14px 4px; }
.clb-editable-content ul li { padding: 6px 0 6px 20px; position: relative; list-style: none; font-size: 0.94rem; }
.clb-editable-content ul li::before { content: '—'; position: absolute; left: 0; color: var(--clb-wood); }
.clb-editable-content img { border-radius: var(--clb-radius); margin: 20px 0; }
.clb-editable-content a:not(.btn) { color: var(--clb-pine); text-decoration: underline; }

/* -------------------- Classification STV/FST -------------------- */
.clb-classification-intro { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 44px; }
.clb-classification-intro img { flex-shrink: 0; }
.clb-classification-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 32px 0 48px; }
.clb-classification-card { background: #fff; border-radius: var(--clb-radius); box-shadow: var(--clb-shadow); padding: 26px; }
.clb-classification-card--highlight { border: 2px solid var(--clb-gold); }
.clb-classification-card-header { margin-bottom: 16px; }
.clb-stars-display { color: var(--clb-gold); font-size: 1.2rem; letter-spacing: 3px; display: block; margin-bottom: 6px; }
.clb-classification-card-header h3 { margin-bottom: 4px; }
.clb-classification-points { display: block; font-size: 0.82rem; color: #666; margin-bottom: 8px; }
.clb-badge--current { background: var(--clb-gold); display: inline-block; margin-top: 6px; }
.clb-classification-card ul { margin: 14px 0; }
.clb-classification-card li { padding: 5px 0 5px 18px; position: relative; font-size: 0.88rem; border-bottom: 1px dashed #eee; }
.clb-classification-card li::before { content: '✓'; position: absolute; left: 0; color: var(--clb-pine-light); font-weight: 700; }
.clb-superior-note { font-size: 0.82rem; color: var(--clb-wood-dark); margin-top: 12px; }
.clb-classification-footnotes { background: var(--clb-cream); padding: 28px; border-radius: var(--clb-radius); margin-bottom: 40px; }
.clb-classification-footnotes ul { margin: 14px 0; }
.clb-classification-footnotes li { padding: 6px 0 6px 20px; position: relative; font-size: 0.88rem; }
.clb-classification-footnotes li::before { content: '—'; position: absolute; left: 0; color: var(--clb-wood); }

/* -------------------- Responsive -------------------- */
@media (max-width: 1024px) {
	.clb-presentation-grid, .clb-chalet-intro-grid, .clb-reservation-grid, .clb-contact-grid { grid-template-columns: minmax(0, 1fr); }
	.clb-highlights-grid, .clb-rooms-grid, .clb-testimonials-grid, .clb-activities-grid, .clb-posts-grid { grid-template-columns: repeat(2, 1fr); }
	.clb-classification-grid { grid-template-columns: repeat(2, 1fr); }
	.clb-gallery-grid, .clb-gallery-grid--full { grid-template-columns: repeat(3, 1fr); }
	.clb-footer-top { grid-template-columns: 1fr 1fr; }
}
/* Sélecteur de langue mobile : dupliqué du menu (masqué par défaut sur bureau),
   affiché en permanence à côté du bouton menu sur mobile — voir media query. */
.clb-mobile-lang-switcher { display: none; }

@media (max-width: 880px) {
	.clb-header-inner { display: flex; align-items: center; }
	.clb-nav-toggle { display: flex !important; }
	.clb-mobile-lang-switcher { display: flex; align-items: center; margin-left: auto; margin-right: 14px; }
	.clb-logo-text { font-size: 1.15rem; }
	.clb-primary-nav {
		display: flex; /* annule le display:contents du bureau, indispensable ici */
		position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
		background: var(--clb-snow);
		flex-direction: column;
		padding: 30px 24px;
		transform: translateX(100%);
		transition: transform 0.3s ease;
		overflow-y: auto;
	}
	.clb-primary-nav.is-open { transform: translateX(0); }
	.clb-menu { flex-direction: column; gap: 18px; }
	.clb-header-actions { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 24px; }
	/* Le panneau mobile a toujours un fond clair (var(--clb-snow)), quelle que soit
	   la page ou la position de scroll : le texte doit donc toujours être foncé ici,
	   contrairement au menu desktop qui peut reposer sur une photo. */
	.clb-primary-nav .clb-menu a,
	.clb-primary-nav .clb-lang-switcher li a {
		color: var(--clb-anthracite);
		text-shadow: none;
		font-weight: 600;
	}
	.clb-primary-nav .clb-menu a::after { background: var(--clb-pine); }
	.clb-highlights-grid, .clb-rooms-grid, .clb-testimonials-grid, .clb-activities-grid, .clb-posts-grid, .clb-conditions-grid { grid-template-columns: 1fr; }
	.clb-classification-grid { grid-template-columns: 1fr; }
	.clb-classification-intro { flex-direction: column; align-items: center; text-align: center; }
	.clb-gallery-grid, .clb-gallery-grid--full { grid-template-columns: repeat(2, 1fr); }
	.clb-form-row--split { grid-template-columns: 1fr; }
	.clb-hero-meta { flex-wrap: wrap; }
	.clb-footer-top { grid-template-columns: 1fr; }
	.clb-intranet-docs-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FILET DE SÉCURITÉ : reproduit le mode mobile de l'en-tête via
   une classe posée en JavaScript (largeur réelle mesurée), pour
   les cas où un navigateur évaluerait la media query CSS
   ci-dessus différemment de la largeur réelle de l'écran.
   ============================================================ */
.clb-site-header.clb-force-mobile .clb-header-inner { display: flex; align-items: center; }
.clb-site-header.clb-force-mobile .clb-nav-toggle { display: flex !important; }
.clb-site-header.clb-force-mobile .clb-mobile-lang-switcher { display: flex; align-items: center; margin-left: auto; margin-right: 14px; }
.clb-site-header.clb-force-mobile .clb-logo-text { font-size: 1.15rem; }
.clb-site-header.clb-force-mobile .clb-primary-nav {
	display: flex;
	position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
	background: var(--clb-snow);
	flex-direction: column;
	padding: 30px 24px;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
}
.clb-site-header.clb-force-mobile .clb-primary-nav.is-open { transform: translateX(0); }
.clb-site-header.clb-force-mobile .clb-menu { flex-direction: column; gap: 18px; }
.clb-site-header.clb-force-mobile .clb-header-actions { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 24px; }
.clb-site-header.clb-force-mobile .clb-primary-nav .clb-menu a,
.clb-site-header.clb-force-mobile .clb-primary-nav .clb-lang-switcher li a {
	color: var(--clb-anthracite);
	text-shadow: none;
	font-weight: 600;
}
.clb-site-header.clb-force-mobile .clb-primary-nav .clb-menu a::after { background: var(--clb-pine); }
