/* ==========================================================================
   Thème Classique : COMPOSANTS.
   Ces règles remplacent les attributs style="" qui étaient écrits dans les vues : une vue ne
   décide plus de l'apparence, elle nomme un composant, et c'est ici qu'on le dessine.
   Un thème enfant peut surcharger n'importe laquelle de ces classes sans toucher aux vues.
   Les seuls styles qui restent en ligne sont des DONNÉES venues du back-office
   (couleurs de catégorie), transmises par les variables --cat-fond et --cat-texte.
   ========================================================================== */

/* ---- Couleurs de catégorie (variables --cat-fond / --cat-texte posées par les vues) ---- */
.fond-categorie { background-color: var(--cat-fond); }
.bordure-categorie { border-color: var(--cat-fond); }
.texte-categorie { color: var(--cat-texte); }
.texte-categorie-important { color: var(--cat-texte) !important; }
.titre-categorie {
  color: var(--cat-texte);
  background-image: linear-gradient(to bottom, var(--marque-pale) 1%, var(--cat-fond), var(--cat-fond));
}
.titre-categorie-important {
  color: var(--cat-texte) !important;
  background-image: linear-gradient(to bottom, var(--marque-pale) 1%, var(--cat-fond), var(--cat-fond));
}
.bandeau-categorie {
  background-image: linear-gradient(to bottom, var(--marque-pale) 1%, var(--cat-fond), var(--cat-fond));
}

/* ---- Marque ---- */
.fond-marque { background: var(--marque); }
.titre-decouvrir {
  color: #ffffff;
  background-image: linear-gradient(to bottom, var(--marque-pale) 1%, var(--marque), var(--marque));
}

/* ---- Vignettes et images de produits ---- */
.vignette {
  height: auto; max-height: 160px; width: auto; max-width: 100%;
  padding: 4px; line-height: 1.428571429; background-color: #ffffff;
  border: 1px solid var(--vignette-bordure); border-radius: 4px;
}
.vignette-simple { height: auto; max-height: 160px; width: auto; max-width: 100%; }
.vignette-article {
  height: auto; max-height: 100%; width: auto; max-width: 250px;
  padding: 4px; line-height: 1.428571429; background-color: #ffffff;
  border: 1px solid var(--vignette-bordure); border-radius: 4px;
}
.vignette-mini {
  height: 100%; max-height: 71px; width: auto; max-width: 100%;
  padding: 4px; line-height: 1.428571429; background-color: #ffffff;
}
.vignette-resultat { max-height: 120px; width: auto; max-width: 120px; }
.image-famille { height: auto; max-width: 100%; }
.image-95 { width: 95%; }
.image-pleine { width: 100%; display: block; }
.image-zoom { height: 100%; max-height: 85vh; width: auto; max-width: 100%; }
.couverture-zoom { cursor: zoom-in; width: 100%; max-width: 100%; height: auto; display: block; }
.extrait-zoom { cursor: zoom-in; width: 100%; display: block; }
button.bouton-extrait:not(:disabled), .bouton-extrait {
  cursor: zoom-in; position: absolute; top: 8px; left: 16px;
  background-color: #ffffff; color: #000000; border: 0;
}
.video-fiche { width: auto; display: block; max-width: 100%; height: auto; max-height: 295px; }
.lecteur-video { width: 100%; height: 400px; }
.panier-vignette { width: 72px; height: auto; max-height: 108px; object-fit: contain; }
.panier-vignette-compacte { width: 44px; height: auto; max-height: 66px; object-fit: contain; }

/* ---- Blocs et tailles ---- */
.btn-titre { font-size: 1.2rem; }
.slogan-mobile { font-size: 1.2rem; }
.mention-fiche { height: 100%; font-size: 0.7em; }
.ligne-decouvrir { height: 210px; }
.ligne-decouvrir-texte { max-height: 210px; }
.article-texte { max-height: 350px; }
.titre-fidelite { height: 3em; }
.resume-resultat { height: 5em; }
textarea.form-control.champ-message, .champ-message { height: 20em; }
.carte-adresse { height: 240px; }
.actions-popup { gap: 0.5rem; }
.bouton-image { border: 0px; }
.modal-transparent { background: transparent; border: 0; }

/* ---- Menu principal : catégorie affichée ---- */
/* même couleur qu'au survol : celle de la catégorie, réglée dans le back-office (variable --menu-couleur posée par la vue) */
.navbar .navbar-nav > .nav-item > .nav-link.active {
  color: var(--menu-couleur, var(--accent));
  box-shadow: inset 0 -4px 0 var(--menu-couleur, var(--accent));
  background: rgba(255, 255, 255, .12);
  border-radius: 4px 4px 0 0;
}

/* ---- Sommaire des rubriques d'une catégorie (page catégorie) ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.rubriques-sommaire { padding: 12px 16px 4px; text-align: center; }
.rubriques-sommaire-titre { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 700; color: var(--marque-fonce); text-transform: uppercase; letter-spacing: .06em; }
.rubriques-sommaire-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rubriques-sommaire-liste a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 2px solid var(--marque); border-radius: 999px;
  background: #fff; color: var(--marque-fonce); font-weight: 700; font-size: .9rem; text-decoration: none;
}
.rubriques-sommaire-liste a:hover, .rubriques-sommaire-liste a:focus {
  background: var(--cat-fond, var(--marque)); color: var(--cat-texte, #fff); text-decoration: none;
}
.rubriques-sommaire-nombre {
  display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px;
  background: var(--marque-pale-2); color: var(--marque-fonce); font-size: .75rem; line-height: 1.6; text-align: center;
}
.rubriques-sommaire-liste a:hover .rubriques-sommaire-nombre, .rubriques-sommaire-liste a:focus .rubriques-sommaire-nombre { background: rgba(255, 255, 255, .85); color: #000; }
section[id^="rubrique_"] { scroll-margin-top: 12px; }
