/* ==========================================================================
   YANIRO — Cordistes & travaux en hauteur à Grenoble
   Stylesheet — léger, accessible (WCAG AA), responsive, performant
   ========================================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Tokens ---------- */
:root {
  /* Colors — charte noir/rouge/blanc, contraste WCAG AAA */
  --ink-900: #0A0B0E;       /* noir profond — texte principal */
  --ink-800: #14171C;
  --ink-700: #20242B;
  --ink-600: #3A3E47;
  --ink-500: #5A5E68;       /* texte tertiaire sur clair */
  --ink-400: #828790;
  --ink-300: #B5B9C1;
  --ink-200: #DCDFE5;
  --ink-100: #ECEEF2;

  --paper: #FFFFFF;          /* blanc pur — contraste maximal */
  --paper-soft: #F7F7F8;     /* gris très clair pour rythme */
  --paper-warm: #EDEEF1;
  --paper-line: #DCDFE5;

  --accent: #DC1B25;         /* rouge Yaniro (charte officielle) */
  --accent-dark: #B5121C;    /* hover/active */
  --accent-darker: #8A0C14;
  --accent-bright: #E63A44;  /* rouge éclairci pour fond sombre (AA AAA) */
  --accent-soft: #FCE3E5;    /* rouge pâle pour fonds subtils */

  --white: #FFFFFF;
  --success: #0F7A36;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: clamp(1.25rem, 0.95rem + 0.9vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  --text-3xl: clamp(2rem, 1.4rem + 2.4vw, 2.875rem);
  --text-4xl: clamp(2.5rem, 1.6rem + 3.8vw, 4rem);
  --text-5xl: clamp(3rem, 1.8rem + 5.5vw, 5.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-11: 6rem;
  --space-12: 8rem;

  /* Radius */
  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 22, 27, 0.06), 0 1px 3px rgba(20, 22, 27, 0.04);
  --shadow: 0 6px 18px rgba(20, 22, 27, 0.08), 0 2px 6px rgba(20, 22, 27, 0.05);
  --shadow-lg: 0 24px 48px rgba(20, 22, 27, 0.14), 0 8px 16px rgba(20, 22, 27, 0.08);

  /* Other */
  --container: 1200px;
  --header-h: 76px;
  --transition: 220ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  background: var(--ink-900);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* ---------- Focus ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin: 0;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(221, 84, 33, 0.28);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(250, 247, 241, 0.4);
}
.btn-ghost:hover {
  background: rgba(250, 247, 241, 0.1);
  border-color: var(--paper);
}

.btn-on-dark { box-shadow: 0 8px 22px rgba(220, 27, 37, 0.36); }

.btn-block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition), border-color var(--transition);
}
.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.96);
  border-bottom-color: var(--paper-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.brand-mark { height: 30px; width: auto; flex-shrink: 0; }
.brand-name { font-variation-settings: "opsz" 96; }

/* Nav */
.primary-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 999px;
  transition: color var(--transition), background-color var(--transition);
}
.nav-list a:hover { color: var(--ink-900); background: var(--paper-soft); }

.nav-cta {
  background: var(--ink-900);
  color: var(--paper) !important;
  padding: 0.65rem 1.2rem !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent) !important; }

/* Toggle (mobile) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  flex-shrink: 0;
  background: var(--ink-900);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(640px, 90vh, 920px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
  /* Image légèrement dézoomée vs cadrage initial */
  transform: scale(1.02);
  will-change: transform;
}

/* Overlay multi-couche : sombre en bas + dégradé latéral pour lisibilité texte */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,16,19,0.55) 0%, rgba(14,16,19,0.35) 35%, rgba(14,16,19,0.92) 100%),
    linear-gradient(90deg, rgba(14,16,19,0.72) 0%, rgba(14,16,19,0.45) 60%, rgba(14,16,19,0.35) 100%);
}

/* Placeholder décoratif si l'image n'est pas chargée — fond sombre type rocher */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse at 20% 30%, #2a2d35 0%, #14161B 60%),
    linear-gradient(180deg, #1A1D22, #0E1014);
}

.hero-content {
  position: relative;
  padding-block: 9rem 6rem;
  max-width: 880px;
  animation: heroIn 1s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(250, 247, 241, 0.25);
  border-radius: 999px;
  background: rgba(14, 16, 19, 0.35);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(221, 84, 33, 0.22);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(221, 84, 33, 0.22); }
  50% { box-shadow: 0 0 0 10px rgba(221, 84, 33, 0); }
}

.hero-title {
  font-size: var(--text-5xl);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-bottom: 1.75rem;
}
.hero-title em {
  color: var(--accent);
  font-style: italic;
}

