/* ==========================================================================
   huitcinq.fr — feuille de style principale
   ========================================================================== */

/* Polices (hébergées localement, licence SIL OFL) */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/unbounded-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/unbounded-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/unbounded-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }

:root {
	--ink: #2A1B2E;
	--ink-2: #4E3F52;
	--ink-3: #6B5A6E;
	--bg: #FFFDF7;
	--white: #FFFFFF;
	--line: #E3ECEF;
	--field: #BCD3DB;
	--accent: #D63F27;
	--accent-dark: #B4412E;
	--accent-tint: #FFE1D8;
	--green: #157A62;
	--green-tint: #D6F2E8;
	--ocean: #0D5C78;
	--ocean-2: #0D6A84;
	--ocean-tint: #D3F0F7;
	--ocean-line: #2E86A3;
	--sky: #CDEBF7;
	--lagoon: #E2F5F9;
	--sun: #FFC845;
	--sun-tint: #FFF2C9;
	--sun-line: #F3C76A;
	--turquoise: #36B3D1;
	--radius: 4px;
	--wrap: 1240px;
	--display: "Unbounded", system-ui, sans-serif;
	--text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; }
input, select, textarea, button { font: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 12px 18px; background: var(--ink); color: var(--white); border-radius: var(--radius); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--green); letter-spacing: 1px; text-transform: uppercase; }
.h1 { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.1; letter-spacing: -0.03em; }
.h2 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -0.025em; }
.h3 { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.25; }
.lead { font-size: 19px; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 15px; color: var(--ink-3); }
.accent { color: var(--accent); }
.highlight { background: linear-gradient(transparent 68%, #FFE27A 68%); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.section-head { max-width: 760px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 26px; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.link-strong { font-weight: 700; text-underline-offset: 4px; }

/* Logo */
.logo { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.logo .i { position: relative; display: inline-block; }
.logo .i::after { content: "."; position: absolute; top: 0; left: 0; right: 0; text-align: center; transform: translateY(-0.72em); color: var(--logo-dot, var(--accent)); }
.logo .dot { color: var(--logo-dot, var(--accent)); }

/* En-tête */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand .logo { font-size: 24px; color: var(--ink); }
.brand-tagline { font-size: 12px; color: var(--ink-3); letter-spacing: .4px; }
.main-nav ul { list-style: none; padding: 0; display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.main-nav a { text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--accent-dark); }
.main-nav .btn { padding: 11px 20px; min-height: 44px; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--field); border-radius: var(--radius); width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(42,27,46,.08); }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 32px 24px; }
	.main-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.main-nav li:last-child a { border: 0; margin-top: 16px; }
}

/* Héros d'accueil */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 72px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-text .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; padding-top: 8px; }
.hero-visual { flex: 1 1 480px; min-width: 0; position: relative; }
.hero-visual img { width: 100%; border-radius: var(--radius); aspect-ratio: 6 / 5; object-fit: cover; }
.hero-badge { position: absolute; left: 16px; bottom: -28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 10px 30px rgba(42,27,46,.10); line-height: 1.35; }
.hero-badge strong { display: block; }

/* Bandeau de page intérieure */
.page-banner { background: var(--lagoon); position: relative; overflow: hidden; }
.page-banner.is-sun { background: var(--sun-tint); }
.page-banner .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 18px; }
.page-banner .h1 { max-width: 860px; font-size: clamp(32px, 4vw, 48px); }
.page-banner .lead { max-width: 680px; }
.page-banner .waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 120px; }
.page-banner .sun { position: absolute; right: 8%; top: 48px; width: 140px; height: 140px; }
@media (max-width: 700px) { .page-banner .sun { width: 80px; height: 80px; top: 24px; right: 16px; } }

/* Chiffres clés */
.stats { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 40px; }
.stats .wrap { display: flex; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; }
.stat { flex: 1 1 220px; padding: 12px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--display); font-size: 40px; font-weight: 500; color: var(--accent); line-height: 1.3; }
.stat:last-child .stat-value { color: var(--green); }
.stat-label { color: var(--ink-2); font-weight: 600; }
@media (max-width: 960px) { .stat { border-right: 0; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: 0; } }

