/* =========================================================================
   Thème BTEC (moderne) — v2
   ========================================================================= */
:root {
	--nuit: #161a3a;
	--nuit-2: #20255033;
	--bleu: #5e67a2;
	--bleu-doux: #eceef7;
	--rouge: #ff2727;
	--rouge-f: #d81c1c;
	--fond-alt: #f4f5f9;
	--texte: #1c1e2c;
	--discret: #5c6077;
	--ligne: #e3e5ee;
	--r: 14px;
	--ombre: 0 12px 32px -14px rgba(22, 26, 58, .28);
	--max: 1180px;
	--titres: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
.btec-main > *, .btec-main section > * { margin-block: 0; }
.btec-main h1, .btec-main h2, .btec-main h3, .btec-main h4, .btec-main p, .btec-main ul, .btec-main ol { margin-top: 0; }
.btec-icon { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -.125em; }
.btec-wrap { max-width: var(--max); margin-left: auto !important; margin-right: auto !important; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
.btec-muted { color: var(--discret); }
.btec-main h2, .btec-why h2 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; margin-bottom: 0; }

/* ---------- Boutons ---------- */
.btec-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 600; font-size: .98rem; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, border-color .2s;
}
.btec-btn--primary { background: var(--rouge); color: #fff !important; }
.btec-btn--primary:hover { background: var(--rouge-f); transform: translateY(-1px); }
.btec-btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff !important; }
.btec-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btec-btn--sm { padding: 10px 18px; font-size: .92rem; }