.hero-lead {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: rgba(250, 247, 241, 0.92);
  max-width: 620px;
  margin: 0 0 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 247, 241, 0.2);
  max-width: 720px;
}
.hero-stats > div { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-stats dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FAF7F1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  margin: 0;
}
.hero-stats dd {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--paper);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  margin: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(250, 247, 241, 0.65);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.hero-scroll svg { color: var(--accent); animation: scrollHint 2.2s ease-in-out infinite; }
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================================
   SECTIONS (génériques)
   ============================================================ */
.section { padding: clamp(4rem, 6vw, 7rem) 0; position: relative; }

.section-head { max-width: 760px; margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

.section-index {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.section-index.dark {
  color: var(--accent);
  background: rgba(221, 84, 33, 0.12);
  border: 1px solid rgba(221, 84, 33, 0.25);
}

.section-title {
  font-size: var(--text-4xl);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-600);
  margin: 0;
}

/* ============================================================
   SERVICES
   ============================================================ */
.section-services { background: var(--paper); }

.services-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem 1.5rem;
  min-height: 220px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
  isolation: isolate;
}
/* Logo mark en filigrane (top-right) */
.service-card::after {
  content: "";
  position: absolute;
  top: -10px;
  right: -20px;
  width: 130px;
  height: 80px;
  background-image: url("../img/logo-mark-black.webp");
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms cubic-bezier(.2,.7,.2,1);
  z-index: 2;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 0.10; }

.service-card > * { position: relative; z-index: 1; }

.service-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.6rem;
  color: var(--ink-900);
}
.service-card p {
  color: var(--ink-600);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ============================================================
   ABOUT
   ============================================================ */
.section-about {
  background: var(--ink-900);
  color: var(--paper);
  position: relative;
}
.section-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 80% 0%, rgba(221, 84, 33, 0.08), transparent 60%),
    radial-gradient(ellipse 600px 400px at 0% 100%, rgba(157, 107, 47, 0.06), transparent 60%);
  pointer-events: none;
}

.section-about h2, .section-about h3 { color: var(--paper); }
.section-about em { color: var(--accent); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink-800);
}
.about-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.about-badge {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--paper);
  color: var(--ink-900);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-badge-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.about-badge-label {
  font-size: 0.78rem;
  line-height: 1.25;
  color: var(--ink-700);
}

.about-content { color: rgba(250, 247, 241, 0.85); }
.about-content .section-title { color: var(--paper); }

.about-lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--paper);
  margin: 0 0 1.25rem;
}
.about-content p {
  color: rgba(250, 247, 241, 0.78);
  margin: 0 0 2rem;
  line-height: 1.65;
}

.about-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  gap: 0.85rem;
}
.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--paper);
}
.about-features svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--accent);
  margin-top: 0.15rem;
}

/* ============================================================
   ZONE INTERVENTION
   ============================================================ */
/* ============================================================
   GALERIE / RÉALISATIONS
   ============================================================ */
.section-gallery {
  background: var(--white);
}
.gallery-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}
@media (max-width: 360px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-900);
  aspect-ratio: 4 / 3;
  isolation: isolate;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter var(--transition);
}
.gallery-item::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background-color: rgba(255, 255, 255, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 2;
  pointer-events: none;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 50%, rgba(10, 11, 14, 0.45));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 1;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 11, 14, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  animation: lightboxIn 220ms cubic-bezier(.2,.7,.2,1);
}
.lightbox[hidden] { display: none; }
@keyframes lightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: min(90vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  cursor: default;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--paper);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close { top: 1.25rem; right: 1.5rem; font-size: 1.6rem; }
.lightbox-prev { top: 50%; left: 1rem; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 1rem; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lightbox-prev { left: 0.35rem; }
  .lightbox-next { right: 0.35rem; }
}

/* ============================================================
   ZONE INTERVENTION
   ============================================================ */
.section-zone { background: var(--paper-soft); }

.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.zone-card {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}
.zone-card h3 {
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
}
.zone-card p {
  color: var(--ink-600);
  margin: 0 0 1.25rem;
  font-size: 0.975rem;
}
.zone-card-main {
  background: var(--ink-900);
  color: var(--paper);
  border-color: var(--ink-900);
}
.zone-card-main h3 { color: var(--paper); }
.zone-card-main p { color: rgba(250, 247, 241, 0.78); }

.zone-list {
  list-style: none;
  padding: 0; margin: 0;
}
.zone-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-top: 1px solid var(--paper-line);
  font-size: 0.95rem;
  color: var(--ink-700);
}
.zone-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.zone-card-main .zone-list li {
  border-top-color: rgba(250, 247, 241, 0.12);
  color: rgba(250, 247, 241, 0.88);
}

.zone-card-cta {
  display: flex;
  flex-direction: column;
  background: var(--paper-warm);
  border-color: var(--accent-soft);
}
.zone-card-cta .btn { margin-top: auto; }

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
  background: var(--ink-900);
  color: var(--paper);
  position: relative;
}
.section-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 0% 0%, rgba(221, 84, 33, 0.1), transparent 60%);
  pointer-events: none;
}

