/* Ginette Days : compléments hors design system Oxygen (animations clés, préférences de mouvement, survol tactile).
   Le design system (couleurs, typos, composants gd-*) est enregistré dans Oxygen > Sélecteurs et Variables. */
@keyframes gd-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes gd-descend { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes gd-revele { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes gd-pose { from { opacity: 0; transform: rotate(-9deg) scale(1.25); } to { opacity: 1; transform: rotate(-1deg); } }
@keyframes gd-monte { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }
@keyframes gd-modale-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .gd-ouverture .gd-bandeau-offre { animation: gd-descend 0.3s var(--gd-ease) both; }
  .gd-ouverture .gd-hero__visuel { animation: gd-revele var(--gd-duree-zoom) var(--gd-ease) 0.3s both; }
  .gd-ouverture .gd-hero__titre .gd-etiquette--remise { animation: gd-pose 0.6s var(--gd-ease) 0.9s both; }
  .gd-ouverture .gd-hero__ligne { animation: gd-monte var(--gd-duree-apparition) var(--gd-ease) 1.1s both; }
  .gd-ouverture .gd-hero__ligne:nth-child(3) { animation-delay: calc(1.1s + var(--gd-decalage)); }
  .gd-ouverture .gd-hero__ligne:nth-child(4) { animation-delay: calc(1.1s + 2 * var(--gd-decalage)); }
  .gd-ouverture .gd-hero__suite { animation: gd-monte var(--gd-duree-apparition) var(--gd-ease) 1.5s both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gd-defilant__piste { animation: none; }
  .gd-anime [data-gd-apparition] { opacity: 1; transform: none; transition: none; }
  .gd-btn, .gd-btn__fleche, .gd-faq__question::after { transition: none; }
  .gd-avis__piste { scroll-behavior: auto; }
  .gd-tuile { animation: none; }
  .gd-tuile__fiche, .gd-tuile__img { transition: none; }
  .gd-modale[open] { animation: none; }
}
/* Écrans tactiles : pas de survol « collant ». La fiche produit ne s'ouvre et ne se ferme qu'avec le bouton + / ×,
   les flèches et le compteur du carrousel restent visibles (masqués quand la fiche est ouverte). */
@media (hover: none) {
  .gd-patchwork .gd-tuile:not(.est-ouverte):hover .gd-tuile__fiche,
  .gd-patchwork .gd-tuile:not(.est-ouverte):focus-within .gd-tuile__fiche { transform: translateY(101%); }
  .gd-patchwork .gd-tuile:not(.est-ouverte):hover .gd-tuile__ouvrir,
  .gd-patchwork .gd-tuile:not(.est-ouverte):focus-within .gd-tuile__ouvrir,
  .gd-patchwork .gd-tuile:not(.est-ouverte):hover .gd-tuile__img { transform: none; }
  .gd-patchwork .gd-tuile .gd-tuile__fleche,
  .gd-patchwork .gd-tuile .gd-tuile__compteur { opacity: 1; }
  .gd-patchwork .gd-tuile.est-ouverte .gd-tuile__fleche,
  .gd-patchwork .gd-tuile.est-ouverte .gd-tuile__compteur { opacity: 0; pointer-events: none; }
}
/* Bouton de gestion des cookies (NRV / tarteaucitron) au-dessus de la barre d'actions mobile. */
@media (max-width: 1119px) { #tarteaucitronIcon.tarteaucitronIconBottomRight { bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; } }
/* Popup cookies tarteaucitron (NRV Tools la limite à 70vw sous 690 px) : pleine largeur moins 16 px de marge sur mobile (< 768 px). */
@media (max-width: 767px) { html body #tarteaucitronRoot div#tarteaucitronAlertBig { width: calc(100vw - 32px) !important; max-width: calc(100vw - 32px) !important; min-width: 0 !important; } }

/* Fiche produit en panneau bas sur mobile (< 768 px), ouverte par le bouton « + » (ginette.js, feuille()). */
.gd-feuille { box-sizing: border-box; position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: min(88dvh, 680px); margin: 0; padding: 26px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: 28px 28px 0 0; background: var(--creme); color: var(--texte); font-family: var(--font-texte); overflow: auto; overscroll-behavior: contain; }
.gd-feuille::backdrop { background: rgba(16, 39, 60, 0.55); backdrop-filter: blur(3px); }
.gd-feuille::before { content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--filet); }
.gd-feuille__fermer { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--blanc); color: var(--canard); font: 400 28px/1 var(--font-texte); cursor: pointer; }
.gd-feuille__fermer:focus-visible, .gd-feuille .gd-tuile__btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus); }
.gd-feuille__tete { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; padding-right: 50px; }
.gd-feuille__vignette { display: block; width: 84px; height: 84px; object-fit: cover; border-radius: 36px 14px 14px 14px; }
.gd-feuille__titres { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.gd-feuille__haut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.gd-feuille .gd-feuille__logo { height: 14px; }
.gd-feuille .gd-etiquette--remise { font-size: 16px; padding: 5px 8px 3px; }
.gd-feuille__modele { margin: 0; font: 700 19px/24px var(--font-texte); color: var(--texte); overflow-wrap: anywhere; }
.gd-feuille__details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--filet); font-size: 14px; line-height: 20px; }
.gd-feuille__details dt { color: var(--texte-doux); }
.gd-feuille__details dd { margin: 0; }
.gd-feuille__prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin-top: 14px; font-size: 14px; line-height: 20px; color: var(--texte-doux); }
.gd-feuille__prix s { font-size: 15px; }
.gd-feuille__prix strong { color: var(--offre); font-size: 24px; line-height: 28px; }
.gd-feuille__prix span:empty { display: none; }
.gd-feuille__actions { display: grid; gap: 10px; margin-top: 18px; }
.gd-feuille .gd-tuile__btn { width: 100%; min-height: 48px; padding: 10px 16px; font-size: 14px; line-height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .gd-feuille[open] { animation: gd-feuille-in 0.35s var(--gd-ease) both; }
  .gd-feuille[open]::backdrop { animation: gd-fondu 0.35s var(--gd-ease) both; }
}
@keyframes gd-feuille-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes gd-fondu { from { opacity: 0; } to { opacity: 1; } }

