/* ============================================================
   ElymNails — Landing page
   Palette : crème / beige · or chaud · anthracite
   Typo    : Cormorant Garamond (titres) + Jost (corps)
   ============================================================ */

:root {
  /* Couleurs */
  --cream:      #FAF5EC;
  --beige:      #F0E7D8;
  --sand:       #E5D7BF;
  --gold:       #B8924A;
  --gold-soft:  #C9A85F;
  --gold-deep:  #9A7838;
  --ink:        #1C1A17;   /* anthracite */
  --ink-soft:   #3B3731;
  --muted:      #847C6E;
  --white:      #FFFFFF;
  --line:       #E2D8C6;

  /* Typo */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", system-ui, -apple-system, sans-serif;

  /* Échelle / divers */
  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1140px;
  --ease:       cubic-bezier(.22,.61,.36,1);
  --shadow:     0 18px 50px -24px rgba(28,26,23,.35);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, iframe { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(64px, 9vw, 120px); }

/* ---------- Eyebrow / titres de section ---------- */
.eyebrow {
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin: 0 0 1rem;
}
.eyebrow--center { text-align: center; }

.section__head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__title { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.section__sub { color: var(--muted); margin: 1rem auto 0; max-width: 52ch; }

/* ============ BOUTONS ============ */
.btn {
  --pad-y: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--pad-y) 30px;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 14px 30px -14px rgba(184,146,74,.7);
}
.btn--gold:hover { background: var(--gold-deep); }

.btn--dark {
  background: var(--ink);
  color: var(--cream);
}
.btn--dark:hover { background: #000; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn--nav {
  --pad-y: 10px;
  min-height: 42px;
  padding: 10px 22px;
  background: var(--ink);
  color: var(--cream);
}
.btn--nav:hover { background: var(--gold); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding-block: 18px;
}
.nav.is-scrolled {
  background: rgba(250,245,236,.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 10px;
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}
.brand__name--lg { font-size: 2rem; }
.brand__accent { color: var(--gold-deep); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) {
  font-size: .95rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav__links a:not(.btn):hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: none; border: none; cursor: pointer;
  padding: 10px;
}
.nav__toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-block: 120px 80px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(201,168,95,.28), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(229,215,191,.7), transparent 60%),
    linear-gradient(160deg, var(--cream) 0%, var(--beige) 100%);
}
.hero__bg::after {
  /* texture/voile décoratif */
  content: "";
  position: absolute;
  right: -10%; top: -10%;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(184,146,74,.18), transparent 65%);
  border-radius: 50%;
  filter: blur(10px);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  max-width: 760px;
}
.hero__title {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -.01em;
  margin-block: .2em .4em;
}
.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 1.4rem; font-size: .88rem; color: var(--muted); }
.hero__note strong { color: var(--ink); font-weight: 600; }
.stars { color: var(--gold); letter-spacing: 2px; margin-right: 4px; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px; height: 42px;
  border: 1.5px solid var(--gold-deep);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--gold-deep);
  border-radius: 2px;
  animation: scroll 1.8s var(--ease) infinite;
}
@keyframes scroll {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(14px); }
}

/* ============ FEATURES ============ */
.features { padding-block: clamp(48px, 7vw, 84px); background: var(--white); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.feature { text-align: center; }
.feature__icon {
  display: inline-block;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: .6rem;
}
.feature h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ============ SERVICES / MENU ============ */
.services { background: var(--cream); }
.menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.menu__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow);
}
.menu__cat {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  font-size: 1rem;
}
.menu__list li > span:first-child { color: var(--ink-soft); }
.dots {
  flex: 1;
  border-bottom: 1px dotted var(--sand);
  transform: translateY(-3px);
}
.menu__name { color: var(--ink-soft); }
.menu__dur { color: var(--muted); font-size: .82em; white-space: nowrap; }
.menu__hint {
  margin: 1rem 0 0;
  font-size: .9rem;
  font-style: italic;
  color: var(--muted);
}
.price {
  font-variant-numeric: tabular-nums;
  color: var(--gold-deep);
  font-weight: 500;
  white-space: nowrap;
}

