/**
 * Base Styles - Mobile-First Reset & Defaults
 * La Fille du Fleuriste
 */

/* ===== CSS Reset ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Root & Body ===== */
html {
  font-size: 16px; /* Base font size for rem calculations */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* ===== Typography ===== */

/* Très grands titres — Kapakana Regular */

/* Grands titres h1, h2 — DM Sans Bold */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  line-height: var(--leading-tight);
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }

/* Sous-titres h3-h6 — Gowun Batang Bold */
h3, h4, h5 {
  font-family: var(--font-subtitle);
  font-weight: 700;
  font-style: normal;
  line-height: var(--leading-tight);
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
}

h3 { font-size: var(--text-lg); }
h4, h5 { font-size: var(--text-base); }

/* Tablet+ Typography */
@media (min-width: 768px) {
  h1 { font-size: var(--text-3xl); }
}

/* Desktop Typography */
@media (min-width: 1024px) {
  h1 { font-size: var(--text-4xl); }
}

/* Descriptions produit / catégorie — Gowun Batang Regular */
.description,
.bouquet-description,
.bouquet-detail-description,
.collection-card p,
.related-product-description,
.testimonial-text,
.detail-block p,
.order-step p {
  font-family: var(--font-description);
  font-weight: 400;
  font-style: normal;
}

/* Petits textes — Gowun Batang Regular */
small,
.form-note,
.text-xs,
.size-rating,
.testimonial-occasion,
.collection-min-price,
.bouquet-category,
.related-product-category,
.social-bubble-label {
  font-family: var(--font-small);
  font-weight: 400;
  font-style: normal;
}

/* Classe utilitaire Assistant Regular */

/* ===== Bouquet Card ===== */
.bouquet-name {
  font-family: var(--font-assistant);
  font-weight: 600;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  color: #6C6A5D;
}

.bouquet-category {
  font-family: var(--font-subtitle);
  font-weight: 700;
  font-style: normal;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  color: #C2B254;
}

.bouquet-description {
  font-family: var(--font-description);
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  color: #C2C4B6;
}

.bouquet-price {
  font-family: var(--font-assistant);
  font-weight: 700;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  text-align: right;
  color: #6C6A5D;
}

p {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: 0;
  color: #6C6A5D;
  margin-bottom: var(--space-md);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-assistant);
  font-weight: 400;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(178, 138, 131, 0.6);
}

.breadcrumb a,
.breadcrumb span {
  font-family: var(--font-assistant);
  font-weight: 400;
  font-size: 10px;
  color: rgba(178, 138, 131, 0.6);
  text-decoration: underline;
  text-decoration-style: solid;
  white-space: nowrap;
  transition: color var(--transition-base);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary);
}

/* ===== Lists ===== */
ul {
  list-style: none;
}

/* ===== Images & Media ===== */
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== Forms ===== */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Remove default input styling */
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== Tables ===== */
table {
  border-collapse: collapse;
  width: 100%;
}

/* ===== Utility - Screen Reader Only ===== */

/* ===== Utility - Prevent Text Selection ===== */

/* ===== Scrollbar Styling (Webkit) ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ===== Selection ===== */
::selection {
  background-color: var(--color-primary);
  color: white;
}

::-moz-selection {
  background-color: var(--color-primary);
  color: white;
}

/* ===== Focus Visible ===== */

/* ===== Prevent iOS Zoom on Focus ===== */
@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important; /* Prevents iOS zoom */
  }
}

/* ============================================
   TOAST NOTIFICATIONS - Pages utilisateur
   ============================================ */

#lff-toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.lff-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  pointer-events: all;
  animation: lff-toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

.lff-toast.lff-toast-out {
  animation: lff-toast-out 0.3s ease forwards;
}

.lff-toast-icon { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.lff-toast-text { flex: 1; }
.lff-toast-close {
  background: none; border: none; cursor: pointer;
  font-size: 14px; opacity: 0.5; padding: 0; line-height: 1;
  transition: opacity 0.2s; align-self: flex-start;
}
.lff-toast-close:hover { opacity: 1; }

@keyframes lff-toast-in {
  from { opacity: 0; transform: translateX(110%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes lff-toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(110%); }
}

@media (max-width: 480px) {
  #lff-toast-container {
    top: auto;
    bottom: 20px;
    right: 12px;
    left: 12px;
  }
  .lff-toast { min-width: unset; max-width: 100%; }
}
