/* Babylone Atelier Tapis — design system « Maison Babylone » */
:root {
  --ivory: #F4EFE6;
  --sand: #E8DFCF;
  --taupe: #6E6656;
  --ink: #1E1B16;
  --green: #1F3D33;
  --green-deep: #16302A;
  --madder: #A2352B;
  --madder-dark: #8E2E25;
  --brass: #B08D57;
  --brass-text: #7A5C2E;
  --indigo: #1F2A44;
  --white: #FBF9F4;
  --radius: 2px;
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-text: 'Instrument Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-inout: cubic-bezier(.65,0,.35,1);
  --ease-expo: cubic-bezier(.16,1,.3,1);
  --t-xs: 160ms; --t-s: 320ms; --t-m: 600ms; --t-l: 900ms; --t-xl: 1800ms;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg, canvas { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0 0 .6em; letter-spacing: -.01em; font-variation-settings: 'SOFT' 60, 'opsz' 96; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.caption { font-size: .9rem; color: var(--taupe); }
.eyebrow { font-family: var(--font-text); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-text); font-weight: 600; margin-bottom: 1.2rem; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section.alt { background: var(--sand); }
.section-title { max-width: 18ch; }
.todo { display: inline-block; font-size: .8em; padding: .05em .45em; border: 1px dashed var(--madder); color: var(--madder); border-radius: var(--radius); background: rgba(162,53,43,.06); font-family: var(--font-text); font-weight: 500; }
.todo-note { font-size: .85rem; color: var(--madder); }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose strong { font-weight: 600; }
.prose figure { margin: 2rem 0; }
.prose figcaption, figure figcaption { font-size: .9rem; color: var(--taupe); padding: .6rem 0 0; }

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--ivory); padding: .6rem 1rem; z-index: 200; border-radius: var(--radius); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }

