/* =========================================================
   motivivi — détails retenus sur l'habillage d'origine (chargée après style.css)
   Blanc légèrement cassé, grands titres en Fraunces, motif feuille,
   catégories en orange sur les cartes, pastille flottante, « Par envie »,
   rebond du panier, barre d'achat sur téléphone, pied de page bleu nuit.
   Pas d'arrondis : les angles restent ceux du site.
   ========================================================= */

:root {
  --blanc: #FFFCF7;      /* blanc qui tend à peine vers le crème */
  --neige: #F8F3EA;
  --gris-clair: #EFE9DF;
  --filet: #E6DFD3;
  --titres: 'Fraunces', Georgia, serif;
}
body { background: var(--blanc); }

/* ---------- grands titres déjà présents : style Fraunces ---------- */
.titre-geant, .ouverture-titre, .bandeau-titre, .repense h2, .vitrine-principale h1 {
  font-family: var(--titres);
  font-variation-settings: 'SOFT' 100, 'opsz' 96;
  font-weight: 650;
}

/* ---------- motif feuille du logo ---------- */
.mention::before, .ligne-titre h2::after, .envies-entete .mention::before {
  --f: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 22C11 15 12 7 19 2c2 6 0 14-6 20z'/%3E%3Cpath d='M12 21C9 15 4 12 1 12c1 5 5 9 11 9z'/%3E%3C/svg%3E");
}
.mention::before { content: ''; display: inline-block; width: 13px; height: 13px; margin-right: 8px; vertical-align: -1px; background: var(--orange); -webkit-mask: var(--f) center / contain no-repeat; mask: var(--f) center / contain no-repeat; }
.ligne-titre h2::after { content: ''; display: inline-block; width: .55em; height: .55em; margin-left: .25em; vertical-align: .5em; background: var(--orange); -webkit-mask: var(--f) center / contain no-repeat; mask: var(--f) center / contain no-repeat; }

/* ---------- catégorie en orange sur les cartes et les fiches ---------- */
.carte-univers, .fiche-univers { color: var(--orange-fonce); font-weight: 600; }

/* ---------- pastille orange flottante (accueil) ---------- */
.vitrine-principale { position: relative; }
.pastille-flottante {
  position: absolute; top: 28px; right: 28px; z-index: 2;
  display: grid; place-items: center; width: 124px; height: 124px; padding: 16px; border-radius: 50%;
  background: var(--orange); color: var(--nuit); text-align: center;
  font-family: var(--titres); font-variation-settings: 'SOFT' 100; font-weight: 700; font-size: 15px; line-height: 1.12;
  box-shadow: 0 16px 30px -16px rgba(11, 34, 80, .55);
  transform: rotate(-10deg); animation: flotte 5s ease-in-out infinite;
}
@keyframes flotte { 0%, 100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-8px); } }

/* ---------- « Par envie » ---------- */
.envies { padding: 8px 0; }
.envies .section-titre-centre { text-align: center; max-width: 720px; margin: 0 auto; }
.envies .section-titre-centre p:last-child { color: var(--gris-texte); font-size: 17px; margin-top: 10px; }
.envies-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.envie { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 14px 40px 14px 14px; background: var(--neige); border: 1px solid transparent; transition: border-color .25s, transform .25s var(--courbe); }
.envie:hover { border-color: var(--orange); transform: translateY(-2px); }
.envie img { width: 96px; height: 96px; object-fit: cover; }
.envie strong { display: block; font-size: 17px; font-weight: 600; color: var(--nuit); line-height: 1.25; }
.envie span { font-size: 14px; color: var(--gris-texte); }
.envie::after { content: '→'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--orange); font-weight: 700; transition: right .25s var(--courbe); }
.envie:hover::after { right: 12px; }

/* ---------- le bouton panier rebondit à chaque ajout ---------- */
.panier-bouton.rebond { animation: rebond .6s var(--courbe); }
@keyframes rebond { 0% { transform: scale(1); } 30% { transform: scale(1.12) rotate(-4deg); } 60% { transform: scale(.96) rotate(2deg); } 100% { transform: none; } }

