/* ==========================================================================
   MARIE VILLA — HYPNOSE & DOULEUR CHRONIQUE
   Direction Artistique : Teinte Unique Sable Lin & Accents Marron Noble
   Arrière-Plan Dynamique Parallaxe · Grain Tactile Équilibré
   Accordéons Veloutés (+ / − purs sans rond) · Navigation Gauche
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------------
     TEINTE IDENTIQUE À LA CAPTURE D'ÉCRAN : SABLE LIN CHAUD UNIFIÉ
     ------------------------------------------------------------------------ */
  --sand-linen: #e5d2b5;        /* Teinte exacte mesurée sur la capture d'écran */
  --sand-linen-dark: #d8c2a3;   /* Teinte légèrement plus soutenue pour les séparateurs */
  --sand-linen-light: #efe1cc;  /* Teinte claire pour les cartes */
  
  /* ------------------------------------------------------------------------
     ACCENTS MARRON NOBLE & CHAUD
     ------------------------------------------------------------------------ */
  --brown-deep: #261a14;        /* Bistre profond pour les textes et titres */
  --brown-rich: #443026;        /* Marron chaud noble pour em et accents */
  --brown-darker: #190f0a;      /* Marron foncé au survol */
  --brown-soft: #5c4a3e;        /* Marron doux pour sous-titres */
  --brown-muted: #7e6c60;       /* Marron estompé pour détails */
  
  /* Filets Fins & Lignes d'Épure */
  --line: rgba(38, 26, 20, 0.14);
  --line-strong: rgba(38, 26, 20, 0.26);
  --line-subtle: rgba(38, 26, 20, 0.08);
  
  /* Typographie Éditoriale */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Métriques d'Interface */
  --header-height: 72px;
  
  /* Courbes de Décélération Veloutées */
  --ease-velvet: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-color: var(--sand-linen);
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--sand-linen);
  color: var(--brown-deep);
  font-family: var(--font-sans);
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   TEXTURE DE GRAIN TACTILE UNIFORME SUR TOUTE LA PAGE
   -------------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 25;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='sandGrain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.42' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 1.25 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23sandGrain)' opacity='0.80'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  background-repeat: repeat;
}

/* --------------------------------------------------------------------------
   BARRE DE NAVIGATION DU HAUT — STRUCTURE EXACTE DE LA CAPTURE D'ÉCRAN
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 50;
  background: rgba(236, 221, 195, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  text-align: left;
  align-items: flex-start;
  margin-left: 0;
  padding-left: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brown-deep);
  line-height: 1.15;
}

.brand-caption {
  font-family: var(--font-sans);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brown-muted);
  margin-top: 3px;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--brown-deep);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--brown-rich);
}

.nav-link.nav-contact {
  border: 1px solid var(--brown-deep);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brown-deep);
  transition: background-color 0.25s var(--ease-velvet), color 0.25s var(--ease-velvet);
}

.nav-link.nav-contact:hover {
  background-color: var(--brown-deep);
  color: var(--sand-linen);
}

/* Bouton hamburger mobile */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: center;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: var(--brown-deep);
  transition: transform 0.35s var(--ease-velvet), opacity 0.25s ease;
}

.mobile-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   STRUCTURE COMMUNE DES SECTIONS
   -------------------------------------------------------------------------- */
main {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: 120px 8vw 100px;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.content {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.content.narrow {
  max-width: 820px;
}

.section-number {
  position: absolute;
  left: 4vw;
  top: 120px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.2vw, 72px);
  color: var(--brown-deep);
  opacity: 0.07;
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
}

.eyebrow, .kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--brown-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before, .kicker::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background-color: var(--brown-rich);
  opacity: 0.6;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--brown-deep);
  margin-bottom: 46px;
}

/* --------------------------------------------------------------------------
   HERO / PREMIER ÉCRAN
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 100px;
}

.hero-inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 400;
  color: var(--brown-deep);
  max-width: 980px;
  margin-bottom: 28px;
}

/* « douleur chronique » en marron noble chaleureux (adieu à l'ocre) */
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--brown-rich);
}

.hero-lead {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.7;
  max-width: 800px;
  color: var(--brown-soft);
  margin-bottom: 48px;
}

/* MODALITÉS D'ACCOMPAGNEMENT : SÉPARATEURS FINS ÉLÉGANTS */
.modalities-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 44px 0 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 980px;
}

.modality-col {
  padding: 34px 44px 36px 0;
}

.modality-col:first-child {
  border-right: 1px solid var(--line);
  padding-right: 48px;
}

.modality-col:last-child {
  padding-left: 48px;
}

.modality-title {
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--brown-rich);
  margin-bottom: 14px;
}