/* Cartes */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 320px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.card.is-ocean { background: var(--ocean); border-color: var(--ocean); color: var(--white); }
.card.is-ocean p, .card.is-ocean li { color: #DDF0F6; }
.card ul { padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.icon-tile { width: 56px; height: 56px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex: none; }
.icon-tile.is-accent { background: var(--accent-tint); color: var(--accent-dark); }
.icon-tile.is-green { background: var(--green-tint); color: var(--green); }
.icon-tile.is-ocean { background: var(--ocean-tint); color: var(--ocean-2); }
.icon-tile.is-dark { background: #1A7393; color: var(--sun); }
.icon-tile.is-lg { width: 64px; height: 64px; }

/* Bandeau audit (accueil) */
.audit-band { background: var(--sun-tint); border-radius: var(--radius); padding: 40px 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.audit-band-text { display: flex; gap: 20px; align-items: center; max-width: 760px; }
.audit-band .h3 { font-size: 24px; margin-bottom: 4px; }
@media (max-width: 600px) { .audit-band { padding: 28px; } }

/* Sud Vendée */
.vendee { background: var(--lagoon); }
.vendee .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.vendee-gallery { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(200px, 1fr)); gap: 16px; }
.vendee-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sky); }
.vendee-gallery figure:first-child { grid-row: span 2; min-height: 420px; }
.vendee-gallery img { width: 100%; height: 100%; object-fit: cover; }
.vendee-text { flex: 1 1 420px; min-width: 0; }
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex: none; margin-top: 3px; color: var(--green); }
.check-list.is-strong { font-weight: 600; }

/* Pour qui */
.audiences { display: flex; flex-wrap: wrap; gap: 24px; }
.audience { flex: 1 1 300px; border-top: 3px solid var(--accent); padding-top: 20px; }
.audience:nth-child(2) { border-color: var(--green); }
.audience:nth-child(3) { border-color: var(--turquoise); }
.audience h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }

