/* =========================================================
   BLARAT Sàrl — feuille de style principale
   Mobile-first, sans framework.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --color-primary: #c41e3a;
  --color-primary-dark: #7a1420;
  --color-primary-light: #d9455c;
  --color-primary-shadow: #57101a;
  --color-accent: #d9a62b;
  --color-accent-dark: #a87a1e;
  --color-accent-light: #f2ce6e;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f2ee;
  --color-bg-dark: #7a1420;
  --color-text: #201314;
  --color-text-muted: #6b5a5a;
  --color-text-on-dark: #f5efe6;
  --color-text-on-dark-muted: #d6c2ae;
  --color-border: #ecdfd9;
  --color-success: #2e7d4f;
  --color-error: #b3261e;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(87, 16, 26, 0.08);
  --shadow-md: 0 8px 24px rgba(87, 16, 26, 0.1);
  --shadow-lg: 0 16px 40px rgba(87, 16, 26, 0.16);
  --header-height: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--color-primary-dark);
}

p {
  margin: 0 0 1em;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-primary-dark);
  color: var(--color-text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--color-text-on-dark);
}

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.8em;
}

.section--dark .eyebrow {
  color: var(--color-accent-light);
}

.lede {
  font-size: 1.08rem;
  color: var(--color-text-muted);
}

.section--dark .lede {
  color: var(--color-text-on-dark-muted);
}

.lede a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 2px;
}

.lede a:hover {
  color: var(--color-primary-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Utilitaires ---------- */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon-14 {
  width: 14px;
  height: 14px;
}

.icon-16 {
  width: 16px;
  height: 16px;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-6 {
  margin-bottom: 6px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mt-24 {
  margin-top: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
}

.btn-accent-outline {
  background: #fff;
  border-color: var(--color-accent-dark);
  color: var(--color-accent-dark);
}

.btn-accent-outline:hover {
  background: var(--color-accent-dark);
  color: var(--color-text-on-dark);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
}

.btn-primary:hover {
  background: var(--color-primary-light);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
}

.section--dark .btn-outline,
.hero .btn-outline,
.page-hero .btn-outline {
  color: var(--color-text-on-dark);
}

.section--dark .btn-outline:hover,
.hero .btn-outline:hover,
.page-hero .btn-outline:hover {
  background: #fff;
  color: var(--color-primary-dark);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  height: 48px;
  width: auto;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  line-height: 1.1;
}

.brand-name span {
  display: none;
  max-width: 230px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

@media (min-width: 480px) {
  .brand-name span {
    display: block;
  }
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.header-phone svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.header-phone-text {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-primary-dark);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-open .nav-toggle .icon-menu {
  display: none;
}

.nav-open .nav-toggle .icon-close {
  display: block;
}

.main-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  padding: 8px 0 40px;
  border-top: 1px solid var(--color-border);
}

.nav-open .main-nav {
  transform: translateX(0);
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-list > li {
  border-bottom: 1px solid var(--color-border);
}

.nav-list > li:not(.nav-cta) > a,
.nav-link-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary-dark);
  background: transparent;
  border: 0;
  text-align: left;
}

.nav-link-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.has-submenu.submenu-open .nav-link-toggle svg {
  transform: rotate(180deg);
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: var(--color-bg-alt);
}

.has-submenu.submenu-open .submenu {
  max-height: 300px;
}

.submenu a {
  display: block;
  padding: 14px 20px 14px 36px;
  font-size: 0.95rem;
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
}

.nav-cta {
  padding: 20px;
}

.current-page {
  color: var(--color-accent-dark) !important;
}

@media (min-width: 1024px) {
  .header-phone {
    width: auto;
    height: auto;
    gap: 8px;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6em 0.9em;
  }

  .header-phone svg {
    width: 18px;
    height: 18px;
  }

  .header-phone-text {
    display: inline;
  }

  .header-phone:hover {
    border-color: var(--color-accent);
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    inset: auto;
    transform: none;
    background: transparent;
    border-top: 0;
    padding: 0;
    overflow: visible;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .nav-list > li {
    border-bottom: 0;
    position: relative;
  }

  .nav-list > li:not(.nav-cta) > a,
  .nav-link-toggle {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    width: auto;
    white-space: nowrap;
  }

  .nav-list > li:not(.nav-cta) > a:hover,
  .nav-link-toggle:hover {
    background: var(--color-bg-alt);
  }

  .nav-link-toggle svg {
    width: 14px;
    height: 14px;
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-height: none;
    height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: opacity 0.18s ease;
    padding: 6px;
  }

  .has-submenu.submenu-open .submenu {
    height: auto;
    opacity: 1;
    visibility: visible;
  }

  .submenu a {
    border-top: 0;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
  }

  .submenu a:hover {
    background: var(--color-bg-alt);
  }

  .nav-cta {
    padding: 0 0 0 8px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--color-primary-shadow) 0%, var(--color-primary-dark) 45%, var(--color-primary) 100%);
  color: var(--color-text-on-dark);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(224, 123, 57, 0.18), transparent 45%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.45em 0.9em;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.2em;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent-light);
}

.hero h1 {
  color: var(--color-text-on-dark);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.4em;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 1em;
}

.hero-text {
  font-size: 1.02rem;
  color: var(--color-text-on-dark-muted);
  max-width: 54ch;
  text-align: justify;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.6em;
}

/* ---------- Page hero (sous-pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--color-primary-shadow) 0%, var(--color-primary-dark) 50%, var(--color-primary) 100%);
  color: var(--color-text-on-dark);
  padding: 48px 0;
}

.page-hero h1 {
  color: var(--color-text-on-dark);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 0.3em;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 1em;
}

.breadcrumb a:hover {
  color: var(--color-text-on-dark);
}

.page-hero-text {
  color: var(--color-text-on-dark-muted);
  max-width: 62ch;
  font-size: 1.02rem;
  text-align: justify;
}

/* ---------- Cards: services ---------- */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}

