/* Dates courtes de la fiche (partials/dates_courtes.php, demande de Manu du 10/11/2026). Chargée seulement sur une
   fiche qui en a. Charte du site (site.css) : bordeaux, orange, soleil, crème ; la remise est un soleil incliné comme
   la pastille des cartes, l'accroche un bon de réduction (bord en pointillé). */

.dc-accroche{display:flex;align-items:center;gap:14px;margin:-2px 0 0;padding:10px 16px 10px 10px;border-radius:20px;border:2px dashed rgba(226,101,0,.55);background:var(--creme);color:var(--texte);text-decoration:none;transition:border-color .15s,background-color .15s}
.dc-accroche:hover{border-color:var(--orange);background:var(--creme-2)}
.dc-accroche:focus-visible{outline:3px solid var(--bordeaux);outline-offset:3px}
.dc-soleil{flex:none;width:66px;height:66px;border-radius:50%;background:var(--soleil);color:var(--sur-orange);display:flex;flex-direction:column;align-items:center;justify-content:center;font:800 19px/1 var(--titre);transform:rotate(-10deg);box-shadow:0 8px 16px -8px rgba(58,36,34,.55);transition:transform .2s}
.dc-soleil small{font:700 10px/1.1 var(--corps);margin-bottom:2px}
.dc-accroche:hover .dc-soleil{transform:rotate(-2deg) scale(1.04)}
.dc-accroche-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.dc-accroche-txt strong{font:800 17px/1.2 var(--titre);color:var(--bordeaux)}
.dc-accroche-txt span{font-size:14px;line-height:1.35;color:var(--texte-3)}
.dc-chevron{flex:none;width:10px;height:10px;border-top:3px solid var(--bordeaux);border-right:3px solid var(--bordeaux);transform:rotate(45deg);margin-right:4px}

/* Fenêtre : ouverte par :target sans JavaScript, par la classe .ouvert avec (datescourtes.js pose .dc-js). */
.dc-fenetre{display:none;position:fixed;inset:0;z-index:55;padding:16px;align-items:center;justify-content:center}
.dc-fenetre:not(.dc-js):target,.dc-fenetre.ouvert{display:flex}
/* Règle à part : un navigateur sans :has() ignorerait toute la liste de sélecteurs. */
.dc-fenetre:not(.dc-js):has(.dc-v:target){display:flex}
.dc-fond{position:absolute;inset:0;background:rgba(58,36,34,.55)}
.dc-boite{position:relative;width:min(640px,100%);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;background:var(--blanc);border-radius:22px;padding:22px 24px 24px;box-shadow:0 24px 60px -20px rgba(58,36,34,.6);animation:dc-entree .2s ease-out}
@keyframes dc-entree{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.dc-tete{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dc-tete h2{margin:0;font:800 26px/1.15 var(--titre);color:var(--bordeaux)}
.dc-tete h2:focus{outline:none}
.dc-fermer{flex:none;position:relative;width:42px;height:42px;border-radius:50%;background:var(--creme)}
.dc-fermer span::before,.dc-fermer span::after{content:"";position:absolute;left:12px;right:12px;top:20px;height:3px;border-radius:2px;background:var(--bordeaux);transform:rotate(45deg)}
.dc-fermer span::after{transform:rotate(-45deg)}
.dc-fermer:hover{background:var(--creme-2)}
.dc-fermer:focus-visible{outline:3px solid var(--bordeaux);outline-offset:2px}
.dc-intro{margin:8px 0 16px;font-size:15px;line-height:1.45;color:var(--texte-3)}
/* Texte qui rassure (Manu, 13/11/2026) : discret, au ton de la fiche, avant la liste. */
.dc-rassure{margin:0 0 16px;padding:12px 14px;border-radius:14px;background:var(--creme);font-size:14px;line-height:1.45;color:var(--texte-3)}
.dc-rassure p{margin:0}.dc-rassure p + p{margin-top:6px}
.dc-rassure-titre{font:800 15px/1.25 var(--titre);color:var(--bordeaux)}
.dc-rassure strong{color:var(--texte)}
.dc-rassure a{color:var(--bordeaux);font-weight:700}
.dc-liste{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.dc-v{display:grid;grid-template-columns:44px 1fr auto;grid-template-areas:"img info prix" ". ajout ajout";gap:10px 14px;align-items:center;padding:14px 16px;border-radius:18px;border:2px solid #F1DCC4}
/* Version choisie depuis la rubrique DLU (#dlu-{id}) : bord orange, fond crème. */
.dc-v:target,.dc-v.dc-choisie{border-color:var(--orange);background:var(--creme);scroll-margin:12px}
.dc-v img{grid-area:img;width:44px;height:60px;object-fit:contain;align-self:start}
.dc-info{grid-area:info;min-width:0;display:flex;flex-direction:column;gap:2px}
.dc-info strong{font-size:16px;line-height:1.25}
.dc-date{font-size:14px;color:var(--texte-3)}
.dc-passee{color:var(--bordeaux);font-weight:700}
.dc-stock{font-size:13px;font-weight:700;color:#2E7D4F}
.dc-prix{grid-area:prix;margin:0;display:flex;flex-direction:column;align-items:flex-end;gap:3px;text-align:right}
.dc-pct{background:var(--orange);color:var(--sur-orange);font-weight:700;border-radius:999px;padding:3px 9px;font-size:13px}
.dc-prix s{font-size:14px;color:var(--texte-2)}
.dc-prix strong{font:800 24px/1 var(--titre);color:var(--bordeaux)}
.dc-prix strong small{font-size:14px}
.dc-pack{font-size:12px;color:var(--texte-3)}
.dc-ajout{grid-area:ajout;margin:0;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.dc-ajout .stepper{height:46px}
.dc-ajout .stepper button{width:42px;height:46px}
.dc-ajout .stepper input{width:46px;height:46px}
.dc-btn{min-width:120px}
body.dc-ouvert{overflow:hidden}
/* Boutons flottants du site (haut de page, accessibilité, signaler un bug) : au-dessus de tout, masqués le temps de la fenêtre. */
body.dc-ouvert .a11y-haut,body.dc-ouvert .a11y-btn,body.dc-ouvert .bug-languette{visibility:hidden}

@media (max-width:520px){
  .dc-accroche{gap:12px;padding-right:12px}
  .dc-soleil{width:58px;height:58px;font-size:17px}
  .dc-boite{padding:18px 16px 20px;border-radius:20px}
  .dc-tete h2{font-size:22px}
  .dc-v{grid-template-columns:44px 1fr;grid-template-areas:"img info" "prix prix" "ajout ajout";padding:12px}
  .dc-prix{flex-direction:row;flex-wrap:wrap;align-items:baseline;justify-content:flex-start;gap:8px;text-align:left}
  .dc-ajout{justify-content:space-between}
  .dc-btn{flex:1}
}
@media (prefers-reduced-motion:reduce){.dc-boite{animation:none}.dc-soleil,.dc-accroche{transition:none}}