.menu__products {
  text-align: center;
  margin: clamp(28px, 4vw, 40px) auto 0;
  color: var(--muted);
  font-size: .95rem;
}
.menu__products em { color: var(--ink-soft); font-style: normal; }

.services__cta { text-align: center; margin-top: clamp(40px, 5vw, 60px); }
.services__cta-note { color: var(--muted); font-size: .9rem; margin-top: 1rem; }

/* ============ GALERIE ============ */
.gallery { background: var(--white); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery__item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--beige), var(--sand));
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%; /* privilégie les ongles (haut/centre du cadre) */
  display: block;
  transition: transform .5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__note { text-align: center; margin-top: 2rem; color: var(--muted); }

.link-underline {
  color: var(--gold-deep);
  border-bottom: 1px solid currentColor;
  transition: opacity .2s var(--ease);
}
.link-underline:hover { opacity: .7; }

/* ============ LOCATION / MAP ============ */
.location { background: var(--cream); }
.location__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.location__details {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
.location__details li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.location__details li:last-child { border-bottom: none; padding-bottom: 0; }
.location__label {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  padding-top: 3px;
}
.location__map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--beige), var(--sand));
}
.location__directions {
  position: absolute;
  right: 16px; bottom: 16px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--cream);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .03em;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: background-color .25s var(--ease);
}
.location__directions:hover { background: var(--gold); }
.location__map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(.25) contrast(1.02);
}

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(56px, 8vw, 96px);
  text-align: center;
}
.cta-band__inner { max-width: 620px; margin-inline: auto; }
.cta-band h2 {
  color: var(--cream);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}
.cta-band p { color: rgba(250,245,236,.72); margin: 1rem 0 2rem; }

/* ============ FOOTER ============ */
/* Même fond que le bandeau CTA (var(--ink)) pour une continuité parfaite */
.footer { background: var(--ink); color: rgba(250,245,236,.7); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 80px);
}
.footer__title {
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 500;
  margin: 0 0 1.1rem;
}
.footer__brand .brand__name { color: var(--cream); }
.footer__brand p { margin: 1rem 0 0; font-size: .95rem; line-height: 1.7; }
.footer__addr { color: rgba(250,245,236,.5); }
.footer__links { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__text { margin: 0; font-size: .95rem; line-height: 1.9; }
.footer__links a,
.footer__link {
  font-size: .95rem;
  color: rgba(250,245,236,.7);
  transition: color .2s var(--ease);
}
.footer__links a:hover,
.footer__link:hover { color: var(--gold-soft); }
.footer__book {
  display: inline-block;
  margin-top: 1.3rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--gold-soft);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity .2s var(--ease);
}
.footer__book:hover { opacity: .75; }
.footer__bottom {
  border-top: 1px solid rgba(250,245,236,.12);
  text-align: center;
  padding-block: 22px;
  font-size: .85rem;
}
.footer__bottom p { margin: 0; }

/* ============ REVEAL (scroll animation) ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    background: var(--cream);
    box-shadow: -20px 0 60px -30px rgba(0,0,0,.4);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
  }
  /* Le panneau mobile est position:fixed : on retire le backdrop-filter de la nav
     à l'ouverture, sinon il devient bloc conteneur et restreint la hauteur du menu. */
  .nav.is-open { backdrop-filter: none; }
  .nav.is-open .nav__links { transform: translateX(0); }
  .nav__links a:not(.btn) { font-size: 1.2rem; font-family: var(--serif); }
  .btn--nav { align-self: stretch; }
  .nav__toggle { display: flex; }

  .features__grid { grid-template-columns: 1fr; gap: 36px; }
  .menu { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .location__grid { grid-template-columns: 1fr; }
  .location__map iframe { height: 340px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero { min-height: 92svh; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .location__details li { grid-template-columns: 1fr; gap: 4px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}

/* ============ MOTION RÉDUIT ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
