/* ============================================
   AUX FLEURS — « Floraison Suisse »
   Design Tokens + Styles
   ============================================ */

/* --- PRIMITIVE TOKENS --- */
:root {
  --color-pearl-100: #EDEEF0;
  --color-white: #FAFAFA;
  --color-honey-200: #F5E6D3;
  --color-ink-900: #1B1F3B;
  --color-slate-500: #5C5F73;
  --color-slate-300: #D2D4D8;
  --color-rose-600: #A83D59;
  --color-rose-700: #8C3049;
  --color-eucalyptus-500: #4E6E5D;

  --font-heading: 'Young Serif', serif;
  --font-body: 'Instrument Sans', sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-30: 120px;

  /* --- SEMANTIC TOKENS --- */
  --bg-base: var(--color-pearl-100);
  --bg-surface: var(--color-white);
  --bg-warm: var(--color-honey-200);
  --text-primary: var(--color-ink-900);
  --text-secondary: var(--color-slate-500);
  --accent: var(--color-rose-600);
  --accent-hover: var(--color-rose-700);
  --secondary: var(--color-eucalyptus-500);
  --border: var(--color-slate-300);

  /* --- COMPONENT TOKENS --- */
  --nav-bg: rgba(250,250,250,0.95);
  --card-bg: var(--bg-surface);
  --card-radius: 12px;
  --btn-radius: 6px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
}

/* --- NAV --- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(27,31,59,0.04);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--btn-radius);
  transition: background 0.25s ease, transform 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  position: fixed;
  top: 20px;
  right: var(--space-6);
  z-index: 110;
  padding: 8px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-mobile-toggle.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-mobile-toggle.is-open .hamburger-line:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--bg-surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.nav-mobile.is-open { display: flex; }

.nav-mobile ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.nav-mobile a:hover { color: var(--accent); }

.nav-cta-mobile {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--btn-radius);
  transition: background 0.25s ease;
}

.nav-cta-mobile:hover { background: var(--accent-hover); }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 65% 35%;
  overflow: hidden;
  background: var(--bg-base);
}

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-20) var(--space-12);
  position: relative;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.hero-eyebrow.is-visible { opacity: 1; transform: translateY(0); }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 7vw, 72px);
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}

.hero-title.is-visible { opacity: 1; transform: translateY(0); }

.hero-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--accent);
  margin-bottom: var(--space-10);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.7s, transform 0.6s ease 0.7s;
}

.hero-tagline.is-visible { opacity: 1; transform: translateY(0); }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 16px 36px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--btn-radius);
  transition: background 0.25s ease, transform 0.2s ease;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.9s, transform 0.6s ease 0.9s, background 0.25s ease;
}

.hero-cta.is-visible { opacity: 1; transform: translateY(0); }

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.hero-cta.is-visible:hover,
.hero-cta.is-visible:focus-visible {
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: pulse-line 2.5s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 55vh auto;
  }
  .hero-content {
    padding: var(--space-10) var(--space-6);
    text-align: center;
    align-items: center;
  }
  .hero-cta { align-self: center; }
  .scroll-indicator { display: none; }
}

@media (max-width: 640px) {
  .hero { grid-template-rows: 45vh auto; }
  .hero-content { padding: var(--space-8) var(--space-4); }
}

/* --- SECTION COMMONS --- */
.section {
  position: relative;
  padding: var(--space-20) var(--space-6);
}

@media (min-width: 1024px) {
  .section { padding: var(--space-30) var(--space-6); }
}

@media (max-width: 640px) {
  .section { padding: var(--space-16) var(--space-4); }
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* --- PRESENTATION --- */
.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  margin-bottom: var(--space-20);
}

@media (max-width: 768px) {
  .presentation-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

.presentation-text h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: var(--space-6);
  line-height: 1.25;
}

.presentation-text p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.presentation-text p strong {
  color: var(--text-primary);
  font-weight: 500;
}

.presentation-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  aspect-ratio: 4/5;
}

/* Asymmetric overflow on desktop */
@media (min-width: 769px) {
  .presentation-photo {
    margin-right: -60px;
  }
}

.presentation-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.presentation-photo:hover img {
  transform: scale(1.03);
}

