:root {
  --ink: #0e2740;
  --ink-2: #153453;
  --steel: #1d4a72;
  --muted: #56657a;
  --line: #dbe2e8;
  --paper: #f4f7f9;
  --paper-2: #e8eef2;
  --white: #ffffff;
  --accent: #1a9a68;
  --red: #d8322a;
  --accent-2: #5fd3a0;
  --accent-deep: #0f7a52;
  --radius: 14px;
  --wrap: 1200px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow.dark { color: var(--accent-deep); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #1f8f4e; color: #fff; margin-top: .5rem; }
.btn-whatsapp:hover { background: #18773f; }
.btn-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
/* Liseré tricolore bulgare */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: linear-gradient(90deg, #fff 0 33.3%, var(--accent) 33.3% 66.6%, var(--red) 66.6%);
  box-shadow: 0 -1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif; font-weight: 700;
  font-size: 1.32rem; letter-spacing: .01em; color: #12304f;
}
.brand-text small {
  font-weight: 800; font-size: .74rem; letter-spacing: .2em; margin-top: 3px;
  background: linear-gradient(90deg, #0f8a8a, #2aa35a); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a {
  font-family: var(--mono); font-size: .75rem; text-decoration: none;
  padding: .3rem .65rem; border-radius: 999px; color: var(--muted);
}
.lang a[aria-current] { background: var(--ink); color: #fff; }
.menu-toggle {
  display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: 120px 0 0;
}
.hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(14,39,64,.97) 0%, rgba(14,39,64,.88) 42%, rgba(14,39,64,.45) 100%),
    url("../img/plaquettes-reel.jpg") center 35% / cover no-repeat;
}
.hero-inner { position: relative; max-width: var(--wrap); }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; max-width: 17ch; letter-spacing: -.03em; }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 58ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.strengths {
  position: relative;
  list-style: none; margin: 96px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.14);
}
.strengths li { display: flex; gap: 16px; padding: 28px 28px 36px 0; }
.strengths li + li { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
.strengths strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.strengths p { margin: 0; color: rgba(255,255,255,.65); font-size: .93rem; }
.s-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(26,154,104,.14); display: grid; place-items: center;
}
.s-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Clients */
.clients { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.clients .wrap { display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.clients-label { margin: 0; font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.clients-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 700; }
.clients-list li { display: inline-flex; align-items: center; gap: 10px; }
.clients-list li::before { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }

/* Sections */
.section { padding: 110px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-lead { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-lead { color: rgba(255,255,255,.68); }

/* Materials */
.symbol {
  display: inline-block; font-family: var(--mono); font-size: .85rem;
  padding: .3rem .7rem; border: 1px solid var(--accent); color: var(--accent-deep);
  border-radius: 6px; margin-bottom: 1.1rem; background: rgba(26,154,104,.08);
}
.symbol sub { font-size: .7em; vertical-align: baseline; }
.symbol.sm { font-size: .75rem; }
.tags { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .88rem; font-weight: 600;
  padding: .38rem .8rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
}
.link-arrow { font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

.family-featured {
  display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: 40px;
}
.family-featured h3 { font-size: 1.9rem; font-weight: 800; }
.family-featured p { color: var(--muted); }
.gallery {
  display: grid; gap: 10px;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  grid-template-areas: "a b c" "a d d";
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 10px; background: var(--ink); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 8px; bottom: 8px;
  font-size: .78rem; font-weight: 700; color: #fff;
  background: rgba(14,39,64,.78); padding: .25rem .6rem; border-radius: 6px;
}
.g-a { grid-area: a; } .g-b { grid-area: b; } .g-c { grid-area: c; } .g-d { grid-area: d; }

.families { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.family-card {
  background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  overflow: hidden; display: flex; flex-direction: column;
}
.card-media { height: 200px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.card-body { padding: 28px; }
.card-body .tags { margin: 0; }
.family-card.dark .card-elements {
  height: 200px; display: flex; align-items: center; justify-content: center; gap: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(26,154,104,.18), transparent 60%),
    linear-gradient(160deg, var(--steel), var(--ink));
}
.el {
  width: 78px; height: 92px; border-radius: 8px;
  border: 1px solid rgba(95,211,160,.5); background: rgba(255,255,255,.04);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  font-size: 1.9rem; font-weight: 800; color: #fff; position: relative;
}
.el b { position: absolute; top: 6px; left: 8px; font-family: var(--mono); font-size: .65rem; font-weight: 500; color: var(--accent-2); }
.el small { font-family: var(--mono); font-size: .6rem; font-weight: 500; color: rgba(255,255,255,.55); }

.forms-band {
  margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  padding: 22px 28px; border-radius: calc(var(--radius) + 6px);
  background: var(--ink); color: #fff;
}
.forms-band p { margin: 0; font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.forms-band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.forms-band li { font-weight: 600; font-size: .9rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.08);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -16px; width: 12px; height: 12px;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg);
}
.step-n { font-family: var(--mono); font-size: 2rem; color: var(--accent-2); display: block; margin-bottom: 18px; }
.steps p { color: rgba(255,255,255,.68); margin: 0; font-size: .96rem; }
.proc-cta { margin-top: 44px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-media img { border-radius: calc(var(--radius) + 6px); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; height: auto; }
.about-text p { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 2rem 0 0; }
.facts div { border-top: 2px solid var(--ink); padding-top: 12px; }
.facts dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 700; }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-list a { font-weight: 700; text-decoration: none; }
.quote-form {
  background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: 36px; display: grid; gap: 16px;
}
.quote-form h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; font-weight: 500; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border: 1px solid #c9d3dc; border-radius: 10px; background: var(--paper);
  width: 100%;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,154,104,.25); background: #fff;
}
.quote-form .invalid { border-color: #c0392b; }
.quote-form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--muted); }
.quote-form label.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent-deep); }
.form-note { margin: 0; font-size: .88rem; color: var(--muted); background: var(--paper); border-left: 3px solid var(--accent); padding: .7rem .9rem; border-radius: 0 8px 8px 0; }
.form-status { margin: 0; font-weight: 600; font-size: .95rem; }
.form-status.ok { color: #1f7a44; }
.form-status.err { color: #b03a2e; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer h4 { color: #fff; font-size: .78rem; font-family: var(--mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-tag { margin-top: 1rem; max-width: 36ch; }
.privacy { margin-top: 24px; }
.privacy summary { cursor: pointer; color: #fff; font-weight: 600; }
.privacy p { margin-top: 12px; max-width: 90ch; font-size: .88rem; }
.copy { margin: 24px 0 0; font-size: .82rem; color: rgba(255,255,255,.45); }

/* Focus */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Responsive */
@media (max-width: 1024px) {
  .family-featured { grid-template-columns: 1fr; padding: 28px; }
  .families { grid-template-columns: 1fr 1fr; }
  .families .family-card:first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .hide-sm { display: none; }
  .header-actions { margin-left: auto; }
  .nav {
    position: absolute; top: 79px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(14,39,64,.12);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--line); color: var(--ink); }
  .strengths { grid-template-columns: 1fr; margin-top: 64px; }
  .strengths li, .strengths li + li { padding: 20px 0; border-left: 0; }
  .strengths li + li { border-top: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 72px; }
  .section { padding: 72px 0; }
  .family-featured { padding: 20px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px 150px; grid-template-areas: "a b" "a c" "d d"; }
  .families { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .quote-form { padding: 22px; }
  .quote-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Logo dans le pied de page (sur fond blanc pour garder les couleurs) */
.footer-logo { background: #fff; border-radius: 12px; padding: 10px 16px 10px 12px; }
/* Mobile : logo un peu plus petit */
@media (max-width: 640px) {
  .brand img { height: 42px; }
  .brand-text strong { font-size: 1rem; }
  .brand-text small { font-size: .58rem; letter-spacing: .14em; }
  .header-inner { gap: 12px; }
}

/* Formulaire : pièces jointes */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.quote-form label.file-drop {
  position: relative; display: grid; gap: 2px; text-align: center; cursor: pointer;
  padding: 20px 16px; border: 2px dashed #b9c7d3; border-radius: 12px; background: var(--paper);
  transition: border-color .2s, background .2s;
}
.quote-form label.file-drop:hover, .quote-form label.file-drop:focus-within { border-color: var(--accent); background: #fff; }
.quote-form label.file-drop.invalid { border-color: #c0392b; }
.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-title { font-weight: 700; color: var(--ink); }
.file-title::before { content: "⇪ "; color: var(--accent); }
.file-hint { font-weight: 500; font-size: .82rem; color: var(--muted); }
.file-list { font-weight: 600; font-size: .85rem; color: var(--accent-deep); word-break: break-word; }

/* Pied de page : liens */
.footer-links { margin: 24px 0 0; }
.footer-links a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Page Mentions légales */
.legal-page { padding: 72px 0 96px; }
.legal-page .wrap { max-width: 860px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.legal-page h2 { font-size: 1.5rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.legal-page h3 { font-size: 1.05rem; margin-top: 1.6rem; }
.legal-page p, .legal-page li { color: #33465c; }
.legal-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .97rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }
.legal-table th { width: 38%; font-weight: 700; color: var(--ink); background: var(--paper); }
.legal-back { display: inline-block; margin-bottom: 1.4rem; font-weight: 700; color: var(--accent-deep); text-decoration: none; }
.legal-back::before { content: "← "; }
@media (max-width: 640px) {
  .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table th { border-bottom: 0; padding-bottom: 2px; }
}
.family-featured p.tagline { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin: -.2rem 0 1rem; }
