/* Lafa Création — mobile first */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:       #2A160A;
  --brown:     #6B4226;
  --brown-mid: #8B5E3C;
  --cream:     #F7F1DE;
  --sand:      #EFE2C0;
  --gold:      #E0A611;
  --red:       #C0262B;
  --green:     #2E7D32;
  --blue:      #1E56B3;
  --orange:    #E8650A;
  --purple:    #7B2A9B;
  --wa:        #1FA855;
  --radius:    18px;
  --gutter:    20px;
  --kente: linear-gradient(to right,
      var(--gold) 0 16.66%, var(--red) 0 33.33%, var(--green) 0 50%,
      var(--blue) 0 66.66%, var(--orange) 0 83.33%, var(--purple) 0 100%);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Montserrat', system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 10vw, 4.6rem); }
h2 { font-size: clamp(2rem, 8vw, 3.2rem); margin-bottom: .4em; }
h3 { font-size: 1.5rem; margin: .6em 0 .25em; }
h1 em, h2 em { font-style: italic; color: var(--gold); }

.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .8em;
}
.eyebrow--gold  { color: var(--gold); }
.eyebrow--light { color: #fff6d8; }
.lead { font-size: 1.05rem; max-width: 38em; margin-bottom: 1.6em; opacity: .9; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; position: relative; }
.section--cream { background: var(--cream); }
.section--sand  { background: var(--sand); }
.section--ink   { background: var(--ink); color: var(--cream); }
.section--green { background: var(--green); color: #fff; }
.section--brown { background: var(--brown); color: var(--cream); }

/* ── Kente ── */
.kente { height: 10px; background: var(--kente); }
.kente--thin { height: 6px; }

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.5em; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none; letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 0 #a87a05; }
.btn--gold:hover { box-shadow: 0 3px 0 #a87a05; transform: translateY(3px); }
.btn--ghost { color: #fff; border: 2px solid rgba(255,255,255,.85); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--whatsapp { background: var(--wa); color: #fff; box-shadow: 0 6px 0 #137a3c; }
.btn--whatsapp:hover { box-shadow: 0 3px 0 #137a3c; transform: translateY(3px); }
.btn--small { min-height: 40px; padding: 0 1.1em; font-size: .82rem; box-shadow: 0 4px 0 #a87a05; }

/* ── En-tête ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(247, 241, 222, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 66, 38, .12);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand span { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--brown); }
.brand em { color: var(--orange); }
.nav { display: none; }

/* ── Accueil ── */
.hero { position: relative; min-height: min(calc(100svh - 64px), 920px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; }
.hero__img, .hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img img { object-fit: cover; object-position: 50% 30%; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(42,22,10,0) 25%, rgba(42,22,10,.55) 55%, rgba(42,22,10,.92) 100%);
}
.hero__body { position: relative; z-index: 2; padding: 0 var(--gutter) 40px; max-width: 760px; }
.hero .eyebrow { color: var(--gold); }
.hero__lead { font-size: 1.05rem; margin: 1em 0 1.6em; max-width: 34em; color: #fdf6e3; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn { flex: 1 1 200px; }
.hero .kente { position: relative; z-index: 2; }

/* ── Parcours ── */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.path {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 16px; min-height: 104px; border-radius: var(--radius);
  background: #fff; border: 2px solid transparent; text-align: left;
  font-weight: 700; font-size: .95rem; line-height: 1.25;
  box-shadow: 0 4px 0 rgba(107,66,38,.15);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.path__icon { font-size: 1.6rem; }
.path[aria-selected="true"] { background: var(--c); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.path-panel { background: #fff; border-radius: var(--radius); padding: 22px 18px; border-top: 6px solid var(--panel, var(--orange)); }
.path-panel__intro { font-family: var(--serif); font-size: 1.35rem; font-style: italic; line-height: 1.3; margin-bottom: 18px; color: var(--brown); }
.picks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.pick { animation: pop .35s ease both; }
.pick img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; width: 100%; }
.pick span { display: block; font-size: .82rem; font-weight: 600; margin-top: 6px; line-height: 1.3; }
.path-panel .btn { width: 100%; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── Collections ── */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 calc(-1 * var(--gutter)) 14px; padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--brown); font-weight: 600; font-size: .88rem; color: var(--brown); }
.chip.is-on { background: var(--brown); color: var(--cream); }
.swatches { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.swatches__label { font-size: .82rem; font-weight: 600; color: var(--brown-mid); }
.swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--s); border: 3px solid #fff; box-shadow: 0 0 0 2px transparent; transition: box-shadow .2s, transform .2s; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); transform: scale(1.1); }
.grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 0 rgba(107,66,38,.12); animation: pop .35s ease both; }
.card img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.card__body { padding: 10px 12px 14px; }
.card__cat { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.card h3 { font-family: var(--sans); font-size: .92rem; font-weight: 700; margin: 2px 0 6px; line-height: 1.3; }
.card__dots { display: flex; gap: 4px; }
.card__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--d); }
.btn--outline { border: 2px solid var(--brown); color: var(--brown); background: #fff; }
.btn--outline:hover { background: var(--brown); color: var(--cream); }
.grid__more { display: flex; margin: 28px auto 0; }
.grid__more[hidden] { display: none; }
.grid__empty { text-align: center; padding: 30px 10px; font-style: italic; }

/* ── Rails ── */
.rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 18px; scroll-padding: 0 var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.look { flex: 0 0 78%; scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; }
.look img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.look figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-weight: 600; font-size: .95rem; }
.look figcaption small { display: block; font-weight: 400; font-size: .7rem; opacity: .75; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.clip { flex: 0 0 62%; scroll-snap-align: start; }
.clip video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: var(--sand); }
.clip figcaption { font-weight: 600; font-size: .9rem; margin-top: 8px; }

/* ── Fatou ── */
.story { display: grid; gap: 36px; }
.story__photos { position: relative; padding-bottom: 60px; }
.story__main { width: 80%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: 14px 14px 0 var(--orange); }
.story__second { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--cream); box-shadow: 0 10px 30px rgba(42,22,10,.25); }
.story__text p { margin-bottom: 1em; }
blockquote {
  font-family: var(--serif); font-size: 1.55rem; font-style: italic; line-height: 1.3; color: var(--brown);
  margin: 1.4em 0; padding: 18px 20px; background: #fff; border-radius: var(--radius); border-left: 6px solid var(--gold);
}
blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .85rem; font-weight: 700; color: var(--orange); margin-top: 8px; }

/* ── Artisanat ── */
.crafts { list-style: none; display: grid; gap: 18px; }
.craft { background: #fff; color: var(--ink); border-radius: var(--radius); overflow: hidden; border-bottom: 8px solid var(--c); }
.craft img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.craft h3, .craft p { padding: 0 18px; }
.craft p { padding-bottom: 20px; font-size: .95rem; }

/* ── Plan ── */
.map { background: #fff; border-radius: var(--radius); padding: 12px; margin-bottom: 24px; box-shadow: 0 6px 0 rgba(107,66,38,.15); }
.map svg { width: 100%; height: auto; border-radius: 12px; }
.map figcaption { font-size: .8rem; text-align: center; padding: 10px 6px 2px; color: var(--brown-mid); font-style: italic; }
.map__label { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: var(--brown); }
.map__label--small { font-size: 10px; font-weight: 600; }
.map__label--water { fill: #2f6f9f; font-style: italic; font-weight: 600; }
.map__tag { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: #fff; }
.map__pulse { transform-origin: center; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(.7); opacity: .35; } 50% { transform: scale(1.25); opacity: .1; } }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; margin-bottom: 24px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; background: #fff; border-radius: 14px; font-size: .95rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #fff; font-weight: 700;
}
.steps li:nth-child(2)::before { background: var(--red); }
.steps li:nth-child(3)::before { background: var(--green); }
.visit { display: grid; gap: 12px; }

/* ── Contact ── */
.contact { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__logo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 4px solid var(--gold); }
.contact .lead { margin-left: auto; margin-right: auto; }
.contact__phones { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.contact__phones a { font-family: var(--serif); font-size: 2rem; font-weight: 700; text-decoration: none; color: var(--gold); }

/* ── Pied ── */
.footer { background: var(--ink); color: var(--cream); text-align: center; padding-bottom: 96px; font-size: .85rem; }
.footer p { padding: 0 var(--gutter); }
.footer p:first-of-type { padding-top: 24px; font-weight: 600; }
.footer__small { opacity: .6; font-size: .72rem; margin-top: 6px; }

.fab {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

/* ── Tablette et plus ── */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .section { padding: 100px 0; }
  .paths { grid-template-columns: repeat(4, 1fr); }
  .picks { grid-template-columns: repeat(4, 1fr); }
  .path-panel { padding: 30px; }
  .path-panel .btn { width: auto; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .look { flex-basis: 40%; }
  .clip { flex-basis: 28%; }
  .crafts { grid-template-columns: 1fr 1fr; }
  .visit { grid-template-columns: auto auto; justify-content: start; }
  .contact__phones { flex-direction: row; gap: 32px; }
}
@media (min-width: 1024px) {
  .nav { display: flex; gap: 28px; }
  .nav a { text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--brown); }
  .nav a:hover { color: var(--orange); }
  .hero { min-height: min(88vh, 920px); }
  .hero { background: var(--ink); }
  .hero__img { left: auto; width: 52%; }
  .hero__img img { object-position: 50% 25%; }
  .hero::before { background: linear-gradient(90deg, var(--ink) 42%, rgba(42,22,10,.6) 50%, rgba(42,22,10,0) 62%); }
  .hero__body { max-width: 640px; padding-bottom: 96px; }
  .hero__body { padding: 0 64px 72px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .story { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 64px; }
  .crafts { grid-template-columns: repeat(4, 1fr); }
  .look { flex-basis: 30%; }
  .clip { flex-basis: 22%; }
  #venir .wrap { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  #venir .eyebrow, #venir h2, #venir .lead { grid-column: 1 / -1; }
  #venir .map { grid-row: span 2; }
  .rail { padding-left: max(var(--gutter), calc((100vw - 1120px) / 2 + var(--gutter))); }
}

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