/* ---------- barre d'achat sur téléphone ---------- */
.barre-achat { display: none; }
@media (max-width: 900px) {
  .fiche-page .barre-achat {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--gouttiere) calc(10px + env(safe-area-inset-bottom));
    background: var(--nuit); color: var(--blanc);
    box-shadow: 0 -10px 30px -18px rgba(11, 34, 80, .6);
    transform: translateY(110%); transition: transform .45s var(--courbe);
  }
  .fiche-page.barre-visible .barre-achat { transform: none; }
  .barre-achat strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .barre-achat .bouton { min-height: 46px; padding: 0 22px; }
  .fiche-page .pied { padding-bottom: 72px; }
  .envies-grille { grid-template-columns: 1fr; }
  .pastille-flottante { top: 12px; right: 12px; width: 76px; height: 76px; font-size: 10.5px; padding: 9px; }
  .vitrine-principale .vitrine-texte h1 { padding-right: 64px; }
}

/* ---------- pied de page bleu nuit ---------- */
.pied { background: var(--nuit); color: var(--blanc); border-top: 0; }
.pied .atouts { border-color: rgba(255, 252, 247, .14); }
.pied .atout { border-color: rgba(255, 252, 247, .14); }
.pied .atout svg { stroke: var(--orange); }
.pied .atout strong { color: var(--blanc); }
.pied .atout p, .pied-marque p, .pied-contact li, .pied-note, .pied-bas { color: rgba(255, 252, 247, .72); }
.pied-titre { color: var(--orange); }
.pied-bas, .pied-paiement-bloc { border-color: rgba(255, 252, 247, .14); }
.pied-marque .logo img { height: 58px; }
.pied-langues .langue { border-color: rgba(255, 252, 247, .3); }
.pied-langues .langue.actif { background: var(--orange); border-color: var(--orange); color: var(--nuit); }

@media (prefers-reduced-motion: reduce) {
  .pastille-flottante, .panier-bouton.rebond { animation: none; }
}

/* ---------- cartes : « Ajouter au panier » passe à l'orange au survol ---------- */
.carte .achat:hover, .carte .achat:focus-visible { background: var(--orange); border-color: var(--orange); color: var(--nuit); }

/* ---------- lien vers la page Chien depuis l'animalerie ---------- */
.rayon-lien-page { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--orange); background: var(--orange); color: var(--nuit); font-size: 14px; font-weight: 600; transition: transform .2s; }
.rayon-lien-page:hover { transform: translateY(-1px); }
.rayon-lien-page small { font-weight: 400; opacity: .7; }
@media (max-width: 900px) { .rayon-lien-page { padding: 7px 12px; font-size: 13px; border-radius: 999px; } }

/* ---------- filtres des rayons ajoutés (alimentation, vêtements, sous-catégories Chien) ---------- */
.grille-filtrable.filtre-alimentation .carte:not(.cat-alimentation),
.grille-filtrable.filtre-vetements .carte:not(.cat-vetements),
.grille-filtrable.filtre-ch-croquettes .carte:not(.cat-ch-croquettes),
.grille-filtrable.filtre-ch-boites .carte:not(.cat-ch-boites),
.grille-filtrable.filtre-ch-barf .carte:not(.cat-ch-barf),
.grille-filtrable.filtre-ch-friandises .carte:not(.cat-ch-friandises),
.grille-filtrable.filtre-ch-complements .carte:not(.cat-ch-complements),
.grille-filtrable.filtre-ch-dents .carte:not(.cat-ch-dents),
.grille-filtrable.filtre-ch-bols .carte:not(.cat-ch-bols),
.grille-filtrable.filtre-ch-paniers .carte:not(.cat-ch-paniers),
.grille-filtrable.filtre-ch-couvertures .carte:not(.cat-ch-couvertures),
.grille-filtrable.filtre-ch-niches .carte:not(.cat-ch-niches),
.grille-filtrable.filtre-ch-barrieres .carte:not(.cat-ch-barrieres),
.grille-filtrable.filtre-ch-laisses .carte:not(.cat-ch-laisses),
.grille-filtrable.filtre-ch-vetements .carte:not(.cat-ch-vetements),
.grille-filtrable.filtre-ch-transport .carte:not(.cat-ch-transport),
.grille-filtrable.filtre-ch-jouets .carte:not(.cat-ch-jouets),
.grille-filtrable.filtre-ch-intelligence .carte:not(.cat-ch-intelligence),
.grille-filtrable.filtre-ch-dressage .carte:not(.cat-ch-dressage),
.grille-filtrable.filtre-ch-sport .carte:not(.cat-ch-sport),
.grille-filtrable.filtre-ch-proprete .carte:not(.cat-ch-proprete),
.grille-filtrable.filtre-ch-ramasse .carte:not(.cat-ch-ramasse),
.grille-filtrable.filtre-ch-nettoyage .carte:not(.cat-ch-nettoyage),
.grille-filtrable.filtre-ch-toilettage .carte:not(.cat-ch-toilettage),
.grille-filtrable.filtre-ch-antistress .carte:not(.cat-ch-antistress),
.grille-filtrable.filtre-ch-connectes .carte:not(.cat-ch-connectes),
.grille-filtrable.filtre-ch-toilettage .carte:not(.cat-ch-toilettage) { display: none; }

