/* ============================================
   MK Construction — Design system
   Palette : noir / or, inspirée du logo M.K. Construction
   ============================================ */

:root {
  --color-ink: #1A1D21;         /* anthracite profond */
  --color-ink-soft: #2B2F35;
  --color-stone: #F6F3EE;       /* fond clair, pierre chaude */
  --color-stone-dark: #EAE4D9;
  /* Or profond : texte/icônes sur fond clair (labels, liens, logo).
     Contrastes WCAG AA — blanc dessus 5,56:1, sur fond clair 5,20:1. */
  --color-gold: #846315;
  /* Or demandé (#E6BD42) : couleur dominante — boutons, badges, footer.
     Sur fond blanc/clair il ne passe pas le seuil texte (1,7:1), donc
     jamais utilisé pour du texte fin sur fond clair ; sur l'anthracite en
     revanche 9,44:1, excellent. Sur les boutons, texte encre (pas blanc) :
     9,44:1 aussi, largement au-dessus du seuil. */
  --color-gold-light: #E6BD42;
  --color-gold-dark: #D2AA3E;   /* survol des boutons, un cran plus sombre */
  --color-white: #FFFFFF;
  --color-off-white: #F9F7F3;
  --color-text: #24262A;
  --color-text-muted: #6B6F76;
  --color-border: #E3DFD6;

  --font-base: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;

  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(26, 29, 33, 0.08);
  --shadow-md: 0 8px 24px rgba(26, 29, 33, 0.12);
  --container-width: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Le header collant ne doit pas recouvrir le haut d'une section ciblée
   par une ancre (#prestations, #contact...). */
section[id] { scroll-margin-top: 80px; }

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

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

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -4px;
  flex-shrink: 0;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-gold);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.2;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--color-gold-light);
  /* Texte encre, pas blanc : E6BD42 est trop clair pour porter du texte
     blanc lisible (1,79:1). Encre dessus : 9,44:1. */
  color: var(--color-ink);
}
.btn-primary:hover { background: var(--color-gold-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn-outline:hover { background: var(--color-ink); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  font-weight: 600;
}
.btn-ghost .icon { color: var(--color-gold); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* Retour tactile : :hover n'existe pas au doigt, :active si. */
.btn:active { transform: translateY(1px); }
.service-card:active { transform: translateY(-2px); }
a, button { -webkit-tap-highlight-color: rgba(132, 99, 21, 0.14); }

/* Barre d'action fixe (mobile) */
.mobile-bar { display: none; }

/* Apparition au défilement.
   L'état masqué n'est appliqué que si le JS a posé .js-reveal sur <html> :
   sans JS, tout reste visible. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Cascade réservée aux rangées : en colonne unique (mobile), les cartes
   entrent déjà une par une, un délai n'ajouterait que de la latence. */
@media (min-width: 700px) {
  .js-reveal .reveal:nth-child(2) { transition-delay: 0.07s; }
  .js-reveal .reveal:nth-child(3) { transition-delay: 0.14s; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Desktop only : navbar fond noir après hero */
@media (min-width: 861px) {
  .site-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  .site-header.scrolled .logo,
  .site-header.scrolled .main-nav a,
  .site-header.scrolled .nav-toggle span,
  .site-header.scrolled .btn-ghost {
    color: #fff;
  }
  .site-header.scrolled .btn-ghost .icon {
    color: var(--color-gold-light);
  }
  .site-header.scrolled .main-nav a:hover {
    color: var(--color-gold-light);
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 44px; width: auto; display: block; }

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--color-gold); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  /* Safari/iOS : sans ce reset, le bouton garde son rendu natif */
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  /* Largeur explicite obligatoire : dans un <button>, Safari place les
     enfants en shrink-to-fit, ils s'effondrent donc à 0px sans elle. */
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
}

/* Hero */
/* Photo de fond : déposer le fichier dans images/hero.jpg.
   Tant qu'il est absent, le dégradé se pose sur background-color et le
   rendu reste exactement celui d'aujourd'hui (aucun état cassé). */
.hero {
  background-color: var(--color-ink);
  background-image:
    linear-gradient(
      165deg,
      rgba(18, 20, 24, 0.86) 0%,
      rgba(18, 20, 24, 0.60) 45%,
      rgba(18, 20, 24, 0.88) 100%
    ),
    url("/images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 90px 0 100px;
  text-align: center;
}
/* Filet de sécurité si la photo de fond est très claire */
.hero h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(12, 14, 17, 0.35);
}
.hero-subtitle { text-shadow: 0 1px 8px rgba(12, 14, 17, 0.3); }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}
.badge .icon { width: 15px; height: 15px; color: var(--color-gold-light); vertical-align: 0; }

@media (max-width: 700px) {
  .hero-badges {
    gap: 5px;
  }
  .badge {
    font-size: 0.75rem;
    padding: 5px 11px;
  }
  .badge .icon { width: 13px; height: 13px; }
}
/* Liste des métiers (reprise du logo) : traitée comme une étiquette,
   pas comme une deuxième phrase, sinon elle rivalise avec la vraie
   accroche juste en dessous. */
.hero-tagline {
  margin: 0 auto 18px;
  color: var(--color-gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-subtitle {
  max-width: 620px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--color-ink); }

/* Services */
.services { padding: 90px 0; background: var(--color-off-white); }
.services h2 { max-width: 700px; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--color-stone);
  /* Volontairement atténué : seul le bouton d'action porte le cuivre plein */
  color: var(--color-gold);
}
.service-icon .icon { width: 24px; height: 24px; vertical-align: 0; }
.service-card p { margin: 0; }

/* Gallery */
.gallery { padding: 90px 0; }

.gallery-carousel {
  position: relative;
  margin-top: 40px;
}

/* Le scroll natif du navigateur fait tout le travail : pas de transform
   ni de calcul de position à la main, donc pas de bug de décalage. */
.carousel-track {
  display: flex;
  overflow-x: auto;
  overflow-anchor: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.gallery-item {
  /* <figure> a une marge par défaut (1em 40px chez Chrome) qui décalait
     tout le carrousel de 40px au chargement : jamais réinitialisée. */
  margin: 0;
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
}

.gallery-item img {
  /* Beaucoup de photos client sont en portrait et basse résolution :
     contain montre l'image entière (pas de recadrage) plutôt que de
     l'étirer pour remplir une large boîte, ce qui la rendait floue. */
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 700px) {
  .gallery-item { height: 340px; }
}

/* Flèches du carrousel */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 8px 12px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 3px;
  z-index: 10;
  transition: background 0.2s ease;
  font-weight: 300;
  line-height: 1;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.75);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}
.gallery-item.has-comparison {
  overflow: hidden;
  background: transparent;
  border: none;
}
.comparison-slider {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  cursor: col-resize;
  touch-action: none;
}
.comparison-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
.comparison-slider .after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 50% 0 0);
}
.comparison-slider .handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(-50%);
  z-index: 10;
  cursor: col-resize;
}
.comparison-slider .handle::before {
  content: 'M.K';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.gallery-caption {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.gallery-empty {
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-stone);
}

/* Testimonials */
.testimonials { padding: 90px 0; background: var(--color-stone); }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.stars { color: var(--color-gold); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-author {
  margin: 0;
  font-weight: 600;
  color: var(--color-ink);
  font-size: 0.9rem;
}
.testimonials-cta { text-align: center; margin-top: 36px; }

/* Contact */
.contact { padding: 90px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-list a { color: var(--color-ink); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--color-off-white);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-ink);
}
.contact-form input,
.contact-form textarea {
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
/* Le texte et son lien doivent former UN seul élément flex, sinon le lien
   part dans une colonne à part. */
.consent > span { flex: 1; }
.consent input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-gold);
}
.consent a { color: var(--color-gold); }
.hidden-field { position: absolute; left: -9999px; }

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 30px;
}
.footer-logo { color: #fff; margin-bottom: 8px; }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-base);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.site-footer a:hover { color: var(--color-gold-light); }
.site-footer .logo span { color: var(--color-gold-light); }
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ============ Tablet / Desktop ============ */
@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Panneau ancré sous le header : top:100% évite toute hauteur codée en dur
     (le header est en position:sticky, donc positionné = référence valable). */
  /* Le panneau se déroule verticalement. Le padding est porté par le <ul>,
     sinon il resterait visible sous le header à l'état fermé. */
  /* grid-template-rows 0fr -> 1fr anime la hauteur réelle du contenu.
     max-height ne convenait pas : la croissance visible s'arrêtait dès que
     la valeur dépassait la hauteur du contenu, d'où une ouverture sèche. */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    grid-template-rows: 0fr;
    background: #fff;
    padding: 0;
    visibility: hidden;
    box-shadow: none;
    transition:
      grid-template-rows 0.5s cubic-bezier(0.33, 1, 0.68, 1),
      box-shadow 0.45s ease,
      visibility 0s linear 0.5s;
  }
  .main-nav.open {
    grid-template-rows: 1fr;
    visibility: visible;
    box-shadow: 0 16px 30px rgba(26, 29, 33, 0.10);
    transition:
      grid-template-rows 0.5s cubic-bezier(0.33, 1, 0.68, 1),
      box-shadow 0.45s ease,
      visibility 0s linear;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    /* Aucun padding ici : il s'ajouterait hors de la ligne de grille et
       laisserait une bande blanche visible à l'état fermé. */
    padding: 0;
    overflow: hidden;
    min-height: 0;
  }

  /* Apparition décalée des entrées, pour l'effet "déroulé" soigné */
  .main-nav li {
    border-bottom: 1px solid var(--color-border);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav.open li { opacity: 1; transform: translateY(0); }
  .main-nav.open li:nth-child(1) { transition-delay: 0.08s; }
  .main-nav.open li:nth-child(2) { transition-delay: 0.13s; }
  .main-nav.open li:nth-child(3) { transition-delay: 0.18s; }
  .main-nav.open li:nth-child(4) { transition-delay: 0.23s; }
  .main-nav.open li:nth-child(5) { transition-delay: 0.28s; }

  .main-nav a {
    display: block;
    padding: 15px 20px;
    font-size: 1.02rem;
  }
  .main-nav li:first-child a { padding-top: 18px; }
  .main-nav li:last-child a { padding-bottom: 20px; }

  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Hamburger qui se transforme en croix à l'ouverture */
  .nav-toggle span { transition: transform 0.25s ease, opacity 0.18s ease; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 860px) {
  .mobile-bar {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 10px 16px;
    /* Marge pour la barre d'accueil iPhone */
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -6px 20px rgba(26, 29, 33, 0.07);
    transform: translateY(120%);
    transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1), background 0.3s ease, border-color 0.3s ease;
  }
  .mobile-bar.visible { transform: translateY(0); }
  .mobile-bar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    border-top-color: rgba(255, 255, 255, 0.1);
  }
  .mobile-bar.scrolled .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
  }
  .mobile-bar.scrolled .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  .mobile-bar .btn { flex: 1; padding: 13px 8px; font-size: 0.95rem; }

  /* Évite que la barre masque définitivement la fin du footer */
  body { padding-bottom: 74px; }
}

