/* =============================================================
   EUGENOR — COMPOSANTS PARTAGÉS
   Header, footer, CTA final, accordéon FAQ, cartes, tableaux de tarifs.
   ============================================================= */


/* =============================================================
   HEADER FIXE
   ============================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(247, 244, 238, 0.96);
  box-shadow: 0 1px 0 var(--rule);
}

/* Grille header : logo | nav | actions */
.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
}

/* Logo */
.brand-logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-logo .dot { color: var(--sage); }

/* Liens de navigation */
.nav-links {
  display: flex;
  gap: clamp(18px, 2.2vw, 36px);
  justify-self: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 4px 0;
  position: relative;
  white-space: nowrap;
}
/* Barre de soulignement animée */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Actions droite : langue + CTA RDV */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

/* Sélecteur de langue */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.lang-switch button {
  padding: 4px 6px;
  color: var(--ink-3);
  transition: color .3s;
}
.lang-switch button.active { color: var(--ink); }
.lang-switch button.disabled {
  color: var(--ink-3);
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.lang-switch .sep { color: var(--ink-3); padding: 0 2px; }

/* Bouton RDV dans le header */
.header-cta {
  background: var(--sage);
  color: var(--ivory);
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background .3s var(--ease);
  white-space: nowrap;
}
.header-cta:hover { background: var(--sage-deep); }

/* Bouton burger mobile */
.burger {
  display: none;
  width: 28px; height: 28px;
  position: relative;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 4px; right: 4px;
  height: 1px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .25s, top .35s var(--ease);
}
.burger span:nth-child(1) { top: 10px; }
.burger span:nth-child(2) { top: 18px; }
.burger.is-open span:nth-child(1) { top: 14px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 14px; transform: rotate(-45deg); }

/* Menu mobile overlay */
.mobile-menu {
  position: fixed;
  top: 76px; left: 0; right: 0; bottom: 0;
  background: var(--ivory);
  z-index: 90;
  padding: 48px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow-y: auto;
  /* État fermé */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    opacity .4s var(--ease),
    transform .5s var(--ease),
    visibility 0s linear .4s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity .4s var(--ease),
    transform .5s var(--ease),
    visibility 0s linear 0s;
}
.mobile-menu a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 34px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 22px;
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .mobile-rdv {
  color: var(--sage);
  font-size: 20px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 0 !important;
  padding-top: 10px;
}


/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: #1A1A1A;
  color: rgba(247, 244, 238, .78);
  padding-top: clamp(70px, 8vw, 110px);
  padding-bottom: 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(247, 244, 238, .12);
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F7F4EE;
  margin-bottom: 16px;
}
.footer-brand-name .dot { color: var(--sage); }

.footer-tagline {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 16px;
  color: rgba(247, 244, 238, .6);
  max-width: 30ch;
  line-height: 1.6;
}

.footer-col h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F7F4EE;
  margin-bottom: 22px;
}
.footer-col p,
.footer-col li,
.footer-col a {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(247, 244, 238, .72);
}
.footer-col a:hover { color: #F7F4EE; }
.footer-col address { font-style: normal; }

/* Liste horaires du footer */
.footer-schedule li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(247, 244, 238, .65);
  padding: 3px 0;
}
.footer-schedule .day { color: rgba(247, 244, 238, .85); }

/* Barre du bas */
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(247, 244, 238, .4);
}
.footer-bottom a {
  color: rgba(247, 244, 238, .4);
}
.footer-bottom a:hover { color: rgba(247, 244, 238, .8); }


/* =============================================================
   BANDEAU CTA FINAL (sauge, présent sur toutes les pages sauf home & 404)
   ============================================================= */
.cta-section {
  background: var(--sage);
  color: var(--ivory);
  padding: clamp(72px, 9vw, 120px) 0;
  text-align: center;
}
.cta-section .kicker {
  color: rgba(247, 244, 238, .72);
  display: block;
  margin-bottom: 14px;
}
.cta-section h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 52px);
  color: var(--ivory);
  line-height: 1.1;
  margin-bottom: 14px;
}
.cta-section p {
  font-size: 17px;
  color: rgba(247, 244, 238, .82);
  max-width: 50ch;
  margin: 0 auto 36px;
}
.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cta-hours {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(247, 244, 238, .6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* =============================================================
   ACCORDÉON FAQ
   ============================================================= */
.faq-list {
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 28px 0;
  text-align: left;
  cursor: pointer;
  gap: 24px;
}
.faq-trigger .faq-q {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.3;
}
.faq-trigger .faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink);
  transition: transform .35s var(--ease), background .3s;
  line-height: 1;
}
.faq-item.is-open .faq-icon {
  background: var(--ink);
  color: var(--ivory);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-body-inner {
  padding-bottom: 28px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 68ch;
}


/* =============================================================
   TABLEAUX DE TARIFS
   ============================================================= */
.tariff-table {
  width: 100%;
  border-top: 1px solid var(--rule);
}
.tariff-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left .35s var(--ease);
}
.tariff-row:hover { padding-left: 8px; }
.tariff-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
}
.tariff-desc {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
}
.tariff-price {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.tariff-price strong {
  color: var(--ink);
  font-weight: 600;
}


/* =============================================================
   CARTES (grilles bijoux, montres, univers)
   ============================================================= */
.cards-grid {
  display: grid;
  gap: clamp(20px, 2.5vw, 32px);
}
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  color: inherit;
}
.card-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ivory-2);
  position: relative;
  margin-bottom: 18px;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
  filter: brightness(.97) saturate(.95);
}
.card:hover .card-img img {
  transform: scale(1.04);
  filter: brightness(1.02) saturate(1);
}
.card-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.card-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
}
.card-text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  flex: 1;
}

