/* =========================================================
   Design tokens — 02_CHARTE_GRAPHIQUE.md
   ========================================================= */
:root {
	--ba-navy: #003459;
	--ba-navy-light: #0a4a75;
	--ba-navy-tint: #eef3f7;
	--ba-white: #ffffff;
	--ba-red: #e51616;
	--ba-text: #1c2b36;
	--ba-text-muted: #5b6b76;
	--ba-border: #dde5eb;
	--ba-radius: 14px;
	--ba-radius-sm: 8px;
	--ba-shadow: 0 10px 30px rgba(0, 52, 89, 0.08);
	--ba-container: 1180px;
	--ba-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================================
   Reset minimal
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
	margin: 0;
	font-family: var(--ba-font);
	color: var(--ba-text);
	background: var(--ba-white);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--ba-navy); }
p { margin: 0 0 1em; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.ba-skip-link {
	position: absolute; left: -9999px; top: 0; background: var(--ba-navy); color: #fff;
	padding: 12px 20px; z-index: 1000;
}
.ba-skip-link:focus { left: 0; }

.ba-container { max-width: var(--ba-container); margin: 0 auto; padding: 0 20px; }

/* =========================================================
   Boutons
   ========================================================= */
.ba-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 26px; border-radius: 999px;
	font-weight: 600; font-size: 0.98rem; border: 2px solid transparent;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
	cursor: pointer;
}
.ba-btn:hover { transform: translateY(-1px); }
.ba-btn--primary { background: var(--ba-red); color: #fff; }
.ba-btn--primary:hover { background: #c81111; }
.ba-btn--ghost { background: transparent; color: var(--ba-navy); border-color: var(--ba-navy); }
.ba-btn--ghost:hover { background: var(--ba-navy); color: #fff; }
.ba-btn--whatsapp { background: #25d366; color: #fff; }
.ba-btn--whatsapp:hover { background: #1ebc59; }
.ba-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* =========================================================
   Header
   ========================================================= */
.ba-header {
	position: sticky; top: 0; z-index: 100; background: var(--ba-white);
	border-bottom: 1px solid transparent; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ba-header.is-scrolled { border-color: var(--ba-border); box-shadow: 0 2px 12px rgba(0,52,89,0.06); }
.ba-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; }
.ba-header__logo img { height: 48px; width: auto; }
.ba-nav { display: flex; gap: 28px; }
.ba-nav a { font-weight: 600; color: var(--ba-navy); }
.ba-nav a:hover { color: var(--ba-red); }
.ba-header__cta { display: flex; align-items: center; gap: 12px; }
.ba-header__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.ba-header__burger, .ba-header__burger::before, .ba-header__burger::after {
	display: block; width: 24px; height: 2px; background: var(--ba-navy); position: relative;
}
.ba-header__burger::before, .ba-header__burger::after { content: ''; position: absolute; left: 0; }
.ba-header__burger::before { top: -7px; }
.ba-header__burger::after { top: 7px; }

@media (max-width: 900px) {
	.ba-header__toggle { display: block; }
	.ba-header__nav {
		position: absolute; top: 100%; left: 0; right: 0; background: var(--ba-white);
		border-bottom: 1px solid var(--ba-border); display: none;
	}
	.ba-header__nav.is-open,
	#ba-nav-primary.is-open { display: block; }
	.ba-nav { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
	.ba-nav li { border-top: 1px solid var(--ba-border); }
	.ba-nav a { display: block; padding: 12px 0; }
	.ba-header__cta .ba-btn--ghost { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.ba-hero { padding: 64px 0; overflow: hidden; }
.ba-hero--dark { background: linear-gradient(160deg, var(--ba-navy) 0%, var(--ba-navy-light) 100%); color: #fff; }
.ba-hero--dark .ba-hero__title, .ba-hero--dark .ba-hero__subtitle { color: #fff; }
.ba-hero--dark .ba-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.ba-hero--dark .ba-btn--ghost:hover { background: #fff; color: var(--ba-navy); border-color: #fff; }
.ba-hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.ba-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--ba-red); margin-bottom: 12px; }
.ba-hero__title { font-size: clamp(2rem, 4vw, 3rem); }
.ba-hero__subtitle { font-size: 1.15rem; opacity: 0.92; max-width: 46ch; }
.ba-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ba-hero__media img { border-radius: var(--ba-radius); }

@media (max-width: 900px) {
	.ba-hero__inner { grid-template-columns: 1fr; }
	.ba-hero { padding: 40px 0; }
}

/* =========================================================
   Sections génériques
   ========================================================= */
.ba-section { padding: 64px 0; }
.ba-section--tinted { background: var(--ba-navy-tint); }
.ba-section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); text-align: center; margin-bottom: 32px; }

.ba-grid { display: grid; gap: 24px; }
.ba-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .ba-grid--3 { grid-template-columns: 1fr; } }

/* =========================================================
   Cards
   ========================================================= */
.ba-card {
	background: #fff; border: 1px solid var(--ba-border); border-radius: var(--ba-radius);
	padding: 28px; display: block; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ba-card:hover { transform: translateY(-3px); box-shadow: var(--ba-shadow); }
.ba-card__icon { font-size: 28px; color: var(--ba-red); margin-bottom: 12px; }
.ba-card__title { font-size: 1.15rem; margin-bottom: 8px; }
.ba-card__text { color: var(--ba-text-muted); margin-bottom: 0; }
.ba-card__arrow { display: inline-block; margin-top: 12px; color: var(--ba-red); font-weight: 700; }

.ba-card--profile { text-align: center; padding: 40px 28px; }
.ba-profile-choice__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .ba-profile-choice__grid { grid-template-columns: 1fr; } }

.ba-card--pack { display: flex; flex-direction: column; }
.ba-card--pack-featured { border-color: var(--ba-red); box-shadow: var(--ba-shadow); }
.ba-card__list { margin: 16px 0 20px; }
.ba-card__list li { padding: 6px 0; border-bottom: 1px solid var(--ba-border); color: var(--ba-text-muted); }
.ba-card--pack .ba-btn { margin-top: auto; align-self: flex-start; }

.ba-card--avis { padding: 24px; font-style: italic; color: var(--ba-text-muted); }
.ba-card--avis footer { margin-top: 12px; font-style: normal; font-weight: 700; color: var(--ba-navy); }

.ba-stat-card { background: #fff; border-radius: var(--ba-radius-sm); padding: 20px; text-align: center; border: 1px solid var(--ba-border); }

/* =========================================================
   Boutique teaser
   ========================================================= */
.ba-shop-teaser { text-align: center; max-width: 640px; margin: 0 auto; }

/* =========================================================
   FAQ
   ========================================================= */
.ba-faq__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.ba-faq__item { border: 1px solid var(--ba-border); border-radius: var(--ba-radius-sm); padding: 14px 18px; }
.ba-faq__item summary { cursor: pointer; font-weight: 600; color: var(--ba-navy); }
.ba-faq__item p { margin-top: 10px; color: var(--ba-text-muted); }

/* =========================================================
   Breadcrumbs
   ========================================================= */
.ba-breadcrumbs { padding: 14px 0; font-size: 0.85rem; color: var(--ba-text-muted); }
.ba-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.ba-breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--ba-border); }
.ba-breadcrumbs a:hover { color: var(--ba-red); }

/* =========================================================
   Formulaires
   ========================================================= */
.ba-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.ba-field label { font-weight: 600; font-size: 0.9rem; color: var(--ba-navy); }
.ba-field input, .ba-field textarea,
.ba-devis__text {
	border: 1px solid var(--ba-border); border-radius: var(--ba-radius-sm);
	padding: 12px 14px; font: inherit; min-height: 48px;
}
.ba-field textarea { min-height: 90px; }
.ba-field--honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ba-contact-form { background: #fff; border: 1px solid var(--ba-border); border-radius: var(--ba-radius); padding: 28px; }
.ba-contact-form__status { min-height: 1.2em; color: var(--ba-navy); }

/* =========================================================
   Contact section (accueil)
   ========================================================= */
.ba-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .ba-contact-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Funnel de devis
   ========================================================= */
.ba-devis { padding: 48px 0; min-height: 60vh; }
.ba-devis__form { max-width: 640px; margin: 0 auto; }
.ba-devis__progress { height: 6px; background: var(--ba-navy-tint); border-radius: 999px; overflow: hidden; margin-bottom: 32px; }
.ba-devis__progress-bar { height: 100%; background: var(--ba-red); transition: width 0.3s ease; }
.ba-devis__step h2 { font-size: 1.4rem; margin-bottom: 20px; }
.ba-devis__options { display: flex; flex-wrap: wrap; gap: 10px; }
.ba-devis__option {
	border: 2px solid var(--ba-border); border-radius: 999px; padding: 12px 20px;
	background: #fff; font-weight: 600; cursor: pointer; min-height: 48px;
}
.ba-devis__option:hover { border-color: var(--ba-navy); }
.ba-devis__option.is-active { border-color: var(--ba-red); background: var(--ba-red); color: #fff; }
.ba-devis__back { margin-top: 24px; background: none; border: 0; color: var(--ba-text-muted); cursor: pointer; font-weight: 600; }
.ba-devis__done { text-align: center; padding: 40px 0; }
.ba-error { color: var(--ba-red); margin-top: 12px; }

/* =========================================================
   WhatsApp flottant
   ========================================================= */
.ba-whatsapp-fab {
	position: fixed; right: 20px; bottom: 20px; z-index: 200;
	width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
@media (max-width: 700px) { .ba-whatsapp-fab { right: 14px; bottom: 14px; width: 52px; height: 52px; } }

/* =========================================================
   Footer
   ========================================================= */
.ba-footer { background: var(--ba-navy); color: #fff; padding: 56px 0 0; margin-top: 40px; }
.ba-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.ba-footer__brand img { height: 44px; width: auto; margin-bottom: 12px; }
.ba-footer__brand p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.ba-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.ba-footer ul li { margin-bottom: 8px; }
.ba-footer a { color: rgba(255,255,255,0.8); }
.ba-footer a:hover { color: #fff; }
.ba-footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 18px 0; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
@media (max-width: 800px) { .ba-footer__grid { grid-template-columns: 1fr 1fr; } }
