/* NCT Concours — reprend la charte du mag : dégradé jaune-orange → rouge, cartes photo à bandeau coloré. */
.nctc {
	--nctc-jaune: #f2a900;
	--nctc-orange: #ee7a12;
	--nctc-rouge: #e4381c;
	--nctc-accent: #e63312;
	--nctc-texte: #1d1d1b;
	--nctc-gris: #6b6b6b;
	--nctc-bord: #e6e6e6;
	--nctc-fond: #f7f7f7;
	--nctc-degrade: linear-gradient(90deg, var(--nctc-jaune) 0%, var(--nctc-orange) 45%, var(--nctc-rouge) 100%);
	color: var(--nctc-texte);
	line-height: 1.5;
	box-sizing: border-box;
}
.nctc *, .nctc *::before, .nctc *::after { box-sizing: inherit; }
.nctc [hidden] { display: none !important; }

/* Titres en dégradé, comme « Les articles à la une » */
.nctc-titre {
	display: inline-block;
	margin: 0 0 24px;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	background: var(--nctc-degrade);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.nctc-titre--petit { font-size: clamp(22px, 3vw, 30px); margin-top: 40px; }
.nctc-single .nctc-titre--petit { margin-top: 0; }

/* Étiquette façon « TEST » / « GUIDE » : texte blanc sur demi-bandeau coloré */
.nctc-badge {
	position: absolute;
	top: 18px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	padding: 0 6px;
	color: #fff;
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	background: linear-gradient(to bottom, transparent 50%, var(--nctc-accent) 50%);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
	white-space: nowrap;
}

.nctc-statut {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #fff;
	background: #2e9e4f;
}
.nctc-statut.is-a_venir { background: #2d7ff9; }
.nctc-statut.is-termine { background: #555; }

/* Les thèmes et Elementor imposent height:auto / max-width / border-radius aux <img> : on reprend la main. */
.nctc img.nctc-une__img,
.nctc img.nctc-carte__img,
.nctc img.nctc-hero__img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	z-index: -2;
}

/* Elementor (conteneurs flexbox) : le widget qui contient un bloc concours prend toute la largeur. */
.elementor-widget:has(.nctc) { width: 100%; max-width: 100%; align-self: stretch; }
.elementor-widget:has(.nctc) > .elementor-widget-container,
.elementor-widget:has(.nctc) .elementor-shortcode { width: 100%; }
.nctc-liste, .nctc-autres, .nctc-single { width: 100%; }

/* ---------------------------------------------------------------- Liste */
.nctc-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 22px;
}
.nctc-carte {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 300px;
	overflow: hidden;
	background: #222;
	border-bottom: 4px solid var(--nctc-accent);
	color: #fff !important;
	text-decoration: none !important;
	isolation: isolate;
}
.nctc-carte--large { grid-column: span 2; min-height: 380px; }
.nctc-carte__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
	transition: transform .5s ease;
}
.nctc-carte::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.1) 100%);
}
.nctc-carte:hover .nctc-carte__img { transform: scale(1.04); }
.nctc-carte .nctc-statut { align-self: flex-start; }
.nctc-carte__body { display: flex; flex-direction: column; gap: 8px; padding: 22px; width: 100%; }
.nctc-carte__titre {
	font-weight: 800;
	font-size: 22px;
	line-height: 1.15;
	text-transform: uppercase;
}
.nctc-carte--large .nctc-carte__titre { font-size: 28px; }
.nctc-carte__lot { font-size: 15px; opacity: .92; }
.nctc-carte__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	opacity: .85;
}
.nctc-carte__cta {
	flex-shrink: 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--nctc-accent);
	font-weight: 700;
	font-size: 14px;
	opacity: 1;
}
.nctc-carte.is-termine { filter: grayscale(.7); }
.nctc-grille--fermes .nctc-carte { min-height: 220px; }
.nctc-vide { padding: 24px; background: var(--nctc-fond); border-radius: 12px; }

