/* Lapewoo — maquette
   Couleurs prises sur son logo et ses stories à la une */
:root {
  --bordeaux: #550101;
  --bordeaux-2: #6E0A0E;
  --bordeaux-nuit: #2C0002;
  --rouge: #9B1C1F;
  --creme: #EEDFCE;
  --creme-2: #F7EFE4;
  --satin: #E7D5BF;
  --olive: #565B22;
  --olive-clair: #8A8E4E;
  --encre: #1C1210;
  --gris: #6B5E57;

  --titre: "Gloock", "Times New Roman", serif;
  --texte: "Hanken Grotesk", system-ui, sans-serif;

  --marge: clamp(20px, 5vw, 72px);
  --large: 1320px;
  --courbe: cubic-bezier(.22, .9, .24, 1);
  --courbe-douce: cubic-bezier(.32, .72, 0, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--creme-2);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--olive-clair); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grain papier, fixe, ne bouge pas avec le scroll */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.a-completer {
  display: inline-block; padding: 2px 8px; border: 1px dashed currentColor; border-radius: 6px;
  font-size: .82em; font-weight: 600; letter-spacing: .01em; opacity: .85;
}

/* ---------- Textures (ses stories à la une) ---------- */
.tex-croco { background: linear-gradient(rgba(70, 0, 2, .62), rgba(70, 0, 2, .62)), url("../tex/croco-bordeaux.jpg") center / 340px; }
.tex-croco-sombre { background: linear-gradient(rgba(36, 0, 2, .80), rgba(36, 0, 2, .80)), url("../tex/croco-bordeaux.jpg") center / 300px; }
.tex-olive { background: linear-gradient(rgba(58, 61, 20, .55), rgba(58, 61, 20, .55)), url("../tex/croco-olive.jpg") center / 340px; }
.tex-zebre { background: linear-gradient(rgba(238, 223, 206, .18), rgba(238, 223, 206, .18)), url("../tex/zebre.jpg") center / 300px; }
.tex-satin {
  background:
    radial-gradient(120% 70% at 15% 10%, rgba(255, 255, 255, .75), transparent 55%),
    radial-gradient(90% 60% at 85% 90%, rgba(255, 250, 240, .6), transparent 60%),
    linear-gradient(115deg, #E9D8C2 0%, #F6ECDF 28%, #DCC6AC 46%, #F3E7D8 64%, #E2CFB6 82%, #F5EADC 100%);
}

/* ---------- Typo ---------- */
h1, h2, h3, .titre { font-family: var(--titre); font-weight: 400; letter-spacing: -.015em; line-height: 1; margin: 0; }
.surtitre {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.surtitre::before { content: ""; width: 22px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; }
.h2 { font-size: clamp(40px, 6.4vw, 92px); }
.h2 em, .h1 em { font-style: italic; }
.chapo { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 34em; }

/* ---------- Boutons ---------- */
.btn {
  --fond: var(--creme); --txt: var(--bordeaux);
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 6px 6px 6px 26px; border-radius: 999px;
  background: var(--fond); color: var(--txt); border: 1.5px solid var(--fond);
  font-weight: 700; font-size: 16px; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .5s var(--courbe-douce), background .4s, color .4s, border-color .4s;
}
.btn .rond {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--txt); color: var(--fond); flex: none;
  transition: transform .5s var(--courbe-douce);
}
.btn .rond svg { width: 16px; height: 16px; }
@media (hover: hover) { .btn:hover .rond { transform: translateX(3px) rotate(-45deg) scale(1.04); } }
.btn:active { transform: scale(.97); }
.btn--bordeaux { --fond: var(--bordeaux); --txt: var(--creme); }
.btn--olive { --fond: var(--olive); --txt: var(--creme-2); }
.btn--contour { background: transparent; color: var(--fond); border-color: color-mix(in srgb, var(--fond) 55%, transparent); padding: 6px 26px; justify-content: center; }
.btn--contour:hover { border-color: var(--fond); background: color-mix(in srgb, var(--fond) 10%, transparent); }
.btn--contour.btn--sombre { --fond: var(--bordeaux); }
.lien-fleche { font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; z-index: 60; left: 50%; top: calc(14px + var(--safe-t)); transform: translateX(-50%);
  width: min(calc(100% - 28px), 1180px);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 8px 8px 8px 10px; border-radius: 999px;
  background: rgba(44, 0, 2, .72); color: var(--creme);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 0 0 1px rgba(238, 223, 206, .14), 0 18px 40px -24px rgba(0, 0, 0, .6);
  transition: transform .6s var(--courbe-douce), background .4s;
}
.nav.cache { transform: translate(-50%, calc(-100% - 30px)); }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.marque img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(238, 223, 206, .3); }
.marque span { font-family: var(--titre); font-size: 24px; letter-spacing: -.01em; }
.nav__liens { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__liens a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  text-decoration: none; font-size: 15px; font-weight: 600; color: rgba(238, 223, 206, .82);
  transition: color .3s, background .3s;
}
.nav__liens a:hover, .nav__liens a[aria-current="page"] { color: var(--creme); background: rgba(238, 223, 206, .1); }
.nav__liens .nav__resa { background: var(--creme); color: var(--bordeaux); margin-left: 6px; padding: 0 22px; }
.nav__liens .nav__resa:hover { background: #fff; color: var(--bordeaux); }
.burger {
  display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--creme); color: var(--bordeaux);
}
.burger i { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .5s var(--courbe-douce), top .5s var(--courbe-douce); }
.burger i:nth-child(1) { top: 19px; }
.burger i:nth-child(2) { top: 27px; }
.burger[aria-expanded="true"] i:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(110px + var(--safe-t)) 24px calc(32px + var(--safe-b));
  color: var(--creme); visibility: hidden; clip-path: ellipse(0% 0% at 100% 0%);
  transition: clip-path .8s var(--courbe-douce), visibility 0s .8s;
}
.menu.ouvert { visibility: visible; clip-path: ellipse(150% 140% at 100% 0%); transition: clip-path .8s var(--courbe-douce); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; border-bottom: 1px solid rgba(238, 223, 206, .18); }
.menu li a {
  display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; min-height: 44px;
  font-family: var(--titre); font-size: clamp(40px, 11vw, 64px); line-height: 1.05; text-decoration: none;
  transform: translateY(110%); transition: transform .7s var(--courbe-douce);
}
.menu li a small { font-family: var(--texte); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
.menu.ouvert li a { transform: none; }
.menu.ouvert li:nth-child(2) a { transition-delay: .06s; }
.menu.ouvert li:nth-child(3) a { transition-delay: .12s; }
.menu.ouvert li:nth-child(4) a { transition-delay: .18s; }
.menu.ouvert li:nth-child(5) a { transition-delay: .24s; }
.menu__bas { margin-top: 28px; display: grid; gap: 10px; font-size: 15px; color: rgba(238, 223, 206, .75); }
body.bloque { overflow: hidden; }
body.bloque .barre-resa, body.bloque .barre-total { transform: translateY(calc(100% + 40px)); }

/* Barre fixe du bas, téléphone */
.barre-resa {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b));
  display: none; gap: 8px; padding: 6px; border-radius: 999px;
  background: rgba(44, 0, 2, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(238, 223, 206, .16), 0 20px 40px -18px rgba(0, 0, 0, .7);
  transition: transform .5s var(--courbe-douce);
}
.barre-resa a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 16px;
}
.barre-resa .principal { flex: 1; background: var(--creme); color: var(--bordeaux); }
.barre-resa .secondaire { width: 50px; color: var(--creme); border: 1.5px solid rgba(238, 223, 206, .35); }
.barre-resa svg { width: 20px; height: 20px; }
.barre-resa.cache { transform: translateY(calc(100% + 30px)); }

