/* ==========================================================================
   Ballon Parachutisme — styles communs du thème
   Menu, pages simples, articles, 404, bouton haut de page.
   Les pages principales ont leurs propres styles (page-templates/, isolés).
   ========================================================================== */

:root {
	--ui-container-size: 1344px; /* largeur du conteneur, utilisée par les modèles */
	--bpt-ink: #111111;
	--bpt-ink-soft: #3E3D38;
	--bpt-muted: #5E5C55;
	--bpt-gold: #BCAB68;
	--bpt-gold-hover: #CEC089;
	--bpt-gold-text: #7A6B2E;
	--bpt-sand: #F6F5F1;
	--bpt-line: #ECE9E0;
	--bpt-line-strong: #DEDACD;
	--bpt-header-h: 86px;
	--bpt-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* Base ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bpt-header-h) + 16px); }
body {
	margin: 0;
	background: #FFFFFF;
	color: var(--bpt-ink-soft);
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body.bpt-menu-open { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--bpt-gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.bpt-sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bpt-skip { position: absolute; top: -100px; left: 16px; z-index: 1000; padding: 12px 18px; border-radius: 999px; background: var(--bpt-ink); color: #FFFFFF; font-weight: 700; text-decoration: none; }
.bpt-skip:focus { top: 12px; }
.bpt-main:focus { outline: none; }

.bpt-wrap { width: 90%; max-width: var(--ui-container-size); margin: 0 auto; padding-left: 10px; padding-right: 10px; }
.bpt-section { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(64px, 8vw, 104px); }
.bpt-eyebrow { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--bpt-gold-text); }
.bpt-link { border-bottom: 1.5px solid var(--bpt-gold); font-weight: 700; color: var(--bpt-ink); text-decoration: none; }
.bpt-link:hover { border-bottom-color: var(--bpt-ink); }
.bpt-arrow { display: inline-block; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--bpt-arrow) center / contain no-repeat; mask: var(--bpt-arrow) center / contain no-repeat; transition: transform .2s; }

.bpt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 999px;
	font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s;
}
.bpt-btn--dark { background: var(--bpt-ink); color: #FFFFFF; }
.bpt-btn--dark:hover { background: #2C2C2C; color: #FFFFFF; }
.bpt-btn--gold { background: var(--bpt-gold); color: var(--bpt-ink); }
.bpt-btn--gold:hover { background: var(--bpt-gold-hover); color: var(--bpt-ink); }
.bpt-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Menu ---------------------------------------------------------------------- */
.bpt-header {
	position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 900;
	background: #FFFFFF; box-shadow: 0 1px 0 #E6E9EC;
	transition: transform .35s ease;
}
.bpt-header.is-hidden { transform: translateY(-100%); }
.bpt-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--bpt-header-h); }
.bpt-logo { display: block; flex: none; margin-right: 20px; line-height: 0; }
.bpt-logo img { display: block; width: auto; height: 55px; }

