/* ==========================================================================
   TOUTRAVO — feuille de style principale
   Charte : marine #0B2C52 / or #F2B400 / fond #F7F8FA / texte #1F2933
   ========================================================================== */

:root {
  --navy: #0B2C52;
  --navy-dark: #061C36;
  --navy-soft: #EEF3F9;
  --navy-line: rgba(255, 255, 255, 0.08);
  --gold: #F2B400;
  --gold-hover: #FFCB3D;
  --gold-soft: #FFF6D6;
  --bg: #F7F8FA;
  --white: #FFFFFF;
  --text: #1F2933;
  --muted: #52606D;
  --border: #E3E7EC;
  --success: #1F7A4D;
  --error: #B42318;

  --font-display: "Poppins", "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Work Sans", "Segoe UI", Arial, sans-serif;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(11, 44, 82, 0.06), 0 8px 24px rgba(11, 44, 82, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 44, 82, 0.16);
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25em; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--navy-dark); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.85rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-dark); color: rgba(255,255,255,0.85);
  font-size: 0.82rem; padding-block: 6px;
}
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold-hover); }
.topbar span + span::before { content: "·"; margin-inline: 0.6rem; opacity: 0.5; }
@media (max-width: 767px) { .topbar { display: none; } }

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(11,44,82,0.02);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo svg { height: 40px; width: auto; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav a {
  display: block; padding: 0.5rem 0.6rem; font-weight: 500; font-size: 0.9rem;
  color: var(--text); text-decoration: none; border-radius: var(--radius);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); background: var(--navy-soft); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone {
  display: none; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
  text-decoration: none; white-space: nowrap;
}
.header-phone svg { width: 20px; height: 20px; }
.header-phone:hover { color: var(--navy-dark); }
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: none; border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header .container { max-width: 1280px; }
.header-actions .btn-devis { display: none; padding-inline: 1.2rem; }
@media (min-width: 768px) {
  .header-phone { display: inline-flex; }
  .header-actions .btn-devis { display: inline-flex; }
}
@media (min-width: 1300px) {
  .nav { display: block; }
  .burger { display: none; }
}
/* Menu mobile */
.mobile-nav {
  display: none; background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: var(--header-h); z-index: 49; box-shadow: var(--shadow);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem 0; }
.mobile-nav a {
  display: block; padding: 0.85rem 20px; text-decoration: none; font-weight: 500;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.mobile-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.mobile-nav .mobile-cta { padding: 1rem 20px; display: grid; gap: 0.6rem; }

/* Barre flottante mobile */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96); backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
}
.mobile-bar .btn { width: 100%; padding-inline: 0.75rem; }
@media (min-width: 768px) { .mobile-bar { display: none; } }
@media (max-width: 767px) { body { padding-bottom: 76px; } }

/* ---------- Sections ---------- */
.section { padding-block: 3.75rem; }
.section-alt { background: var(--white); border-block: 1px solid var(--border); }
.section-navy { background: var(--navy); color: rgba(255,255,255,0.88); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--gold); }
.section-navy a { color: #fff; }
@media (max-width: 767px) { .section { padding-block: 3rem; } }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .lead { font-size: 1.1rem; color: var(--muted); }
.eyebrow {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy);
  margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; }
.section-navy .eyebrow::before { background: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  padding-block: 4rem 5rem;
}
.hero::before {
  /* trame « plan d'architecte » */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--navy-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.25));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.25));
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 55%; height: 140%;
  background: radial-gradient(closest-side, rgba(242,180,0,0.14), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 992px) { .hero .container { grid-template-columns: 1.15fr 1fr; } }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: rgba(255,255,255,0.82); max-width: 560px; font-size: 1.15rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.8rem; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin: 1.8rem 0 0; padding: 0; list-style: none;
  font-size: 0.9rem; color: rgba(255,255,255,0.8);
}
.hero-badges li { display: flex; align-items: center; gap: 0.45rem; }
.hero-badges svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem;
}
.hero-eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--gold); }
.hero-visual { position: relative; }
.hero-visual .ph { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-card {
  position: absolute; left: -12px; bottom: -18px;
  background: #fff; color: var(--text); border-radius: var(--radius);
  padding: 0.9rem 1.1rem; box-shadow: var(--shadow-lg); display: flex; gap: 0.8rem; align-items: center;
  max-width: 300px;
}
.hero-card strong { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; line-height: 1.2; }
.hero-card small { color: var(--muted); font-size: 0.82rem; }
.hero-card .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; flex: none; }
.hero-card .ico svg { width: 22px; height: 22px; color: var(--navy); }
@media (max-width: 767px) { .hero-card { position: static; margin-top: 1rem; max-width: none; } }