/* --- SERVICES --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  padding: var(--space-6);
  background: var(--card-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(168,61,89,0.08);
  transform: translateY(-2px);
}

.service-icon {
  width: 28px;
  height: 28px;
  color: var(--secondary);
  margin-bottom: var(--space-4);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: var(--space-2);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* --- GALERIE --- */
.galerie-section {
  padding-bottom: var(--space-20);
}

.galerie-title {
  font-size: clamp(28px, 3.5vw, 40px);
  text-align: center;
  margin-bottom: var(--space-12);
}

.gallery-masonry {
  columns: 3;
  column-gap: var(--space-4);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 1024px) { .gallery-masonry { columns: 2; } }
@media (max-width: 640px) { .gallery-masonry { columns: 1; padding: 0 var(--space-4); } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(transparent, rgba(27,31,59,0.6));
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* === BLOOM ANIMATION (« Floraison au scroll ») === */
.bloom {
  clip-path: circle(0% at 50% 50%);
  opacity: 0;
  transform: scale(0.96);
  transition: clip-path 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.bloom.in-view {
  clip-path: circle(75% at 50% 50%);
  opacity: 1;
  transform: scale(1);
}

.galerie-instagram {
  text-align: center;
  margin-top: var(--space-10);
  padding: 0 var(--space-6);
}

.galerie-instagram a {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.25s ease;
}

.galerie-instagram a:hover,
.galerie-instagram a:focus-visible {
  border-bottom-color: var(--accent);
}

/* --- AVIS --- */
.avis-section {
  background: var(--bg-warm);
}

.avis-title {
  font-size: clamp(28px, 3.5vw, 40px);
  text-align: center;
  margin-bottom: var(--space-12);
}

.avis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .avis-grid { grid-template-columns: 1fr; }
}

.avis-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow 0.25s ease;
}

.avis-card:hover {
  box-shadow: 0 4px 24px rgba(27,31,59,0.06);
}

.avis-quote {
  font-family: var(--font-heading);
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.avis-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.avis-author {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  font-style: normal;
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--space-1);
}

.avis-stars {
  display: flex;
  gap: 2px;
}

.avis-stars .star {
  color: var(--secondary);
  font-size: 14px;
}

.avis-stars .star--empty {
  opacity: 0.3;
}

.avis-summary {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
}

.avis-summary a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.avis-summary a:hover { border-bottom-color: var(--accent); }

.avis-summary strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- CONTACT --- */
.contact-section {
  background: var(--bg-base);
}

.contact-title {
  font-size: clamp(28px, 3.5vw, 40px);
  text-align: center;
  margin-bottom: var(--space-12);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  margin-top: var(--space-6);
}

.contact-subtitle:first-child { margin-top: 0; }

.horaires-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-2);
}

.horaires-table td {
  padding: var(--space-2) 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.horaires-table td:first-child { font-weight: 500; }
.horaires-table td:last-child { text-align: right; }

.horaires-table tr.closed td {
  color: var(--text-secondary);
  opacity: 0.6;
}

.contact-address {
  font-size: 15px;
  line-height: 1.6;
}

.contact-address a {
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.25s ease;
}

.contact-address a:hover { color: var(--accent); }

.contact-note {
  color: var(--text-secondary);
  font-size: 13px;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: 16px 32px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-heading);
  border-radius: var(--btn-radius);
  transition: background 0.25s ease, transform 0.2s ease;
}

.contact-phone:hover,
.contact-phone:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.contact-socials {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.contact-socials a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s ease;
}

.contact-socials a:hover { color: var(--accent); }

.contact-map {
  aspect-ratio: 4/3;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.8) contrast(0.95);
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-inner span {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--text-primary) !important;
}

.footer-credits {
  display: block;
  text-align: center;
  margin-top: var(--space-3);
  color: var(--text-secondary);
  font-size: 11px;
  opacity: 0.7;
}

/* --- LIGHTBOX --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(27,31,59,0.92);
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  backdrop-filter: blur(8px);
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  color: #fff;
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s ease;
}

.lightbox-close:hover { background: var(--accent); }

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

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-line { animation: none; opacity: 0.5; }
  .hero-eyebrow, .hero-title, .hero-tagline, .hero-cta { opacity: 1; transform: none; }
  .bloom {
    clip-path: none;
    opacity: 1;
    transform: none;
  }
  .fade-up { opacity: 1; transform: none; }
}

/* --- GLOBAL ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}