/* theme-noel-jeu.css — le style propre de ce jeu dans le thème « Nuit de Noël » : Memory : turquoise et cartes retournées.
   Se charge après theme-noel.css. Ne change que le ciel, le motif de fond et l'emblème de l'accueil. */
:root {
  --noel-ciel: radial-gradient(70% 40% at 50% 100%, rgba(242,196,90,.2) 0%, transparent 70%), radial-gradient(130% 55% at 50% -8%, #14606a 0%, #0a333a 38%, #031418 100%);
  --noel-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cdefs%3E%3Cfilter id='e' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeDropShadow dx='0' dy='1.6' stdDeviation='.7' flood-color='%23000' flood-opacity='.75'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url%28%23e%29'%3E%3Crect x='14' y='10' width='22' height='30' rx='4' transform='rotate%28-12 25 25%29' stroke='%23f2c45a' stroke-opacity='.13' fill='none'/%3E%3C/g%3E%3C/svg%3E");
  --noel-motif-taille: 60px 60px;
  --noel-embleme: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3ClinearGradient id='o' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff3c0'/%3E%3Cstop offset='.45' stop-color='%23e7b52f'/%3E%3Cstop offset='1' stop-color='%237a4a08'/%3E%3C/linearGradient%3E%3Cfilter id='r' x='-10%25' y='-10%25' width='120%25' height='130%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='4' flood-color='%23000' flood-opacity='.7'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='0.3' filter='url%28%23r%29'%3E%3Cg fill='none' stroke='%235a3406' stroke-width='11' stroke-linecap='round' stroke-linejoin='round' transform='translate%280 3%29'%3E%3Crect x='70' y='70' width='100' height='140' rx='14' transform='rotate%28-10 120 140%29'/%3E%3Crect x='130' y='80' width='100' height='140' rx='14' transform='rotate%2810 180 150%29'/%3E%3Cpath d='M160 140l14 14 26-30'/%3E%3C/g%3E%3Cg fill='none' stroke='url%28%23o%29' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='70' y='70' width='100' height='140' rx='14' transform='rotate%28-10 120 140%29'/%3E%3Crect x='130' y='80' width='100' height='140' rx='14' transform='rotate%2810 180 150%29'/%3E%3Cpath d='M160 140l14 14 26-30'/%3E%3C/g%3E%3Cg fill='none' stroke='%23fff8dc' stroke-opacity='.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' transform='translate%28-1.5 -2%29'%3E%3Crect x='70' y='70' width='100' height='140' rx='14' transform='rotate%28-10 120 140%29'/%3E%3Crect x='130' y='80' width='100' height='140' rx='14' transform='rotate%2810 180 150%29'/%3E%3Cpath d='M160 140l14 14 26-30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Memory : texture des cartes d'après le modèle « Memory Match » (07/11), aux couleurs du partenaire.
   Le fond reste celui du jeu (nuit turquoise). ---------- */
.mc-intro__titre {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #fff0c8 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(2px 0 0 #062a30) drop-shadow(-2px 0 0 #062a30) drop-shadow(0 2px 0 #062a30) drop-shadow(0 -2px 0 #062a30) drop-shadow(0 4px 0 #062a30) drop-shadow(0 10px 16px rgba(0, 0, 0, .55));
}
/* dos des cartes : relief, losanges, bordure blanche biseautée, épaisseur ; logo du partenaire au centre */
.memory__face--dos {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, .09) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .09) 75%) 0 0 / 16px 16px,
    linear-gradient(45deg, rgba(255, 255, 255, .09) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .09) 75%) 8px 8px / 16px 16px,
    linear-gradient(160deg, color-mix(in srgb, var(--primaire) 62%, #fff) 0%, var(--primaire) 52%, color-mix(in srgb, var(--primaire) 72%, #000) 100%);
  border: 3px solid #fbf6ec; border-radius: 14px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 0, 0, .25), 0 5px 0 color-mix(in srgb, var(--primaire) 55%, #000), 0 11px 18px rgba(0, 0, 0, .55);
}
.memory__face--dos img {
  width: 54%; height: 54%; border-radius: 50%; padding: 5%; background: rgba(255, 255, 255, .22);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .35), 0 2px 0 rgba(255, 255, 255, .3); filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
}
/* carte retournée : blanche, en relief, liseré doré du partenaire */
.memory__face--avant {
  background: linear-gradient(180deg, #ffffff 0%, #fbf5e8 100%); border: 3px solid color-mix(in srgb, var(--secondaire) 50%, #fff); border-radius: 14px;
  box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 rgba(0, 0, 0, .08), 0 5px 0 color-mix(in srgb, var(--secondaire) 70%, #000), 0 11px 18px rgba(0, 0, 0, .45);
}
.memory__face--avant small { color: var(--primaire); }
.memory__carte--trouvee .memory__face--avant { opacity: 1; border-color: #ffd84a; box-shadow: inset 0 2px 0 #fff, 0 5px 0 #a8701a, 0 0 22px rgba(255, 216, 74, .65); }
.memory__coche { background: linear-gradient(180deg, #ffe27a, #e8a82a); color: var(--primaire); box-shadow: 0 2px 0 #a8701a; }
/* pastilles du haut : blanches, texte aux couleurs du partenaire */
.mc-barre__score, .mc-barre__info { background: linear-gradient(180deg, #ffffff, #f6efe0); color: var(--primaire); border: 2px solid #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--secondaire) 70%, #000), 0 8px 14px rgba(0, 0, 0, .45); }

/* 08/11 (v2) : les cartes deviennent des boules de Noël en verre (d'après le modèle « bonbons » de Leeroy).
   Dessin seulement : mêmes classes, aucun changement dans memory.js. La couleur de chaque boule dépend de la pâtisserie (sélecteur :has). */
.memory { isolation: isolate; gap: 10px; }
/* la grille remplit l'écran, sans cadre */
.memory__grille { --memory-gap: 10px 8px; gap: 10px 8px; padding: 0; background: none; border: 0; box-shadow: none;
  width: min(100%, 480px, calc((100dvh - 170px) * var(--memory-cols) / var(--memory-lignes) * .92)); perspective: 1000px; }
.memory__carte { --b: #7a2ae0; aspect-ratio: .92; min-height: 0; border-radius: 50%; }
/* le crochet doré de la boule (visible des deux côtés) */
.memory__carte::before { content: ""; position: absolute; left: 50%; top: 0; width: 26%; height: 14%; transform: translateX(-50%) translateZ(1px); z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 50% 18%, transparent 22%, #7a4a08 24% 32%, transparent 34%) center top / 60% 70% no-repeat,
              linear-gradient(90deg, #8a5a10, #fff1b0 45%, #c08a20 70%, #6a3a06) center bottom / 100% 62% no-repeat;
  border-radius: 4px 4px 6px 6px; filter: drop-shadow(0 2px 1px rgba(0,0,0,.4)); }
.memory__face { inset: 10% 2% 0 2%; border-radius: 50%; border: 0; overflow: hidden; }
/* les reflets du verre (au-dessus du contenu) */
.memory__face::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse 30% 18% at 30% 20%, rgba(255,255,255,.95) 0 40%, rgba(255,255,255,0) 100%),
              radial-gradient(circle 5% at 74% 76%, rgba(255,255,255,.7) 0 60%, transparent 100%),
              radial-gradient(circle at 50% 50%, transparent 62%, rgba(255,255,255,.18) 66%, transparent 70%); }
/* dos : boule rouge du partenaire, bande dorée et logo en médaillon */
.memory__face--dos { --b: #c8102e;
  background: linear-gradient(transparent 46%, #f2c45a 46% 49%, #fff1b0 49% 51%, #c08a20 51% 54%, transparent 54%),
              radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--b) 40%, #fff) 0%, var(--b) 40%, color-mix(in srgb, var(--b) 45%, #000) 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.28), inset -8px -12px 20px rgba(0,0,0,.4), 0 8px 14px rgba(0,0,0,.55); }
.memory__face--dos img { position: relative; z-index: 1; width: 46%; height: 46%; padding: 4%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff6d0, #f2c45a 60%, #a8700a);
  box-shadow: 0 0 0 3px #7a4a08, 0 4px 8px rgba(0,0,0,.45); filter: none; }
/* face : boule colorée, la pâtisserie dans une bulle plus claire */
.memory__face--avant { padding: 0; gap: 0;
  background: radial-gradient(circle at 50% 52%, rgba(255,255,255,.28) 0 36%, rgba(255,255,255,0) 50%),
              radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--b) 40%, #fff) 0%, var(--b) 42%, color-mix(in srgb, var(--b) 40%, #000) 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.3), inset -8px -12px 20px rgba(0,0,0,.35), 0 8px 14px rgba(0,0,0,.5); }
.memory__face--avant img { position: relative; z-index: 1; flex: none; width: 70%; height: 70%; margin-top: -16%; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
.memory__face--avant img[src$=".jpg"] { object-fit: cover; border-radius: 50%; width: 58%; height: 58%; box-shadow: 0 0 0 3px rgba(255,255,255,.7); }
.memory__face--avant small { position: absolute; z-index: 2; left: 12%; right: 12%; bottom: 9%; max-height: 2.3em; padding: 2px 4px; border-radius: 8px;
  background: rgba(10,10,30,.55); color: #fff; font-family: var(--police-titre); font-weight: 800; font-size: 8.5px; line-height: 1.05; text-align: center;
  white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.memory__coche { z-index: 4; top: 8%; right: 8%; }
/* une couleur par pâtisserie (les deux cartes d'une paire ont la même) */
.memory__carte:has(img[src*="buche"]) { --b: #8a4a1e; }
.memory__carte:has(img[src*="tourment"]) { --b: #7a2ae0; }
.memory__carte:has(img[src*="coffret"]) { --b: #e01b2e; }
.memory__carte:has(img[src*="macarons"]) { --b: #ff3fa0; }
.memory__carte:has(img[src*="coco"]) { --b: #1f8ae0; }
.memory__carte:has(img[src*="sorbet"]) { --b: #14b8c8; }
.memory__carte:has(img[src*="eclair"]) { --b: #f28a0a; }
.memory__carte:has(img[src*="passion"]) { --b: #78c81e; }
.memory__carte:has(img[src*="sapin"]) { --b: #128a4a; }
.memory__carte:has(img[src*="etoile"]) { --b: #e8b80a; }
.memory__carte:has(img[src*="religieuse"]) { --b: #4a3ae0; }
.memory__carte:has(img[src*="panier"]) { --b: #e8541e; }
.memory__face--dos { --b: #c8102e !important; }
/* paire trouvée : la boule s'illumine et lance un éclat doré */
.memory__carte--trouvee { transform: scale(1); }   /* 08/11 : plus de rotation du bouton (Safari), ce sont les faces qui tournent */
.memory__carte--trouvee .memory__face--avant { opacity: 1; box-shadow: inset 0 0 0 3px #ffe27a, inset -8px -12px 20px rgba(0,0,0,.3), 0 0 22px 4px color-mix(in srgb, var(--b) 70%, #fff), 0 8px 14px rgba(0,0,0,.4); }
.memory__carte--trouvee .memory__face--avant::before { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0 10%, rgba(255,226,122,.6) 30%, transparent 60%); animation: memory-eclat .7s ease-out forwards; }
@keyframes memory-eclat { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
/* boule retournée : petit rebond */
.memory__carte--visible:not(.memory__carte--trouvee) .memory__face--avant img { animation: memory-rebond .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes memory-rebond { from { transform: scale(.6); } to { transform: scale(1); } }
/* décor qui déborde : boules suspendues en haut, boules posées sur la neige en bas */
.memory::before, .memory::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; background: center / 100% 100% no-repeat; }
.memory::before { top: 0; height: min(22vh, 190px); background-image: url("visuels/deco-boules-haut.svg"); }
.memory::after { bottom: 0; height: min(16vh, 130px); background-image: url("visuels/deco-boules-bas.svg"); -webkit-mask: none; mask: none; }
.memory__aide { color: #fbf6ec; text-shadow: 0 2px 4px rgba(0,0,0,.7); opacity: 1; position: relative; z-index: 1; }
.memory__voile { background: rgba(3,20,24,.6); }
.memory__message { background: linear-gradient(#fffaf0, #f6e8cc); border: 3px solid #f2c45a; box-shadow: 0 0 0 3px #7a4a08, 0 10px 0 #4a2a06, 0 20px 36px rgba(0,0,0,.55); }
@media (prefers-reduced-motion: reduce) {
  .memory__carte--trouvee .memory__face--avant::before, .memory__carte--visible .memory__face--avant img { animation: none; }
  .memory__carte--trouvee .memory__face--avant::before { display: none; }
}
/* 08/11 (v3) : boules plus brillantes (verre laqué, double reflet, scintillement) */
.memory__face--dos, .memory__face--avant {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), inset 0 0 0 5px color-mix(in srgb, var(--b) 60%, #fff), inset -10px -14px 22px rgba(0,0,0,.45), inset 8px 10px 18px rgba(255,255,255,.35), 0 0 16px color-mix(in srgb, var(--b) 55%, transparent), 0 8px 14px rgba(0,0,0,.5); }
.memory__face--avant { background: radial-gradient(circle at 50% 52%, rgba(255,255,255,.34) 0 36%, rgba(255,255,255,0) 50%),
  radial-gradient(circle at 32% 26%, #fff 0 4%, color-mix(in srgb, var(--b) 30%, #fff) 12%, color-mix(in srgb, var(--b) 85%, #fff) 30%, var(--b) 52%, color-mix(in srgb, var(--b) 35%, #000) 100%); }
.memory__face--dos { background: linear-gradient(transparent 46%, #f2c45a 46% 49%, #fff1b0 49% 51%, #c08a20 51% 54%, transparent 54%),
  radial-gradient(circle at 32% 26%, #fff 0 4%, color-mix(in srgb, var(--b) 30%, #fff) 12%, color-mix(in srgb, var(--b) 85%, #fff) 30%, var(--b) 52%, color-mix(in srgb, var(--b) 35%, #000) 100%); }
.memory__face::after {
  background: radial-gradient(ellipse 32% 20% at 30% 20%, #fff 0 45%, rgba(255,255,255,0) 100%),
              radial-gradient(ellipse 10% 6% at 62% 14%, rgba(255,255,255,.9) 0 50%, transparent 100%),
              radial-gradient(circle 6% at 75% 76%, rgba(255,255,255,.85) 0 55%, transparent 100%),
              radial-gradient(ellipse 60% 18% at 50% 92%, color-mix(in srgb, var(--b) 40%, #fff) 0, transparent 100%),
              linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 48%, transparent 56%) -120% 0 / 300% 100% no-repeat;
  opacity: .95; animation: memory-brille 4.5s ease-in-out infinite; }
.memory__carte:nth-child(3n+1) .memory__face::after { animation-delay: -1.5s; }
.memory__carte:nth-child(3n+2) .memory__face::after { animation-delay: -3s; }
@keyframes memory-brille { 0%, 70% { background-position: 0 0, 0 0, 0 0, 0 0, -120% 0; } 100% { background-position: 0 0, 0 0, 0 0, 0 0, 220% 0; } }

/* 08/11 (v3) : zoom sur le produit quand une paire est trouvée */
.memory__zoom { --b: #7a2ae0; position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--b) 45%, transparent) 0%, rgba(3,10,20,.88) 62%); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.memory__zoom--visible { opacity: 1; pointer-events: auto; }
.memory__zoom-carte { position: relative; width: min(100%, 330px); padding: 150px 22px 22px; border-radius: 28px; text-align: center; color: #2a1a10;
  background: linear-gradient(#fffaf0, #f6e8cc); border: 3px solid #f2c45a; box-shadow: 0 0 0 3px #7a4a08, 0 10px 0 #4a2a06, 0 24px 44px rgba(0,0,0,.6); }
.memory__zoom-boule { position: absolute; left: 50%; top: -96px; width: 230px; height: 230px; margin-left: -115px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 50% 52%, rgba(255,255,255,.4) 0 38%, rgba(255,255,255,0) 52%),
    radial-gradient(circle at 32% 26%, #fff 0 4%, color-mix(in srgb, var(--b) 30%, #fff) 12%, color-mix(in srgb, var(--b) 85%, #fff) 30%, var(--b) 52%, color-mix(in srgb, var(--b) 35%, #000) 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.6), inset -14px -18px 30px rgba(0,0,0,.45), 0 0 40px color-mix(in srgb, var(--b) 70%, #fff), 0 14px 24px rgba(0,0,0,.5); }
.memory__zoom-boule::before { content: ""; position: absolute; left: 50%; top: -2px; width: 56px; height: 22px; margin-left: -28px; border-radius: 4px 4px 8px 8px; background: linear-gradient(90deg, #8a5a10, #fff1b0 45%, #c08a20 70%, #6a3a06); z-index: 2; }
.memory__zoom-boule::after { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 2; background: radial-gradient(ellipse 30% 18% at 30% 20%, #fff 0 45%, rgba(255,255,255,0) 100%), radial-gradient(circle 5% at 76% 76%, rgba(255,255,255,.8) 0 55%, transparent 100%); }
.memory__zoom-boule img { position: relative; z-index: 1; width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,0,0,.4)); }
.memory__zoom-boule img[src$=".jpg"], .memory__zoom-boule img[src$=".jpeg"], .memory__zoom-boule img[src$=".png"], .memory__zoom-boule img[src$=".webp"] { object-fit: cover; border-radius: 50%; width: 74%; height: 74%; box-shadow: 0 0 0 4px rgba(255,255,255,.75); }
.memory__zoom-nom { margin: 0 0 6px; font-family: var(--police-titre); font-weight: 900; font-size: 24px; line-height: 1.1; color: var(--primaire); }
.memory__zoom-desc { margin: 0 0 10px; font-size: 15px; line-height: 1.35; }
.memory__zoom-prix { display: inline-block; margin-bottom: 14px; padding: 4px 16px; border-radius: 99px; font-family: var(--police-titre); font-weight: 900; font-size: 20px; color: #fff; background: linear-gradient(#e8283e, #9a0a1c); box-shadow: 0 3px 0 #5a0410; }
.memory__zoom-prix[hidden] { display: none; }
.memory__zoom-ok { display: block; width: 100%; }
.memory__zoom--visible .memory__zoom-carte { animation: memory-zoom .5s cubic-bezier(.2,1.4,.4,1); }
.memory__zoom--visible .memory__zoom-boule { animation: memory-zoom-boule .6s cubic-bezier(.2,1.5,.4,1); }
@keyframes memory-zoom { from { transform: scale(.5) translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes memory-zoom-boule { from { transform: scale(.3) rotate(-20deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .memory__face::after, .memory__zoom--visible .memory__zoom-carte, .memory__zoom--visible .memory__zoom-boule { animation: none; } }

/* 08/11 (v4) : vraie photo du produit dans le zoom (cartes[].photo) — posée sur un disque blanc, sans recadrage */
.memory__zoom--photo .memory__zoom-boule img { width: 76%; height: 76%; object-fit: contain; border-radius: 50%; padding: 8%; box-sizing: border-box;
  background: radial-gradient(circle at 50% 40%, #fff 0 60%, #f2ece2 100%); box-shadow: 0 0 0 4px rgba(255,255,255,.8), 0 6px 14px rgba(0,0,0,.35); filter: none; }

/* 08/11 (v7, Claude Code) : cartes en images entières, d'après la maquette de Leeroy faite dans ChatGPT (amélioration visuelle du v6).
   Réglages : game.cartesEntieres = true, game.dos = image du dos, cartes[].photo = la boule en grand pour le zoom,
   cartes[].couleur = couleur de la boule (halo du zoom), game.fond = image de fond 9:16, game.entete = image du titre. */
.memory--images { padding-top: calc(124px + env(safe-area-inset-top)); gap: 10px;
  background-repeat: no-repeat; background-position: center top, center; background-size: 100% auto, 100% 100%; }   /* images posées en ligne par memory.js */
@media (max-width: 520px) { .memory--images { background-size: auto min(560px, 70dvh), 100% 100%; } }   /* téléphone : la scène du haut reste bien visible */
.memory--images::before, .memory--images::after { display: none; }                                   /* le fond fait le décor */
.memory__entete { display: none; }
.memory--images .memory__entete { display: block; position: absolute; left: 50%; top: calc(56px + env(safe-area-inset-top)); width: min(62%, 240px); transform: translateX(-50%); filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)); pointer-events: none; z-index: 1; }
.memory--images .memory__grille { width: min(100%, 420px, calc((100dvh - 250px) * var(--memory-cols) / var(--memory-lignes) * .853)); gap: 6px 6px; }
/* la face est une image entière ; le dos aussi quand dos est une image (memory--dos-image), sinon c'est la boule rouge dessinée ci-dessus
   avec le logo du partenaire en médaillon (Leeroy, 08/11 : « là où c'est écrit Monsieur Clic, il y aura le logo de l'entreprise ») */
.memory--images .memory__carte { aspect-ratio: .959; border-radius: 0; }
.memory--images.memory--dos-image .memory__carte { aspect-ratio: .853; }
.memory--images.memory--dos-image .memory__carte::before, .memory--images .memory__carte--visible::before, .memory--images .memory__carte--trouvee::before { display: none; }   /* le crochet dessiné n'apparaît que sur le dos dessiné */
.memory--images .memory__face--avant, .memory--images.memory--dos-image .memory__face--dos { inset: 0; border-radius: 0; background: none !important; box-shadow: none !important; overflow: visible; }
.memory--images .memory__face--avant::after, .memory--images.memory--dos-image .memory__face--dos::after { display: none; }
.memory--images .memory__face--avant img, .memory--images.memory--dos-image .memory__face--dos img { position: static; width: 100%; height: 100%; margin: 0; padding: 0; object-fit: contain; background: none; border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.memory--images .memory__face small { display: none; }
.memory--images:not(.memory--dos-image) .memory__face--dos { inset: 11% 7% 3% 7%; }          /* la boule dessinée a la taille de celle des images */
.memory--images:not(.memory--dos-image) .memory__face--dos img { width: 52%; height: 52%; }
.memory--images .memory__carte--trouvee .memory__face--avant::before { inset: 12% 6% 2%; }
.memory--images .memory__coche { top: 8%; right: 2%; width: 22px; height: 22px; font-size: 14px; background: linear-gradient(#5fd97a, #138a3a); color: #fff; box-shadow: 0 0 0 2px #fff, 0 2px 4px rgba(0,0,0,.45); }
.memory--images .memory__aide { padding: 6px 16px; border-radius: 99px; background: linear-gradient(#fffaf0, #f3e4c4); color: #5a2a06; border: 2px solid #f2c45a; box-shadow: 0 4px 0 #7a4a08, 0 8px 14px rgba(0,0,0,.45); text-shadow: none; font-weight: 700; font-size: 14px; max-width: 42ch; }
.memory--images .memory__zoom-boule { background: none; box-shadow: none; overflow: visible; }
.memory--images .memory__zoom-boule::before, .memory--images .memory__zoom-boule::after { display: none; }
.memory--images .memory__zoom-boule img, .memory--images .memory__zoom--photo .memory__zoom-boule img { width: 100%; height: 100%; object-fit: contain; padding: 0; background: none; border-radius: 0; box-shadow: none; filter: drop-shadow(0 12px 16px rgba(0,0,0,.55)); }
.memory--images .memory__zoom-carte { padding-top: 140px; }
.memory--images .memory__zoom-prix::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .4em; vertical-align: -.12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 4h2.3l2.3 10.2a1.8 1.8 0 0 0 1.8 1.4h8.6a1.8 1.8 0 0 0 1.7-1.3L21.5 7.5H6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.7' fill='%23fff'/%3E%3Ccircle cx='17.5' cy='19.5' r='1.7' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; }
.memory--images .memory__zoom-ok { background: linear-gradient(#4fcf6a, #0f7a2e); color: #fff; border: 2px solid #f2c45a; box-shadow: 0 5px 0 #0a4a1c, 0 10px 18px rgba(0,0,0,.4); text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.memory--images .memory__zoom-ok::after { content: " ›"; font-weight: 900; }

/* 08/11 (v7) : l'en-tête de la maquette ChatGPT : Monsieur Clic à gauche, le logo Monsieur Clic à droite, le titre en dessous */
.memory--images { padding-top: calc(228px + env(safe-area-inset-top)); }
.memory--images::before { display: block; content: ""; position: absolute; left: 2%; top: calc(50px + env(safe-area-inset-top)); width: 34%; height: 118px; z-index: 1; pointer-events: none;
  background: url("theme-noel/pere-noel-buste.webp") left bottom / auto 100% no-repeat; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.memory--images::after { display: block; content: ""; position: absolute; left: auto; right: 3%; top: calc(62px + env(safe-area-inset-top)); width: 34%; height: 70px; z-index: 1; pointer-events: none;
  background: url("theme-noel/logo-monsieur-clic.webp") right center / contain no-repeat; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); bottom: auto; }   /* left: auto : sinon le left: 0 hérité le posait sur Monsieur Clic (Leeroy, 08/11) */
.memory--images .memory__entete { top: calc(150px + env(safe-area-inset-top)); width: min(58%, 230px); }
.memory--images .memory__grille { width: min(100%, 420px, calc((100dvh - 300px) * var(--memory-cols) / var(--memory-lignes) * .959)); }
@media (max-height: 700px) { .memory--images { padding-top: calc(190px + env(safe-area-inset-top)); } .memory--images::before, .memory--images::after { height: 90px; top: calc(52px + env(safe-area-inset-top)); } .memory--images .memory__entete { top: calc(128px + env(safe-area-inset-top)); width: min(50%, 200px); } }

/* 09/11 (Leeroy : « mets le fond des Palmistes aussi pour le mémo ») : la place des Palmistes la nuit derrière les boules (la démo n'a plus de `fond` propre) */
.mc-ecran--jeu { background: url("theme-noel/palmistes-nuit.webp") 50% 100% / cover no-repeat #041232; }
.memory { background: transparent; }
