/* ==========================================================================
   Nord Est Bâtiment — styles du thème
   Couleurs du logo : bleu marine #051C46, rouge #E30713
   ========================================================================== */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
	--navy: #051C46;
	--navy-deep: #03122F;
	--navy-line: #1B2F5E;
	--red: #E30713;
	--red-dark: #B5050F;
	--red-light: #FF6B74;
	--white: #FFFFFF;
	--grey-bg: #F4F4F2;
	--grey-line: #E4E4E1;
	--muted: #4A4E52;
	--on-navy: #C9CDD6;
	--display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--navy); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.neb-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.neb-skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 1000; }
.neb-skip:focus { left: 16px; top: 16px; }
.neb-red { color: var(--red); }
.neb-muted { color: var(--muted); margin: 0 0 16px; }
.neb-center { display: flex; justify-content: center; margin-top: 40px; }

/* Typo ------------------------------------------------------------------- */
.neb-eyebrow { display: block; font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.neb-eyebrow--light { color: var(--red-light); }
.neb-h2 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 50px); line-height: 1; text-transform: uppercase; margin-bottom: 20px; }

/* Boutons ---------------------------------------------------------------- */
.neb-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.neb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.neb-btn--red { background: var(--red); color: var(--white); border-color: var(--red); }
.neb-btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.neb-btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.neb-btn--outline:hover { background: var(--navy); color: var(--white); }
.neb-btn--white { background: var(--white); color: var(--red); border-color: var(--white); }
.neb-btn--white:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.neb-btn--outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.neb-btn--outline-white:hover { background: var(--white); color: var(--red); }
.neb-link { font-weight: 700; padding: 10px 0; text-decoration: none; }
.neb-link:hover { text-decoration: underline; }
.neb-link--light { color: var(--white); }
.neb-link--light:hover { color: var(--white); }

/* Barre du haut + en-tête ------------------------------------------------- */
.neb-topbar { background: var(--navy); color: var(--white); font-size: 14px; }
.neb-topbar__inner { display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.neb-topbar__hours { color: var(--on-navy); }
.neb-topbar__links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.neb-topbar a { color: var(--white); text-decoration: none; }
.neb-topbar a:hover { text-decoration: underline; }

.neb-header { background: var(--white); border-bottom: 1px solid var(--grey-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .neb-header { top: 32px; }
.neb-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.neb-logo img { height: 64px; width: auto; }
.neb-nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 16px; }
.neb-nav a:not(.neb-btn) { color: var(--navy); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.neb-nav a:not(.neb-btn):hover, .neb-nav a.is-active { color: var(--red); border-bottom-color: var(--red); }
.neb-nav__cta { min-height: 46px; padding: 0 22px; font-size: 16px; }
.neb-burger { display: none; width: 48px; height: 48px; border: 0; background: transparent; padding: 12px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.neb-burger span { display: block; height: 3px; background: var(--navy); transition: transform .2s, opacity .2s; }
.neb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.neb-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.neb-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

@media (max-width: 960px) {
	.neb-burger { display: flex; }
	.neb-logo img { height: 52px; }
	.neb-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--grey-line); padding: 8px 24px 24px; box-shadow: 0 12px 24px rgba(5, 28, 70, .08); }
	.neb-nav.is-open { display: flex; }
	.neb-nav a:not(.neb-btn) { padding: 14px 0; border-bottom: 1px solid var(--grey-line); }
	.neb-nav a.is-active { border-bottom-color: var(--grey-line); }
	.neb-nav__cta { margin-top: 16px; }
}
@media (max-width: 782px) { .admin-bar .neb-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .neb-header { top: 0; } }

/* Hero accueil ---------------------------------------------------------- */
.neb-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 80px; }
.neb-hero__text { flex: 1 1 480px; min-width: 0; }
.neb-hero__title { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6vw, 76px); line-height: .98; text-transform: uppercase; margin: 8px 0 24px; }
.neb-hero__lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.neb-hero__media { flex: 1 1 440px; min-width: 0; position: relative; padding: 0 24px 24px 0; }
.neb-hero__block { position: absolute; right: 0; bottom: 0; width: 70%; height: 70%; background: var(--red); }
.neb-hero__media img { position: relative; width: 100%; height: 460px; object-fit: cover; }
@media (max-width: 600px) {
	.neb-hero__inner { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
	.neb-hero__media img { height: 280px; }
	.neb-hero__media { padding: 0 14px 14px 0; }
}

/* Repères --------------------------------------------------------------- */
.neb-facts { background: var(--navy); color: var(--white); }
.neb-facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.neb-facts strong { display: block; font-family: var(--display); font-size: 32px; line-height: 1.1; }
.neb-facts span { color: var(--on-navy); font-size: 15px; }

/* Sections -------------------------------------------------------------- */
.neb-section { padding: 96px 0; }
.neb-section--grey { background: var(--grey-bg); }
.neb-section--navy { background: var(--navy); color: var(--white); }
.neb-section__head { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.neb-section__head .neb-h2 { margin-bottom: 0; max-width: 680px; }
@media (max-width: 600px) { .neb-section { padding: 64px 0; } }

/* Cartes métiers -------------------------------------------------------- */
.neb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; background: var(--grey-line); }
.neb-card { background: var(--white); padding: 32px 28px; text-decoration: none; color: var(--navy); display: flex; flex-direction: column; gap: 12px; min-height: 230px; transition: background .15s; }
.neb-card:hover { background: var(--navy); color: var(--white); }
.neb-card:hover .neb-card__text { color: var(--on-navy); }
.neb-card--cta { background: var(--red); color: var(--white); }
.neb-card--cta .neb-card__num, .neb-card--cta .neb-card__text { color: var(--white); }
.neb-card--cta:hover { background: var(--red-dark); }
.neb-card--cta:hover .neb-card__text { color: var(--white); }
.neb-card__num { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--red); }
.neb-card__title { font-family: var(--display); font-weight: 700; font-size: 28px; text-transform: uppercase; line-height: 1.05; }
.neb-card__text { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* Étapes ---------------------------------------------------------------- */
.neb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; counter-reset: step; }
.neb-steps li { border-top: 4px solid var(--navy); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; counter-increment: step; }
.neb-steps li.is-first { border-top-color: var(--red); }
.neb-steps strong { font-family: var(--display); font-size: 24px; text-transform: uppercase; }
.neb-steps strong::before { content: counter(step) ". "; }
.neb-steps span { color: var(--muted); font-size: 16px; }

