/* La Bombarde — surcouche de styles (site + éditeur). Page unique, 21/11/2026.
   Couleurs : var(--wp--preset--color--*) ; or #D7B56D jamais en texte sur fond clair (accent-2 à la place). */

:root { --b-ease-out: cubic-bezier(0.23, 1, 0.32, 1); --b-header: 80px; }
@media (max-width: 600px) { :root { --b-header: 64px; } }

/* Liens : le theme.json du starter fige la taille (a:where) */
a { font-size: inherit; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: var(--b-header); }

/* ---------- Marque (logo) ---------- */
.bombarde-brand { display: inline-flex; align-items: center; line-height: 0; }
.bombarde-brand img { height: 64px; width: auto; display: block; }


@media (max-width: 600px) { .bombarde-brand img { height: 48px; } }

/* ---------- En-tête : logo + « Appeler », rien d'autre ---------- */
.bombarde-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgb(215 181 109 / .35); }
.admin-bar .bombarde-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bombarde-header { top: 46px; } }
.bombarde-header__appel .wp-block-button__link { padding: .55rem 1.25rem; border-radius: 2px; }

/* ---------- Boutons ---------- */
.wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; background: transparent; color: inherit; }
.has-contrast-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.bombarde-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--base); }

/* Texte sur fond sombre */
.has-contrast-background-color a:not(.wp-element-button) { color: var(--wp--preset--color--accent); }
.has-contrast-background-color h2, .has-contrast-background-color h3 { color: inherit; }

/* ---------- Crêtes de séparation en 3 plans, posées en haut d'une section ----------
   ::before = deux crêtes lointaines translucides (masque, couleur de la section)
   ::after  = crête de premier plan pleine, ombre douce vers le haut pour la profondeur
   La section ne doit pas couper ce qui dépasse en haut : overflow-x: clip, jamais overflow: hidden. */
.bombarde-crete { position: relative; }
.bombarde-crete::before, .bombarde-crete::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(52px, 8vw, 128px);
	z-index: 3; pointer-events: none;
}
.bombarde-crete::before {
	background-color: inherit;
	-webkit-mask: var(--b-crete-loin) bottom / 100% 100% no-repeat; mask: var(--b-crete-loin) bottom / 100% 100% no-repeat;
}
.bombarde-crete::after {
	background: no-repeat bottom / 100% 100%;
	filter: drop-shadow(0 -2px 2px rgb(0 0 0 / .14)) drop-shadow(0 -10px 16px rgb(0 0 0 / .16));
	clip-path: inset(-48px 0 0 0); /* l'ombre monte, elle ne bave jamais sous la base ni sur les côtés */
}
/* Pied de page de l'accueil : il suit une section sombre, pas de crête, un simple filet */
main.bombarde-accueil + footer .bombarde-footer::before, main.bombarde-accueil + footer .bombarde-footer::after { display: none; }
main.bombarde-accueil + footer .bombarde-footer { border-top: 1px solid rgb(215 181 109 / .18); }
/* Parallaxe : --p (0 → 1) est posé par bombarde.js quand la crête entre à l'écran. Sans JS : p = 1, position finale.
   Les montagnes lointaines montent plus que celles de devant, donc elles se rejoignent en arrivant. */
