/* =========================================================
   Plâtrier DL — thème « Noir & Or »
   Surcouche personnalisée par-dessus Bootstrap 5
   Indentation : tabulations (largeur 4)
   ========================================================= */

:root {
	--bg: #0E0E10;
	--bg-alt: #141417;
	--bg-card: #161619;
	--border: #26262a;
	--border-soft: #1e1e22;
	--gold: #C6A15B;
	--gold-dark: #b08d47;
	--text: #EDE7DA;
	--text-muted: #b8b3aa;
	--text-soft: #c9c4ba;
	--text-dim: #8a8a90;
	--serif: 'Cormorant Garamond', serif;
	--sans: 'Jost', sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	overflow-x: hidden;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color .15s ease;
}

a:hover {
	color: var(--gold);
}

.serif {
	font-family: var(--serif);
}

/* Conteneur global du site */
.site {
	max-width: 1800px;
	margin: 0 auto;
}

/* ---------- Typographie utilitaire ---------- */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 16px;
}

.eyebrow .line {
	width: 28px;
	height: 1px;
	background: var(--gold);
	display: inline-block;
}

.text-muted-dl {
	color: var(--text-muted);
}

.text-dim {
	color: var(--text-dim);
}

/* ---------- Boutons ---------- */
.btn-gold {
	background: var(--gold);
	color: var(--bg);
	font-weight: 600;
	letter-spacing: .05em;
	border: none;
	border-radius: 2px;
	padding: 14px 28px;
	transition: background .15s ease, color .15s ease;
}

.btn-gold:hover {
	background: var(--gold-dark);
	color: var(--bg);
}

.btn-outline-gold {
	background: transparent;
	color: var(--gold);
	border: 1px solid var(--gold);
	border-radius: 2px;
	font-weight: 600;
	letter-spacing: .05em;
	padding: 14px 26px;
	transition: background .15s ease, color .15s ease;
}

.btn-outline-gold:hover {
	background: var(--gold);
	color: var(--bg);
}

.btn-outline-light {
	background: transparent;
	color: var(--text);
	border: 1px solid #3a3a40;
	border-radius: 2px;
	letter-spacing: .05em;
	padding: 14px 26px;
	transition: border-color .15s ease, color .15s ease;
}

.btn-outline-light:hover {
	border-color: var(--gold);
	color: var(--gold);
}

/* ---------- Barre de navigation ---------- */
.navbar-dl {
	background: var(--bg);
	border-bottom: 1px solid var(--border-soft);
	padding: 16px 0;
}

/* La marque peut rétrécir ; le hamburger reste à droite sur une seule ligne
   (le menu déroulant conserve son flex-wrap pour s'ouvrir sous la barre) */
.navbar-dl .navbar-brand {
	min-width: 0;
	flex: 0 1 auto;
	overflow: hidden;
}

.navbar-dl .brand-text {
	min-width: 0;
	overflow: hidden;
}

.navbar-dl .brand-name,
.navbar-dl .brand-tagline {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.navbar-dl .navbar-toggler {
	flex-shrink: 0;
	margin-left: auto;
}

.navbar-dl .brand-logo {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.navbar-dl .brand-name {
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: .16em;
	color: var(--text);
	line-height: 1.1;
}

.navbar-dl .brand-tagline {
	font-size: 9px;
	letter-spacing: .28em;
	color: var(--text-dim);
	text-transform: uppercase;
}

.navbar-dl .nav-link {
	color: var(--text-soft);
	font-size: 13px;
	letter-spacing: .08em;
	padding: 8px 14px;
}

.navbar-dl .nav-link:hover,
.navbar-dl .nav-link.active {
	color: var(--gold);
}

/* Bouton hamburger */
.navbar-dl .navbar-toggler {
	border: 1px solid var(--border);
	padding: 6px 10px;
	border-radius: 2px;
}

.navbar-dl .navbar-toggler:focus {
	box-shadow: none;
}

.navbar-dl .navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C6A15B' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Sections ---------- */
.section {
	padding: 56px 0;
}

.section-tight {
	padding: 36px 0;
}

.divider-top {
	border-top: 1px solid var(--border-soft);
}

.hero {
	background: radial-gradient(120% 90% at 15% 0%, #16161a 0%, var(--bg) 60%);
}

.hero-title {
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(38px, 7vw, 62px);
	line-height: 1.05;
	letter-spacing: .01em;
	margin: 0 0 20px;
}

.section-title {
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(30px, 5vw, 44px);
	line-height: 1.15;
	margin: 0 0 16px;
}

.lead-dl {
	font-size: clamp(15px, 2.2vw, 18px);
	line-height: 1.7;
	color: var(--text-muted);
}

/* Badge « Licence RBQ » */
.rbq-badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: rgba(198, 161, 91, .08);
	border: 1px solid rgba(198, 161, 91, .45);
	border-radius: 3px;
	padding: 9px 14px;
	font-size: 13px;
	letter-spacing: .04em;
	color: var(--text-soft);
}

.rbq-badge svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--gold);
}

