/* ==========================================================================
   1. PALETTE & VARIABLES BOTANIQUES (DARK MINÉRAL & OR DOUX)
   ========================================================================== */
:root {
  /* Fond principal : noir charbon / ardoise végétale */
  --bg-color: #131714;
  /* Textes clairs lin et blanc cassé */
  --text-main: #f4f1ea;
  --text-muted: #9ba89f;

  /* Accents botaniques */
  --branch-color: #d8c29d; /* Bois clair & or doux */
  --petal-color: #e07a65; /* Terracotta lumineux */
  --gold-glow: #e8ba7a; /* Or chaud étincelant */

  /* Cartes : noir profond avec lueur */
  --card-bg: rgba(20, 25, 21, 0.94);
  --card-border: rgba(216, 194, 157, 0.22);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, sans-serif;

  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  -webkit-touch-callout: none;
}

/* Grain d'artisanat */
.grain-layer {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    rgba(244, 241, 234, 0.04) 1px,
    transparent 0
  );
  background-size: 20px 20px;
  pointer-events: none !important;
  z-index: 999;
}

/* ==========================================================================
   2. CADRE SMARTPHONE & EN-TÊTE AVEC TITRE POUSSIÈRE D'ÉTOILES
   ========================================================================== */
.app-viewport {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  padding-bottom: calc(75px + var(--safe-bottom));
  background-color: var(--bg-color);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 23, 20, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.2rem 1.4rem 0.8rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-tag {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

/* Titre avec halo doré & micro-étoiles scintillantes */
.brand-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  display: inline-block;
  position: relative;
  color: #f4f1ea;
  animation: glowStardust 4s ease-in-out infinite alternate;
}

.brand-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--petal-color);
  text-shadow: 0 0 10px rgba(224, 122, 101, 0.45);
}

.brand-name::before,
.brand-name::after {
  content: "✦";
  position: absolute;
  font-size: 0.75rem;
  color: var(--gold-glow);
  pointer-events: none;
}

.brand-name::before {
  top: -4px;
  left: -14px;
  animation: sparkleDustLeft 3.2s ease-in-out infinite;
}

.brand-name::after {
  bottom: 2px;
  right: -16px;
  animation: sparkleDustRight 3.8s ease-in-out infinite 0.7s;
}

@keyframes glowStardust {
  0% {
    text-shadow:
      0 0 4px rgba(232, 186, 122, 0.2),
      0 0 12px rgba(216, 194, 157, 0.1);
    filter: drop-shadow(0 0 0px transparent);
  }
  50% {
    text-shadow:
      0 0 8px rgba(244, 241, 234, 0.8),
      0 0 16px rgba(232, 186, 122, 0.6),
      0 0 24px rgba(224, 122, 101, 0.35);
    filter: drop-shadow(0 0 6px rgba(232, 186, 122, 0.4));
  }
  100% {
    text-shadow:
      0 0 4px rgba(232, 186, 122, 0.3),
      0 0 10px rgba(216, 194, 157, 0.15);
    filter: drop-shadow(0 0 1px rgba(232, 186, 122, 0.2));
  }
}

@keyframes sparkleDustLeft {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.6) rotate(0deg);
    text-shadow: 0 0 2px var(--gold-glow);
  }
  50% {
    opacity: 1;
    transform: scale(1.25) rotate(45deg);
    text-shadow:
      0 0 12px #ffffff,
      0 0 20px var(--gold-glow);
  }
}

@keyframes sparkleDustRight {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.15) rotate(-35deg);
    text-shadow:
      0 0 10px #ffffff,
      0 0 18px var(--petal-color);
  }
}