.bombarde-crete::before { transform: translate3d(0, calc((1 - var(--p, 1)) * 46px), 0); will-change: transform; }
.bombarde-crete::after  { transform: translate3d(0, calc((1 - var(--p, 1)) * 16px), 0); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .bombarde-crete::before, .bombarde-crete::after { transform: none; will-change: auto; } }
/* CRETES:debut — généré par crete_svg.py, ne pas éditer à la main */
:root { --b-crete-loin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 52 L54 51 L66 52 L108 33 L196 65 L254 43 L266 49 L333 9 L382 70 L553 25 L593 57 L662 30 L674 44 L722 8 L810 68 L880 46 L893 49 L927 24 L1039 70 L1083 45 L1096 47 L1159 26 L1235 62 L1366 17 L1440 57 L1440 45 L1440 120 L0 120 Z' fill-opacity='.22'/%3E%3Cpath d='M0 86 L47 69 L55 74 L89 53 L115 79 L153 55 L161 70 L193 36 L253 82 L307 64 L315 71 L340 39 L389 88 L423 69 L431 71 L451 50 L506 82 L565 62 L573 67 L601 45 L643 86 L672 56 L680 67 L704 33 L787 80 L820 62 L828 64 L844 38 L900 85 L956 73 L963 74 L993 52 L1052 78 L1080 63 L1087 69 L1138 31 L1184 86 L1267 44 L1309 80 L1343 62 L1351 64 L1399 40 L1440 87 L1440 65 L1440 120 L0 120 Z' fill-opacity='.5'/%3E%3C/svg%3E"); }
:root { --b-crete-trait: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 98 L32 71 L98 101 L116 87 L122 91 L149 66 L183 100 L249 68 L292 104 L303 84 L309 92 L320 60 L380 103 L405 80 L411 80 L435 59 L478 105 L494 84 L500 96 L511 71 L576 105 L613 74 L667 105 L725 64 L763 98 L795 76 L801 89 L821 59 L851 103 L906 59 L947 98 L984 84 L989 89 L1008 63 L1047 98 L1091 81 L1096 88 L1111 67 L1148 97 L1176 90 L1181 85 L1210 67 L1249 103 L1281 92 L1286 88 L1311 73 L1346 103 L1357 90 L1363 95 L1380 79 L1426 102 L1440 93' fill='none' stroke='%23D7B56D' stroke-opacity='.28' stroke-width='1.5' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3Cpath d='M0 52 L54 51 L66 52 L108 33 L196 65 L254 43 L266 49 L333 9 L382 70 L553 25 L593 57 L662 30 L674 44 L722 8 L810 68 L880 46 L893 49 L927 24 L1039 70 L1083 45 L1096 47 L1159 26 L1235 62 L1366 17 L1440 57 L1440 45' fill='none' stroke='%23D7B56D' stroke-opacity='.14' stroke-width='1.5' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.bombarde-crete.has-base-background-color::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 98 L32 71 L98 101 L116 87 L122 91 L149 66 L183 100 L249 68 L292 104 L303 84 L309 92 L320 60 L380 103 L405 80 L411 80 L435 59 L478 105 L494 84 L500 96 L511 71 L576 105 L613 74 L667 105 L725 64 L763 98 L795 76 L801 89 L821 59 L851 103 L906 59 L947 98 L984 84 L989 89 L1008 63 L1047 98 L1091 81 L1096 88 L1111 67 L1148 97 L1176 90 L1181 85 L1210 67 L1249 103 L1281 92 L1286 88 L1311 73 L1346 103 L1357 90 L1363 95 L1380 79 L1426 102 L1440 93 L1440 120 L0 120 Z' fill='%23FFFFFF'/%3E%3C/svg%3E"); }
.bombarde-crete.has-base-2-background-color::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 98 L32 71 L98 101 L116 87 L122 91 L149 66 L183 100 L249 68 L292 104 L303 84 L309 92 L320 60 L380 103 L405 80 L411 80 L435 59 L478 105 L494 84 L500 96 L511 71 L576 105 L613 74 L667 105 L725 64 L763 98 L795 76 L801 89 L821 59 L851 103 L906 59 L947 98 L984 84 L989 89 L1008 63 L1047 98 L1091 81 L1096 88 L1111 67 L1148 97 L1176 90 L1181 85 L1210 67 L1249 103 L1281 92 L1286 88 L1311 73 L1346 103 L1357 90 L1363 95 L1380 79 L1426 102 L1440 93 L1440 120 L0 120 Z' fill='%23F6F1E7'/%3E%3C/svg%3E"); }
.bombarde-crete.has-contrast-background-color::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 98 L32 71 L98 101 L116 87 L122 91 L149 66 L183 100 L249 68 L292 104 L303 84 L309 92 L320 60 L380 103 L405 80 L411 80 L435 59 L478 105 L494 84 L500 96 L511 71 L576 105 L613 74 L667 105 L725 64 L763 98 L795 76 L801 89 L821 59 L851 103 L906 59 L947 98 L984 84 L989 89 L1008 63 L1047 98 L1091 81 L1096 88 L1111 67 L1148 97 L1176 90 L1181 85 L1210 67 L1249 103 L1281 92 L1286 88 L1311 73 L1346 103 L1357 90 L1363 95 L1380 79 L1426 102 L1440 93 L1440 120 L0 120 Z' fill='%232B2A29'/%3E%3Cpath d='M0 98 L32 71 L98 101 L116 87 L122 91 L149 66 L183 100 L249 68 L292 104 L303 84 L309 92 L320 60 L380 103 L405 80 L411 80 L435 59 L478 105 L494 84 L500 96 L511 71 L576 105 L613 74 L667 105 L725 64 L763 98 L795 76 L801 89 L821 59 L851 103 L906 59 L947 98 L984 84 L989 89 L1008 63 L1047 98 L1091 81 L1096 88 L1111 67 L1148 97 L1176 90 L1181 85 L1210 67 L1249 103 L1281 92 L1286 88 L1311 73 L1346 103 L1357 90 L1363 95 L1380 79 L1426 102 L1440 93' fill='none' stroke='%23D9DBDB' stroke-opacity='.55' stroke-width='2' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* CRETES:fin */
.esdi-page__head.bombarde-crete::before, .esdi-page__head.bombarde-crete::after { display: none; }

/* ---------- Titres et textes communs ---------- */
.bombarde-surtitre { font-family: var(--wp--preset--font-family--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--accent-2); }
.has-contrast-background-color .bombarde-surtitre, .bombarde-hero .bombarde-surtitre { color: var(--wp--preset--color--accent); }
.bombarde-titre-section { font-size: clamp(2.6rem, 1.5rem + 4.4vw, 5.2rem) !important; line-height: .95 !important; }
h1, h2, .bombarde-chapo { text-wrap: balance; }
/* Sous-titres : une ou deux lignes, écrites à la craie comme les ardoises du bar (pas de bloc de texte) */
.bombarde-chapo { font-family: var(--wp--preset--font-family--ardoise); font-weight: 600; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.1rem);
	line-height: 1.15; color: var(--wp--preset--color--accent-2); max-width: 30rem !important; margin-inline: auto !important; margin-top: .9rem !important; }
.has-contrast-background-color .bombarde-chapo { color: var(--wp--preset--color--accent); }

/* Sections pleine largeur collées (pas de liseré blanc entre bandes) */
.wp-site-blocks > main, .wp-site-blocks > footer { margin-block-start: 0; }
.bombarde-accueil > .wp-block-post-content > * { margin-block-start: 0; }

/* =====================================================================
   1. OUVERTURE : la terrasse à la nuit tombante (core/cover)
   ===================================================================== */
.bombarde-hero { min-height: calc(100svh - var(--b-header)) !important; padding-bottom: clamp(4rem, 9vw, 7rem) !important; }
.bombarde-hero .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(180deg, rgb(27 26 25 / .62) 0%, rgb(27 26 25 / .22) 38%, rgb(27 26 25 / .3) 62%, rgb(27 26 25 / .78) 100%) !important;
}
.bombarde-hero__neige { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.bombarde-hero .wp-block-cover__inner-container { z-index: 2; text-align: center; color: var(--wp--preset--color--base); }
.bombarde-hero .bombarde-hero__logo img { display: block; width: min(560px, 82%); height: auto; margin-inline: auto; filter: drop-shadow(0 6px 24px rgb(0 0 0 / .45)); }
.bombarde-hero h1 { color: var(--wp--preset--color--base); font-size: clamp(2.4rem, 1.3rem + 4.6vw, 5.2rem) !important; text-shadow: 0 2px 18px rgb(0 0 0 / .45); margin-top: .4em !important; }
.bombarde-hero .bombarde-hero__sous-titre { font-family: var(--wp--preset--font-family--ardoise); font-weight: 600; color: var(--wp--preset--color--accent); font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.2rem); line-height: 1.15; text-shadow: 0 1px 10px rgb(0 0 0 / .7); margin-top: .5rem !important; }
.bombarde-hero .wp-block-buttons { margin-top: 1.75rem !important; gap: .75rem; }
.bombarde-hero .is-style-outline > .wp-block-button__link { color: var(--wp--preset--color--base); }