/* ---------- Double rule (signature) ---------- */
.rule-double { position: relative; }
.rule-double::before, .rule-double::after { content: ""; display: block; height: 0; border-top: 1px solid var(--brass); }
.rule-double::before { margin-bottom: 3px; }
.rule-double::after { margin-top: 3px; }
.rule-frame { position: relative; }
/* Cadre laiton : sur l'élément lui-même, ou sur l'image seule quand la figure porte une légende */
.rule-frame:not(:has(> figcaption))::after,
figure.rule-frame:has(> figcaption) > picture::after { content: ""; position: absolute; inset: 8px; border: 1px solid var(--brass); pointer-events: none; opacity: 0; transition: opacity var(--t-m) var(--ease-out), inset var(--t-m) var(--ease-out); }
.rule-frame.is-in:not(:has(> figcaption))::after, .rule-frame:not(:has(> figcaption)):hover::after,
figure.rule-frame.is-in:has(> figcaption) > picture::after, figure.rule-frame:has(> figcaption):hover > picture::after { opacity: .9; inset: 10px; }
.rule-frame:not(:has(> figcaption))::before,
figure.rule-frame:has(> figcaption) > picture::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--brass); pointer-events: none; opacity: 0; transform: scale(.985); transition: opacity var(--t-m) var(--ease-out), transform var(--t-m) var(--ease-out); }
.rule-frame.is-in:not(:has(> figcaption))::before,
figure.rule-frame.is-in:has(> figcaption) > picture::before { opacity: .35; transform: scale(1.01); }
figure.rule-frame:has(> figcaption) > picture { position: relative; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-text); font-weight: 600; font-size: .98rem; padding: .85rem 1.4rem; border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.1; transition: background var(--t-xs) var(--ease-out), color var(--t-xs) var(--ease-out), border-color var(--t-xs), transform var(--t-xs); }
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-xs) var(--ease-out); }
.btn-primary { background: var(--madder); color: var(--white); }
.btn-primary:hover { background: var(--madder-dark); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--ivory); }
.btn-large { padding: 1.05rem 1.7rem; font-size: 1.05rem; }
.btn-small { padding: .5rem .9rem; font-size: .88rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:active { transform: scale(.98); }
.link-arrow { font-weight: 600; color: var(--green); text-decoration: none; position: relative; padding-right: 1.4em; display: inline-block; }
.link-arrow::after { content: "→"; position: absolute; right: 0; top: 0; transition: transform var(--t-xs) var(--ease-out); }
.link-arrow::before { content: ""; position: absolute; left: 0; right: 1.4em; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-s) var(--ease-out); }
.link-arrow:hover::before { transform: scaleX(1); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ivory); border-bottom: 1px solid rgba(110,102,86,.15); transition: background var(--t-s) var(--ease-out), color var(--t-s) var(--ease-out), box-shadow var(--t-s); }
.site-header.is-transparent { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
.site-header.is-scrolled { background: var(--green); color: var(--ivory); border-bottom-color: transparent; box-shadow: 0 6px 24px rgba(30,27,22,.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.site-header.is-scrolled .header-inner { height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.brand-symbol { width: 40px; height: 40px; flex: none; }
.brand-symbol svg { width: 100%; height: 100%; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word-main { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: 'SOFT' 80; }
.brand-rule { display: block; height: 0; border-top: 1px solid var(--brass); box-shadow: 0 3px 0 -1px var(--brass); margin: 4px 0 5px; width: 100%; }
.brand-word-sub { font-family: var(--font-text); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); font-weight: 500; }
.site-header.is-scrolled .brand-word-sub { color: rgba(244,239,230,.75); }
.main-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding: .3rem 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-s) var(--ease-out); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-mobile-only { display: none; }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.header-cta { white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.menu-toggle span { display: block; height: 2px; background: currentColor; transition: transform var(--t-s) var(--ease-out), opacity var(--t-s); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Language switch */
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid rgba(110,102,86,.35); color: inherit; padding: .45rem .7rem; border-radius: var(--radius); font: inherit; font-weight: 600; font-size: .85rem; letter-spacing: .06em; cursor: pointer; }
.site-header.is-scrolled .lang-btn { border-color: rgba(244,239,230,.4); }
.icon-globe { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); width: 200px; margin: 0; padding: .4rem 0; list-style: none; background: var(--ivory); color: var(--ink); border: 1px solid var(--brass); box-shadow: 0 12px 30px rgba(30,27,22,.15); border-radius: var(--radius); z-index: 120; transform-origin: top right; }
.lang-list[hidden] { display: none; }
.lang-list li { padding: 0; }
.lang-list a, .lang-list span { display: block; padding: .55rem 1rem; text-decoration: none; font-weight: 500; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--sand); }
.lang-list .is-current span { color: var(--madder); font-weight: 600; }
.lang-list .is-current span::before { content: "• "; }
.lang-list.is-open { animation: langIn var(--t-xs) var(--ease-out) both; }
@keyframes langIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - 0px); display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(60% 60% at 70% 40%, var(--sand) 0%, var(--ivory) 65%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-text h1 { margin-bottom: 1rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 1.6rem; margin-top: 1.6rem; }
.hero-media { position: relative; }
.rug-stage { position: relative; aspect-ratio: 4 / 3; width: 100%; }
.rug-poster, .rug-canvas, .rug-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.rug-canvas { opacity: 0; transition: opacity 400ms var(--ease-out); }
.rug-stage.is-3d .rug-canvas { opacity: 1; }
.rug-stage.is-3d .rug-poster { opacity: 0; transition: opacity 400ms var(--ease-out); }
.rug-video { object-fit: cover; }
.rug-stage.is-video .rug-video { display: block; }
.rug-stage.is-video .rug-poster { opacity: 0; }
.rug-shadow { position: absolute; left: 12%; right: 12%; bottom: 6%; height: 14%; background: radial-gradient(50% 50% at 50% 50%, rgba(30,27,22,.28), transparent 70%); filter: blur(6px); z-index: -1; }
.rug-poster { clip-path: inset(0 0 0 0); }
.hero.is-css-reveal .rug-poster { animation: unrollCss 1s var(--ease-expo) both; }
@keyframes unrollCss { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* Split text */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
[data-split] .w > span { display: inline-block; transform: translateY(110%); opacity: 0; }
[data-split].is-in .w > span { animation: wordIn var(--t-m) var(--ease-out) forwards; animation-delay: calc(var(--i) * 40ms); }
@keyframes wordIn { to { transform: none; opacity: 1; } }
html.js .hero [data-hero-sub], html.js .hero [data-hero-actions] { opacity: 0; transform: translateY(16px); transition: opacity var(--t-m) var(--ease-out), transform var(--t-m) var(--ease-out); }
html.js .hero.is-ready [data-hero-sub] { opacity: 1; transform: none; transition-delay: 300ms; }
html.js .hero.is-ready [data-hero-actions] { opacity: 1; transform: none; transition-delay: 500ms; }

/* ---------- Reassurance ---------- */
.reassurance { padding: 0 0 8px; }
.reassurance-list { list-style: none; margin: 0; padding: 1.1rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; font-weight: 500; font-size: .95rem; color: var(--green); }
.reassurance-list li { padding: .4rem 0; border-left: 1px solid var(--brass); padding-left: 1rem; }
.reassurance-list::before, .reassurance-list::after { grid-column: 1 / -1; margin: 0; }
.reassurance-list::before { margin-bottom: -.4rem; } .reassurance-list::after { margin-top: -.4rem; }

/* ---------- Reveal ---------- */
html.js .after-list .num { opacity: 0; }
html.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--t-m) var(--ease-out), transform var(--t-m) var(--ease-out); }
html.js [data-reveal].is-in, [data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-batch] > [data-reveal]:nth-child(2) { transition-delay: 80ms; }
[data-reveal-batch] > [data-reveal]:nth-child(3) { transition-delay: 160ms; }
[data-reveal-batch] > [data-reveal]:nth-child(4) { transition-delay: 240ms; }
[data-reveal-batch] > [data-reveal]:nth-child(5) { transition-delay: 320ms; }
[data-reveal-batch] > [data-reveal]:nth-child(6) { transition-delay: 400ms; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.service-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--white); border: 1px solid rgba(110,102,86,.18); transition: transform var(--t-s) var(--ease-out), box-shadow var(--t-s); }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(30,27,22,.10); }
.service-card.is-main { grid-row: span 1; }
.service-media { aspect-ratio: 4 / 3; overflow: hidden; }
.service-card.is-main .service-media { aspect-ratio: 16 / 10; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.service-card:hover .service-media img { transform: scale(1.03); }
.service-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.service-body p { flex: 1; color: var(--taupe); }
.service-body .btn { align-self: flex-start; margin-top: .6rem; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 2rem; }
.process-steps { list-style: none; margin: 0; padding: 0; }
.process-step { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid rgba(176,141,87,.5); transition: opacity var(--t-s); }
.process-step:last-child { border-bottom: 1px solid rgba(176,141,87,.5); }
.step-num { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--brass-text); line-height: 1; padding-top: .2rem; }
.step-body h3 { margin-bottom: .3rem; }
.step-body p { margin: 0; color: var(--taupe); }
.step-illu { display: block; width: 64px; height: 64px; margin-bottom: .6rem; }
.step-illu svg { width: 100%; height: 100%; }
.step-media { display: none; }
.process-stage { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 48px); background: var(--sand); overflow: hidden; }
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transition: clip-path var(--t-s) var(--ease-inout), opacity var(--t-s); }
.stage-video.is-active { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.process-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(244,239,230,.4); }
.process-progress span { display: block; height: 100%; width: 0; background: var(--brass); transition: width var(--t-s) var(--ease-out); }
@media (min-width: 900px) {
  .process-step { opacity: .45; cursor: pointer; }
  .process-step.is-active { opacity: 1; }
}

