/* Les Petites Mains — direction : blanc cassé, crème, beige et taupe.
   Typographie fine (Cormorant Garamond léger + Jost léger), composition centrée. */
:root {
  --paper: #f7f3ec;
  --paper-2: #ece4d7;
  --sand: #d9cbb7;
  --ink: #2f2923;
  --stone: #5f5348;
  --line: #d9cfc0;
  --taupe: #6f5b49;
  --taupe-deep: #5a4b3f;
  --taupe-ink: #f7f3ec;
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1080px;
  --narrow: 720px;
  --gutter: clamp(20px, 5vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  text-align: center;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.15; letter-spacing: 0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.7rem; }
p { margin: 0; }
strong { font-weight: 500; }

:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--narrow); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Bandeau du haut : marque centrée, langues dessous */
.masthead { padding: 22px 0 14px; }
.mast { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1.1; }
.brand img { height: 56px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 2rem; font-weight: 300; letter-spacing: 0.06em; }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone); margin-top: 6px; }
.langs { display: flex; gap: 4px; font-size: 0.74rem; letter-spacing: 0.14em; }
.langs a { text-decoration: none; padding: 4px 8px; color: var(--stone); border-bottom: 1px solid transparent; }
.langs a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--taupe); }
.langs a:hover { color: var(--ink); }

/* Barre de navigation (reste visible au défilement) */
.navrow { position: sticky; top: 0; z-index: 50; background: rgba(247, 243, 236, 0.95); backdrop-filter: blur(8px); border-block: 1px solid var(--line); }
.navrow-in { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 24px; max-width: 1240px; min-height: 54px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav a:hover { border-color: var(--taupe); }
.menu-btn { display: none; background: none; border: 1px solid var(--taupe); padding: 8px 18px; font: inherit; font-weight: 400; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; color: var(--taupe); }

/* Boutons */
.btn { display: inline-block; text-decoration: none; font: inherit; font-weight: 400; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 15px 30px; border: 1px solid var(--taupe); background: var(--taupe); color: var(--taupe-ink); cursor: pointer; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.btn:hover { background: transparent; color: var(--taupe); }
.btn--ghost { background: transparent; color: var(--taupe); }
.btn--ghost:hover { background: var(--taupe); color: var(--taupe-ink); }
.btn--sm { padding: 9px 20px; font-size: 0.74rem; }

/* Sections */
section { padding-block: clamp(64px, 10vw, 120px); }
.eyebrow { font-size: 0.72rem; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--taupe); margin-bottom: 24px; }
.lead { font-size: 1.15rem; color: var(--stone); max-width: 58ch; margin-inline: auto; }
.rule { display: block; width: 48px; height: 1px; background: var(--taupe); margin: 28px auto; border: 0; }
.alt { background: var(--paper-2); }
.head { max-width: 60ch; margin: 0 auto 52px; }
.head p { margin-top: 18px; color: var(--stone); }

/* Photo (ou emplacement) */
.ph { margin: 0 auto; width: 100%; max-width: 960px; position: relative; background: var(--paper-2); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.is-empty {
  display: grid; place-items: end center; padding: 18px;
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(111, 91, 73, 0.10) 11px 12px),
    var(--sand);
}
.alt .ph.is-empty { background: repeating-linear-gradient(135deg, transparent 0 11px, rgba(111, 91, 73, 0.10) 11px 12px), var(--sand); }
.ph.is-empty figcaption { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--stone); background: var(--paper); padding: 6px 14px; }
.ph--wide { aspect-ratio: 16 / 9; }

/* Accueil */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 96px); }
.hero h1 { max-width: 920px; margin-inline: auto; }
.hero .lead { margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 36px 0 clamp(40px, 6vw, 64px); }

/* Chiffres */
.figures { border-block: 1px solid var(--line); padding-block: 0; }
.figures ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.figures li { padding: 44px 16px; }
.figures li + li { border-left: 1px solid var(--line); }
.fig-n { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 5.5vw, 4rem); line-height: 1; color: var(--taupe); font-variant-numeric: lining-nums tabular-nums; }
.fig-l { margin: 12px auto 0; color: var(--stone); font-size: 0.95rem; max-width: 24ch; }

/* Savoir-faire */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); text-align: center; }
.col { border-top: 1px solid var(--taupe); padding-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.col p { color: var(--stone); max-width: 44ch; }
.ticks { list-style: none; margin: 10px 0 0; padding: 0; width: 100%; max-width: 360px; }
.ticks li { padding: 9px 0; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }

/* Frise : de l'idée à la livraison */
.timeline { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); max-width: 980px; }
.timeline li { position: relative; padding-top: 34px; font-size: 0.98rem; line-height: 1.4; padding-inline: 8px; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--taupe); z-index: 1; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 5px; left: 50%; width: 100%; height: 1px; background: var(--taupe); opacity: 0.55; }