/* Entrée de l'ouverture (CSS seul : visible même si le JS ne charge pas) */
@keyframes bombarde-entree { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.bombarde-entree { animation: bombarde-entree 900ms var(--b-ease-out) both; }
.bombarde-hero h1.bombarde-entree { animation-delay: 160ms; }
.bombarde-hero .bombarde-hero__sous-titre { animation-delay: 280ms; }
.bombarde-hero .wp-block-buttons.bombarde-entree { animation-delay: 400ms; }

/* =====================================================================
   2. MANGER. BOIRE. PARTAGER.
   ===================================================================== */
.bombarde-manger { overflow-x: clip; }
.bombarde-ligne { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.bombarde-ligne > *, .bombarde-ligne__texte-bloc > *, .bombarde-ligne__medias > * { margin: 0 !important; }
.bombarde-ligne + .bombarde-ligne { margin-top: clamp(2rem, 6vw, 5rem) !important; }
.bombarde-ligne--inverse .bombarde-ligne__texte-bloc { order: 2; }
.bombarde-ligne__num { font-family: var(--wp--preset--font-family--ardoise); font-weight: 600; color: var(--wp--preset--color--accent-2); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1; }
.bombarde-ligne__mot { font-size: clamp(4.6rem, 2rem + 10vw, 10.5rem) !important; line-height: .82 !important; letter-spacing: .005em; margin-block: .1em .2em !important; }
.bombarde-ligne__texte { font-size: 1.0625rem; line-height: 1.55; color: var(--wp--preset--color--contrast-2); max-width: 21rem; padding-left: .9rem; border-left: 3px solid var(--wp--preset--color--accent); }
.bombarde-ligne__medias { position: relative; padding-bottom: 14%; }
.bombarde-ligne__a { width: 76%; margin-left: auto !important; }
.bombarde-ligne--inverse .bombarde-ligne__a { margin-left: 0 !important; margin-right: auto !important; }
.bombarde-ligne__a img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; box-shadow: 0 20px 40px -18px rgb(43 42 41 / .55); }
.bombarde-ligne__b { position: absolute !important; left: 0; bottom: 0; width: 40%; z-index: 1; --r: -4deg; }
.bombarde-ligne--inverse .bombarde-ligne__b { left: auto; right: 0; --r: 3.5deg; }

/* ---------- Polaroïds (rangées + mur de l'esprit) ---------- */
.bombarde-polaroid { box-sizing: border-box; background: #fff; padding: .55rem .55rem 0 !important; margin: 0; rotate: var(--r, -2deg);
	box-shadow: 0 1px 2px rgb(0 0 0 / .22), 0 14px 30px -10px rgb(0 0 0 / .5); }
.bombarde-polaroid img, .bombarde-polaroid video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #ddd; }
.bombarde-polaroid figcaption, .bombarde-polaroid .wp-element-caption {
	font-family: var(--wp--preset--font-family--ardoise); font-weight: 600; font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem);
	line-height: 1.1; color: var(--wp--preset--color--contrast); text-align: center; margin: .45rem .2rem .6rem !important; }