/* ---------- Before / after ---------- */
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); user-select: none; touch-action: pan-y; }
.ba .pic, .ba img { width: 100%; height: 100%; object-fit: cover; }
.ba-after, .ba-before { position: absolute; inset: 0; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag { position: absolute; top: 12px; padding: .3rem .6rem; background: rgba(30,27,22,.7); color: var(--ivory); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; border-radius: var(--radius); }
.ba-before .ba-tag { left: 12px; }
.ba-after .ba-tag { right: 12px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--brass); transform: translateX(-1px); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--brass); box-shadow: 0 6px 18px rgba(30,27,22,.25); }
.ba-handle span::before, .ba-handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--brass); border-left: 2px solid var(--brass); }
.ba-handle span::before { left: 10px; transform: translateY(-50%) rotate(-45deg); }
.ba-handle span::after { right: 10px; transform: translateY(-50%) rotate(135deg); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.ba-range:focus-visible + .ba-handle span { outline: 2px solid var(--indigo); outline-offset: 3px; }

/* ---------- Paris ---------- */
.paris-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.paris-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.paris-media-2 { margin-top: 3rem; }
.paris-media img { object-fit: cover; aspect-ratio: 4 / 5; width: 100%; height: 100%; }

/* ---------- Collection ---------- */
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 2.5rem 0 2rem; perspective: 1200px; }
.col-card { margin: 0; background: var(--white); border: 1px solid rgba(110,102,86,.18); transform-style: preserve-3d; transition: transform .4s var(--ease-out); will-change: transform; overflow: hidden; }
.col-pic { position: relative; }
.col-card .pic { display: block; aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.col-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col-card::after { z-index: 2; }
.col-card .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 45%, transparent 60%); transform: translateX(-120%); transition: transform .6s var(--ease-out); pointer-events: none; }
.col-card:hover .pic::after { transform: translateX(120%); }
.col-card figcaption { padding: .8rem 1rem; font-size: .9rem; color: var(--taupe); }
.col-modal { position: fixed; inset: 0; z-index: 300; background: rgba(244,239,230,.96); display: none; align-items: center; justify-content: center; padding: 24px; }
.col-modal.is-open { display: flex; }
.col-modal img { max-height: 84vh; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 30px 80px rgba(30,27,22,.25); }
.col-modal-close { position: absolute; top: 20px; right: 20px; }
.col-modal figcaption { position: absolute; bottom: 24px; left: 24px; right: 24px; text-align: center; color: var(--taupe); }

