/* mydollsuniverse.com : direction artistique.
   Registre demande par Gwendal le 17/09/2026 : celui de mapoupeelol.fr. Fond blanc, sections gris tres
   clair, encre bleu nuit, accent magenta, titres de section en capitales magenta, heros colore avec titre
   blanc en gras, boutons en pilule, grilles de cartes image avec legende dessous, bouton en pilule a droite
   de chaque titre de section.
   Ce qui reste du cadrage adulte : le ton de la copie, la structure de guide et les tableaux de donnees.
   Le visuel attire, le texte reste un guide d'achat pour adultes. */

:root {
  --encre: #1A1A2E;
  --encre-douce: #4A4A68;
  --estompe: #8B8AA0;
  --filet: #E4E3EC;
  --blanc: #FFFFFF;
  --creux: #F9F9FB;
  --rose: #E91E8C;
  --rose-fonce: #C4116F;
  --rose-pale: #FDEBF5;
  --violet: #7B3FE4;
  --degrade: linear-gradient(120deg, #E91E8C 0%, #A32BC8 52%, #7B3FE4 100%);
  --pilule: 999px;
  --rayon: 16px;
  --ombre: 0 2px 10px rgba(26, 26, 46, 0.06);
  --ombre-haute: 0 10px 28px rgba(26, 26, 46, 0.12);
  --large: 1180px;
  --mesure: 70ch;
}

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

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre-douce);
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Figtree, -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  color: var(--encre);
  margin: 0;
  line-height: 1.15;
}
h1 { font-size: clamp(1.9rem, 4.4vw, 2.65rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 800; color: var(--rose); text-transform: uppercase; letter-spacing: 0.005em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--rose); text-underline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
strong, b { color: var(--encre); font-weight: 700; }

.enveloppe { max-width: var(--large); margin: 0 auto; padding-inline: 20px; }
.mesure { max-width: var(--mesure); }
.estompe { color: var(--estompe); }
/* Un lien editorial isole reste une cible de 44 px. */
.lien-bloc { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.libelle { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose); margin: 0 0 0.5rem; }

/* ---------- en-tete ---------- */
.tete { background: var(--blanc); border-bottom: 1px solid var(--filet); position: sticky; top: 0; z-index: 40; }
.tete-int { display: flex; align-items: center; gap: 1.4rem; min-height: 70px; position: relative; }
.marque {
  display: inline-flex; align-items: center; gap: 0.32em; min-height: 44px;
  font-family: Figtree, -apple-system, system-ui, sans-serif; font-size: 1.28rem; font-weight: 800;
  color: var(--encre); text-decoration: none; white-space: nowrap;
}
.marque span { color: var(--rose); }
.marque img { width: 36px; height: 36px; margin-right: 0.18em; flex: none; }
.nav { display: flex; gap: 1.2rem; margin-left: auto; flex-wrap: wrap; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--encre); text-decoration: none; font-size: 0.92rem; font-weight: 600;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--rose); border-bottom-color: var(--rose); }
.bascule { display: none; }

/* ---------- boutons en pilule ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  background: var(--rose); color: var(--blanc); text-decoration: none;
  font-size: 0.95rem; font-weight: 700; padding: 0.72rem 1.4rem;
  border: 2px solid var(--rose); border-radius: var(--pilule); min-height: 46px;
  box-shadow: 0 4px 14px rgba(233, 30, 140, 0.24); transition: transform .12s ease, box-shadow .12s ease;
}
.bouton:hover { background: var(--rose-fonce); border-color: var(--rose-fonce); transform: translateY(-1px);
                box-shadow: 0 8px 20px rgba(233, 30, 140, 0.3); }
.bouton-creux { background: var(--blanc); color: var(--encre); border-color: var(--filet); box-shadow: none; }
.bouton-creux:hover { background: var(--rose-pale); color: var(--rose); border-color: var(--rose); transform: none; box-shadow: none; }
.bouton-petit { padding: 0.5rem 1rem; font-size: 0.86rem; min-height: 44px; }
.bouton-clair { background: var(--blanc); color: var(--rose); border-color: var(--blanc); }
.bouton-clair:hover { background: var(--rose-pale); color: var(--rose-fonce); border-color: var(--rose-pale); }

/* ---------- heros colore ---------- */
.hero { background: var(--degrade); color: #FFF; padding: 3.2rem 0 3.4rem; }
.hero h1 { color: #FFF; max-width: 24ch; }
.hero .chapeau { color: rgba(255,255,255,.92); font-size: 1.08rem; max-width: 58ch; margin-top: 1rem; }
.hero .libelle { color: rgba(255,255,255,.85); }
.hero-int { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 2.6rem; align-items: center; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.5rem; }
/* Collage de vrais visuels de listings sur le degrade : aucune scene inventee, aucune interface simulee. */
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.hero-collage figure {
  margin: 0; background: var(--blanc); border-radius: var(--rayon); padding: 0.8rem;
  box-shadow: var(--ombre-haute); display: grid; gap: 0.5rem;
}
.hero-collage figure:nth-child(1) { transform: rotate(-1.6deg); }
.hero-collage figure:nth-child(2) { transform: rotate(1.4deg) translateY(12px); }
.hero-collage figure:nth-child(3) { transform: rotate(1.2deg) translateY(-8px); }
.hero-collage figure:nth-child(4) { transform: rotate(-1.2deg) translateY(4px); }
.hero-collage .cadre { height: 128px; overflow: hidden; }
/* Motif fiable pour un cadre de hauteur fixe : la boite vaut exactement le cadre et l'image se
   contient dedans. `max-height: 100%` ne contraignait pas (constate le 17/09 : image de 146 px
   dans un cadre de 108 px, legende chevauchee en mobile). */
.hero-collage img { height: 100%; width: 100%; object-fit: contain; }
.hero-collage figcaption { font-size: 0.74rem; font-weight: 700; color: var(--encre); text-align: center;
                           line-height: 1.3; }
.hero-collage .prix { color: var(--rose); }

/* ---------- sections ---------- */
.section { padding: 3.2rem 0; }
.section.creuse { background: var(--creux); }
.section-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.9rem; flex-wrap: wrap; }
.section-tete > div { flex: 1 1 22rem; }
.section-tete p { margin: 0.7rem 0 0; max-width: 62ch; }

/* ---------- bandeau des gammes ---------- */
.bandeau { background: var(--encre); padding: 1.1rem 0; }
.bandeau ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; margin: 0; padding: 0; justify-content: center; }
.bandeau a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.05rem;
  font-family: Figtree, -apple-system, system-ui, sans-serif; font-weight: 700; font-size: 0.95rem;
  color: #FFF; text-decoration: none; border: 2px solid rgba(255,255,255,.22); border-radius: var(--pilule);
}
.bandeau a:hover { background: var(--rose); border-color: var(--rose); }