/* Réalisations à la une ------------------------------------------------- */
.neb-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.neb-featured__item { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.neb-featured__item img { width: 100%; height: 300px; object-fit: cover; }
.neb-featured__item strong { display: block; font-family: var(--display); font-size: 24px; text-transform: uppercase; }
.neb-featured__item span { color: var(--on-navy); font-size: 15px; }

/* Bandeau CTA ----------------------------------------------------------- */
.neb-cta { background: var(--red); color: var(--white); }
.neb-cta__inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 64px; }
.neb-cta__title { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; text-transform: uppercase; max-width: 680px; }
.neb-cta__text { margin: 10px 0 0; font-size: 18px; }

/* Bandeau titre des pages ---------------------------------------------- */
.neb-pagehero { background: var(--navy); color: var(--white); padding: 72px 0; }
.neb-pagehero__title { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1; text-transform: uppercase; }
.neb-pagehero__text { margin: 16px 0 0; font-size: 18px; color: var(--on-navy); max-width: 640px; }

/* Prestations ----------------------------------------------------------- */
.neb-service { padding: 88px 0; scroll-margin-top: 100px; }
.neb-service--alt { background: var(--grey-bg); }
.neb-service__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.neb-service--alt .neb-service__inner { flex-direction: row-reverse; }
.neb-service__media, .neb-service__text { flex: 1 1 440px; min-width: 0; }
.neb-service__media img { width: 100%; height: 400px; object-fit: cover; }
.neb-service__placeholder { height: 400px; background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; position: relative; overflow: hidden; }
.neb-service__placeholder::before { content: ""; position: absolute; top: 40px; left: 50%; width: 200px; height: 200px; border-left: 22px solid var(--red); border-top: 22px solid var(--red); transform: translateX(-50%) rotate(45deg); opacity: .9; }
.neb-service__placeholder span { font-family: var(--display); font-size: 22px; color: var(--red-light); position: relative; }
.neb-service__placeholder strong { font-family: var(--display); font-size: 40px; text-transform: uppercase; position: relative; }
.neb-service__num { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--red); }
.neb-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 600px) {
	.neb-service { padding: 56px 0; }
	.neb-service__inner { gap: 28px; }
	.neb-service__media img, .neb-service__placeholder { height: 260px; }
	.neb-service--alt .neb-service__inner { flex-direction: column; }
}

/* Galerie --------------------------------------------------------------- */
.neb-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.neb-filter { min-height: 44px; padding: 8px 20px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); font-weight: 700; font-size: 15px; cursor: pointer; }
.neb-filter:hover { background: var(--grey-bg); }
.neb-filter.is-active { background: var(--red); border-color: var(--red); color: var(--white); }
.neb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.neb-gallery__item { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.neb-gallery__item.is-hidden { display: none; }
.neb-gallery__open { padding: 0; border: 0; background: var(--grey-bg); cursor: zoom-in; overflow: hidden; }
.neb-gallery__open img { width: 100%; height: 260px; object-fit: cover; transition: transform .3s; }
.neb-gallery__open:hover img { transform: scale(1.04); }
.neb-gallery__cat { display: block; font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); }
.neb-gallery__item strong { font-family: var(--display); font-size: 24px; text-transform: uppercase; line-height: 1.1; }