/* ---------------------------------------------------------------- Page concours */
.nctc-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 420px;
	overflow: hidden;
	background: #222;
	border-bottom: 5px solid var(--nctc-accent);
	color: #fff;
	isolation: isolate;
}
.nctc-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}
.nctc-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.1) 100%);
}
.nctc-hero .nctc-badge { font-size: 30px; top: 24px; }
.nctc-hero__body { padding: 32px; max-width: 900px; }
.nctc-hero__titre {
	margin: 12px 0 8px;
	color: #fff !important;
	font-size: clamp(28px, 4.5vw, 48px);
	font-weight: 800;
	line-height: 1.05;
	text-transform: uppercase;
}
.nctc-hero__lot { margin: 0; font-size: 18px; }
.nctc-hero__lot span { opacity: .8; }

.nctc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 40px;
	margin-top: 36px;
	align-items: start;
}
.nctc-description { font-size: 17px; }
.nctc-description img { max-width: 100%; height: auto; }

.nctc-infos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin: 28px 0;
	padding: 0;
	list-style: none;
}
.nctc-infos li {
	display: flex;
	flex-direction: column;
	padding: 14px 16px;
	background: var(--nctc-fond);
	border-left: 4px solid var(--nctc-accent);
	border-radius: 0 10px 10px 0;
}
.nctc-infos span { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--nctc-gris); }
.nctc-infos strong { font-size: 16px; }

.nctc-reglement {
	border: 1px solid var(--nctc-bord);
	border-radius: 12px;
	background: #fff;
}
.nctc-reglement summary {
	cursor: pointer;
	padding: 14px 18px;
	font-weight: 700;
	color: var(--nctc-accent);
}
.nctc-reglement__texte { padding: 0 18px 12px; font-size: 14px; color: #444; max-height: 420px; overflow: auto; }

/* ---------------------------------------------------------------- Formulaire */
.nctc-side { position: sticky; top: 24px; }
.nctc-carte-form {
	padding: 26px;
	background: #fff;
	border: 1px solid var(--nctc-bord);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .07);
	border-top: 5px solid transparent;
	background-image: linear-gradient(#fff, #fff), var(--nctc-degrade);
	background-origin: border-box;
	background-clip: padding-box, border-box;
}

.nctc-compte {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 22px;
	text-align: center;
}
.nctc-compte div { padding: 10px 4px; background: var(--nctc-fond); border-radius: 10px; }
.nctc-compte strong { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--nctc-accent); }
.nctc-compte span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--nctc-gris); }

.nctc-etape {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-weight: 800;
	font-size: 17px;
}
.nctc-etape > span {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--nctc-degrade);
	color: #fff;
	font-size: 14px;
}
.nctc-progres { margin-left: auto; font-style: normal; font-weight: 600; font-size: 13px; color: var(--nctc-gris); }

.nctc-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.nctc-champ { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; margin: 0; }
.nctc-champ--full { grid-column: 1 / -1; }
.nctc-champ em, .nctc-check em { font-weight: 400; color: var(--nctc-gris); }
.nctc-champ small { font-weight: 400; font-size: 12px; color: var(--nctc-gris); }
.nctc .nctc-champ input {
	width: 100%;
	margin: 0;
	padding: 11px 13px;
	font: inherit;
	font-weight: 400;
	font-size: 16px;
	color: var(--nctc-texte);
	background: #fff;
	border: 1.5px solid #d4d4d4;
	border-radius: 10px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.nctc .nctc-champ input:focus { border-color: var(--nctc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nctc-accent) 18%, transparent); }
.nctc .nctc-champ input.is-invalide { border-color: #c62828; }
.nctc-arobase { position: relative; display: block; }
.nctc-arobase::before { content: "@"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--nctc-gris); font-weight: 400; }
.nctc .nctc-arobase input { padding-left: 30px; }