/* Hero de page intérieure */
.page-hero { background: var(--navy); color: #fff; padding-block: 3.2rem 3.5rem; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--navy-line) 1px, transparent 1px), linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 0.8rem; max-width: 820px; }
.page-hero .lead { color: rgba(255,255,255,0.82); max-width: 720px; }
.breadcrumb { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-hover); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }

/* ---------- Placeholders photo (à remplacer par photos chantiers) ---------- */
.ph {
  position: relative; overflow: hidden; width: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(11,44,82,0.05) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #DCE4EE, #C3CFDD);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--navy); display: grid; place-items: center; text-align: center;
  font-size: 0.8rem; font-weight: 500;
}
.ph::after {
  content: attr(data-label);
  padding: 0.35rem 0.7rem; background: rgba(255,255,255,0.85); border-radius: 4px;
  max-width: 85%;
}
.ph.dark { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 12px, transparent 12px 24px), linear-gradient(160deg, #163B66, #0B2C52); color: #fff; }
.ph.dark::after { background: rgba(6,28,54,0.75); color: #fff; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.has-img::after { display: none; }

/* ---------- Chiffres clés ---------- */
.stats { background: var(--white); border-block: 1px solid var(--border); }
.stats .container { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .stats .container { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.8rem 1rem; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
@media (max-width: 767px) { .stat:nth-child(2n) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }
.stat strong {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem;
  color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums;
}
.stat strong span { color: var(--gold); }
.stat small { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card h3 { margin: 0; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card .ico {
  width: 48px; height: 48px; border-radius: var(--radius); background: var(--navy-soft);
  display: grid; place-items: center; color: var(--navy);
}
.card .ico svg { width: 26px; height: 26px; }
.card .more { margin-top: auto; padding-top: 0.5rem; font-weight: 600; font-size: 0.92rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.card .more::after { content: "→"; transition: transform 0.2s; }
.card .more:hover::after { transform: translateX(3px); }
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card.hover:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #CBD5E1; }
.card-img { width: calc(100% + 3.2rem); margin: -1.6rem -1.6rem 0.5rem; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card .muted { font-size: 0.88rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.card-navy { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,0.88); }
.card-navy h3 { color: #fff; }
.card-navy p { color: rgba(255,255,255,0.8); }
.card-navy .ico { background: rgba(255,255,255,0.1); color: var(--gold); }

/* Liste "pourquoi nous" */
.why { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .why { grid-template-columns: repeat(2, 1fr); } }
.why-item { display: flex; gap: 1rem; }
.why-item .num {
  flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--gold);
  color: var(--navy-dark); font-family: var(--font-display); font-weight: 800; display: grid; place-items: center;
}
.why-item .num svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.why-item p { color: var(--muted); font-size: 0.95rem; }

/* Split (texte + visuel) */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.split .ph { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); }
.split.split-seul { grid-template-columns: 1fr; max-width: 760px; }
.split.split-seul.reverse > :first-child { order: 0; }
.split-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23061C36' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Réalisations ---------- */
.projects { display: grid; gap: 1.35rem; }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.project .ph { aspect-ratio: 3 / 2; border: 0; border-radius: 0; }
.project-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--navy-soft); }
.project-body .pourquoi { font-size: 0.86rem; color: var(--muted); padding: 0.55rem 0 0 0.7rem; border-left: 3px solid var(--gold); margin-top: 0.15rem; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.45rem; }
.project-body h3 { font-size: 1.05rem; margin: 0; }
.project-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.tag {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  background: var(--navy-soft); color: var(--navy); letter-spacing: 0.02em;
}
.tag.gold { background: var(--gold-soft); color: #7A5A00; }

/* Avant / après */
.ba {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 0; user-select: none;
  --pos: 50%;
}
.ba .ba-after, .ba .ba-before { position: absolute; inset: 0; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba .ph { position: absolute; inset: 0; height: 100%; border: 0; border-radius: 0; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--gold); transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle::after {
  content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy-dark);
  display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; box-shadow: var(--shadow);
}
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.ba-label {
  position: absolute; top: 10px; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; background: rgba(6,28,54,0.8); color: #fff; pointer-events: none;
}
.ba-label.before { left: 10px; } .ba-label.after { right: 10px; background: var(--gold); color: var(--navy-dark); }

/* Filtres réalisations */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filters button {
  padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--border); background: var(--white);
  font: inherit; font-size: 0.88rem; font-weight: 500; color: var(--text); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters button:hover { border-color: var(--navy); }

/* ---------- Partenaires ---------- */
.partners { padding-block: 2.75rem; background: var(--white); border-block: 1px solid var(--border); }
.partners p.eyebrow { justify-content: center; margin-bottom: 1.75rem; }
.partners p.eyebrow::before { display: none; }
.partners ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1.75rem 3rem;
}
.partners li { display: grid; place-items: center; height: 52px; }
.partners li img {
  max-height: 100%; max-width: 165px; width: auto; object-fit: contain;
  /* Les logos partenaires sont désaturés au repos pour ne pas concurrencer la
     charte marine/or, et reprennent leurs couleurs au survol. */
  filter: grayscale(1); opacity: 0.6;
  transition: filter 0.25s ease, opacity 0.25s ease;
  /* Repli lisible tant que le fichier image n'est pas déposé */
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; color: #8A97A5;
}
.partners li:hover img, .partners li:focus-within img { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .partners li img { filter: none; opacity: 0.85; } }
/* Logo attendu mais pas encore fourni : libellé texte de repli */
.partners li.placeholder {
  min-width: 140px; padding-inline: 1.2rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: 0.04em;
  color: #8A97A5; border: 1px dashed var(--border); border-radius: var(--radius);
}
@media (max-width: 600px) {
  .partners ul { gap: 1.5rem 2rem; }
  .partners li { height: 40px; }
  .partners li img { max-width: 120px; }
}

/* ---------- Témoignages ---------- */
.reviews { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; }
.review .stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.review blockquote { margin: 0; font-size: 0.97rem; color: var(--text); }
.review footer { margin-top: auto; font-size: 0.86rem; color: var(--muted); }
.review footer strong { color: var(--navy); display: block; }
.rating-summary { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.4rem; font-size: 0.95rem; color: var(--muted); }
.rating-summary strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); }

/* ---------- Zones ---------- */
.zones { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 992px) { .zones { grid-template-columns: 1.1fr 1fr; } }
.zone-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1rem; }
@media (min-width: 640px) { .zone-list { grid-template-columns: repeat(3, 1fr); } }
.zone-list li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.95rem; }
.zone-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.zone-list a { text-decoration: none; }
.zone-list a:hover { text-decoration: underline; }
.zone-map { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--white); padding: 1rem; }
.zone-map svg { width: 100%; height: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.7rem; }
.faq summary {
  cursor: pointer; padding: 1rem 3rem 1rem 1.2rem; font-family: var(--font-display); font-weight: 700; color: var(--navy);
  list-style: none; position: relative; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft); color: var(--navy);
  display: grid; place-items: center; font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 1.2rem 1.2rem; color: var(--muted); font-size: 0.96rem; }