.section-contact .section-title { color: var(--paper); }
.section-contact em { color: var(--accent); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Layout centré (sans formulaire) */
.contact-center {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.contact-center .section-index { margin-bottom: 1rem; }
.contact-center .section-title { color: var(--paper); margin-bottom: 1.25rem; }
.contact-center .section-title em { color: var(--accent-bright); }

.contact-info { color: rgba(255, 255, 255, 0.85); }

.contact-lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--paper);
  margin: 0 0 2.5rem;
}

/* Gros CTA appel/email côte à côte */
.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0 0 2.5rem;
}
.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: var(--paper);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  text-align: left;
}
.contact-cta:hover, .contact-cta:focus-visible {
  border-color: var(--accent-bright);
  background: rgba(220, 27, 37, 0.10);
  transform: translateY(-2px);
}
.contact-cta-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
}
.contact-cta-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--paper);
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  text-align: left;
}
.contact-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.contact-list li:last-child { border-bottom: none; padding-bottom: 0; }
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  padding-top: 0.15rem;
}
.contact-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--paper);
}
a.contact-value { transition: color var(--transition); }
a.contact-value:hover { color: var(--accent-bright); }

/* Form */
.contact-form {
  background: var(--paper);
  color: var(--ink-900);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field-row .field { margin-bottom: 1.25rem; }

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-800);
}
.field label span { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--white);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(221, 84, 33, 0.15);
}

.field-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-700);
  line-height: 1.5;
}
.field-check input { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--accent); flex-shrink: 0; }
.field-check a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

.form-status {
  min-height: 1.5em;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--accent-darker); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink-900);
  color: rgba(250, 247, 241, 0.7);
  padding-top: clamp(3rem, 5vw, 5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 3rem;
}
.footer-brand .brand { color: var(--paper); font-size: 1.5rem; }
.brand-light { color: var(--paper); }
.footer-tagline {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 320px;
  color: rgba(250, 247, 241, 0.65);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--paper);
  margin: 0 0 1.25rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.site-footer a {
  color: rgba(250, 247, 241, 0.78);
  transition: color var(--transition);
}
.site-footer a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 241, 0.12);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: rgba(250, 247, 241, 0.55);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.footer-bottom p { margin: 0; }
.footer-credit { font-style: italic; }

/* ============================================================
   LEGAL PAGE
   ============================================================ */
.legal-hero {
  padding: 7rem 0 3rem;
  background: var(--ink-900);
  color: var(--paper);
}
.legal-hero .section-title { color: var(--paper); margin-bottom: 0.5rem; }
.legal-hero p { color: rgba(250, 247, 241, 0.75); max-width: 640px; margin: 0; }

.legal-content { padding: clamp(3rem, 5vw, 5rem) 0; background: var(--paper); }
.legal-content .container { max-width: 820px; }
.legal-content h2 {
  font-size: 1.65rem;
  margin: 2.5rem 0 0.75rem;
  scroll-margin-top: 100px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.legal-content p, .legal-content li {
  color: var(--ink-700);
  line-height: 1.7;
  font-size: 1rem;
}
.legal-content p { margin: 0 0 1rem; }
.legal-content ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-content strong { color: var(--ink-900); }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(250, 247, 241, 0.1);
  border: 1px solid rgba(250, 247, 241, 0.2);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--paper);
  transition: background var(--transition), border-color var(--transition);
}
.legal-back:hover { background: rgba(250, 247, 241, 0.18); border-color: rgba(250, 247, 241, 0.35); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 480px; margin: 0 auto; aspect-ratio: 4 / 5; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }
  :root { --header-h: 64px; }

  .contact-actions { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; flex-direction: column; justify-content: center; }
  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    transition: transform var(--transition), visibility 0s linear 320ms;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    pointer-events: none;
    visibility: hidden;
  }
  .nav-list.is-open {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: transform var(--transition), visibility 0s linear 0s;
  }
  .nav-list a {
    padding: 1rem 0.9rem;
    border-radius: var(--radius);
    font-size: 1.05rem;
    border-bottom: 1px solid var(--paper-line);
  }
  .nav-list li:last-child a { border-bottom: none; }
  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero-content { padding-block: 5rem 4rem; }
  .hero-eyebrow { font-size: 0.75rem; border-radius: var(--radius); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-scroll { display: none; }

  .field-row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 90px 1fr; gap: 0.25rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .service-card, .zone-card { padding: 1.5rem 1.25rem; }
  .contact-form { padding: 1.25rem; }
  .contact-list li { grid-template-columns: 1fr; gap: 0.25rem; }
  .contact-list li { border-bottom: 1px solid rgba(250, 247, 241, 0.12); }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Print */
@media print {
  .site-header, .hero-actions, .hero-scroll, .nav-toggle, .contact-form, .site-footer { display: none; }
  body { background: white; color: black; }
}