/* ---------- page Chien : familles en haut, sous-catégories groupées dans le volet ---------- */
.grille-filtrable.filtre-chg-nourriture .carte:not(.cat-chg-nourriture),
.grille-filtrable.filtre-chg-maison .carte:not(.cat-chg-maison),
.grille-filtrable.filtre-chg-promenade .carte:not(.cat-chg-promenade),
.grille-filtrable.filtre-chg-jeux .carte:not(.cat-chg-jeux),
.grille-filtrable.filtre-chg-hygiene .carte:not(.cat-chg-hygiene) { display: none; }
.filtre-familles .filtre-famille { width: 100%; margin: 14px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-fonce); }
.filtre-familles .filtre-famille:first-child { margin-top: 0; }

/* =========================================================
   Rayon Chien : accueil par familles (vignettes) + pages de sous-catégorie
   ========================================================= */
.rayon-familles { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.rayon-familles a { padding: 10px 16px; border: 1px solid var(--filet); font-size: 14px; font-weight: 500; background: var(--blanc); transition: border-color .2s; }
.rayon-familles a:hover { border-color: var(--nuit); }
.rayon-familles .rayon-familles-tous { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
.rayon-familles small { opacity: .7; font-weight: 400; }
.rayon-accueil { padding: 8px var(--gouttiere) 64px; }
.rayon-famille { padding-top: 40px; scroll-margin-top: 120px; }
.rayon-famille-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--filet); }
.rayon-famille-tete h2 { font-family: var(--titres); font-variation-settings: 'SOFT' 100; font-weight: 650; font-size: clamp(24px, 3vw, 32px); color: var(--nuit); }
.rayon-famille-tete span { color: var(--gris-texte); font-size: 14px; }
.tuiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tuile { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 14px; background: var(--blanc); border: 1px solid var(--filet); transition: border-color .2s, transform .2s var(--courbe); }
@media (hover: hover) { .tuile:hover { border-color: var(--orange); transform: translateY(-2px); } }
.tuile-image { display: block; aspect-ratio: 1; background: #fff; margin-bottom: 8px; overflow: hidden; }
.tuile-image img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.tuile strong { font-size: 15px; font-weight: 600; color: var(--nuit); line-height: 1.25; }
.tuile small { font-size: 13px; color: var(--gris-texte); }

/* navigation du rayon (colonne de gauche) */
.nav-rayon { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--filet); }
.nav-rayon-titre { display: block; font-family: var(--titres); font-variation-settings: 'SOFT' 100; font-weight: 650; font-size: 22px; color: var(--nuit); margin-bottom: 6px; }
.nav-rayon-famille { margin: 16px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-fonce); }
.nav-rayon ul { list-style: none; padding: 0; margin: 0; }
.nav-rayon li a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0 5px 10px; border-left: 2px solid transparent; font-size: 15px; color: var(--encre); }
.nav-rayon li a:hover { color: var(--orange-fonce); }
.nav-rayon li a.actif { border-left-color: var(--orange); font-weight: 600; color: var(--nuit); }
.nav-rayon small { color: var(--gris-texte); font-size: 13px; }
.nav-rayon-tous { display: flex; justify-content: space-between; margin-top: 16px; font-weight: 600; font-size: 15px; color: var(--nuit); text-decoration: underline; text-underline-offset: 3px; }