@media (hover: hover) and (pointer: fine) {
	.bombarde-polaroid { transition: rotate 320ms var(--b-ease-out), scale 320ms var(--b-ease-out), box-shadow 320ms var(--b-ease-out); }
	.bombarde-polaroid:hover { rotate: 0deg; scale: 1.04; z-index: 2; box-shadow: 0 2px 4px rgb(0 0 0 / .2), 0 26px 44px -14px rgb(0 0 0 / .6); }
}

/* ---------- Bandeau défilant ---------- */
.bombarde-bandeau { overflow: hidden; }
.bombarde-defile { margin: 0; white-space: nowrap; font-family: var(--wp--preset--font-family--display); font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
.bombarde-defile__piste { display: inline-flex; animation: bombarde-defile 38s linear infinite; }
@keyframes bombarde-defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bombarde-defile__piste { animation: none; } }

/* =====================================================================
   3. L'ESPRIT : mur de photos et vidéos
   ===================================================================== */
.bombarde-esprit { overflow-x: clip; }
.bombarde-mur { display: flex !important; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 3.5vw, 3rem) clamp(1rem, 2.8vw, 2.4rem); padding-top: var(--wp--preset--spacing--50); }
.bombarde-mur > * { flex: 0 1 calc(25% - 2rem); min-width: 0; margin: 0 !important; }
.bombarde-mur > :nth-child(1) { --r: -3deg; }
.bombarde-mur > :nth-child(2) { --r: 2.5deg; margin-top: 2.2rem !important; }
.bombarde-mur > :nth-child(3) { --r: -1.5deg; }
.bombarde-mur > :nth-child(4) { --r: 3deg; margin-top: 1.4rem !important; }
.bombarde-mur > :nth-child(5) { --r: 2deg; }
.bombarde-mur > :nth-child(6) { --r: -2.5deg; margin-top: 1.8rem !important; }
.bombarde-mur > :nth-child(7) { --r: 1.5deg; }
.bombarde-mur > :nth-child(8) { --r: -2deg; margin-top: 1.2rem !important; }