/* Spécialités */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.spec { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.spec .ph { margin-bottom: 14px; }
.spec h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.spec p { color: var(--stone); max-width: 42ch; }
.ph--card { aspect-ratio: 4 / 3; }

/* Broderie */
.chips { list-style: none; margin: 32px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.chips li { border: 1px solid var(--taupe); padding: 8px 18px; font-size: 0.92rem; }
.chips li.is-key { background: var(--taupe); color: var(--taupe-ink); font-weight: 400; padding: 10px 26px; font-size: 1rem; letter-spacing: 0.04em; }
.fabrics { margin: 44px 0 56px; }
.fabrics h3 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--taupe); }
.fabrics .chips { margin-top: 16px; }
.fabrics .chips li { border-color: var(--sand); color: var(--stone); background: var(--paper-2); }

/* Atelier */
.story { margin-bottom: 56px; }
.story p { color: var(--stone); }
.story p + p { margin-top: 20px; }

/* Engagement */
.quote { margin: 0 auto 64px; max-width: 30em; }
.quote p { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.4; text-wrap: pretty; }
.quote footer { margin-top: 28px; font-size: 0.92rem; letter-spacing: 0.06em; color: var(--stone); }
.quote footer strong { color: var(--ink); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.pillars li { border-top: 1px solid var(--taupe); padding-top: 22px; }
.pillars h3 { font-family: var(--font-body); font-weight: 400; font-size: 0.82rem; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 10px; color: var(--taupe); }
.pillars p { color: var(--stone); font-size: 0.97rem; max-width: 30ch; margin-inline: auto; }

/* Collection privée */
.private { background: var(--taupe-deep); color: var(--taupe-ink); }
.private h2 { color: var(--taupe-ink); }
.private .rule { background: var(--sand); }
.private p { color: #e6dccd; max-width: 52ch; margin-inline: auto; }
.private .btn { margin-top: 36px; background: var(--taupe-ink); color: var(--taupe-deep); border-color: var(--taupe-ink); }
.private .btn:hover { background: transparent; color: var(--taupe-ink); }

/* Contact */
.details { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 36px; margin: 48px auto 0; }
.details dt { font-size: 0.68rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--taupe); margin-bottom: 6px; }
.details dd { margin: 0; font-size: 0.97rem; }
@media (min-width: 1100px) { .details dd { white-space: nowrap; } }
.details a { text-underline-offset: 4px; }
form { display: grid; gap: 22px; max-width: 640px; margin: 56px auto 0; text-align: left; }
.field { display: grid; gap: 4px; }
label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); font-weight: 400; }
input, textarea { font: inherit; font-weight: 300; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--taupe); padding: 10px 2px; border-radius: 0; }
input:focus, textarea:focus { outline: none; box-shadow: 0 1px 0 var(--taupe); }
textarea { min-height: 130px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-foot { text-align: center; display: grid; gap: 14px; justify-items: center; }
.note { font-size: 0.85rem; color: var(--stone); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 0.86rem; letter-spacing: 0.04em; color: var(--stone); }
.foot { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* Page d'accueil des langues */
.choose { min-height: 100vh; display: grid; place-items: center; padding: 40px var(--gutter); }
.choose-box { max-width: 460px; width: 100%; }
.choose h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); }
.choose ul { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--taupe); }
.choose li a { display: block; padding: 18px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; }
.choose li a:hover { background: var(--paper-2); }
.choose li a span[aria-hidden] { display: none; }

/* Tablette et mobile */
@media (max-width: 960px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; padding: 4px 0 14px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
  .navrow-in { gap: 10px 16px; padding-block: 8px; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .cols, .pillars, .row2 { grid-template-columns: 1fr; }
  .figures ul { grid-template-columns: 1fr; }
  .figures li { padding: 28px 0; }
  .figures li + li { border-left: 0; border-top: 1px solid var(--line); }
  .specs { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li { padding: 34px 0 30px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li:not(:last-child)::after { top: 5px; left: 50%; width: 1px; height: 100%; }
  .brand-name { font-size: 1.7rem; }
  .ph--wide { aspect-ratio: 4 / 3; }
}

.hero .ph img { object-position: 50% 58%; }
#broderie .ph img { object-position: 50% 38%; }
#atelier .ph img { object-position: 50% 22%; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px) clamp(16px, 2.5vw, 32px); max-width: 1040px; margin-inline: auto; }
.gal-item { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.gal-btn { display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--paper-2); overflow: hidden; cursor: zoom-in; }
.gal-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gal-btn:hover img { transform: scale(1.03); }
.gal-item figcaption { font-size: 0.92rem; line-height: 1.5; letter-spacing: 0.02em; color: var(--stone); padding-inline: 4px; text-wrap: balance; }

/* Agrandissement */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; color: var(--taupe-ink); }
.lightbox::backdrop { background: rgba(47, 41, 35, 0.9); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox img { max-width: 92vw; max-height: 78vh; width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { font-size: 1rem; letter-spacing: 0.03em; padding-inline: 12px; max-width: 70ch; }
.lb-close { position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border: 1px solid var(--taupe-ink); background: transparent; color: var(--taupe-ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-close:hover { background: var(--taupe-ink); color: var(--taupe-deep); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .lb-close { top: -44px; } .gal-item figcaption { font-size: 0.85rem; } }