a.service-card:hover,
a.service-card:focus-visible {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.service-card-icon svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  margin-bottom: 0.3em;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--color-text-muted);
  margin-bottom: 0.5em;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-accent-dark);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

a.service-card:hover .service-card-link svg {
  transform: translateX(3px);
}

@media (min-width: 720px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Pest list grid ---------- */
.pest-category {
  margin-bottom: 48px;
}

.pest-category:last-child {
  margin-bottom: 0;
}

.pest-category-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.pest-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  flex-shrink: 0;
}

.pest-category-icon svg {
  width: 26px;
  height: 26px;
}

.pest-category-head h2 {
  margin: 0;
  font-size: 1.4rem;
}

.pest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 500;
}

.pest-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent-dark);
  flex-shrink: 0;
}

.method-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.method-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.method-chip svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent-dark);
}

@media (min-width: 580px) {
  .pest-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .pest-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Feature list (prevention) ---------- */
.feature-list {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.feature-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  flex-shrink: 0;
}

.feature-item-icon svg {
  width: 24px;
  height: 24px;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3em;
}

.feature-item p {
  color: var(--color-text-muted);
  margin: 0;
}

@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Specs table (nacelles) ---------- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.specs-table--narrow {
  max-width: 640px;
  margin: 0 auto;
}

.specs-table caption {
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 16px 18px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.specs-table th,
.specs-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: 0;
}

.specs-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  width: 55%;
}

.specs-table td {
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: right;
}

.included-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.included-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.included-list svg {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Trust / certification ---------- */
.trust-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}

.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.trust-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-accent-light);
  flex-shrink: 0;
}

.trust-item-icon svg {
  width: 24px;
  height: 24px;
}

.trust-item h3 {
  color: var(--color-text-on-dark);
  font-size: 1.05rem;
  margin-bottom: 0.25em;
}

.trust-item p {
  color: var(--color-text-on-dark-muted);
  margin: 0;
  font-size: 0.92rem;
}

@media (min-width: 720px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Clients (a-propos) ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.client-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.client-chip svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.client-chip span {
  font-weight: 600;
  font-size: 0.92rem;
}

@media (min-width: 640px) {
  .client-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .client-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Timeline (a-propos) ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
}

.timeline-item {
  display: flex;
  gap: 18px;
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-accent-dark);
  min-width: 64px;
  flex-shrink: 0;
}

.timeline-item p {
  margin: 0;
  color: var(--color-text-muted);
}

/* ---------- Two column layout ---------- */
.two-col {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.info-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.info-card h3 {
  font-size: 1.1rem;
}

/* ---------- Contact ---------- */
.contact-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-block:last-child {
  margin-bottom: 0;
}

.contact-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-block-icon svg {
  width: 22px;
  height: 22px;
}

.contact-block h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.3em;
}