/* en-tête des pages de sous-catégorie */
.zone-rayon { padding-top: 24px; }
.rayon-entete { margin-bottom: 20px; }
.rayon-entete h1 { font-family: var(--titres); font-variation-settings: 'SOFT' 100; font-weight: 650; font-size: clamp(30px, 4vw, 44px); color: var(--nuit); margin: 10px 0 4px; }
.rayon-famille-nom a { color: var(--orange-fonce); font-weight: 600; font-size: 14px; }
.rayon-soeurs { display: none; }

@media (max-width: 1100px) { .tuiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) {
  .tuiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tuile strong { font-size: 14px; }
  .rayon-familles { flex-wrap: nowrap; overflow-x: auto; margin: 18px calc(-1 * var(--gouttiere)) 0; padding: 0 var(--gouttiere) 4px; scrollbar-width: none; }
  .rayon-familles::-webkit-scrollbar, .rayon-soeurs::-webkit-scrollbar { display: none; }
  .rayon-familles a { flex: none; border-radius: 999px; padding: 8px 14px; font-size: 13px; }
  .rayon-famille { padding-top: 28px; }
  /* sous-catégories de la même famille : bandeau défilant sous le titre */
  .rayon-soeurs { display: flex; gap: 8px; overflow-x: auto; margin: 14px calc(-1 * var(--gouttiere)) 0; padding: 0 var(--gouttiere) 4px; scrollbar-width: none; }
  .rayon-soeurs a { flex: none; padding: 8px 14px; border: 1px solid var(--filet); border-radius: 999px; font-size: 13px; background: var(--blanc); }
  .rayon-soeurs a.actif { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
}

/* ---------- Animalerie : choix de l'animal en vignettes ---------- */
.rayons-animaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.rayons-animaux .rayon-lien, .rayons-animaux .rayon-lien-page { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 8px 12px; border: 1px solid var(--filet); background: var(--blanc); color: var(--nuit); font-size: 14px; font-weight: 600; border-radius: 0; }
.rayons-animaux .tuile-image { width: 100%; margin-bottom: 6px; }
.rayons-animaux .rayon-lien.actif { background: var(--blanc); color: var(--nuit); border-color: var(--nuit); box-shadow: inset 0 0 0 1px var(--nuit); }
.rayons-animaux .rayon-lien-page { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.rayons-animaux .rayon-lien-page::after { content: '→'; font-size: 12px; color: var(--orange-fonce); margin-top: 2px; }
@media (max-width: 900px) {
  .rayons-animaux { display: flex; overflow-x: auto; gap: 10px; margin: 0 calc(-1 * var(--gouttiere)); padding: 0 var(--gouttiere) 4px; scrollbar-width: none; }
  .rayons-animaux > a { flex: 0 0 116px; border-radius: 0 !important; padding: 6px 6px 10px !important; font-size: 13px !important; }
}

/* =========================================================
   Animalerie : « Choisissez votre animal » (cartes illustrées)
   ========================================================= */
.rayons-cache { display: none; }
.choix-animal { padding-top: 8px; padding-bottom: 32px; }
.choix-animal h2 { font-family: var(--titres); font-variation-settings: 'SOFT' 100; font-weight: 650; font-size: clamp(24px, 3vw, 34px); color: var(--nuit); margin-bottom: 22px; }
.animaux { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.animal { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.animal img { width: 100%; height: auto; aspect-ratio: 700 / 467; transition: transform .35s var(--courbe); }
@media (hover: hover) { .animal:hover img { transform: translateY(-6px) scale(1.02); } }
.animal strong { font-size: 19px; font-weight: 600; color: var(--nuit); }
.animal:hover strong { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .animaux { display: flex; overflow-x: auto; gap: 12px; margin: 0 calc(-1 * var(--gouttiere)); padding: 0 var(--gouttiere) 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .animaux::-webkit-scrollbar { display: none; }
  .animal { flex: 0 0 38%; scroll-snap-align: start; }
  .animal strong { font-size: 16px; }
}

/* =========================================================
   Rayon Chien : bande défilante des sous-catégories
   ========================================================= */
.rayon-tete h1 { font-family: var(--titres); font-variation-settings: 'SOFT' 100; font-weight: 650; font-size: clamp(34px, 5vw, 56px); color: var(--nuit); margin: 12px 0 6px; }
.rayon-tete .intro { color: var(--gris-texte); font-size: 17px; }
.rayon-tete-compacte .rayon-entete h1 { margin-bottom: 0; }
.bande { position: relative; margin-top: 26px; }
.bande-piste { display: flex; gap: 26px; overflow-x: auto; overscroll-behavior-x: contain; padding: 4px 2px 10px; scrollbar-width: none; }
.bande-piste::-webkit-scrollbar { display: none; }
.bande-groupe { flex: none; display: flex; flex-direction: column; gap: 10px; }
.bande-groupe > p { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-fonce); padding-left: 2px; }
.bande-liste { display: flex; gap: 14px; }
.bande-item { flex: none; width: 122px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; scroll-snap-align: start; }
.bande-image { display: block; width: 122px; height: 122px; border-radius: 22px; background: var(--fond); overflow: hidden; transition: transform .3s var(--courbe), box-shadow .3s; }
.bande-image img { width: 100%; height: 100%; object-fit: contain; padding: 12px; mix-blend-mode: multiply; }
@media (hover: hover) { .bande-item:hover .bande-image { transform: translateY(-4px); box-shadow: 0 14px 24px -16px rgba(11, 34, 80, .45); } }
.bande-nom { font-size: 14px; font-weight: 500; line-height: 1.25; color: var(--nuit); }
.bande-item.actif .bande-image { box-shadow: 0 0 0 3px var(--nuit); }
.bande-item.actif .bande-nom { font-weight: 700; }
.bande-fleche { position: absolute; top: 76px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blanc); border: 1px solid var(--filet); box-shadow: 0 8px 20px -10px rgba(11, 34, 80, .4); transition: opacity .2s; }
.bande-fleche svg { width: 20px; height: 20px; fill: none; stroke: var(--nuit); stroke-width: 2; }
.bande-fleche.precedente { left: -18px; }
.bande-fleche.suivante { right: -18px; }
.bande-fleche:disabled { opacity: 0; pointer-events: none; }
.rayon-sous-titre { font-family: var(--titres); font-variation-settings: 'SOFT' 100; font-weight: 650; font-size: 26px; color: var(--nuit); margin-bottom: 14px; }
@media (max-width: 900px) {
  .bande-fleche { display: none; }
  .bande-piste { margin: 0 calc(-1 * var(--gouttiere)); padding: 4px var(--gouttiere) 10px; gap: 20px; }
  .bande-item { width: 92px; }
  .bande-image { width: 92px; height: 92px; border-radius: 18px; }
  .bande-nom { font-size: 12.5px; }
}

/* ---------- page d'un animal : vignettes des catégories (modèle Zooplus) ---------- */
.rayon-grille { padding-bottom: 72px; }
.tuiles-cat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; margin-top: 8px; }
.tuile-cat { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.tuile-cat-image { display: block; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #DDF3CF; }
.tuile-cat-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--courbe); }
@media (hover: hover) { .tuile-cat:hover .tuile-cat-image img { transform: scale(1.05); } }
.tuile-cat strong { font-size: 18px; font-weight: 600; color: var(--nuit); line-height: 1.3; }
.tuile-cat:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.bande-image { background: #DDF3CF; }
.bande-image img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
@media (max-width: 1100px) { .tuiles-cat { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .tuiles-cat { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .tuile-cat strong { font-size: 15px; }
  .tuile-cat-image { border-radius: 14px; }
}

/* ---------- contour de sélection orange, pas de flash bleu au toucher ---------- */
a, button, [role="button"], .onglet, .rayon-lien, input, select { -webkit-tap-highlight-color: transparent; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 0; }
.bande-item.actif .bande-image { box-shadow: 0 0 0 3px var(--orange); }

/* filtre marque : liste défilante si elle est longue */
.filtre-marques { max-height: 260px; overflow-y: auto; padding-right: 6px; }