/* Espacements resserrés : 90px est calibré pour du desktop */
@media (max-width: 700px) {
  .services,
  .gallery,
  .testimonials,
  .contact { padding: 60px 0; }
  .hero { padding: 64px 0 72px; }
  .services-grid,
  .gallery-grid,
  .testimonials-grid { margin-top: 28px; }
  .contact-inner { gap: 32px; }
  .site-footer { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav,
  .main-nav li,
  .mobile-bar,
  .nav-toggle span {
    transition: none;
    transition-delay: 0s;
  }
  /* Aucune apparition progressive : tout est visible d'emblée */
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 400px) {
  .logo { font-size: 1.2rem; }
}

/* ============ Pages prestations & zone d'intervention ============ */
/* Ajouts uniquement : aucune règle existante n'est modifiée. */
.service-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.service-link:hover { text-decoration: underline; }

.zone { padding: 70px 0; background: var(--color-stone); }
.zone-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.zone-list li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.88rem;
  color: var(--color-text);
}

.hero-page { padding: 70px 0 76px; }
.hero-page h1 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }

.page-content { padding: 70px 0; }
.page-content .container { max-width: 820px; }
.page-content h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 40px; }
.page-content h2:first-child { margin-top: 0; }
.page-content ul { padding-left: 20px; margin: 0 0 16px; color: var(--color-text-muted); }
.page-content li { margin-bottom: 6px; }
.page-content strong { color: var(--color-text); }
.page-content p a { color: var(--color-gold); font-weight: 600; }

