/* ============================================================
   my.bikii — maquette vitrine (NOXARAG)
   Palette : jungle #123D2D · crème #F6EFE3 · soleil #F2CB38
             brun doré #A87A46 · rose #EB427B · bleu #297FA9
   ============================================================ */

:root {
  --jungle: #123D2D;
  --jungle-2: #0E2F22;
  --creme: #F6EFE3;
  --creme-2: #FBF7EE;
  --soleil: #F2CB38;
  --brun: #A87A46;
  --rose: #EB427B;
  --bleu: #297FA9;
  --blanc: #FFFFFF;
  --texte: #1D2B24;
  --ligne: rgba(18, 61, 45, 0.14);
  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --rayon: 18px;
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

[hidden] { display: none !important; }

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

p { margin: 0; }

.svg-defs { position: absolute; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--jungle);
  color: var(--creme);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus-visible { top: 1rem; }

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

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition),
              background-color var(--transition), color var(--transition),
              border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18, 61, 45, 0.18); }
.btn:active { transform: translateY(0); }

.btn-sun { background: var(--soleil); color: var(--jungle); }
.btn-sun:hover { background: #F7D654; }

.btn-outline {
  background: transparent;
  border-color: var(--jungle);
  color: var(--jungle);
}
.btn-outline:hover { background: var(--jungle); color: var(--creme); }

.btn-lg { padding: 1.05rem 2rem; font-size: 1.02rem; }

.ico { width: 1.15em; height: 1.15em; flex: none; }

.link-arrow {
  color: var(--jungle);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--soleil);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.link-arrow:hover { color: var(--rose); border-color: var(--rose); }

.link-cream { color: var(--creme); border-color: var(--soleil); }
.link-cream:hover { color: var(--soleil); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 239, 227, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ligne);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex: none;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--jungle);
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}
.nav-link {
  color: var(--jungle);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  padding: 0.3rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--soleil);
  transition: right var(--transition);
}
.nav-link:hover::after { right: 0; }

.btn-nav { padding: 0.7rem 1.3rem; }

/* Bouton menu mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 10px;
  background: transparent;
  border: 2px solid var(--jungle);
  border-radius: 12px;
  cursor: pointer;
}
.menu-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--jungle);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections communes ---------- */
.section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
}

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 0.8rem; }
.section-head p { font-size: 1.08rem; color: rgba(29, 43, 36, 0.78); }

/* Feuilles de bord de section */
.edge-leaf {
  position: absolute;
  width: clamp(110px, 14vw, 190px);
  color: var(--jungle);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.edge-leaf-left { left: -30px; top: 60px; transform: rotate(-24deg); }
.edge-leaf-right { right: -30px; bottom: 40px; transform: rotate(28deg); color: var(--creme); opacity: 0.1; }

/* ---------- B. Ouverture ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--ligne);
  overflow: clip;
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brun);
  margin-bottom: 1.2rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--soleil);
  vertical-align: middle;
  margin-right: 0.7rem;
}

.hero h1 {
  font-size: clamp(3.1rem, 8vw, 5.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--rose);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(29, 43, 36, 0.8);
  max-width: 46ch;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.6rem;
}

.hero-photos {
  position: relative;
  min-height: 420px;
}

.hero-sun {
  position: absolute;
  width: clamp(130px, 16vw, 210px);
  height: auto;
  top: -34px;
  right: 6%;
  color: var(--soleil);
  opacity: 0.85;
  z-index: 0;
}

.hero-leaf {
  position: absolute;
  width: clamp(110px, 13vw, 180px);
  left: -46px;
  bottom: -30px;
  color: var(--jungle);
  opacity: 0.12;
  transform: rotate(18deg);
  z-index: 0;
}

.hero-frame {
  position: absolute;
  margin: 0;
  background: var(--blanc);
  padding: 10px;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  box-shadow: 0 24px 50px rgba(18, 61, 45, 0.14);
  z-index: 1;
}
.hero-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--blanc);
  border-radius: calc(var(--rayon) - 8px);
}
.hero-frame-main {
  width: 58%;
  top: 0;
  left: 0;
  transform: rotate(-2.5deg);
}
.hero-frame-alt {
  width: 47%;
  right: 0;
  bottom: 0;
  transform: rotate(2deg);
  z-index: 2;
}

/* ---------- C. Galerie ---------- */
.gallery { position: relative; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}
.filter {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--jungle);
  background: transparent;
  border: 2px solid var(--ligne);
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.filter:hover { border-color: var(--jungle); transform: translateY(-1px); }
.filter.is-active {
  background: var(--jungle);
  border-color: var(--jungle);
  color: var(--creme);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
  position: relative;
  z-index: 1;
}

.card {
  background: var(--creme-2);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18, 61, 45, 0.13); }
