/* ============================================================
   TIAGO Plombier Paris 7 — terminal chrome, section palette
   ============================================================ */

:root {
  --bg-1: #0a0a0a;
  --bg-2: #e10600;
  --bg-3: #003c8a;
  --bg-4: #f4ff33;

  --ink-on-dark: #f5f2ec;
  --ink-on-red: #fff8f4;
  --ink-on-blue: #f2f6ff;
  --ink-on-yellow: #0a0a0a;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--ink-on-dark);
  font-family: var(--mono);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

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

a { color: inherit; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--bg-4); color: #0a0a0a; padding: 0.6rem 1rem;
  font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   TERMINAL CHROME
   ============================================================ */

.terminal {
  max-width: 1440px;
  margin: 0 auto;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
  background: var(--bg-1);
}

.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.chrome-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem var(--pad);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #b9b4ac;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dots { display: inline-flex; gap: 0.4rem; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dots .d1 { background: #ff5f57; }
.dots .d2 { background: #febc2e; }
.dots .d3 { background: #28c840; }

.chrome-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chrome-status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #f4ff33;
  font-weight: 600;
}

.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 0 0 rgba(40,200,64,0.7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40,200,64,0.6); }
  70% { box-shadow: 0 0 0 9px rgba(40,200,64,0); }
  100% { box-shadow: 0 0 0 0 rgba(40,200,64,0); }
}

.tabs {
  display: flex;
  gap: 0.15rem;
  padding: 0 var(--pad);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: none;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  text-decoration: none;
  color: #cfc9c0;
  border-bottom: 2px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.tab:hover { color: #fff; background: rgba(255,255,255,0.05); }
.tab:focus-visible { outline-offset: -2px; }

/* ============================================================
   SECTIONS + PALETTE ROTATION
   ============================================================ */

.sec {
  padding: clamp(3.5rem, 8vw, 7rem) var(--pad);
  position: relative;
  isolation: isolate;
}

.sec-1 { background: var(--bg-1); color: var(--ink-on-dark); }
.sec-2 { background: var(--bg-2); color: var(--ink-on-red); }
.sec-3 { background: var(--bg-3); color: var(--ink-on-blue); }
.sec-4 { background: var(--bg-4); color: var(--ink-on-yellow); }

.wrap { max-width: var(--wrap); margin: 0 auto; }

/* prompt lines */
.prompt {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  opacity: 0.72;
  margin: 0 0 1.1rem;
  word-break: break-word;
}
.sig { font-weight: 700; opacity: 0.9; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 1.4rem + 5.2vw, 5rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.1rem); }

h3 {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
}

.lede {
  max-width: 62ch;
  font-size: 1.02em;
  opacity: 0.92;
  margin: 0 0 2rem;
}

/* scribble annotation */
.scribble {
  background: none;
  color: inherit;
  position: relative;
  padding: 0 0.06em;
  white-space: nowrap;
}
.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.16em;
  height: 0.42em;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M2 13 C 30 4, 52 17, 78 9 S 128 3, 152 12 S 186 8, 198 11' fill='none' stroke='%23f4ff33' stroke-width='3.2' stroke-linecap='round'/></svg>");
}
.sec-4 .scribble::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M2 13 C 30 4, 52 17, 78 9 S 128 3, 152 12 S 186 8, 198 11' fill='none' stroke='%23003c8a' stroke-width='3.2' stroke-linecap='round'/></svg>");
}

/* ============================================================
   HERO
   ============================================================ */

.sec-1#accueil {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 0 2.2rem;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  min-height: 56px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.86rem;
  border: 2px solid transparent;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-call {
  background: var(--bg-4);
  color: #0a0a0a;
  border-color: var(--bg-4);
}
.btn-call .btn-k { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.7; }
.btn-call .btn-v { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.01em; }

.btn-ghost {
  border-color: rgba(245,242,236,0.4);
  color: var(--ink-on-dark);
}
.btn-ghost:hover { background: rgba(245,242,236,0.1); border-color: var(--ink-on-dark); }

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem 1.5rem;
  border-top: 1px solid rgba(245,242,236,0.18);
  padding-top: 1.4rem;
  font-size: 0.84rem;
  opacity: 0.9;
}
.hero-facts b { display: block; font-size: 1.35rem; font-family: var(--serif); font-weight: 700; }

.hero-figure {
  margin: 0;
  border: 1px solid rgba(245,242,236,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  background: #141414;
}
.hero-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-figure figcaption {
  font-size: 0.76rem;
  padding: 0.7rem 0.9rem;
  color: #b9b4ac;
  border-top: 1px solid rgba(245,242,236,0.14);
}

@media (min-width: 900px) {
  .sec-1#accueil {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas: "text figure";
  }
  .sec-1#accueil .wrap { grid-area: text; }
  .sec-1#accueil .hero-figure { grid-area: figure; }
}

