/* ==========================================================================
   Nayra — base : polices, reset, typographie.
   Mobile-first. Dépend de tokens.css (variables).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Polices auto-hébergées (cf. DECISIONS.md D-006).
   font-display: swap → le texte s'affiche immédiatement en police de repli
   (critique en 4G), puis bascule quand la woff2 est chargée.
   -------------------------------------------------------------------------- */

/* Cormorant Garamond — titres */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-v21-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-v21-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-v21-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-v21-latin-700.woff2") format("woff2");
}

/* Inter — corps de texte */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-v20-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-v20-latin-600.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   2. Reset minimal.
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Typographie de base.
   -------------------------------------------------------------------------- */

body {
  font-family: var(--nayra-font-corps);
  font-size: 1rem;
  color: var(--nayra-brun);
  background-color: var(--nayra-creme);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--nayra-font-titres);
  font-weight: 600;
  line-height: 1.15;
  color: var(--nayra-brun);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.125rem; }
  h3 { font-size: 1.625rem; }
}

p {
  margin-bottom: 1em;
}

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

a:hover,
a:focus-visible {
  color: var(--nayra-or);
}

/* Accessibilité : focus visible au clavier. */
:focus-visible {
  outline: 2px solid var(--nayra-or);
  outline-offset: 2px;
}

/* Lien d'évitement (masqué jusqu'au focus clavier). */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--nayra-brun);
  color: var(--nayra-creme);
}

.skip-link:focus {
  left: 0;
}

/* Bouton générique (CTA hero, réutilisable). */
.nayra-bouton {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nayra-blanc);
  background: var(--nayra-or);
  border: 1px solid var(--nayra-or);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nayra-bouton:hover,
.nayra-bouton:focus-visible {
  color: var(--nayra-or);
  background: transparent;
}

/* Notices Woo (ajout panier, erreurs…) — retour visuel générique. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin: 0 0 1.5rem;
  padding: 0.875rem 1.25rem;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--nayra-brun);
  background: var(--nayra-sable-clair);
  border-left: 3px solid var(--nayra-or);
}

.woocommerce-error {
  border-left-color: var(--nayra-brun);
}

.woocommerce-message a.button,
.woocommerce-message .wc-forward {
  float: right;
  color: var(--nayra-or);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  font-size: 0.875rem;
}

/* Utilitaire : masqué visuellement mais lu par les lecteurs d'écran. */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
