/* Piauly — site vitrine */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1e5d8f;
  --blue-strong: #145183;
  --blue-night: #123f63;
  --sky: #e4edf6;
  --sky-deep: #c9d9e8;
  --gold: #e0a93c;
  --paper: #f7f9fc;
  --white: #ffffff;
  --ink: #1f2937;
  --ink-soft: #4a5565;
  --line: #dce3ec;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-strong); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-s);
  z-index: 10;
}
.skip:focus { top: 16px; color: var(--white); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 {
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0; }
sup { line-height: 0; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-strong); color: var(--white); }
.btn-ghost { color: var(--blue-strong); border: 2px solid var(--sky-deep); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-strong); }
.btn-light { background: var(--white); color: var(--blue-night); }
.btn-light:hover { background: var(--sky); color: var(--blue-night); }

/* En-tête */
.site-header { padding: 22px 0; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.nav a:not(.btn):hover { color: var(--blue); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 16px; }

@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
  .brand img { width: 124px; }
}

/* Hero */
.hero { padding: clamp(24px, 5vw, 56px) 0 clamp(64px, 9vw, 120px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-text { display: flex; flex-direction: column; gap: 26px; }
.hero-text .lead {
  max-width: 34em;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 540 / 600;
  justify-self: end;
}
.facade {
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
  height: auto;
}
.facade .body { fill: var(--sky); }
.facade .ledge { fill: var(--sky-deep); }
.facade .win { fill: var(--sky-deep); }
.facade .door { fill: var(--blue); }
.facade .lit { fill: var(--gold); animation: light-on 0.7s ease-out 0.9s both; }
.facade .glow { opacity: 0.55; animation: glow-on 1.2s ease-out 0.9s both; }

@keyframes light-on {
  from { fill: var(--sky-deep); }
  to { fill: var(--gold); }
}
@keyframes glow-on {
  from { opacity: 0; }
  to { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .facade .lit, .facade .glow { animation: none; }
}

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { justify-self: center; max-width: 460px; }
}

/* Téléphone */
.phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56%;
  aspect-ratio: 300 / 610;
  padding: 9px;
  border-radius: 44px;
  background: #121821;
  box-shadow: 0 30px 60px -20px rgba(18, 63, 99, 0.45);
}
.screen {
  height: 100%;
  border-radius: 36px;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: clamp(10px, 1.02vw, 13px);
  line-height: 1.35;
}
.screen-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2.6em 1.3em 0.9em;
}
.screen-top img { width: 1.9em; height: auto; }
.screen-top strong { font-size: 1.25em; font-weight: 800; letter-spacing: -0.01em; }
.screen-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  padding: 0 1em;
}
.tile {
  background: var(--white);
  border-radius: 1.2em;
  padding: 0.95em 1em;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  box-shadow: 0 1px 0 var(--line);
}
.tile-title { font-weight: 700; font-size: 1.05em; }
.tile-meta { color: var(--ink-soft); }
.tile-key {
  background: var(--blue);
  color: var(--white);
}
.tile-key .tile-meta { color: #d6e4f1; }
.tile-btn {
  align-self: flex-start;
  margin-top: 0.35em;
  padding: 0.45em 0.95em;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-night);
  font-weight: 700;
}
.chip {
  align-self: flex-start;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue-strong);
  font-weight: 700;
  font-size: 0.92em;
}
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6em;
  padding-top: 0.35em;
  border-top: 1px solid var(--line);
}
.info-row:first-of-type { border-top: 0; padding-top: 0; }
.info-row span:last-child { font-weight: 700; }
.screen-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.9em 0.6em 1.5em;
  background: var(--white);
  border-top: 1px solid var(--line);
  margin-top: 0.8em;
}
.screen-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  color: var(--ink-soft);
  font-size: 0.74em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.screen-nav span.on { color: var(--blue); }
.screen-nav svg { width: 1.7em; height: 1.7em; }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 40em;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head p { color: var(--ink-soft); font-size: 19px; }

/* Parcours */
.journey { background: var(--white); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: calc((100% - 4 * 28px) / 5 - 24px);
  height: 2px;
  background: var(--line);
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--sky-deep);
  color: var(--blue-strong);
  font-weight: 800;
  font-size: 18px;
  position: relative;
  margin-bottom: 8px;
}
.step.home::before {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.step p { color: var(--ink-soft); font-size: 17px; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .step { padding-left: 72px; min-height: 48px; }
  .step::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Au quotidien */
.features { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text { display: flex; flex-direction: column; gap: 16px; max-width: 30em; }
.feature-text h3 { font-size: clamp(24px, 2.2vw, 28px); letter-spacing: -0.02em; }
.feature-text p { color: var(--ink-soft); }
.feature-text ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-text li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
}
.feature-text li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--blue);
}

@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .feature-text { order: 0; }
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
}
.panel-title { font-weight: 800; font-size: 18px; }

.doc {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.doc:first-of-type { border-top: 0; }
.doc-icon {
  width: 40px;
  height: 48px;
  border-radius: 8px;
  background: var(--sky);
  position: relative;
}
.doc-icon::after {
  content: "PDF";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--blue-strong);
}
.doc strong { display: block; font-weight: 700; }
.doc span { color: var(--ink-soft); font-size: 15px; }
.doc .new {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 700;
}

.request-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.request-head strong { font-size: 18px; }
.request-head span { color: var(--ink-soft); font-size: 15px; display: block; }
.urgent {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fbeede;
  color: #8a5a0b;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.track {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.track li {
  padding-top: 10px;
  border-top: 4px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}
.track li.done { border-top-color: var(--blue); color: var(--ink); }
.bubble {
  align-self: flex-start;
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  background: var(--sky);
  font-size: 15px;
}
.bubble small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 4px; }

.notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  background: var(--blue);
  color: var(--white);
}
.notice span { color: #d6e4f1; font-size: 15px; }
.facts { display: flex; flex-direction: column; }
.fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.fact:first-child { border-top: 0; }
.fact span:first-child { color: var(--ink-soft); }
.fact span:last-child { font-weight: 700; text-align: right; }

/* Propriétaires */
.owners {
  background: var(--blue-night);
  color: var(--white);
}
.owners h2 { color: var(--white); }
.owners .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.owners-intro { display: flex; flex-direction: column; gap: 20px; }
.owners-intro p { color: #d6e4f1; font-size: 19px; max-width: 28em; }
.owners-intro .btn { align-self: flex-start; margin-top: 8px; }
.owners-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.owners-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.owners-list li:first-child { border-top: 0; padding-top: 0; }
.owners-list strong { font-size: 20px; font-weight: 700; color: var(--white); }
.owners-list span { color: #d6e4f1; }

@media (max-width: 860px) {
  .owners .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Questions */
.faq { max-width: 820px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 20px;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(45deg) translateY(-4px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq details p { margin-top: 12px; color: var(--ink-soft); max-width: 44em; }

/* Pied de page */
.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; color: var(--ink-soft); }
.footer-brand img { width: 40px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }

/* Crédit */
.credit {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
}
.credit a { display: inline-flex; padding: 4px 0; border-radius: 4px; }
.credit img { width: auto; height: 18px; }

/* Pages légales */
.legal { padding: 24px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 4.4vw, 52px); margin-bottom: 32px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0 0; }
.todo {
  background: #fbeede;
  color: #8a5a0b;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