/* Bandeau de crédit NRV (injecté par nrv-codes/includes/hooks.php, styles de base dans codes/css/prefooter.css) : version Ginette. */
#nrv-link-injected.nrv-link-injected { box-sizing: border-box; gap: 10px 28px; padding: 22px max(var(--space-16), env(safe-area-inset-left, 0px)); border-top: 1px solid var(--filet); background-color: var(--creme); font-family: var(--font-texte); }
#nrv-link-injected .nrv-link_lien-texte { margin: 0; color: var(--texte-doux); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--trait); border-radius: 4px; transition: color var(--gd-duree-survol) var(--gd-ease), text-decoration-color var(--gd-duree-survol) var(--gd-ease); }
#nrv-link-injected .nrv-link_texte { color: inherit; font-size: 13px; line-height: 19px; letter-spacing: 0.02em; }
#nrv-link-injected .nrv-link_lien-texte:hover { color: var(--canard); text-decoration-color: var(--canard); }
#nrv-link-injected .nrv-link_lien-logo { color: var(--canard); border-radius: 4px; opacity: 0.85; transition: opacity var(--gd-duree-survol) var(--gd-ease); }
#nrv-link-injected .nrv-link_lien-logo:hover { opacity: 1; }
#nrv-link-injected .nrv-link_lien-logo svg { height: 26px; fill: currentColor; }
#nrv-link-injected a:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus); }
@media (max-width: 480px) { #nrv-link-injected.nrv-link-injected { padding-block: 20px; } }

/* Boutons « Appeler » : shortcode NRV [NumeroCache] (1er clic = affiche le numéro, 2e clic = appel), habillé en .gd-btn.
   Le shortcode garde nos classes gd-btn* ; ici on aligne sa structure interne (overlay, icône, numéro) sur les boutons Ginette. */
.oxy-shortcode:has(> .NumeroCache) { display: contents; }
.gd-btn.NumeroCache { flex-direction: row !important; text-decoration: none; transition: background-color var(--gd-duree-survol) var(--gd-ease), color var(--gd-duree-survol) var(--gd-ease), box-shadow var(--gd-duree-survol) var(--gd-ease); }
.gd-btn.NumeroCache .phone-overlay { gap: inherit; }
.gd-btn.NumeroCache .phone-overlay > span { gap: inherit; }
.gd-btn.NumeroCache .PhoneIcon { width: 18px; height: 18px; margin: 0; }
.gd-btn.NumeroCache .phone-number-real { white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.gd-btn.NumeroCache.clicked .phone-number-real { position: relative; }
.gd-entete__actions .gd-btn.NumeroCache, .gd-pied .gd-btn.NumeroCache { gap: 6px; }
/* Barre mobile : icône au-dessus du libellé, comme « Itinéraire » ; le numéro dévoilé prend plus de place. */
.gd-barre-mobile .gd-barre-mobile__icone.NumeroCache { justify-content: center; }
.gd-barre-mobile__icone.NumeroCache .phone-overlay > span { flex-direction: column; gap: 2px; }
.gd-barre-mobile__icone.NumeroCache .PhoneIcon { width: 20px; height: 20px; }
.gd-barre-mobile__icone.NumeroCache .phone-number-real { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0; }
html .gd-barre-mobile:has(.NumeroCache.clicked) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.45fr) minmax(0, 0.8fr); }