/* ---------- cartes de selection ---------- */
.selections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.selection {
  background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon);
  box-shadow: var(--ombre); display: flex; flex-direction: column; overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease;
}
.selection:hover { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
/* Hauteur imposee : les visuels des listings ont des proportions variables. Sans hauteur fixe, chaque
   carte prend celle de son image et la grille se desaligne (constate le 17/09 : 292, 380 et 529 px). */
.selection .visuel { height: 260px; background: var(--creux); padding: 1rem; overflow: hidden; }
.selection .visuel img { height: 100%; width: 100%; object-fit: contain; }
.selection .corps { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; gap: 0.55rem; }
.selection .note { flex: 1; margin: 0; font-size: 0.93rem; }
.selection .prix { font-family: Figtree, sans-serif; font-weight: 800; color: var(--encre); font-size: 1.05rem; }
.selection .bouton { margin-top: 0.3rem; }

/* ---------- grille de vignettes de serie, legende dessous ---------- */
.grille-series { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.3rem; }
.vignette-serie { text-decoration: none; display: grid; gap: 0.7rem; }
.vignette-serie .cadre {
  display: block; height: 190px; background: var(--creux); border: 1px solid var(--filet);
  border-radius: var(--rayon); padding: 0.9rem; overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease;
}
.vignette-serie:hover .cadre { transform: translateY(-3px); box-shadow: var(--ombre-haute); border-color: var(--rose); }
.vignette-serie img { height: 100%; width: 100%; object-fit: contain; }
.vignette-serie .nom { font-family: Figtree, sans-serif; font-weight: 700; color: var(--encre); text-align: center; font-size: 0.97rem; }
.vignette-serie .meta { text-align: center; font-size: 0.84rem; color: var(--estompe); margin-top: -0.4rem; }

/* ---------- tableaux ---------- */
.cadre-table { overflow-x: auto; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
caption { text-align: left; padding: 1rem 1.1rem; color: var(--estompe); font-size: 0.86rem; border-bottom: 1px solid var(--filet); }
th, td { text-align: left; padding: 0.82rem 1.1rem; border-bottom: 1px solid var(--filet); vertical-align: middle; }
thead th { background: var(--creux); font-family: Figtree, sans-serif; font-size: 0.72rem; letter-spacing: 0.08em;
           text-transform: uppercase; color: var(--rose); font-weight: 800; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--rose-pale); }
td.nombre, th.nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.action { text-align: right; white-space: nowrap; }
/* Un lien dans une cellule reste une cible de 44 px : c'est la deuxieme fois que ce defaut apparait
   (deja releve sur mon-miniverse, ou les liens du pied faisaient 20 px). */
td a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
td a:hover { text-decoration: underline; }

/* ---------- comparaison de tailles ---------- */
.tailles { display: grid; gap: 0.6rem; }
.taille-ligne { display: grid; grid-template-columns: 13rem 1fr 5rem; align-items: center; gap: 1rem; }
.taille-ligne .nom { font-weight: 700; color: var(--encre); font-size: 0.93rem; }
.taille-barre { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--pilule); height: 26px; position: relative; overflow: hidden; }
.taille-barre span { position: absolute; inset: 0 auto 0 0; background: var(--degrade); border-radius: var(--pilule); }
.taille-ligne .cm { text-align: right; font-family: Figtree, sans-serif; font-weight: 800; color: var(--encre); font-variant-numeric: tabular-nums; }