.nctc-conditions { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nctc-condition {
	margin: 0;
	padding: 12px 14px;
	border: 1.5px solid var(--nctc-bord);
	border-radius: 12px;
	transition: border-color .2s, background .2s;
}
.nctc-condition.is-ok { border-color: #2e9e4f; background: #f1faf3; }

.nctc-reseau {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 10px;
	padding: 10px 14px;
	border-radius: 10px;
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	transition: transform .15s, filter .15s;
}
.nctc-reseau:hover { transform: translateY(-1px); filter: brightness(1.08); }
.nctc-reseau--instagram { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.nctc-reseau--youtube { background: #ff0000; }
.nctc-condition.is-clique .nctc-reseau { opacity: .75; }
.nctc-aide { display: block; margin-top: 4px; padding-left: 32px; font-size: 12px; color: var(--nctc-gris); }
.nctc-condition.is-clique .nctc-aide { display: none; }

.nctc-check { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 0; cursor: pointer; font-size: 14px; font-weight: 500; }
.nctc-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.nctc-check__box {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border: 2px solid #bdbdbd;
	border-radius: 6px;
	background: #fff;
	display: grid;
	place-items: center;
	transition: all .15s;
}
.nctc-check input:checked + .nctc-check__box { background: #2e9e4f; border-color: #2e9e4f; }
.nctc-check input:checked + .nctc-check__box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.nctc-check input:focus-visible + .nctc-check__box { outline: 2px solid var(--nctc-accent); outline-offset: 2px; }
.nctc-check input:disabled + .nctc-check__box { background: #eee; border-color: #ddd; }
.nctc-check input:disabled ~ .nctc-check__label { color: #9a9a9a; }
.nctc-check input:disabled { cursor: not-allowed; }
.nctc-check__label a { color: var(--nctc-accent); }
.nctc-check--option { margin: 4px 0 20px; padding: 0 2px; font-size: 13px; }

.nctc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.nctc-bouton {
	width: 100%;
	padding: 16px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--nctc-degrade);
	color: #fff;
	font: inherit;
	font-weight: 800;
	font-size: 17px;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s, opacity .2s;
	box-shadow: 0 8px 20px rgba(228, 56, 28, .3);
}
.nctc-bouton:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(228, 56, 28, .38); }
.nctc-bouton:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.nctc-bouton.is-chargement { opacity: .7; cursor: wait; }

.nctc-message { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #fdecea; color: #b71c1c; font-size: 14px; }
.nctc-rgpd { margin: 14px 0 0; font-size: 11.5px; color: var(--nctc-gris); line-height: 1.45; }

.nctc-succes { text-align: center; padding: 10px 0; }
.nctc-succes__icone {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--nctc-degrade);
	color: #fff;
	font-size: 36px;
	font-weight: 800;
	animation: nctc-pop .5s cubic-bezier(.2, 1.6, .4, 1);
}
.nctc-succes__titre { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.nctc-succes__merci { margin-top: 14px; padding: 12px; background: var(--nctc-fond); border-radius: 10px; font-size: 14px; }
@keyframes nctc-pop { from { transform: scale(0); } to { transform: scale(1); } }

.nctc-ferme { text-align: center; }
.nctc-ferme__titre { font-size: 22px; font-weight: 800; margin: 0 0 6px; }

/* ================================================================ [nct_concours_une] — mise en avant */
.nctc-une-wrap { width: 100%; margin: 8px auto 32px; }
.nctc-une {
	position: relative;
	display: block;
	width: 100%;
	padding: 3px; /* épaisseur du contour dégradé animé */
	border-radius: 20px;
	color: #fff !important;
	text-decoration: none !important;
	background: linear-gradient(110deg, var(--nctc-jaune), var(--nctc-orange), var(--nctc-rouge), var(--nctc-orange), var(--nctc-jaune));
	background-size: 300% 100%;
	animation: nctc-contour 6s linear infinite;
	box-shadow: 0 18px 40px -12px rgba(228, 56, 28, .45);
	transition: transform .25s ease, box-shadow .25s ease;
}
.nctc-une:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -14px rgba(228, 56, 28, .55); }
/* Cadre intérieur : c'est lui qui découpe l'image, le contour reste toujours visible autour */
.nctc-une__cadre {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 360px;
	overflow: hidden;
	border-radius: 17px;
	background: #151515;
	isolation: isolate;
}
.nctc-une__img { transition: transform .6s ease; }
.nctc-une:hover .nctc-une__img { transform: scale(1.03); }
/* Voile : sombre à gauche pour le texte, l'image respire à droite */
.nctc-une__cadre::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.9) 35%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.1) 80%, rgba(10,10,10,0) 100%),
		radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--nctc-accent) 45%, transparent) 0%, transparent 55%);
}
.nctc-une__contenu {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	max-width: 640px;
	padding: 36px 44px;
	text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.nctc-une__surtitre {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,.12);
	backdrop-filter: blur(6px);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
}
.nctc-une__point {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #3ddc6f;
	box-shadow: 0 0 0 0 rgba(61, 220, 111, .7);
	animation: nctc-pulse 1.8s ease-out infinite;
}
.nctc-une.is-a_venir .nctc-une__point { background: #5aa2ff; animation: none; }
.nctc-une__titre {
	font-size: clamp(26px, 3.6vw, 44px);
	font-weight: 900;
	line-height: 1.02;
	text-transform: uppercase;
	letter-spacing: -.01em;
}
.nctc-une__lot { font-size: 17px; line-height: 1.4; }
.nctc-une__lot > span { opacity: .75; }
.nctc-une__valeur {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 10px;
	border-radius: 6px;
	background: var(--nctc-degrade);
	font-style: normal;
	font-weight: 800;
	font-size: 15px;
	white-space: nowrap;
	text-shadow: none;
}
.nctc-une__info { font-size: 15px; opacity: .85; }

.nctc .nctc-compte--une { margin: 2px 0 0; gap: 8px; grid-template-columns: repeat(4, 64px); }
.nctc-compte--une > span { padding: 8px 4px; border-radius: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px); }
.nctc-compte--une strong { color: #fff; font-size: 24px; }
.nctc-compte--une > span > span { display: block; color: rgba(255,255,255,.7); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }

.nctc-une__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 6px; }
.nctc-une__bouton {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	background: var(--nctc-degrade);
	font-weight: 900;
	font-size: 17px;
	text-shadow: none;
	box-shadow: 0 8px 22px rgba(228, 56, 28, .5);
}
/* Reflet qui balaie le bouton */
.nctc-une__bouton::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
	transform: skewX(-20deg);
	animation: nctc-reflet 3.2s ease-in-out infinite;
}
.nctc-une__bouton > span { transition: transform .2s; }
.nctc-une:hover .nctc-une__bouton > span { transform: translateX(4px); }
.nctc-une__compteur { font-size: 14px; opacity: .9; }

