/* =========================================================
   LUNIRA THEME — BASE COMMUNE PREMIUM
   Direction :
   calme + intelligente + humaine + voyageuse
   ========================================================= */

/* =========================
   FONTS
   ========================= */

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-Regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-display: swap;
}

/* =========================
   RESET
   ========================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.i18n-pending [data-i18n],
html.i18n-pending [data-i18n-placeholder],
html.i18n-pending [data-i18n-title] {
  visibility: hidden;
}

/* =========================
   BODY GLOBAL
   ========================= */

body {
  margin: 0;

  min-height: 100dvh;

  font-family:
    'Nunito',
    'Inter',
    Arial,
    sans-serif;

  font-size: 16px;

  background:
    radial-gradient(circle at top left,
      rgba(148,210,189,.45),
      transparent 32%),

    radial-gradient(circle at top right,
      rgba(214,214,245,.30),
      transparent 30%),

    linear-gradient(
      135deg,
      #061826 0%,
      #0b3d4a 48%,
      #fdfcf9 135%
    );

  color: #fdfcf9;
}

/* =========================
   ACCESSIBILITÉ
   ========================= */

.skip-link {
  position: absolute;

  top: 0;
  left: 0;

  padding: .5rem 1rem;

  background: #000;
  color: #fff;

  z-index: 3000;

  opacity: 0;

  pointer-events: none;
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  margin: -1px;
  padding: 0;

  border: 0;

  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* Focus global */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(148,210,189,.9);
  outline-offset: 3px;
}

/* =========================
   TYPOGRAPHIE
   ========================= */

h1,
h2,
h3 {
  margin-top: 0;

  line-height: 1.05;

  letter-spacing: -.04em;
}

p {
  line-height: 1.7;
}

/* =========================
   HEADER
   ========================= */

.lunira-header {
  padding: 1.5rem 1rem 0;

  text-align: center;

  background: transparent;
}

.lunira-title {
  margin: 0;

  font-size: clamp(2rem, 6vw, 4.6rem);

  color: #ffffff;
}

/* =========================
   MAIN
   ========================= */

.lunira-main {
  width: 100%;

  min-height: calc(100dvh - 90px);

  padding:
    3rem
    1rem
    calc(180px + env(safe-area-inset-bottom, 0px));

  position: relative;

  z-index: 1;
}

/* =========================
   CARD PREMIUM
   ========================= */

.lunira-card {
  width: min(92vw, 920px);

  margin: 0 auto;

  padding: clamp(1.5rem, 4vw, 3rem);

  border-radius: 34px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.18),
      rgba(255,255,255,.08)
    );

  border: 1px solid rgba(255,255,255,.25);

  backdrop-filter: blur(22px);

  box-shadow:
    0 30px 80px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.22);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

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

/* =========================
   LOGO LUNIRA
   ========================= */

.brand-mark {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: .4rem;

  width: 100%;

  margin-bottom: 1rem;

  font-size: 2.8rem;

  color: #94d2bd;

  text-shadow:
    0 0 18px rgba(148,210,189,.35);
}

.brand-stars {
  font-size: 1.2rem;
}

/* =========================
   TEXTES INTRO
   ========================= */

.lunira-subtitle {
  max-width: 620px;

  margin:
    1.4rem
    auto
    0;

  font-size:
    clamp(1.05rem, 2.4vw, 1.35rem);

  line-height: 1.7;

  color:
    rgba(255,255,255,.86);

  text-align: center;
}

/* =========================
   BOUTONS PREMIUM
   ========================= */

.lunira-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 54px;

  padding: .9rem 1.5rem;

  border-radius: 18px;

  border: 1px solid rgba(255,255,255,.35);

  font-weight: 800;

  text-decoration: none;

  cursor: pointer;

  transition:
    background .22s ease,
    color .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

.lunira-button:hover,
.lunira-button:focus-visible {
  transform: translateY(-3px);

  box-shadow:
    0 18px 42px rgba(0,0,0,.28);
}

/* Bouton principal */
.lunira-button-primary {
  background:
    linear-gradient(
      135deg,
      #94d2bd 0%,
      #4caaa3 100%
    );

  color: #08222b;

  box-shadow:
    0 16px 36px rgba(76,170,163,.26);
}

/* Bouton secondaire */
.lunira-button-secondary {
  background:
    rgba(255,255,255,.08);

  color: #fdfcf9;
}

/* =========================
   FOOTER
   ========================= */

.lunira-footer {
  position: fixed;

  left: 0;
  right: 0;
  bottom: 0;

  width: 100%;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: .25rem;

  padding:
    1rem
    1rem
    calc(1rem + env(safe-area-inset-bottom, 0px));

  background:
    rgba(253,252,249,.92);

  color: #12252d;

  text-align: center;

  box-shadow:
    0 -12px 34px rgba(0,0,0,.12);

  z-index: 20;
}

.lunira-footer a,
.lunira-footer .sep {
  color: #005f73;

  text-decoration: none;

  margin: 0;
}

.lunira-footer a:hover,
.lunira-footer a:focus-visible {
  color: #0b3d4a;

  text-decoration: underline;
}

.lunira-footer p {
  width: 100%;

  margin: .25rem 0 0;
}

/* =========================
   ICON BUTTON
   ========================= */

.lunira-icon-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  border-radius: 50%;

  background:
    rgba(255,255,255,.12);

  border:
    1px solid rgba(255,255,255,.24);

  color: #fdfcf9;

  backdrop-filter: blur(14px);

  box-shadow:
    0 12px 28px rgba(0,0,0,.22);

  cursor: pointer;

  transition:
    transform .22s ease,
    background .22s ease,
    box-shadow .22s ease;
}

.lunira-icon-button:hover,
.lunira-icon-button:focus-visible {
  background:
    rgba(255,255,255,.22);

  transform:
    translateY(-2px) scale(1.04);

  box-shadow:
    0 18px 42px rgba(0,0,0,.28);
}

/* =========================
   FORMULAIRES
   ========================= */

.lunira-input,
input,
textarea,
select {
  width: 100%;

  padding: .9rem 1rem;

  border-radius: 14px;

  border:
    1px solid rgba(255,255,255,.24);

  background:
    rgba(255,255,255,.94);

  color: #12252d;

  font-size: 1rem;
}

/* =========================
   MESSAGE SUCCE ERREUR
   ========================= */

.msg-error {
  animation: fadeInOut 3s ease-in-out forwards;
}
.toast-success {
  animation: fadeInOut 3s ease-in-out forwards;
}
.delete-success {
  animation: fadeInOut 3s ease-in-out forwards;
}

.msg-error.msg-fade-out,
.toast-success.msg-fade-out,
.delete-success.msg-fade-out {
  opacity: 0;
  pointer-events: none;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 640px) {

  .lunira-card {
    border-radius: 26px;
  }

  .lunira-title {
    font-size: 2.5rem;
  }

  .lunira-button {
    width: 100%;
  }
}

@media (max-width: 376px) {

  .lunira-title {
    font-size: 2rem;
  }

  .lunira-subtitle {
    font-size: 1rem;
  }

  .lunira-footer {
    font-size: .875rem;
  }
}

/* =========================
   IOS INPUT FIX
   ========================= */

@supports (-webkit-touch-callout: none) {

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px;
  }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-20px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}