/* ==========================================================================
   Disgracieuses — habillage
   Direction : sobre et net, façon vraie boutique en ligne (fond blanc,
   nav en capitales, grille carrée). Le violet du logo est la seule
   couleur de marque ; le reste reste neutre, sauf les badges de statut.
   Palette regroupée ici : c'est le seul endroit à modifier pour changer
   les couleurs du site.
   ========================================================================== */

:root {
  --blanc:  #FFFFFF;  /* fond général */
  --os:     #FAF9F7;  /* fond légèrement cassé, pour alterner les sections */
  --encre:  #1E1A28;  /* texte principal */
  --doux:   #6D6577;  /* texte secondaire */
  --ligne:  #E7E3ED;  /* bordures */

  --violet:       #8D7FEA;  /* violet du logo — couleur de marque */
  --violet-fonce: #5B4CC4;  /* texte/boutons sur fond clair, hover */
  --violet-clair: #F1EEFC;  /* fonds teintés, badges */

  --rouge:       #C8433F;  /* statut « vendu », comme un bandeau de boutique */
  --rouge-clair: #FBE8E7;

  --terracotta: #B06A3A; --terracotta-clair: #F3E6DA;  /* badge crochet */
  --sarcelle:   #2F7E79; --sarcelle-clair:   #DEEEEC;  /* badge pancartes */
  --sauge:      #5F7A46; --sauge-clair:      #E7EEDF;  /* badge poupées */
  --moutarde:   #916B14; --moutarde-clair:   #F6EDD6;  /* badge stickers */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: "Work Sans", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
h3 { font-size: 1.05rem; letter-spacing: 0; text-transform: none; }

p { margin: 0 0 1rem; }

a { color: var(--violet-fonce); }

.evitement {
  position: absolute; left: -999px; top: 0;
  background: var(--encre); color: #fff; padding: 0.75rem 1.25rem; z-index: 100;
}
.evitement:focus { left: 1rem; top: 1rem; }

img { max-width: 100%; display: block; }

/* ---------- en-tête ---------- */

.entete {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding: 1rem 1.5rem;
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ligne);
}

.entete__logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--encre);
}
.entete__logo img { max-height: 2.6rem; width: auto; }
#logo-texte {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.1em;
}

