/* ============================================================
   MCBC — Martinique Charpente Bois Couverture
   Styles CSS pur — reconstitution fidèle du site React/Tailwind
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design tokens (couleurs oklch, identiques au source) ─── */
:root {
  --radius: 0.5rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);

  /* Warm earth tones */
  --background:          oklch(0.98 0.005 80);
  --foreground:          oklch(0.2  0.02  50);
  --card:                oklch(1    0     0);
  --card-foreground:     oklch(0.2  0.02  50);
  --primary:             oklch(0.45 0.1   55);
  --primary-foreground:  oklch(0.98 0.005 80);
  --secondary:           oklch(0.95 0.015 80);
  --secondary-foreground:oklch(0.3  0.04  50);
  --muted:               oklch(0.95 0.01  80);
  --muted-foreground:    oklch(0.5  0.03  50);
  --accent:              oklch(0.92 0.025 80);
  --accent-foreground:   oklch(0.25 0.04  50);
  --destructive:         oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.98 0.005 80);
  --border:              oklch(0.9  0.02  80);
  --input:               oklch(0.9  0.02  80);
  --ring:                oklch(0.45 0.1   55);

  /* Wood / warm brand */
  --warm:                oklch(0.55 0.12  55);
  --warm-foreground:     oklch(0.98 0.005 80);
  --warm-light:          oklch(0.94 0.03  70);
  --wood:                oklch(0.4  0.08  50);
  --wood-foreground:     oklch(0.98 0.005 80);
  --wood-dark:           oklch(0.25 0.05  45);
  --hero-overlay:        oklch(0.15 0.03  45 / 60%);

  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
}

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

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

ul { list-style: none; }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 80rem; /* max-w-7xl = 1280px */
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem;   } }

.container--narrow {
  max-width: 48rem; /* max-w-3xl */
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container--narrow { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container--narrow { padding-inline: 2rem;   } }

.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;
}

/* ── Main content offset for fixed header ─────────────────── */
main { padding-top: 4rem; /* h-16 = 64px */ }

/* ── Mosaic background pattern ────────────────────────────── */
.bg-mosaic {
  background-color: var(--background);
  background-image:
    linear-gradient(135deg, color-mix(in oklab, var(--warm) 8%, transparent) 25%, transparent 25%),
    linear-gradient(225deg, color-mix(in oklab, var(--wood) 8%, transparent) 25%, transparent 25%),
    linear-gradient(45deg,  color-mix(in oklab, var(--warm) 6%, transparent) 25%, transparent 25%),
    linear-gradient(315deg, color-mix(in oklab, var(--wood) 6%, transparent) 25%, transparent 25%);
  background-position: 20px 0, 20px 0, 0 0, 0 0;
  background-size: 40px 40px;
  background-repeat: repeat;
}

/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background-color: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  height: 4rem; /* h-16 */
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img {
  height: 7rem; /* h-28 */
  width: auto;
}

/* Desktop nav */
.site-header__nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-header__nav { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 150ms;
}
.nav-link:hover, .nav-link.active { color: var(--warm); }

.nav-link--cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-foreground);
  transition: background-color 150ms;
}
.nav-link--cta:hover { background-color: var(--warm); color: var(--warm-foreground); }

/* Hamburger button */
.site-header__hamburger {
  display: flex;
  padding: 0.5rem;
  color: var(--foreground);
}
@media (min-width: 768px) { .site-header__hamburger { display: none; } }

/* Mobile nav */
.site-header__mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1rem;
}
.site-header__mobile-nav.open { display: flex; }

.site-header__mobile-nav .nav-link {
  padding-block: 0.5rem;
}
.site-header__mobile-nav .nav-link--cta {
  width: fit-content;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer {
  background-color: var(--wood-dark);
  color: var(--wood-foreground);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: 3rem;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
}

.site-footer__brand h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.site-footer__brand span { color: var(--warm); }

.site-footer__brand p {
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.625;
}

.site-footer__col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: var(--warm);
}

.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.site-footer__col ul a:hover { color: var(--warm); transition: color 150ms; }
.footer-icon { width: 1rem; height: 1rem; display: inline; vertical-align: middle; margin-right: 0.3rem; flex-shrink: 0; }

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--wood-foreground) 20%, transparent);
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.site-footer__legal {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.site-footer__legal a {
  text-decoration: underline;
  transition: color 150ms;
}
.site-footer__legal a:hover { color: var(--warm); }

/* ══════════════════════════════════════════════════════════
   COOKIE BANNER
   ══════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem;
  display: none; /* shown by JS */
}
@media (min-width: 640px) { .cookie-banner { padding: 1.5rem; } }

