:root {
	--nuit: #0b2a63;
	--bleu: #1758c4;
	--ciel: #2e97e6;
	--ciel-pale: #d9eefb;
	--soleil: #ffc54d;
	--rouge: #d9252e;
	--pre: #3f7f3a;
	--texte: #1d2b45;
	--texte-doux: #4d5b75;
	--fond-doux: #f2f7fb;
	--font-titre: "DIN Alternate", Bahnschrift, "Roboto Condensed", "Arial Narrow", sans-serif;
	--font-texte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #fff;
	color: var(--texte);
	font-family: var(--font-texte);
	font-size: 1.0625rem;
	line-height: 1.6;
}
h1, h2, h3 {
	color: var(--nuit);
	font-family: var(--font-titre);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 .6em;
}
h1 { font-size: clamp(2.75rem, 7vw, 5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--bleu); }
img { display: block; height: auto; max-width: 100%; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 2px; }

.hf-skip { position: absolute; left: -999px; }
.hf-skip:focus { background: #fff; left: 8px; padding: .5rem 1rem; top: 8px; z-index: 10; }
.hf-wrap { margin: 0 auto; max-width: 72rem; padding: 0 clamp(1rem, 4vw, 2rem); }
.hf-narrow { max-width: 46rem; }
.hf-lead { color: var(--texte); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.45; max-width: 36rem; }

.hf-header {
	align-items: center;
	background: #fff;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 2rem;
	justify-content: space-between;
	padding: .6rem clamp(1rem, 4vw, 2rem);
}
.hf-brand { align-items: center; color: var(--nuit); display: flex; font-family: var(--font-titre); font-size: 1.3rem; font-weight: 700; gap: .6rem; text-decoration: none; }
.hf-brand img { border-radius: 14px; height: 72px; width: 72px; }
.hf-menu-toggle { background: none; border: 2px solid var(--nuit); border-radius: 6px; color: var(--nuit); cursor: pointer; display: none; font: inherit; font-weight: 600; padding: .3rem .8rem; }
.hf-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.hf-nav a { color: var(--nuit); font-weight: 600; text-decoration: none; }
.hf-nav a:hover, .hf-nav .current-menu-item a { color: var(--bleu); text-decoration: underline; text-underline-offset: 4px; }

.hf-button {
	background: var(--nuit);
	border: 2px solid var(--nuit);
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font: inherit;
	font-weight: 600;
	padding: .65rem 1.15rem;
	text-decoration: none;
}
.hf-button:hover { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.hf-button--quiet { background: #fff; color: var(--nuit); }
.hf-button--quiet:hover { color: #fff; }
.hf-stores { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }

/* Accueil : le ciel, l'horizon et le panneau d'entrée de commune. */
.hf-hero {
	background: linear-gradient(180deg, var(--ciel) 0%, var(--ciel-pale) 62%, #ffe9b8 82%, var(--soleil) 90%, var(--pre) 90%, var(--pre) 100%);
	padding-top: clamp(2.5rem, 7vw, 5rem);
}
.hf-hero__grid { align-items: end; display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.hf-hero__text { padding-bottom: clamp(5rem, 12vw, 8rem); }
.hf-hero__logo { margin: 0 0 1.25rem; }
.hf-hero__logo img { width: 100%; }
.hf-hero .hf-lead { color: var(--nuit); font-weight: 500; }
.hf-hero__facts { color: var(--nuit); font-size: clamp(1.1rem, 1.8vw, 1.25rem); font-weight: 700; line-height: 1.35; margin-bottom: 0; max-width: 36rem; }

.hf-road { align-items: center; display: flex; flex-direction: column; padding-bottom: 1.25rem; position: relative; }
.hf-sign {
	align-items: center;
	aspect-ratio: 2.75;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 0 0 2px #fff, 0 10px 22px rgba(11, 42, 99, .28);
	box-sizing: border-box;
	container-type: inline-size;
	display: flex;
	justify-content: center;
	overflow: hidden;
	padding: 1.2rem 1.6rem;
	position: relative;
	width: min(100%, 34rem);
	z-index: 1;
}
.hf-sign::before { border: clamp(9px, 3.2cqw, 16px) solid var(--rouge); border-radius: 9px; content: ""; inset: 7px; position: absolute; }
.hf-sign::after {
	background: linear-gradient(to top left, transparent calc(50% - 1.6cqw), var(--rouge) calc(50% - 1.6cqw), var(--rouge) calc(50% + 1.6cqw), transparent calc(50% + 1.6cqw));
	clip-path: inset(0 100% 0 0);
	content: "";
	inset: 7px;
	position: absolute;
}
.hf-sign.is-leaving::before { border-color: #111b2e; transition: border-color .2s linear; }
.hf-sign.is-leaving::after { clip-path: inset(0 0 0 0); transition: clip-path .45s ease-out .1s; }
.hf-sign__name {
	color: #111b2e;
	font-family: var(--font-titre);
	font-size: 14cqw;
	font-weight: 700;
	line-height: 1.05;
	overflow-wrap: anywhere;
	position: relative;
	text-align: center;
	text-transform: uppercase;
}
.hf-sign.is-short .hf-sign__name { font-size: 22cqw; }
.hf-sign.is-long .hf-sign__name { font-size: 9cqw; }
.hf-sign.is-very-long .hf-sign__name { font-size: 6.4cqw; }
.hf-road::before, .hf-road::after {
	background: #7c8797;
	bottom: 0;
	content: "";
	position: absolute;
	top: 40%;
	width: 10px;
}
.hf-road::before { left: 26%; }
.hf-road::after { right: 26%; }
.hf-road__change {
	background: #fff;
	border: 2px solid var(--nuit);
	border-radius: 8px;
	color: var(--nuit);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	margin-top: 1.25rem;
	padding: .55rem 1rem;
	position: relative;
	z-index: 1;
}
.hf-road__change:hover { background: var(--nuit); color: #fff; }
.hf-road__change:disabled { cursor: wait; opacity: .75; }

.hf-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.hf-section--soft { background: var(--fond-doux); }
.hf-section--wish { background: var(--nuit); color: #fff; }
.hf-section--wish h2 { color: #fff; }
.hf-wish { align-items: center; display: grid; gap: 1.5rem 4rem; grid-template-columns: 2fr 1fr; }
.hf-wish p { margin: 0; }
.hf-wish__note { border-left: 4px solid var(--soleil); padding-left: 1rem; }

.hf-features { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2rem 0; }
.hf-feature { border-top: 3px solid var(--ciel); padding-top: .9rem; }
.hf-feature p { color: var(--texte-doux); margin: 0; }

.hf-ways { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.5rem; }
.hf-way { border-left: 4px solid var(--soleil); padding-left: 1.25rem; }
.hf-way p { margin: 0; max-width: 34rem; }
.hf-way .hf-way__device { color: var(--texte-doux); font-weight: 600; margin-top: .75rem; }

.hf-page-head { background: var(--ciel-pale); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.hf-page-head h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: .25em; }
.hf-page-head .hf-lead { margin: 0; }

.hf-row { align-items: center; border-bottom: 1px solid #dfe7ee; display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); padding: 2rem 0; }
.hf-row:first-child { padding-top: 0; }
.hf-row p { margin: 0; max-width: 38rem; }
.hf-shots { min-width: 0; }
.hf-shot { background: none; border: 0; cursor: zoom-in; display: block; padding: 0; }
.hf-shot img { border-radius: 10px; display: block; }
.hf-shot--main { width: 100%; }
.hf-shot--main img { border: 1px solid #dfe7ee; max-height: 26rem; object-fit: contain; width: 100%; }
.hf-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.hf-shot--thumb img { height: 64px; object-fit: cover; object-position: top; width: 64px; }
.hf-lightbox { background: #fff; border: 0; border-radius: 12px; box-sizing: border-box; color: var(--texte); max-height: 94vh; max-width: min(900px, 94vw); padding: 1rem; width: 100%; }
.hf-lightbox::backdrop { background: rgba(11, 42, 99, .75); }
.hf-lightbox figure { margin: .5rem 0; }
.hf-lightbox img { margin: 0 auto; max-height: 68vh; object-fit: contain; width: auto; }
.hf-lightbox figcaption { color: var(--texte-doux); margin-top: .5rem; text-align: center; }
.hf-lightbox__close, .hf-lightbox__prev, .hf-lightbox__next { background: #fff; border: 2px solid var(--nuit); border-radius: 8px; color: var(--nuit); cursor: pointer; font: inherit; font-weight: 600; padding: .35rem .8rem; }
.hf-lightbox__close { display: block; margin-left: auto; }
.hf-lightbox__nav { align-items: center; display: flex; gap: 1rem; justify-content: center; }

.hf-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); margin: 2rem 0; }
.hf-card a { color: inherit; text-decoration: none; }
.hf-card img { aspect-ratio: 8 / 5; border-radius: 10px; object-fit: cover; width: 100%; }
.hf-card h3 { margin: .7rem 0 .15rem; }
.hf-card a:hover h3 { color: var(--bleu); }
.hf-card p { color: var(--texte-doux); margin: 0; }

.hf-releases { display: grid; gap: 2.5rem; }
.hf-release { margin-bottom: 1.5rem; }
.hf-release__meta { align-items: center; color: var(--texte-doux); display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-bottom: .4rem; }
.hf-release__version { background: var(--nuit); border-radius: 5px; color: #fff; font-family: var(--font-titre); font-weight: 700; padding: .05rem .55rem; }

.hf-video { aspect-ratio: 16 / 9; background: var(--nuit); border-radius: 12px; margin: 0 0 2rem; overflow: hidden; position: relative; }
.hf-video__cover { height: 100%; object-fit: cover; width: 100%; }
.hf-video iframe { border: 0; height: 100%; width: 100%; }
.hf-video__play { background: #fff; border: 0; border-radius: 8px; color: var(--nuit); cursor: pointer; font: inherit; font-weight: 700; left: 50%; padding: .7rem 1.2rem; position: absolute; top: 50%; transform: translate(-50%, -50%); }
.hf-video__note { color: var(--texte-doux); display: block; font-size: .8rem; font-weight: 400; }

.hf-prose > :last-child { margin-bottom: 0; }
.hf-prose .wp-block-gallery { margin: 1.5rem 0; }
.hf-benefits { margin: 1.5rem 0; padding-left: 1.2rem; }
.hf-benefits li { margin-bottom: .4rem; }

.hf-form { display: grid; gap: .7rem; margin: 1.25rem 0; max-width: 30rem; }
.hf-form label, .wpcf7 label { display: block; font-weight: 600; }
.hf-form input[type="email"], .wpcf7 input:not([type="submit"]):not([type="checkbox"]), .wpcf7 select, .wpcf7 textarea {
	border: 2px solid #b8c5d4;
	border-radius: 7px;
	box-sizing: border-box;
	font: inherit;
	padding: .55rem .7rem;
	width: 100%;
}
.hf-form fieldset { border: 0; display: grid; gap: .4rem; margin: 0; padding: 0; }
.hf-form legend { font-weight: 600; margin-bottom: .3rem; padding: 0; }
.hf-form .hf-choice { align-items: start; display: flex; font-weight: 400; gap: .5rem; }
.hf-choice input { margin-top: .35rem; }
.hf-help { color: var(--texte-doux); font-size: .95rem; margin: 0; }
.hf-notice { background: var(--ciel-pale); border-left: 4px solid var(--bleu); padding: .7rem 1rem; }
.hf-trap { height: 0; left: -999px; overflow: hidden; position: absolute; width: 0; }
.wpcf7 input[type="submit"] { background: var(--nuit); border: 0; border-radius: 8px; color: #fff; cursor: pointer; font: inherit; font-weight: 600; padding: .7rem 1.2rem; }

.hf-footer { background: var(--nuit); color: #fff; padding: 2.5rem 0; }
.hf-footer__grid { display: flex; flex-wrap: wrap; gap: 1.5rem 4rem; justify-content: space-between; }
.hf-footer p { margin: 0; }
.hf-footer__name { font-family: var(--font-titre); font-size: 1.3rem; font-weight: 700; }
.hf-footer ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.hf-footer a { color: #fff; }
.hf-cookie-link { background: none; border: 0; color: #fff; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.seopress-user-consent.seopress-edit-choice { display: none !important; }

@media (max-width: 860px) {
	.hf-brand img { height: 56px; width: 56px; }
	.hf-menu-toggle { display: block; }
	.hf-nav { display: none; flex-basis: 100%; }
	.hf-nav.is-open { display: block; }
	.hf-nav ul { flex-direction: column; padding: .5rem 0; }
	.hf-hero__grid, .hf-wish { grid-template-columns: minmax(0, 1fr); }
	.hf-hero__text { padding-bottom: 0; }
	.hf-road { padding-bottom: 4.5rem; }
	.hf-features, .hf-ways { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
