/*
Theme Name: Flight-Online Modern
Theme URI: https://www.flight-online.fr
Author: Flight-Online
Description: Thème sombre haut de gamme, inspiré des pages produit d'Apple, pour Flight-Online.fr, fabricant français de flight cases sur mesure. Tuiles photo par gamme, onglets, flight case 3D réglable, formulaire de devis intégré, adaptatif sur téléphone, tablette et ordinateur.
Version: 1.1.0
Requires at least: 6.0
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: flight-online-modern
Tags: dark, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */
:root {
	--bg: #000;
	--bg-1: #0b0b0c;
	--surface: #1d1d1f;
	--surface-2: #2a2a2d;
	--text: #f5f5f7;
	--muted: #a1a1a6;
	--line: rgba(255, 255, 255, .16);
	--blue: #0071e3;
	--blue-hover: #147ce5;
	--link: #2997ff;
	--ok: #30d158;
	--err: #ff453a;

	--font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

	--radius: 28px;
	--radius-sm: 14px;
	--gutter: clamp(1.25rem, 5vw, 2.5rem);
	--header-h: 56px;
	--max: 1180px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.47;
	letter-spacing: -.01em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection { background: rgba(41, 151, 255, .45); }

.container {
	width: 100%;
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.sr-only, .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 1rem; top: -4rem;
	z-index: 1000;
	padding: .75rem 1.1rem;
	background: #fff; color: #000;
	border-radius: 999px;
	font-weight: 600;
}
.skip-link:focus { top: 1rem; text-decoration: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   3. Boutons et liens
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .7rem 1.4rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--blue);
	color: #fff;
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s;
	-webkit-appearance: none;
	appearance: none;
}
.btn:hover { background: var(--blue-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }

.btn--lg { min-height: 52px; padding: .85rem 1.9rem; font-size: 1.1875rem; }
.btn--small { min-height: 34px; padding: .4rem 1rem; font-size: .875rem; }

.btn--primary, .btn--tape { background: var(--blue); color: #fff; }

.btn--dark { background: var(--text); color: #1d1d1f; }
.btn--dark:hover { background: #fff; }

.btn--ghost { background: transparent; color: var(--link); border-color: var(--link); }
.btn--ghost:hover { background: rgba(41, 151, 255, .12); }

.link-arrow { font-size: 1.1875rem; line-height: 1.3; }
.link-arrow::after { content: "\203A"; display: inline-block; margin-left: .3em; transition: transform .2s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ==========================================================================
   4. En-tête et navigation
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	border-bottom: 1px solid transparent;
	transition: border-color .3s;
}
/* Le flou est porté par un pseudo-élément : un backdrop-filter sur l'en-tête
   piégerait le menu mobile (position: fixed) dans la hauteur de l'en-tête. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(0, 0, 0, .72);
	-webkit-backdrop-filter: saturate(180%) blur(24px);
	backdrop-filter: saturate(180%) blur(24px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 28px; width: auto; max-width: 150px; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav__list a {
	color: rgba(245, 245, 247, .82);
	font-size: .875rem;
	letter-spacing: -.005em;
	transition: color .2s;
	white-space: nowrap;
}
.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a { color: #fff; text-decoration: none; }

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	margin-right: -10px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--text);
	cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before {
	display: block;
	width: 18px; height: 1.5px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .3s;
}
.nav-toggle__bars { position: relative; transform: translateY(-3.5px); }
.nav-toggle__bars::before { content: ""; position: absolute; top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-7px) rotate(-90deg); }

@media (max-width: 959px) {
	.nav-toggle { display: inline-flex; }

	.nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		z-index: 99;
		display: none;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
		background: rgba(0, 0, 0, .96);
		-webkit-backdrop-filter: blur(24px);
		backdrop-filter: blur(24px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	.nav-open .nav { display: flex; }
	.nav-open { overflow: hidden; }

	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list a {
		display: block;
		padding: .9rem 0;
		border-bottom: 1px solid var(--line);
		color: var(--text);
		font-size: 1.5rem;
		font-weight: 600;
		letter-spacing: -.02em;
		white-space: normal;
	}
	.nav__cta { margin-top: 1.5rem; min-height: 52px; font-size: 1.0625rem; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero {
	position: relative;
	padding-top: clamp(2.5rem, 7vw, 4.5rem);
	text-align: center;
	background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(41, 151, 255, .12), transparent 70%), var(--bg);
	overflow: hidden;
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero__title {
	max-width: 22ch;
	margin-inline: auto;
	font-size: clamp(2.5rem, 7.4vw, 5rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -.04em;
}
.hero__lead {
	max-width: 40rem;
	margin: 1.25rem auto 0;
	color: var(--muted);
	font-size: clamp(1.125rem, 2.4vw, 1.5rem);
	line-height: 1.35;
	letter-spacing: -.015em;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 1.75rem;
	margin: 2rem 0 0;
}

/* Apparition unique au chargement */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__title, .hero__lead, .hero__actions { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__lead { animation-delay: .12s; }
.hero__actions { animation-delay: .24s; }

/* ==========================================================================
   5b. Slider de réalisations (articles du site)
   ========================================================================== */
.reel { --p: 0; --dur: 9s; padding: clamp(1.5rem, 5vw, 3rem) 0 clamp(3rem, 8vw, 5.5rem); background: var(--bg); }
.reel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.reel__title { font-size: clamp(1.75rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -.035em; }

.reel__viewport { --pad: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.reel__track {
	position: relative;
	display: flex;
	gap: clamp(10px, 1.6vw, 18px);
	margin: 0;
	padding: 6px var(--pad);
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--pad);
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	transition: opacity .35s ease;
}
.reel__track::-webkit-scrollbar { display: none; }
.reel__track:focus-visible { outline-offset: -4px; }
.reel__track.is-rewind { opacity: 0; }

.slide {
	position: relative;
	flex: none;
	width: min(86vw, 520px);
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 22px;
	background: radial-gradient(ellipse 90% 80% at 50% 35%, hsl(var(--h, 215) 28% 22%), hsl(var(--h, 215) 22% 9%));
	scroll-snap-align: start;
	isolation: isolate;
	opacity: .5;
	transform: scale(.965);
	transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.slide.is-active { opacity: 1; transform: none; }

.slide__link { position: absolute; inset: 0; display: block; color: #fff; }
.slide__link:hover { text-decoration: none; }
.slide__link:focus-visible { outline-offset: -6px; border-radius: inherit; }

/* Photo : remplit la diapositive (cover). Si son format est trop éloigné, le script ajoute
   .is-contain : photo entière, sur un fond flou tiré de la même photo. */
.slide__bg { position: absolute; inset: -10%; z-index: -3; display: none; background-position: center; background-size: cover; filter: blur(32px) saturate(1.15) brightness(.55); }
.slide.is-contain .slide__bg { display: block; }
.slide__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; -webkit-user-drag: none; user-select: none; }
.slide.is-contain .slide__img { object-fit: contain; object-position: center; }
.slide.is-active .slide__img { animation: kenburns var(--dur) cubic-bezier(.25, .1, .25, 1) both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
.reel.is-paused .slide.is-active .slide__img,
.reel.is-held .slide.is-active .slide__img { animation-play-state: paused; }

.slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, .74) 100%); pointer-events: none; }
.slide__ph { position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; padding-bottom: 22%; color: hsl(var(--h, 215) 30% 52% / .55); }
.slide__ph .tile__icon { width: clamp(88px, 22vw, 150px); height: auto; }

.slide__text { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .3rem; padding: clamp(1.1rem, 3vw, 2.25rem); padding-right: clamp(4.25rem, 9vw, 6rem); }
.slide__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: clamp(1.2rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; text-wrap: balance; }
.slide__meta { color: rgba(245, 245, 247, .72); font-size: .9375rem; }

.slide__go {
	position: absolute;
	right: clamp(1rem, 2.5vw, 1.75rem);
	bottom: clamp(1rem, 2.5vw, 1.75rem);
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	background: rgba(255, 255, 255, .16);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-radius: 50%;
	color: #fff;
	transition: background-color .3s, color .3s, transform .3s;
}
@media (hover: hover) {
	.slide__link:hover .slide__go { background: #fff; color: #000; transform: scale(1.08); }
}
.slide__link:focus-visible .slide__go { background: #fff; color: #000; }

@media (min-width: 720px) {
	.slide { width: min(78vw, 1000px); aspect-ratio: 16 / 9; border-radius: var(--radius); }
}

.reel__controls { position: relative; display: flex; align-items: center; justify-content: center; margin-top: 1.25rem; }
.reel__bar { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .6rem; background: var(--surface); border-radius: 999px; }
.reel__dots { display: flex; align-items: center; }
.reel__dot { position: relative; width: 24px; height: 28px; padding: 0; background: none; border: 0; cursor: pointer; }
.reel__dot::before, .reel__dot::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 99px; }
.reel__dot::before { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: #6e6e73; transition: width .4s, margin .4s, background-color .4s; }
.reel__dot.is-active::before { width: 28px; margin-left: -14px; background: #48484c; }
/* Barre de progression : se remplit pendant la durée d'affichage de la photo */
.reel__dot::after { width: 28px; height: 7px; margin: -3.5px 0 0 -14px; background: var(--text); opacity: 0; transform: scaleX(0); transform-origin: left center; }
.reel__dot.is-active::after { opacity: 1; transform: scaleX(var(--p, 0)); }
.reel:not(.is-playing) .reel__dot.is-active::after { transform: none; }

.reel__counter { display: none; min-width: 3.4rem; padding: 0 .4rem; color: var(--muted); font-size: .875rem; text-align: center; font-variant-numeric: tabular-nums; }
.reel--many .reel__dots { display: none; }
.reel--many .reel__counter { display: block; }

.reel__play { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--text); cursor: pointer; }
.reel__play:hover { background: var(--surface-2); }
.reel__play .ico-play { display: none; }
.reel__play[aria-pressed="true"] .ico-play { display: block; }
.reel__play[aria-pressed="true"] .ico-pause { display: none; }

.reel__arrows { display: none; }
@media (min-width: 720px) {
	.reel__arrows { position: absolute; right: var(--gutter); top: 50%; display: flex; gap: .5rem; transform: translateY(-50%); }
	.reel__arrow { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; background: var(--surface); border: 0; border-radius: 50%; color: var(--text); cursor: pointer; transition: background-color .2s; }
	.reel__arrow:hover { background: var(--surface-2); }
}

@media (prefers-reduced-motion: reduce) {
	.slide.is-active .slide__img { animation: none; }
	.slide { transform: none; }
}

/* ==========================================================================
   7. Sections génériques
   ========================================================================== */
.section { padding: clamp(3.5rem, 10vw, 7rem) 0; }
.section__title {
	font-size: clamp(2rem, 5.6vw, 3.5rem);
	font-weight: 700;
	letter-spacing: -.04em;
	line-height: 1.07;
}
.section__intro {
	max-width: 40rem;
	margin: 1rem 0 0;
	color: var(--muted);
	font-size: clamp(1.0625rem, 2vw, 1.3125rem);
	line-height: 1.4;
}

/* ==========================================================================
   8. Tuiles photo des gammes
   ========================================================================== */
.gammes { background: var(--bg-1); }

.tiles {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-top: clamp(2rem, 5vw, 3.5rem);
	list-style: none;
}

.tile { position: relative; min-width: 0; }
.tile__link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 280px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 22px;
	background: var(--surface);
	color: var(--text);
	isolation: isolate;
}
.tile__link:hover { text-decoration: none; }

.tile__img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	z-index: -2;
	transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.tile__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 0, .0) 40%, rgba(0, 0, 0, .78) 100%);
}
.tile__ph {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: grid;
	place-items: center;
	padding-bottom: 18%;
	color: #5a5a60;
	background: radial-gradient(ellipse 80% 70% at 50% 40%, #2a2a2e, #161618);
}
.tile__icon { width: clamp(72px, 14vw, 120px); height: auto; }

.tile__text {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	display: flex;
	flex-direction: column;
	gap: .25rem;
	padding: clamp(1.1rem, 3vw, 1.75rem);
}
.tile__name {
	font-size: clamp(1.3rem, 2.4vw, 1.75rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.025em;
	text-wrap: balance;
}
.tile__count { color: rgba(245, 245, 247, .72); font-size: .9375rem; }

@media (hover: hover) {
	.tile__link:hover .tile__img { transform: scale(1.05); }
}

@media (min-width: 640px) {
	.tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.tiles { grid-template-columns: repeat(6, 1fr); gap: 16px; }
	.tile { grid-column: span 2; }
	.tile:nth-child(1), .tile:nth-child(2),
	.tile:nth-child(6), .tile:nth-child(7),
	.tile:nth-child(11), .tile:nth-child(12) { grid-column: span 3; }

	.tile__link { aspect-ratio: auto; height: 100%; min-height: 340px; border-radius: var(--radius); }
	.tile:nth-child(1) .tile__link, .tile:nth-child(2) .tile__link,
	.tile:nth-child(6) .tile__link, .tile:nth-child(7) .tile__link,
	.tile:nth-child(11) .tile__link, .tile:nth-child(12) .tile__link { min-height: 420px; }
}

/* ==========================================================================
   9. Onglets de recherche
   ========================================================================== */
.finder { background: var(--bg); scroll-margin-top: var(--header-h); }

.finder__search { margin-top: 1.75rem; max-width: 560px; }
.finder__search input {
	width: 100%;
	min-height: 52px;
	padding: .8rem 1.25rem .8rem 3rem;
	background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 1.1rem center;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--text);
	font: inherit;
	font-size: 1.0625rem;
	-webkit-appearance: none;
	appearance: none;
}
.finder__search input::placeholder { color: var(--muted); }
.finder__search input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px rgba(41, 151, 255, .25); }
.finder__status { min-height: 1.5em; margin: .75rem 0 0; color: var(--muted); font-size: .9375rem; }

.tabs { margin-top: 1rem; }

.tabs__bar {
	display: none;
	gap: .5rem;
	margin-inline: calc(var(--gutter) * -1);
	padding: .25rem var(--gutter) 1rem;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.tabs__bar::-webkit-scrollbar { display: none; }
.js .tabs__bar { display: flex; }

.tab {
	flex: none;
	min-height: 44px;
	padding: .55rem 1.1rem;
	background: var(--surface);
	border: 0;
	border-radius: 999px;
	color: var(--text);
	font: inherit;
	font-size: .9375rem;
	white-space: nowrap;
	cursor: pointer;
	scroll-snap-align: center;
	transition: background-color .2s, color .2s;
}
.tab:hover { background: var(--surface-2); }
.tab[aria-selected="true"] { background: var(--text); color: #1d1d1f; font-weight: 600; }

.panel {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.25rem, 4vw, 3rem);
	align-items: start;
	padding: clamp(1rem, 3vw, 2rem);
	margin-top: 1rem;
	background: var(--surface);
	border-radius: var(--radius);
}
.js .panel { display: none; margin-top: 0; }
.js .panel.is-active { display: grid; animation: panel-in .4s ease both; }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }

.panel__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 18px;
	background: radial-gradient(ellipse 80% 70% at 50% 40%, #2a2a2e, #141416);
}
.panel__media img { width: 100%; height: 100%; object-fit: cover; }
.panel__ph { position: absolute; inset: 0; display: grid; place-items: center; color: #5a5a60; }
.panel__ph .tile__icon { width: clamp(80px, 18vw, 140px); }

.panel__title { margin-bottom: 1.25rem; font-size: clamp(1.5rem, 3.2vw, 2.25rem); letter-spacing: -.03em; }

.refs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: .25rem 1.25rem;
	list-style: none;
}
.refs a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: .35rem 0;
	border-bottom: 1px solid var(--line);
	color: var(--text);
	font-size: 1rem;
	transition: color .2s;
}
.refs a:hover { color: var(--link); text-decoration: none; }
.refs li.is-hidden { display: none; }
.panel__cta { margin: 1.5rem 0 0; }

/* Recherche en cours : on affiche toutes les gammes concernées */
.tabs.is-searching .tabs__bar { display: none; }
.js .tabs.is-searching .panel { display: none; }
.js .tabs.is-searching .panel.has-match { display: grid; margin-top: 1rem; animation: none; }
.js .tabs.is-searching .panel.has-match:first-of-type { margin-top: 0; }

.finder__empty {
	margin-top: 1rem;
	padding: clamp(1.5rem, 5vw, 3rem);
	background: var(--surface);
	border-radius: var(--radius);
	text-align: center;
}
.finder__empty[hidden] { display: none; }
.finder__empty-title { font-size: 1.375rem; font-weight: 600; margin-bottom: .25rem; }

@media (min-width: 860px) {
	.panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.panel__media { position: sticky; top: calc(var(--header-h) + 16px); }
}

/* ==========================================================================
   10. Cartes (distributions, articles)
   ========================================================================== */
.distrib { background: var(--bg-1); }

.cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-top: clamp(2rem, 5vw, 3.5rem);
}
.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--surface);
	border-radius: 22px;
	color: var(--text);
}
.card:hover { text-decoration: none; }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card__link:hover { text-decoration: none; }
.card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.card__img--empty { background: radial-gradient(ellipse at 50% 40%, #2a2a2e, #141416); }
.card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem; }
.card__meta { color: var(--muted); font-size: .875rem; }
.card__title { font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.card__text { color: var(--muted); font-size: 1rem; }
.card { position: relative; }
.card > .card__img { overflow: hidden; }
@media (hover: hover) {
	.card:hover .card__img { transform: scale(1.03); }
}
.card { transform: translateZ(0); }

@media (min-width: 720px) {
	.cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.cards--list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
	.cards--list { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   11. Méthode
   ========================================================================== */
.process { background: var(--bg); }
.steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 5vw, 3rem) 1.5rem;
	margin-top: clamp(2rem, 5vw, 3.5rem);
	list-style: none;
}
.step__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1.25rem; border-radius: 22px; }
.step__num {
	display: inline-grid;
	place-items: center;
	width: 34px; height: 34px;
	margin-bottom: .75rem;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--muted);
	font-size: .9375rem;
	font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: .5rem; font-size: 1.625rem; }
