/* OBYA — identité visuelle « Sable cuivre »
   Cuivre #B8643A · Brun profond #2B2420 · Sable #EFE7DC
   Police : Bricolage Grotesque (titres 700, texte 400) */

:root {
  --ink: #2b2420;
  --ink-soft: #4f443d;
  --muted: #7d7067;
  --paper: #f7f2eb;
  --paper-2: #efe7dc;
  --line: #e2d7c9;
  --accent: #b8643a;
  --accent-dark: #9a4f2b;
  --accent-light: #d27a4d;
  --white: #ffffff;

  --serif: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700; font-size: 0.98rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--accent); color: var(--white); }
.btn-lg { padding: 18px 34px; font-size: 1.1rem; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 242, 235, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: block; line-height: 0; }
.logo img { height: 35px; width: auto; }
.footer-logo { height: 28px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); }
.nav a:hover { color: var(--accent); }
.nav .btn { padding: 10px 20px; color: var(--paper); }
.nav .btn:hover { color: var(--white); }

.menu-toggle {
  display: none;
  font: inherit; font-weight: 700; font-size: 0.95rem;
  background: none; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 9px 20px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 104px; }
.hero h1 { max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; margin: 28px 0 40px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

.proof {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line);
}
.proof strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.proof p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Sections ---------- */
section { padding: 104px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head p { color: var(--ink-soft); margin-top: 18px; font-size: 1.08rem; }

.alt { background: var(--paper-2); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.card .num { font-family: var(--serif); color: var(--accent); font-size: 1rem; font-weight: 600; margin-bottom: 18px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-soft); }
.card ul { list-style: none; margin-top: 20px; display: grid; gap: 8px; }
.card li { padding-left: 22px; position: relative; font-size: 0.96rem; }
.card li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 10px; height: 2px; background: var(--accent);
}

/* Méthode */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 24px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--accent); margin-bottom: 12px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

.promises {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px;
}
.promise { background: var(--white); border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line); }
.promise strong { display: block; margin-bottom: 4px; }
.promise span { color: var(--muted); font-size: 0.92rem; }

