/**
 * Les opérations (ventes flash) : le grand encart de l'accueil, le bandeau et l'encart de
 * commande de la fiche partenaire. Noir, or et ivoire, comme le reste du club.
 */

.sp-op-une, .sp-op-bandeau, .sp-op-fiche, .sp-op-popup { --op-noir: #0d0c0b; --op-or: #e9c36e; --op-or-fonce: #8a6a2c; --op-ivoire: #fbf6ef; --op-gris: #6b655d; font-family: 'Montserrat', Arial, sans-serif; box-sizing: border-box; }
.sp-op-une *, .sp-op-bandeau *, .sp-op-fiche *, .sp-op-popup * { box-sizing: border-box; }

.sp-op-sur { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--op-or); font: 700 13px/1.3 'Montserrat', Arial, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; }
.sp-op-etoile { font-size: 14px; letter-spacing: 0; }

.sp-op-prix { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.sp-op-prix-vente { font: 600 46px/1 'Cinzel', Georgia, serif; color: var(--op-or); }
.sp-op-prix-barre { font-size: 22px; color: rgba(246, 239, 227, 0.6); }
.sp-op-prix-barre s { text-decoration-thickness: 2px; }
.sp-op-prix-unite { font-size: 14px; color: rgba(246, 239, 227, 0.75); }
.sp-op-economie { display: inline-block; margin-top: 10px; padding: 5px 12px; border: 1px solid var(--op-or); color: var(--op-or); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }

.sp-op-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border: 2px solid var(--op-or); border-radius: 999px; font: 700 16px/1.2 'Montserrat', Arial, sans-serif; text-decoration: none !important; cursor: pointer; transition: background 0.2s, color 0.2s; }
.sp-op-btn-or { background: var(--op-or); color: var(--op-noir) !important; }
.sp-op-btn-or:hover, .sp-op-btn-or:focus-visible { background: #f3d58e; }
.sp-op-btn-clair { background: transparent; color: var(--op-noir) !important; border-color: var(--op-noir); }
.sp-op-btn:disabled { opacity: 0.7; cursor: wait; }

/* --- L'accueil : la première chose qu'on voit --------------------- */
.sp-op-une { position: relative; color: #f6efe3; overflow: hidden; background-color: #0a0a0b; background-image: radial-gradient(1100px 520px at 18% -12%, #2b2b2f 0%, rgba(43, 43, 47, 0) 62%), radial-gradient(900px 460px at 102% 112%, #1f1f23 0%, rgba(31, 31, 35, 0) 60%), linear-gradient(180deg, #111113 0%, #0a0a0b 100%); }
.sp-op-une::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 20%, rgba(200, 200, 210, 0.135), transparent 55%); }
.sp-op-une-dedans { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 36px 24px; }
.sp-op-une-sans-visuel { grid-template-columns: minmax(0, 1fr); text-align: center; }
.sp-op-une-visuel { display: block; border: 1px solid rgba(233, 195, 110, 0.45); background: #141416; }
.sp-op-une-visuel img { display: block; width: 100% !important; height: auto !important; max-height: 420px; object-fit: contain; }
.sp-op-une-titre { margin: 0 0 12px !important; color: #fff !important; font: 600 38px/1.15 'Cinzel', Georgia, serif !important; letter-spacing: 0.02em; }
.sp-op-accroche { margin: 0 0 18px !important; color: rgba(246, 239, 227, 0.88); font-size: 17px; line-height: 1.55; }
.sp-op-une-prix { margin: 0 0 14px; }
.sp-op-dates { margin: 0 0 22px !important; color: rgba(246, 239, 227, 0.8); font-size: 15px; }
.sp-op-une-actions { margin: 0 !important; }

/* --- La fiche : le bandeau du haut ------------------------------- */
.sp-op-bandeau { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; padding: 12px 20px; background: var(--op-noir); color: #f6efe3 !important; text-decoration: none !important; font-size: 15px; line-height: 1.4; text-align: center; }
.sp-op-bandeau .sp-op-sur { margin: 0; font-size: 12px; }
.sp-op-bandeau strong { color: var(--op-or); font-size: 17px; }
.sp-op-bandeau s { color: rgba(246, 239, 227, 0.6); }
.sp-op-bandeau-lien { color: var(--op-or); font-weight: 700; white-space: nowrap; }
.sp-op-bandeau:hover .sp-op-bandeau-lien, .sp-op-bandeau:focus-visible .sp-op-bandeau-lien { text-decoration: underline; }

/* --- La fiche : l'encart de commande ----------------------------- */
.sp-op-fiche { padding: 40px 20px; background: var(--op-ivoire); scroll-margin-top: 90px; }
.sp-op-fiche-dedans { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); max-width: 1100px; margin: 0 auto; border: 1px solid rgba(138, 106, 44, 0.35); background: #fff; }
.sp-op-fiche-offre { position: relative; overflow: hidden; padding: 32px; color: #f6efe3; background-color: #0a0a0b; background-image: radial-gradient(700px 380px at 10% -10%, #2b2b2f 0%, rgba(43, 43, 47, 0) 65%), linear-gradient(180deg, #111113 0%, #0a0a0b 100%); }
.sp-op-fiche-offre > *:not(.sp-op-etincelles) { position: relative; }
.sp-op-fiche-visuel { margin: -32px -32px 24px; background: #141416; }
.sp-op-fiche-visuel img { display: block; width: 100% !important; height: auto !important; max-height: 320px; object-fit: contain; }
.sp-op-fiche-titre { margin: 0 0 14px !important; color: #fff !important; font: 600 30px/1.2 'Cinzel', Georgia, serif !important; }
.sp-op-fiche-prix { margin-bottom: 20px; }
.sp-op-fiche-prix .sp-op-prix-vente { font-size: 40px; }
.sp-op-points { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.sp-op-points li { position: relative; margin: 0 0 9px !important; padding-left: 22px; color: rgba(246, 239, 227, 0.88); font-size: 15px; line-height: 1.5; }
.sp-op-points li::before { content: "✦"; position: absolute; left: 0; top: 1px; color: var(--op-or); font-size: 12px; }
.sp-op-fiche-commande { display: flex; flex-direction: column; justify-content: center; padding: 32px; color: var(--op-noir); font-size: 16px; line-height: 1.55; }
.sp-op-fiche-commande p { margin: 0 0 14px; }
.sp-op-commande-titre { display: block; margin: 0 0 12px !important; font: 600 22px/1.3 'Cinzel', Georgia, serif; color: var(--op-noir); }
.sp-op-boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-op-quantite { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.sp-op-quantite button { width: 52px; height: 52px; border: 2px solid var(--op-noir); border-radius: 50%; background: #fff; color: var(--op-noir); font-size: 26px; line-height: 1; cursor: pointer; }
.sp-op-quantite button:hover, .sp-op-quantite button:focus-visible { background: var(--op-noir); color: var(--op-or); }
.sp-op-quantite select { width: 92px; height: 52px; padding: 0 10px; border: 2px solid var(--op-noir); border-radius: 10px; background: #fff; font: 700 22px/1 'Montserrat', Arial, sans-serif; text-align: center; }
.sp-op-reste { color: var(--op-gris); font-size: 14px; }
.sp-op-payer { width: 100%; margin: 4px 0 12px; font-size: 18px; }
.sp-op-securite { color: var(--op-gris); font-size: 13px; }
.sp-op-deja { padding: 8px 12px; background: var(--op-ivoire); border-left: 3px solid var(--op-or); font-size: 15px; }
.sp-op-erreur { padding: 10px 14px; background: #fcf0f1; border-left: 4px solid #b32d2e; color: #8a2424; }
.sp-op-message { margin: 0 0 18px; padding: 16px 18px; background: var(--op-ivoire); border-left: 4px solid var(--op-or); }
.sp-op-message p { margin: 0 0 8px; }
.sp-op-message-ok { border-left-color: #2f7d3b; background: #f1f8f1; }
.sp-op-message-titre { font-weight: 700; font-size: 17px; }

/* --- La vente flash qui attire l'œil : reflet doré, lueur, étoiles, compte à rebours --- */
.sp-op-flash { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px !important; padding: 9px 20px; border: 1px solid rgba(233, 195, 110, 0.7); border-radius: 999px; font: 800 21px/1.2 'Montserrat', Arial, sans-serif; letter-spacing: 0.24em; text-transform: uppercase; animation: sp-op-entree 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both, sp-op-halo 2.4s ease-in-out 0.8s infinite; }
.sp-op-flash-fiche { font-size: 15px; padding: 7px 16px; }
.sp-op-flash-texte { background: linear-gradient(100deg, #b98a33 0%, #e9c36e 28%, #fff6d6 46%, #e9c36e 58%, #b98a33 82%, #e9c36e 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: sp-op-reflet 3.6s linear infinite; }
.sp-op-flash-etoile, .sp-op-scintille { display: inline-block; color: #f3d58e; font-size: 0.95em; letter-spacing: 0; animation: sp-op-scintille 1.8s ease-in-out infinite; }
.sp-op-flash-etoile + .sp-op-flash-texte + .sp-op-flash-etoile { animation-delay: 0.9s; }
@keyframes sp-op-reflet { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes sp-op-halo { 0%, 100% { box-shadow: 0 0 0 0 rgba(233, 195, 110, 0); border-color: rgba(233, 195, 110, 0.55); } 50% { box-shadow: 0 0 22px 2px rgba(233, 195, 110, 0.35), inset 0 0 12px rgba(233, 195, 110, 0.12); border-color: rgba(243, 213, 142, 1); } }
@keyframes sp-op-scintille { 0%, 100% { opacity: 0.45; transform: scale(0.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.25) rotate(45deg); text-shadow: 0 0 10px rgba(255, 236, 180, 0.9); } }

.sp-op-etincelles { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sp-op-etincelle { position: absolute; width: 11px; height: 11px; background: radial-gradient(circle, #fffbea 0%, #f3d58e 45%, rgba(233, 195, 110, 0) 72%); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; animation: sp-op-etincelle 3.6s ease-in-out infinite; }
.sp-op-etincelle-grande { width: 22px; height: 22px; }
@keyframes sp-op-etincelle { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); } 45%, 55% { opacity: 0.95; transform: scale(1) rotate(90deg); } }

.sp-op-une-dedans { z-index: 1; }
.sp-op-une-visuel { animation: sp-op-entree-cote 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.sp-op-une-texte > * { animation: sp-op-entree 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.sp-op-une-texte > :nth-child(2) { animation-delay: 0.12s; }
.sp-op-une-texte > :nth-child(3) { animation-delay: 0.22s; }
.sp-op-une-texte > :nth-child(4) { animation-delay: 0.32s; }
.sp-op-une-texte > :nth-child(5) { animation-delay: 0.42s; }
.sp-op-une-texte > :nth-child(6) { animation-delay: 0.52s; }
.sp-op-une-texte > :nth-child(7) { animation-delay: 0.62s; }
.sp-op-une-texte > .sp-op-flash { animation: sp-op-entree 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both, sp-op-halo 2.4s ease-in-out 0.8s infinite; }
@keyframes sp-op-entree { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sp-op-entree-cote { from { opacity: 0; transform: translateX(-26px) scale(0.98); } to { opacity: 1; transform: none; } }

.sp-op-btn-or { position: relative; overflow: hidden; }
.sp-op-btn-or::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0) 100%); transform: skewX(-20deg); animation: sp-op-balayage 3.8s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes sp-op-balayage { 0%, 60% { left: -60%; } 100% { left: 130%; } }

.sp-op-rebours { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 22px !important; color: rgba(246, 239, 227, 0.85); font-size: 15px; }
.sp-op-rebours-quoi { color: var(--op-or); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.sp-op-rebours-temps { font-variant-numeric: tabular-nums; }
.sp-op-rebours-temps b { color: #fff; font: 600 22px/1 'Cinzel', Georgia, serif; }
.sp-op-fiche-offre .sp-op-rebours { margin: -6px 0 18px !important; }

@media (prefers-reduced-motion: reduce) {
	.sp-op-flash, .sp-op-flash-texte, .sp-op-flash-etoile, .sp-op-scintille, .sp-op-etincelle, .sp-op-une-visuel, .sp-op-une-texte > *, .sp-op-btn-or::after { animation: none !important; }
	.sp-op-etincelle { opacity: 0.7; }
}

@media (max-width: 900px) {
	.sp-op-une-dedans { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 16px 28px; }
	.sp-op-une-titre { font-size: 28px !important; }
	.sp-op-flash { gap: 8px; padding: 8px 14px; font-size: 15px; letter-spacing: 0.16em; }
	.sp-op-prix-vente { font-size: 38px; }
	.sp-op-une-actions .sp-op-btn { width: 100%; }
	.sp-op-fiche { padding: 24px 0; }
	.sp-op-fiche-dedans { grid-template-columns: minmax(0, 1fr); border-left: 0; border-right: 0; }
	.sp-op-fiche-offre, .sp-op-fiche-commande { padding: 24px 16px; }
	.sp-op-fiche-visuel { margin: -24px -16px 20px; }
	.sp-op-fiche-titre { font-size: 25px !important; }
	.sp-op-boutons .sp-op-btn { flex: 1 1 100%; }
}

/* --- La fenêtre de l'accueil (10/11/2026 : un popup, l'accueil garde son identité) --- */
.sp-op-popup { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: 'Montserrat', Arial, sans-serif; }
.sp-op-popup[hidden] { display: none; }
.sp-op-popup-fond { position: absolute; inset: 0; background: rgba(8, 8, 9, 0.72); opacity: 0; transition: opacity 0.3s ease; }
.sp-op-popup-boite { position: relative; overflow: hidden auto; width: min(860px, 100%); max-height: calc(100vh - 32px); padding: 18px 18px 20px; color: #f6efe3; background-color: #0a0a0b; background-image: radial-gradient(600px 300px at 10% -10%, #2b2b2f 0%, rgba(43, 43, 47, 0) 65%), linear-gradient(180deg, #111113 0%, #0a0a0b 100%); border: 1px solid rgba(233, 195, 110, 0.6); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(18px) scale(0.97); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sp-op-popup-ouvert .sp-op-popup-fond { opacity: 1; }
.sp-op-popup-ouvert .sp-op-popup-boite { opacity: 1; transform: none; }
.sp-op-popup-boite > *:not(.sp-op-etincelles):not(.sp-op-popup-x) { position: relative; z-index: 1; }
.sp-op-popup-x { position: absolute; top: 8px; right: 10px; z-index: 2; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 26px; line-height: 40px; cursor: pointer; }
.sp-op-popup-x:hover, .sp-op-popup-x:focus-visible { background: rgba(255, 255, 255, 0.18); }
.sp-op-popup-haut { padding: 0 40px; text-align: center; }
.sp-op-flash-popup { margin-bottom: 12px !important; font-size: 16px; }
.sp-op-popup-visuel { display: block; }
.sp-op-popup-visuel img { display: block; width: auto !important; max-width: 100%; height: auto !important; max-height: min(58vh, 620px); margin: 0 auto; object-fit: contain; border-radius: 4px; }
.sp-op-popup-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 14px; text-align: center; }
.sp-op-popup-bas .sp-op-rebours { flex-basis: 100%; justify-content: center; margin: 0 !important; }
/* 17/11/2026 : la fenêtre se referme seule ; ce filet doré montre le temps restant et disparaît dès que la personne s'en occupe. */
.sp-op-popup .sp-op-popup-boite > span.sp-op-popup-temps { position: absolute; top: 0; left: 0; z-index: 2; width: 100%; height: 3px; background: #e9c36e; transform-origin: left center; transform: scaleX(1); pointer-events: none; }
.sp-op-popup-ouvert .sp-op-popup-boite > span.sp-op-popup-temps { animation: sp-op-temps 12s linear forwards; }
.sp-op-popup-garde .sp-op-popup-boite > span.sp-op-popup-temps { display: none; }
@keyframes sp-op-temps { to { transform: scaleX(0); } }
.sp-op-popup-plus-tard { padding: 6px; border: 0; background: none; color: #b9b9be; font: 600 14px 'Montserrat', Arial, sans-serif; text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) {
	.sp-op-popup { padding: 10px; }
	.sp-op-popup-boite { padding: 14px 12px 16px; }
	.sp-op-popup-haut { padding: 0 36px 0 0; text-align: left; }
	.sp-op-flash-popup { font-size: 12px; letter-spacing: 0.12em; }
	.sp-op-popup-bas .sp-op-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.sp-op-popup-fond, .sp-op-popup-boite { transition: none; }
}

/* --- L'annonce avant l'ouverture (12/11/2026) --- */
.sp-op-ouverture { margin: 10px 0 6px; font-family: 'Montserrat', Arial, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; color: #e9c36e; }
.sp-op-popup-bas .sp-op-ouverture { flex-basis: 100%; margin: 0; text-align: center; }