/* =====================================================================
   3b. LA CARTE (shortcode de l'extension bombarde-carte)
   ===================================================================== */
.bombarde-laCarte { overflow-x: clip; }
.bombarde-laCarte .bombarde-chapo { margin-bottom: clamp(1.75rem, 4vw, 3rem) !important; }
.bombarde-laCarte .bcs { max-width: 1040px; margin-inline: auto; }

/* =====================================================================
   4. LE CHALET : mosaïque (core/gallery)
   ===================================================================== */
.wp-block-gallery.has-nested-images.bombarde-mosaique {
	display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 240px);
	grid-auto-flow: dense; gap: clamp(.5rem, 1.2vw, 1rem); margin-top: var(--wp--preset--spacing--50) !important;
}
.wp-block-gallery.has-nested-images.bombarde-mosaique figure.wp-block-image { width: auto !important; margin: 0 !important; border-radius: 3px; overflow: hidden; }
.wp-block-gallery.has-nested-images.bombarde-mosaique figure.wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; }
.bombarde-mosaique > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bombarde-mosaique > :nth-child(2) { grid-row: span 2; }
.bombarde-mosaique > :nth-child(4) { grid-row: span 2; }
.bombarde-mosaique > :nth-child(6) { grid-column: span 2; }
@media (hover: hover) and (pointer: fine) {
	.bombarde-mosaique figure.wp-block-image img { transition: scale 600ms var(--b-ease-out); }
	.bombarde-mosaique figure.wp-block-image:hover img { scale: 1.04; }
}

/* =====================================================================
   5. APPELER : vidéo de neige + numéros, puis infos pratiques
   ===================================================================== */