/* ---------- Zone ---------- */
.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.city-chips, .chips { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.city-chips li, .chips li { padding: .35rem .75rem; border: 1px solid var(--brass); border-radius: 999px; font-size: .9rem; color: var(--green); background: var(--white); }
.zone-map svg, .zone-map-large svg { width: 100%; height: auto; }
.zone-page-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.zone-map-large { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; background: var(--white); padding: 1rem; }
.province { padding: 1.4rem 0; border-top: 1px solid rgba(176,141,87,.5); }
.province h2 { font-size: 1.4rem; }
.city-list { list-style: none; padding: 0; margin: .6rem 0 0; columns: 2; column-gap: 2rem; }
.city-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dotted rgba(110,102,86,.3); break-inside: avoid; }
.city-list li.is-major { font-weight: 600; }
.city-list .km { color: var(--taupe); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 1.5rem; }
.faq-item { border-top: 1px solid rgba(176,141,87,.6); }
.faq-item:last-child { border-bottom: 1px solid rgba(176,141,87,.6); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 22px; height: 22px; fill: none; stroke: var(--brass-text); stroke-width: 2; flex: none; transition: transform var(--t-s) var(--ease-out); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-a { padding: 0 0 1.2rem; color: var(--ink); max-width: 68ch; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- CTA band + form ---------- */
.cta-band { background: var(--green); color: var(--ivory); }
.cta-band .section-title, .cta-band .lead { color: var(--ivory); }
.cta-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.after-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.after-list li { display: grid; grid-template-columns: 40px 1fr; gap: .8rem; }
.after-list .num { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--brass); line-height: 1; transform: scale(.9); transition: opacity var(--t-m) var(--ease-out), transform var(--t-m) var(--ease-out); }
html.js .is-in .after-list .num, html.js .after-list.is-in .num, .after-list .num { opacity: 1; transform: none; }
html.js .after-list:not(.is-in) .num { opacity: 0; transform: scale(.9); }
.after-list li:nth-child(2) .num { transition-delay: 120ms; } .after-list li:nth-child(3) .num { transition-delay: 240ms; }
.after-list p { margin: .2rem 0 0; opacity: .85; }
.cta-band .after-list p { color: rgba(244,239,230,.85); }
.after-list.compact { margin-top: 2.5rem; }
.quote-form-wrap { background: var(--ivory); color: var(--ink); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--brass); }
.quote-form { display: grid; gap: 1rem; }
.field { position: relative; display: grid; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--taupe); letter-spacing: .02em; }
.field input, .field select, .field textarea { font: inherit; padding: .8rem .9rem; border: 1px solid var(--taupe); border-radius: var(--radius); background: var(--white); color: var(--ink); transition: border-color var(--t-xs), box-shadow var(--t-xs); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,61,51,.15); }
.field.is-invalid input { border-color: var(--madder); }
.hp { position: absolute; left: -9999px; }
.form-hint { font-size: .92rem; margin: 0; }
.form-consent { font-size: .8rem; color: var(--taupe); margin: 0; }
.form-status[hidden] { display: none; }
.form-status .ok { color: var(--green); font-weight: 500; }
.form-status .err { color: var(--madder); }
.form-status .ok[hidden], .form-status .err[hidden] { display: none; }
.btn[data-submit] { position: relative; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn .check { display: none; }
.btn.is-sending .spinner { display: block; } .btn.is-sending [data-label] { opacity: .7; }
.btn.is-done .check { display: block; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s var(--ease-out) forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(32px, 5vw, 56px); }
.page-hero.compact { padding-bottom: 8px; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.page-hero-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.breadcrumb { padding-top: 1rem; font-size: .85rem; color: var(--taupe); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .5rem; color: var(--brass); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Misc layouts ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.card { background: var(--white); border: 1px solid rgba(110,102,86,.18); padding: clamp(20px, 3vw, 36px); }
.card-illu { display: block; width: 96px; height: 96px; margin-bottom: 1rem; }
.card-illu svg { width: 100%; height: 100%; }
.card-media { margin: -1px -1px 1rem; }
.card-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.inline-media { margin: 2rem 0 0; }
.inline-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.inline-media video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cross-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem 0; }
.cross-inner h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.cross-inner p { margin: 0; color: var(--taupe); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.video-grid figure { margin: 0; }
.video-grid video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--sand); }
.timeline { display: grid; gap: clamp(32px, 6vw, 80px); }
.timeline-item { display: grid; grid-template-columns: 56px 1fr 1fr; gap: clamp(16px, 3vw, 48px); align-items: center; }
.timeline-num { font-family: var(--font-display); font-style: italic; font-size: 2rem; color: var(--brass-text); }
.timeline-item:nth-child(even) .timeline-media { order: -1; grid-column: 2; }
.timeline-item:nth-child(even) .prose { grid-column: 3; }
.timeline-media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.values-list { list-style: none; padding: 1.6rem 0; margin: 2rem 0; display: grid; gap: 1rem; }
.values-list li { display: grid; grid-template-columns: 40px 1fr; gap: .8rem; align-items: baseline; }
.values-list .num { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--brass-text); }
.values-list p { margin: 0; font-size: 1.1rem; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-aside { display: grid; gap: 1.4rem; }
.contact-aside address { font-style: normal; margin-bottom: 1rem; line-height: 1.7; }
.map-embed { min-height: 220px; display: grid; place-items: center; align-content: center; gap: .6rem; background: var(--sand); padding: 1.4rem; text-align: center; }
.map-embed iframe { width: 100%; height: 320px; border: 0; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.5rem; }
.article-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.6rem; background: var(--white); border: 1px solid rgba(110,102,86,.18); text-decoration: none; color: inherit; transition: transform var(--t-s) var(--ease-out), box-shadow var(--t-s); }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(30,27,22,.10); }
.article-card h2 { font-size: 1.3rem; margin: .4rem 0 .2rem; }
.article-card p { color: var(--taupe); flex: 1; font-size: .95rem; }
.article-illu { display: block; width: 72px; height: 72px; }
.article-illu.large { width: 120px; height: 120px; margin: 0 auto 1.2rem; }
.article-illu svg { width: 100%; height: 100%; }
.article .meta { color: var(--taupe); font-size: .9rem; }
.article-body { padding-top: 1rem; }
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(176,141,87,.6); }
.related ul { padding-left: 1.2rem; }
.legal-body { padding-bottom: 2rem; }
.notfound { min-height: 60vh; display: flex; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: var(--ivory); border-top: 1px solid rgba(176,141,87,.25); padding: clamp(48px, 7vw, 96px) 0 32px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; right: -80px; bottom: -80px; width: 420px; height: 420px; background: var(--footer-mark, none) center / contain no-repeat; opacity: .04; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-symbol { display: block; width: 56px; height: 56px; margin-bottom: 1rem; }
.footer-name { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 .3rem; }
.footer-tag, .footer-parent { color: rgba(244,239,230,.75); font-size: .92rem; }
.footer-h { font-family: var(--font-text); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-links a { text-decoration: none; color: rgba(244,239,230,.9); }
.footer-links a:hover { text-decoration: underline; }
.footer-address { font-style: normal; line-height: 1.7; }
.footer-address a { color: var(--ivory); }
.footer-hours { font-size: .92rem; color: rgba(244,239,230,.8); }
.footer-langs { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; gap: 1rem; font-size: .9rem; }
.footer-langs a { color: rgba(244,239,230,.8); }
.footer-langs a[aria-current="true"] { color: var(--brass); font-weight: 600; text-decoration: none; }
.footer-bottom { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(244,239,230,.15); font-size: .85rem; color: rgba(244,239,230,.6); }
.site-footer .todo { color: #F1C8C2; border-color: #F1C8C2; background: rgba(255,255,255,.06); }

/* ---------- Sticky bar (mobile) ---------- */
.sticky-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--green); color: var(--ivory); height: 56px; grid-template-columns: 1fr 1fr 1fr; box-shadow: 0 -6px 24px rgba(30,27,22,.2); }
.sticky-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; text-decoration: none; font-weight: 600; font-size: .9rem; border-right: 1px solid rgba(244,239,230,.15); }
.sticky-bar a:last-child { border-right: 0; }
.sticky-bar a.is-primary { background: var(--madder); }
.sticky-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cookie banner + lang prompt ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 250; background: var(--white); color: var(--ink); border: 1px solid var(--brass); padding: 1.1rem 1.3rem; display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; box-shadow: 0 16px 40px rgba(30,27,22,.2); max-width: 900px; margin: 0 auto; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .92rem; }
.cookie-actions { display: flex; gap: .6rem; flex: none; }
.lang-prompt { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 240; background: var(--white); border: 1px solid var(--brass); padding: .7rem 1rem; display: flex; gap: .7rem; align-items: center; box-shadow: 0 12px 30px rgba(30,27,22,.18); }
.lang-prompt[hidden] { display: none; }
.lang-prompt p { margin: 0; font-weight: 500; }