.page-content {
  padding: 0 1.25rem;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   3. SECTION HÉRO & BOUTON DÉCOUVRIR
   ========================================================================= */
.section-hero {
  position: relative;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0 2rem;
  margin-bottom: 1rem;
}

.hero-floral-art {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 460px;
  height: 290px;
  pointer-events: none !important;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 15;
  text-align: center;
  max-width: 330px;
  margin: 0 auto;
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 300;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.hero-quote em {
  font-style: italic;
  color: var(--branch-color);
  font-weight: 400;
}

.hero-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Bouton Découvrir Anaïs */
.bio-trigger-btn {
  position: relative !important;
  z-index: 30 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(216, 194, 157, 0.4);
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.bio-trigger-btn * {
  pointer-events: none !important;
}

.bio-trigger-btn:hover {
  background: rgba(216, 194, 157, 0.15);
  border-color: var(--gold-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 186, 122, 0.25);
}

.bio-trigger-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   4. SECTION COLLECTIONS & CARTES AVEC LISERÉ ILLUMINÉ PULSANT
   ========================================================================== */
.section-works {
  position: relative;
  padding: 1.5rem 0 2rem;
}

.works-branch-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  height: 100%;
  pointer-events: none !important;
  z-index: 1;
}

.works-badge {
  position: relative;
  z-index: 5;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--branch-color);
  margin-bottom: 1.6rem;
  font-weight: 500;
}

.works-list {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Carte avec liseré lumineux organique qui respire */
.work-item {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1.5px solid rgba(216, 194, 157, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  animation: pulseBorderCard 5s ease-in-out infinite;
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

@keyframes pulseBorderCard {
  0%,
  100% {
    border-color: rgba(216, 194, 157, 0.22);
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.45),
      0 0 0 0 transparent;
  }
  50% {
    border-color: rgba(232, 186, 122, 0.55);
    box-shadow:
      0 14px 34px rgba(0, 0, 0, 0.5),
      0 0 16px rgba(224, 122, 101, 0.18);
  }
}

.work-item:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 186, 122, 0.75);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.6),
    0 0 22px rgba(232, 186, 122, 0.25);
}

/* CONTENEUR PHOTO (FOND NOIR PUR, SANS ROGNAGE) */
.work-media {
  width: 100%;
  max-height: 480px;
  min-height: 240px;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.work-media img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item:hover .work-media img {
  transform: scale(1.025);
}

/* CORPS DE CARTE */
.work-body {
  padding: 1.6rem 1.4rem;
  background: transparent;
}

.work-cat {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--petal-color);
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
}

.work-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.work-materials {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.work-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cfd8d2;
  margin-bottom: 1.1rem;
}

.work-essences {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.essence-pill {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(216, 194, 157, 0.1);
  border: 1px solid rgba(216, 194, 157, 0.2);
  border-radius: 4px;
  color: var(--branch-color);
  font-weight: 500;
}

/* ==========================================================================
   5. MANIFESTE & CONTACT DIRECT
   ========================================================================== */
.section-manifesto {
  position: relative;
  z-index: 5;
  padding: 2.5rem 0;
}

.manifesto-inner {
  border-top: 1px solid rgba(216, 194, 157, 0.2);
  border-bottom: 1px solid rgba(216, 194, 157, 0.2);
  padding: 2.6rem 1rem;
  text-align: center;
  background: transparent;
}

.manifesto-num {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--petal-color);
  display: block;
  margin-bottom: 1rem;
}

.manifesto-quote {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1.35;
  font-style: italic;
  margin-bottom: 1.2rem;
  color: #eeddbf;
}

.manifesto-sign {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.section-contact {
  position: relative;
  z-index: 5;
  padding: 2.5rem 0 4.5rem;
  text-align: center;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 300;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.contact-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto 1.8rem;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.8rem 1.4rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--branch-color);
  font-weight: 600;
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(216, 194, 157, 0.25);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--branch-color);
  box-shadow: 0 0 0 3px rgba(216, 194, 157, 0.15);
}

.contact-btn {
  margin-top: 0.6rem;
  width: 100%;
  padding: 0.95rem 1.8rem;
  background: var(--branch-color);
  color: #131714;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.contact-btn:hover {
  background: var(--gold-glow);
}

.contact-btn:active {
  transform: scale(0.98);
}

