/* ============================================================
   Les Mains d'Or — style.css
   Palette : Noir profond + Or chaud + Ivoire
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #c9a84c;
  --gold-light:  #e0c07a;
  --gold-dim:    #7a6030;
  --black:       #0c0c0e;
  --black-soft:  #141416;
  --black-card:  #1a1a1e;
  --warm:        #1c1610;
  --warm-card:   #221d14;
  --ivory:       #f5f0e8;
  --ivory-dim:   #c8c0b0;
  --white:       #ffffff;
  --border:      rgba(201,168,76,.18);
  --border-soft: rgba(201,168,76,.08);

  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Inter', system-ui, sans-serif;

  --nav-h: 68px;
  --section-py: clamp(5rem, 10vw, 8rem);
  --container: 1120px;
  --radius: 4px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--ff-sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* --- Container --------------------------------------------- */
.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 2rem;
  font-family: var(--ff-sans);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--gold);
  color: var(--black);
}
.btn--primary:hover { background: var(--gold-light); }

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--ivory-dim);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--full { width: 100%; justify-content: center; }

/* --- Navigation -------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
  transition: background var(--transition), border-color var(--transition);
}
.nav.scrolled {
  background: rgba(12,12,14,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
}
.nav__links a {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--gold); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#heroCanvas {
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--nav-h) 1.5rem 4rem;
}

.hero__logo {
  width: clamp(220px, 40vw, 380px);
  height: auto;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 24px rgba(201,168,76,.25));
  animation: heroPulse 4s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(201,168,76,.2)); }
  50%       { filter: drop-shadow(0 0 36px rgba(201,168,76,.45)); }
}

.hero__eyebrow {
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: .9;
}

.hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--ivory);
  margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__subtitle {
  font-family: var(--ff-serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ivory-dim);
  letter-spacing: .06em;
  margin-bottom: 3rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 1.2rem;
  color: var(--gold-dim);
  animation: scrollBounce 2.5s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .5; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* --- Sections ---------------------------------------------- */
.section {
  padding-block: var(--section-py);
  background: var(--black);
}
.section--dark { background: var(--black-soft); }
.section--warm { background: var(--warm); }

.section__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section__label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section__title {
  font-family: var(--ff-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ivory);
  margin-bottom: 1.25rem;
}
.section__title em {
  font-style: italic;
  color: var(--gold);
}
.section__desc {
  font-size: 1rem;
  color: var(--ivory-dim);
  max-width: 560px;
  margin-inline: auto;
}

/* --- Services Grid ----------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.service-card {
  padding: 2.5rem 2rem;
  background: var(--black-card);
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover { background: #1f1f24; }

.service-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gold);
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ivory);
}
.service-card p {
  font-size: .9rem;
  color: var(--ivory-dim);
  line-height: 1.7;
  flex: 1;
}
.service-card__link {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color var(--transition);
  align-self: flex-start;
}
.service-card__link:hover { color: var(--gold-light); }

/* --- Tech Section ------------------------------------------ */
.tech__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.tech__intro {
  font-size: 1.05rem;
  color: var(--ivory-dim);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.tech__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.tech__list li {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-soft);
  border-left: 2px solid var(--gold);
  background: var(--black-card);
  display: flex;
  flex-direction: column;
  gap: .3rem;
  border-radius: 2px;
}
.tech__list strong {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ivory);
}
.tech__list span {
  font-size: .82rem;
  color: var(--ivory-dim);
}

.stack__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.stack__item {
  padding: 1.25rem 1.5rem;
  background: var(--black-card);
  font-family: var(--ff-sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  text-align: center;
  transition: background var(--transition), color var(--transition);
}
.stack__item:hover {
  background: rgba(201,168,76,.08);
  color: var(--gold);
}

/* --- Wellness Section -------------------------------------- */
.wellness__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}
.wellness__card {
  padding: 2.5rem 2rem;
  background: var(--warm-card);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition);
}
.wellness__card:hover { border-color: rgba(201,168,76,.35); }

.wellness__card h3 {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ivory);
}
.wellness__card p {
  font-size: .9rem;
  color: var(--ivory-dim);
  line-height: 1.75;
  flex: 1;
}
.wellness__tag {
  display: inline-block;
  padding: .3rem .85rem;
  background: rgba(201,168,76,.1);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  align-self: flex-start;
}

/* --- Contact ----------------------------------------------- */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact__item svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: .15rem;
}
.contact__item div {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.contact__item strong {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact__item span,
.contact__item a {
  font-size: .9rem;
  color: var(--ivory-dim);
}
.contact__item a:hover { color: var(--gold); }

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.form__group label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.form__group input,
.form__group select,
.form__group textarea {
  background: var(--black-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  color: var(--ivory);
  font-family: var(--ff-sans);
  font-size: .9rem;
  font-weight: 300;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.form__group input::placeholder,
.form__group textarea::placeholder {
  color: #4a4a50;
}
.form__group select option { background: var(--black-card); }
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--gold);
}
.form__group textarea { resize: vertical; min-height: 130px; }

.form__notice {
  font-size: .78rem;
  color: var(--gold-dim);
  text-align: center;
  font-style: italic;
}

/* --- Footer ------------------------------------------------ */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border-soft);
  padding-block: 3rem 2rem;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.footer__logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: .5rem;
}
.footer__logo {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: .4rem;
}
.footer__tagline {
  font-size: .8rem;
  color: var(--ivory-dim);
}
.footer__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 1.5rem;
  font-size: .75rem;
  color: var(--gold-dim);
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .tech__layout,
  .contact__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .stack__grid { position: static; }
}

@media (max-width: 680px) {
  .nav__links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(12,12,14,.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1.1rem; }
  .nav__toggle { display: flex; }
  .nav__toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__toggle.active span:nth-child(2) { opacity: 0; }
  .nav__toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 1.5rem; }
  .footer__links { gap: 1.25rem; }
}

/* --- Fade-up animation (JS-driven) ------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s cubic-bezier(.4,0,.2,1) var(--delay, 0ms),
              transform .55s cubic-bezier(.4,0,.2,1) var(--delay, 0ms);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Selection highlight ----------------------------------- */
::selection { background: var(--gold); color: var(--black); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