.step p { color: var(--muted); }

@media (min-width: 760px) {
	.steps { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   12. Savoir-faire
   ========================================================================== */
.craft { background: var(--bg-1); }
.craft__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 4rem); align-items: start; }
.craft__copy p { max-width: 38rem; color: var(--muted); font-size: 1.1875rem; line-height: 1.45; }
.craft__copy .section__title { margin-bottom: 1.5rem; color: var(--text); }

.timeline { position: relative; list-style: none; padding-left: 1.75rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: .6rem; bottom: .6rem; width: 1px; background: var(--line); }
.timeline__item { position: relative; display: grid; gap: .15rem; padding: 0 0 1.75rem; color: var(--muted); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
	content: "";
	position: absolute;
	left: -1.75rem; top: .6rem;
	width: 11px; height: 11px;
	background: var(--bg-1);
	border: 2px solid var(--link);
	border-radius: 50%;
}
.timeline__year { color: var(--text); font-size: 1.75rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
	.craft__grid { grid-template-columns: 1.2fr 1fr; }
}

/* ==========================================================================
   13a. Annuaire des gammes (liste complète)
   ========================================================================== */
.directory { background: var(--bg-1); }
.directory__grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem 2rem; margin-top: clamp(2rem, 5vw, 3rem); }
.directory__title { margin-bottom: .75rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); font-size: 1.1875rem; letter-spacing: -.015em; }
.directory__list { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; list-style: none; }
.directory__list a { display: inline-block; padding: .4rem 0; color: var(--muted); font-size: .9375rem; line-height: 1.3; }
.directory__list a:hover { color: var(--link); text-decoration: none; }
@media (min-width: 720px) { .directory__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .directory__grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   13. Devis
   ========================================================================== */
.quote { background: var(--bg); scroll-margin-top: var(--header-h); }
.quote__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 6vw, 4rem); align-items: start; }
.quote__copy > p { max-width: 32rem; margin-top: 1rem; color: var(--muted); font-size: 1.1875rem; line-height: 1.45; }