/* ---------- Formulaire ---------- */
.form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
@media (max-width: 640px) { .form-wrap { padding: 1.4rem; } }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--navy); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; font-size: 0.97rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,44,82,0.12); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.field input[type="file"] { padding: 0.55rem; background: #fff; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field .err { display: none; font-size: 0.82rem; color: var(--error); margin-top: 0.3rem; }
.field.is-invalid .err { display: block; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-success {
  display: none; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: #E8F5EE; border: 1px solid #B9E3CB; color: var(--success);
}
.form-success.is-visible { display: block; }
.form-error {
  margin-top: 1rem; padding: 0.9rem 1.2rem; border-radius: var(--radius);
  background: #FDECEA; border: 1px solid #F3C3BE; color: var(--error); font-size: 0.92rem;
}
.hp { position: absolute; left: -9999px; }

.aside-contact { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-line { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-line .ico { flex: none; width: 44px; height: 44px; border-radius: var(--radius); background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; }
.contact-line .ico svg { width: 22px; height: 22px; }
.contact-line strong { display: block; font-family: var(--font-display); color: var(--navy); }
.contact-line a { text-decoration: none; font-weight: 500; }
.contact-line a:hover { text-decoration: underline; }
.contact-line small { color: var(--muted); display: block; }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: var(--navy); color: #fff; padding-block: 3.5rem; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--navy-line) 1px, transparent 1px), linear-gradient(90deg, var(--navy-line) 1px, transparent 1px); background-size: 48px 48px; }
.cta-band .container { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin: 0 0 0.4rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,0.8); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Process (étapes) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 2rem;
  color: var(--gold); line-height: 1; display: block; margin-bottom: 0.6rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.steps p { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* ---------- Article / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose p, .prose li { font-size: 1.02rem; }
.prose .ph, .prose .article-img { aspect-ratio: 3 / 2; margin: 1.5rem 0; border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--gold); background: var(--white); color: var(--navy); font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1.2rem 0; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); }
.prose th { color: var(--navy); font-family: var(--font-display); font-size: 0.85rem; }
.table-wrap { overflow-x: auto; }
.article-meta { font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.article-layout { display: grid; gap: 3rem; }
@media (min-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.2rem; }
.sidebar .card h3 { font-size: 1.1rem; }
.sidebar .card ul { margin: 0; padding-left: 1.1em; font-size: 0.93rem; }
.sidebar .card li { margin-bottom: 0.4rem; }

/* Blog cards */
.post { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post .ph, .post-img { aspect-ratio: 3 / 2; border: 0; border-radius: 0; width: 100%; object-fit: cover; display: block; }
.post-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.post-body h3 { margin: 0; font-size: 1.1rem; }
.post-body p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.post-body .article-meta { margin-top: auto; padding-top: 0.5rem; }
.post:hover { box-shadow: var(--shadow); }
.post:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* Segments clients (liste horizontale) */
.segments { display: grid; gap: 1rem; }
@media (min-width: 640px) { .segments { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .segments { grid-template-columns: repeat(4, 1fr); } }
.segment { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--navy); font-family: var(--font-display); font-weight: 700; transition: border-color 0.2s, box-shadow 0.2s; }
.segment:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.segment .ico { width: 40px; height: 40px; border-radius: var(--radius); background: var(--gold-soft); display: grid; place-items: center; flex: none; }
.segment .ico svg { width: 22px; height: 22px; }

/* ---------- Trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.trust li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; color: var(--navy); }
.trust svg { width: 20px; height: 20px; color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.78); padding-block: 3.5rem 2rem; font-size: 0.92rem; }
.footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer a:hover { color: var(--gold-hover); }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer .logo svg { height: 38px; }
.footer .logo-light .wm { fill: #fff; }
.footer-brand p { margin-top: 1rem; max-width: 340px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 1.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer .phone-big { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--gold); }
.footer .phone-big:hover { color: var(--gold-hover); }
.footer .phone-big svg { width: 22px; height: 22px; }

/* ---------- Formulaire de demande par étapes (onglets) ---------- */
.etapes-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 1.75rem; counter-reset: etape; }
.etapes-nav button {
  counter-increment: etape; position: relative;
  padding: 0.75rem 0.5rem 0.65rem; border: 0; border-bottom: 3px solid var(--border); background: transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--muted); cursor: pointer; text-align: left;
  transition: color 0.2s, border-color 0.2s;
}
.etapes-nav button::before { content: counter(etape); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 0.45rem; border-radius: 50%; background: var(--border); color: var(--muted); font-size: 0.72rem; }
.etapes-nav button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); }
.etapes-nav button[aria-selected="true"]::before { background: var(--gold); color: var(--navy-dark); }
.etapes-nav button.est-fait { color: var(--navy); border-bottom-color: var(--navy); }
.etapes-nav button.est-fait::before { background: var(--navy); color: #fff; content: "✓"; }
.etapes-nav button:disabled { cursor: default; }
@media (max-width: 640px) { .etapes-nav button span { display: none; } .etapes-nav button { text-align: center; } .etapes-nav button::before { margin: 0; } }
.etape { display: none; }
.etape.est-active { display: block; }
.etape > h2 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.etape > .lead { font-size: 1rem; margin-bottom: 1.4rem; }
.etape-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.8rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.etape-actions .form-note { flex-basis: 100%; }

/* Tuiles de choix d'intervention */
.tuiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
@media (min-width: 640px) { .tuiles { grid-template-columns: repeat(3, 1fr); } }
.tuile { position: relative; }
.tuile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tuile label {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; height: 100%;
  padding: 0.9rem 0.9rem 0.8rem; border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--white);
  font-weight: 600; font-size: 0.93rem; color: var(--navy); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.tuile label small { font-weight: 400; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.tuile label svg { width: 28px; height: 28px; color: var(--navy); }
.tuile label:hover { border-color: #B9C4D2; }
.tuile input:checked + label { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(242,180,0,0.25); }
.tuile input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Résultat de la vérification de zone */
.zone-ok, .zone-ko { display: none; margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius); font-size: 0.93rem; }
.zone-ok.est-visible, .zone-ko.est-visible { display: block; }
.zone-ok { background: #E8F5EE; border: 1px solid #B9E3CB; color: var(--success); }
.zone-ko { background: #FDECEA; border: 1px solid #F3C3BE; color: var(--error); }
.zone-ko strong { display: block; margin-bottom: 0.3rem; }
.zone-ko ul { margin: 0.5rem 0 0; padding-left: 1.2em; color: var(--text); columns: 2; }

/* Questions spécifiques à un métier */
.pour-metier { display: none; }
.pour-metier.est-visible { display: contents; }
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1rem; }
@media (min-width: 640px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.cases label { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; font-size: 0.92rem; color: var(--text); margin: 0; }
.cases input { width: 17px; height: 17px; accent-color: var(--navy); }
.recap { background: var(--navy-soft); border-radius: var(--radius); padding: 0.9rem 1.1rem; font-size: 0.92rem; margin-bottom: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.recap span { color: var(--muted); }
.recap strong { color: var(--navy); }

/* Démarreur de demande (accueil) */
.demarreur { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.demarreur .tuiles { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px) { .demarreur .tuiles { grid-template-columns: repeat(3, 1fr); } }
.demarreur .tuile label { padding: 0.7rem 0.75rem; font-size: 0.85rem; gap: 0.35rem; }
.demarreur .tuile label svg { width: 22px; height: 22px; }
.demarreur-bas { display: grid; gap: 0.8rem; margin-top: 1rem; }
@media (min-width: 560px) { .demarreur-bas { grid-template-columns: 1fr auto; align-items: end; } }

/* ================= Visuels : un seul rapport, des tailles plafonnées =========
   RAPPORT : toutes les photos du site sont en 3/2. Une photo portrait ou
   panoramique est recadrée par object-fit, jamais déformée.
   TAILLE : chaque visuel a une largeur maximale, pour qu'il illustre le texte
   sans l'écraser. Les fichiers font 760 px de large : ils restent nets sur
   écran haute densité tout en pesant peu.
   Pour ajuster l'échelle de tout le site, modifier les --largeur-* ci-dessous. */
:root {
  --largeur-hero: 460px;    /* visuel d'accueil */
  --largeur-split: 400px;   /* pages métiers et clients */
  --largeur-carte: 100%;    /* cartes : suivent leur colonne */
}
.hero-img, .split-img, .card-img, .project-img, .post-img, .article-img,
.ph, .ba { aspect-ratio: 3 / 2; }
img.hero-img, img.split-img, img.card-img, img.project-img, img.post-img, img.article-img {
  object-fit: cover; width: 100%; height: auto;
}
.hero-img, .hero-visual .ph { max-width: var(--largeur-hero); margin-left: auto; }
.split-img, .split .ph { max-width: var(--largeur-split); margin-inline: auto; }
.prose .article-img, .prose .ph { max-width: 520px; margin-inline: auto; }
/* Le visuel passe sous le texte et s'élargit un peu sur mobile */
@media (max-width: 991px) {
  .hero-img, .hero-visual .ph, .split-img, .split .ph { max-width: 520px; margin-inline: auto; }
}

/* ---------- Utilitaires ---------- */
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.center-cta { text-align: center; margin-top: 2.5rem; }
.inline-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.inline-list a { display: inline-block; padding: 0.35rem 0.75rem; border: 1px solid var(--border); border-radius: 999px; background: var(--white); font-size: 0.88rem; text-decoration: none; }
.inline-list a:hover { border-color: var(--navy); }
.notice { background: var(--gold-soft); border: 1px solid #F5D77A; border-radius: var(--radius); padding: 1rem 1.2rem; font-size: 0.93rem; }

/* Capture du logiciel (fiche d'intervention) */
.capture { margin: 0; display: grid; gap: 0.6rem; max-width: 460px; margin-inline: auto; }
.capture img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); background: #fff; }
.capture figcaption { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.steps.steps-compact { margin-top: 1.2rem; grid-template-columns: 1fr; gap: 0.8rem; }
.steps.steps-compact li { padding: 1rem 1.2rem 1rem 3.8rem; }
.steps.steps-compact li::before { position: absolute; left: 1.1rem; top: 1rem; font-size: 1.5rem; margin: 0; }
