/* samuelurbain.com — « urbain. » : encre, papier froid et un point cobalt */
:root {
  --ink: #12151a;
  --ink-2: #1d222a;
  --paper: #f6f7f9;
  --white: #ffffff;
  --muted: #5b6370;
  --line: #e1e4ea;
  --accent: #2f4cff;        /* le point de « urbain. » */
  --accent-deep: #1f36d6;
  --accent-soft: #e9edff;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ---------- Mot-symbole ---------- */
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.04em; text-decoration: none; line-height: 1; }
.wordmark span { color: var(--accent); }
.wordmark-sm { font-size: 1.15rem; margin-right: 6px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-lg { padding: 16px 26px; font-size: 1.1rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 70px; }
.wordmark:first-child { margin-right: auto; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* ---------- Accueil ---------- */
.hero { background: var(--paper); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero h1 {
  margin: 0 0 22px; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -.04em; text-wrap: balance;
}
.hero-lead { margin: 0 0 32px; max-width: 46ch; font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.facts strong { color: var(--ink); font-weight: 700; }

/* La signature : trois vrais sites en fenêtres, déployées en éventail au chargement */
.stack { position: relative; aspect-ratio: 1.25 / 1; }
.win {
  position: absolute; margin: 0; width: 78%; background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(18, 21, 26, .35), 0 0 0 1px rgba(18, 21, 26, .06);
  animation: fan 1.1s var(--ease) both;
}
.win-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f0f1f4; border-bottom: 1px solid var(--line); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3d7de; }
.win-bar span { margin-left: 10px; font-size: .75rem; color: var(--muted); background: var(--white); border-radius: 6px; padding: 2px 10px; }
.win img { width: 100%; aspect-ratio: 1200 / 750; object-fit: cover; object-position: top; }
.win-1 { top: 0; right: 0; --r: 4deg; animation-delay: .25s; }
.win-2 { top: 18%; right: 11%; --r: -2deg; animation-delay: .15s; }
.win-3 { top: 36%; right: 22%; --r: -6deg; animation-delay: 0s; }
.win { transform: rotate(var(--r)); }
@keyframes fan {
  from { opacity: 0; transform: translateY(40px) rotate(0deg); }
  to { opacity: 1; transform: rotate(var(--r)); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.title { margin: 0 0 14px; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.035em; max-width: 20ch; }
.section-lead { margin: 0 0 44px; max-width: 54ch; color: var(--muted); font-size: 1.1rem; }

/* Réalisations */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work-shot { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); margin-bottom: 18px; }
.work-shot img { width: 100%; aspect-ratio: 1200 / 750; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.work-shot:hover img { transform: scale(1.03); }
.work h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
.work-meta { margin: 2px 0 10px; color: var(--muted); font-size: .95rem; }
.work p:not(.work-meta) { margin: 0 0 12px; }
.work-link { font-weight: 600; color: var(--accent); text-underline-offset: 4px; }

/* Avantages */
.section-ink { background: var(--ink); color: var(--white); }
.section-ink .title { margin-bottom: 44px; }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.perk { padding: 28px 24px 0 0; }
.perk + .perk { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.perk h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; }
.perk h3::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-bottom: 16px; }
.perk p { margin: 0; color: rgba(255,255,255,.72); }

/* Forfaits */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; background: var(--white); }
.plan-featured { border: 2px solid var(--accent); box-shadow: 0 24px 50px -28px rgba(47, 76, 255, .55); }
.plan-tag { position: absolute; top: -13px; left: 26px; margin: 0; background: var(--accent); color: var(--white); font-size: .8rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.plan h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; }
.price { margin: 0 0 20px; font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.04em; line-height: 1.1; }
.price small { font-family: var(--text); font-weight: 500; font-size: .95rem; letter-spacing: 0; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plans-note { margin: 22px 0 0; color: var(--muted); font-size: .95rem; }

/* Démarche */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; }
.steps h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--muted); }

/* Questions */
.faq-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* Contact */
.cta { background: var(--accent); color: var(--white); }
.cta-inner { padding-top: 96px; padding-bottom: 96px; }
.cta h2 { margin: 0 0 16px; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.04em; max-width: 16ch; }
.cta p { margin: 0 0 32px; max-width: 52ch; font-size: 1.15rem; color: rgba(255,255,255,.85); }
.cta-mail { display: inline-block; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.6rem); letter-spacing: -.03em; color: var(--white); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; overflow-wrap: anywhere; }
.cta-mail:hover { text-decoration-color: rgba(255,255,255,.5); }
.cta :focus-visible { outline-color: var(--white); }

/* Pied de page */
.site-footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 28px 0 32px; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.site-footer .wordmark { color: var(--white); }

.ctabar { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-cta { padding: 9px 14px; font-size: .95rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 64px; }
  .stack { max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 64px 0; }
  .works, .plans, .steps { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr 1fr; }
  .perk, .perk + .perk { padding: 24px 16px 24px 0; border-left: 0; }
  .faq-inner { grid-template-columns: 1fr; gap: 20px; }
  .cta-inner { padding-top: 64px; padding-bottom: 64px; }
  .ctabar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .ctabar .btn { width: 100%; padding: 14px; }
  body { padding-bottom: 76px; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
  .perks { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Réalisation vedette : pleine largeur, image à gauche */
.work-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; }
.work-feature .work-shot { margin-bottom: 0; }
.work-feature h3 { font-size: 1.8rem; }
@media (max-width: 900px) {
  .work-feature { grid-template-columns: 1fr; gap: 0; }
  .work-feature .work-shot { margin-bottom: 18px; }
}