/* ============================================================
   SERVICES GRID
   ============================================================ */

.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1px;
  background: rgba(255,248,244,0.28);
  border: 1px solid rgba(255,248,244,0.28);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  background: var(--bg-2);
  padding: 1.5rem 1.4rem 1.3rem;
  transition: background 200ms ease;
}
.card:hover { background: #c90500; }
.card p { margin: 0 0 0.7rem; font-size: 0.9rem; opacity: 0.95; }
.card .meta {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.78;
  border-top: 1px solid rgba(255,248,244,0.3);
  padding-top: 0.7rem;
}

/* ============================================================
   SIGNATURE — DRAG BAND
   ============================================================ */

.band {
  overflow: hidden;
  cursor: grab;
  padding: 0.5rem 0 1rem;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.band.is-dragging { cursor: grabbing; }

.band-track {
  display: flex;
  gap: 1.1rem;
  padding: 0 var(--pad);
  width: max-content;
  will-change: transform;
}

.shot {
  flex: none;
  width: min(78vw, 340px);
  margin: 0;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(242,246,255,0.28);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; pointer-events: none; }
.shot figcaption {
  font-size: 0.78rem;
  padding: 0.75rem 0.85rem;
  line-height: 1.5;
  opacity: 0.95;
}
.shot figcaption b { display: block; font-size: 0.82rem; }

.band-hint {
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0.4rem 0 0;
}

/* ============================================================
   MÉTHODE
   ============================================================ */

.steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.steps li {
  border-top: 3px solid #0a0a0a;
  padding-top: 1rem;
}
.step-n {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.55;
}
.steps p { margin: 0; font-size: 0.9rem; }

.note {
  border: 2px dashed #0a0a0a;
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  max-width: 78ch;
  background: rgba(10,10,10,0.05);
}
.note p { margin: 0; font-size: 0.9rem; }

/* ============================================================
   AVIS
   ============================================================ */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.quotes blockquote {
  margin: 0;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(245,242,236,0.22);
  border-radius: var(--radius);
  background: #131313;
}
.quotes blockquote p {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0 0 0.9rem;
}
.quotes cite {
  font-style: normal;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

/* ============================================================
   HORAIRES
   ============================================================ */

.hours {
  width: 100%;
  max-width: 620px;
  border-collapse: collapse;
  margin: 0 0 1.4rem;
  font-size: 0.92rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid rgba(242,246,255,0.28);
}
.hours th { font-weight: 700; width: 40%; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: none; }
.open { color: #b9ff9e; font-weight: 700; }

.hours-note {
  max-width: 62ch;
  font-size: 0.86rem;
  opacity: 0.88;
  margin: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
}

.contact-block {
  border-top: 3px solid #0a0a0a;
  padding-top: 1rem;
}
.contact-block p { margin: 0 0 0.7rem; font-size: 0.9rem; }
.contact-block address { font-style: normal; margin: 0 0 0.7rem; font-size: 0.92rem; }

.big-phone { margin: 0 0 0.8rem; }
.big-phone a {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid #0a0a0a;
}
.big-phone a:hover { background: #0a0a0a; color: var(--bg-4); }

.wayfinding { font-size: 0.84rem; opacity: 0.85; }

.map-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.foot {
  background: #0a0a0a;
  color: var(--ink-on-dark);
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad) 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.foot-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.foot-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.foot-line { margin: 0 0 0.3rem; font-size: 0.85rem; opacity: 0.85; }
.foot-line a { text-decoration: underline; text-underline-offset: 3px; }

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  align-content: start;
}
.foot-nav a {
  font-size: 0.84rem;
  text-decoration: none;
  color: #cfc9c0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.foot-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 760px) {
  .foot-inner { grid-template-columns: 1.4fr 1fr; }
}

.claim-wrap { padding: 1.2rem 0 0.6rem; }

.claim-banner {
  display: inline-block;
  font-size: 0.76rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  color: #cfc9c0;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}
.claim-banner:hover { background: rgba(255,255,255,0.14); color: #fff; }

.muted {
  font-size: 0.74rem;
  opacity: 0.6;
  margin: 0.4rem 0 0;
  text-align: center;
}
.muted a { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   MOTION — fade + rise on scroll enter
   ============================================================ */

@keyframes fadeRise {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec > .wrap,
    .sec > .band,
    .sec > .band-hint {
      animation: fadeRise 420ms cubic-bezier(.2,.7,.1,1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }
}

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