.entete__nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.entete__nav a {
  text-decoration: none; color: var(--encre); font-weight: 600;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.entete__nav a:hover { border-color: var(--violet); color: var(--violet-fonce); }

/* ---------- hero ---------- */

.hero {
  max-width: 64rem; margin: 0 auto;
  padding: 2.25rem 1.5rem 1.75rem; text-align: center;
}
.hero__rangee {
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.hero__texte { max-width: 32rem; }
.hero__logo { max-width: 11rem; margin: 0 auto 0.5rem; }

.hero__creatrice {
  display: none; flex-direction: column; align-items: center; gap: 0.3rem;
  width: 6rem; text-decoration: none; color: var(--encre); flex: none;
}
@media (min-width: 60rem) {
  .hero__creatrice { display: flex; }
}
.hero__creatrice-photo {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; overflow: hidden;
  background: var(--violet-clair);
}
.hero__creatrice-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__creatrice-nom { font-size: 0.82rem; font-weight: 600; }
.hero__creatrice-insta {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--doux);
}
.hero__creatrice-insta[hidden] { display: none; }
.hero__creatrice:hover .hero__creatrice-nom,
.hero__creatrice:hover .hero__creatrice-insta { color: var(--violet-fonce); }
.rien-que-pour-les-lecteurs-ecran {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; margin: -1px; padding: 0;
}
.hero__sur {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--violet-fonce); margin-bottom: 0.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  text-transform: uppercase; letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.hero__accroche { font-size: 1rem; color: var(--doux); margin-bottom: 1.1rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.bouton {
  display: inline-block; font-weight: 600; text-decoration: none;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--violet-fonce); color: #fff;
  border: 1.5px solid var(--violet-fonce);
  border-radius: 0.8rem; padding: 0.8rem 1.75rem;
  transition: opacity 0.15s ease;
}
.bouton:hover { opacity: 0.85; }
.bouton--simple {
  background: transparent; color: var(--encre);
  border: 1.5px solid var(--encre);
}
.bouton--simple:hover { background: var(--encre); color: #fff; opacity: 1; }

/* ---------- annonce ---------- */

.message { max-width: 44rem; margin: 0 auto 2rem; padding: 0 1.5rem; }
.message p {
  background: var(--violet-clair); border-left: 4px solid var(--violet);
  border-radius: 0.6rem; padding: 0.9rem 1.1rem; margin: 0; font-weight: 600;
}

/* ---------- sections communes ---------- */

.section { max-width: 68rem; margin: 0 auto; padding: 2.25rem 1.5rem; }
.section__intro { color: var(--doux); max-width: 38rem; }

.section--presentation { text-align: center; background: var(--os); max-width: none; }
.section--presentation > * { max-width: 68rem; margin-left: auto; margin-right: auto; }
.section--presentation .texte { max-width: 40rem; margin: 0 auto; }

/* ---------- créatrices ---------- */

.creatrices {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem; margin-top: 2.25rem; text-align: left;
}
.creatrice {
  background: var(--blanc); border-radius: 0.7rem;
  padding: 1.4rem; border: 1px solid var(--ligne);
  display: flex; gap: 1.1rem; align-items: flex-start;
}
.creatrice__photo {
  flex: none; width: 4.2rem; height: 4.2rem; margin: 0;
  border-radius: 50%; overflow: hidden; background: var(--violet-clair);
}
.creatrice__photo img { width: 100%; height: 100%; object-fit: cover; }
.creatrice__role { color: var(--violet-fonce); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.creatrice__insta {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.3rem; font-size: 0.82rem;
  font-weight: 600; text-decoration: none; color: var(--violet-fonce);
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ---------- actus ---------- */

.section--actus { padding-bottom: 1rem; }
.actus { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.actu {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: 0.7rem;
  padding: 1.1rem; align-items: center;
}
.actu img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 0.5rem; }
.actu__date { color: var(--doux); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.actu__corps h3 { margin-bottom: 0.3rem; font-weight: 600; }
.actu__corps p:last-child { margin-bottom: 0; }

/* ---------- boutique : filtres ---------- */

.filtres { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0.75rem; }
.filtres--creatrices { margin: 0 0 2.25rem; }
.filtres--creatrices .filtre { font-size: 0.72rem; padding: 0.4rem 0.85rem; }
.filtre {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--blanc); border: 1.5px solid var(--ligne);
  border-radius: 0.6rem; padding: 0.55rem 1rem; color: var(--encre);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.filtre:hover { border-color: var(--violet); }
.filtre--actif { background: var(--violet-fonce); border-color: var(--violet-fonce); color: #fff; }

/* ---------- boutique : grille produits ---------- */

.produits {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.75rem 1.25rem;
}
.produit {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: 0.7rem;
  overflow: hidden; cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.produit:hover, .produit:focus-visible {
  border-color: var(--violet);
  box-shadow: 0 8px 20px -14px rgba(30, 26, 40, 0.4);
  outline: none;
}
.produit__vignette {
  position: relative; aspect-ratio: 1 / 1; background: var(--violet-clair);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.produit__vignette img { width: 100%; height: 100%; object-fit: cover; }
.produit__sansphoto { color: var(--violet-fonce); font-weight: 600; font-size: 0.85rem; }

/* bandeau de statut, façon étiquette de boutique (coin de la photo) */
.produit__vendu, .produit__dispo {
  position: absolute; top: 0.7rem; left: 0;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem 0.3rem 0.6rem;
}
.produit__vendu { background: var(--rouge); color: #fff; }
.produit__dispo { background: var(--violet-fonce); color: #fff; }

.produit__corps { padding: 0.9rem 1rem 1.1rem; }
.produit__corps h3 { font-size: 0.98rem; margin-bottom: 0.25rem; font-weight: 600; }
.produit__prix { font-weight: 700; color: var(--violet-fonce); margin-bottom: 0.6rem; }
.produit__badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; }

.produits-vide { color: var(--doux); font-style: italic; }

/* badges de catégorie — étiquettes plates, pas des pastilles */
.badge {
  display: inline-block; font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  border-radius: 0.35rem; padding: 0.2rem 0.5rem;
  background: var(--violet-clair); color: var(--violet-fonce);
}
.badge--broderie  { background: var(--violet-clair);     color: var(--violet-fonce); }
.badge--crochet    { background: var(--terracotta-clair); color: var(--terracotta); }
.badge--pancartes  { background: var(--sarcelle-clair);   color: var(--sarcelle); }
.badge--poupees    { background: var(--sauge-clair);       color: var(--sauge); }
.badge--stickers   { background: var(--moutarde-clair);   color: var(--moutarde); }
.badge--militant   { background: var(--rouge); color: #fff; }

/* ---------- fiche produit (fenêtre) ---------- */

body.fiche-ouverte { overflow: hidden; }

.fiche {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(30, 26, 40, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.fiche[hidden] { display: none; }
.fiche__cadre {
  background: var(--blanc); border-radius: 0.9rem;
  max-width: 48rem; width: 100%; max-height: 88vh; overflow-y: auto;
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
}
@media (max-width: 40rem) {
  .fiche__cadre { grid-template-columns: 1fr; }
}
.fiche__fermer {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; border: none;
  background: var(--blanc); box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--encre);
}
.fiche__photos { background: var(--violet-clair); }
.fiche__photos img { width: 100%; }
.fiche__sansphoto { color: var(--violet-fonce); font-weight: 600; padding: 3rem 1.5rem; text-align: center; }
.fiche__corps { padding: 1.75rem; }
.fiche__badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.8rem; }
.fiche__prix { font-weight: 700; font-size: 1.25rem; color: var(--violet-fonce); margin-bottom: 0.3rem; }
.fiche__statut { display: inline-block; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sauge); margin-bottom: 1rem; }
.fiche__statut--vendu { color: var(--rouge); }
.fiche__creatrice { color: var(--doux); font-style: italic; }
.fiche__cta a {
  display: inline-block; margin-top: 0.5rem;
  font-weight: 600; text-decoration: none; color: #fff;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--violet-fonce); border-radius: 0.6rem; padding: 0.75rem 1.4rem;
}
.fiche__cta a:hover { opacity: 0.85; }
.fiche__cta a[hidden] { display: none; }

/* ---------- pied de page ---------- */

.pied {
  background: var(--encre); color: #D9D5E0;
  padding: 3.5rem 1.5rem 2rem; margin-top: 3rem;
}
.pied h2 { color: #fff; }
.pied h3 {
  color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; margin-bottom: 0.6rem;
}
.pied__note { max-width: 36rem; color: #B9B2C6; margin-bottom: 2.25rem; }
.pied__grille {
  max-width: 68rem; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.pied a { color: #CFC8E8; font-weight: 600; }
.pied a:hover { color: #fff; }
.pied__liste { list-style: none; margin: 0; padding: 0; color: #B9B2C6; }
.pied__liste li { margin-bottom: 0.25rem; }
.pied__bas {
  max-width: 68rem; margin: 1.5rem auto 0;
  color: #857C99; font-size: 0.8rem;
}

/* ---------- accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .produit, .bouton { transition: none; }
}