.contact-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-result {
  text-align: center;
  font-size: 0.85rem;
  min-height: 1.4rem;
  margin-top: 0.3rem;
  font-weight: 500;
}
.form-result.success {
  color: #5bc478;
}
.form-result.error {
  color: var(--petal-color);
}

/* ==========================================================================
   6. BARRE BASSE MOBILE & ICÔNES (DARK DOCK)
   ========================================================================== */
.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(19, 23, 20, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.7rem 1.4rem calc(0.7rem + var(--safe-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.bottom-dock-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dock-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--branch-color);
  transition:
    transform 0.2s ease,
    color 0.2s ease;
  text-decoration: none;
}

.dock-icon-link svg {
  width: 18px;
  height: 18px;
  stroke: var(--branch-color);
  transition:
    stroke 0.2s ease,
    transform 0.2s ease;
}

.dock-icon-link:hover {
  transform: translateY(-2px);
}

.dock-icon-link:hover svg {
  stroke: var(--gold-glow);
}

.dock-contact-link {
  color: var(--petal-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  margin-left: 0.2rem;
}

.dock-contact-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   7. ASCENSEUR & SCROLL REVEAL
   ========================================================================== */
.scroll-nav-dock {
  position: fixed;
  right: 1.2rem;
  bottom: calc(70px + var(--safe-bottom, 16px));
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 9999;
  pointer-events: auto;
}

.scroll-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(216, 194, 157, 0.35);
  background: rgba(24, 29, 25, 0.9);
  color: var(--branch-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition:
    opacity 0.3s ease,
    transform 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  padding: 0;
  outline: none;
}

.scroll-nav-btn svg {
  width: 20px;
  height: 20px;
  stroke: #eeddbf;
}

.scroll-nav-btn:hover {
  background: rgba(35, 42, 36, 1);
  border-color: #eeddbf;
}

.scroll-nav-btn:active {
  transform: scale(0.92);
}

.scroll-nav-btn.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.7) !important;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   8. MODALE BIO (DARK MODE ÉLÉGANT)
   ========================================================================== */
.bio-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  opacity: 0;
  pointer-events: none;
}

.bio-modal.is-active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.bio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 11, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bio-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 390px;
  max-height: 85vh;
  overflow-y: auto;
  background: #181d19;
  border: 1px solid rgba(216, 194, 157, 0.3);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  padding: 2rem 1.6rem;
  text-align: center;
}

.bio-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}

/* PORTRAIT ÉTINCELANT (HALO AMBRÉ & OR) */
.bio-portrait-wrapper {
  position: relative;
  width: 146px;
  height: 146px;
  margin: 0.8rem auto 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-portrait-wrapper::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(232, 186, 122, 0.95),
    rgba(198, 94, 73, 0.85),
    rgba(255, 255, 255, 0.95),
    rgba(232, 186, 122, 0.95),
    rgba(83, 98, 87, 0.7),
    rgba(232, 186, 122, 0.95)
  );
  filter: blur(4px);
  animation: haloSpin 8s linear infinite;
  z-index: 1;
}

.bio-portrait-wrapper::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 186, 122, 0.5) 0%,
    rgba(198, 94, 73, 0.25) 50%,
    transparent 75%
  );
  animation: shimmerPulse 3.2s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.bio-portrait-img {
  position: relative;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

@keyframes haloSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes shimmerPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

.bio-tag {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--petal-color);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.bio-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 0.9rem;
  color: var(--text-main);
}

.bio-text {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #cfd8d2;
  margin-bottom: 1rem;
}

.bio-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: #eeddbf;
  border-top: 1px solid rgba(216, 194, 157, 0.2);
  padding-top: 0.8rem;
}

/* ==========================================================================
   9. PROTECTION DU CONTENU & BOUTONS
   ========================================================================== */
img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

button,
a,
.bio-trigger-btn,
.scroll-nav-btn,
.contact-btn {
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto !important;
  cursor: pointer !important;
}