.modality-text {
  font-size: 15px;
  line-height: 1.72;
  color: var(--brown-deep);
  margin: 0;
}

/* Boutons */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease-velvet), background-color 0.3s var(--ease-velvet), color 0.3s var(--ease-velvet), box-shadow 0.3s var(--ease-velvet);
  cursor: pointer;
}

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

.button.primary {
  background: var(--brown-deep);
  color: var(--sand-linen);
  border: 1px solid var(--brown-deep);
  box-shadow: 0 4px 16px rgba(45, 34, 28, 0.12);
}

.button.primary:hover {
  background: var(--brown-rich);
  border-color: var(--brown-rich);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(70, 50, 41, 0.24);
}

.button.ghost {
  background: transparent;
  color: var(--brown-deep);
  border: 1px solid var(--line-strong);
}

.button.ghost:hover {
  border-color: var(--brown-deep);
  background: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   ACCORDÉONS VELOUTÉS HAUTE FLUIDITÉ
   (Plus et moins purs sans rond, alignés et centrés)
   -------------------------------------------------------------------------- */
.accordion {
  border-top: 1px solid var(--line-strong);
  width: 100%;
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-header {
  list-style: none;
  cursor: pointer;
  padding: 24px 16px;
  margin: 0 -16px;
  display: grid;
  grid-template-columns: 48px 1fr 28px;
  align-items: center;
  gap: 16px;
  background: transparent;
  border-radius: 6px;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-header:hover {
  background-color: rgba(255, 255, 255, 0.35);
}

.step-num {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--brown-muted);
  font-weight: 600;
}

.accordion-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--brown-deep);
  transform: none !important;
  transition: color 0.25s ease;
}

.accordion-header:hover .accordion-title {
  color: var(--brown-rich);
}

/* Indicateur : PLUS ET MOINS PURS SANS ROND, PARFAITEMENT ALIGNÉS */
.icon-indicator {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--brown-rich);
  text-align: right;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  user-select: none;
  background: none !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  transform: none !important;
  transition: color 0.2s ease;
}

.accordion-header:hover .icon-indicator {
  color: var(--brown-deep);
}

/* Déploiement soyeux via transition CSS Grid (ultra-fluide & sans à-coup) */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.52s var(--ease-velvet);
  overflow: hidden;
}

.accordion-item[open] .accordion-content {
  grid-template-rows: 1fr;
}

.accordion-body {
  min-height: 0;
  overflow: hidden;
  padding: 0 0 34px 64px;
  max-width: 820px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.42s ease 0.08s, transform 0.50s var(--ease-velvet) 0.08s;
}

.accordion-item[open] .accordion-body {
  opacity: 1;
  transform: translateY(0);
}

.accordion-body p {
  font-size: 16px;
  line-height: 1.74;
  color: var(--brown-deep);
  margin-bottom: 16px;
}

.accordion-body p:last-child {
  margin-bottom: 0;
}

/* Paragraphes médicaux de précaution : police plus petite et discrète */
.note-medical {
  font-size: 13.5px !important;
  line-height: 1.62 !important;
  color: var(--brown-soft) !important;
  opacity: 0.9;
  border-left: 2px solid var(--line-strong);
  padding-left: 14px;
  margin-top: 14px !important;
}

/* --------------------------------------------------------------------------
   SECTION 5 : À PROPOS
   -------------------------------------------------------------------------- */
.bio-narrative {
  font-size: 17px;
  line-height: 1.78;
  color: var(--brown-deep);
}

.bio-narrative p {
  margin-bottom: 22px;
}

.bio-narrative p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   SECTION 7 : RESSOURCES
   -------------------------------------------------------------------------- */
.ressources-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--brown-muted);
  max-width: 760px;
  margin: -16px 0 40px;
}

.ressources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 38px;
}

.ressource-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 28px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s var(--ease-velvet), background-color 0.3s var(--ease-velvet), transform 0.3s var(--ease-velvet);
}

.ressource-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.60);
  transform: translateY(-2px);
}

.card-status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brown-rich);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--brown-deep);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--brown-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   SECTION 8 : CONTACT — PRISE DE RENDEZ-VOUS
   -------------------------------------------------------------------------- */
.contact-section {
  padding-bottom: 64px;
}

.contact-lead {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.45;
  color: var(--brown-deep);
  margin-bottom: 40px;
}

.contact-cta-wrapper {
  margin-bottom: 38px;
}

.whatsapp-button {
  background: var(--brown-rich);
  color: #ffffff;
  border: 1px solid var(--brown-rich);
  padding: 16px 32px;
  gap: 12px;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(70, 50, 41, 0.22);
}

.whatsapp-button:hover {
  background: var(--brown-darker);
  border-color: var(--brown-darker);
  box-shadow: 0 12px 30px rgba(70, 50, 41, 0.32);
  color: #ffffff;
}

