/* Alb's Events — design enhancements (preserve brand) */

:root {
  --surface: #f4f4f2;
  --surface-elevated: #ffffff;
  --ink: #121212;
  --ink-muted: #5c5c5c;
  --accent: #e28e2a;
  --accent-hover: #c97a1f;
  --accent-soft: rgba(226, 142, 42, 0.12);
  --stroke: rgba(21, 21, 21, 0.08);
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(18, 18, 18, 0.04);
  --shadow-md: 0 8px 24px rgba(18, 18, 18, 0.08);
  --shadow-lg: 0 20px 48px rgba(18, 18, 18, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --section-gap: clamp(4rem, 8vw, 7rem);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background-color: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Barre de navigation */

.navbar-component {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-sm);
  transition:
    background-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

/* Icône burger → croix, animée */
.menu-icon.w-icon-nav-menu {
  width: 1.3rem; height: 0.15rem; background: currentColor; border-radius: 2px;
  position: relative; transition: background-color 0.2s;
}
.menu-icon.w-icon-nav-menu::before,
.menu-icon.w-icon-nav-menu::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 100%;
  background: currentColor; border-radius: 2px;
  transition: top 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}
.menu-icon.w-icon-nav-menu::before { top: -0.45rem; }
.menu-icon.w-icon-nav-menu::after { top: 0.45rem; }
.menu-button.w--open .menu-icon.w-icon-nav-menu { background: transparent; }
.menu-button.w--open .menu-icon.w-icon-nav-menu::before { top: 0; transform: rotate(45deg); }
.menu-button.w--open .menu-icon.w-icon-nav-menu::after { top: 0; transform: rotate(-45deg); }

@media screen and (max-width: 767px) {
  .nav-menu {
    left: 0;
    right: 0;
    width: 90vw;
    margin: 0 auto;
    top: calc(100% + 0.75rem);
  }
}

.navbar-component.is-scrolled {
  background-color: rgba(255, 255, 255, 0.82);
  border-color: var(--stroke);
  box-shadow: var(--shadow-md);
}

.nav-link.w--current div {
  position: relative;
}

.nav-link.w--current div::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.button-navbar {
  transition:
    transform 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.button-navbar:hover {
  transform: translateY(-1px);
}

.button-navbar:active {
  transform: translateY(0) scale(0.98);
}

/* Hero */

.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.16) 0%, rgba(8, 8, 8, 0) 14%, rgba(8, 8, 8, 0.5) 100%),
    linear-gradient(90deg, rgba(8, 8, 8, 0.12) 0%, transparent 35%);
}

.hero-background img {
  transform: scale(1);
  transition: transform 8s var(--ease-out);
}

.hero-wrapper:hover .hero-background img {
  transform: scale(1.03);
}

/* Au-delà de 991px, on plafonne la hauteur du hero à son ratio naturel
   (5504:3502) pour limiter le recadrage de object-fit: cover. */
@media screen and (min-width: 992px) {
  .hero-wrapper {
    height: min(100vh, 63.63vw);
  }
}

/* Points interactifs du hero : positionnés en % directement sur l'image
   (plus de grille Webflow, qui désynchronisait les points des objets). */
.hero-grid {
  grid-template-columns: none;
  grid-template-rows: none;
  margin-left: 0;
  margin-right: 0;
  display: block;
}

#w-node-_42e8932e-6c04-a7d4-f0c1-b4cf70a9f10b-b7d42eda {
  position: absolute;
  left: 29.7%;
  top: 41.5%;
  transform: translate(-50%, -50%);
  place-self: unset;
}

#w-node-e5f29151-518e-2cc5-830b-93494d1384d7-b7d42eda {
  position: absolute;
  left: 33.5%;
  top: 71.5%;
  transform: translate(-50%, -50%);
  place-self: unset;
}

@media (prefers-reduced-motion: reduce) {
  .hero-background img,
  .hero-wrapper:hover .hero-background img {
    transform: none;
    transition: none;
  }
}

.hero-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  max-width: 14ch;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.read-more-tag {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
}