.checks { display: grid; gap: .9rem; margin: 1.75rem 0; list-style: none; }
.checks li { position: relative; padding-left: 2rem; color: var(--muted); }
.checks li::before {
	content: "";
	position: absolute;
	left: 0; top: .2em;
	width: 1.15rem; height: 1.15rem;
	background: var(--link);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checks strong { color: var(--text); font-weight: 600; }
.quote__alt { color: var(--muted); }
.quote__alt a { white-space: nowrap; }

.quote__panel {
	padding: clamp(1.25rem, 4vw, 2.5rem);
	background: var(--surface);
	border-radius: var(--radius);
	min-width: 0;
}

.devis__group { min-width: 0; margin: 0 0 2rem; padding: 0; border: 0; }
.devis__group legend { width: 100%; margin-bottom: 1rem; padding: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -.025em; }
.devis__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.f { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.f label, .f__label { color: var(--muted); font-size: .9375rem; }
.f abbr { color: var(--link); text-decoration: none; }

.devis input[type="text"], .devis input[type="email"], .devis input[type="tel"],
.devis input[type="number"], .devis select, .devis textarea {
	width: 100%;
	min-height: 50px;
	padding: .75rem 1rem;
	background: var(--bg);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 12px;
	color: var(--text);
	font: inherit;
	font-size: 1rem; /* 16 px : évite le zoom automatique sur iPhone */
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s, box-shadow .2s;
}
.devis select {
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
}
.devis textarea { min-height: 140px; resize: vertical; line-height: 1.4; }
.devis input::placeholder, .devis textarea::placeholder { color: #6e6e73; }
.devis input:focus, .devis select:focus, .devis textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px rgba(41, 151, 255, .25); }

.devis form:invalid, .devis :user-invalid { border-color: var(--err); }
.devis input:user-invalid, .devis select:user-invalid, .devis textarea:user-invalid { border-color: var(--err); }

.seg { display: inline-flex; padding: 3px; background: var(--bg); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; min-height: 40px; padding: .55rem 1.2rem; border-radius: 999px; color: var(--text); font-size: .9375rem; transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--text); color: #1d1d1f; font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: .75rem; color: var(--muted); font-size: .9375rem; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--blue); }
.devis__legal { margin: 0 0 1.5rem; }

.devis__submit { display: grid; gap: .75rem; }
.devis__submit .btn { width: 100%; }
.devis__note { margin: 0; color: var(--muted); font-size: .875rem; text-align: center; }

.notice { margin-bottom: 1.5rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.notice p { margin: 0; }
.notice__title { font-weight: 600; margin-bottom: .2rem !important; }
.notice--ok { background: rgba(48, 209, 88, .1); border-color: rgba(48, 209, 88, .5); }
.notice--err { background: rgba(255, 69, 58, .1); border-color: rgba(255, 69, 58, .55); }
.notice:focus { outline: none; }

@media (min-width: 560px) {
	.devis__grid { grid-template-columns: repeat(2, 1fr); }
	.f--full { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
	.quote__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.quote__copy { position: sticky; top: calc(var(--header-h) + 32px); }
	.devis__submit .btn { width: auto; justify-self: start; }
	.devis__note { text-align: left; }
}

/* ==========================================================================
   14. Pages et articles
   ========================================================================== */
.page-hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(1.5rem, 4vw, 2.5rem); background: radial-gradient(ellipse 60% 100% at 50% 0, rgba(41, 151, 255, .1), transparent 70%), var(--bg); text-align: center; }
.page-hero__title { max-width: 20ch; margin-inline: auto; font-size: clamp(2.25rem, 7vw, 4.5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.page-hero__meta { margin-bottom: 1rem; color: var(--muted); font-size: .9375rem; }
.page-hero__meta span::before { content: "\00b7"; margin: 0 .5em; }
.page-hero__desc { max-width: 38rem; margin: 1.25rem auto 0; color: var(--muted); font-size: 1.25rem; }
.page-hero .searchform { max-width: 520px; margin: 2rem auto 0; }
.breadcrumbs { margin-bottom: 1rem; color: var(--muted); font-size: .875rem; }

.entry__wrap { max-width: calc(780px + 2 * var(--gutter)); padding-block: clamp(1.5rem, 5vw, 3rem) clamp(3rem, 8vw, 5rem); }
.entry__thumb { margin: 0 0 2rem; overflow: hidden; border-radius: var(--radius); }
.entry__thumb img { width: 100%; }

.prose { color: #d2d2d7; font-size: 1.1875rem; line-height: 1.6; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2.2em; color: var(--text); font-size: clamp(1.75rem, 4vw, 2.25rem); }
.prose h3 { margin-top: 1.8em; color: var(--text); font-size: 1.5rem; }
.prose h4 { color: var(--text); font-size: 1.2rem; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose img { height: auto; border-radius: 18px; }
.prose figure { margin-inline: 0; }
.prose figcaption, .wp-caption-text { margin-top: .5rem; color: var(--muted); font-size: .875rem; }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 2px solid var(--link); color: var(--text); font-size: 1.3em; line-height: 1.4; }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--text); font-weight: 600; }
.prose iframe, .prose video { max-width: 100%; border-radius: 18px; }
.prose pre { overflow-x: auto; padding: 1rem; background: var(--surface); border-radius: 12px; font-size: .9rem; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose .wp-block-image img { width: 100%; }

.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav a { font-weight: 500; }
.post-nav__next { margin-left: auto; text-align: right; }

.list-wrap { padding-block: clamp(1.5rem, 5vw, 3rem) clamp(3rem, 8vw, 5rem); }
.empty { padding: clamp(2rem, 6vw, 4rem); background: var(--surface); border-radius: var(--radius); text-align: center; }
.empty p { color: var(--muted); }
.empty p strong { color: var(--text); font-size: 1.25rem; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }

.searchform { display: flex; gap: .5rem; }
.searchform input[type="search"] {
	flex: 1; min-width: 0; min-height: 48px; padding: .6rem 1.25rem;
	background: var(--surface); border: 1px solid transparent; border-radius: 999px;
	color: var(--text); font: inherit; font-size: 1rem;
	-webkit-appearance: none; appearance: none;
}
.searchform input[type="search"]:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px rgba(41, 151, 255, .25); }

.navigation.pagination { margin-top: 2.5rem; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 1rem; background: var(--surface); border-radius: 999px; color: var(--text); }
.page-numbers:hover { background: var(--surface-2); text-decoration: none; }
.page-numbers.current { background: var(--text); color: #1d1d1f; font-weight: 600; }

.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments__title, .comment-reply-title { margin-bottom: 1.25rem; font-size: 1.5rem; }
.comments__list { list-style: none; }
.comments__list .comment-body { margin-bottom: 1.25rem; padding: 1.25rem; background: var(--surface); border-radius: var(--radius-sm); }
.comments__list .children { margin: 1rem 0 0 1.25rem; list-style: none; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: .75rem 1rem; background: var(--bg); border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 12px; color: var(--text); font: inherit; font-size: 1rem;
}
.comment-form .submit { min-height: 48px; padding: .7rem 1.5rem; background: var(--blue); border: 0; border-radius: 999px; color: #fff; font: inherit; cursor: pointer; }

.cta-band { padding: clamp(3rem, 8vw, 5rem) 0; background: var(--surface); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band__title { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
.cta-band p { margin: .5rem 0 0; color: var(--muted); }

/* ==========================================================================
   15. Pied de page
   ========================================================================== */
.site-footer { padding: clamp(2.5rem, 7vw, 4rem) 0 calc(1.5rem + env(safe-area-inset-bottom)); background: #161617; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.site-footer__logo { width: 160px; height: auto; margin-bottom: 1rem; }
.site-footer__brand p { max-width: 28rem; }
.site-footer__title { margin-bottom: .75rem; color: var(--text); font-size: .9375rem; font-weight: 600; letter-spacing: -.005em; }
.plain-list { display: grid; gap: .5rem; list-style: none; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer__social { margin: .75rem 0 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin: 1.25rem 0 0; font-size: .75rem; }

@media (min-width: 600px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Bouton d'appel flottant (mobile) */
.call-fab {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 90;
	display: none;
	align-items: center;
	gap: .55rem;
	min-height: 48px;
	padding: .6rem 1.2rem;
	background: rgba(245, 245, 247, .94);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-radius: 999px;
	color: #1d1d1f;
	font-size: .9375rem;
	font-weight: 600;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}
.call-fab:hover { color: #000; text-decoration: none; }
.call-fab__dot { width: 9px; height: 9px; background: var(--ok); border-radius: 50%; }
@media (max-width: 767px) {
	.call-fab { display: inline-flex; }
	.site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   16. Ajustements petits écrans et écrans larges
   ========================================================================== */
@media (max-width: 520px) {
		.hero__actions { flex-direction: column; gap: 1.1rem; }
	.hero__actions .btn { width: 100%; max-width: 20rem; }
}

@media (min-width: 1440px) {
	:root { --max: 1280px; }
}

/* Paysage sur téléphone : ne pas empiler un en-tête trop haut */
@media (max-height: 460px) and (orientation: landscape) {
	.hero { padding-top: 2rem; }
	.nav { padding-top: .5rem; }
	.nav__list a { font-size: 1.125rem; padding: .6rem 0; }
}

/* ==========================================================================
   18. Menu déroulant (méga-menu) et titres raccourcis à l'affichage
   ========================================================================== */
/* Partie excédentaire d'un titre : masquée visuellement, conservée dans le code et pour les lecteurs d'écran. */
.nav__more {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.nav__lead[data-cut]::after { content: "\2026"; }

.nav__list, .nav__list ul { margin: 0; padding: 0; list-style: none; }
.nav__sub-toggle { display: none; }

.nav-scrim {
	position: fixed;
	inset: var(--header-h) 0 0 0;
	z-index: 90;
	background: rgba(0, 0, 0, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .3s;
}
.nav-scrim.is-on { opacity: 1; }
.nav-scrim[hidden] { display: none; }

/* ---- Ordinateur ---- */
@media (min-width: 960px) {
	.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; }
	.nav { display: contents; }
	.nav__list { justify-self: center; gap: 0; height: var(--header-h); }
	.nav__cta { justify-self: end; }
	.nav__list > li { display: flex; align-items: stretch; }
	.nav__list > li > a {
		display: flex;
		align-items: center;
		height: var(--header-h);
		padding: 0 .85rem;
		font-size: .9rem;
		border-radius: 8px;
	}
	.nav__list > li.menu-item-has-children > a::after {
		content: "";
		width: 6px; height: 6px;
		margin: -2px 0 0 .45rem;
		border: solid currentColor;
		border-width: 0 1.5px 1.5px 0;
		transform: rotate(45deg);
		opacity: .6;
		transition: transform .25s, opacity .25s;
	}
	.nav__list > li.is-open > a { color: #fff; }
	.nav__list > li.is-open.menu-item-has-children > a::after { transform: rotate(225deg) translate(-2px, -2px); opacity: 1; }

	/* Panneau déplié sous l'en-tête, pleine largeur */
	.nav__list > li > .sub-menu {
		position: absolute;
		left: 0; right: 0; top: 100%;
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		align-content: start;
		gap: .15rem 2.5rem;
		padding: 2.25rem max(var(--gutter), calc((100% - var(--max)) / 2)) 2.75rem;
		max-height: calc(100vh - var(--header-h));
		max-height: calc(100svh - var(--header-h));
		overflow-y: auto;
		overscroll-behavior: contain;
		background: rgba(8, 8, 9, .96);
		-webkit-backdrop-filter: saturate(180%) blur(28px);
		backdrop-filter: saturate(180%) blur(28px);
		border-bottom: 1px solid var(--line);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
	}
	.js .nav__list > li.is-open > .sub-menu,
	html:not(.js) .nav__list > li:hover > .sub-menu,
	html:not(.js) .nav__list > li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}

	/* Liens du panneau */
	.sub-menu a {
		display: block;
		padding: .42rem 0;
		color: rgba(245, 245, 247, .86);
		font-size: 1rem;
		line-height: 1.3;
		letter-spacing: -.01em;
		white-space: normal;
	}
	.sub-menu a:hover, .sub-menu a:focus-visible { color: var(--link); text-decoration: none; }
	.sub-menu .is-all > a, .sub-menu li.is-all a { color: var(--link); font-size: .9375rem; }
	.sub-menu .is-all > a::after { content: "\203A"; margin-left: .3em; }

	/* Niveau 3 : la famille devient un titre de colonne, ses pages sont listées dessous */
	.nav__list > li > .sub-menu > li.menu-item-has-children > a {
		margin-bottom: .35rem;
		color: #fff;
		font-size: 1.0625rem;
		font-weight: 600;
		letter-spacing: -.015em;
	}
	.nav__list > li > .sub-menu > li > .sub-menu { display: block; }
	.nav__list > li > .sub-menu > li > .sub-menu a { padding: .26rem 0; font-size: .9375rem; color: var(--muted); }
	.nav__list > li > .sub-menu > li > .sub-menu a:hover { color: var(--link); }
	.nav__list > li > .sub-menu > li > .sub-menu .is-all a { color: var(--link); }

	/* Menu à deux niveaux : liens plus grands, comme une liste de rubriques */
	.nav__list > li:not(.is-mega) > .sub-menu { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
	.nav__list > li:not(.is-mega) > .sub-menu > li:not(.menu-item-has-children) > a { font-size: 1.125rem; font-weight: 500; }
}

/* ---- Téléphone et tablette : menu plein écran, rubriques dépliantes ---- */
@media (max-width: 959px) {
	.nav__list li { position: relative; }
	.nav__list > li.menu-item-has-children > a { padding-right: 3.25rem; }
	.nav__sub-toggle {
		position: absolute;
		top: 0; right: -.5rem;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 56px; height: 56px;
		padding: 0;
		background: none;
		border: 0;
		color: var(--text);
		cursor: pointer;
	}
	.nav__sub-toggle::before {
		content: "";
		width: 9px; height: 9px;
		border: solid currentColor;
		border-width: 0 2px 2px 0;
		transform: rotate(45deg) translate(-2px, -2px);
		transition: transform .25s;
	}
	li.is-open > .nav__sub-toggle::before { transform: rotate(225deg) translate(-2px, -2px); }

	.nav__list .sub-menu { display: none; padding: .25rem 0 .9rem; }
	.js .nav__list li.is-open > .sub-menu { display: block; }
	html:not(.js) .nav__list .sub-menu { display: block; }
	.nav__list .sub-menu a {
		padding: .65rem 0 .65rem .15rem;
		border-bottom: 0;
		color: rgba(245, 245, 247, .82);
		font-size: 1.125rem;
		font-weight: 500;
		letter-spacing: -.01em;
	}
	.nav__list .sub-menu a:hover { color: var(--link); }
	.nav__list .sub-menu .sub-menu { padding: 0 0 .35rem 1rem; }
	.nav__list .sub-menu .sub-menu a { font-size: 1rem; color: var(--muted); padding: .5rem 0; }
	.nav__list .sub-menu .menu-item-has-children > a { padding-right: 3.25rem; }
	.nav__list .sub-menu .nav__sub-toggle { height: 46px; width: 48px; }
	.nav__list .is-all > a { color: var(--link); }
	.nav-scrim { display: none !important; }
}

/* ==========================================================================
   19. Slider premium pleine page
   ========================================================================== */
/* En-tête transparent sur le slider, comme une vitrine */
.fo-premium .site-header { position: fixed; left: 0; right: 0; }
.admin-bar.fo-premium .site-header { top: 32px; }
.fo-premium .site-header::before { opacity: 0; transition: opacity .35s; }
.fo-premium .site-header.is-scrolled::before,
.fo-premium .site-header.is-open::before { opacity: 1; }
.fo-premium .site-header { transition: border-color .3s; }

.premium {
	position: relative;
	isolation: isolate;
	height: 100vh;
	height: 100svh;
	min-height: 520px;
	overflow: hidden;
	background: #000;
	color: #fff;
	--dur: 9s;
	--p: 0;
}
.premium__slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; touch-action: pan-y; }

.pslide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.15s ease, visibility 0s linear 1.15s;
}
.pslide.is-leaving { opacity: 1; visibility: visible; z-index: 1; transition: none; }
.pslide.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity 1.15s ease, visibility 0s; }
/* Avant que le navigateur ait tiré au sort (mode aléatoire), rien n'est affiché : pas de photo qui saute */
.js .premium[data-order="random"]:not(.is-ready) .pslide { opacity: 0 !important; }

.pslide__bg {
	position: absolute;
	inset: -6%;
	background-size: cover;
	background-position: center;
	filter: blur(30px) brightness(.5) saturate(1.2);
	opacity: 0;
	transition: opacity .4s;
}
.pslide.is-contain .pslide__bg { opacity: 1; }
.pslide__img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center;
	transform-origin: 50% 50%;
}
.pslide.is-contain .pslide__img { object-fit: contain; }
.pslide.is-active .pslide__img,
.pslide.is-leaving .pslide__img { animation: pkb var(--dur) cubic-bezier(.25, .1, .25, 1) both; }
@keyframes pkb { from { transform: scale(1); } to { transform: scale(1.07); } }
.pslide.is-contain.is-active .pslide__img,
.pslide.is-contain.is-leaving .pslide__img { animation-name: pkb-soft; }
@keyframes pkb-soft { from { transform: scale(1); } to { transform: scale(1.025); } }

.pslide__ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: radial-gradient(ellipse at 50% 38%, hsl(var(--h, 215) 42% 26%), #040405 72%);
}
.pslide__ph svg { width: min(34vmin, 260px); height: auto; opacity: .3; }

.pslide__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(to top, rgba(0, 0, 0, .82) 0, rgba(0, 0, 0, .42) 30%, rgba(0, 0, 0, 0) 58%),
		linear-gradient(to bottom, rgba(0, 0, 0, .55) 0, rgba(0, 0, 0, 0) 20%);
}
.pslide__cover { position: absolute; inset: 0; z-index: 1; }

.pslide__caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 2;
	padding-bottom: calc(6.25rem + env(safe-area-inset-bottom));
	text-align: center;
	pointer-events: none;
}
.pslide__caption a { pointer-events: auto; }
.pslide__eyebrow {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .15rem .9rem;
	margin: 0 0 .75rem;
	color: rgba(255, 255, 255, .78);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.pslide__eyebrow time { font-weight: 500; letter-spacing: .04em; text-transform: none; opacity: .85; }
.pslide__title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 24ch;
	margin: 0 auto;
	font-size: clamp(1.9rem, 4.6vw, 3.75rem);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -.035em;
	text-wrap: balance;
	text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.pslide__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .75rem 1rem;
	margin: 1.75rem 0 0;
}
.pbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 15rem;
	min-height: 44px;
	padding: .6rem 1.75rem;
	border-radius: 6px;
	font-size: .9375rem;
	font-weight: 600;
	letter-spacing: -.005em;
	text-align: center;
	transition: background-color .25s, color .25s, transform .25s;
}
.pbtn:hover { text-decoration: none; transform: translateY(-1px); }
.pbtn--solid { background: rgba(244, 244, 244, .95); color: #171a20; }
.pbtn--solid:hover { background: #fff; color: #000; }
.pbtn--ghost {
	background: rgba(23, 26, 32, .5);
	color: #fff;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.pbtn--ghost:hover { background: rgba(23, 26, 32, .72); color: #fff; }
.pbtn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Apparition du texte à chaque diapositive */
.pslide__caption .container > * { opacity: 0; transform: translateY(18px); }
.pslide.is-active .pslide__caption .container > * { animation: prise .9s cubic-bezier(.2, .7, .2, 1) both; }
.pslide.is-active .pslide__title { animation-delay: .12s; }
.pslide.is-active .pslide__actions { animation-delay: .24s; }
@keyframes prise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Commandes */
.premium__ui { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.premium__bar {
	position: absolute;
	left: 0; right: 0;
	bottom: calc(1.6rem + env(safe-area-inset-bottom));
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	margin-inline: auto;
}
.premium__bar > * { pointer-events: auto; }
.premium__play { grid-column: 1; grid-row: 1; justify-self: start; }
.premium__dots { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 6px; }
.premium__counter { display: none; grid-column: 3; grid-row: 1; justify-self: end; color: rgba(255, 255, 255, .8); font-size: .8125rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; }

.premium__play, .premium__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	padding: 0;
	color: #fff;
	background: rgba(23, 26, 32, .45);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .25s;
}
.premium__play:hover, .premium__arrow:hover { background: rgba(23, 26, 32, .75); }
.premium__play:focus-visible, .premium__arrow:focus-visible, .premium__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.premium__play .ico-play { display: none; }
.premium__play[aria-pressed="true"] .ico-play { display: block; }
.premium__play[aria-pressed="true"] .ico-pause { display: none; }

.premium__dot {
	position: relative;
	width: 30px; height: 28px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}
.premium__dot::before, .premium__dot::after {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 50%;
	height: 3px;
	margin-top: -1.5px;
	border-radius: 3px;
}
.premium__dot::before { background: rgba(255, 255, 255, .38); }
.premium__dot::after { background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.premium__dot.is-done::after { transform: scaleX(1); }
.premium__dot.is-current::after { transform: scaleX(var(--p)); }
.premium.is-paused .premium__dot.is-current::after { transform: scaleX(1); }
.premium--many .premium__counter { display: block; }
.premium--many .premium__dot { display: none; width: 64px; }
.premium--many .premium__dot.is-current { display: block; }

.premium__arrow {
	position: absolute;
	top: 50%;
	display: none;
	width: 52px; height: 52px;
	margin-top: -26px;
	pointer-events: auto;
	opacity: 0;
	transition: opacity .3s, background-color .25s;
}
.premium__arrow--prev { left: clamp(1rem, 2.5vw, 2rem); }
.premium__arrow--next { right: clamp(1rem, 2.5vw, 2rem); }
.premium:hover .premium__arrow, .premium__arrow:focus-visible { opacity: 1; }
@media (min-width: 900px) and (hover: hover) { .premium__arrow { display: inline-flex; } }

.premium__down {
	position: absolute;
	right: max(var(--gutter), calc((100% - var(--max)) / 2));
	bottom: calc(1.6rem + env(safe-area-inset-bottom));
	z-index: 6;
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	color: #fff;
	animation: pdown 2.4s ease-in-out infinite;
}
.premium__down:hover { text-decoration: none; }
@keyframes pdown { 0%, 100% { transform: translateY(0); opacity: .75; } 50% { transform: translateY(6px); opacity: 1; } }
@media (min-width: 720px) { .premium__down { display: inline-flex; } .premium__counter { margin-right: 3.25rem; } }

@media (max-width: 719px) {
	.pslide__actions { flex-direction: column; align-items: center; margin-top: 1.25rem; }
	.pbtn { min-width: min(18rem, 100%); }
	.pbtn--ghost { display: none; }
	.pslide__caption { padding-bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
}
@media (max-height: 560px) and (orientation: landscape) {
	.premium { min-height: 440px; }
	.pslide__title { font-size: 1.75rem; }
	.pslide__caption { padding-bottom: 4.5rem; }
	.pslide__eyebrow { display: none; }
}

/* Le bouton d'appel attend la fin du slider plein écran pour ne pas masquer les commandes */
.fo-premium .call-fab { transition: opacity .3s, transform .3s; }
.fo-premium:not(.is-past-hero) .call-fab { opacity: 0; transform: translateY(14px); pointer-events: none; }

/* ==========================================================================
   20. Distributions : changement des 3 emplacements
   ========================================================================== */
.dcard { transition: opacity .38s ease, transform .38s ease; }
.dcard.is-swapping { opacity: 0; transform: scale(.985); }
.card__img--ph {
	display: grid;
	place-items: center;
	padding: 1rem;
	background: radial-gradient(ellipse at 50% 40%, #2a2a2e, #141416);
	color: var(--text);
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -.03em;
	text-align: center;
}
.card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #fff; }
.card__media .card__img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.card__media .card__img.is-contain { object-fit: contain; padding: 6%; background: #fff; }
.card__media .card__img--ph { background: radial-gradient(ellipse at 50% 40%, #2a2a2e, #141416); }
.card__logo {
	position: absolute;
	left: .75rem; bottom: .75rem;
	max-width: 42%; max-height: 46px;
	width: auto; height: auto;
	padding: .35rem .6rem;
	object-fit: contain;
	background: rgba(255, 255, 255, .96);
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
@media (hover: hover) { .card:hover .card__media .card__img:not(.is-contain) { transform: scale(1.03); } }
.distrib__more { margin: 1.75rem 0 0; text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.pslide__img, .premium__down { animation: none !important; }
	.pslide__caption .container > * { opacity: 1; transform: none; animation: none !important; }
}

/* ==========================================================================
   21. Carte de livraison
   ========================================================================== */
.fmap-wrap { padding-bottom: clamp(2.5rem, 7vw, 5rem); }
.fmap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .fmap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3.5rem; } }

.fmap__stage { position: relative; width: 100%; max-width: 640px; margin-inline: auto; }
.fmap__svg { display: block; width: 100%; height: auto; overflow: visible; }

.fmap__r path { fill: #222226; stroke: #000; stroke-width: .8; stroke-linejoin: round; transition: fill .25s; }
.fmap__r.has-page path { fill: #2b3140; }
.fmap__r.is-on path, .fmap__r:hover path { fill: #0a5bb5; }
.fmap__r.has-page { cursor: pointer; }
a.fmap__zone { outline: none; }
a.fmap__r:focus-visible path { stroke: #fff; stroke-width: 2.2; }

.fmap__hit { fill: transparent; }
.fmap__pin { fill: var(--link); stroke: #fff; stroke-width: 1; transition: r .2s, fill .2s; }
.fmap__c { cursor: pointer; }
.fmap__c:hover .fmap__pin, .fmap__c.is-on .fmap__pin, a.fmap__c:focus-visible .fmap__pin { fill: #fff; stroke: var(--link); r: 5; }
.fmap__label { fill: #f5f5f7; font: 600 11px var(--font); letter-spacing: 0; paint-order: stroke; stroke: #000; stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.fmap__atelier circle:first-child { fill: none; stroke: var(--ok); stroke-width: 1.6; opacity: .6; }
.fmap__atelier circle:last-child { fill: var(--ok); }
.fmap__atelier text { fill: var(--ok); font: 600 11px var(--font); paint-order: stroke; stroke: #000; stroke-width: 3.5px; stroke-linejoin: round; }

.fmap__tip {
	position: absolute;
	z-index: 5;
	min-width: 220px; max-width: min(300px, 90%);
	padding: .9rem 1.1rem 1rem;
	background: rgba(29, 29, 31, .97);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
	transform: translate(-50%, -100%);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.fmap__tip.is-below { transform: translate(-50%, 0); }
.fmap__tip[hidden] { display: none; }
.fmap__tip p { margin: 0; }
.fmap__tip-cities { display: flex; flex-wrap: wrap; gap: .3rem .35rem; margin: .5rem 0 .75rem; padding: 0; list-style: none; max-height: 11rem; overflow-y: auto; }
.fmap__tip-cities li { display: inline-flex; align-items: baseline; gap: .3rem; padding: .2rem .65rem; background: rgba(255,255,255,.09); border-radius: 999px; font-size: .8125rem; color: var(--muted); }
.fmap__tip-cities a { color: var(--text); font-weight: 500; }
.fmap__tip-cities a:hover { color: var(--link); }
.fmap__tip-cities small { color: var(--ok); font-size: .6875rem; font-weight: 600; }
.fmap__sub { margin: 1.25rem 0 .5rem; color: var(--muted); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.fmap__list small { margin-left: .5rem; color: var(--muted); font-size: .75rem; }
.fmap__list a:hover small { color: #fff; }
.fmap__list span { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .9rem; background: var(--surface); border-radius: 999px; color: var(--muted); font-size: .9375rem; }
.fmap__tip-name { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.fmap__tip-text { margin: .15rem 0 0 !important; color: var(--muted); font-size: .875rem; }
.fmap__tip-link {
	display: inline-flex; align-items: center;
	min-height: 36px; padding: .35rem 1rem;
	background: var(--blue); border-radius: 999px;
	color: #fff; font-size: .9375rem; font-weight: 500;
}
.fmap__tip-link:hover { background: var(--blue-hover); text-decoration: none; }

.fmap__title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.fmap__intro { margin: .9rem 0 1.25rem; color: var(--muted); }
.fmap__list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.fmap__list a { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .9rem; background: var(--surface); border-radius: 999px; color: var(--text); font-size: .9375rem; transition: background-color .2s, color .2s; }
.fmap__list a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.fmap__cta { color: var(--muted); font-size: .9375rem; }

/* ==========================================================================
   17. Préférences utilisateur
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
}

@media (forced-colors: active) {
	.btn, .tab, .tile__link, .card { border: 1px solid ButtonText; }
}

@media print {
	.fmap__tip, .site-header, .call-fab, .reel__controls, .premium__ui, .premium__down, .nav-scrim, .tabs__bar, .finder__search { display: none !important; }
	body { background: #fff; color: #000; }
}
.fmap__tip-name + .fmap__tip-link, .fmap__tip-text + .fmap__tip-link { margin-top: .65rem; }

/* Carte : liste dépliable de toutes les villes (lisible aussi par les moteurs de recherche) */
.fmap__all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.fmap__all summary { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem 1.1rem; background: var(--surface); border-radius: 999px; font-weight: 500; cursor: pointer; list-style: none; }
.fmap__all summary::-webkit-details-marker { display: none; }
.fmap__all summary::after { content: "+"; color: var(--link); font-size: 1.25rem; line-height: 1; }
.fmap__all[open] summary::after { content: "−"; }
.fmap__all-grid { display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 1.25rem; }
.fmap__all-item h3 { margin: 0 0 .25rem; font-size: 1rem; font-weight: 600; }
.fmap__all-item h3 span { margin-left: .35rem; color: var(--muted); font-size: .75rem; font-weight: 500; }
.fmap__all-item p { margin: 0 0 .25rem; color: var(--muted); font-size: .8125rem; }
.fmap__all-item ul { margin: 0; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.fmap__all-item li { padding: .1rem 0; }
.fmap__all-item small { margin-left: .35rem; color: var(--ok); font-weight: 600; }
