:root {
  --ink: #11151F;
  --text: #3F4757;
  --mute: #667085;
  --line: #E1E4EA;
  --wall: #F2F3F6;
  --paper: #FFFFFF;
  --night: #1E2F52;
  --night-2: #172541;
  --on-night: #C3CCDF;
  --blue: #2F6BFF;
  --blue-2: #4A7BF7;
  --wait: #B54708;
  --wait-soft: #FEF0E6;
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 400 16px/1.55 Inter, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.dot { color: var(--blue-2); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ——— En-tête : l'index des réalisations ——— */
.hero { background: var(--night); color: #fff; }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1320px; margin: 0 auto; padding: 18px var(--gutter);
}
.brand { font-weight: 800; font-size: 22px; letter-spacing: -0.04em; text-decoration: none; }
.cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background-color .15s ease;
}
.cta:hover { background: #E6ECFF; }
.hero-in { max-width: 1320px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(48px, 8vw, 104px); }
h1 {
  margin: 0; font-weight: 800; letter-spacing: -0.055em; line-height: .9;
  font-size: clamp(64px, 15vw, 212px);
}
.intro { max-width: 34em; margin: 28px 0 0; color: var(--on-night); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; text-wrap: pretty; }

.index { list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; border-top: 1px solid rgba(195, 204, 223, .22); }
.index li { border-bottom: 1px solid rgba(195, 204, 223, .22); }
.index a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  padding: 14px 0; text-decoration: none;
}
.ix-name {
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
  font-size: clamp(30px, 5.2vw, 68px); color: #fff;
  transition: color .15s ease, transform .2s ease;
}
.ix-sector { color: var(--on-night); font-size: 14px; text-align: right; }
.index a:hover .ix-name, .index a:focus-visible .ix-name { color: var(--blue-2); transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) { .index a:hover .ix-name { transform: none; } }

.peek {
  position: fixed; left: 0; top: 0; z-index: 5; width: 320px; height: auto; pointer-events: none;
  border-radius: 8px; box-shadow: 0 24px 60px rgba(6, 12, 28, .45);
  opacity: 0; transition: opacity .15s ease;
}
.peek.on { opacity: 1; }

/* Une seule entrée orchestrée : l'index se déroule au chargement */
@media (prefers-reduced-motion: no-preference) {
  h1, .intro { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .intro { animation-delay: .08s; }
  .index li { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .index li:nth-child(1) { animation-delay: .16s } .index li:nth-child(2) { animation-delay: .2s }
  .index li:nth-child(3) { animation-delay: .24s } .index li:nth-child(4) { animation-delay: .28s }
  .index li:nth-child(5) { animation-delay: .32s } .index li:nth-child(6) { animation-delay: .36s }
  .index li:nth-child(7) { animation-delay: .4s } .index li:nth-child(8) { animation-delay: .44s }
  .index li:nth-child(9) { animation-delay: .48s } .index li:nth-child(10) { animation-delay: .52s }
  .index li:nth-child(11) { animation-delay: .56s } .index li:nth-child(12) { animation-delay: .6s }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ——— Réalisations ——— */
main { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.work {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px);
  align-items: center; padding: clamp(64px, 9vw, 128px) 0;
  border-bottom: 1px solid var(--line); scroll-margin-top: 16px;
}
.work:last-child { border-bottom: 0; }
.sector { margin: 0; color: var(--mute); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.status { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--wait-soft); color: var(--wait); font-size: 12px; font-weight: 600; }
h2 { margin: 10px 0 0; font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-size: clamp(40px, 5vw, 68px); text-wrap: balance; }
.lead { margin: 20px 0 0; max-width: 32em; color: var(--text); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.built { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.built li {
  padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.35;
}
.visit {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 30px;
  font-weight: 600; font-size: 15px; color: var(--blue); text-decoration: none;
  border-bottom: 1.5px solid rgba(47, 107, 255, .3); padding-bottom: 2px; transition: border-color .15s ease;
}
.visit:hover { border-color: var(--blue); }
.ext { width: 15px; height: 15px; }
.private { margin: 30px 0 0; color: var(--mute); font-size: 15px; }

/* Ordinateur + téléphone */
.shots { position: relative; padding: 0 0 clamp(36px, 6vw, 72px) 0; }
.desk {
  width: 100%; border-radius: 10px; background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 21, 31, .08), 0 2px 6px rgba(17, 21, 31, .05), 0 28px 60px -24px rgba(17, 21, 31, .28);
}
.phone {
  position: absolute; right: clamp(-8px, -1vw, 0px); bottom: 0; width: 24%; min-width: 96px;
  border-radius: clamp(14px, 2.2vw, 28px); border: clamp(4px, .55vw, 7px) solid var(--ink); background: var(--ink);
  box-shadow: 0 24px 48px -16px rgba(17, 21, 31, .45);
  aspect-ratio: 390 / 760; object-fit: cover; object-position: top;
}
.work:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.work:nth-child(even) .work-text { order: 2; }
.work:nth-child(even) .phone { right: auto; left: clamp(-8px, -1vw, 0px); }

/* GGM : pas de capture publique, une plaque à ses couleurs */
.plate {
  aspect-ratio: 16 / 10; border-radius: 10px; padding: clamp(24px, 4vw, 48px);
  background: #17171A; color: #F3E7C9; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 28px 60px -24px rgba(17, 21, 31, .4);
}
.plate-mark { font-weight: 800; letter-spacing: -0.06em; line-height: .85; font-size: clamp(72px, 13vw, 180px); color: #C9A45C; }
.plate ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plate li { padding: 6px 12px; border: 1px solid rgba(201, 164, 92, .35); border-radius: 999px; font-size: 13.5px; }

/* ——— Pied de page ——— */
.foot { background: var(--night); color: #fff; }
.foot-in { max-width: 1320px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 40px; }
.foot-title { margin: 0; font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-size: clamp(40px, 6.5vw, 96px); text-wrap: balance; }
.foot-text { margin: 20px 0 0; color: var(--on-night); font-size: 18px; max-width: 34em; }
.foot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.cta.big { height: 48px; padding: 0 24px; font-size: 15px; }
.tel { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(255, 255, 255, .3); padding-bottom: 2px; }
.tel:hover { border-color: #fff; }
.legal { margin: clamp(56px, 8vw, 96px) 0 0; padding-top: 20px; border-top: 1px solid rgba(195, 204, 223, .22); color: var(--on-night); font-size: 13px; }

@media (max-width: 900px) {
  .work, .work:nth-child(even) { grid-template-columns: 1fr; gap: 36px; }
  .work:nth-child(even) .work-text { order: 0; }
  .ix-sector { text-align: left; width: 100%; font-size: 13px; }
  .index a { padding: 12px 0; gap: 2px; }
  .lead { font-size: 16px; }
}
@media (max-width: 520px) {
  .cta { height: 36px; padding: 0 14px; font-size: 13px; }
  .phone { width: 30%; }
  .shots { padding-bottom: 44px; }
}
