/* ===== Design system — chantier / maçonnerie ===== */
:root {
  color-scheme: light;

  --orange: #e85d04;
  --orange-dark: #c44d02;
  --orange-glow: rgba(232, 93, 4, 0.15);
  --concrete: #eef0f3;
  --parpaing: #9ca3af;

  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --bg-card: #ffffff;
  --bg-dark: #14161a;
  --bg-dark-soft: #1c1f26;

  --text: #1a1d22;
  --text-muted: #5c6573;
  --border: #dfe3e8;
  --border-strong: #c8ced6;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.12);

  --header-h: 3.75rem;
  --wrap: 68rem;
  --radius: 8px;
  --font-brand: "Plus Jakarta Sans", system-ui, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;

  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-glow: rgba(249, 115, 22, 0.12);
  --bg: #111318;
  --bg-alt: #161920;
  --bg-card: #1c2028;
  --bg-dark: #0a0b0e;
  --bg-dark-soft: #12151a;

  --text: #eef0f3;
  --text-muted: #9aa3b2;
  --border: #2a303a;
  --border-strong: #363d4a;

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ===== Motifs chantier ===== */
.brick-pattern {
  background-image:
    linear-gradient(90deg, transparent 49%, rgba(0, 0, 0, 0.06) 49%, rgba(0, 0, 0, 0.06) 51%, transparent 51%),
    linear-gradient(0deg, transparent 24%, rgba(0, 0, 0, 0.05) 24%, rgba(0, 0, 0, 0.05) 26%, transparent 26%);
  background-size: 3rem 1.5rem;
}

[data-theme="dark"] .brick-pattern {
  background-image:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.04) 49%, rgba(255, 255, 255, 0.04) 51%, transparent 51%),
    linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.03) 24%, rgba(255, 255, 255, 0.03) 26%, transparent 26%);
}

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 3px solid var(--orange);
  box-shadow: var(--shadow-sm);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.logo img {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo__text {
  font-family: var(--font-brand);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo__kan { color: var(--orange); }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-desktop a:not(.btn):hover { color: var(--orange); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-glow);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 1.125rem;
  height: 1.125rem;
}

.theme-toggle__moon { display: none; }

[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }

.menu-btn {
  position: relative;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.menu-btn span {
  position: absolute;
  left: 0.5rem;
  width: 1.375rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s, top 0.2s;
}

.menu-btn span:nth-child(1) { top: 0.75rem; }
.menu-btn span:nth-child(2) { top: 1.1875rem; }
.menu-btn span:nth-child(3) { top: 1.625rem; }

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  top: 1.1875rem;
  transform: rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  top: 1.1875rem;
  transform: rotate(-45deg);
}

.menu-panel[hidden] { display: none !important; }

.menu-panel {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 150;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  overflow-y: auto;
}

.menu-panel__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-panel__nav a:not(.btn) {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.menu-panel__nav .btn { margin-top: 1rem; }

body.menu-open { overflow: hidden; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
  .menu-panel { display: none !important; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--orange);
  border-radius: var(--radius);
  border: 2px solid var(--orange);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--outline:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn--block {
  width: 100%;
  text-align: center;
}

/* ===== Typo sections ===== */
.tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-head { margin-bottom: 2rem; }

.section-head--compact { margin-bottom: 1rem; }

.section-head--center { text-align: center; }

.section-head--center .section-desc { margin-inline: auto; }

.section-head h2 {
  margin-top: 0.375rem;
  font-family: var(--font-brand);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head--light h2 { color: #fff; }

.section-desc {
  margin-top: 0.625rem;
  max-width: 32rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.section-head--light .section-desc { color: rgba(255, 255, 255, 0.65); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 2.5rem;
  background: var(--bg-alt);
  overflow: hidden;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero__pattern.brick-pattern,
.hero__pattern {
  background-image:
    linear-gradient(90deg, transparent 49%, rgba(0, 0, 0, 0.04) 49%, rgba(0, 0, 0, 0.04) 51%, transparent 51%),
    linear-gradient(0deg, transparent 24%, rgba(0, 0, 0, 0.03) 24%, rgba(0, 0, 0, 0.03) 26%, transparent 26%);
  background-size: 3rem 1.5rem;
}

[data-theme="dark"] .hero__pattern {
  background-image:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.03) 49%, rgba(255, 255, 255, 0.03) 51%, transparent 51%),
    linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.02) 24%, rgba(255, 255, 255, 0.02) 26%, transparent 26%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
  }
}

.hero h1 {
  margin-top: 0.5rem;
  font-family: var(--font-brand);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin-top: 0.875rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 28rem;
}

.hero__btns {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

@media (min-width: 480px) {
  .hero__btns {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}

.hero__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--orange);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  border-radius: 3px;
}

/* ===== Sections ===== */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section--services {
  background: var(--bg);
}

.section--dark {
  background: var(--bg-dark);
}

.section--contact {
  background: var(--bg-dark-soft);
  color: #fff;
}

/* ===== Services — cartes parpaing ===== */
.services {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .services { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  position: relative;
  padding: 1.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4rem;
  height: 100%;
  opacity: 0.035;
  background-image:
    linear-gradient(90deg, transparent 48%, rgba(0, 0, 0, 0.5) 48%, rgba(0, 0, 0, 0.5) 52%, transparent 52%),
    linear-gradient(0deg, transparent 22%, rgba(0, 0, 0, 0.4) 22%, rgba(0, 0, 0, 0.4) 28%, transparent 28%);
  background-size: 100% 0.75rem;
  pointer-events: none;
}

[data-theme="dark"] .service-card::before { opacity: 0.06; }

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--orange-dark);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  color: var(--orange);
  background: var(--orange-glow);
  border: 1px solid rgba(232, 93, 4, 0.2);
  border-radius: var(--radius);
}

[data-theme="dark"] .service-card__icon {
  border-color: rgba(249, 115, 22, 0.25);
}

.service-card__icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.service-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 0.625rem; }
}

@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, transform 0.2s;
}

.gallery__item:hover {
  border-color: var(--orange);
  transform: scale(1.02);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: filter 0.2s;
}

.gallery__item:hover img {
  filter: brightness(1.08);
}

/* ===== About ===== */
.about {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about { grid-template-columns: 1fr 1fr; }
}

.about__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}

.about__photo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--orange);
}

.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__text p {
  color: var(--text-muted);
  line-height: 1.7;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.badges li {
  padding: 0.4375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
}

/* ===== Contact ===== */
.contact-list {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .contact-list { grid-template-columns: repeat(3, 1fr); }
}

.contact-item {
  display: block;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}

a.contact-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(249, 115, 22, 0.4);
}

.contact-item span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.contact-item strong {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  word-break: break-word;
}

.social {
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.social a {
  font-weight: 500;
  transition: color 0.2s;
}

.social a:hover { color: #fff; }

/* ===== Footer ===== */
.footer {
  padding: 1.25rem 0;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
}

.footer__inner {
  text-align: center;
}