.rbq-badge strong {
	color: var(--gold);
	font-weight: 600;
	letter-spacing: .02em;
}

/* Petite mention RBQ sous le bouton du formulaire */
.rbq-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 14px;
	font-size: 12px;
	color: var(--text-dim);
}

.rbq-note svg {
	width: 14px;
	height: 14px;
	color: var(--gold);
	flex-shrink: 0;
}

/* Liste à puces dorées */
.check-list {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
	display: grid;
	gap: 12px;
}

.check-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	color: var(--text-soft);
}

.check-list li::before {
	content: "";
	width: 7px;
	height: 7px;
	background: var(--gold);
	border-radius: 50%;
	flex-shrink: 0;
}

/* Statistiques */
.stat-value {
	font-family: var(--serif);
	font-size: 34px;
	color: var(--gold);
	line-height: 1;
}

.stat-label {
	font-size: 12px;
	letter-spacing: .1em;
	color: var(--text-dim);
	text-transform: uppercase;
	margin-top: 4px;
}

/* ---------- Cartes ---------- */
.card-dl {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 30px 28px;
	height: 100%;
}

.card-dl h3,
.card-dl .card-title {
	font-family: var(--serif);
	font-weight: 600;
	color: var(--text);
	margin: 0 0 12px;
}

.card-dl p {
	font-size: 14px;
	line-height: 1.7;
	color: var(--text-muted);
	margin: 0;
}

.card-icon {
	width: 46px;
	height: 46px;
	border: 1px solid var(--gold);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gold);
	font-family: var(--serif);
	font-size: 22px;
	margin-bottom: 20px;
}

.card-num {
	font-family: var(--serif);
	font-size: 40px;
	color: #3a3a3a;
	margin-bottom: 8px;
	line-height: 1;
}

.card-list {
	list-style: none;
	padding: 0;
	margin: 18px 0 0;
	font-size: 14px;
	color: var(--text-soft);
	display: grid;
	gap: 10px;
}

.link-gold {
	display: inline-block;
	color: var(--gold);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .05em;
	border-bottom: 1px solid var(--gold);
	padding-bottom: 2px;
	margin-top: 18px;
}

.link-gold:hover {
	color: var(--gold-dark);
	border-color: var(--gold-dark);
}

/* Zones desservies */
.zone-pill {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 3px;
	padding: 14px 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--text-soft);
}

.zone-pill::before {
	content: "";
	width: 6px;
	height: 6px;
	background: var(--gold);
	border-radius: 50%;
	flex-shrink: 0;
}

/* Bouton « Afficher plus / moins de zones » : libellé selon l'état
   (Bootstrap ajoute .collapsed au bouton quand la liste est repliée) */
.zones-toggle .when-expanded {
	display: none;
}

.zones-toggle:not(.collapsed) .when-collapsed {
	display: none;
}

.zones-toggle:not(.collapsed) .when-expanded {
	display: inline;
}

/* ---------- Formulaire de soumission ---------- */
.quote-form {
	background: var(--bg-card);
	border: 1px solid #2a2a30;
	border-top: 3px solid var(--gold);
	padding: 32px 28px;
	border-radius: 4px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}

.quote-form .form-title {
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 600;
	margin-bottom: 4px;
}

.quote-form .form-sub {
	font-size: 13px;
	color: var(--text-dim);
	margin-bottom: 22px;
}