.btec-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 14px !important;
	font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--rouge);
}
.btec-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Barre haute + en-tête ---------- */
.btec-site-header { position: sticky; top: 0; z-index: 50; margin: 0; }
.admin-bar .btec-site-header { top: 32px; }
.btec-topbar { background: var(--nuit); color: #c9cce0; font-size: .84rem; }
.btec-topbar .btec-wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.btec-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.btec-status { display: inline-flex; align-items: center; gap: 8px; }
.btec-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa0b8; }
.btec-dot.is-open { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); }
.btec-header { background: #fff; border-bottom: 1px solid var(--ligne); }
.btec-header .btec-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.btec-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.btec-logo img { height: 48px; width: auto; }
.btec-logo small { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--discret); max-width: 120px; line-height: 1.35; }
.btec-nav { display: flex; align-items: center; gap: 28px; }
.btec-nav a:not(.btec-btn) { color: var(--texte); text-decoration: none; font-weight: 500; font-size: .95rem; }
.btec-nav a:not(.btec-btn):hover { color: var(--rouge); }
.btec-burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.btec-burger span { display: block; height: 2px; margin: 5px 0; background: var(--nuit); transition: .3s; }
.btec-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btec-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.btec-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.btec-hero {
	position: relative; overflow: hidden;
	background: radial-gradient(1200px 500px at 85% -10%, #2c3373 0%, transparent 60%), var(--nuit);
	color: #fff; padding: 88px 0 110px;
}
.btec-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.btec-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; line-height: .98; margin-bottom: 22px; }
.btec-hero h1 em { font-style: normal; color: var(--rouge); }
.btec-hero__slogan { margin: -6px 0 22px !important; }
.btec-hero__slogan img { width: min(460px, 100%); height: auto; filter: brightness(0) invert(1); opacity: .95; }
.btec-lead { color: #cfd2e6; font-size: 1.08rem; max-width: 540px; margin-bottom: 30px !important; }
.btec-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.btec-hero__card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.btec-hero__card img { border-radius: 12px; aspect-ratio: 945 / 600; object-fit: cover; width: 100%; }
.btec-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 0; padding: 0; }
.btec-stats li { background: rgba(255, 255, 255, .07); border-radius: 10px; padding: 12px 14px; }
.btec-stats b { display: block; font-family: var(--titres); font-size: 1.9rem; line-height: 1; }
.btec-stats span { font-size: .78rem; color: #b9bdd6; }
.btec-hero__pulse { position: absolute; left: 0; bottom: 18px; width: 100%; height: 80px; color: var(--rouge); opacity: .85; }

/* ---------- Références ---------- */
.btec-trust { padding: 26px 0 30px; border-bottom: 1px solid var(--ligne); background: #fff; }
.btec-trust > p { text-align: center; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--discret); margin-bottom: 14px; }
.btec-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.btec-marquee__track { display: flex; gap: 48px; width: max-content; animation: btec-defile 45s linear infinite; }
.btec-marquee:hover .btec-marquee__track { animation-play-state: paused; }
.btec-marquee img { height: 60px; width: auto; filter: grayscale(1); opacity: .7; transition: .3s; }
.btec-marquee img:hover { filter: none; opacity: 1; }

/* ---------- Sections ---------- */
.btec-section { padding: 96px 0; }
.btec-alt { background: var(--fond-alt); }
.btec-dark { background: var(--nuit); color: #fff; }
.btec-dark h2 { color: #fff; }
.btec-dark .btec-head__intro { color: #b9bdd6 !important; }
.btec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px !important; }
.btec-head__intro { max-width: 460px; color: var(--discret); margin: 0 !important; }

/* Métiers */
.btec-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.btec-service { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 30px 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.btec-service:hover { transform: translateY(-4px); box-shadow: var(--ombre); border-color: transparent; }
.btec-service__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: var(--bleu-doux); color: var(--bleu); font-size: 26px; margin-bottom: 18px; }
.btec-service__ent { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rouge); margin-bottom: 4px !important; }
.btec-service h3 { font-size: 1.7rem; margin-bottom: 10px; }
.btec-service > p { color: var(--discret); }
.btec-checks { list-style: none; padding: 0; margin: 18px 0 20px !important; }
.btec-checks li { display: flex; gap: 10px; padding: 5px 0; font-size: .95rem; }
.btec-checks .btec-icon { color: var(--rouge); margin-top: 4px; }
.btec-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.btec-tags span { font-size: .75rem; background: var(--fond-alt); border: 1px solid var(--ligne); padding: 4px 10px; border-radius: 999px; color: var(--discret); }

/* Entreprise */
.btec-why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.btec-why__img { position: relative; }
.btec-why__img img { border-radius: 18px; box-shadow: var(--ombre); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.btec-why__badge { position: absolute; right: -18px; bottom: 26px; background: var(--rouge); color: #fff; border-radius: 14px; padding: 16px 20px; box-shadow: var(--ombre); }
.btec-why__badge b { display: block; font-family: var(--titres); font-size: 2.4rem; line-height: 1; }
.btec-why__badge span { font-size: .82rem; }
.btec-why__txt h2 { margin-bottom: 18px !important; }
.btec-points { list-style: none; counter-reset: p; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 28px 0 0 !important; padding: 0; }
.btec-points li { counter-increment: p; }
.btec-points b { display: flex; align-items: center; gap: 10px; color: var(--nuit); margin-bottom: 6px; }
.btec-points b::before { content: counter(p, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: var(--nuit); color: #fff; font-size: .74rem; }
.btec-points span { color: var(--discret); font-size: .93rem; }

/* Réalisations */
.btec-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.btec-filters button { font: inherit; font-size: .9rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ligne); background: #fff; color: var(--texte); cursor: pointer; }
.btec-filters button[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.btec-works { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.btec-work { grid-column: span 2; position: relative; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--nuit); text-align: left; aspect-ratio: 945 / 600; }
.btec-work:nth-child(1), .btec-work:nth-child(2) { grid-column: span 3; }
.btec-work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.btec-work:hover img { transform: scale(1.06); }
.btec-work__cap { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(16, 19, 44, .88)); color: #fff; }
.btec-work__cap small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ff8a8a; }
.btec-work__cap b { font-family: var(--titres); font-size: 1.35rem; font-weight: 600; }
.btec-work.is-hidden { display: none; }
.btec-works.is-filtered .btec-work { grid-column: span 2; }
.btec-lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.btec-lightbox::backdrop { background: rgba(10, 12, 30, .9); }
.btec-lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; }
.btec-lightbox__close { position: absolute; top: -18px; right: -18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--nuit); font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Secteurs */
.btec-sectors { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 0 !important; margin-bottom: 0 !important; }
.btec-sectors li { padding: 22px 18px; border-left: 1px solid rgba(255, 255, 255, .1); }
.btec-sectors li:first-child { border-left: 0; }
.btec-sectors .btec-icon { font-size: 30px; color: var(--rouge); margin-bottom: 14px; display: block; }
.btec-sectors b { display: block; font-family: var(--titres); font-size: 1.35rem; font-weight: 600; }
.btec-sectors span { font-size: .86rem; color: #b9bdd6; }

/* Méthode */
.btec-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 0 !important; margin-bottom: 0 !important; }
.btec-steps li { counter-increment: s; position: relative; }
.btec-steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--titres); font-size: 2.6rem; font-weight: 700; color: var(--rouge); line-height: 1; margin-bottom: 14px; }
.btec-steps li::after { content: ""; position: absolute; top: 20px; left: 64px; right: 4px; border-top: 2px dashed var(--ligne); }
.btec-steps li:last-child::after { display: none; }
.btec-steps b { display: block; font-size: 1.02rem; color: var(--nuit); margin-bottom: 6px; }
.btec-steps span { color: var(--discret); font-size: .93rem; }

/* Contact */
.btec-contact { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }
.btec-card { background: #fff; border-radius: 18px; padding: 32px; box-shadow: var(--ombre); border: 1px solid var(--ligne); }
.btec-form { margin: 0; }
.btec-form .btec-field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.btec-form label, .btec-form legend { display: block; font-size: .86rem; font-weight: 600; color: var(--nuit); margin-bottom: 6px; padding: 0; }
.btec-form label span { font-weight: 400; color: var(--discret); }
.btec-form input[type=text], .btec-form input:not([type]), .btec-form input[type=email], .btec-form input[type=tel], .btec-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: .98rem;
	padding: 12px 14px; border: 1px solid var(--ligne); border-radius: 10px; background: var(--fond-alt);
	transition: border-color .2s, background .2s;
}
.btec-form input:focus, .btec-form textarea:focus { outline: 0; border-color: var(--bleu); background: #fff; box-shadow: 0 0 0 3px rgba(94, 103, 162, .15); }
.btec-form textarea { resize: vertical; }
.btec-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.btec-chips label { margin: 0; font-weight: 500; }
.btec-chips input { position: absolute; opacity: 0; pointer-events: none; }
.btec-chips span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ligne); background: #fff; font-size: .9rem; cursor: pointer; transition: .2s; color: var(--texte); }
.btec-chips input:checked + span { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.btec-chips input:focus-visible + span { outline: 2px solid var(--bleu); outline-offset: 2px; }
.btec-rgpd label { font-weight: 400 !important; color: var(--discret) !important; font-size: .84rem !important; display: flex !important; gap: 8px; align-items: flex-start; }
.btec-rgpd input { margin-top: 3px; }
.btec-hp { position: absolute !important; left: -9999px !important; }
.btec-form-msg { padding: 12px 16px; border-radius: 10px; margin: 0 0 18px !important; font-weight: 500; }
.btec-form-msg.is-ok { background: #e6f9ef; color: #146c3b; }
.btec-form-msg.is-err { background: #ffe9e9; color: #a01616; }
.btec-infos { display: grid; gap: 26px; }
.btec-info { border-bottom: 1px solid var(--ligne); padding-bottom: 22px; }
.btec-info:last-child { border-bottom: 0; }
.btec-info h4 { font-family: inherit; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--discret); margin-bottom: 10px; }
.btec-info__big { display: block; font-family: var(--titres); font-size: 2.2rem; font-weight: 700; color: var(--nuit); text-decoration: none; line-height: 1.1; }
.btec-info__links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--rouge); text-decoration: none; }
.btec-info p { margin-bottom: 10px; }
.btec-hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.btec-hours td { padding: 7px 0; border-bottom: 1px solid var(--ligne); }
.btec-hours td:last-child { text-align: right; color: var(--discret); }
.btec-hours tr.is-today td { font-weight: 700; color: var(--nuit); }

/* Carte */
.btec-map { height: 440px; line-height: 0; background: #dfe2ec; }
.btec-map iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.btec-map.is-active iframe { pointer-events: auto; }

/* Pied de page */
.btec-site-footer { margin: 0; }
.btec-footer { background: var(--nuit); color: #b9bdd6; padding: 60px 0 26px; font-size: .92rem; }
.btec-footer a { color: #d9dcee; text-decoration: none; }
.btec-footer a:hover { color: #fff; }
.btec-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.btec-footer__logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.btec-footer__logo img { height: 46px; width: auto; }
.btec-footer h5 { font-family: inherit; color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 6px 0 14px; }
.btec-footer ul { list-style: none; padding: 0; margin: 0; }
.btec-footer li { padding: 4px 0; }
.btec-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px !important; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; }
.btec-callbar { display: none; }

/* Pages internes */
.btec-page { padding: 60px 20px 80px; }
.btec-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 30px; }
.btec-page h2 { font-size: 1.6rem; margin: 34px 0 10px; }

/* Apparition au défilement */
.btec-js .btec-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.btec-js .btec-reveal.is-in { opacity: 1; transform: none; }

@keyframes btec-defile { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.btec-sectors { grid-template-columns: repeat(3, 1fr); }
	.btec-sectors li:nth-child(4) { border-left: 0; }
	.btec-steps { grid-template-columns: repeat(2, 1fr); }
	.btec-steps li::after { display: none; }
}
@media (max-width: 900px) {
	.btec-nav {
		position: fixed; top: var(--btec-header-h, 112px); left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--ligne); box-shadow: var(--ombre);
		padding: 8px 20px 20px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
	}
	.btec-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
	.btec-nav a:not(.btec-btn) { padding: 14px 0; border-bottom: 1px solid var(--ligne); }
	.btec-nav .btec-btn { justify-content: center; margin-top: 14px; }
	.btec-burger { display: block; }
	.btec-hero { padding: 56px 0 100px; }
	.btec-hero__grid, .btec-why, .btec-contact { grid-template-columns: 1fr; gap: 40px; }
	.btec-services { grid-template-columns: 1fr; }
	.btec-why__badge { right: 12px; }
	.btec-footer__grid { grid-template-columns: 1fr 1fr; }
	.btec-section { padding: 72px 0; }
}
@media (max-width: 640px) {
	.btec-hide-sm { display: none; }
	.btec-logo small { display: none; }
	.btec-works { grid-template-columns: 1fr; }
	.btec-work, .btec-work:nth-child(1), .btec-work:nth-child(2), .btec-works.is-filtered .btec-work { grid-column: auto; }
	.btec-sectors { grid-template-columns: repeat(2, 1fr); }
	.btec-sectors li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
	.btec-steps, .btec-points, .btec-row { grid-template-columns: 1fr; }
	.btec-card { padding: 22px; }
	.btec-footer__grid { grid-template-columns: 1fr; }
	.btec-map { height: 360px; }
	.btec-callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -6px 20px rgba(0, 0, 0, .15); }
	.btec-callbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; font-weight: 600; text-decoration: none; color: #fff; background: var(--nuit); }
	.btec-callbar a + a { background: var(--rouge); }
	body { padding-bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
	.btec-js .btec-reveal { opacity: 1; transform: none; }
}
