/* NCT Bons plans */
.nctbp{--nctbp-rouge:#C62B1F;--nctbp-orange:#E07B1A;--nctbp-encre:#1d1d1b;--nctbp-trait:#e6e6e6;max-width:1200px;margin:0 auto;color:var(--nctbp-encre);}
.nctbp [hidden]{display:none !important;}
.nctbp button,.nctbp input{font-family:inherit !important;}

/* ---- En-tête ---- */
.nctbp .nctbp-entete{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 14px;padding:0 0 12px;border-bottom:3px solid;border-image:linear-gradient(90deg,var(--nctbp-orange),var(--nctbp-rouge)) 1;}
.nctbp .nctbp-entete-texte{min-width:0;}
.nctbp .nctbp-titre{display:inline-block;margin:0 0 4px;background:linear-gradient(90deg,var(--nctbp-orange),var(--nctbp-rouge));-webkit-background-clip:text;background-clip:text;color:transparent;font-size:40px;font-weight:800;line-height:1.15;letter-spacing:-1.1px;text-transform:none;}
.nctbp .nctbp-sous-titre{margin:0;color:#555;font-size:15px;line-height:1.4;}
.nctbp .nctbp-titre-mois{font-weight:600;white-space:nowrap;}
.nctbp .nctbp-sous-titre strong{color:var(--nctbp-encre);}

.nctbp .nctbp-loupe{flex-shrink:0;width:44px;height:44px;margin:0 0 2px;padding:0 !important;border-radius:50% !important;border:1px solid #ddd !important;background:#fff !important;color:var(--nctbp-encre) !important;box-shadow:none !important;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .15s,color .15s;}
.nctbp .nctbp-loupe:hover,.nctbp .nctbp-loupe[aria-expanded="true"]{border-color:var(--nctbp-rouge) !important;color:var(--nctbp-rouge) !important;}
.nctbp .nctbp-loupe svg{width:18px;height:18px;}

.nctbp .nctbp-mention{display:flex;align-items:flex-start;gap:8px;margin:0 0 16px;padding:9px 12px;border-radius:10px;background:#f7f7f7;color:#666;font-size:12.5px;line-height:1.45;}
.nctbp .nctbp-mention svg{flex-shrink:0;width:16px;height:16px;margin-top:1px;color:#999;}

/* ---- Recherche ---- */
.nctbp .nctbp-recherche-zone{display:flex;align-items:center;gap:10px;max-width:560px;margin:0 0 16px auto;padding:0 6px 0 14px;border:2px solid var(--nctbp-rouge);border-radius:12px;background:#fff;box-sizing:border-box;}
.nctbp .nctbp-recherche-zone > svg{flex-shrink:0;width:18px;height:18px;color:#999;}
.nctbp .nctbp-recherche{flex:1;min-width:0;height:46px;margin:0;padding:0 !important;border:none !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;outline:none;color:var(--nctbp-encre);font-size:16px !important;text-transform:none !important;letter-spacing:normal !important;-webkit-appearance:none;appearance:none;}
.nctbp .nctbp-recherche::placeholder{color:#999;text-transform:none !important;}
.nctbp .nctbp-recherche::-webkit-search-cancel-button{display:none;}
.nctbp .nctbp-recherche-fermer{flex-shrink:0;width:34px;height:34px;padding:0 !important;border:none !important;border-radius:50% !important;background:#f2f2f2 !important;color:#555 !important;box-shadow:none !important;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.nctbp .nctbp-recherche-fermer svg{width:16px;height:16px;}

/* ---- Pastilles + loupe à droite ---- */
.nctbp .nctbp-filtres{display:flex;align-items:center;gap:8px;margin:0 0 16px;}
.nctbp .nctbp-filtres .nctbp-loupe{flex-shrink:0;width:38px;height:38px;margin:0 0 0 auto;}
.nctbp .nctbp-puces{flex:1;min-width:0;display:flex;gap:8px;margin:0;padding:2px 0;overflow-x:auto;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);scrollbar-width:none;-webkit-overflow-scrolling:touch;}
.nctbp .nctbp-puces::-webkit-scrollbar{display:none;}
.nctbp .nctbp-puce{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;height:38px;margin:0;padding:0 14px !important;border:1px solid #ddd !important;border-radius:999px !important;background:#fff !important;color:var(--nctbp-encre) !important;box-shadow:none !important;font-size:13px !important;font-weight:600 !important;line-height:1 !important;text-transform:none !important;letter-spacing:normal !important;white-space:nowrap;cursor:pointer;}
.nctbp .nctbp-puce-nb{color:#999;font-size:11px;font-weight:700;}
.nctbp .nctbp-puce.is-active{border-color:transparent !important;background:linear-gradient(90deg,var(--nctbp-orange),var(--nctbp-rouge)) !important;color:#fff !important;}
.nctbp .nctbp-puce.is-active .nctbp-puce-nb{color:rgba(255,255,255,.85);}

/* ---- Grille et cartes : chaque élément a sa place réservée, toutes les cartes s'alignent ---- */
.nctbp .nctbp-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px 16px;}
.nctbp .nctbp-carte{container-type:inline-size;display:flex;flex-direction:column;min-width:0;text-align:center;scroll-margin-top:140px;}
.nctbp .nctbp-carte.is-cible .nctbp-boite{animation:nctbp-cible 1.6s ease-out 2;}
@keyframes nctbp-cible{0%{box-shadow:0 0 0 0 rgba(224,123,26,.55);}100%{box-shadow:0 0 0 14px rgba(224,123,26,0);}}

/* Au-dessus : « lien affilié » (place gardée même vide) */
.nctbp .nctbp-sur{height:20px;margin:0 0 3px;color:#a3a3a3;font-size:12.5px;line-height:20px;}
.nctbp .nctbp-sur.is-vide{visibility:hidden;}

.nctbp .nctbp-boite{flex:1;display:flex;flex-direction:column;overflow:hidden;border-radius:14px;background:#f4f4f4;transition:transform .15s,box-shadow .15s;}
.nctbp .nctbp-carte:hover .nctbp-boite{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.08);}
.nctbp .nctbp-carte.is-une .nctbp-boite{box-shadow:0 0 0 2px #E9B420;}

/* Visuel : photo en noir et blanc fondue dans le dégradé, logo blanc de la marque par-dessus */
.nctbp .nctbp-visuel{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;padding:0 10%;overflow:hidden;background:linear-gradient(135deg,#E9B420 0%,#E07B1A 55%,#D8342A 100%);box-sizing:border-box;}
.nctbp .nctbp-visuel-photo{position:absolute;inset:0;background:center/cover no-repeat;filter:grayscale(1) contrast(1.1);mix-blend-mode:multiply;opacity:.6;}
.nctbp .nctbp-visuel-logo{position:relative;display:block;width:auto;max-width:80%;height:auto;max-height:36cqi;object-fit:contain;filter:drop-shadow(0 1px 6px rgba(0,0,0,.15));}
.nctbp .nctbp-visuel-nom{position:relative;color:#fff;font-size:clamp(20px,12cqi,40px);font-weight:900;line-height:1;letter-spacing:-.02em;text-transform:uppercase;}
.nctbp .nctbp-exclu{position:absolute;top:8px;left:8px;padding:3px 7px;border-radius:5px;background:rgba(0,0,0,.35);color:#fff;font-size:10px;font-weight:800;line-height:1.3;letter-spacing:.05em;text-transform:uppercase;}

/* Contenu : offre (2 lignes réservées), code, bouton, validité */
.nctbp .nctbp-contenu{flex:1;display:flex;flex-direction:column;gap:clamp(8px,4.5cqi,14px);padding:clamp(10px,6cqi,18px);}
/* Offre : emplacement fixe (3 lignes à la taille normale) ; la police se réduit si l'offre est longue
   (première réduction selon la longueur côté serveur, ajustement fin en JS pour que tout tienne) */
.nctbp .nctbp-offre{--offre-base:clamp(12.5px,7.4cqi,21px);display:block;height:calc(var(--offre-base) * 3.45);overflow:hidden;margin:0;color:#111;font-size:var(--offre-base);font-weight:800;line-height:1.15;letter-spacing:-.02em;text-align:left;text-transform:none;}

.nctbp .nctbp-offre.is-moyen{font-size:calc(var(--offre-base) * .86);line-height:1.12;}
.nctbp .nctbp-offre.is-long{font-size:calc(var(--offre-base) * .74);line-height:1.1;}
.nctbp .nctbp-offre.is-coupe{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;} /* filet de sécurité si même la plus petite taille ne suffit pas */

.nctbp .nctbp-code{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:clamp(40px,18cqi,56px);margin:0;padding:0 10px !important;border:none !important;border-radius:11px !important;background:#fff !important;box-shadow:none !important;color:#9a9a9a !important;text-transform:none !important;letter-spacing:normal !important;box-sizing:border-box;cursor:copy;}
.nctbp .nctbp-code-cadre{position:absolute;inset:1px;width:calc(100% - 2px);height:calc(100% - 2px);overflow:visible;pointer-events:none;}
.nctbp .nctbp-code-cadre rect{fill:none;stroke-width:2;stroke-dasharray:7 5;}
/* même taille pour tous les codes ; réduite seulement si un code très long (--n caractères) ne tient pas */
.nctbp .nctbp-code-texte{position:relative;overflow:hidden;font-size:clamp(11px,min(9cqi,calc((100cqi - 50px) / (var(--n,6) * .72))),22px);font-weight:800;line-height:1;white-space:nowrap;text-overflow:ellipsis;}
.nctbp .nctbp-code.is-sans-code{cursor:default;}
.nctbp .nctbp-code.is-sans-code .nctbp-code-texte{font-size:clamp(11px,6cqi,15px);font-weight:700;}
.nctbp .nctbp-code.is-copie .nctbp-code-texte::after{content:" ✓";color:#2e9e5b;}

.nctbp .nctbp-cta{display:flex;align-items:center;justify-content:center;width:100%;min-height:clamp(38px,17cqi,50px);padding:4px 8px;border-radius:9px;background:var(--nctbp-orange);color:#fff !important;font-size:clamp(13px,8cqi,22px);font-weight:800;line-height:1.1;text-decoration:none !important;box-sizing:border-box;transition:filter .15s;}
.nctbp .nctbp-cta:hover{filter:brightness(1.08);}

.nctbp .nctbp-validite{margin:0;color:#111;font-size:clamp(11.5px,6.5cqi,17px);font-weight:800;line-height:1.2;}
.nctbp .nctbp-validite.is-bientot{color:#D8342A;}

/* Dessous : « Conditions » (place gardée même vide) */
.nctbp .nctbp-sous{min-height:22px;margin-top:4px;}
.nctbp .nctbp-conditions summary{display:inline-block;color:#a3a3a3;font-size:12.5px;line-height:20px;cursor:pointer;list-style:none;}
.nctbp .nctbp-conditions summary::-webkit-details-marker{display:none;}
.nctbp .nctbp-conditions summary:hover,.nctbp .nctbp-conditions[open] summary{color:#555;}
.nctbp .nctbp-conditions p{margin:4px 0 0;color:#555;font-size:12.5px;line-height:1.45;text-align:left;}

.nctbp .nctbp-aucun{padding:28px 16px;border-radius:12px;background:#f7f7f7;color:#555;font-size:14px;text-align:center;}
.nctbp .nctbp-reinit{margin:0 0 0 6px;padding:0 !important;border:none !important;background:none !important;box-shadow:none !important;color:var(--nctbp-rouge) !important;font-size:14px !important;font-weight:700 !important;text-transform:none !important;letter-spacing:normal !important;text-decoration:underline;cursor:pointer;}

/* ---- Expirés ---- */
.nctbp .nctbp-expires{margin:28px 0 0;}
.nctbp .nctbp-expires summary{margin:0 0 14px;color:#777;font-size:14px;font-weight:700;cursor:pointer;}
.nctbp .nctbp-carte.is-expire .nctbp-boite{filter:grayscale(1);opacity:.6;}
.nctbp .nctbp-carte.is-expire .nctbp-cta,.nctbp .nctbp-carte.is-expire .nctbp-code{pointer-events:none;}

/* ---- Guides d'achat ---- */
.nctbp .nctbp-guides{margin:36px 0 0;}
.nctbp .nctbp-guides-titre{margin:0 0 14px;padding:0 0 10px;border-bottom:1px solid #eee;color:#2E9E5B;font-size:20px;font-weight:800;line-height:1.2;letter-spacing:.02em;text-transform:uppercase;}
.nctbp .nctbp-guides-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;}
.nctbp .nctbp-guide{display:flex;flex-direction:column;overflow:hidden;border:2px solid #2E9E5B;border-radius:10px;background:#fff;color:inherit;text-decoration:none;}
.nctbp .nctbp-guide-img{display:block;aspect-ratio:16/10;background:#eee center/cover no-repeat;}
.nctbp .nctbp-guide-titre{padding:10px 12px 12px;color:#222;font-size:14px;font-weight:700;line-height:1.35;}

/* ---- Encart sur les tests : [nct_bon_plan_marque] ---- */
.nctbp.nctbp-encart{max-width:none;padding:14px;border:1px solid #f1d7c2;border-radius:16px;background:#fff8f1;}
.nctbp .nctbp-encart-titre{margin:0 0 10px;color:var(--nctbp-rouge);font-size:13px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;}
.nctbp.nctbp-encart{text-align:center;}
.nctbp.nctbp-encart .nctbp-grille{grid-template-columns:repeat(auto-fit,minmax(200px,260px));justify-content:center;gap:10px;} /* le bon plan se centre dans l'encart */
.nctbp .nctbp-encart-mention{margin:10px 0 0;color:#777;font-size:11.5px;line-height:1.45;}
.nctbp .nctbp-encart-mention a{color:var(--nctbp-rouge);font-weight:700;}

/* ---- Message « Code copié » ---- */
.nctbp-toast{position:fixed;left:50%;bottom:22px;z-index:99999;max-width:calc(100vw - 32px);padding:12px 18px;border-radius:999px;background:#1d1d1b;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.25);font-size:14px;font-weight:600;line-height:1.35;text-align:center;opacity:0;transform:translate(-50%,12px);transition:opacity .2s,transform .2s;pointer-events:none;box-sizing:border-box;}
.nctbp-toast.is-visible{opacity:1;transform:translate(-50%,0);}

/* ---- Mobile ---- */
@media (max-width:767px){
	.nctbp .nctbp-entete{align-items:center;gap:12px;margin-bottom:10px;padding-bottom:10px;}
	.nctbp .nctbp-titre{font-size:26px;letter-spacing:-.6px;}
	.nctbp .nctbp-titre-mois{display:block;font-size:19px;letter-spacing:-.3px;} /* le mois passe dessous, en plus petit */
	.nctbp .nctbp-sous-titre{font-size:14px;}
	.nctbp .nctbp-mention{margin-bottom:12px;padding:7px 10px;font-size:11.5px;}
	.nctbp .nctbp-recherche-zone{max-width:none;margin:0 0 12px;}
	.nctbp .nctbp-filtres{margin-bottom:12px;}
	.nctbp .nctbp-grille{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 10px;} /* deux cartes côte à côte */
	.nctbp .nctbp-sur,.nctbp .nctbp-conditions summary{font-size:11.5px;}
}
