/* ==========================================================================
   MTeck — Bureautique à Foumban, Kounga
   Feuille de style unique.
   Les couleurs reprennent le rouge du logo. Pour les changer, modifier
   UNIQUEMENT --brand, --brand-dark, --brand-rgb et --accent ci-dessous.
   ========================================================================== */

/* Polices hébergées dans assets/fonts (fichiers « variables » : une seule
   requête couvre toutes les graisses). « swap » affiche le texte tout de suite
   avec une police système, puis bascule dès que la police est prête. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
}

:root {
  /* --- Couleurs de la marque (à aligner sur le logo) --- */
  --brand: #d90a0b;
  --brand-dark: #a50708;
  --accent: #f5a524;
  --brand-rgb: 217, 10, 11; /* = --brand en R, V, B (pour les ombres) */

  /* --- Thème clair --- */
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-card: #ffffff;
  --text: #11192a;
  --text-soft: #52607a;
  --border: #e2e8f2;
  --shadow: 0 1px 2px rgba(17, 25, 42, .06), 0 8px 24px rgba(17, 25, 42, .06);
  --shadow-lg: 0 2px 4px rgba(17, 25, 42, .06), 0 18px 48px rgba(17, 25, 42, .12);
  --brand-soft: rgba(217, 10, 11, .08);
  --brand-text: #c20909;
  --accent-soft: rgba(245, 165, 36, .14);
  --accent-text: #b26d00;

  /* --- Mesures --- */
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: 16px;
  --maxw: 1180px;
  --header-h: 72px;

  --font-title: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Thème sombre : suit le système, sauf si l'utilisateur a choisi « clair ». */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1220;
    --bg-soft: #131b2d;
    --bg-card: #161f33;
    --text: #eef2f9;
    --text-soft: #9fb0cc;
    --border: #253148;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .5);
    --brand-soft: rgba(255, 90, 90, .15);
    --brand-text: #ff6b6b;
    --accent-soft: rgba(245, 165, 36, .18);
    --accent-text: #f5b44a;
  }
}

/* Thème sombre choisi explicitement par l'utilisateur. */
:root[data-theme="dark"] {
  --bg: #0d1220;
  --bg-soft: #131b2d;
  --bg-card: #161f33;
  --text: #eef2f9;
  --text-soft: #9fb0cc;
  --border: #253148;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .5);
  --brand-soft: rgba(255, 90, 90, .15);
  --brand-text: #ff6b6b;
  --accent-soft: rgba(245, 165, 36, .18);
  --accent-text: #f5b44a;
}

/* --------------------------------------------------------------- Base --- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }

h1 em { font-style: normal; color: var(--brand-text); }

p { margin: 0 0 1rem; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-text);
  background: var(--brand-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ------------------------------------------------------------ Boutons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: .97rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(var(--brand-rgb), .28);
}
.btn--primary:hover { background: var(--brand-dark); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-text); }

.btn--wa {
  background: #178a43;
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 170, 84, .28);
}
.btn--wa:hover { background: #12733a; }

.btn--block { width: 100%; }

/* ------------------------------------------------------------- Entête --- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(17, 25, 42, .06);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { height: 60px; width: auto; }
.brand__sub {
  display: block;
  padding-left: 12px;
  border-left: 2px solid var(--brand);
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: .95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.nav a.is-active { color: var(--brand-text); background: var(--brand-soft); font-weight: 600; }
.nav .nav__cta { display: none; }

.header__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.icon-btn:hover { background: var(--bg-soft); border-color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }

.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.burger { display: none; }
.burger span {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------- Hero --- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 92px)) 0 clamp(64px, 8vw, 104px);
  background: var(--bg-soft);
  overflow: hidden;
}
/* Halos de couleur en dégradés radiaux : même rendu qu'un flou, sans le coût
   de calcul de « filter: blur » sur les téléphones modestes. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 640px; height: 640px;
  top: -260px; right: -220px;
  background: radial-gradient(closest-side, var(--brand-soft), transparent);
}
.hero::after {
  width: 520px; height: 520px;
  bottom: -270px; left: -220px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 52px;
  align-items: center;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 54ch;
  margin-bottom: 28px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 480px;
}
.hero__stats div {
  padding: 14px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.hero__stats b {
  display: block;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-text);
  line-height: 1.1;
}
.hero__stats span { font-size: .8rem; color: var(--text-soft); }

/* Visuel du héros : composition CSS, aucune image à télécharger. */
.hero__visual {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__visual-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
  font-family: var(--font-title);
  font-weight: 700;
}
.hero__visual-title small { color: var(--text-soft); font-weight: 500; font-family: var(--font-body); }
.hero__visual-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.hero__visual-row i {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
}
.hero__visual-row i svg { width: 21px; height: 21px; }
.hero__visual-row--accent i { background: var(--accent); }
.hero__visual-row--green i { background: #1faa54; }
.hero__visual-row--dark i { background: var(--brand-dark); }
.hero__visual-row b { display: block; font-family: var(--font-title); font-size: .98rem; }
.hero__visual-row small { color: var(--text-soft); font-size: .84rem; }

.hero__badge {
  position: absolute;
  right: 16px;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: .86rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(var(--brand-rgb), .34);
}
.hero__badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6ee7a0;
  box-shadow: 0 0 0 0 rgba(110, 231, 160, .7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(110, 231, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0); }
}