.hero-hover {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.circle-hero {
  background-color: var(--accent);
}

/* Typographie et sections */

.heading-4,
.heading-5,
.heading-6,
.heading-6-copy {
  letter-spacing: -0.025em;
}

.heading-4 {
  line-height: 1.12;
}

.text-block,
.text-block-6,
.text-block-6-copy {
  color: var(--ink-muted);
  line-height: 1.65;
}

.bento-wrapper {
  margin-top: var(--section-gap);
}

/* Cartes bento */

.card-small,
.card-big {
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.card-big:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.primary-button,
.secondary-button,
.black-button {
  transition:
    transform 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.black-button {
  border-color: transparent;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.black-button:hover {
  background-color: var(--accent-hover);
  border-bottom-width: 1px;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.black-button:active {
  transform: translateY(0) scale(0.98);
}

/* Section sticky */

.sticky-wrapper {
  background: linear-gradient(180deg, var(--surface) 0%, #ebeae6 100%);
}

.heading-vw {
  letter-spacing: -0.03em;
}

/* Grille du catalogue */

.catalog-section {
  padding-bottom: var(--section-gap);
}

.products-wrapper {
  margin-bottom: 2rem;
}

.products-header {
  padding: 2rem 0 1rem;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.columns .w-col {
  width: 100% !important;
  padding: 0 !important;
}

.div-block {
  background-color: var(--surface-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
  height: 100%;
}

.div-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(226, 142, 42, 0.25);
}

.div-block img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.div-block:hover img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .div-block,
  .div-block img,
  .div-block:hover,
  .div-block:hover img {
    transform: none;
    transition: none;
  }
}

.div-block-2 {
  padding: 1.125rem 1.25rem 1.25rem;
  border-radius: 0;
}

.div-block-2 > .w-row > .w-col:first-child > div:first-child {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.text-block-2 {
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.2rem;
}

.text-block-3 {
  margin-top: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.flex-horizontal .text-size-large {
  letter-spacing: 0.06em;
}

/* FAQ */

.faq-wrapper {
  margin-top: var(--section-gap);
}

.container-2 {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.faq-item {
  border: 1px solid var(--stroke);
  margin-bottom: 0.75rem;
  padding: 0;
  overflow: hidden;
  transition:
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.faq-item:hover {
  border-color: rgba(226, 142, 42, 0.2);
}

.faq-item.is-open {
  border-color: rgba(226, 142, 42, 0.35);
  box-shadow: var(--shadow-sm);
}

.faq-top {
  padding: 1.25rem 3.5rem 1.25rem 1.5rem;
}

.textfaq {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.faq-action-wrapper .arrow {
  transition: transform 0.3s var(--ease-out);
}

.faq-item.is-open .faq-action-wrapper .arrow {
  transform: rotate(180deg);
}

.faq-bottom {
  margin-right: 0;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.4s var(--ease-out),
    opacity 0.3s var(--ease-out);
}

.faq-item.is-open .faq-bottom {
  opacity: 1;
}

.faq-bottom-content {
  padding: 0 1.5rem 1.25rem;
  margin-top: 0;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* Pied de page */

section:has(.footer-component) {
  background: linear-gradient(180deg, var(--surface) 0%, #1a1a1a 18%);
}

.footer-component {
  color: rgba(255, 255, 255, 0.72);
}

.footer-text-size {
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s var(--ease-out);
}

.footer-link:hover {
  color: var(--accent);
}

.credits-wrapper p,
.credits-wrapper a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.credits-wrapper a:hover {
  color: var(--accent);
}

.footer-social {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.footer-social .icon-embed {
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.footer-social:hover .icon-embed {
  opacity: 1;
}

/* Formulaire de contact */

.text-field-contact {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.text-field-contact:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

/* Apparition au scroll */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Focus et sélection */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

/* Responsive */

@media screen and (max-width: 991px) {
  .columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .hero-title-block {
    margin-bottom: 0.75rem;
  }

  .hero-heading {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }

  .columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .navbar-component.is-scrolled {
    margin-top: 0.75rem;
  }
}

/* Modale de connexion ("Mon espace") */
.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(21,21,21,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.auth-modal-overlay.open { opacity: 1; pointer-events: all; }
.auth-modal {
  background: var(--surface-elevated);
  border: 1px solid rgba(21,21,21,0.12);
  border-radius: 1.25rem; padding: 2.25rem;
  max-width: 400px; width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  transform: translateY(12px);
  transition: transform 0.3s var(--ease-out);
  position: relative;
}
.auth-modal-overlay.open .auth-modal { transform: translateY(0); }
.auth-error { font-size: 0.78rem; color: #c0392b; margin-top: 0.5rem; display: none; padding: 0.5rem 0.75rem; background: rgba(192,57,43,0.06); border-radius: 0.375rem; border: 1px solid rgba(192,57,43,0.18); }
.auth-error.visible { display: block; }
.auth-social-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.625rem;
  width: 100%; padding: 0.75rem 1rem; border-radius: 0.625rem;
  font-size: 0.85rem; font-weight: 600; font-family: inherit; cursor: pointer;
  text-decoration: none; transition: background 0.18s, box-shadow 0.18s;
}
.auth-google-btn {
  background: #fff; color: #1f1f1f;
  border: 1.5px solid rgba(21,21,21,0.14);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.auth-google-btn:hover { background: #f8f8f8; box-shadow: 0 2px 8px rgba(0,0,0,0.10); }
.auth-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1rem 0; color: var(--ink-muted); font-size: 0.75rem;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--stroke); }
.auth-back-btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: none; border: none; color: var(--ink-muted); font-size: 0.78rem;
  font-weight: 500; cursor: pointer; font-family: inherit; padding: 0;
  margin-bottom: 1.25rem; transition: color 0.15s;
}
.auth-back-btn:hover { color: var(--ink); }
