/* ANOR Structures — charte reprise des devis : encre, vert profond, gris clairs, Helvetica. */
:root {
	--ink: #1a202c;
	--ink-soft: #4a5568;
	--green: #2a4b3c;
	--green-dark: #1f3a2d;
	--tint: #f0f4f2;
	--grey-50: #f7fafc;
	--grey-100: #edf2f7;
	--grey-200: #e2e8f0;
	--grey-300: #cbd5e0;
	--white: #fff;
	--font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
	--wrap: 1180px;
	--radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid #7aa690; outline-offset: 2px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, 780px); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
.icon { width: 24px; height: 24px; flex: none; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--grey-300); backdrop-filter: saturate(1.2) blur(6px); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: block; line-height: 0; }
.brand__logo, .brand img, .custom-logo { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav a:not(.btn) { text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:not(.btn):hover { border-color: var(--green); }
.nav-toggle { display: none; background: none; border: 1px solid var(--grey-300); border-radius: var(--radius); width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, opacity .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 14px 22px; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer; transition: background .15s, color .15s, border-color .15s; line-height: 1.2; }
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--grey-100); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--wa { background: #25d366; color: #0b2e1a; }
.btn--wa:hover { background: #1fbd5b; }
.btn--block { width: 100%; }
.main-nav__cta { padding: 11px 18px; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; }
.hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; padding: 80px 0 72px; }
.hero__panel { border: 1px solid rgba(255,255,255,.18); border-top: 4px solid #7aa690; padding: 22px 24px 24px; background: rgba(255,255,255,.04); }
.hero__panel-title { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #cfe3d8; margin: 0 0 14px; }
.hero__panel .fiche { border-color: rgba(255,255,255,.2); font-size: .92rem; }
.hero__panel .fiche > div { border-color: rgba(255,255,255,.2); grid-template-columns: 88px 1fr; }
.hero__panel .fiche dt { background: rgba(255,255,255,.08); color: #cfe3d8; }
.hero__panel .fiche dd { color: #e6edf3; }
.hero h1 { color: #fff; }
.hero__lead { font-size: 1.12rem; color: #d6dde6; max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__bar { background: var(--green); }
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; }
.hero__facts li { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-left: 1px solid rgba(255,255,255,.22); }
.hero__facts li:first-child { border-left: 0; padding-left: 0; }
.hero__n { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 2px solid rgba(255,255,255,.55); color: #fff; font-weight: 700; font-size: 1rem; }
.hero__facts strong { display: block; color: #fff; font-size: .86rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; line-height: 1.3; }
.hero__facts em { display: block; font-style: normal; font-size: .9rem; color: #d3e4da; line-height: 1.4; margin-top: 2px; }

.kicker { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--green); }
.kicker--light { color: #cfe3d8; border-color: #cfe3d8; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section--ink { background: var(--ink); color: #fff; }
.section__head { max-width: 760px; margin-bottom: 44px; }
.section__intro { color: var(--ink-soft); font-size: 1.05rem; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.split__body p { color: var(--ink-soft); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 32px; border: 1px solid var(--grey-300); background: #fff; }
.pillars li { padding: 20px; border-right: 1px solid var(--grey-300); display: flex; flex-direction: column; gap: 6px; }
.pillars li:last-child { border-right: 0; }
.pillars strong { color: var(--ink); font-size: .95rem; }
.pillars span { font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Expertises ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--grey-300); border-top: 4px solid var(--green); padding: 28px 26px 26px; }
.card .icon { color: var(--green); width: 34px; height: 34px; margin-bottom: 16px; }
.card h3 { margin-bottom: .45em; }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

.method { margin-top: 64px; }
.method__title { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--grey-300); background: #fff; counter-reset: s; }
.steps li { display: flex; flex-direction: column; gap: 6px; padding: 20px 18px; border-right: 1px solid var(--grey-300); font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }
.steps li:last-child { border-right: 0; }
.steps strong { color: var(--ink); font-size: .98rem; }
.steps__n { display: grid; place-items: center; width: 30px; height: 30px; background: var(--green); color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }

/* ---------- Réalisations ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { background: #fff; border: 1px solid var(--grey-300); border-top: 4px solid var(--green); display: flex; flex-direction: column; }
.project--wide { grid-column: span 2; }
.project__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.project__body h3 { margin: 0; font-size: 1.2rem; }
.project__body p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.fiche { margin: 0; border: 1px solid var(--grey-300); font-size: .86rem; }
.fiche > div { display: grid; grid-template-columns: 78px 1fr; border-bottom: 1px solid var(--grey-300); }
.fiche > div:last-child { border-bottom: 0; }
.fiche dt { background: var(--grey-100); font-weight: 700; padding: 8px 10px; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; display: flex; align-items: center; }
.fiche dd { margin: 0; padding: 8px 12px; }

/* ---------- Références ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.chips li { background: #fff; border: 1px solid var(--grey-300); padding: 10px 16px; font-size: .92rem; font-weight: 600; }
.note { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.section--ink h2 { color: #fff; }
.contact__lead { color: #d6dde6; max-width: 30em; }
.contact__list { display: grid; gap: 22px; margin: 32px 0; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; line-height: 1.5; }
.contact__list .icon { color: #9fc4b0; margin-top: 2px; }
.contact__list a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.contact__list a:hover { border-color: #fff; }
.contact__form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 34px 32px; }
.form__title { font-size: 1.3rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--grey-300); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.field abbr { color: var(--green); text-decoration: none; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--grey-300); border-radius: var(--radius); background: var(--grey-50); color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(42,75,60,.18); background: #fff; }
.field.has-error input, .field.has-error textarea { border-color: #b83232; }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field--check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.field--check label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .86rem; color: var(--ink-soft); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 16px 0 0; font-size: .95rem; min-height: 1.4em; }
.form__status.is-ok { color: #1f6b3c; font-weight: 700; }
.form__status.is-error { color: #b83232; font-weight: 700; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Pied de page ---------- */
.site-footer { background: #11151d; color: #cbd5e0; font-size: .92rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding: 48px 0 32px; }
.site-footer__name { font-size: 1.7rem; font-weight: 700; color: #fff; margin: 0; letter-spacing: -.01em; }
.site-footer__name span { font-size: .6em; letter-spacing: .02em; }
.site-footer__tag { color: #a0aec0; margin: 4px 0 0; }
.site-footer__label { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8aa89a; margin-bottom: 8px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid #2d3748; padding: 20px 0 28px; font-size: .8rem; color: #8b97a8; }
.site-footer__legal p { margin: 0; }
.legal-nav ul { display: flex; gap: 18px; }

/* ---------- WhatsApp flottant ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #0b2e1a; text-decoration: none; font-weight: 700; font-size: .85rem; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.wa-float:hover { background: #1fbd5b; }
.wa-float .icon { width: 26px; height: 26px; }

/* ---------- Pages de texte ---------- */
.prose h1 { margin-bottom: .6em; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose a { color: var(--green); }

/* ---------- Adaptatif ---------- */
@media (max-width: 1020px) {
	.hero__grid, .split, .contact { grid-template-columns: 1fr; gap: 36px; }
	.hero__grid { padding: 56px 0; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.projects { grid-template-columns: repeat(2, 1fr); }
	.project--wide { grid-column: span 2; }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.steps li { border-bottom: 1px solid var(--grey-300); }
	.steps li:nth-child(2n) { border-right: 0; }
	.steps li:last-child { grid-column: span 2; border-bottom: 0; }
}

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--grey-300); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; display: none; }
	.main-nav.is-open { display: flex; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--grey-200); }
	.main-nav__cta { margin-top: 14px; }
	.site-header__bar { position: relative; }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	.section { padding: 60px 0; }
	.cards, .projects { grid-template-columns: 1fr; }
	.project--wide { grid-column: auto; }
	.pillars { grid-template-columns: 1fr; }
	.pillars li { border-right: 0; border-bottom: 1px solid var(--grey-300); }
	.pillars li:last-child { border-bottom: 0; }
	.hero__facts { grid-template-columns: 1fr; }
	.hero__facts li { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); padding: 16px 0; }
	.hero__facts li:first-child { border-top: 0; }
	.form__row { grid-template-columns: 1fr; gap: 0; }
	.contact__form { padding: 26px 20px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
	.steps { grid-template-columns: 1fr; }
	.steps li { border-right: 0; }
	.steps li:last-child { grid-column: auto; }
	.wa-float span { display: none; }
	.wa-float { padding: 12px; }
	.brand__logo, .brand img, .custom-logo { height: 38px; }
}

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

/* ---- Défilé d’images ---- */
.gallery { background: var(--tint, #f0f4f2); padding: 44px 0 40px; overflow: hidden; }
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; transition: transform .6s ease; will-change: transform; }
.carousel__slide { flex: 0 0 calc((100% - 36px) / 3); min-width: 0; margin: 0; }
.carousel__slide figure { margin: 0; background: #fff; border: 1px solid #e2e8f0; }
.carousel__slide img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; background: #1a202c; }
.carousel__slide figcaption { padding: 12px 14px 14px; font-size: .92rem; color: #1a202c; line-height: 1.35; border-top: 3px solid #2a4b3c; }
.carousel__btn { position: absolute; top: calc(50% - 30px); width: 40px; height: 40px; border: 0; background: rgba(26,32,44,.82); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.carousel__btn--prev { left: -8px; } .carousel__btn--next { right: -8px; }
.carousel__btn:hover, .carousel__btn:focus-visible { background: #2a4b3c; }
@media (max-width: 960px) { .carousel__slide { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 640px) { .carousel__slide { flex-basis: 100%; } .gallery { padding: 28px 0; } .carousel__btn--prev { left: 4px; } .carousel__btn--next { right: 4px; } }
@media (prefers-reduced-motion: reduce) { .carousel__track { transition: none; } }
