:root {
  --bg: #020617;
  --bg-elevated: #0f172a;
  --bg-soft: #111c32;
  --surface: rgba(15, 23, 42, 0.82);
  --surface-strong: rgba(15, 23, 42, 0.94);
  --surface-light: rgba(255, 255, 255, 0.04);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --heading: #f8fafc;
  --accent: #fb923c;
  --accent-strong: #f97316;
  --accent-soft: rgba(251, 146, 60, 0.14);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 28px 60px rgba(2, 6, 23, 0.38);
  --shadow-soft: 0 18px 45px rgba(2, 6, 23, 0.28);
  --radius: 1.25rem;
  --radius-xl: 2rem;
  --container: 1180px;
  --header-height: 88px;
  --whatsapp: #25d366;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.11), transparent 28%),
    radial-gradient(circle at right 20%, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #020617 0%, #0b1120 45%, #020617 100%);
  line-height: 1.65;
  min-height: 100vh;
  padding-top: var(--header-height);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

svg {
  display: block;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-main {
  position: relative;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--heading);
  color: var(--bg);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(2, 6, 23, 0.82);
  border-color: var(--border);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.28);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 1rem;
  padding: 0.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(226, 232, 240, 0.9));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
}

.brand-name {
  display: inline-flex;
  flex-direction: column;
  gap: 0.18rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.menu-toggle {
  position: relative;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.menu-toggle:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--heading);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 90;
  background: rgba(2, 6, 23, 0.52);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.main-nav {
  position: fixed;
  top: calc(var(--header-height) + 0.5rem);
  right: 0.75rem;
  bottom: 0.75rem;
  width: min(84vw, 360px);
  padding: 1rem;
  background:
    radial-gradient(circle at top, rgba(251, 146, 60, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: -24px 0 60px rgba(2, 6, 23, 0.42);
  transform: translateX(102%);
  transition: transform 0.32s ease;
  z-index: 95;
  overflow-y: auto;
}

.main-nav.open {
  transform: translateX(0);
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.main-nav li {
  width: 100%;
}

.main-nav a {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  border-color: rgba(251, 146, 60, 0.38);
  background: rgba(251, 146, 60, 0.08);
  transform: translateX(4px);
}

@media (max-width: 959px) {
  .main-nav {
    left: 0.75rem;
    right: 0.75rem;
    bottom: auto;
    width: auto;
    min-height: 20rem;
    height: min(31rem, calc(100dvh - var(--header-height) - 1.25rem));
    max-height: calc(100dvh - var(--header-height) - 1.25rem);
    padding: 1.1rem;
    border-radius: 1.35rem;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.52);
  }

  .main-nav ul {
    gap: 0.85rem;
  }

  .main-nav a {
    justify-content: center;
    min-height: 3.85rem;
    padding: 1rem 1.15rem;
    font-size: 0.98rem;
    letter-spacing: 0.12em;
    text-align: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.5rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 24px 38px rgba(249, 115, 22, 0.33);
}

.btn-outline,
.btn-secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--heading);
}

.btn-outline:hover,
.btn-secondary:hover {
  border-color: rgba(251, 146, 60, 0.4);
  color: var(--accent);
  background: rgba(251, 146, 60, 0.08);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid var(--border);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  pointer-events: none;
}

.hero::before {
  width: 28rem;
  height: 28rem;
  top: -8rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.2), transparent 68%);
}

.hero::after {
  width: 22rem;
  height: 22rem;
  bottom: -10rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 72%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.page-home .hero {
  padding: 7rem 0 6rem;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.74)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.75)),
    url("../../Chantier/1.jpeg") center/cover;
}

.page-home .hero .container {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.hero h1 {
  position: relative;
  margin: 0 0 1.25rem;
  max-width: 15ch;
  color: var(--heading);
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.page-home .hero h1::before {
  content: "";
  display: block;
  width: 5rem;
  height: 1px;
  margin-bottom: 1.6rem;
  background: linear-gradient(90deg, rgba(251, 146, 60, 0), rgba(251, 146, 60, 1), rgba(251, 146, 60, 0));
}

.hero p {
  margin: 0;
  max-width: 62ch;
  color: rgba(226, 232, 240, 0.9);
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.section {
  position: relative;
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 18%, rgba(251, 146, 60, 0.06), transparent 28%);
  pointer-events: none;
}

.section.soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.035));
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section h2,
.contact-box h2 {
  margin: 0 0 1rem;
  color: var(--heading);
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.08;
}

.section-intro {
  margin: 0 0 2.25rem;
  max-width: 56rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
}

.card,
.contact-box,
.faq details,
.kpi,
.gallery-card,
.process .step,
.map-wrap {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.card::before,
.contact-box::before,
.faq details::before,
.gallery-card::before,
.process .step::before,
.kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 8rem;
  height: 8rem;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.14), transparent 70%);
  pointer-events: none;
}

.card,
.contact-box {
  padding: 1.6rem;
}

.card:hover,
.gallery-card:hover,
.process .step:hover,
.contact-box:hover,
.kpi:hover {
  border-color: rgba(251, 146, 60, 0.28);
  transform: translateY(-4px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow);
}

.card h3,
.gallery-meta h3,
.process .step h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--heading);
  font-size: 1.15rem;
}

.card p,
.process .step p,
.faq p,
.footer-bottom,
.footer-links a,
.footer-grid p,
.contact-item,
.contact-item a,
.kpi p {
  color: var(--muted);
}

