/* ===== LOGIN SPLIT ===== */
.auth-split{
  background: var(--primary);
  padding: 70px 0;
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}

.auth-split__container{
  width: min(1100px, 92%);
}

/* Card split */
.auth-split__card{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 520px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
}

/* Gauche : image */
.auth-split__media{
  background: rgba(0,0,0,0.12);
}

.auth-split__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Droite : panel brun */
.auth-split__panel{
  background: #7b3a2f;
  color: #f3e7d6;
  padding: 52px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Titres */
.auth-split__title{
  font-family: serif;
  font-size: 2.6rem;
  margin: 0 0 6px;
}

.auth-split__subtitle{
  margin: 0 0 22px;
  opacity: 0.92;
  font-size: 0.98rem;
}

/* Alerts */
.auth-alert{
  border-radius: 10px;
  padding: 12px 12px;
  margin: 8px 0 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.auth-alert--error{
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(243,231,214,0.22);
  color: #f3e7d6;
}

.auth-alert--info{
  background: rgba(243,231,214,0.10);
  border: 1px solid rgba(243,231,214,0.20);
  color: #f3e7d6;
}

.auth-link{
  color: #f3e7d6;
  text-decoration: underline;
}

/* ===== FORM ===== */
.auth-form{
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

/* ===== Floating fields ===== */
.auth-field--float{
  position: relative;
}

/* Input moderne */
.auth-field--float input,
.auth-field--float textarea{
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(243,231,214,0.35);
  color: #f3e7d6;
  padding: 22px 14px 12px;         /* place pour label */
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  backdrop-filter: blur(4px);
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    background-color .25s ease,
    transform .15s ease;
}

/* Focus premium */
.auth-field--float input:focus,
.auth-field--float textarea:focus{
  background: rgba(255,255,255,0.14);
  border-color: #f3e7d6;
  box-shadow:
    0 0 0 4px rgba(243,231,214,0.18),
    0 8px 18px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

/* Label */
.auth-field--float label{
  position: absolute;
  left: 12px;
  top: 16px;                       /* repos */
  padding: 0 6px;
  font-size: 0.95rem;
  color: rgba(243,231,214,0.78);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .2s ease, top .2s ease, opacity .2s ease, background-color .2s ease;
  background: transparent;
}

/* Label "monte" + fond brun */
.auth-field--float input:focus + label,
.auth-field--float input:not(:placeholder-shown) + label,
.auth-field--float textarea:focus + label,
.auth-field--float textarea:not(:placeholder-shown) + label{
  top: 2px;                         /* monte assez */
  transform: scale(0.82);
  opacity: 0.98;
}

/* ===== Password eye button ===== */
.auth-field--password{
  position: relative;
}

.auth-field--password input{
  padding-right: 52px;              /* place pour bouton oeil */
}

.auth-eye{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);      /* un poil plus haut (car label) */
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(243,231,214,0.14);
  color: #f3e7d6;
  display: grid;
  place-items: center;
  transition: background-color .2s ease, transform .2s ease;
}

.auth-eye i{
  font-size: 1.05rem;
}

.auth-eye:hover{
  background: rgba(243,231,214,0.22);
  transform: translateY(-30%) scale(1.05);
}

.auth-eye:focus-visible{
  outline: 2px solid rgba(243,231,214,0.75);
  outline-offset: 3px;
}

/* ===== Bouton premium ===== */
.auth-btn{
  margin-top: 12px;
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-radius: 12px;
  background: #f3e7d6;
  color: #7b3a2f;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.auth-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
  filter: brightness(1.04);
}

.auth-btn:active{
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* ==== Cart cards (reuse auth style) ==== */
.cart-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-card__panel .cart-table{
  background: rgba(243,231,214,0.08);
  border: 1px solid rgba(243,231,214,0.16);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.cart-table__head,
.cart-table__row{
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 0.6fr 0.7fr;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.cart-table__row span {
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

.cart-table__head{
  font-weight: 700;
  color: #f3e7d6;
}

.cart-table__row{
  color: #f3e7d6;
  background: rgba(243,231,214,0.04);
  padding: 6px 8px;
  border-radius: 10px;
}

.cart-total{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #f3e7d6;
}

.cart-total__amount{
  font-weight: 700;
  font-size: 1.05rem;
}

.auth-btn:focus-visible{
  outline: 2px solid #f3e7d6;
  outline-offset: 3px;
}

/* ==== Galerie admin gîte ==== */
.admin-gallery{
  background: radial-gradient(circle at 5% 10%, rgba(255,255,255,0.06), transparent 35%),
              radial-gradient(circle at 85% 30%, rgba(255,255,255,0.08), transparent 40%),
              #0e3c2f;
  border-radius: 18px;
  padding: 18px 20px 22px;
  border: 1px solid rgba(243,231,214,0.18);
  box-shadow: inset 0 0 0 1px rgba(243,231,214,0.08);
  color: #f3e7d6;
}

.admin-gallery__thumb{
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(243,231,214,0.08);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}

.admin-gallery__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease, filter .2s ease;
}

.admin-gallery__thumb:hover img{
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* Lightbox admin */
.admin-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 20, 0.8);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 1200;
}

.admin-lightbox.is-open{
  opacity: 1;
  pointer-events: auto;
}

.admin-lightbox__inner{
  max-width: min(90vw, 900px);
  max-height: 78vh;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.admin-lightbox__img{
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  background: #0c1713;
  object-fit: contain;
  box-shadow: 0 18px 50px rgba(0,0,0,0.4);
}

.admin-lightbox__caption{
  color: #f3e7d6;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.admin-lightbox__close{
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: rgba(243,231,214,0.18);
  color: #0e3c2f;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}

.admin-lightbox__close:hover{
  transform: scale(1.05);
  background: rgba(243,231,214,0.24);
}

.admin-lightbox__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(243,231,214,0.16);
  color: #0e3c2f;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}

.admin-lightbox__nav:hover{
  transform: translateY(-50%) scale(1.07);
  background: rgba(243,231,214,0.24);
}

.admin-lightbox__nav--prev{ left: 14px; }
.admin-lightbox__nav--next{ right: 14px; }
/* ===== Reveal rebond ===== */
.reveal{
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity .45s ease,
    transform .55s cubic-bezier(.2, .9, .2, 1.25);
  will-change: transform, opacity;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .auth-split__card{
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-split__media{
    height: 260px;
  }

  .auth-split__panel{
    padding: 34px 22px;
  }
}