/* ----------------------------------------------------------- Grilles --- */

.grid { display: grid; gap: 22px; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

/* ----------------------------------------------------------- Services --- */

.card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand-text);
}
.card__icon svg { width: 26px; height: 26px; }
.card:nth-child(2n) .card__icon { background: var(--accent-soft); color: var(--accent-text); }

.card p { color: var(--text-soft); font-size: .95rem; }

.card__list { margin: 4px 0 22px; display: grid; gap: 9px; }
.card__list li {
  position: relative;
  padding-left: 26px;
  font-size: .93rem;
  color: var(--text-soft);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .32em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c20909' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-family: var(--font-title);
  font-size: .93rem;
  font-weight: 600;
  color: var(--brand-text);
}
.card__cta svg { width: 16px; height: 16px; transition: transform .2s ease; }
.card__cta:hover { text-decoration: none; }
.card__cta:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------ Atouts --- */

.feature {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature i {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.feature i svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 4px; font-size: 1.05rem; }
.feature p { margin: 0; font-size: .92rem; color: var(--text-soft); }

/* ---------------------------------------------------------- À propos --- */

.about { display: grid; gap: 40px; align-items: center; }
.about__text p { color: var(--text-soft); }
.about__text p strong { color: var(--text); }

.about__panel {
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about__owner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

/* Emplacement photo : la photo (si présente) recouvre le cadre « Photo ». */
.about__photo {
  position: relative;
  flex: none;
  width: 136px; height: 136px;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--brand-soft);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--brand), var(--shadow);
}
.about__photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--bg-card);
}
.about__photo-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--brand-text);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.about__photo-empty svg { width: 34px; height: 34px; opacity: .7; }

.about__owner b { display: block; font-family: var(--font-title); font-size: 1.25rem; }
.about__owner b + span { display: block; font-size: .9rem; color: var(--text-soft); }
.about__wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 4px;
  font-family: var(--font-title);
  font-size: .9rem;
  font-weight: 600;
  color: #178a43;
}
.about__wa svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .about__wa { color: #4ade80; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .about__wa { color: #4ade80; }
}

.about__points { display: grid; gap: 14px; }
.about__points li { display: flex; gap: 12px; font-size: .94rem; color: var(--text-soft); }
.about__points svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--brand-text); }

/* ----------------------------------------------------------- Atelier --- */

/* Grille de photos à hauteur fixe : chaque photo est recadrée pour remplir
   sa case, quelle que soit son orientation. L'enseigne occupe une grande case. */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 170px;
  gap: 12px;
}
.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: var(--shadow);
}
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery__item:last-child { grid-column: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover { text-decoration: none; }
.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  color: #fff;
  font-family: var(--font-title);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .gallery { grid-auto-rows: 210px; gap: 16px; }
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; }
  .gallery__item:last-child { grid-column: auto; }
  .gallery__caption { font-size: .95rem; padding: 36px 18px 14px; }
}