@keyframes nctc-contour { to { background-position: 300% 0; } }
@keyframes nctc-pulse {
	70% { box-shadow: 0 0 0 10px rgba(61, 220, 111, 0); }
	100% { box-shadow: 0 0 0 0 rgba(61, 220, 111, 0); }
}
@keyframes nctc-reflet { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* ================================================================ [nct_concours_autres] */
.nctc-autres {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 2px solid transparent;
	border-image: var(--nctc-degrade) 1;
}
.nctc-autres__entete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin-bottom: 22px;
}
.nctc-autres .nctc-titre { margin: 0; }
.nctc-lien-tous {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 20px;
	border: 2px solid var(--nctc-rouge);
	border-radius: 999px;
	color: var(--nctc-rouge) !important;
	font-weight: 700;
	text-decoration: none !important;
	transition: background .2s, color .2s;
}
.nctc-lien-tous:hover { background: var(--nctc-rouge); color: #fff !important; }
.nctc-grille--autres { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.nctc-grille--autres .nctc-carte { min-height: 250px; }
.nctc-grille--autres .nctc-carte__titre { font-size: 19px; }
.nctc-grille--autres .nctc-badge { font-size: 20px; }

@media (max-width: 640px) {
	.nctc-une { border-radius: 16px; }
	.nctc-une__cadre { min-height: 0; border-radius: 13px; }
	.nctc-une__cadre::after { background: linear-gradient(to top, rgba(10,10,10,.95) 0%, rgba(10,10,10,.82) 55%, rgba(10,10,10,.4) 100%); }
	.nctc-une__contenu { padding: 26px 20px; gap: 12px; }
	.nctc .nctc-compte--une { grid-template-columns: repeat(4, 1fr); width: 100%; }
	.nctc-une__bouton { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 960px) {
	.nctc-layout { grid-template-columns: 1fr; gap: 28px; }
	.nctc-side { position: static; }
}
@media (max-width: 640px) {
	.nctc-carte--large { grid-column: auto; min-height: 300px; }
	.nctc-hero { min-height: 340px; }
	.nctc-hero__body { padding: 22px 18px; }
	.nctc-hero .nctc-badge { font-size: 24px; }
	.nctc-carte-form { padding: 20px 16px; }
	.nctc-champs { grid-template-columns: 1fr; }
	.nctc-compte strong { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.nctc * { transition: none !important; animation: none !important; }
}