.bombarde-appel__neige { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(440px, 72vh, 700px); display: grid !important; place-items: center; }
.bombarde-appel__neige > * { margin: 0 !important; }
.bombarde-appel__fond { position: absolute !important; inset: 0; z-index: -2; max-width: none !important; }
.bombarde-appel__fond video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Fondu : la vidéo naît sous la crête sombre et retombe dans les infos, sans arête visible */
.bombarde-appel__neige::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(180deg,
		#2b2a29 0%, rgb(43 42 41 / .93) 7%, rgb(43 42 41 / .82) 15%, rgb(43 42 41 / .72) 26%,
		rgb(43 42 41 / .7) 60%, rgb(43 42 41 / .8) 74%, rgb(43 42 41 / .93) 88%, #2b2a29 100%); }
.bombarde-appel__contenu { position: relative; width: min(100% - 2.5rem, 760px); text-align: center; }
.bombarde-appel__contenu h2 { text-shadow: 0 2px 16px rgb(0 0 0 / .4); }
.bombarde-appel__contenu .bombarde-chapo { text-shadow: 0 1px 10px rgb(0 0 0 / .7); }
.bombarde-tels { margin-top: 1.5rem !important; gap: .9rem; }
.bombarde-tels .wp-block-button__link { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); letter-spacing: .05em; padding: .7rem 2rem; }
.bombarde-tel-a-venir { display: inline-block; margin-top: 1.25rem !important; padding: .6rem 1.3rem; border: 2px dashed var(--wp--preset--color--accent); border-radius: 2px; }
.bombarde-infos .wp-block-columns { gap: clamp(1.5rem, 4vw, 3rem); }
.bombarde-infos .bombarde-surtitre { margin-bottom: .4rem; }
.bombarde-infos p { color: #e6e2da; }

/* ---------- Vidéos ---------- */
.bombarde-video { margin: 0; }
.bombarde-video video { display: block; width: 100%; }
/* Affiche en vraie image (chargement différé, posée par le thème) ; la vidéo apparaît quand elle joue */
.bombarde-video__cadre { position: relative; }
.bombarde-video .bombarde-video__cadre > .bombarde-video__affiche { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #3a3836; }
.bombarde-video .bombarde-video__cadre > video { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; opacity: 0; transition: opacity 400ms ease; }
.bombarde-video.est-lu .bombarde-video__cadre > video { opacity: 1; }
.bombarde-appel__fond .bombarde-video__cadre { position: absolute; inset: 0; }
.bombarde-appel__fond .bombarde-video__cadre > .bombarde-video__affiche { height: 100%; aspect-ratio: auto; }

/* ---------- Pied de page : logo + numéro, puis adresse et mentions, crêtes au trait doré en fond ---------- */
.bombarde-footer { background-image: var(--b-crete-trait); background-repeat: no-repeat; background-position: 50% 100%; background-size: 100% clamp(60px, 9vw, 130px); }
.bombarde-footer__haut { gap: 1.5rem 3rem; padding-bottom: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid rgb(215 181 109 / .3); }
.bombarde-brand--pied img { height: clamp(64px, 6vw, 84px); }
.bombarde-footer__appel { text-align: right; }
.bombarde-footer__appel > * { margin: 0 !important; }
.bombarde-footer__tel { font-family: var(--wp--preset--font-family--display); font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4.2rem); line-height: 1; letter-spacing: .03em; margin-top: .3rem !important; }
.bombarde-footer__tel a { color: var(--wp--preset--color--accent) !important; text-decoration: none; }
.bombarde-footer__tel a:hover, .bombarde-footer__tel a:focus-visible { color: var(--wp--preset--color--base) !important; }
.bombarde-footer__bas { gap: .4rem 2rem; padding-top: 1.1rem; padding-bottom: clamp(3.5rem, 8vw, 7rem); }
.bombarde-footer__bas p { margin: 0 !important; color: #bdb7ad; }
@media (max-width: 781px) {
	.bombarde-footer__haut, .bombarde-footer__bas { justify-content: center !important; text-align: center; }
	.bombarde-footer__appel { text-align: center; }
}

/* =====================================================================
   Révélations au scroll (armées par le JS seulement)
   ===================================================================== */
.bombarde-anime .bombarde-reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--b-ease-out), transform 900ms var(--b-ease-out); }
.bombarde-anime .bombarde-reveal.is-visible { opacity: 1; transform: none; }
.bombarde-anime .bombarde-mur > * { opacity: 0; translate: 0 36px; transition: opacity 600ms var(--b-ease-out), translate 800ms var(--b-ease-out), rotate 320ms var(--b-ease-out), scale 320ms var(--b-ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.bombarde-anime .bombarde-mur > *.is-visible { opacity: 1; translate: 0 0; }
.bombarde-anime .bombarde-mur > *.is-visible:hover { transition-delay: 0ms; }
@media (prefers-reduced-motion: reduce) {
	.bombarde-anime .bombarde-reveal { transform: none; transition: opacity 400ms ease; }
	.bombarde-anime .bombarde-mur > * { translate: none; transition: opacity 400ms ease; }
	.bombarde-entree { animation: none; }
}

/* =====================================================================
   Tablette et mobile
   ===================================================================== */
@media (max-width: 900px) {
	.bombarde-mur > * { flex-basis: calc(33.333% - 1.6rem); }
}
@media (max-width: 781px) {
	.bombarde-ligne, .bombarde-ligne--inverse { grid-template-columns: minmax(0, 1fr); }
	.bombarde-ligne--inverse .bombarde-ligne__texte-bloc { order: 0; }
	.bombarde-ligne__medias { padding-bottom: 18%; }
	.bombarde-ligne__a { width: 82%; }
	.bombarde-ligne__b { width: 44%; }
	.wp-block-gallery.has-nested-images.bombarde-mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
	.bombarde-mosaique > :nth-child(n) { grid-column: auto; grid-row: auto; }
	.bombarde-mosaique > :nth-child(1), .bombarde-mosaique > :nth-child(6) { grid-column: span 2; }
}
@media (max-width: 600px) {
	.bombarde-mur { gap: 1.4rem .9rem; }
	.bombarde-mur > * { flex-basis: calc(50% - .5rem); }
	.bombarde-mur > :nth-child(n) { margin-top: 0 !important; }
	.bombarde-mur > :nth-child(even) { margin-top: 1.4rem !important; }
	.bombarde-polaroid { padding: .4rem .4rem 0 !important; }
	.bombarde-hero .bombarde-hero__sous-titre { font-size: 1.4rem; }
	.bombarde-ligne__texte { font-size: 1rem; }
	h2 { overflow-wrap: anywhere; }
	.bombarde-header__appel .wp-block-button__link { padding: .45rem .95rem; font-size: .85rem; }
}

/* Dans l'éditeur : pas d'état caché, pas de hauteur plein écran, vidéo de fond éditable */
.editor-styles-wrapper .bombarde-reveal, .editor-styles-wrapper .bombarde-mur > * { opacity: 1 !important; transform: none !important; translate: none !important; }
.editor-styles-wrapper .bombarde-hero { min-height: 70vh !important; }
.editor-styles-wrapper .bombarde-appel__fond { position: relative !important; z-index: 0; max-width: 480px !important; margin: 1rem auto !important; }
.editor-styles-wrapper .bombarde-appel__neige::after { display: none; }
.editor-styles-wrapper .bombarde-ligne__b { position: relative !important; margin-top: 1rem !important; }

/* Réseaux sociaux du pied de page */
.bombarde-footer__reseaux { display:flex; gap:.75rem; margin:0 0 .6rem; }
.bombarde-footer__reseaux a { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border:1px solid rgb(215 181 109 / .45); border-radius:50%; color:var(--wp--preset--color--accent); transition:color .2s, border-color .2s; }
.bombarde-footer__reseaux a:hover, .bombarde-footer__reseaux a:focus-visible { color:var(--wp--preset--color--base); border-color:var(--wp--preset--color--base); }
.bombarde-footer__appel .bombarde-footer__reseaux { justify-content:flex-end; }
@media (max-width:781px) { .bombarde-footer__appel .bombarde-footer__reseaux { justify-content:center; } }