.page-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0 8px;
}
.page-photos figure { margin: 0; }
.page-photos img {
  width: 100%;
  height: auto; /* sinon l'attribut height de l'image écrase le ratio */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--color-stone);
}
.page-photos figcaption { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 6px; }

.page-cta {
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--color-ink);
  text-align: center;
}
.page-cta h2 { color: #fff; margin-top: 0; }
.page-cta p { color: rgba(255,255,255,0.8); }
.page-cta .hero-actions { margin-top: 8px; }
.page-cta .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.page-cta .btn-outline:hover { background: #fff; color: var(--color-ink); }

.other-services { padding: 0 0 70px; }
.other-services .container { max-width: 820px; }
.other-services ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.other-services a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.92rem;
}
.other-services a:hover { border-color: var(--color-gold); color: var(--color-gold); }

@media (min-width: 600px) {
  .page-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .footer-inner { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .zone, .page-content { padding: 50px 0; }
  .hero-page { padding: 52px 0 58px; }
}

/* Carte de prestation entièrement cliquable : le lien s'étend sur toute la carte */
.service-card { position: relative; }
.service-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.service-link:focus-visible { outline: none; }
.service-link:focus-visible::after { outline: 2px solid var(--color-gold); outline-offset: 2px; }

/* Zone d'intervention : liste longue repliable */
.zone-title { font-size: 1.05rem; margin: 28px 0 0; }
.zone-more { margin-top: 28px; }
.zone-more summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-gold);
  padding: 10px 0;
}
.zone-more h3 { font-size: 1rem; margin: 24px 0 0; }
.zone-list-sm { gap: 6px; margin-top: 12px; }
.zone-list-sm li { font-size: 0.8rem; padding: 3px 11px; }
