/* ── Transition inter-pages (amélioration progressive) ─── */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.22s;
}
/* Accessibilité : couper l'animation si mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ── Polices auto-hébergées ─────────────────── */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/dm-serif-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/dm-serif-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/dm-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/dm-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ─────────────────────────────────── */
:root {
  --ink:     #0F1B2D;
  --navy:    #1B3D6B;
  --blue:    #2B6A9E;
  --sky:     #41A5D3;
  --orange:  #D94E1E;
  --fog:     #EEF3F8;
  --white:   #ffffff;
  --muted:   #4A6070;
  --border:  #D2DFEA;
  --r:       10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--fog);
  color: var(--ink);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout helpers ─────────────────────────── */
.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── NAV ────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 0 24px;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.on {
  background: rgba(238,243,248,.93);
  backdrop-filter: blur(10px);
  border-color: var(--border);
}
.nav-row {
  max-width: 1080px;
  margin-inline: auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 93px;
  width: auto;
  aspect-ratio: 88 / 62;
  display: block;
}
.nav-links {
  display: none;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-tel {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 50px;
  transition: opacity .2s;
}
.nav-tel:hover { opacity: .85; }

.burger {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px; height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: border-color .25s;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
/* Ouverture : les barres extérieures s'écartent, le milieu ne bouge pas */
.burger.on span:nth-child(1) { transform: translateY(-4px); }
.burger.on span:nth-child(3) { transform: translateY(4px); }

.drawer {
  position: fixed;
  inset: 64px 0 0;
  background: var(--fog);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 49;
  border-bottom: 1px solid var(--border);
}
.drawer.on { transform: none; }
.drawer a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.drawer .cta {
  background: var(--navy);
  color: var(--white);
  border-radius: 50px;
  padding: 14px 24px;
  font-weight: 600;
  text-align: center;
  border: none;
  margin-top: 4px;
}

@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-tel   { display: flex; }
  .burger    { display: none; }
}

/* ── HERO ───────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 64px;
}
.hero-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 60px 40px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 28px;
}
.hero-tag-line {
  width: 28px; height: 1px;
  background: var(--orange);
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--blue);
}

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}
.btn-dark {
  background: var(--ink);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s;
}
.btn-dark:hover { background: var(--blue); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 26px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .2s;
}
.btn-ghost:hover { border-color: var(--ink); }

/* Hero bottom bar */
.hero-bar {
  border-top: 1px solid var(--border);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
}
.hero-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--muted);
}
.hero-bar-icon {
  width: 32px; height: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--sky);
  flex-shrink: 0;
}

/* ── SECTION COMMONS ────────────────────────── */
section { padding-block: 88px; }

.sec-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--muted);
}
.sec-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--ink);
}

/* ── SERVICES ───────────────────────────────── */
.services { background: var(--white); }

.services-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 52px;
}
.services-top p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 38ch;
}

.services-list {
  display: grid;
  gap: 2px;
}
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: padding-left .25s;
}
.service-row:first-child { border-top: 1px solid var(--border); }
.service-row:hover { padding-left: 8px; }

.service-row-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.service-num {
  font-family: 'DM Serif Display', serif;
  font-size: .85rem;
  color: var(--muted);
  width: 24px;
  flex-shrink: 0;
}
.service-row h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--ink);
  font-weight: 400;
}
.service-row p {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}
.service-tag {
  background: var(--fog);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.service-row:hover .service-tag {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ── MATÉRIAUX ──────────────────────────────── */
.mat-section {
  margin-top: 40px;
}
.mat-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.mat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s, box-shadow .2s;
}
.mat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.mat-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.mat-card { position: relative; padding-top: 24px; }
.mat-card strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  display: block;
  line-height: 1.2;
}
.mat-card span {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Accents par matériau */
.mat-card--noir  .mat-top  { background: #1e2a38; }
.mat-card--galva .mat-top  { background: #8695a0; }
.mat-card--cuivre .mat-top { background: #c07a3a; }
.mat-card--inox  .mat-top  { background: #9fb3c0; }


/* ── ABOUT ──────────────────────────────────── */
.about { background: var(--navy); }
.about .sec-label { color: rgba(255,255,255,.5); }
.about .sec-label::before { background: rgba(255,255,255,.3); }
.about .sec-title { color: var(--white); }

.about-layout {
  display: grid;
  gap: 52px;
  align-items: center;
}

.about-text p {
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  line-height: 1.8;
  margin-top: 20px;
  max-width: 52ch;
}
.about-text p + p { margin-top: 12px; }

.about-diff {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 20px;
  font-size: .88rem;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
}

.about-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.cert {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
}
.cert svg { flex-shrink: 0; opacity: .7; }

.about-photo {
  max-width: 420px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 800px) {
  .about-layout { grid-template-columns: 1fr 1fr; }
  .about-photo  { max-width: none; margin: 0; }
}

/* ── ZONE ───────────────────────────────────── */
.zone { background: var(--fog); }

.zone-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}
.zone-text p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 46ch;
}
.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.zone-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--navy);
  border-left: 3px solid var(--orange);
}

/* Map placeholder */
.zone-map {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
}

@media (min-width: 800px) {
  .zone-layout { grid-template-columns: 1fr 1fr; }
}

/* ── CONTACT ────────────────────────────────── */
.contact { background: var(--white); }

.contact-layout {
  display: grid;
  gap: 48px;
  align-items: start;
}

.contact-intro p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--fog);
  border-radius: var(--r);
  transition: background .2s;
}
.channel:hover { background: var(--border); }
.channel-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.channel-icon {
  width: 40px; height: 40px;
  background: var(--white);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--sky);
  flex-shrink: 0;
}
.channel-label { font-size: .75rem; color: var(--muted); }
.channel-val   {
  font-size: .95rem; font-weight: 600; color: var(--ink);
  overflow-wrap: anywhere;
  user-select: text; -webkit-user-select: text; -webkit-user-drag: none;
}

.channel-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 8px 12px;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: var(--sky);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.channel-copy:hover { border-color: var(--sky); }
.channel-copy .icon-check { display: none; }
.channel-copy.copied {
  color: #fff;
  background: var(--sky);
  border-color: var(--sky);
}
.channel-copy.copied .icon-copy  { display: none; }
.channel-copy.copied .icon-check { display: inline; }



/* ── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.45);
  padding-block: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-logo img {
  height: 81px;
  width: auto;
  aspect-ratio: 76 / 54;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer-logo:hover img { opacity: 1; }
.footer-inner a {
  font-size: .82rem;
  transition: color .2s;
}
.footer-inner a:hover { color: var(--white); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── Reveal ─────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.rv.in { opacity: 1; transform: none; }

/* ── RÉALISATIONS ───────────────────────────── */
.real-hero {
  padding: 7rem 0 0;
  background: var(--fog);
}
.real-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--ink);
  line-height: 1.15;
  margin: .5rem 0 .75rem;
}
.real-hero h1 em { color: var(--blue); font-style: italic; }
.real-hero > .wrap > p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
}

.real-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 2rem 0 2.5rem;
}
.filter-btn {
  padding: 9px 18px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.filter-btn:hover { background: var(--border); }
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.real-section { padding: 2.5rem 0 5rem; }
.real-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.real-card {
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--border);
  transition: transform .2s, box-shadow .2s;
}
.real-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.real-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.real-card:hover img { transform: scale(1.04); }
.real-card.hidden { display: none; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: min(90vw, 1000px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.real-section + .real-section { border-top: 1px solid var(--border); }
.real-section-header { margin-bottom: 2rem; }