/* ---------- Monogramme OO ---------- */
.oo { display: block; }
.oo path { fill: none; stroke: currentColor; }

/* ---------- Apparitions ---------- */
.apparait { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--courbe), transform .9s var(--courbe); }
.apparait.vu { opacity: 1; transform: none; }

/* ---------- Pied de page ---------- */
.pied { position: relative; color: var(--creme); padding: clamp(72px, 10vw, 130px) var(--marge) calc(110px + var(--safe-b)); overflow: hidden; }
.pied .pied__grand { font-family: var(--titre); font-size: clamp(64px, 17vw, 260px); line-height: .82; letter-spacing: -.03em; margin: 0 0 56px; opacity: .95; }
.pied__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; max-width: var(--large); }
.pied h3 { font-family: var(--texte); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 14px; color: rgba(238, 223, 206, .6); }
.pied p, .pied ul { margin: 0; font-size: 16px; line-height: 1.7; }
.pied ul { list-style: none; padding: 0; }
.pied a { text-decoration: none; display: inline-block; min-height: 32px; }
.pied a:hover { text-decoration: underline; }
.pied__mentions { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(238, 223, 206, .18); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: rgba(238, 223, 206, .6); }

/* ---------- Bandeau de page (sous-pages) ---------- */
.tete-page { position: relative; color: var(--creme); padding: calc(150px + var(--safe-t)) var(--marge) clamp(56px, 8vw, 96px); overflow: hidden; }
.tete-page__inner { max-width: var(--large); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.tete-page h1 { font-size: clamp(56px, 10vw, 150px); line-height: .9; margin-top: 18px; }
.tete-page p { margin: 0; color: rgba(238, 223, 206, .86); }

/* ---------- Pastilles de filtres (passent à la ligne, jamais de défilement horizontal) ---------- */
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pastilles a, .pastilles button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid rgba(85, 1, 1, .25); background: transparent; color: var(--bordeaux);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.pastilles a:hover, .pastilles button:hover { border-color: var(--bordeaux); }
.pastilles [aria-pressed="true"] { background: var(--bordeaux); color: var(--creme); border-color: var(--bordeaux); }
.pastilles .tex { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }

@media (max-width: 900px) {
  .nav__liens { display: none; }
  .burger { display: block; }
  .barre-resa { display: flex; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .tete-page__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pied__grille { grid-template-columns: 1fr; }
  .marque span { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .apparait { opacity: 1; transform: none; }
}