.card p,
.process .step p,
.kpi p {
  margin: 0;
}

.card-icon {
  width: 3.35rem;
  height: 3.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.18);
  color: var(--accent);
}

.card-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.4rem 1rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: var(--shadow-soft);
}

.stat strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 1.6rem;
}

.list li + li {
  margin-top: 0.7rem;
}

.list li::before {
  content: "";
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 0.35rem rgba(251, 146, 60, 0.12);
}

.kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.kpi {
  padding: 1.2rem 1.2rem 1.15rem;
}

.kpi strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--heading);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  position: relative;
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(2, 6, 23, 0.2);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.4);
}

.gallery-card img,
.gallery-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card:hover img,
.gallery-card:hover video {
  transform: scale(1.1);
}

/* Indicateur vidéo */
.gallery-card.is-video::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.5rem;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.gallery-card.is-video.is-playing::after {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.gallery-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.25rem 1.25rem;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.4) 60%, transparent 100%);
  z-index: 3;
}

.gallery-meta h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.faq details {
  padding: 1.15rem 1.2rem;
}

.faq details + details {
  margin-top: 1rem;
}

.faq summary {
  cursor: pointer;
  color: var(--heading);
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "-";
}

.faq p {
  margin: 0.9rem 0 0;
}

.process {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.process .step {
  padding: 1.5rem 1.4rem 1.4rem 4.5rem;
}

.process .step::after {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 1.35rem;
  left: 1.25rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.22);
  color: var(--accent);
  font-weight: 800;
}

.contact-box h2 {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-item + .contact-item {
  margin-top: 1rem;
}

.contact-item .ico {
  flex: none;
  min-width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.18);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.map-wrap {
  overflow: hidden;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 380px;
  border: 0;
  filter: grayscale(0.25) saturate(0.9) contrast(1.02);
}

.map-actions {
  margin: 1.25rem 0 0;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--heading);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--heading);
  padding: 0.95rem 1rem;
  font: inherit;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(251, 146, 60, 0.45);
  box-shadow: 0 0 0 0.25rem rgba(251, 146, 60, 0.12);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

select option {
  color: #0f172a;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.site-footer {
  margin-top: 0;
  padding: 4rem 0 5.5rem;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.08), transparent 25%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 1));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.footer-grid > div {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.03);
}

.footer-title {
  margin: 0 0 0.85rem;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.84rem;
}

.footer-links a {
  display: block;
  padding: 0.35rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-bottom {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sticky-mobile-cta {
  position: fixed;
  left: max(0.6rem, env(safe-area-inset-left));
  right: max(0.6rem, env(safe-area-inset-right));
  bottom: calc(0.6rem + env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  background: rgba(2, 6, 23, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.35);
  transition: transform 0.22s ease, opacity 0.22s ease;
  will-change: transform;
}

.sticky-mobile-cta.is-hidden {
  transform: translateY(130%);
  opacity: 0.25;
}

.sticky-mobile-cta a {
  min-height: 3.9rem;
  padding: 0.65rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  text-align: center;
  border-radius: 1rem;
  color: var(--heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
}

.sticky-mobile-cta a svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sticky-mobile-cta .call {
  color: #bfdbfe;
  border-color: rgba(191, 219, 254, 0.14);
}

.sticky-mobile-cta .wa {
  color: #d1fae5;
  border-color: rgba(37, 211, 102, 0.18);
  background: rgba(37, 211, 102, 0.12);
}

.sticky-mobile-cta .quote {
  color: #ffedd5;
  border-color: rgba(251, 146, 60, 0.18);
  background: rgba(251, 146, 60, 0.14);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 639px) {
  body {
    padding-bottom: 6rem;
  }

  .header-inner {
    gap: 0.65rem;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 4.25rem);
  }

  .brand-name {
    font-size: 0.92rem;
    letter-spacing: 0.12em;
  }

  .brand-sub {
    display: none;
  }

  .hero,
  .page-home .hero {
    padding: 4.4rem 0 4rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .cta-row {
    flex-direction: column;
  }

  .btn,
  .btn-primary,
  .btn-outline,
  .btn-secondary {
    width: 100%;
  }
}

@media (min-width: 640px) {
  /* Supprimé gallery-grid ici car géré par auto-fill */
}

@media (min-width: 860px) {
  .cards.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }

  .nav-backdrop {
    display: none;
  }

  .main-nav {
    position: static;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    overflow: visible;
  }

  .main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
  }

  .main-nav a {
    min-height: auto;
    padding: 0.7rem 0.85rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(248, 250, 252, 0.86);
    font-size: 0.76rem;
    letter-spacing: 0.22em;
  }

  .main-nav a:hover,
  .main-nav a.active {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--heading);
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.18);
  }

  .main-nav a.active {
    color: var(--accent);
  }

  .page-home .hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
  }

  .section {
    padding: 7.5rem 0;
  }

  .site-footer {
    padding-bottom: 2.4rem;
  }
}

@media (max-width: 639px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .gallery-card {
    border-radius: 0.85rem;
  }

  .gallery-meta {
    padding: 1.5rem 0.75rem 0.75rem;
  }

  .gallery-meta h3 {
    font-size: 0.8rem;
  }

  .gallery-card.is-video::after {
    width: 2.5rem;
    height: 2.5rem;
    background-size: 1rem;
  }
}

@media (min-width: 960px) {
  .sticky-mobile-cta {
    display: none;
  }
}