/* ---------- fiche produit ---------- */
.fiche { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 2.6rem; padding: 2.4rem 0 1rem; }
.galerie-principale { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.5rem; }
.galerie-principale img { width: 100%; max-height: 440px; object-fit: contain; }
.vignettes { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 0.55rem; margin-top: 0.6rem; }
.vignettes img { width: 100%; background: var(--blanc); border: 1px solid var(--filet); border-radius: 10px;
                 padding: 0.35rem; aspect-ratio: 1; object-fit: contain; }
.bloc-achat { background: var(--creux); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1.4rem; margin: 1.4rem 0; }
.bloc-achat .montant { font-family: Figtree, sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--encre); line-height: 1; }
.bloc-achat .dispo { font-size: 0.9rem; margin-top: 0.4rem; }
.bloc-achat .actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.horodatage { font-size: 0.77rem; color: var(--estompe); margin: 0.8rem 0 0; line-height: 1.45; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.carte { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.3rem; }
.carte.oui { border-top: 4px solid var(--rose); }
.carte.non { border-top: 4px solid var(--violet); }
.carte ul { margin: 0.6rem 0 0; padding-left: 1.15rem; font-size: 0.93rem; }
.carte li + li { margin-top: 0.35rem; }
.carte .bouton { margin-top: 1.1rem; }
.avert { background: var(--rose-pale); border: 1px solid #F7C8E2; border-radius: var(--rayon); padding: 1.1rem 1.25rem; font-size: 0.93rem; }
.avert strong { display: block; margin-bottom: 0.3rem; color: var(--rose-fonce); }

/* ---------- galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 0.9rem; }
.galerie img { width: 100%; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon);
               padding: 0.7rem; aspect-ratio: 1; object-fit: contain; }

/* ---------- barre collante ---------- */
.barre-collante { display: none; }

/* ---------- pied ---------- */
.pied { background: var(--encre); color: #B9B8CA; margin-top: 0; padding: 3rem 0 2rem; font-size: 0.92rem; }
.pied-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
.pied h3 { color: #FFF; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied a { color: #B9B8CA; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.pied a:hover { color: #FFF; }
.pied .bas { border-top: 1px solid #2D2C44; margin-top: 2rem; padding-top: 1.3rem; color: #8B8AA0; font-size: 0.84rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-int { grid-template-columns: 1fr; gap: 2rem; }
  .selections { grid-template-columns: 1fr; }
  .fiche { grid-template-columns: 1fr; gap: 1.8rem; padding-top: 1.6rem; }
  .duo { grid-template-columns: 1fr; }
  .pied-cols { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.ouvert {
    display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--blanc); border-bottom: 1px solid var(--filet); padding: 0.4rem 20px 1rem;
    box-shadow: var(--ombre-haute);
  }
  .nav.ouvert a { min-height: 48px; border-bottom: 1px solid var(--filet); border-left: 3px solid transparent; padding-left: 0.2rem; }
  .bascule {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    min-height: 44px; min-width: 44px; padding: 0 1rem; cursor: pointer;
    background: var(--blanc); color: var(--encre); border: 2px solid var(--filet); border-radius: var(--pilule);
    font-family: Figtree, sans-serif; font-weight: 700; font-size: 0.9rem;
  }
  .taille-ligne { grid-template-columns: 8.5rem 1fr 3.6rem; gap: 0.6rem; }
  .taille-ligne .nom { font-size: 0.84rem; }
  .hero-collage .cadre { height: 104px; }
  .barre-collante {
    display: flex; align-items: center; gap: 0.8rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--blanc); border-top: 1px solid var(--filet); box-shadow: 0 -4px 18px rgba(26,26,46,.1);
    padding: 0.7rem 20px; padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
  }
  .barre-collante .montant { font-family: Figtree, sans-serif; font-weight: 800; color: var(--encre); font-variant-numeric: tabular-nums; }
  .barre-collante .bouton { margin-left: auto; }
  body.a-barre { padding-bottom: 5.6rem; }
}
@media (max-width: 560px) {
  .pied-cols { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
  .grille-series { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .vignette-serie .cadre { height: 150px; }
}

/* ia:visuels (29/09/2026) */
.ia-visuel { margin: 1.8rem 0 0; max-width: 960px; }
.ia-visuel img { display: block; width: 100%; height: auto; border-radius: var(--rayon); box-shadow: var(--ombre-haute); }
.ia-visuel figcaption { font-size: 0.78rem; color: rgba(255,255,255,.85); margin-top: 0.5rem; }
.ia-visuel-accueil { margin: 0; }
.ia-visuel-accueil img { display: block; width: 100%; height: auto; border-radius: var(--rayon); box-shadow: var(--ombre-haute); }
/* /ia:visuels */