/* ---------- Page transitions ---------- */
body.is-leaving main { opacity: 0; transition: opacity 250ms var(--ease-out); }
main { animation: pageIn 250ms var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav ul { gap: 1.1rem; }
  .header-cta { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .site-header.is-scrolled .header-inner { height: 56px; }
  .menu-toggle { display: flex; }
  .main-nav { position: fixed; inset: var(--header-h) 0 56px 0; background: var(--ivory); color: var(--ink); transform: translateX(100%); transition: transform var(--t-s) var(--ease-out); overflow: auto; padding: 1.5rem var(--gutter); z-index: 90; }
  .main-nav.is-open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: .9rem 0; font-size: 1.25rem; font-family: var(--font-display); border-bottom: 1px solid rgba(176,141,87,.4); }
  .nav-mobile-only { display: block; }
  .site-header.is-scrolled .main-nav { color: var(--ink); }
  body { padding-bottom: 56px; }
  .sticky-bar { display: grid; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 24px); }
  .hero-grid, .paris-grid, .zone-grid, .two-col, .page-hero-grid, .contact-grid, .cta-band-inner, .zone-page-grid, .process-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .rug-stage { aspect-ratio: 5 / 4; }
  .reassurance-list { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .collection-grid, .video-grid, .article-grid { grid-template-columns: 1fr 1fr; }
  .process-stage { display: none; }
  .process-step { grid-template-columns: 40px 1fr; }
  .step-media { display: block; grid-column: 2; margin-top: .8rem; }
  .step-media video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-item:nth-child(even) .timeline-media, .timeline-item:nth-child(even) .prose { grid-column: auto; order: 0; }
  .timeline-num { display: none; }
  .zone-map-large { position: static; }
  .city-list { columns: 1; }
  .cross-inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner { flex-direction: column; align-items: stretch; bottom: 72px; }
  .cookie-actions { justify-content: flex-end; }
  .lang-prompt { width: calc(100% - 32px); flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .reassurance-list, .collection-grid, .video-grid, .article-grid { grid-template-columns: 1fr; }
  .paris-media { grid-template-columns: 1fr 1fr; }
  .brand-word-main { font-size: 1.05rem; }
  .brand-symbol { width: 34px; height: 34px; }
  .lang-btn span { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-split] .w > span, .hero [data-hero-sub], .hero [data-hero-actions], .after-list .num { opacity: 1 !important; transform: none !important; }
  .rule-frame::after { opacity: .9; }
  main { animation: none; }
}
@media print { .site-header, .sticky-bar, .cookie-banner, .lang-prompt, .cta-band, .rug-canvas { display: none !important; } }

/* Police de repli auto-hébergée (si Google Fonts indisponible) */
@font-face { font-family: 'Lora'; src: url('/assets/fonts/lora-variable.woff') format('woff'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('/assets/fonts/lora-italic-variable.woff') format('woff'); font-weight: 400 700; font-style: italic; font-display: swap; }
:root { --font-display: 'Fraunces', 'Lora', Georgia, serif; }

/* --- en cours de lavage (accueil) --- */
.encours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.encours-media { margin: 0; }
.encours-media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; display: block; }
.encours-text .lead { margin-top: 12px; }
@media (max-width: 900px) { .encours-grid { grid-template-columns: 1fr; } }

.muted { color: var(--taupe); font-size: .95rem; }
