/*
Theme Name:   MARKI
Theme URI:    https://markikram.com
Description:  Thème enfant MARKI — mode modeste contemporaine. Palette et typographie pilotées par theme.json. Ne jamais modifier le thème parent.
Author:       Développement MARKI
Template:     twentytwentyfive
Version:      1.0.1
Text Domain:  marki
Domain Path:  /languages
Requires PHP: 8.1
*/

/* ---------------------------------------------------------------
   Le gros du style vit dans theme.json (palette, typo, boutons).
   Ce fichier ne contient que ce qui n'est pas exprimable en JSON.
   --------------------------------------------------------------- */

/* Wordmark provisoire — remplacé par le SVG final du logo (§2) */
.marki-wordmark {
  font-family: var(--wp--preset--font-family--titres);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wp--preset--color--brun);
  text-indent: 0.32em; /* compense le letter-spacing final */
  line-height: 1;
}

.marki-slogan {
  font-family: var(--wp--preset--font-family--courant);
  font-size: 0.9375rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--taupe);
}

/* Apparition douce au défilement (§2 : « jamais tape-à-l'œil ») */
.marki-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.marki-fade.is-visible {
  opacity: 1;
  transform: none;
}

/* Accessibilité : respecter le réglage système de réduction des animations */
@media (prefers-reduced-motion: reduce) {
  .marki-fade,
  .marki-fade.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Sélecteur de langue — le français doit rester au moins aussi en évidence
   que l'anglais (Loi 96, §9). Aucun style ne minimise l'option FR. */
.marki-langue-active {
  font-weight: 500;
  color: var(--wp--preset--color--brun);
}

/* Fiches produits : photographie éditoriale, ratio portrait constant */
.woocommerce ul.products li.product img,
.woocommerce div.product div.images img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Mobile-first : cibles tactiles confortables au panier et au paiement */
@media (max-width: 600px) {
  .woocommerce .button,
  .wc-block-components-button {
    min-height: 48px;
    width: 100%;
  }
}

/* Carrousel héro — page d'accueil (directive du 17 août : plein écran,
   3-5 images, défilement lent, swipeable, prefers-reduced-motion). Blocs
   natifs (Groupe + Couverture) ; ceci ne fait que les rendre défilables. */
.marki-carousel-wrap {
  position: relative;
}

.marki-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.marki-carousel::-webkit-scrollbar {
  display: none;
}

.marki-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.marki-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.marki-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.marki-carousel-dot.is-active {
  background: #ffffff;
  transform: scale(1.3);
}

@media (prefers-reduced-motion: reduce) {
  .marki-carousel {
    scroll-behavior: auto;
  }
}