.cookie-banner.visible { display: block; }

.cookie-banner__inner {
  max-width: 56rem;
  margin-inline: auto;
  background-color: var(--background);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
}
@media (min-width: 640px) { .cookie-banner__inner { padding: 1.5rem; } }

.cookie-banner__close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  color: var(--muted-foreground);
  transition: color 150ms;
  padding: 0.25rem;
}
.cookie-banner__close:hover { color: var(--foreground); }

.cookie-banner__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .cookie-banner__body {
    flex-direction: row;
    align-items: center;
  }
}

.cookie-banner__text { flex: 1; }

.cookie-banner__text h2 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.cookie-banner__text p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}

.cookie-banner__text a {
  text-decoration: underline;
  transition: color 150ms;
}
.cookie-banner__text a:hover { color: var(--foreground); }

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: background-color 150ms, color 150ms, border-color 150ms, opacity 150ms;
  white-space: nowrap;
  cursor: pointer;
}

.btn--sm  { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn--md  { padding: 0.5rem 1rem; }
.btn--lg  { padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600; }
.btn--xl  { padding: 0.75rem 2rem; font-size: 0.875rem; font-weight: 600; }

.btn--primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
}
.btn--primary:hover { background-color: var(--warm); border-color: var(--warm); }
.btn--primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn--outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn--outline:hover { background-color: var(--accent); }

.btn--warm {
  background-color: var(--warm);
  color: var(--warm-foreground);
  border: 1px solid var(--warm);
}
.btn--warm:hover { background-color: var(--primary); border-color: var(--primary); }

/* ══════════════════════════════════════════════════════════
   PAGE HEADER (section accent en haut de chaque page)
   ══════════════════════════════════════════════════════════ */
.page-header {
  padding-block: 5rem;
  background-color: var(--accent);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
}

.page-header p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin-inline: auto;
}

/* ══════════════════════════════════════════════════════════
   HOME — HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--hero-overlay);
}

.hero__content {
  position: relative;
  padding-block: 6rem;
}

.hero__text { max-width: 42rem; }

.hero__title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--primary-foreground);
  line-height: 1.15;
}
.hero__title span { color: var(--warm); }

.hero__lead {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: color-mix(in srgb, var(--primary-foreground) 90%, transparent);
  line-height: 1.625;
  max-width: 36rem;
}

/* ══════════════════════════════════════════════════════════
   HOME — STATS BAR
   ══════════════════════════════════════════════════════════ */
.stats {
  background-color: var(--wood-dark);
  padding-block: 3rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
}

.stats__value {
  font-size: 2.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--warm);
}
.stats__label {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--wood-foreground) 80%, transparent);
}

/* ══════════════════════════════════════════════════════════
   HOME — SERVICES PREVIEW
   ══════════════════════════════════════════════════════════ */
.services {
  padding-block: 5rem;
  background-color: var(--background);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--foreground);
}
.section-header p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin-inline: auto;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--card);
  border: 1px solid var(--border);
  transition: box-shadow 300ms;
}
.service-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.12); }

.service-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}
.service-card:hover .service-card__img img { transform: scale(1.05); }

.service-card__body {
  padding: 1.25rem;
}
.service-card__body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.services__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ══════════════════════════════════════════════════════════
   HOME — WHY CHOOSE US
   ══════════════════════════════════════════════════════════ */
.why {
  padding-block: 5rem;
  background-color: var(--accent);
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .why__grid { grid-template-columns: repeat(3, 1fr); }
}

.why-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--card);
  border: 1px solid var(--border);
}
.why-card__icon { display: flex; justify-content: center; margin-bottom: 1rem; color: var(--primary); }
.why-card__icon svg { width: 2.5rem; height: 2.5rem; }
.why-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}
.why-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ══════════════════════════════════════════════════════════
   HOME — CTA BAND
   ══════════════════════════════════════════════════════════ */
.cta-band {
  padding-block: 5rem;
  background-color: var(--wood-dark);
  text-align: center;
}
.cta-band__inner { max-width: 48rem; margin-inline: auto; padding-inline: 1rem; }
.cta-band h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--wood-foreground);
}
.cta-band p {
  margin-top: 1rem;
  color: color-mix(in srgb, var(--wood-foreground) 80%, transparent);
}
.cta-band a {
  margin-top: 2rem;
  display: inline-flex;
}

