@font-face {
  font-family: Inter;
  src: url("inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0b0a09;
  --surface: #11100e;
  --ivory: #f8f3e9;
  --paper: #f4efe6;
  --gold: #e0bf88;
  --bronze: #80561f;
  --muted: #c0b8ad;
  --line: #322b22;
  --display: "Bodoni 72", "Times New Roman", Georgia, serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ivory); background: var(--ink); font: 400 1rem/1.65 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { padding: 0; margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #edaa48; outline-offset: 5px; }
.light :focus-visible { outline-color: #845611; }

.wrap { width: min(77rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.header { background: #0d0c0b; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.7rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .62rem; text-decoration: none; width: max-content; min-height: 44px; }
.brand span { font-size: .94rem; font-weight: 650; letter-spacing: .25em; }
.nav { display: flex; align-items: center; gap: clamp(1.5rem, 3.4vw, 3rem); }
.nav a, .header-cta { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .82rem; font-weight: 520; }
.nav a { color: var(--muted); }
.nav a:hover, .footer a:hover { color: var(--gold); }
.header-cta { justify-self: end; gap: .85rem; padding: .45rem .85rem; border: 1px solid #665035; color: var(--gold); }
.header-cta:hover { background: #231b13; }

.hero { overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 75% 40%, #16100a 0%, var(--ink) 57%); }
.hero-inner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  min-height: min(46rem, calc(100svh - 4.7rem));
}
.hero-copy { padding-block: clamp(4.2rem, 7vw, 7rem); position: relative; z-index: 1; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .78rem;
  font-size: .7rem;
  font-weight: 620;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--gold);
}
.marker { width: 1.3rem; height: 1px; background: currentColor; flex: none; }
h1, h2, .dm-guide h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.045em;
  word-spacing: .035em;
}
h1 { font-size: clamp(3.65rem, 7.5vw, 7.1rem); line-height: .91; margin: 1.5rem 0; }
h1 em, h2 em { color: var(--gold); font-weight: inherit; }
.hero-intro { max-width: 29rem; font-size: clamp(.94rem, 1.35vw, 1.08rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.8rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .9rem;
  min-height: 3.1rem;
  border: 1px solid transparent;
  padding: .6rem 1rem;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 660;
  line-height: 1.3;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.button span, .header-cta span { font-size: 1rem; line-height: 1; }
.button-gold { background: var(--gold); color: #1b1209; }
.button-gold:hover { background: #f2d6a4; }
.button-line { background: #0f0d0bc7; color: var(--ivory); border-color: #665035; }
.button-line:hover { color: var(--gold); border-color: var(--gold); }
.hero-art {
  position: absolute;
  pointer-events: none;
  top: calc(50% - 1.6rem);
  right: clamp(-7.5rem, -6vw, -2rem);
  width: min(65%, 50rem);
  transform: translateY(-50%);
}
.hero-art img { width: 100%; height: auto; animation: enter-art 850ms ease-out both; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); }
.hero-meta p, .hero-meta a { display: flex; align-items: center; gap: .72rem; min-height: 3.65rem; color: var(--muted); font-size: .67rem; font-weight: 560; letter-spacing: .12em; text-transform: uppercase; }
.hero-meta a { text-decoration: none; }
.hero-meta a:hover, .hero-meta a span { color: var(--gold); }
.pin { width: .42rem; height: .42rem; background: var(--gold); border-radius: 50%; flex: none; }
@keyframes enter-art { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.section { padding-block: clamp(4.75rem, 8.5vw, 8rem); scroll-margin-top: 1.25rem; }
.section-number { color: inherit; border-right: 1px solid currentColor; padding-right: .78rem; }
.section h2 { font-size: clamp(3.2rem, 6vw, 6.15rem); line-height: .92; margin: 1.05rem 0 1.3rem; }
.section-lead > p:last-of-type { max-width: 27rem; color: var(--muted); }
.section h3 { font-size: 1.18rem; line-height: 1.3; font-weight: 590; }
.services { background: var(--surface); }
.services-layout, .approach-layout, .contact-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6.5vw, 7.5rem); }
.service-list, .principles { list-style: none; }
.service-list li, .principles li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.service-list p, .principles p { margin-top: .4rem; color: var(--muted); font-size: .91rem; }
.service-icon { display: grid; place-items: center; border: 1px solid #55432b; width: 2.65rem; height: 2.65rem; color: var(--gold); }
.service-icon svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.upcoming { display: flex; align-items: center; gap: .7rem; border-top: 1px solid var(--line); padding-top: 1.1rem; color: var(--muted); font-size: .85rem; }
.badge { display: inline-block; border: 1px solid #665035; padding: .1rem .5rem; font-size: .64rem; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; }

.light { color-scheme: light; background: var(--paper); color: #201a14; }
.light .eyebrow, .light h2 em { color: var(--bronze); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(1.7rem, 4.4vw, 3.6rem); }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 24rem; padding-bottom: .3rem; color: #524a40; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3.2vw, 3rem); }
.project-image {
  aspect-ratio: 1.48;
  display: block;
  overflow: hidden;
  position: relative;
  background: #27291f;
  box-shadow: 0 12px 28px #3d281720;
}
.project-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .35s ease; }
.project-image:hover img { transform: scale(1.025); }
.project-zoom { position: absolute; display: grid; place-items: center; right: .65rem; bottom: .65rem; width: 2.5rem; height: 2.5rem; border: 1px solid #eee2cc; background: var(--ink); color: var(--ivory); }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: .45rem 1rem; flex-wrap: wrap; margin-top: 1.1rem; color: #685748; font-size: .67rem; text-transform: uppercase; font-weight: 650; letter-spacing: .1em; }
.project-meta span:last-child { border: 1px solid #c6b39e; padding: .15rem .43rem; }
.project > p { color: #524a40; font-size: .94rem; max-width: 35rem; }
.approach { background: radial-gradient(ellipse at 12% 100%, #1d150c, var(--ink) 59%); }
.principles li > span { color: var(--gold); font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.process { background: #eae1d3; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; border-top: 1px solid #ae9881; }
.steps li { padding: 1.4rem 1.3rem .3rem; border-left: 1px solid #c3ae97; }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps span { display: block; color: var(--bronze); font: 400 2.2rem/1 var(--display); margin-bottom: .85rem; }
.steps p { color: #524a40; font-size: .88rem; margin-top: .55rem; }

.contact { background: radial-gradient(ellipse at 72% 100%, #271c10, #0e0c0a 62%); }
.contact-layout { align-items: center; }
.handle { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--gold); font-size: .82rem; text-underline-offset: .25em; }
.contact-panel { min-width: 0; border: 1px solid #5c4832; background: #100e0b; padding: clamp(1.35rem, 3.5vw, 2.45rem); }
.section .dm-guide h3 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); font-weight: 400; margin: .6rem 0 .65rem; }
.dm-guide ol { margin-left: 1.3rem; margin-bottom: .8rem; }
.dm-guide li { padding-left: .2rem; font-size: .95rem; }
.dm-guide li::marker { color: var(--gold); }
.dm-guide > p:last-child { color: var(--muted); font-size: .87rem; }
.quote-form { display: none; }
.quote-form:has(input[name="form-name"]) { display: grid; gap: .85rem; }
.contact-panel:has(input[name="form-name"]) .dm-guide { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.quote-form label { display: grid; gap: .25rem; font-size: .84rem; font-weight: 530; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%;
  min-width: 0;
  color: var(--ivory);
  background: #1b1712;
  border: 1px solid #685741;
  border-radius: 0;
  padding: .58rem .6rem;
  font-size: 1rem;
}
.quote-form textarea { resize: vertical; }
.form-note { color: var(--muted); font-size: .77rem; }
.quote-form button { justify-self: start; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; flex-wrap: wrap; min-height: 5.8rem; padding-block: .75rem; }
.footer p, .footer a:last-child { color: var(--muted); font-size: .78rem; }
.footer a:last-child { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; text-underline-offset: .25em; }


.confirmation { min-height: 100svh; display: grid; align-items: center; background: radial-gradient(ellipse at 65% 58%, #23180d, var(--ink) 66%); }
.confirmation-inner { padding-block: 3rem; }
.confirmation .brand { margin-bottom: 3rem; }
.confirmation-inner > p:last-of-type { max-width: 28rem; color: var(--muted); margin-bottom: 1.5rem; }

@media (max-width: 900px) {
  .hero-inner { min-height: 36rem; }
  .hero-art { width: 69%; right: -11%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.2rem; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 670px) {
  :root { --gutter: clamp(1.2rem, 5.7vw, 2rem); }
  .header-inner { min-height: auto; grid-template-columns: 1fr auto; gap: 0 .65rem; padding-top: .35rem; }
  .brand { gap: .42rem; }
  .brand img { width: 26px; height: 26px; }
  .brand span { font-size: .82rem; }
  .nav { grid-row: 2; grid-column: 1 / -1; border-top: 1px solid var(--line); justify-content: space-between; gap: .5rem; margin-top: .25rem; }
  .header-cta { grid-row: 1; grid-column: 2; gap: .3rem; font-size: .72rem; padding: .3rem .55rem; }
  .hero { background: radial-gradient(ellipse at 50% 65%, #1b120b, var(--ink) 60%); }
  .hero-inner { min-height: 0; grid-template-rows: auto auto auto; }
  .hero-copy { padding: 3.4rem 0 0; }
  h1 { font-size: clamp(2.85rem, 10.25vw, 4.75rem); margin-block: 1rem; }
  .hero-intro { max-width: 27rem; }
  .hero-copy .actions { gap: .5rem; }
  .hero-copy .button { gap: .6rem; padding-inline: .65rem; font-size: .77rem; }
  .hero-art { position: relative; top: auto; right: auto; width: min(100%, 29rem); margin: -.25rem auto -1.15rem; transform: none; }
  .hero-meta p, .hero-meta a { min-height: 3rem; font-size: .57rem; letter-spacing: .075em; gap: .45rem; }
  .hero-meta a { flex: none; }
  .section { padding-block: 3.7rem; }
  .section h2 { font-size: clamp(2.8rem, 10.4vw, 4.5rem); }
  .services-layout, .approach-layout, .contact-layout, .projects { grid-template-columns: 1fr; gap: 1.9rem; }
  .projects { gap: 2.35rem; }
  .section-heading { display: grid; gap: .8rem; }
  .section-heading > p { padding-bottom: 0; }
  .steps li { padding-right: .45rem; padding-left: .75rem; }
}

@media (max-width: 365px) {
  .hero-meta { gap: .3rem; }
  .hero-meta a { letter-spacing: 0; }
  .hero-meta p { gap: .3rem; }
}

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

/* Mise en page commune aux pages intérieures. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.nav a[aria-current], .header-cta[aria-current] { color: var(--gold); }
.nav a[aria-current] { box-shadow: inset 0 -1px var(--gold); }
.header-cta[aria-current] { background: #231b13; }
.subhero, .case-hero { background: radial-gradient(ellipse at 87% 65%, #261a10, var(--ink) 65%); }
.subhero { border-bottom: 1px solid var(--line); }
.subhero-inner { padding-block: clamp(4rem, 9vw, 7.5rem); }
.subhero h1, .case-hero h1 { font-size: clamp(3.25rem, 7.35vw, 7.1rem); margin: 1rem 0 1.3rem; }
.subhero-intro { max-width: 35rem; color: var(--muted); font-size: 1.04rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  width: fit-content;
  color: var(--gold);
  text-underline-offset: .25em;
  font-size: .83rem;
  font-weight: 620;
}
.light .text-link { color: #694514; }
.text-link:hover { text-decoration-thickness: 2px; }

.feature-card { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); background: #e9dfd0; }
.feature-image { overflow: hidden; display: block; background: #0d2331; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .35s ease; }
.feature-image:hover img { transform: scale(1.025); }
.feature-copy { align-self: center; padding: clamp(1.45rem, 5vw, 4.4rem); }
.featured .feature-copy h3 { font: 400 clamp(2.7rem, 5vw, 5rem)/1 var(--display); letter-spacing: -.045em; margin: .7rem 0 1rem; }
.feature-copy > p:not(.eyebrow) { color: #524a40; font-size: .94rem; max-width: 28rem; }
.feature-copy .text-link { margin-top: .8rem; }
.home-expertise { background: var(--surface); }
.home-services, .case-fact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; border-top: 1px solid var(--line); }
.home-services li, .case-fact-list li { padding: 1.55rem 1.4rem .35rem; border-left: 1px solid var(--line); }
.home-services li:first-child, .case-fact-list li:first-child { border-left: 0; padding-left: 0; }
.home-services li > span, .case-fact-list li > span { display: block; margin-bottom: .75rem; color: var(--gold); font: 400 1.65rem/1 var(--display); }
.home-services p, .case-fact-list p { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.page-cta { background: radial-gradient(ellipse at 70% 100%, #271c10, #0e0c0a 65%); border-top: 1px solid var(--line); }
.cta-inner { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.cta-inner h2 { margin-bottom: 0; }

.portfolio .projects { row-gap: clamp(2.6rem, 6vw, 5.4rem); }
.portfolio .project h2 { font-size: clamp(2.1rem, 3.9vw, 3.4rem); margin: .7rem 0 .55rem; line-height: 1; }
.project h2 a { text-decoration: none; }
.project h2 a:hover { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 1px; }
.project-navorive { background: #0d2331; }
.project-atelier-souissi { background: #b48c68; }
.project-zahrawi-academy { background: #121b2d; }
.project-maison-elegance { background: #221a14; }
.project-atelier-souissi img, .project-maison-elegance img { object-position: left top; }

.case-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: clamp(1.5rem, 6vw, 6rem); padding-block: clamp(3.25rem, 7vw, 6rem) clamp(2.2rem, 4vw, 4rem); }
.case-hero h1 { margin-bottom: 0; }
.case-summary { display: grid; gap: .9rem; justify-items: start; align-self: center; }
.case-summary p { max-width: 32rem; color: var(--muted); }
.case-summary .case-note { font-size: .8rem; }
.case-image { margin: 0; border: 1px solid #51412f; background: var(--surface); }
.case-image a { display: block; position: relative; }
.case-image img { width: 100%; height: auto; }
.case-image .project-zoom { width: 2.75rem; height: 2.75rem; }
.case-facts { padding-bottom: clamp(3.7rem, 7vw, 6.5rem); }
.case-facts h2 { margin-bottom: 2rem; }
.case-pager { border-top: 1px solid var(--line); background: var(--surface); }
.case-pager-inner { min-height: 8.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.5rem; }
.case-next { display: grid; gap: .25rem; text-decoration: none; }
.case-next strong { font: 400 clamp(1.65rem, 3vw, 2.45rem)/1 var(--display); }
.case-next strong span { color: var(--gold); }
.case-next:hover strong { text-decoration: underline; text-underline-offset: .18em; }
.contact .contact-hint { margin-top: .9rem; font-size: .79rem; }

@media (max-width: 900px) {
  .header-inner { gap: 1.1rem; }
  .nav { gap: 1.1rem; }
}
@media (max-width: 670px) {
  .header-inner { gap: 0 .65rem; }
  .nav { gap: .4rem; }
  .nav a { font-size: .78rem; }
  .subhero-intro { font-size: .94rem; }
  .feature-card, .case-hero-inner, .home-services, .case-fact-list { grid-template-columns: 1fr; }
  .feature-image { aspect-ratio: 1.5; }
  .home-services li, .case-fact-list li { padding: 1rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .home-services li > span, .case-fact-list li > span { margin-bottom: .45rem; }
  .cta-inner { align-items: start; flex-direction: column; }
  .case-pager-inner { align-items: start; flex-direction: column; gap: 1.45rem; }
}
