/* bandeau commun aux démos (copié en tête de chaque feuille de démo) */
.demo-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding: 10px max(16px, 3vw); padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: #1A2BC3; color: #FFFFFF; font: 500 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
.demo-banner p { margin: 0; }
.demo-banner a { color: #FFFFFF; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap; }
.demo-note { margin: 12px 0 0; font-weight: 700; }
/* Démo Atelier Copeau : menuisier-ébéniste. Noyer, chêne, frêne et sauge. Fraunces + Instrument Sans. */
@font-face { font-family: "Fraunces"; src: url("../../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root { --noyer: #241B15; --noyer-2: #3A2A1F; --chene: #C99A63; --chene-f: #A87943; --frene: #EEEFEA; --blanc: #F8F7F3; --encre: #1E1814; --encre-2: #5A5048; --sauge: #5F7A5C; --ligne: rgba(30,24,20,.14); color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --frene: #191512; --blanc: #211B17; --encre: #F1ECE4; --encre-2: #BFB3A6; --ligne: rgba(241,236,228,.14); color-scheme: dark; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--frene); color: var(--encre); font: 400 1.0625rem/1.65 "Instrument Sans", system-ui, sans-serif; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); margin-bottom: .7em; }
h3 { font-size: 1.35rem; margin-bottom: .35em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--chene); outline-offset: 3px; }
.c-wrap { max-width: 1160px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }

.c-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 14px clamp(18px, 4vw, 40px); background: color-mix(in srgb, var(--frene) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne); }
.c-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.35rem/1 "Fraunces", Georgia, serif; color: var(--encre); }
.c-logo svg { width: 34px; height: 34px; color: var(--chene-f); }
.c-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.c-nav a:not(.c-btn) { padding: 8px 12px; text-decoration: none; font-weight: 600; border-radius: 8px; }
.c-nav a:not(.c-btn):hover { background: var(--ligne); }
.c-burger { display: none; margin-left: auto; font: 600 1rem "Instrument Sans", sans-serif; background: none; border: 2px solid var(--encre); color: var(--encre); border-radius: 999px; padding: 8px 16px; }
.c-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 6px; background: var(--chene); color: #1E1814; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.c-btn:hover { background: #D6A971; }
.c-btn--sm { min-height: 42px; padding: 9px 16px; }
@media (max-width: 860px) {
  .c-burger { display: inline-block; }
  .c-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px clamp(18px, 4vw, 40px) 20px; background: var(--frene); border-bottom: 1px solid var(--ligne); }
  .c-nav.is-open { display: flex; }
}

.c-hero { background: var(--noyer); color: #F3ECE2; overflow: hidden; }
.c-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-block: clamp(56px, 8vw, 110px); }
.c-hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5rem); font-weight: 500; }
.c-lead { font-size: 1.2rem; max-width: 40ch; color: #D8CCBD; margin: 26px 0 32px; }
.c-ctas { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.c-link { color: #F3ECE2; font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.c-rondelle { margin: 0; justify-self: center; width: min(100%, 520px); filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
@media (prefers-reduced-motion: no-preference) {
  .js .c-rondelle .cerne { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cerne 1.1s cubic-bezier(.4,0,.2,1) forwards; animation-delay: calc(var(--i) * 70ms + .2s); }
  .js .c-rondelle .fente { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cerne .9s ease-out 1.6s forwards; }
  .js .c-rondelle svg { animation: tourne 2.6s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes cerne { to { stroke-dashoffset: 0; } }
@keyframes tourne { from { transform: rotate(-24deg) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 860px) { .c-hero-in { grid-template-columns: 1fr; } .c-rondelle { width: min(80%, 360px); } }

.c-engagements { background: var(--noyer-2); color: #EADFD1; }
.c-engagements ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 26px; }
.c-engagements strong { display: block; font: 600 1.15rem "Fraunces", serif; color: #F3ECE2; }
.c-engagements span { color: #CDBFAE; font-size: .97rem; }
@media (max-width: 760px) { .c-engagements ul { grid-template-columns: 1fr; } }

.c-section { padding-block: clamp(64px, 9vw, 120px); }
.c-section--clair { background: var(--blanc); }
.c-section--bois { background: var(--blanc); }
.c-section--noyer { background: var(--noyer); color: #F3ECE2; }
.c-metiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--encre); }
.c-metiers article { padding: 26px 24px 30px 0; border-bottom: 1px solid var(--ligne); }
.c-metiers article:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--ligne); }
.c-metiers p { color: var(--encre-2); margin: 0; }
@media (max-width: 860px) { .c-metiers { grid-template-columns: 1fr; } .c-metiers article:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } }

.c-real { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.c-carte { margin: 0; }
.c-carte svg { width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; }
.c-carte figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 2px solid var(--encre); margin-top: 14px; }
.c-carte figcaption strong { font: 600 1.15rem "Fraunces", serif; }
.c-carte figcaption span { color: var(--encre-2); }
@media (max-width: 700px) { .c-real { grid-template-columns: 1fr; } }

.c-atelier { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; }
.c-atelier-text p { font-size: 1.15rem; max-width: 60ch; }
.c-atelier-text p:first-child::first-letter { font: 600 3.4em/0.9 "Fraunces", serif; float: left; margin: .05em .1em 0 0; color: var(--chene-f); }
@media (max-width: 760px) { .c-atelier { grid-template-columns: 1fr; gap: 0; } }

.c-zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.c-villes { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.c-villes li { padding: 6px 12px; border: 1.5px solid var(--encre); border-radius: 999px; font-weight: 600; font-size: .95rem; }
.c-carte-zone text { font: 600 13px "Instrument Sans", sans-serif; fill: var(--encre); }
.c-carte-zone .c-centre { font: 600 18px "Fraunces", serif; }
@media (max-width: 860px) { .c-zone { grid-template-columns: 1fr; } }

.c-devis { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; }
.c-devis h2 { color: #F3ECE2; }
.c-devis p { color: #D8CCBD; max-width: 46ch; }
.c-coord { font-weight: 600; color: #F3ECE2 !important; }
.c-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.c-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.c-form .c-full { grid-column: 1 / -1; }
.c-form input, .c-form select, .c-form textarea { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 6px; border: 1.5px solid #6B5646; background: #2E231C; color: #F3ECE2; font: inherit; }
.c-form button { justify-self: start; }
.c-form .demo-note { grid-column: 1 / -1; color: #F3D9B0; }
@media (max-width: 760px) { .c-devis, .c-form { grid-template-columns: 1fr; } }

.c-footer { background: #17110D; color: #BFB3A6; padding-block: 28px; font-size: .95rem; }
.c-footer p { margin: 0; }

.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.will-reveal.is-in { opacity: 1; transform: none; }
.c-metiers .will-reveal:nth-child(3n+2) { transition-delay: .08s; }
.c-metiers .will-reveal:nth-child(3n) { transition-delay: .16s; }
.c-real .will-reveal:nth-child(2n) { transition-delay: .1s; }