/* ══════════════════════════════════════════════════════════
   PRESTATIONS — alternating layout
   ══════════════════════════════════════════════════════════ */
.prestations-list {
  padding-block: 4rem;
  background-color: var(--background);
}

.prestation-item {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: 5rem;
}
.prestation-item:last-child { padding-bottom: 0; }

@media (min-width: 1024px) {
  .prestation-item { flex-direction: row; }
  .prestation-item--reverse { flex-direction: row-reverse; }
}

.prestation-item__media {
  width: 100%;
}
@media (min-width: 1024px) {
  .prestation-item__media { width: 50%; }
}

.prestation-item__body {
  width: 100%;
}
@media (min-width: 1024px) {
  .prestation-item__body { width: 50%; }
}

.prestation-item__body h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--foreground);
}
.prestation-item__body p {
  margin-top: 1rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}

.prestation-features {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.prestation-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
}
.prestation-features li .check {
  color: var(--warm);
  font-weight: 700;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   PRESTATIONS — PROCESS
   ══════════════════════════════════════════════════════════ */
.process {
  padding-block: 5rem;
  background-color: var(--accent);
}

.process__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px)  { .process__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process__grid { grid-template-columns: repeat(4, 1fr); } }

/* Connecting line (desktop only) */
.process__line {
  display: none;
  position: absolute;
  top: 3rem;
  left: 12.5%; right: 12.5%;
  height: 2px;
  background-color: var(--border);
}
@media (min-width: 1024px) { .process__line { display: block; } }

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.process-step__icon {
  position: relative;
  z-index: 10;
  display: flex;
  height: 6rem; width: 6rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.process-step__icon svg { width: 2.5rem; height: 2.5rem; }

.process-step__num {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm);
}
.process-step h3 {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}
.process-step p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.625;
  max-width: 18rem;
}

/* ══════════════════════════════════════════════════════════
   PRESTATIONS — CYCLONE BANNER
   ══════════════════════════════════════════════════════════ */
.cyclone-banner {
  padding-block: 3rem;
}

.cyclone-banner__box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background-color: var(--primary);
  padding: 2rem;
}
@media (min-width: 768px) { .cyclone-banner__box { padding: 3rem; } }

.cyclone-banner__deco {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}
.cyclone-banner__deco::before,
.cyclone-banner__deco::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  background-color: var(--primary-foreground);
}
.cyclone-banner__deco::before {
  right: -2.5rem; top: -2.5rem;
  width: 10rem; height: 10rem;
}
.cyclone-banner__deco::after {
  left: -2.5rem; bottom: -2.5rem;
  width: 15rem; height: 15rem;
}

.cyclone-banner__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.cyclone-banner__icon {
  display: flex;
  width: 5rem; height: 5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: color-mix(in srgb, var(--primary-foreground) 20%, transparent);
  color: white;
}
.cyclone-banner__icon svg { width: 2.5rem; height: 2.5rem; }

.cyclone-banner__content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-foreground);
}
.cyclone-banner__content p {
  margin-top: 0.5rem;
  color: color-mix(in srgb, var(--primary-foreground) 80%, transparent);
  max-width: 42rem;
  margin-inline: auto;
}

/* ══════════════════════════════════════════════════════════
   QUI SOMMES-NOUS — mosaic images
   ══════════════════════════════════════════════════════════ */
.about-section {
  padding-block: 4rem;
  background-color: var(--background);
}

.about-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-layout { flex-direction: row; align-items: flex-start; }
}

.about-layout__media {
  width: 100%;
}
@media (min-width: 1024px) { .about-layout__media { width: 50%; } }

.about-layout__text {
  width: 100%;
}
@media (min-width: 1024px) { .about-layout__text { width: 50%; } }

.about-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  width: 100%;
}
.about-mosaic__item {
  overflow: hidden;
  border-radius: 0.25rem;
}
.about-mosaic__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.about-mosaic__item img:hover {
  transform: scale(1.06);
}

.about-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.about-mosaic__main {
  grid-row: span 2;
}
.about-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.about-mosaic__main img {
  height: 24rem;
}
.about-mosaic__top img,
.about-mosaic__bottom img {
  height: 9rem;
}
@media (min-width: 640px) {
  .about-mosaic__top img,
  .about-mosaic__bottom img { height: 10rem; }
}

