/* =============================================================================
   css/base.css — Kookiya Flavors · Base globale
   Reset minimal + body + accessibilité + prefers-reduced-motion
   ========================================================================== */

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

html,
body{
  width: 100%;
  min-height: 100%;
}

html{
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body{
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--ivoire);
  overflow-x: hidden;
  text-wrap: pretty;
}

/* --- Liens par défaut ---------------------------------------------- */
a{
  color: inherit;
  text-decoration-color: currentColor;
  text-underline-offset: 2px;
}

/* --- Médias --------------------------------------------------------- */
img,
picture,
svg,
video{
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Champs de formulaire ------------------------------------------ */
button,
input,
textarea,
select{
  font: inherit;
  color: inherit;
  background: transparent;
}

button{
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

input,
textarea{
  border: none;
  outline: none;
}

/* --- Listes --------------------------------------------------------- */
ul, ol{
  list-style: none;
}

/* --- Titres : italique léger (signature de marque Kookiya) --------- */
h1, h2, h3, h4, h5, h6{
  font-family: var(--ff-display);
  font-weight: 300;
  font-style: italic;
  color: var(--encre);
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-wrap: balance;
}

/* --- Focus visible -------------------------------------------------- */
:focus{
  outline: none;
}
:focus-visible{
  outline: 2px solid var(--safran);
  outline-offset: 2px;
}

/* --- Sélection ----------------------------------------------------- */
::selection{
  background: var(--safran);
  color: var(--encre);
}

/* --- Lecteur d'écran uniquement ------------------------------------ */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Cacher visuellement mais garder focusable --------------------- */
.visually-hidden{
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- prefers-reduced-motion : désactive les animations lentes ------ */
@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration: 120ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
    transition-timing-function: linear !important;
    animation-timing-function: linear !important;
    scroll-behavior: auto !important;
  }
  /* Coupe sec les boucles infinies de marque */
  .breath-bg,
  .offer-card:hover::before,
  .orb,
  .orb::before,
  .orb .dot,
  .pulse,
  .textpulse,
  .ring,
  .breathe{
    animation: none !important;
  }
}