.bpt-nav { flex: 1; min-width: 0; }
.bpt-menu { display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; list-style: none; }
.bpt-menu > li { position: relative; margin: 0; }
.bpt-menu > li > a {
	display: block; padding: 0 15px; line-height: var(--bpt-header-h);
	font-size: 16px; font-weight: 600; color: #000000; text-decoration: none; white-space: nowrap;
	transition: color .2s;
}
.bpt-menu > li > a:hover,
.bpt-menu > li.current-menu-item > a,
.bpt-menu > li.current-menu-ancestor > a,
.bpt-menu > li.current_page_item > a { color: var(--bpt-gold); }
/* Sous-menus (si un jour le menu en contient) */
.bpt-menu .sub-menu { position: absolute; top: 100%; left: 0; z-index: 10; display: none; min-width: 220px; margin: 0; padding: 10px; list-style: none; border-radius: 14px; background: #FFFFFF; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }
.bpt-menu li:hover > .sub-menu, .bpt-menu li:focus-within > .sub-menu { display: block; }
.bpt-menu .sub-menu a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #000000; text-decoration: none; }
.bpt-menu .sub-menu a:hover { background: var(--bpt-sand); color: var(--bpt-gold-text); }

.bpt-cta {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	min-height: 56px; padding: 0 40px; border-radius: 100px;
	background: #000000; color: #FFFFFF; font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none;
	transition: background-color .2s cubic-bezier(.68, .01, .58, .75), color .2s;
}
.bpt-cta:hover, .bpt-cta:focus-visible { background: var(--bpt-gold); color: #FAFAFA; }
.bpt-cta--block { width: 100%; }

.bpt-burger { display: none; flex: none; width: 45px; height: 45px; margin: 0 -10px 0 auto; padding: 10px; border: 0; border-radius: 12px; background: transparent; color: var(--bpt-ink); cursor: pointer; }
.bpt-burger__bars { position: relative; display: block; width: 25px; height: 18px; }
.bpt-burger__bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s, opacity .2s, top .3s; }
.bpt-burger__bars span:nth-child(1) { top: 0; }
.bpt-burger__bars span:nth-child(2) { top: 8px; }
.bpt-burger__bars span:nth-child(3) { top: 16px; }
.bpt-burger[aria-expanded="true"] .bpt-burger__bars span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.bpt-burger[aria-expanded="true"] .bpt-burger__bars span:nth-child(2) { opacity: 0; }
.bpt-burger[aria-expanded="true"] .bpt-burger__bars span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* Menu mobile (plein écran sous la barre) */
.bpt-mobile {
	position: fixed; left: 0; right: 0; bottom: 0;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--bpt-header-h));
	overflow-y: auto; overscroll-behavior: contain;
	background: #FFFFFF; border-top: 1px solid #E6E9EC;
	animation: bpt-fade .25s ease;
}
@keyframes bpt-fade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.bpt-mobile__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 100%; padding-top: 16px; padding-bottom: 32px; }
.bpt-mobile .bpt-menu { flex-direction: column; align-items: stretch; }
.bpt-mobile .bpt-menu > li { border-bottom: 1px solid var(--bpt-line); }
.bpt-mobile .bpt-menu > li > a { padding: 16px 0; line-height: 1.3; font-size: 22px; font-weight: 700; letter-spacing: -.01em; white-space: normal; }
.bpt-mobile .bpt-menu .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 12px 12px; box-shadow: none; }
.bpt-mobile__foot { display: flex; flex-direction: column; gap: 18px; }
.bpt-mobile__contact { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.bpt-mobile__contact a { font-size: 16px; font-weight: 700; color: var(--bpt-ink); text-decoration: none; }

@media (max-width: 1280px) {
	.bpt-menu > li > a { padding: 0 10px; font-size: 15px; }
	.bpt-cta { padding: 0 28px; }
}
@media (max-width: 1100px) {
	.bpt-menu > li > a { padding: 0 8px; }
	.bpt-cta { min-height: 50px; padding: 0 22px; font-size: 15px; }
}
@media (max-width: 1025px) {
	:root { --bpt-header-h: 75px; }
	.bpt-logo img { height: 45px; }
	.bpt-header__inner > .bpt-nav, .bpt-header__inner > .bpt-cta { display: none; }
	.bpt-burger { display: block; }
}
@media (max-width: 767px) {
	.bpt-wrap { width: 100%; padding-left: calc(5% + 10px); padding-right: calc(5% + 10px); }
}

/* Bouton haut de page ------------------------------------------------------- */
.bpt-totop {
	position: fixed; right: 2em; bottom: 2em; z-index: 800;
	display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 0; border-radius: 50%; background: #FFFFFF; color: var(--bpt-ink);
	box-shadow: 0 4px 22px -6px rgba(0, 0, 0, .35); cursor: pointer;
	opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s, background-color .2s;
}
.bpt-totop.is-visible { opacity: 1; transform: none; }
.bpt-totop:hover { background: var(--bpt-gold); }
.bpt-totop svg { width: 18px; height: 18px; }
@media (max-width: 1025px) { .bpt-totop { display: none; } }

/* En-tête des pages simples ------------------------------------------------- */
.bpt-page-head { background: var(--bpt-sand); }
.bpt-page-head__inner { display: flex; flex-direction: column; gap: 16px; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(44px, 5vw, 64px); }
.bpt-page-head__title { max-width: 900px; margin: 0; font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; color: var(--bpt-ink); text-wrap: balance; }
.bpt-page-head__lead { max-width: 640px; margin: 0; font-size: 18px; color: var(--bpt-muted); }

/* Contenu de l'éditeur ------------------------------------------------------ */
.bpt-prose { max-width: 760px; font-size: 17px; line-height: 1.75; color: var(--bpt-ink-soft); }
.bpt-prose > * { margin-top: 0; margin-bottom: 1.1em; }
.bpt-prose > *:last-child { margin-bottom: 0; }
.bpt-prose h1, .bpt-prose h2, .bpt-prose h3, .bpt-prose h4, .bpt-prose h5, .bpt-prose h6 { margin-top: 1.8em; margin-bottom: .6em; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--bpt-ink); }
.bpt-prose > h1:first-child, .bpt-prose > h2:first-child, .bpt-prose > h3:first-child { margin-top: 0; }
.bpt-prose h2 { font-size: clamp(26px, 3vw, 32px); }
.bpt-prose h3 { font-size: 22px; }
.bpt-prose h4 { font-size: 18px; }
.bpt-prose a { border-bottom: 1.5px solid var(--bpt-gold); font-weight: 700; color: var(--bpt-ink); text-decoration: none; }
.bpt-prose a:hover { border-bottom-color: var(--bpt-ink); }
.bpt-prose strong { color: var(--bpt-ink); }
.bpt-prose ul, .bpt-prose ol { padding-left: 1.3em; }
.bpt-prose li { margin-bottom: .4em; }
.bpt-prose li::marker { color: var(--bpt-gold-text); }
.bpt-prose img { border-radius: 16px; }
.bpt-prose figure { margin-left: 0; margin-right: 0; }
.bpt-prose figcaption { margin-top: 8px; font-size: 14px; color: var(--bpt-muted); }
.bpt-prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--bpt-gold); font-size: 19px; color: var(--bpt-ink); }
.bpt-prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--bpt-line-strong); }
.bpt-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bpt-prose th, .bpt-prose td { padding: 10px 12px; border-bottom: 1px solid var(--bpt-line); text-align: left; }
.bpt-prose .wp-block-button__link { display: inline-flex; padding: 14px 26px; border: 0; border-radius: 999px; background: var(--bpt-ink); color: #FFFFFF; }
.bpt-prose .alignwide { max-width: none; }
.bpt-cover { margin: 0 0 2em; }
.bpt-cover img { display: block; width: 100%; border-radius: 22px; }

/* Liste d'articles ---------------------------------------------------------- */
.bpt-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.bpt-post { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; border: 1.5px solid var(--bpt-line); border-radius: 24px; }
.bpt-post__title { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.25; color: var(--bpt-ink); }
.bpt-post__title a { text-decoration: none; }
.bpt-post__excerpt { margin: 0; font-size: 16px; color: var(--bpt-muted); }
.bpt-pagination { margin-top: 32px; }
.bpt-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.bpt-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1.5px solid var(--bpt-line-strong); border-radius: 999px; font-weight: 700; color: var(--bpt-ink); text-decoration: none; }
.bpt-pagination .page-numbers.current { border-color: var(--bpt-ink); background: var(--bpt-ink); color: #FFFFFF; }

/* 404 ----------------------------------------------------------------------- */
.bpt-404 { background: var(--bpt-sand); overflow: hidden; }
.bpt-404__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.bpt-404__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.bpt-404 h1 { margin: 0; font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: var(--bpt-ink); text-wrap: balance; }
.bpt-404__lead { max-width: 520px; margin: 0; font-size: 19px; color: var(--bpt-muted); }
.bpt-404__text .bpt-btn-row { margin-top: 8px; }
.bpt-404__art { display: flex; align-items: center; justify-content: center; gap: clamp(4px, 1.5vw, 16px); }
.bpt-404__num { font-size: clamp(120px, 17vw, 240px); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--bpt-ink); }
.bpt-404__balloon { width: clamp(90px, 12vw, 170px); height: auto; animation: bpt-float 4s ease-in-out infinite; }
@keyframes bpt-float { 0%, 100% { transform: translateY(-8px) rotate(-3deg); } 50% { transform: translateY(8px) rotate(3deg); } }
.bpt-404__links-title { margin: 0 0 20px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--bpt-ink); }
.bpt-404__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.bpt-404__link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border: 1.5px solid var(--bpt-line); border-radius: 22px; color: var(--bpt-ink); text-decoration: none; transition: border-color .2s, background-color .2s; }
.bpt-404__link:hover { border-color: var(--bpt-line-strong); background: var(--bpt-sand); }
.bpt-404__link:hover .bpt-arrow { transform: translateX(4px); }
.bpt-404__link strong { display: block; font-size: 17px; line-height: 1.3; }
.bpt-404__link span span { display: block; margin-top: 2px; font-size: 14px; color: var(--bpt-muted); }
@media (max-width: 900px) {
	.bpt-404__inner { grid-template-columns: 1fr; }
	.bpt-404__art { order: -1; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.bpt-header, .bpt-totop, .bpt-mobile { transition: none; animation: none; }
	.bpt-404__balloon { animation: none; }
	html { scroll-behavior: auto; }
}