.about-mosaic__banner {
  margin-top: 0.75rem;
}
.about-mosaic__banner img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
@media (min-width: 640px) {
  .about-mosaic__banner img { height: 12rem; }
}

.about-layout__text h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
}
.about-layout__text p {
  margin-top: 1rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}
.about-layout__text strong { color: var(--foreground); }

/* Realisations carousel */
.realisations {
  padding-block: 4rem;
  background-color: var(--accent);
}
.realisations h2 {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  color: var(--foreground);
  margin-bottom: 3rem;
}

/* Expertise grid */
.expertise {
  padding-block: 4rem;
  background-color: var(--background);
}
.expertise h2 {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  color: var(--foreground);
  margin-bottom: 2.5rem;
}
.expertise__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .expertise__grid { grid-template-columns: repeat(4, 1fr); }
}

.expertise-item {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background-color: var(--accent);
  border: 1px solid var(--border);
}
.expertise-item__icon { display: flex; justify-content: center; margin-bottom: 0.5rem; color: var(--primary); }
.expertise-item__icon svg { width: 2rem; height: 2rem; }
.expertise-item p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

/* ══════════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════════ */
.contact-section {
  padding-block: 4rem;
  background-color: var(--background);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Form card */
.form-card {
  border-radius: var(--radius-lg);
  background-color: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
}
.form-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.form-group + .form-group { margin-top: 0; }

.form-fields-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

input, select, textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--foreground);
  outline: none;
  transition: box-shadow 150ms;
}
input::placeholder, textarea::placeholder { color: var(--muted-foreground); }
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 2px var(--ring);
}

textarea { resize: none; }

/* Form success state */
.form-success {
  text-align: center;
  padding-block: 3rem;
  display: none;
}
.form-success.visible { display: block; }
.form-success__icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}
.form-success p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}
.form-success button { margin-top: 1.5rem; }

/* Contact info */
.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-detail__icon { display: flex; flex-shrink: 0; color: var(--primary); }
.contact-detail__icon svg { width: 1.5rem; height: 1.5rem; }
.contact-detail h3 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
.contact-detail p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-tip {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  background-color: var(--accent);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.contact-tip h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}
.contact-tip ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ══════════════════════════════════════════════════════════
   LEGAL PAGES (CGU / Politique confidentialité)
   ══════════════════════════════════════════════════════════ */
.legal-section {
  padding-block: 4rem;
  background-color: var(--background);
}

.legal-section h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.legal-section .last-update {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.legal-section .prose {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: color-mix(in srgb, var(--foreground) 90%, transparent);
}

.legal-section .prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
.legal-section .prose p { line-height: 1.75; }
.legal-section .prose p + p { margin-top: 0.75rem; }
.legal-section .prose ul {
  list-style: disc;
  list-style-position: inside;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ══════════════════════════════════════════════════════════
   CAROUSEL (Embla)
   ══════════════════════════════════════════════════════════ */
.embla {
  position: relative;
  width: 100%;
}

.embla__viewport {
  overflow: hidden;
  width: 100%;
}

.embla__container {
  display: flex;
  touch-action: pan-y;
}

.embla__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.embla__slide__inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  aspect-ratio: 4 / 3;
  background-color: var(--muted);
}

.embla__slide__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel realisation (qui-sommes-nous) */
.embla--realisation .embla__slide__inner {
  border: 1px solid var(--border);
  background-color: var(--card);
}

.embla__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--background);
  border: 1px solid var(--border);
  color: var(--foreground);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background-color 150ms, color 150ms;
  cursor: pointer;
}
.embla__btn:hover { background-color: var(--accent); }
.embla__btn:disabled { opacity: 0.4; cursor: not-allowed; }

.embla__btn--prev { left: 0.5rem; }
.embla__btn--next { right: 0.5rem; }

/* Carousel wrapper for constrained width (qui sommes-nous) */
.carousel-centered {
  max-width: 48rem;
  margin-inline: auto;
}

/* ══════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════ */
.not-found {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background-color: var(--background);
  padding-inline: 1rem;
}
.not-found__inner { max-width: 28rem; text-align: center; }
.not-found h1 {
  font-size: 4.375rem;
  font-weight: 700;
  color: var(--foreground);
}
.not-found h2 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}
.not-found p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.not-found a { margin-top: 1.5rem; display: inline-flex; }