/* Agrandissement au clic. */
.lightbox {
  width: min(92vw, 860px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #000;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
.lightbox img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 52px);
  object-fit: contain;
}
.lightbox__caption {
  margin: 0;
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-title);
  font-weight: 600;
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0, 0, 0, .55);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.lightbox__close:hover { background: rgba(0, 0, 0, .8); border-color: #fff; }

/* ------------------------------------------------------------ Tarifs --- */

.price {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.price--featured {
  position: relative;
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
.price--featured::after {
  content: "Le plus demandé";
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 14px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.price h3 { margin-bottom: 6px; }
.price__from { color: var(--text-soft); font-size: .86rem; margin-bottom: 18px; }
.price__lines { display: grid; gap: 11px; margin-bottom: 24px; }
.price__lines li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: .93rem;
  padding-bottom: 11px;
  border-bottom: 1px dashed var(--border);
}
.price__lines li:last-child { border-bottom: 0; padding-bottom: 0; }
.price__lines span { color: var(--text-soft); }
.price__lines b { font-family: var(--font-title); white-space: nowrap; color: var(--text); }
.price .btn { margin-top: auto; }

.price-note {
  margin: 32px auto 0;
  max-width: 620px;
  padding: 14px 18px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  text-align: center;
  font-size: .9rem;
  color: var(--text);
}

/* ----------------------------------------------------------- Contact --- */

.contact { display: grid; gap: 36px; }

.contact__list { display: grid; gap: 14px; margin-bottom: 26px; }
.contact__item {
  display: flex;
  gap: 15px;
  padding: 17px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
}
a.contact__item:hover { border-color: var(--brand); transform: translateX(3px); text-decoration: none; }
.contact__item i {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-text);
}
.contact__item i svg { width: 20px; height: 20px; }
.contact__item b {
  display: block;
  font-family: var(--font-title);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.contact__item span { color: var(--text); font-size: .98rem; word-break: break-word; }

.map {
  height: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg-soft);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.map__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}
.map__placeholder i {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(var(--brand-rgb), .3);
}
.map__placeholder i svg { width: 24px; height: 24px; }
.map__placeholder b { font-family: var(--font-title); }
.map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.map__actions .btn--ghost { background: var(--bg-card); }

.form {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  align-self: start;
}
.form h3 { margin-bottom: 6px; }
.form > p { font-size: .92rem; color: var(--text-soft); margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-title);
  font-size: .89rem;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 11px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field [aria-invalid="true"] {
  border-color: #d93636;
  box-shadow: 0 0 0 3px rgba(217, 54, 54, .15);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352607a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 40px;
}
.form__hint {
  margin: 14px 0 0;
  font-size: .84rem;
  color: var(--text-soft);
  text-align: center;
}

/* ----------------------------------------------------------- Bandeau --- */

.cta-band {
  padding: clamp(40px, 6vw, 64px) clamp(22px, 5vw, 56px);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: var(--radius-lg);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 44px rgba(var(--brand-rgb), .28);
}
.cta-band h2 { color: #fff; }
.cta-band p {
  max-width: 54ch;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, .9);
}
.cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ------------------------------------------------------ Pied de page --- */

.footer {
  padding: 56px 0 96px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.footer__grid { display: grid; gap: 32px; margin-bottom: 36px; }
.footer__about p { font-size: .92rem; color: var(--text-soft); max-width: 36ch; }
.footer .brand { margin-bottom: 16px; margin-right: 0; display: inline-flex; }
.footer h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.footer li { margin-bottom: 9px; }
.footer li a, .footer li span { color: var(--text-soft); font-size: .93rem; }
.footer li a:hover { color: var(--brand-text); }
.footer__bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  font-size: .86rem;
  color: var(--text-soft);
}

/* ------------------------------------------- Bouton WhatsApp flottant --- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 20px 13px 15px;
  background: #178a43;
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .93rem;
  box-shadow: 0 10px 28px rgba(31, 170, 84, .42);
  transition: transform .2s ease, background-color .2s ease;
}
.wa-float:hover { background: #12733a; transform: translateY(-3px); text-decoration: none; }
.wa-float svg { width: 23px; height: 23px; flex: none; }

/* ---------------------------------------------------------- Apparition --- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .4s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* -------------------------------------------------------------- Écrans --- */

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

@media (min-width: 900px) {
  :root { --gutter: 24px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
  .about { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
}

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

/* Navigation repliée sur mobile et tablette. */
@media (max-width: 899px) {
  .burger { display: inline-flex; flex-direction: column; }
  .header__cta { display: none; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 12px var(--gutter) 22px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 13px 14px; border-radius: 11px; font-size: 1rem; }
  .nav .nav__cta { display: block; margin-top: 12px; }
  .nav .nav__cta a { color: #fff; background: var(--brand); text-align: center; border-radius: 999px; }
}

@media (max-width: 420px) {
  .about__photo { width: 92px; height: 92px; border-radius: 16px; }
  .about__owner { gap: 16px; }
  .brand img { height: 50px; }
  .hero__actions .btn { width: 100%; }
  .hero__stats b { font-size: 1.25rem; }
  .wa-float { padding: 13px; }
  .wa-float span { display: none; }
}

/* Respect du réglage système « réduire les animations ». */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .wa-float, .map, .form, .theme-toggle, .burger { display: none !important; }
  body { background: #fff; color: #000; }
}
