/* ============================================================
   Atelier Boisé — Démo DevelopInk
   Style : naturel / artisanal — crème, bois, vert sauge
   ============================================================ */

:root {
  --cream: #f5f0e8;
  --cream-deep: #ece4d6;
  --wood: #6b4f3a;
  --wood-light: #8a6d4f;
  --wood-soft: #a9876a;
  --ink: #2e2a25;
  --ink-soft: #5a5249;
  --sage: #7c8c5f;
  --sage-deep: #5f6e47;
  --ochre: #c08a3e;
  --white: #fffdf9;
  --line: #ddd2c0;
  --shadow: 0 18px 40px -22px rgba(46, 42, 37, 0.45);
  --radius: 14px;
  --maxw: 1180px;
  --font-head: 'Manrope', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--wood); }

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

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

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage-deep);
  margin-bottom: 0.8rem;
  display: inline-block;
}

.section { padding: 92px 0; }
.section--cream { background: var(--cream); }
.section--deep { background: var(--cream-deep); }
.section--wood { background: var(--wood); color: var(--cream); }
.section--wood h2, .section--wood h3 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--sage-deep); color: var(--white); }
.btn--primary:hover { background: var(--sage); }
.btn--wood { background: var(--wood); color: var(--cream); }
.btn--wood:hover { background: var(--wood-light); }
.btn--ghost { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn--ghost:hover { background: rgba(255, 253, 249, 0.12); }
.btn--outline { background: transparent; border-color: var(--wood); color: var(--wood); }
.btn--outline:hover { background: var(--wood); color: var(--cream); }

/* ---------- DevelopInk ribbon ---------- */
.dvlpk-ribbon {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.86rem;
  text-align: center;
  padding: 9px 16px;
  font-family: var(--font-head);
  letter-spacing: 0.02em;
}
.dvlpk-ribbon a {
  color: var(--ochre);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid transparent;
}
.dvlpk-ribbon a:hover { border-bottom-color: var(--ochre); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--wood);
  display: grid;
  place-items: center;
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  flex: none;
}
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.brand__tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-family: var(--font-body);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 14px;
  border-radius: 8px;
}
.nav__links a:hover { background: var(--cream-deep); }
.nav__links a.is-active { color: var(--wood); }
.nav__cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  background-color: var(--wood);
  background-image:
    linear-gradient(115deg, rgba(46, 42, 37, 0.82) 0%, rgba(46, 42, 37, 0.42) 60%, rgba(46, 42, 37, 0.25) 100%),
    url('https://images.unsplash.com/photo-1547609434-b732edfee020?w=1600&h=1000&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}
.hero__inner { padding: 110px 0; max-width: 680px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 0.4em;
}
.hero p {
  font-size: 1.2rem;
  color: #f0e8da;
  margin-bottom: 1.8em;
  max-width: 560px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1.2rem;
}

/* ---------- Stats bar ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--white);
  line-height: 1;
}
.stat__label { color: #e7ddcd; font-size: 0.92rem; margin: 0; }

/* ---------- Savoir-faire (split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--wood-light);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.split ul {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}
.split li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.split li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--sage);
  transform: rotate(45deg);
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--cream-deep);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.service-card h3 { font-size: 1.18rem; }
.service-card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* ---------- Réalisations grid ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--wood-light);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  display: block;
  text-decoration: none;
  color: var(--cream);
}
.project img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project:hover img { transform: scale(1.06); }
.project__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46, 42, 37, 0.88) 0%, rgba(46, 42, 37, 0.12) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.project__overlay .tag {
  font-family: var(--font-head);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ochre);
  margin-bottom: 6px;
}
.project__overlay h3 { color: var(--white); font-size: 1.25rem; margin: 0 0 4px; }
.project__overlay p { color: #e7ddcd; font-size: 0.9rem; margin: 0; }

.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------- CTA ---------- */
.cta {
  background: var(--wood);
  color: var(--cream);
  border-radius: 20px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.4em; }
.cta p { color: #efe6d6; margin: 0; }
.cta__box {
  background: rgba(255, 253, 249, 0.08);
  border: 1px solid rgba(245, 240, 232, 0.2);
  border-radius: var(--radius);
  padding: 28px;
}
.cta__box .row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cta__box .row:last-child { margin-bottom: 0; }
.cta__box a { color: var(--white); text-decoration: none; font-weight: 600; }
.cta__box a:hover { color: var(--ochre); }
.cta__icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--sage-deep);
  display: grid;
  place-items: center;
}

/* ---------- Quote ---------- */
.quote {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.quote blockquote {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  line-height: 1.35;
  margin: 0 0 1.2rem;
  color: var(--ink);
}
.quote cite { font-style: normal; color: var(--sage-deep); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d9d0c2;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: var(--cream);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.site-footer a { color: #d9d0c2; text-decoration: none; }
.site-footer a:hover { color: var(--ochre); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-brand .brand__name { color: var(--cream); }
.footer-brand p { color: #b3a999; max-width: 320px; margin-top: 14px; }
.footer-grid, .site-footer { overflow-wrap: anywhere; }
.footer-bottom {
  border-top: 1px solid rgba(217, 208, 194, 0.15);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9c9384;
}
.footer-bottom a { color: var(--ochre); }

/* ---------- Page header (réalisations) ---------- */
.page-hero {
  background-color: var(--wood);
  background-image:
    linear-gradient(rgba(46, 42, 37, 0.74), rgba(46, 42, 37, 0.74)),
    url('https://images.unsplash.com/photo-1512972972907-6d71529c5e92?w=1600&h=700&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  color: var(--cream);
  padding: 96px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { color: #efe6d6; max-width: 620px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Gallery (réalisations) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.gallery-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item__media {
  background-color: var(--wood-light);
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.gallery-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover .gallery-item__media img { transform: scale(1.05); }
.gallery-item__body { padding: 24px; }
.gallery-item__body .tag {
  font-family: var(--font-head);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage-deep);
  font-weight: 700;
}
.gallery-item__body h3 { font-size: 1.2rem; margin: 6px 0 8px; }
.gallery-item__body p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.gallery-item__meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--wood-light);
  font-weight: 600;
  font-family: var(--font-head);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  color: var(--wood);
}
.back-link:hover { color: var(--sage-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 4px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 14px; }
  .nav__cta { margin: 8px 0 0; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cta { grid-template-columns: 1fr; padding: 44px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .services, .projects, .gallery { grid-template-columns: 1fr; }
  .hero__inner { padding: 80px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