/* Carte avec fond ivoire-2 (montres, marques) */
.card--filled .card-img {
  background: var(--ivory-2);
}

/* Carte marque (logo placeholder) */
.brand-slot {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--rule);
  color: var(--ink-3);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color .3s var(--ease), background .3s var(--ease);
  text-align: center;
  padding: 16px;
}
.brand-slot:last-child { border-right: 0; }
.brand-slot:hover { color: var(--ink); background: rgba(255,255,255,.4); }

/* Grille 6 colonnes pour les logos */
.brands-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* Bandeau de marques (section) */
.brands-section {
  background: var(--ivory-2);
  padding: clamp(60px, 7vw, 100px) 0;
}
.brands-head {
  text-align: center;
  margin-bottom: 48px;
}
.brands-head .kicker { display: block; margin-bottom: 8px; }
.brands-head h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  color: var(--ink-2);
  margin: 0;
}


/* =============================================================
   BANDEAU 4 PROMESSES
   ============================================================= */
.promises-band {
  background: var(--ivory-2);
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.promises-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.promise {
  text-align: center;
  padding: 0 12px;
}
.promise-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sage);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.promise-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
}
.promise-text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
}


/* =============================================================
   LAYOUT DEUX COLONNES ÉDITORIAL (hero, sections alternées)
   ============================================================= */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.editorial-grid--reverse .editorial-media { order: -1; }
.editorial-text { max-width: 52ch; }
.editorial-text p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.75;
}
.editorial-text p + p { margin-top: 18px; }
.editorial-text .actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.editorial-media {
  position: relative;
}


/* =============================================================
   HERO ÉDITORIAL (deux colonnes, fond ivoire)
   ============================================================= */
.hero-editorial {
  padding-top: calc(76px + var(--section-pad));
  padding-bottom: var(--section-pad);
  border-bottom: 1px solid var(--rule);
}
.hero-editorial .h-display {
  font-size: clamp(42px, 6vw, 82px);
  max-width: 14ch;
  margin: 18px 0 22px;
}
.hero-editorial .lede { margin-bottom: 32px; }


/* =============================================================
   HERO PLEINE LARGEUR (fond photo)
   ============================================================= */
.hero-full {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 76px;
  overflow: hidden;
}
.hero-full .hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,26,26,0) 25%, rgba(26,26,26,.55) 60%, rgba(26,26,26,.82) 100%),
    linear-gradient(180deg, rgba(26,26,26,.1), rgba(26,26,26,.2));
  background-color: var(--ivory-2);
  /* La vraie image sera ajoutée via style="" inline sur chaque page */
}
.hero-full .hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(60px, 9vw, 120px);
  color: var(--ivory);
}
.hero-full h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7.5vw, 104px);
  color: var(--ivory);
  margin: 18px 0 22px;
  max-width: 14ch;
  line-height: 1.08;
}
.hero-full .kicker { color: rgba(247,244,238,.78); }
.hero-full .subtitle {
  color: rgba(247,244,238,.86);
  font-size: 17px;
  max-width: 44ch;
  margin: 0 0 36px;
}

/* Indicateur scroll */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(247,244,238,.7);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.scroll-hint .line {
  width: 36px; height: 1px;
  background: rgba(247,244,238,.45);
  overflow: hidden;
  position: relative;
}
.scroll-hint .line::after {
  content: "";
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--ivory);
  animation: scrollDash 2.4s var(--ease) infinite;
}
@keyframes scrollDash {
  0%   { left: -100%; }
  50%  { left: 0; }
  100% { left: 100%; }
}

/* Placeholder vidéo (page Sur-mesure) */
.video-placeholder {
  background: var(--ivory-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  aspect-ratio: 4 / 5;
  position: relative;
}
.video-placeholder .play-icon {
  width: 64px; height: 64px;
}
.video-placeholder .play-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

/* Signature */
.signature {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
  margin-top: 28px;
}
.signature small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}

/* Étoiles avis */
.stars {
  display: inline-flex;
  gap: 3px;
  color: var(--sage);
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* Carte témoignage */
.testimonial-card {
  padding: 36px 30px;
  border: 1px solid var(--rule);
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-card blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.testimonial-card blockquote::before { content: "« "; color: var(--ink-3); }
.testimonial-card blockquote::after  { content: " »"; color: var(--ink-3); }
.testimonial-meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.testimonial-meta strong { color: var(--ink); font-weight: 500; }


/* =============================================================
   RESPONSIVE COMPOSANTS
   ============================================================= */
@media (max-width: 980px) {
  /* Header : masquer nav centrale et actions sauf burger */
  .site-nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-right .lang-switch,
  .nav-right .header-cta { display: none; }
  .burger { display: inline-block; }

  /* Grilles */
  .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .editorial-grid { grid-template-columns: 1fr; gap: 40px; }
  .editorial-grid--reverse .editorial-media { order: 0; }
  .promises-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-row { grid-template-columns: repeat(3, 1fr); }
  .brand-slot:nth-child(3n) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .cards-grid--3 { grid-template-columns: 1fr; }
  .cards-grid--4 { grid-template-columns: 1fr; }
  .cards-grid--2 { grid-template-columns: 1fr; }
  .promises-grid { grid-template-columns: 1fr; }
  .brands-row { grid-template-columns: repeat(2, 1fr); }
  .brand-slot { border-right: 1px solid var(--rule) !important; }
  .brand-slot:nth-child(2n) { border-right: 0 !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .tariff-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tariff-price { text-align: left; }
  .testimonial-card { padding: 26px 20px; }
}