.contact-block p,
.contact-block a {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.contact-block a:hover {
  color: var(--color-accent-dark);
}

.map-embed {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-embed iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

/* ---------- Form ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.8em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--color-primary);
  background: #fff;
}

.form-row textarea {
  resize: vertical;
  min-height: 130px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.form-status.is-visible {
  display: flex;
}

.form-status svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.form-status--success {
  background: #e7f5ec;
  color: var(--color-success);
}

.form-status--error {
  background: #fbeae9;
  color: var(--color-error);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  color: var(--color-text-on-dark);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.cta-banner h2 {
  color: var(--color-text-on-dark);
  margin-bottom: 0.2em;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--color-accent-dark);
}

.cta-banner .btn-primary:hover {
  background: var(--color-bg-alt);
}

@media (min-width: 760px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0 24px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary-dark);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-item summary:hover {
  color: var(--color-primary);
}

.faq-item-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent-dark);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-item-icon {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0 0 20px;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark-muted);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 40px;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-on-dark);
}

.footer-col h3 {
  color: var(--color-text-on-dark);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a:hover {
  color: var(--color-text-on-dark);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
  }
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- Hero aside (stat card, remplace une photo) ---------- */
.hero-aside {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(4px);
}

.stat-big {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3rem;
  color: var(--color-text-on-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--color-text-on-dark-muted);
  margin-top: 0.5em;
  padding-bottom: 1.4em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 1.4em;
}

.hero-aside-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-aside-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--color-text-on-dark-muted);
}

.hero-aside-list svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent-light);
  flex-shrink: 0;
  margin-top: 1px;
}

.hero-aside-list strong {
  display: block;
  color: var(--color-text-on-dark);
  font-size: 0.95rem;
}

/* ---------- Generic content widths ---------- */
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---------- Apparition au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   Page Réalisations
   ========================================================= */

/* ---------- Barre de filtres ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

/* ---------- Grille de projets ---------- */
.realisations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .realisations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .realisations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.realisation-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  padding: 0;
  font: inherit;
  color: inherit;
}

.realisation-card:hover,
.realisation-card:focus-visible {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.realisation-card-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--color-border);
}

.realisation-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.realisation-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.realisation-card-photo span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(87, 16, 26, 0.72);
  color: var(--color-text-on-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

.realisation-card-body {
  padding: 18px 20px 20px;
}

.realisation-card-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--color-bg-alt);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.realisation-card-body h3 {
  font-size: 1.02rem;
  margin: 0 0 6px;
}

.realisation-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-top: 4px;
}

.realisation-card-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.15s ease;
}

.realisation-card:hover .realisation-card-cta svg {
  transform: translateX(3px);
}

.realisations-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 48px 20px;
  grid-column: 1 / -1;
}

/* ---------- Modale ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 20, 17, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.2s ease;
}

.modal-overlay.is-open .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  z-index: 2;
}

.modal-close:hover {
  background: var(--color-border);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--color-bg-alt);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.modal-dialog h2 {
  font-size: 1.3rem;
  margin: 0 0 16px;
  padding-right: 40px;
}

.modal-dialog p {
  color: var(--color-text-muted);
  margin: 16px 0 0;
}

/* ---------- Curseur de comparaison avant/après ---------- */
.compare-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.compare-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.compare-after-clip {
  position: absolute;
  inset: 0;
}

body.modal-open {
  overflow: hidden;
}

.compare-label {
  position: absolute;
  top: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-on-dark);
  background: rgba(87, 16, 26, 0.72);
  padding: 4px 11px;
  border-radius: 999px;
}

.compare-label--before {
  left: 12px;
}

.compare-label--after {
  right: 12px;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(87, 16, 26, 0.2);
  cursor: ew-resize;
  touch-action: none;
}

.compare-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
  cursor: ew-resize;
  touch-action: none;
}

.compare-handle-btn svg {
  width: 20px;
  height: 20px;
}

.compare-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* ---------- Page 404 ---------- */
.error-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-accent-light);
  margin-bottom: 1.4em;
}

.error-icon svg {
  width: 40px;
  height: 40px;
}

.error-hero .hero-badge {
  margin-bottom: 1em;
}

.error-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.error-hero .page-hero-text {
  margin: 0 auto 1.8em;
}