.whatsapp-icon {
  flex-shrink: 0;
}

.contact-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.channel-card {
  padding: 22px 24px;
  border-left: 2px solid var(--brown-rich);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 0 6px 6px 0;
  border-top: 1px solid var(--line-subtle);
  border-right: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
  transition: background-color 0.25s ease;
}

.channel-card:hover {
  background: rgba(255, 255, 255, 0.60);
}

.channel-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brown-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.channel-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--brown-deep);
  text-decoration: none;
  transition: color 0.25s ease;
}

.channel-link:hover {
  color: var(--brown-rich);
}

.contact-location-note {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brown-muted);
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   PIED DE PAGE (FOOTER)
   -------------------------------------------------------------------------- */
.site-footer {
  background: transparent;
  color: var(--brown-deep);
  padding: 40px 4vw;
  position: relative;
  z-index: 2;
  font-size: 12px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--brown-deep);
}

.footer-sub {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brown-muted);
}

.footer-note {
  color: var(--brown-soft);
  margin: 0;
}

.footer-rights {
  color: var(--brown-muted);
}

/* --------------------------------------------------------------------------
   RESPONSIVE (TABLETTES & MOBILES)
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .section-number {
    display: none;
  }
}

@media (max-width: 850px) {
  :root {
    --header-height: 66px;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(238, 227, 209, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 8vw;
    gap: 18px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.48s var(--ease-velvet), opacity 0.35s ease;
    border-bottom: 1px solid var(--line);
    overflow-y: auto;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 17px;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-subtle);
  }

  .nav-link.nav-contact {
    margin-top: 16px;
    text-align: center;
    border-color: var(--brown-rich);
  }

  .section {
    padding: 96px 6vw 76px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 76px;
  }

  .modalities-container {
    grid-template-columns: 1fr;
  }

  .modality-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
  }

  .modality-col:last-child {
    padding: 26px 0;
  }

  .ressources-grid {
    grid-template-columns: 1fr;
  }

  .contact-channels {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .grain {
    opacity: 0.16;
  }
}

@media (max-width: 580px) {
  .section {
    padding: 84px 5vw 64px;
  }

  .hero-title {
    font-size: 38px;
  }

  .section-heading {
    font-size: 30px;
    margin-bottom: 34px;
  }

  .accordion-header {
    grid-template-columns: 32px 1fr 24px;
    gap: 10px;
    padding: 20px 10px;
    margin: 0 -10px;
  }

  .accordion-body {
    padding: 0 0 24px 42px;
  }

  .accordion-title {
    font-size: 18px;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITÉ : PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .sand-linen-canvas, .grain {
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   ÉCRAN DE VERROUILLAGE / ACCÈS CONFIDENTIEL PAR MOT DE PASSE
   -------------------------------------------------------------------------- */
html:not(.unlocked) {
  overflow: hidden !important;
}

html:not(.unlocked) body {
  overflow: hidden !important;
  height: 100vh !important;
}

html.unlocked .gate-screen {
  display: none !important;
}

.gate-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--sand-linen);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.45s var(--ease-velvet), transform 0.45s var(--ease-velvet);
}

.gate-screen.unlocking {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.gate-card {
  width: 100%;
  max-width: 380px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: center;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.gate-card.shake {
  animation: gateShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes gateShake {
  10%, 90% { transform: translateX(-3px); }
  20%, 80% { transform: translateX(5px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.gate-input-wrapper {
  position: relative;
  width: 100%;
}

.gate-input {
  width: 100%;
  padding: 15px 46px 15px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--brown-deep);
  background: #ffffff;
  border: 1.5px solid #1c140e;
  border-radius: 999px;
  outline: none;
  box-shadow: 0 2px 6px rgba(35, 25, 18, 0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.gate-input:focus {
  border-color: #000000;
  box-shadow: 0 3px 12px rgba(28, 20, 14, 0.08);
}

.gate-input.input-error {
  border-color: #b33927;
  background: rgba(255, 245, 245, 0.95);
}

.gate-toggle-pwd {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #1c140e;
  opacity: 0.75;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.gate-toggle-pwd:hover {
  opacity: 1;
}

.gate-error {
  font-size: 12.5px;
  color: #b33927;
  min-height: 16px;
  margin: -4px 0 2px;
  font-weight: 500;
  text-align: center;
}

.gate-submit {
  width: 100%;
  padding: 15px 26px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: #17110c;
  color: var(--sand-linen);
  border: 1px solid #17110c;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(23, 17, 12, 0.12);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.gate-submit:hover {
  transform: translateY(-1px);
  background: var(--brown-rich);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(23, 17, 12, 0.20);
}