.card.is-hidden { display: none; }

.card-media {
  background: var(--blanc);
  border-bottom: 1px solid var(--ligne);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  transition: transform 400ms ease;
}
.card:hover .card-media img { transform: scale(1.025); }

.card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}
.card-body h3 { font-size: 1.55rem; font-weight: 600; }

.btn-card {
  margin-top: auto;
  align-self: flex-start;
  background: transparent;
  border-color: var(--jungle);
  color: var(--jungle);
  padding: 0.7rem 1.3rem;
  font-size: 0.88rem;
}
.btn-card:hover { background: var(--jungle); color: var(--creme); }

.cards-empty {
  text-align: center;
  color: rgba(29, 43, 36, 0.7);
  padding: 2rem 0;
}

.gallery-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ---------- D. Univers ---------- */
.univers {
  position: relative;
  background: var(--jungle);
  overflow: clip;
}

.univers-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  z-index: 1;
}

.univers-text h2 {
  color: var(--creme);
  font-size: clamp(2.5rem, 5.6vw, 4.2rem);
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.univers-text h2 em { font-style: italic; color: var(--soleil); }
.univers-text p {
  color: rgba(246, 239, 227, 0.85);
  font-size: 1.08rem;
  max-width: 44ch;
  margin-bottom: 1.8rem;
}

.univers-photos { position: relative; min-height: 340px; }

.univers-frame {
  position: absolute;
  margin: 0;
  width: 52%;
  background: var(--creme);
  padding: 8px;
  border-radius: var(--rayon);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.35);
}
.univers-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: calc(var(--rayon) - 6px);
}
.univers-frame:first-child { top: 0; left: 4%; transform: rotate(-2deg); }
.univers-frame-alt { right: 2%; bottom: -8%; transform: rotate(2.5deg); }

/* ---------- E. Contact ---------- */
.contact { border-top: 1px solid rgba(246, 239, 227, 0.12); }

.contact-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.contact-inner h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.contact-inner p {
  max-width: 52ch;
  color: rgba(29, 43, 36, 0.8);
  font-size: 1.1rem;
}
.contact-sun {
  width: 74px;
  height: 74px;
  color: var(--soleil);
}

/* ---------- F. Pied de page ---------- */
.site-footer {
  background: var(--jungle-2);
  color: var(--creme);
}

.footer-inner {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
}

.brand-footer .brand-name { color: var(--creme); font-size: 1.35rem; }
.brand-footer .brand-logo { width: 48px; height: 48px; }

.footer-link {
  color: var(--creme);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--soleil);
  padding-bottom: 2px;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--soleil); }

.credit {
  width: 100%;
  margin-top: 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(246, 239, 227, 0.16);
  font-size: 0.85rem;
  color: rgba(246, 239, 227, 0.6);
}
.credit a { color: rgba(246, 239, 227, 0.85); font-weight: 600; }
.credit a:hover { color: var(--soleil); }

/* ---------- Vue agrandie (lightbox) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; }
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 47, 34, 0.72);
  backdrop-filter: blur(4px);
}

.lightbox-panel {
  position: relative;
  max-width: 520px;
  width: calc(100% - 2.5rem);
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  margin: 1.5rem auto;
  background: var(--creme);
  border-radius: 22px;
  padding: 1.1rem 1.1rem 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--jungle);
  background: var(--creme-2);
  border: 1px solid var(--ligne);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background-color var(--transition), color var(--transition);
}
.lightbox-close:hover { background: var(--jungle); color: var(--creme); }

.lightbox-media {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 14px;
  overflow: hidden;
}
.lightbox-media img {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
}

.lightbox-info { text-align: center; padding-top: 1.2rem; }
.lightbox-info h3 { font-size: 1.9rem; margin-bottom: 0.4rem; }
.lightbox-note {
  color: rgba(29, 43, 36, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

body.no-scroll { overflow: hidden; }

/* ---------- Apparition au scroll (uniquement si JS actif) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    background: var(--creme);
    border-bottom: 1px solid var(--ligne);
    padding: 1rem clamp(1.25rem, 4vw, 2rem) 1.4rem;
    box-shadow: 0 24px 40px rgba(18, 61, 45, 0.12);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 0.75rem 0.2rem; font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .btn-nav { margin-top: 0.5rem; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-photos { min-height: 0; height: clamp(340px, 78vw, 480px); margin-top: 0.5rem; }
  .hero-sun { top: -20px; }

  .univers-inner { grid-template-columns: 1fr; }
  .univers-photos { height: clamp(300px, 72vw, 440px); }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.3rem; }
  .brand-logo { width: 48px; height: 48px; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .link-arrow { align-self: center; }
  .lightbox-panel { width: calc(100% - 1.5rem); }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
}
