/* Arevian – Sites : styles neutres, qui reprennent la typographie et les couleurs du thème. */

/* Horaires */
.arv-horaires__liste { margin: 0; padding: 0; }
.arv-horaires__ligne { margin: 0 0 .15em; }
.arv-horaires dt,
.arv-horaires dd { margin: 0; padding: 0; }
.arv-horaires dt { font-weight: 600; }
.arv-horaires--ligne dt,
.arv-horaires--ligne dd { display: inline; }
.arv-horaires--ligne dt::after { content: "\00a0: "; }
.arv-horaires--bloc .arv-horaires__ligne { margin-bottom: .5em; }
.arv-horaires--bloc dt::after { content: "\00a0:"; }
.arv-horaires__titre { margin: .75em 0 .25em; font-weight: 700; }
.arv-horaires__titre:first-child { margin-top: 0; }
.arv-horaires p.arv-horaires__annonce,
.arv-horaires p.arv-horaires__precision { margin: .5em 0 0; }
.arv-horaires__annonce { font-weight: 600; }

/* Badge Ouvert / Fermé */
.arv-ouvert {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .3em .85em;
	border-radius: 999px;
	font-weight: 600;
	line-height: 1.3;
	color: #002a7d;
	background: #f1f4fa;
}
.arv-ouvert[hidden] { display: none; }
.arv-ouvert::before {
	content: "";
	flex: none;
	width: .6em;
	height: .6em;
	border-radius: 50%;
	background: #b3261e;
}
.arv-ouvert--ouvert { background: #d7fc69; }
.arv-ouvert--ouvert::before { background: #13772f; }
.arv-ouvert__detail { font-weight: 400; margin-left: -.15em; }

/* ==========================================================================
   Hero d'accueil [arv_hero]
   ========================================================================== */
.arv-hero {
	--arv-largeur: 1240px;
	--arv-titre: "Plus Jakarta Sans", system-ui, sans-serif;
	position: relative;
	margin: 0;
	background: #13072e;
	color: #fff;
	overflow: hidden;
	font-family: Roboto, system-ui, sans-serif;
	isolation: isolate;
	/* La mise en page suit la largeur du hero lui-même (colonne BeBuilder), pas celle de l'écran. */
	container: arv-hero / inline-size;
}
.arv-hero *, .arv-hero *::before, .arv-hero *::after { box-sizing: border-box; }
.arv-hero__scene {
	position: relative;
	/* Toute la hauteur visible sous le bandeau de prévention (réglable : hauteur, moins). */
	min-height: clamp(640px, calc(var(--arv-h, 100vh) - var(--arv-moins, 80px)), 1000px);
	display: flex;
}
.arv-hero__fond, .arv-hero .arv-hero__fond img.arv-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
}
.arv-hero .arv-hero__fond img.arv-hero__img {
	height: 100% !important;
	object-fit: cover;
	object-position: 50% var(--arv-y, 30%);
}
/* Le cadre de l'image rogne le zoom : l'image agrandie ne déborde jamais sur les pastilles. */
.arv-hero__fond { overflow: hidden; z-index: 0; }
.arv-hero__pastilles { z-index: 4; }
/* Voiles : à gauche pour le slogan, en bas pour les pastilles (le sol de l'image s'éclaircit). */
.arv-hero__scene::before,
.arv-hero__scene::after { content: ""; position: absolute; pointer-events: none; z-index: 1; }
.arv-hero__scene::before { top: 0; left: 0; bottom: 0; width: 58%; background: linear-gradient(90deg, rgba(19,7,46,.72) 0%, rgba(19,7,46,.45) 60%, rgba(19,7,46,0) 100%); }
.arv-hero__scene::after { left: 0; right: 0; bottom: 0; height: 36%; background: linear-gradient(180deg, rgba(19,7,46,0) 0%, rgba(19,7,46,.8) 100%); }

.arv-hero__contenu {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--arv-largeur);
	margin: 0 auto;
	padding: var(--arv-haut, 130px) 40px 200px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.arv-hero--sans-pastille .arv-hero__contenu { padding-bottom: 80px; }
.arv-hero__texte { max-width: 640px; display: flex; flex-direction: column; gap: 26px; }
.arv-hero .arv-hero__slogan {
	margin: 0;
	padding: 0;
	font-family: var(--arv-titre);
	font-weight: 800;
	font-size: 1rem;
	line-height: .98;
	color: #fff;
	letter-spacing: 0;
	text-transform: none;
	display: flex;
	flex-direction: column;
}
.arv-hero__l1 { font-size: calc(clamp(17px, 1.8cqi, 26px) * var(--arv-taille, 1)); letter-spacing: .04em; margin-bottom: .25em; }
.arv-hero__l2 { font-size: calc(clamp(46px, 5.3cqi, 76px) * var(--arv-taille, 1)); }
.arv-hero__l3 { font-size: calc(clamp(56px, 6.7cqi, 96px) * var(--arv-taille, 1)); letter-spacing: -.01em; }
.arv-hero__horaires { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.arv-hero .arv-hero__phrase { margin: 0; padding: 0; font-size: clamp(16px, 1.35cqi, 19px); line-height: 1.45; color: #fff; max-width: 520px; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.arv-hero .arv-ouvert { font-size: 16px; }

/* Pastilles : en bas du hero sur ordinateur */
.arv-hero__pastilles { position: absolute; z-index: 3; left: 0; right: 0; bottom: 40px; }
.arv-hero__pastilles-in { max-width: var(--arv-largeur); margin: 0 auto; padding: 0 40px; display: flex; gap: 24px; }
.arv-hero--ronde .arv-hero__pastilles { bottom: 30px; }
.arv-hero--ronde .arv-hero__pastilles-in { gap: 40px; }

.arv-pastille { --arv-c: #f2c14e; --arv-ct: #13072e; text-decoration: none; }
.arv-pastille[hidden] { display: none !important; }
.arv-pastille--or     { --arv-c: #f2c14e; --arv-ct: #13072e; }
.arv-pastille--rouge  { --arv-c: #c8102e; --arv-ct: #fff; }
.arv-pastille--cyan   { --arv-c: #53edff; --arv-ct: #13072e; }
.arv-pastille--anis   { --arv-c: #d7fc69; --arv-ct: #002a7d; }
.arv-pastille--marine { --arv-c: #002a7d; --arv-ct: #fff; }
.arv-pastille--blanc  { --arv-c: #fff;    --arv-ct: #002a7d; }
/* Sélecteur renforcé : BeTheme impose « .content_wrapper img { height: auto } ». */
.arv-hero .arv-pastille .arv-pastille__photo img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; margin: 0; }
.arv-pastille__surtitre { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.arv-pastille__titre { display: block; font-family: var(--arv-titre, "Plus Jakarta Sans", sans-serif); font-weight: 800; line-height: 1.15; }

/* Carte */
a.arv-pastille--carte, div.arv-pastille--carte {
	flex: 0 1 500px;
	min-width: 0;
	display: flex;
	gap: 14px;
	padding: 10px;
	border-radius: 16px;
	background: rgba(14,5,36,.86);
	border: 1px solid rgba(255,255,255,.18);
	color: #fff;
	box-shadow: 0 12px 32px rgba(0,0,0,.35);
	transition: transform .15s ease, border-color .15s ease;
}
a.arv-pastille--carte:hover, a.arv-pastille--carte:focus-visible { color: #fff; transform: translateY(-2px); border-color: var(--arv-c); }
.arv-pastille--carte .arv-pastille__photo { flex: none; width: 132px; height: 104px; border-radius: 10px; overflow: hidden; background: #2a1257; }
.arv-pastille--carte .arv-pastille__corps { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.arv-pastille--carte .arv-pastille__textes { display: flex; flex-direction: column; gap: 3px; }
.arv-pastille--carte .arv-pastille__surtitre { color: #c9cde8; }
.arv-pastille--carte .arv-pastille__titre { font-size: 21px; color: #fff; }
.arv-pastille--carte .arv-pastille__bouton {
	display: block;
	padding: 9px 14px;
	border-radius: 8px;
	background: var(--arv-c);
	color: var(--arv-ct);
	font-family: var(--arv-titre, "Plus Jakarta Sans", sans-serif);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-align: center;
}

/* Ronde */
a.arv-pastille--ronde, div.arv-pastille--ronde { width: 220px; display: flex; flex-direction: column; align-items: center; color: #002a7d; }
.arv-pastille--ronde .arv-pastille__photo {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	border: 6px solid var(--arv-c);
	overflow: hidden;
	background: var(--arv-c);
	box-shadow: 0 14px 40px rgba(0,0,0,.45);
	transition: transform .15s ease;
}
a.arv-pastille--ronde:hover .arv-pastille__photo, a.arv-pastille--ronde:focus-visible .arv-pastille__photo { transform: scale(1.04); }
.arv-pastille--ronde .arv-pastille__etiquette {
	margin-top: -24px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 9px 16px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,.35);
	text-align: center;
}
.arv-pastille--ronde .arv-pastille__surtitre { font-size: 11px; color: #4b3aa8; }
.arv-pastille--ronde .arv-pastille__titre { font-size: 15px; color: #002a7d; }

/* Hero étroit (téléphone, petite tablette, colonne étroite) : texte posé sur l'image, pastilles sous l'image (option A). */
@container arv-hero (max-width: 767px) {
	.arv-hero__scene { min-height: clamp(480px, 72svh, 640px); }
	.arv-hero .arv-hero__fond img.arv-hero__img { object-position: var(--arv-x, 85%) var(--arv-y, 30%); }
	.arv-hero__contenu { justify-content: flex-end; }
	.arv-hero__contenu, .arv-hero--sans-pastille .arv-hero__contenu { padding-bottom: 20px; }
	/* Bouton pause en haut à droite sur téléphone (l'en-tête n'est pas posé sur l'image). */
	.arv-hero .arv-hero__pause, .arv-hero--transition .arv-hero__pause { top: 10px; right: 10px; bottom: auto; }
	.arv-hero__scene::before { display: none; }
	/* Le dégradé finit sur la couleur exacte du fond des pastilles : aucune ligne entre l'image et les pastilles. */
	.arv-hero__scene::after { height: 62%; bottom: -1px; background: linear-gradient(180deg, rgba(19,7,46,0) 0%, rgba(19,7,46,.85) 45%, #13072e 90%, #13072e 100%); }
	.arv-hero__contenu, .arv-hero--sans-pastille .arv-hero__contenu { display: flex; flex-direction: column; justify-content: flex-end; padding: var(--arv-haut-m, 70px) 22px 22px; }
	.arv-hero__texte { gap: 14px; }
	.arv-hero__l1 { font-size: calc(clamp(14px, 4.4cqi, 20px) * var(--arv-taille-m, 1)); }
	.arv-hero__l2 { font-size: calc(clamp(30px, 10.8cqi, 52px) * var(--arv-taille-m, 1)); }
	.arv-hero__l3 { font-size: calc(clamp(34px, 12.6cqi, 60px) * var(--arv-taille-m, 1)); }
	.arv-hero .arv-hero__phrase { font-size: 15px; }
	.arv-hero .arv-ouvert { font-size: 15px; }
	.arv-hero .arv-hero__pastilles { position: relative; bottom: auto !important; }
	.arv-hero__pastilles-in { padding: 4px 16px 24px; flex-direction: column; gap: 10px; }
	a.arv-pastille--carte, div.arv-pastille--carte { flex: none; width: 100%; gap: 12px; padding: 8px; border-radius: 14px; background: #1f1046; }
	.arv-pastille--carte .arv-pastille__photo { width: 96px; height: 84px; border-radius: 9px; }
	.arv-pastille--carte .arv-pastille__titre { font-size: 16px; }
	.arv-pastille--carte .arv-pastille__surtitre { font-size: 11px; }
	.arv-pastille--carte .arv-pastille__bouton { padding: 6px 10px; font-size: 12px; border-radius: 7px; }
	.arv-hero--ronde .arv-hero__pastilles-in { flex-direction: row; justify-content: center; gap: 16px; padding-top: 16px; }
	a.arv-pastille--ronde, div.arv-pastille--ronde { width: calc(50% - 8px); max-width: 180px; }
	.arv-pastille--ronde .arv-pastille__photo { width: 124px; height: 124px; border-width: 5px; }
	.arv-pastille--ronde .arv-pastille__etiquette { margin-top: -20px; padding: 8px 10px; }
	.arv-pastille--ronde .arv-pastille__titre { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.arv-pastille, .arv-pastille__photo { transition: none !important; }
}

/* ==========================================================================
   Bandeau d'alerte
   ========================================================================== */
.arv-bandeau { --arv-bf: #d7fc69; --arv-bt: #002a7d; background: var(--arv-bf); color: var(--arv-bt); font-family: Roboto, system-ui, sans-serif; position: relative; z-index: 5; }
.arv-bandeau[hidden] { display: none; }
.arv-bandeau--cyan   { --arv-bf: #53edff; --arv-bt: #13072e; }
.arv-bandeau--rouge  { --arv-bf: #b3001e; --arv-bt: #fff; }
.arv-bandeau--marine { --arv-bf: #002a7d; --arv-bt: #fff; }
.arv-bandeau__in { max-width: 1240px; margin: 0 auto; padding: 10px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; text-align: center; }
.arv-bandeau__etiquette { flex: none; padding: 2px 10px; border-radius: 999px; border: 1.5px solid currentColor; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.arv-bandeau .arv-bandeau__texte { margin: 0; padding: 0; font-size: 15px; font-weight: 500; line-height: 1.4; color: inherit; }
.arv-bandeau a.arv-bandeau__lien { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.arv-bandeau a.arv-bandeau__lien:hover, .arv-bandeau a.arv-bandeau__lien:focus-visible { color: inherit; text-decoration-thickness: 2px; }
@media (max-width: 767px) {
	.arv-bandeau__in { padding: 8px 16px; }
	.arv-bandeau .arv-bandeau__texte { font-size: 14px; }
}

/* BeBuilder : la colonne qui contient le hero ne doit ajouter ni marge ni retrait. */
.mcb-column:has(.arv-hero) > .mcb-column-inner,
.mcb-column-inner:has(.arv-hero) { margin: 0 !important; padding: 0 !important; }
/* Paragraphes vides ajoutés par l'éditeur autour du raccourci (ils créaient une bande au-dessus du hero). */
.column_attr:has(> .arv-hero) > p:empty, p:empty:has(+ .arv-hero), .arv-hero + p:empty { display: none !important; }
.mcb-wrap-inner:has(.arv-hero), .section_wrapper:has(.arv-hero) { padding: 0 !important; }
/* « Pleine largeur sauf mobile » de BeTheme : le hero reste bord à bord sur téléphone. */
.section_wrapper:has(.arv-hero),
.content_wrapper .section_wrapper:has(.arv-hero) { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; width: 100% !important; }

/* Phrase d'horaires découpée : on ne passe à la ligne qu'entre deux morceaux (« … de 11 h à 2 h, » / « jusqu'à 3 h … »). */
.arv-horaires--phrase .arv-seg { display: inline-block; }

/* Animations du hero */
.arv-hero__ciel { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.arv-hero__pause {
	position: absolute; z-index: 4; right: 14px; bottom: 14px;
	width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
	background: rgba(14,5,36,.55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
	opacity: .6; transition: opacity .15s ease;
}
.arv-hero__pause:hover, .arv-hero__pause:focus-visible { opacity: 1; }
.arv-hero__pause[hidden] { display: none; }
.arv-hero__pause svg { width: 14px; height: 14px; fill: currentColor; }
.arv-hero--zoom .arv-hero .arv-hero__fond img.arv-hero__img,
.arv-hero.arv-hero--zoom .arv-hero__fond img.arv-hero__img { animation: arv-zoom var(--arv-zoom-duree, 24s) ease-in-out infinite alternate; transform-origin: var(--arv-x, 85%) var(--arv-y, 30%); }
@keyframes arv-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.arv-hero.arv-anim-arret .arv-hero__fond img.arv-hero__img { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
	.arv-hero.arv-hero--zoom .arv-hero__fond img.arv-hero__img { animation: none; }
}

/* Transition vers la section suivante (vague, courbe, diagonale) */
.arv-hero { --arv-t-h: 0px; }
.arv-hero--transition { --arv-t-h: clamp(34px, 6.25cqi, 96px); }
.arv-hero__transition { position: absolute; z-index: 3; left: 0; right: 0; bottom: -1px; height: calc(var(--arv-t-h) + 1px); pointer-events: none; line-height: 0; }
.arv-hero__transition svg { display: block; width: 100%; height: 100%; fill: var(--arv-suite, #f1f4fa); }
.arv-hero__transition .arv-hero__t-fond { opacity: .38; }
.arv-hero--transition .arv-hero__pastilles { bottom: calc(40px + var(--arv-t-h)); z-index: 4; }
.arv-hero--transition .arv-hero--ronde .arv-hero__pastilles,
.arv-hero--transition.arv-hero--ronde .arv-hero__pastilles { bottom: calc(30px + var(--arv-t-h)); }
.arv-hero--transition .arv-hero__contenu { padding-bottom: calc(200px + var(--arv-t-h)); }
.arv-hero--transition.arv-hero--sans-pastille .arv-hero__contenu { padding-bottom: calc(80px + var(--arv-t-h)); }
.arv-hero--transition .arv-hero__pause { bottom: calc(14px + var(--arv-t-h)); }
@container arv-hero (max-width: 767px) {
	.arv-hero__transition { height: calc(var(--arv-t-h) + 1px); }
	.arv-hero--transition .arv-hero__contenu { padding-bottom: 20px; }
	.arv-hero--transition .arv-hero__pastilles-in { padding-bottom: calc(24px + var(--arv-t-h)); }
	.arv-hero--transition.arv-hero--sans-pastille .arv-hero__contenu { padding-bottom: calc(20px + var(--arv-t-h)); }
	.arv-hero.arv-hero--transition .arv-hero__pause { top: 10px; right: 10px; bottom: auto; }
}