/* Réalisations */
.projects-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.project { text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.project:hover { color: var(--ink); box-shadow: 0 12px 30px rgba(42,27,46,.10); transform: translateY(-2px); }
.project[hidden] { display: none; }
.project-thumb { aspect-ratio: 16 / 10; background: var(--green-tint); display: flex; align-items: center; justify-content: center; color: var(--green); font-weight: 700; font-family: var(--display); font-size: 22px; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.project-tag { font-size: 13px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .8px; }
.project-body h3 { font-size: 20px; font-weight: 700; }
.project-body p { color: var(--ink-2); font-size: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; }
.filter { font-weight: 700; font-size: 15px; padding: 12px 18px; min-height: 44px; border-radius: var(--radius); cursor: pointer; background: var(--white); color: var(--ink); border: 1px solid var(--field); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.empty-note { margin-top: 24px; color: var(--ink-3); }

/* Méthode */
.method { background: var(--ocean); color: var(--white); }
.method .h2 { max-width: 700px; margin-bottom: 48px; }
.steps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; }
.step { flex: 1 1 240px; padding: 8px 28px 8px 0; border-right: 1px solid var(--ocean-line); margin-right: 28px; margin-bottom: 24px; }
.step:last-child { border-right: 0; margin-right: 0; }
.step-num { font-family: var(--display); color: var(--sun); font-size: 20px; margin-bottom: 12px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: #D6EEF5; }
@media (max-width: 1100px) { .step { border-right: 0; } }

/* Témoignage */
.testimonial { background: var(--lagoon); }
.testimonial .wrap { max-width: 900px; text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.testimonial blockquote { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.4; }

/* Appel à l'action */
.cta-box { background: var(--accent-tint); border-radius: var(--radius); padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-box .h2 { font-size: 30px; margin-bottom: 8px; }
@media (max-width: 600px) { .cta-box { padding: 28px; } }

/* Expertises détaillées */
.jump-links { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 32px; }
.jump-links a { text-decoration: none; font-weight: 700; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.jump-links a.is-sun { background: var(--sun-tint); }
.expertise .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.expertise.is-reverse .wrap { flex-direction: row-reverse; }
.expertise.is-lagoon { background: var(--lagoon); }
.expertise-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.expertise-visual { flex: 1 1 440px; min-width: 0; }
.expertise-visual img { width: 100%; border-radius: var(--radius); }
.expertise-cols { display: flex; flex-wrap: wrap; gap: 32px; }
.expertise-cols > div { flex: 1 1 220px; }
.col-title { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; color: var(--c, var(--green)); }
.expertise .check-list svg { color: var(--c, var(--green)); }
.price-line { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding-top: 4px; }
.price-line strong { font-size: 18px; }
.also { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.also .audience:nth-child(1) { border-color: var(--turquoise); }
.also .audience:nth-child(2) { border-color: var(--sun); }
.also .audience:nth-child(3) { border-color: var(--accent); }

/* Offres d'audit */
.audit { background: var(--sun-tint); }
.offers { display: flex; flex-wrap: wrap; gap: 24px; }
.offer { flex: 1 1 300px; background: var(--white); border: 1px solid var(--sun-line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.offer.is-featured { border: 2px solid var(--accent); box-shadow: 0 12px 30px rgba(42,27,46,.08); }
.offer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.offer .h3 { font-size: 21px; }
.offer-price { font-family: var(--display); font-size: 30px; color: var(--c, var(--green)); }
.offer .check-list svg { color: var(--c, var(--green)); }
.offer .btn { margin-top: auto; }
.badge { font-size: 13px; font-weight: 700; background: var(--accent); color: var(--white); padding: 4px 10px; border-radius: var(--radius); white-space: nowrap; }

/* Formulaire */
.contact-section .wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-intro { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-lines { display: flex; flex-direction: column; gap: 14px; font-weight: 600; }
.contact-lines div { display: flex; gap: 12px; align-items: flex-start; }
.contact-lines svg { flex: none; color: var(--green); margin-top: 2px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.info-card .h3 { font-size: 22px; }
.map-card { border-radius: var(--radius); overflow: hidden; background: var(--turquoise); }
.map-card img { width: 100%; }
.hc-form { position: relative; flex: 1 1 480px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-wrap: wrap; gap: 18px; }
.field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--field); border-radius: var(--radius); background: var(--bg); color: var(--ink); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid var(--green-tint); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { font-size: 13px; color: var(--ink-3); }
.hc-form .btn { align-self: flex-start; }
.notice { padding: 16px 18px; border-radius: var(--radius); font-weight: 600; }
.notice.is-success { background: var(--green-tint); color: #0C5442; }
.notice.is-error { background: var(--accent-tint); color: #8A2414; }

/* FAQ */
.faq { background: var(--white); border-top: 1px solid var(--line); }
.faq .wrap { max-width: 900px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; background: var(--bg); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 12px; color: var(--ink-2); }

/* Contenu éditorial (mentions légales, pages simples) */
.prose-banner { background: var(--lagoon); }
.prose-banner .wrap { max-width: 900px; padding-top: 72px; padding-bottom: 56px; }
.prose { max-width: 900px; margin: 0 auto; padding: 56px 32px 96px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 22px; margin-top: 40px; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { text-underline-offset: 3px; }

/* Pied de page */
.site-footer { background: var(--ocean); color: #D6EEF5; --logo-dot: var(--sun); }
.footer-wave { display: block; width: 100%; height: 40px; background: var(--bg); }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .logo { font-size: 22px; color: var(--white); }
.footer-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 15px; }
.site-footer a { color: #D6EEF5; }
.site-footer a:hover { color: var(--white); }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--ocean-line); border-radius: var(--radius); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--ocean-line); font-size: 14px; color: #BFE2EC; }
.made-in { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 14px; color: var(--white); }

/* Petits écrans */
@media (max-width: 700px) {
	body { font-size: 16px; }
	.wrap { padding-left: 20px; padding-right: 20px; }
	.section { padding-top: 64px; padding-bottom: 64px; }
	.card, .hc-form, .offer, .info-card { padding: 24px; }
	.vendee-gallery { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
	.vendee-gallery figure:first-child { grid-row: auto; min-height: 320px; }
	.vendee-gallery figure { min-height: 220px; }
	.hero-badge { left: 12px; right: 12px; }
}

/* Compléments */
.hero-badge .small { display: block; }
.card .link-strong { margin-top: auto; }
.hc-form > .field { flex: none; }

/* Bannière de consentement */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(42,27,46,.18); padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 320px; font-size: 15px; color: var(--ink-2); }
.cookie-actions { display: flex; gap: 12px; }
.cookie-actions .btn { min-height: 44px; padding: 10px 20px; }
