/* En-tête Arevian (0.23.0) : bandeau de prévention, barre, logo, panneau du menu. */
:root {
	--arv-et-b: 7vh; /* Bandeau : 7 % de la hauteur de l'écran. */
	--arv-et-barre: 60px;
	--arv-et-barre-m: 94px;
	--arv-et-logo: 150px;
	--arv-et-top: var(--wp-admin--admin-bar--height, 0px);
	--arv-et-nuit: #100039;
	--arv-et-cyan: #53edff;
	--arv-et-anis: #d7fc69;
	--arv-et-lav: #b9c3f5;
	--arv-et-texte: #001847;
	--arv-et-titre: "Plus Jakarta Sans", system-ui, sans-serif;
}
@supports (height: 1svh) {
	:root { --arv-et-b: 7svh; } /* Stable sur téléphone, quelle que soit la barre d'adresse. */
}

/* L'en-tête BeTheme est masqué ; le contenu commence sous le nôtre. */
body.arv-et-on #mfn-header-template,
body.arv-et-on .mfn-header-tmpl,
body.arv-et-on #Top_bar { display: none !important; }
body.arv-et-on #Content { padding-top: calc(var(--arv-et-b) + var(--arv-et-barre) + var(--arv-et-logo)) !important; }
/* Page qui commence par une grande image (hero de l'accueil, en-tête photo des pages) : le logo et le burger se posent dessus. */
body.arv-et-on:has(.arv-hero, .arv-pg-tete--photo) #Content { padding-top: calc(var(--arv-et-b) + var(--arv-et-barre)) !important; }
body.arv-et-on:has(.arv-hero, .arv-pg-tete--photo) .arv-et-logo { background: transparent; }
body.arv-et-on :target { scroll-margin-top: calc(var(--arv-et-b) + 80px); }

