/* ==========================================================================
   Mise en page globale — en-tête, menu mobile, barre de contact, pied.
   Maquette : Entete.dc.html, Pied.dc.html, Composants « En-têtes & navigation ».
   ========================================================================== */

/* ------------------------------------------------------------------- Logo */
.logo { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__name { font-family: var(--font-display); font-size: clamp(20px, 1.9vw, 26px); }
.logo__script { font-family: var(--font-script); font-size: clamp(17px, 1.6vw, 22px); color: var(--accent); padding-left: clamp(48px, 4.4vw, 64px); }
.logo__img { width: auto; height: clamp(56px, 6vw, 80px); max-height: none; background: none; }
/* Logo (dessin à l'encre, noir sur transparent) passé en blanc sur la photo d'accueil. */
.site-header--hero:not(.is-scrolled) .logo__img { filter: invert(1); }
.site-footer__brand .logo { align-self: flex-start; }
.site-footer__brand .logo__img { height: 96px; width: auto; align-self: flex-start; } /* colonne flex : sinon l'image s'étire en largeur */

/* -------------------------------------------------------------- En-tête */
.site-header {
	position: sticky; top: 0; z-index: 100;
	height: 104px;
	background: var(--bg); color: var(--ink);
	border-bottom: 1px solid var(--line);
	font-family: var(--font-ui);
	transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}
.admin-bar .site-header { top: 32px; }
.site-header__inner { height: 100%; padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.site-header__nav ul { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.site-header__nav a {
	display: block; padding: 6px 0;
	font-size: var(--fs-ui); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
	color: inherit; border-bottom: 1px solid transparent;
}
.site-header__nav a:hover { color: var(--accent); }
.site-header__nav .current-menu-item > a,
.site-header__nav .current-menu-ancestor > a,
.site-header__nav .current-page-ancestor > a,
.site-header__nav .current_page_parent > a { border-bottom-color: currentColor; }

/* Sous-menus (Prestations, La location) : ouverts au survol, au focus ou au clic
   (bouton ajouté par nav.js). Rubrique sans page (lien « # ») : le libellé devient le bouton. */
.site-header__nav .menu-principal > li { position: relative; display: flex; align-items: center; gap: 4px; }
.nav-parent, .nav-chevron {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: inherit; cursor: pointer;
	font: 500 var(--fs-ui)/normal var(--font-ui); letter-spacing: .18em; text-transform: uppercase;
}
.nav-chevron { justify-content: center; min-width: 24px; min-height: 24px; padding: 6px 2px; } /* cible tactile ≥ 24 px (WCAG 2.5.8) */
.nav-parent svg, .nav-chevron svg { width: 10px; height: 10px; transition: transform var(--t-hover) ease; }
.site-header__nav li.is-open > .nav-parent svg, .site-header__nav li.is-open > .nav-chevron svg { transform: rotate(180deg); }
.site-header__nav .current-menu-ancestor > .nav-parent { border-bottom-color: currentColor; }
.site-header__nav .sub-menu {
	display: none; position: absolute; top: calc(100% + 8px); left: -24px; z-index: 20;
	flex-direction: column; gap: 0; min-width: 260px; padding: 12px 0;
	background: var(--bg); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-float);
}
.site-header__nav .sub-menu::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; } /* pont pour le survol */
.site-header__nav li.is-open > .sub-menu,
.site-header__nav li:hover > .sub-menu { display: flex; } /* clavier : bouton (Échap referme) */
html:not(.js) .site-header__nav li:focus-within > .sub-menu { display: flex; } /* sans JS */
.site-header__nav .sub-menu a { padding: 10px 24px; border: 0; color: var(--ink); letter-spacing: .14em; }
.site-header__nav .sub-menu a:hover, .site-header--hero .site-header__nav .sub-menu a:hover { color: var(--accent); opacity: 1; }
.site-header__nav .sub-menu .current-menu-item > a { color: var(--accent); }
.site-header__cta {
	display: flex; align-items: center; min-height: 48px; padding: 0 24px;
	border: 1px solid currentColor; color: inherit;
	font-size: var(--fs-ui); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
	transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.site-header__cta:hover { background: var(--ink); color: var(--bg); }
.site-header__burger { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: inherit; align-items: center; justify-content: center; margin-right: -12px; }

/* Variante hero (accueil) : posé sur la photo, texte clair, puis clair au défilement. */
.site-header--hero { position: fixed; left: 0; right: 0; background: transparent; color: var(--on-dark); border-bottom-color: transparent; }
.site-header--hero .logo, .site-header--hero .logo__script { color: var(--on-dark); }
.site-header--hero .site-header__nav a:hover { color: var(--on-dark); opacity: .8; }
.site-header--hero .site-header__cta:hover { background: var(--on-dark); color: var(--dark); }
.site-header--hero.is-scrolled { background: var(--bg); color: var(--ink); border-bottom-color: var(--line); height: 88px; }
.site-header--hero.is-scrolled .logo { color: var(--ink); }
.site-header--hero.is-scrolled .logo__script { color: var(--accent); }
.site-header--hero.is-scrolled .site-header__nav a:hover { color: var(--accent); opacity: 1; }
.site-header--hero.is-scrolled .site-header__cta:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 1100px) {
	.site-header__nav, .site-header__cta { display: none; }
	.site-header__burger { display: flex; }
}
/* Texte agrandi par le kit conformité (zoom 115 % / 130 %) : le menu complet ne tient
   plus, le burger prend le relais plus tôt (1100 px × échelle). */
@media (max-width: 1265px) {
	html[data-rcpanel-text="115"] .site-header__nav, html[data-rcpanel-text="115"] .site-header__cta { display: none; }
	html[data-rcpanel-text="115"] .site-header__burger { display: flex; }
}
@media (max-width: 1430px) {
	html[data-rcpanel-text="130"] .site-header__nav, html[data-rcpanel-text="130"] .site-header__cta { display: none; }
	html[data-rcpanel-text="130"] .site-header__burger { display: flex; }
}
@media (max-width: 900px) {
	.site-header, .site-header--hero.is-scrolled { height: 72px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header:not(.site-header--hero) { top: 0; } }

/* ------------------------------------------------------- Menu plein écran */
.menu-mobile {
	position: fixed; inset: 0; z-index: 1600; /* au-dessus du bandeau cookies quand il est ouvert */
	display: flex; flex-direction: column;
	background: var(--bg); color: var(--ink); font-family: var(--font-ui);
	overflow-y: auto;
	animation: menu-in .35s var(--ease);
}
.menu-mobile[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.menu-mobile__top { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h, 72px); padding: 0 var(--gutter); }
/* Croix à la place exacte du burger (positions posées par nav.js à l'ouverture). */
.menu-mobile__close { position: absolute; top: var(--burger-top, 12px); right: var(--burger-right, calc(var(--gutter) - 12px)); width: 48px; height: 48px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.menu-mobile__nav { padding: 32px 28px 0; }
.menu-mobile__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.menu-mobile__list a { font-family: var(--font-display); font-size: 34px; line-height: 1.5; text-decoration: none; color: var(--ink); }
.menu-mobile__list .current-menu-item a { color: var(--accent); }
.menu-mobile__list .sub-menu { margin: 0 0 8px; padding: 0 0 0 18px; list-style: none; border-left: 1px solid var(--line); }
.menu-mobile__list .sub-menu a { font-family: var(--font-body); font-size: 22px; line-height: 1.6; }
.menu-mobile__rubrique { font-family: var(--font-display); font-size: 34px; line-height: 1.5; color: var(--ink); }
.menu-mobile__foot { margin-top: auto; padding: 28px; display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--line); }
.menu-mobile__foot .btn { width: 100%; letter-spacing: .16em; }
.menu-mobile__infos { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; }
.menu-mobile__infos a { color: var(--ink-soft); text-decoration: none; }
body.menu-open { overflow: hidden; }

/* ----------------------------------------- Barre « Me contacter » mobile */
.cta-mobile { display: none; }
@media (max-width: 900px) {
	.cta-mobile {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		display: flex; gap: 8px; padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
		background: var(--bg); box-shadow: 0 -8px 24px rgba(30, 26, 23, .12);
		font-family: var(--font-ui);
		transform: translateY(110%); transition: transform .4s var(--ease);
	}
	.cta-mobile.is-visible { transform: none; }
	/* Tant que le bandeau cookies est ouvert (classe posée par nav.js), la barre s'efface pour ne pas s'y superposer. */
	html.faircb-banner-open .cta-mobile.is-visible { transform: translateY(110%); }
	.cta-mobile__main {
		flex: 1; display: flex; align-items: center; justify-content: center; min-height: 52px;
		background: var(--ink); color: var(--bg);
		font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
	}
	.cta-mobile__main:hover { color: var(--bg); }
	.cta-mobile__tel { display: flex; align-items: center; justify-content: center; width: 52px; min-height: 52px; border: 1px solid var(--ink); color: var(--ink); }
	body:has(.cta-mobile.is-visible) .site-footer { padding-bottom: 120px; }
}

/* -------------------------------------------------------------- Pied */
.site-footer { padding: clamp(64px, 6.7vw, 96px) var(--gutter) 40px; background: var(--bg-alt); color: var(--ink); font-family: var(--font-ui); }
.site-footer__inner { max-width: var(--wide); margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand .logo__name { font-size: 30px; }
.site-footer__brand .logo__script { font-size: 26px; padding-left: 74px; }
.site-footer__brand p { max-width: 340px; font-family: var(--font-body); font-size: 19px; line-height: 1.55; color: var(--ink-soft); }
.site-footer__col { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.site-footer__title { padding-bottom: 6px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.site-footer__links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.site-footer__links a, .site-footer__links span { display: flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--ink); }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__links .is-break { word-break: break-all; }
.site-footer__col--social { gap: 12px; }
.site-footer__col--social .site-footer__title { padding-bottom: 0; }
.social { display: flex; gap: 10px; }
.social a { width: 48px; height: 48px; border: 1px solid currentColor; display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.social a:hover { background: var(--ink); color: var(--bg); }
.site-footer__seo { padding-top: 28px; border-top: 1px solid var(--line); }
.site-footer__seo-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; }
.site-footer__seo-list a { text-decoration: none; color: var(--ink-soft); }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-soft); }
.site-footer__legal { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__legal a { color: var(--ink-soft); }
@media (max-width: 900px) {
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------ Pages génériques */
.page-simple { padding: 40px var(--gutter) var(--section); }
.page-simple__inner { max-width: var(--text); margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }

/* Modèles Elementor : aucun conteneur ni marge du thème. */

/* Widgets d'extensions (bandeau cookies, accessibilité) : au-dessus du site,
   mais SOUS l'intro d'ouverture (z-index 2000) et la lightbox. */

/* Entre 1101 et 1320 px, le menu complet tient sur une ligne : libellés
   insécables, espacements resserrés (la maquette ne montre que 1440). */
.logo__name, .site-header__nav a, .site-header__cta { white-space: nowrap; }
@media (max-width: 1320px) {
	.site-header__inner { gap: 16px; }
	.site-header__nav ul { gap: 18px; }
	.site-header__nav a, .site-header__cta { letter-spacing: .12em; }
	.site-header__cta { padding: 0 16px; }
}