/* Ordinateur : fiche refermée au clic sur × malgré le survol (classe posée par ginette.js, retirée quand la souris ou le focus quitte la tuile). */
.gd-patchwork .gd-tuile.est-fermee .gd-tuile__fiche { transform: translateY(101%) !important; }
.gd-patchwork .gd-tuile.est-fermee .gd-tuile__ouvrir { transform: none !important; }
@media (hover: hover) { .gd-patchwork .gd-tuile:not(.est-fermee):focus-within .gd-tuile__ouvrir { transform: rotate(45deg); } }

/* Photos d'un produit en plein écran sur mobile (ginette.js, visionneuse()) : bouton « Voir les photos » du panneau bas
   et tap sur la photo d'une tuile. Défilement natif au doigt (scroll-snap), flèches et compteur. */
.gd-feuille__photos { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 2px 0 0; padding: 8px 16px; border: 1.5px solid var(--canard); border-radius: 999px; background: transparent; color: var(--canard); font: 700 14px/18px var(--font-texte); cursor: pointer; transition: background-color var(--gd-duree-survol) var(--gd-ease), color var(--gd-duree-survol) var(--gd-ease); }
.gd-feuille__photos svg { flex: none; }
.gd-feuille__photos:active { background: var(--canard); color: var(--blanc); }
.gd-feuille__photos:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus); }
@media (max-width: 767px) { .gd-patchwork .gd-tuile:not(.gd-tuile--texte) .gd-tuile__img { cursor: zoom-in; } }
html:has(dialog.gd-visionneuse[open]) { overflow: hidden; }
.gd-visionneuse { box-sizing: border-box; position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(29, 29, 27, 0.72); -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%); color: var(--blanc); font-family: var(--font-texte); overflow: hidden; }
.gd-visionneuse[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.gd-visionneuse::backdrop { background: transparent; }
.gd-visionneuse__haut { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px 20px; }
.gd-visionneuse__titre { margin: 0; color: var(--blanc); font: 700 16px/22px var(--font-texte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-visionneuse__compteur { color: var(--texte-inverse-doux); font: 700 13px/18px var(--font-texte); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.gd-visionneuse__fermer, .gd-visionneuse__fleche { display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--creme); color: var(--canard); font-family: var(--font-texte); font-weight: 400; line-height: 1; cursor: pointer; }
.gd-visionneuse__fermer { width: 44px; height: 44px; font-size: 28px; }
.gd-visionneuse__piste { display: flex; margin: 0; padding: 0 0 env(safe-area-inset-bottom, 0px); list-style: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gd-visionneuse__piste::-webkit-scrollbar { display: none; }
.gd-visionneuse__photo { box-sizing: border-box; flex: 0 0 100%; display: grid; padding: 4px 0 84px; scroll-snap-align: center; scroll-snap-stop: always; }
.gd-visionneuse__photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gd-visionneuse__fleche { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; padding-bottom: 3px; font-size: 30px; transition: opacity var(--gd-duree-survol) var(--gd-ease); }
.gd-visionneuse__fleche--g { left: calc(50% - 60px); }
.gd-visionneuse__fleche--d { left: calc(50% + 12px); }
.gd-visionneuse__fleche:disabled { opacity: 0.35; cursor: default; }
.gd-visionneuse__fermer:focus-visible, .gd-visionneuse__fleche:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus); }
.gd-visionneuse.est-unique .gd-visionneuse__fleche, .gd-visionneuse.est-unique .gd-visionneuse__compteur { display: none; }
.gd-visionneuse.est-unique .gd-visionneuse__photo { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: no-preference) { .gd-visionneuse[open] { animation: gd-fondu 0.25s var(--gd-ease) both; } }

/* Prix du produit sous le titre de la visionneuse mobile (ginette.js, prixVisionneuse(), ajout du 03/12/2026, demande SEA) :
   etiquette « −20 % » en tampon, prix barre, gros prix, pastille d'economie ou mention. 2e rang de la barre du haut,
   sur toute la largeur ; la photo se reduit d'autant (rang minmax(0, 1fr)). */
@keyframes gd-tampon { from { opacity: 0; transform: rotate(-16deg) scale(1.7); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes gd-surgit { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
.gd-visionneuse__prix { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; margin-top: -4px; }
.gd-visionneuse__prix:empty { display: none; }
.gd-visionneuse__tampon { display: inline-block; padding: 6px 8px 4px; background: var(--offre); color: var(--sur-offre); font: 400 20px/1 var(--font-affiche); font-synthesis: none; text-transform: uppercase; white-space: nowrap; transform: rotate(-4deg); }
.gd-visionneuse__avant { color: var(--texte-inverse-doux); font-size: 14px; line-height: 18px; white-space: nowrap; }
.gd-visionneuse__des { margin-right: -6px; color: var(--texte-inverse-doux); font-size: 14px; line-height: 18px; }
.gd-visionneuse__montant { color: var(--blanc); font: 700 26px/28px var(--font-texte); white-space: nowrap; }
.gd-visionneuse__pastille { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--creme); color: var(--canard); font: 700 13px/16px var(--font-texte); }
.gd-visionneuse__asterisque { flex: none; width: 13px; height: 13px; background: var(--rose); -webkit-mask: url(assets/asterisque.svg) center / contain no-repeat; mask: url(assets/asterisque.svg) center / contain no-repeat; }
.gd-visionneuse__lu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .gd-visionneuse__prix.est-pose .gd-visionneuse__tampon { animation: gd-tampon 0.5s var(--gd-ease) 0.15s both; }
  .gd-visionneuse__prix.est-pose .gd-visionneuse__avant, .gd-visionneuse__prix.est-pose .gd-visionneuse__montant, .gd-visionneuse__prix.est-pose .gd-visionneuse__des { animation: gd-surgit 0.4s var(--gd-ease) 0.1s both; }
  .gd-visionneuse__prix.est-pose .gd-visionneuse__pastille { animation: gd-surgit 0.4s var(--gd-ease) 0.3s both; }
}