.arv-et, .arv-et *, .arv-et-menu, .arv-et-menu * { box-sizing: border-box; }
.arv-et { position: fixed; top: var(--arv-et-top); left: 0; right: 0; z-index: 9990; font-family: Roboto, system-ui, sans-serif; }
.arv-et a, .arv-et-menu a, .arv-et-apercu a { text-decoration: none !important; }
.arv-et ul, .arv-et-menu ul { margin: 0; padding: 0; list-style: none; }
.arv-et-vh { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
/* Tailles imposées : les styles du thème (img, svg) ne doivent pas les changer. */
.arv-et img, .arv-et-menu img { max-width: none !important; }
.arv-et svg, .arv-et-menu svg { flex: none; max-width: none !important; }

/* ---------- Bandeau de prévention ---------- */
.arv-et-prev { container-type: inline-size; display: flex; align-items: center; height: var(--arv-et-b); padding: 0 14px 0 24px; background: #ffe000; color: var(--arv-et-texte) !important; text-decoration: none !important; overflow: hidden; }
.arv-et-prev:focus-visible { outline: 3px solid var(--arv-et-texte); outline-offset: -5px; }
.arv-et-prev__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: calc(var(--arv-et-b) * .06); }
.arv-et-prev__l1, .arv-et-prev__l2 { display: block; font-family: "ArvAvert", Roboto, sans-serif; font-weight: 700; line-height: 1; text-transform: uppercase; white-space: nowrap; color: var(--arv-et-texte); font-stretch: var(--arv-et-large, 100%); letter-spacing: 0; }
.arv-et-prev__l1 { font-size: calc(var(--arv-et-b) * .39); }
.arv-et-prev__l2 { font-size: calc(var(--arv-et-b) * .37); }
.arv-et-prev__gouv { flex: none; display: block; height: calc(var(--arv-et-b) * .7) !important; width: auto !important; margin-left: 16px; }

/* Trois lignes : téléphone, tablette, et écran trop étroit pour deux lignes (classe posée par entete.js). */
@media (max-width: 1099px) {
	.arv-et-prev:not(.arv-et-prev--2) { padding: 0 10px 0 12px; }
	.arv-et-prev:not(.arv-et-prev--2) .arv-et-prev__txt { gap: calc(var(--arv-et-b) * .05); }
	.arv-et-prev:not(.arv-et-prev--2) .arv-et-prev__l1, .arv-et-prev:not(.arv-et-prev--2) .arv-et-prev__l2 { font-stretch: 75%; letter-spacing: -.05em; }
	.arv-et-prev:not(.arv-et-prev--2) .arv-et-prev__l2 { font-size: min(calc((100cqw - 30px - var(--arv-et-b) * .7687) / 37.08), calc(var(--arv-et-b) * .216)); }
	.arv-et-prev:not(.arv-et-prev--2) .arv-et-prev__l1 { font-size: calc(min(calc((100cqw - 30px - var(--arv-et-b) * .7687) / 37.08), calc(var(--arv-et-b) * .216)) * 1.413); line-height: 1.04; }
	.arv-et-prev:not(.arv-et-prev--2) .arv-et-prev__l1 > span { display: block; }
	.arv-et-prev:not(.arv-et-prev--2) .arv-et-prev__gouv { height: calc(var(--arv-et-b) * .46) !important; margin-left: 8px; }
}
.arv-et-prev--3 { padding: 0 10px 0 12px; }
.arv-et-prev--3 .arv-et-prev__txt { gap: calc(var(--arv-et-b) * .05); }
.arv-et-prev--3 .arv-et-prev__l1, .arv-et-prev--3 .arv-et-prev__l2 { font-stretch: 75%; letter-spacing: -.05em; }
.arv-et-prev--3 .arv-et-prev__l2 { font-size: min(calc((100cqw - 30px - var(--arv-et-b) * .7687) / 37.08), calc(var(--arv-et-b) * .216)); }
.arv-et-prev--3 .arv-et-prev__l1 { font-size: calc(min(calc((100cqw - 30px - var(--arv-et-b) * .7687) / 37.08), calc(var(--arv-et-b) * .216)) * 1.413); line-height: 1.04; }
.arv-et-prev--3 .arv-et-prev__l1 > span { display: block; }
.arv-et-prev--3 .arv-et-prev__gouv { height: calc(var(--arv-et-b) * .46) !important; margin-left: 8px; }

/* ---------- Barre ---------- */
.arv-et-barre { display: flex; align-items: center; justify-content: flex-end; gap: 30px; height: var(--arv-et-barre); padding: 0 40px; background: var(--arv-et-nuit); transition: height .25s ease, box-shadow .25s ease; }
.arv-et-logo-line { display: flex; align-items: center; margin-right: auto; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.arv-et-logo-line__img { display: block; height: 22px !important; width: auto !important; max-width: 340px !important; object-fit: contain; }
.arv-et-nom { font-family: var(--arv-et-titre); font-size: 18px; font-weight: 800; letter-spacing: .04em; color: #fff; text-transform: uppercase; white-space: nowrap; }
.arv-et-liens { display: flex; }
.arv-et-liens__liste { display: flex; gap: 34px; }
.arv-et-liens a, .arv-et-menu__liens a { font-size: 15px; font-weight: 500; color: var(--arv-et-lav) !important; white-space: nowrap; transition: color .2s; }
.arv-et-liens a:hover, .arv-et-liens a:focus-visible, .arv-et-liens .current-menu-item > a { color: var(--arv-et-cyan) !important; }
.arv-et-sep { width: 1px; height: 22px; background: rgba(185, 195, 245, .25); }
.arv-et-tel { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--arv-et-cyan) !important; white-space: nowrap; }
.arv-et-tel:hover .arv-et-tel__num { text-decoration: underline; text-underline-offset: 3px; }
.arv-et-fb { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--arv-et-cyan); color: var(--arv-et-nuit) !important; transition: transform .2s; }
.arv-et-fb:hover { transform: translateY(-2px); }
.arv-et-fb svg { width: 20px !important; height: 20px !important; }
.arv-et-tel svg { width: 18px !important; height: 18px !important; }
.arv-et-contact__rond svg { width: 19px !important; height: 19px !important; }
.arv-et-fermer svg { width: 26px !important; height: 26px !important; }
.arv-et-18 { flex: none; display: block; width: 42px !important; height: 42px !important; object-fit: contain; }
.arv-et a:focus-visible, .arv-et button:focus-visible, .arv-et-menu a:focus-visible, .arv-et-menu button:focus-visible { outline: 3px solid var(--arv-et-cyan); outline-offset: 3px; border-radius: 6px; }

.arv-et-burger { flex: none; display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 12px; background: var(--arv-et-cyan); color: var(--arv-et-nuit); cursor: pointer; box-shadow: 0 8px 24px rgba(83, 237, 255, .25); transition: transform .2s, background .2s; }
.arv-et-burger:hover { background: #8ff4ff; }
.arv-et-burger__traits { display: flex; flex-direction: column; gap: 7px; }
.arv-et-burger__traits i { display: block; width: 28px; height: 2.5px; border-radius: 2px; background: currentColor; }
.arv-et-burger--barre { display: none; width: 44px; height: 44px; border-radius: 9px; }
.arv-et-burger--barre .arv-et-burger__traits { gap: 5px; }
.arv-et-burger--barre .arv-et-burger__traits i { width: 20px; }

/* ---------- Ligne du logo (haut de page, ordinateur) ---------- */
.arv-et-logo { position: relative; display: flex; align-items: center; justify-content: center; height: var(--arv-et-logo); background: var(--arv-et-nuit); transition: height .25s ease, opacity .2s ease; }
.arv-et-logo__lien { display: block; }
.arv-et-logo__img { display: block; width: auto !important; height: auto !important; max-width: 260px !important; max-height: 130px !important; }
.arv-et-logo .arv-et-nom { font-size: 30px; }
.arv-et-burger--logo { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); }

/* En défilant : bandeau + barre de 64 px, logo line à gauche. */
.arv-et--colle .arv-et-barre { height: 64px; box-shadow: 0 10px 30px rgba(16, 0, 57, .35); }
.arv-et--colle .arv-et-logo-line { opacity: 1; visibility: visible; }
.arv-et--colle .arv-et-burger--barre { display: grid; }
.arv-et--colle .arv-et-logo { height: 0; opacity: 0; overflow: hidden; pointer-events: none; }

/* ---------- Téléphone ---------- */
@media (max-width: 767px) {
	body.arv-et-on #Content, body.arv-et-on:has(.arv-hero, .arv-pg-tete--photo) #Content { padding-top: calc(var(--arv-et-b) + var(--arv-et-barre-m)) !important; }
	.arv-et-barre, .arv-et--colle .arv-et-barre { display: grid; grid-template-columns: 1fr auto auto auto auto; grid-template-rows: 20px 44px; grid-template-areas: "logo logo logo logo logo" "liens fb tel burger m18"; align-items: center; gap: 10px 8px; height: var(--arv-et-barre-m); padding: 10px 12px; box-shadow: none; }
	.arv-et-logo-line { grid-area: logo; justify-self: center; margin: 0; opacity: 1; visibility: visible; }
	.arv-et-logo-line__img { height: 17px !important; max-width: 250px !important; }
	.arv-et-barre .arv-et-nom { font-size: 15px; }
	.arv-et-liens { grid-area: liens; min-width: 0; overflow: hidden; }
	.arv-et-liens__liste { gap: 18px; }
	.arv-et-sep { display: none; }
	.arv-et-fb { grid-area: fb; width: 28px; height: 28px; border-radius: 6px; }
	.arv-et-fb svg { width: 17px !important; height: 17px !important; }
	.arv-et-tel { grid-area: tel; padding: 0 3px; }
	.arv-et-tel svg { width: 24px !important; height: 24px !important; }
	.arv-et-tel__num { display: none; }
	.arv-et-burger--barre { grid-area: burger; display: grid; }
	.arv-et-18 { grid-area: m18; width: 40px !important; height: 40px !important; }
	.arv-et-logo { display: none; }
}
@media (max-width: 360px) {
	.arv-et-liens a { font-size: 14px; }
	.arv-et-liens__liste { gap: 12px; }
}

/* ---------- Panneau du menu ---------- */
.arv-et-menu { position: fixed; top: calc(var(--arv-et-top) + var(--arv-et-b)); left: 0; right: 0; bottom: 0; z-index: 9991; display: grid; grid-template-columns: minmax(0, 1fr) min(540px, 40vw); gap: 56px; padding: 40px 40px 40px clamp(40px, 8vw, 120px); overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(120% 140% at 85% 0%, #2a1a6e 0%, #1a0d45 45%, #13072e 100%); color: #fff; font-family: Roboto, system-ui, sans-serif; animation: arv-et-entree .25s ease; }
.arv-et-menu[hidden] { display: none; }
.arv-et-menu:not(:has(.arv-et-menu__photo)) { grid-template-columns: minmax(0, 1fr); }
@keyframes arv-et-entree { from { opacity: 0; transform: translateY(-8px); } }
.arv-et-menu__col { display: flex; flex-direction: column; min-height: 100%; }
.arv-et-menu__haut { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.arv-et-menu .arv-et-logo-line { opacity: 1; visibility: visible; }
.arv-et-fermer { position: absolute; top: 40px; right: 40px; z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 12px; background: var(--arv-et-cyan); color: var(--arv-et-nuit); cursor: pointer; box-shadow: 0 8px 24px rgba(83, 237, 255, .25); }
.arv-et-fermer:hover { background: #8ff4ff; }
.arv-et-menu__nav { margin: 40px 0 auto; padding-bottom: 30px; }
.arv-et-menu__liste > li > a { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 3px 0; font-family: var(--arv-et-titre); font-size: clamp(24px, 4.2vh, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-transform: uppercase; color: #fff !important; transition: color .2s, transform .2s; }
.arv-et-menu__liste > li > a:hover, .arv-et-menu__liste > li > a:focus-visible { color: var(--arv-et-anis) !important; transform: translateX(4px); }
.arv-et-menu__liste > .current-menu-item > a, .arv-et-menu__liste > .current-menu-ancestor > a { color: var(--arv-et-cyan) !important; }
.arv-et-menu__liste > .current-menu-item > a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--arv-et-cyan); box-shadow: 0 0 12px var(--arv-et-cyan); }
.arv-et-menu__liste .sub-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 8px; }
.arv-et-menu__liste .sub-menu a { font-size: 15px; font-weight: 500; color: var(--arv-et-lav) !important; }
.arv-et-menu__liste .sub-menu a:hover { color: var(--arv-et-cyan) !important; }
.arv-et-menu__contact { display: flex; flex-wrap: wrap; gap: 20px 44px; padding-top: 26px; border-top: 1px solid rgba(185, 195, 245, .18); }
.arv-et-contact { display: flex; align-items: center; gap: 12px; color: #fff !important; }
.arv-et-contact b { display: block; font-family: var(--arv-et-titre); font-size: 14px; font-weight: 800; }
.arv-et-contact span > span { display: block; font-size: 14px; color: var(--arv-et-lav); white-space: nowrap; }
.arv-et-contact:hover span > span { color: var(--arv-et-cyan); }
.arv-et-contact__rond { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--arv-et-anis); color: var(--arv-et-nuit); }
.arv-et-contact__rond--fb { border-radius: 10px; background: var(--arv-et-cyan); }
.arv-et-menu__liens { display: none; margin-top: 18px; }
.arv-et-menu__liens .arv-et-liens__liste { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.arv-et-menu__photo { position: relative; border-radius: 32px; overflow: hidden; min-height: 300px; }
.arv-et-menu__photo img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
html.arv-et-ouvert, html.arv-et-ouvert body { overflow: hidden; }

@media (max-width: 1023px) {
	.arv-et-menu { grid-template-columns: minmax(0, 1fr); }
	.arv-et-menu__photo { display: none; }
}
@media (max-width: 767px) {
	.arv-et-menu { gap: 0; padding: 16px 20px 24px; }
	.arv-et-fermer { top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 9px; }
	.arv-et-menu .arv-et-logo-line__img { height: 15px !important; }
	.arv-et-menu__nav { margin-top: 28px; }
	.arv-et-menu__liste > li > a { font-size: 26px; padding: 4px 0; }
	.arv-et-menu__contact { flex-direction: column; gap: 14px; }
	.arv-et-menu__liens { display: block; }
}
@media (prefers-reduced-motion: reduce) {
	.arv-et-barre, .arv-et-logo, .arv-et-logo-line, .arv-et-menu, .arv-et-menu__liste > li > a { transition: none; animation: none; }
}

/* Aperçu avant activation. */
.arv-et-apercu { position: fixed; left: 50%; bottom: 20px; z-index: 9995; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px); padding: 10px 10px 10px 18px; border-radius: 999px; background: #13072e; color: #fff; font: 14px/1.3 Roboto, system-ui, sans-serif; box-shadow: 0 12px 34px rgba(19, 7, 46, .35); }
.arv-et-apercu b { color: var(--arv-et-anis); }
.arv-et-apercu a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--arv-et-cyan); color: #13072e !important; font-weight: 700; font-size: 13px; text-decoration: none; }

/* Réglages : aperçu du bandeau et interrupteur. */
.arv-et-admin-prev { --arv-et-b: 63px; border-radius: 10px; overflow: hidden; max-width: 100%; }
.arv-et-admin-prev .arv-et-prev { --arv-et-b: 40px; height: 40px; }
.arv-et-admin-prev .arv-et-prev__l1, .arv-et-admin-prev .arv-et-prev__l2 { font-stretch: 75%; }
.arv-et-activ { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border: 1px solid #f3d47a; border-radius: 12px; background: #fff8e1; }
.arv-et-activ--on { border-color: #9fd6a8; background: #ecf8ee; }
.arv-et-activ .button { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.arv-et-activ .button .dashicons { margin: 0; line-height: 20px; }
.arv-et-interrupteur { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.arv-et-image__apercu { min-width: 150px; min-height: 86px; display: grid; place-items: center; padding: 10px; border-radius: 10px; background: #13072e; }
.arv-et-image__apercu--clair { background: #f0f2f7; }
.arv-et-image__apercu img { display: block; max-width: 220px; max-height: 110px; width: auto; height: auto; }
.arv-et-image__apercu img { border: 0 !important; box-shadow: none !important; background: none !important; padding: 0 !important; }
.arv-carte .arv-champ select + .description { display: block; margin-top: 5px; }