.quote-form .form-control,
.quote-form .form-select {
	background: var(--bg);
	border: 1px solid #2f2f36;
	color: var(--text);
	border-radius: 2px;
	padding: 12px 14px;
	font-size: 14px;
	font-family: var(--sans);
	margin-bottom: 12px;
}

.quote-form .form-control::placeholder {
	color: var(--text-dim);
}

.quote-form .form-control:focus,
.quote-form .form-select:focus {
	background: var(--bg);
	color: var(--text);
	border-color: var(--gold);
	box-shadow: 0 0 0 .15rem rgba(198, 161, 91, .2);
}

.quote-form textarea.form-control {
	resize: none;
}

/* Honeypot anti-robots : invisible pour les humains, sans display:none
   (certains robots ignorent les champs en display:none) */
.hp-field {
	position: absolute;
	left: -5000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Emplacements d'images (galerie) ---------- */
.image-slot {
	width: 100%;
	height: 100%;
	min-height: 200px;
	border-radius: 6px;
	background: linear-gradient(135deg, #1a1a1f 0%, #141417 100%);
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-dim);
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: center;
	padding: 12px;
}

/* Photo réelle dans une tuile de galerie */
.gallery-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 210px;
	gap: 16px;
}

.gallery-grid .feature {
	grid-column: span 2;
	grid-row: span 2;
}

.gallery-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: 260px;
	gap: 18px;
}

/* ---------- Bande d'appel à l'action ---------- */
.cta-band {
	background: linear-gradient(90deg, #161619, var(--bg));
	border-top: 1px solid var(--border);
	padding: 48px 0;
}

.cta-title {
	font-family: var(--serif);
	font-size: clamp(24px, 4vw, 30px);
	font-weight: 600;
}

/* ---------- Pied de page ---------- */
.footer-dl {
	padding: 28px 0;
	font-size: 12px;
	color: #6f6f76;
	letter-spacing: .06em;
	border-top: 1px solid var(--border-soft);
}

/* ---------- Administration ---------- */
body.admin {
	background: var(--bg);
	color: var(--text);
}

.admin .form-label {
	display: block;
	font-size: 12px;
	letter-spacing: .06em;
	margin-bottom: 6px;
}

/* Tuiles draggables (aperçu identique au site) */
.admin-tile {
	position: relative;
	cursor: grab;
	overflow: hidden;
	border-radius: 6px;
}

.admin-tile:active {
	cursor: grabbing;
}

.admin-tile .gallery-photo {
	pointer-events: none; /* le drag se fait sur la tuile, pas l'image */
}

.admin-tile-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 16px 12px 8px;
	font-size: 12px;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, .75));
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.admin-tile-delete {
	position: absolute;
	top: 6px;
	right: 6px;
	margin: 0;
}

.admin-tile-delete button {
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 50%;
	background: rgba(14, 14, 16, .8);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.admin-tile-delete button:hover {
	background: #b02a37;
}

.admin-tile-ghost {
	opacity: .4;
	outline: 2px dashed var(--gold);
}

/* =========================================================
   Adaptations mobiles / tablettes
   ========================================================= */
@media (max-width: 991.98px) {
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 180px;
	}

	.gallery-grid .feature {
		grid-column: span 2;
		grid-row: span 1;
	}

	.gallery-grid-3 {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 200px;
	}
}

@media (max-width: 575.98px) {
	.section {
		padding: 40px 0;
	}

	/* Marque réduite sur mobile pour garder le hamburger à droite,
	   sans masquer la tagline */
	.navbar-dl .brand-logo {
		width: 42px;
		height: 42px;
	}

	.navbar-dl .navbar-brand {
		gap: 10px !important;
	}

	.navbar-dl .brand-name {
		font-size: 16px;
		letter-spacing: .1em;
	}

	.navbar-dl .brand-tagline {
		font-size: 7.5px;
		letter-spacing: .16em;
	}

	.gallery-grid,
	.gallery-grid-3 {
		grid-template-columns: 1fr;
		grid-auto-rows: 220px;
	}

	.gallery-grid .feature {
		grid-column: span 1;
	}

	.quote-form {
		padding: 26px 20px;
	}
}