/* Réalisations */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.case .tag {
  align-self: flex-start;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--paper); color: var(--ink-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.case h3 { margin-bottom: 12px; }
.case p { color: var(--ink-soft); font-size: 0.97rem; }
.case .result { margin-top: auto; padding-top: 20px; font-weight: 600; font-size: 0.94rem; }

/* À propos */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.about-text p { color: var(--ink-soft); font-size: 1.1rem; }
.about-text p + p { margin-top: 18px; }
.about-sign { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.about-sign img { width: 44px; height: auto; }
.about-sign strong { display: block; }
.about-sign span { color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.contact .eyebrow { color: var(--accent-light); }
.contact p.lead { opacity: 0.8; font-size: 1.12rem; margin: 20px 0 36px; max-width: 48ch; }
.contact-list { list-style: none; display: grid; gap: 20px; }
.contact-list li { border-top: 1px solid rgba(239, 231, 220, 0.18); padding-top: 16px; }
.contact-list small { display: block; opacity: 0.6; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.contact-list a { text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.contact-list a:hover { color: var(--accent-light); }

/* Pied de page */
.footer { background: var(--ink); color: rgba(239, 231, 220, 0.6); font-size: 0.88rem; padding: 28px 0 40px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(239, 231, 220, 0.12); padding-top: 28px; }
.footer a { color: rgba(239, 231, 220, 0.8); }

/* Page mentions légales */
.legal { padding: 72px 0 104px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 20px; }
.legal .todo { background: #f3dccb; padding: 2px 6px; border-radius: 4px; }


/* ---------- Ajustements « moins gabarit » ---------- */
.proof-line { margin-top: 40px; color: var(--muted); font-size: 0.95rem; }
.method-note { margin-top: 48px; max-width: 70ch; color: var(--ink-soft); padding-top: 24px; border-top: 1px solid var(--line); }
.section-head h2 + p { margin-top: 14px; }
.project-text .tag, .post-meta .tag, .article .tag {
  background: none; padding: 0; border-radius: 0;
  text-transform: none; letter-spacing: 0; font-size: 0.92rem; font-weight: 600; color: var(--accent);
}
.step::before { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }

/* ---------- Illustrations ---------- */
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero-art { width: 100%; height: auto; }
.card .icon { width: 56px; height: 56px; margin-bottom: 18px; }
.card .num { margin-bottom: 8px; }

.contact { position: relative; overflow: hidden; }
.contact .wrap { position: relative; z-index: 1; }
.contact-art { position: absolute; right: -60px; bottom: 0; width: 560px; max-width: 70%; height: auto; pointer-events: none; }

/* ---------- Projets ---------- */
.projects { display: grid; gap: 72px; }
.project { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.project.reverse .project-media { order: 2; }
.project-text .tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--paper); color: var(--ink-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.project-text h3 { font-size: 1.7rem; margin-bottom: 14px; }
.project-text p { color: var(--ink-soft); margin-top: 10px; }
.project-text .result { color: var(--accent); font-weight: 600; font-size: 0.94rem; margin-top: 18px; }

.project-media { position: relative; }
.shot { display: block; height: auto; border-radius: 12px; background: var(--white); box-shadow: 0 1px 2px rgba(43, 36, 32, 0.08), 0 18px 40px -18px rgba(43, 36, 32, 0.35); }
.shot-screen { width: 100%; border: 1px solid var(--line); }

.media-duo { padding: 0 0 48px 0; }
.media-duo .shot-page { width: 52%; margin-left: auto; border: 1px solid var(--line); }
.media-duo .shot-screen { position: absolute; left: 0; bottom: 0; width: 70%; }

.media-trio { padding: 0 0 56px 0; }
.media-trio .shot-page { border: 1px solid var(--line); }
.media-trio .page-real { position: relative; z-index: 2; width: 54%; margin-left: auto; margin-right: 4%; }
.media-trio .page-demo { position: absolute; z-index: 1; top: 28px; left: 8%; width: 44%; }
.media-trio .shot-screen { position: absolute; z-index: 3; left: 0; bottom: 0; width: 60%; }
.media-site { padding: 0 0 40px 0; }
.media-site .shot-screen { width: 88%; }
.media-site .shot-phone { position: absolute; right: 0; bottom: 0; width: 26%; max-width: 190px; }
.media-phones { display: flex; justify-content: center; gap: 24px; }
.shot-phone { width: 42%; max-width: 230px; border-radius: 28px; border: 6px solid var(--ink); }
.media-phones .shot-phone:last-child { margin-top: 48px; }


/* ---------- Blog ---------- */
.nav a[aria-current="page"] { color: var(--accent); }
.blog-hero { padding: 88px 0 56px; }
.blog-hero h1 { max-width: 16ch; }
.blog-hero h1 em { font-style: normal; color: var(--accent); }
.blog-hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; margin-top: 22px; }
.blog-list-section { padding: 0 0 104px; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-cover { display: grid; place-items: center; height: 170px; background: var(--paper-2); }
.post-cover img { width: 72px; height: 72px; }
.post-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-body h2 { font-size: 1.3rem; line-height: 1.2; margin: 12px 0 10px; }
.post-body h2 a { text-decoration: none; }
.post-body h2 a:hover { color: var(--accent); }
.post-body p { color: var(--ink-soft); font-size: 0.97rem; }
.post-link { margin-top: auto; padding-top: 18px; font-weight: 600; color: var(--accent); text-decoration: none; }
.post-meta { font-size: 0.86rem; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-meta .tag, .article .tag {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--paper-2); color: var(--ink-soft); padding: 5px 11px; border-radius: 999px;
}

.article { padding: 56px 0 104px; }
.article .wrap { max-width: 740px; }
.article .back { display: inline-block; margin-bottom: 32px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.article .back:hover { color: var(--accent); }
.article h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 16px 0 20px; }
.article-lead { font-size: 1.2rem; color: var(--ink-soft); }
.article-cover { margin: 40px 0 8px; height: 200px; border-radius: var(--radius); background: var(--paper-2); display: grid; place-items: center; }
.article-cover img { width: 88px; height: 88px; }
.article h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.article p, .article li { color: var(--ink-soft); font-size: 1.06rem; }
.article p + p { margin-top: 14px; }
.article ul { margin: 14px 0 0 22px; display: grid; gap: 8px; }
.article strong { color: var(--ink); }
.article-cta { margin-top: 64px; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 36px; }
.article-cta h2 { margin: 0 0 10px; color: var(--paper); }
.article-cta p { color: rgba(239, 231, 220, 0.8); margin-bottom: 24px; }
.article-cta .btn-primary { background: var(--paper); color: var(--ink); }
.article-cta .btn-primary:hover { background: var(--accent); color: var(--white); }



/* ---------- Page contact ---------- */
.contact-page { padding: 72px 0 104px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.contact-intro h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.contact-intro .lead { color: var(--ink-soft); font-size: 1.12rem; margin: 20px 0 36px; }
.contact-direct { list-style: none; display: grid; gap: 18px; }
.contact-direct li { border-top: 1px solid var(--line); padding-top: 14px; }
.contact-direct small { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 2px; }
.contact-direct a { font-weight: 600; text-decoration: none; }
.contact-direct a:hover { color: var(--accent); }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px; width: 100%;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(184, 100, 58, 0.15); }
.field .invalid { border-color: #b3261e; background: #fdf3f2; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-weight: 600; font-size: 0.95rem; }
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: #b3261e; }
.contact-form .btn { justify-self: start; border: none; cursor: pointer; font-family: inherit; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Mouvements ---------- */
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.is-visible { opacity: 1; transform: none; }

/* Les captures d'un projet arrivent l'une après l'autre */
.motion .project .shot { opacity: 0; translate: 0 40px; transition: opacity .8s ease, translate 1s cubic-bezier(.2, .7, .2, 1), scale .5s ease; }
.motion .project.is-visible .shot { opacity: 1; translate: 0 0; }
.motion .project .shot:nth-child(2) { transition-delay: .18s; }
.motion .project .shot:nth-child(3) { transition-delay: .36s; }

/* Profondeur au défilement (valeur --shift calculée par interactions.js) */
.media-trio .page-demo { transform: translateY(var(--shift, 0)) rotate(-5deg); }
.media-trio .shot-screen, .media-site .shot-phone { transform: translateY(var(--shift, 0)); }

/* Survols */
.nav a:not(.btn) { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 2px; padding-bottom: 3px; transition: background-size .3s ease, color .2s; }
.nav a:not(.btn):hover { background-size: 100% 2px; }
.card { transition: border-color .3s ease, box-shadow .3s ease; }
.card:hover { border-color: var(--accent-light); box-shadow: 0 16px 36px -24px rgba(43, 36, 32, 0.45); }
.card .icon { transition: translate .4s cubic-bezier(.2, .7, .2, 1); }
.card:hover .icon { translate: 0 -5px; }
.card li::before { transition: width .3s ease; }
.card:hover li::before { width: 14px; }
.project-media:hover .shot { scale: 1.02; }
.post-card { transition: border-color .3s ease, box-shadow .3s ease; }
.post-card:hover { border-color: var(--accent-light); box-shadow: 0 16px 36px -24px rgba(43, 36, 32, 0.45); }
.post-cover img { transition: translate .4s cubic-bezier(.2, .7, .2, 1); }
.post-card:hover .post-cover img { translate: 0 -6px; }
.post-link { transition: letter-spacing .3s ease; }
.post-link:hover { letter-spacing: .02em; }
.btn-primary { position: relative; overflow: hidden; }
.header { transition: border-color .2s, box-shadow .3s; }
.header.scrolled { box-shadow: 0 10px 30px -24px rgba(43, 36, 32, 0.5); }

@media (prefers-reduced-motion: reduce) {
  .motion .reveal, .motion .project .shot { opacity: 1; transform: none; translate: none; transition: none; }
  .media-trio .page-demo { transform: rotate(-5deg); }
  .media-trio .shot-screen, .media-site .shot-phone { transform: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps, .promises { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .posts { grid-template-columns: 1fr 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; order: -1; }
  .project { grid-template-columns: 1fr; gap: 28px; }
  .project.reverse .project-media { order: 0; }
  .about, .contact .wrap, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header .wrap { position: relative; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    box-shadow: 0 18px 30px -20px rgba(43, 36, 32, 0.35);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .hero { padding: 56px 0 72px; }
  .proof { grid-template-columns: 1fr; gap: 20px; margin-top: 56px; }
  section { padding: 72px 0; }
  .services, .steps, .promises { grid-template-columns: 1fr; }
  .card, .case { padding: 26px; }
  .hero-art { max-width: 300px; }
  .posts { grid-template-columns: 1fr; }
  .blog-hero { padding: 56px 0 40px; }
  .article-cta { padding: 28px 22px; }
  .contact-form { padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-page { padding: 40px 0 72px; }
  .projects { gap: 56px; }
  .project-text h3 { font-size: 1.4rem; }
  .shot-phone { border-width: 4px; border-radius: 20px; }
  .contact-art { max-width: 100%; right: -80px; opacity: 0.6; }
}