.neb-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(3, 18, 47, .94); display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.neb-lightbox[hidden] { display: none; }
.neb-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.neb-lightbox img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; object-fit: contain; }
.neb-lightbox figcaption { color: var(--white); font-family: var(--display); font-size: 22px; text-transform: uppercase; text-align: center; }
.neb-lightbox button { position: absolute; width: 52px; height: 52px; border: 0; background: var(--red); color: var(--white); font-size: 34px; line-height: 1; cursor: pointer; }
.neb-lightbox button:hover { background: var(--red-dark); }
.neb-lightbox__close { top: 16px; right: 16px; }
.neb-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.neb-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
	.neb-lightbox { padding: 72px 12px; }
	.neb-lightbox__prev, .neb-lightbox__next { top: auto; bottom: 12px; transform: none; }
}

/* Qui sommes-nous ------------------------------------------------------- */
.neb-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.neb-split--top { align-items: flex-start; }
.neb-split__text, .neb-split__media { flex: 1 1 440px; min-width: 0; }
.neb-split__media img { width: 100%; height: 440px; object-fit: cover; }
.neb-person { display: flex; flex-direction: column; border-left: 4px solid var(--red); padding-left: 16px; margin: 24px 0 0; }
.neb-person span { color: var(--muted); }
.neb-commit { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.neb-commit__item { background: var(--white); padding: 32px 28px; border-top: 4px solid var(--red); display: flex; flex-direction: column; gap: 10px; }
.neb-commit__item strong { font-family: var(--display); font-size: 24px; text-transform: uppercase; line-height: 1.1; }
.neb-commit__item span { color: var(--muted); font-size: 16px; }
@media (max-width: 600px) { .neb-split__media img { height: 280px; } }

/* Contact --------------------------------------------------------------- */
.neb-contact { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.neb-contact__info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.neb-contact__form { flex: 1 1 520px; min-width: 0; }
.neb-info { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border: 1px solid var(--grey-line); color: var(--navy); text-decoration: none; }
a.neb-info:hover { border-color: var(--navy); color: var(--navy); }
.neb-info--red { background: var(--red); border-color: var(--red); color: var(--white); }
a.neb-info--red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.neb-info__label { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: .8; }
.neb-info__big { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.1; }
.neb-info__value { font-weight: 600; font-size: 18px; line-height: 1.4; }
.neb-info__hint { font-size: 14px; color: var(--red); font-weight: 600; }

.neb-form { background: var(--grey-bg); padding: 40px 36px; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 120px; }
.neb-form__title { font-family: var(--display); font-size: 34px; text-transform: uppercase; }
.neb-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.neb-field { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.neb-field label { font-weight: 600; font-size: 15px; }
.neb-field input, .neb-field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #8A8E93; background: var(--white); color: var(--navy); font-family: var(--body); font-size: 16px; border-radius: 0; }
.neb-field textarea { resize: vertical; min-height: 150px; }
.neb-field input:focus, .neb-field textarea:focus { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: 0; }
.neb-check { margin: 0; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.neb-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--red); }
.neb-form .neb-btn { align-self: flex-start; }
.neb-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.neb-alert { margin: 0; padding: 14px 18px; font-weight: 600; }
.neb-alert--ok { background: #E3F4E8; color: #14532D; border-left: 4px solid #15803D; }
.neb-alert--err { background: #FDE8E9; color: #8A0A10; border-left: 4px solid var(--red); }
@media (max-width: 600px) { .neb-form { padding: 28px 20px; } }

/* Textes légaux --------------------------------------------------------- */
.neb-prose { max-width: 820px; }
.neb-prose h2 { font-family: var(--display); font-size: 28px; text-transform: uppercase; margin: 36px 0 10px; }
.neb-prose h2:first-child { margin-top: 0; }
.neb-prose p { color: var(--muted); margin: 0 0 12px; }

/* Pied de page ---------------------------------------------------------- */
.neb-footer { background: var(--navy-deep); color: var(--on-navy); font-size: 15px; padding: 64px 0 28px; }
.neb-footer a { color: var(--white); text-decoration: none; }
.neb-footer a:hover { text-decoration: underline; color: var(--white); }
.neb-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.neb-footer__grid p { margin: 0 0 12px; }
.neb-footer__logo { display: inline-flex; background: var(--white); padding: 10px 14px; margin-bottom: 16px; }
.neb-footer__logo img { height: 60px; width: auto; }
.neb-footer__badge { display: inline-block; border: 1px solid var(--navy-line); padding: 6px 12px; font-size: 13px; }
.neb-footer__title { color: var(--white); font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; margin-bottom: 14px; }
.neb-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.neb-footer__bottom { border-top: 1px solid var(--navy-line); margin-top: 40px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: #A9AFBC; }
.neb-footer__bottom a { color: #A9AFBC; }

/* Bouton d'appel flottant (mobile) ------------------------------------- */
.neb-fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: var(--white); align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(5, 28, 70, .3); }
.neb-fab:hover { color: var(--white); background: var(--red-dark); }
@media (max-width: 760px) { .neb-fab { display: flex; } }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
