/* ==========================================================
   RSB Deals — v6 "Premium"
   Clean, élégant : blanc cassé, encre profonde, accent violet
   en dégradé, bordures fines, Space Grotesk.
   ========================================================== */

.tmd-landing, .tmd-grille, .tmd-filtres, .tmd-popup, .tmd-proposer {
	--encre: #0F1115;
	--gris: #6B7080;
	--fond: #FAFAF9;
	--ligne: #E9E9EC;
	--accent: #E11D6F;
	--accent-2: #FF6FA5;
	--degrade: linear-gradient(92deg, #E11D6F, #FF6FA5);
	font-family: 'Inter', system-ui, sans-serif;
	color: var(--encre);
}

/* ---------- HERO ÉPURÉ ---------- */
.tmd-hero {
	position: relative;
	text-align: center;
	padding: 60px 24px 68px;
	overflow: hidden;
	background: linear-gradient(180deg, #FFFFFF 0%, #FFF3F8 130%);
	border: 1px solid #F6E1EB;
	border-radius: 26px;
	box-shadow: 0 24px 60px rgba(225, 29, 111, 0.07);
	margin-top: 6px;
}
/* halos discrets + trame de points en fond */
.tmd-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(42% 42% at 82% 12%, rgba(225, 29, 111, 0.10) 0%, transparent 70%),
		radial-gradient(38% 38% at 12% 82%, rgba(255, 111, 165, 0.09) 0%, transparent 70%),
		radial-gradient(rgba(15, 17, 21, 0.05) 1px, transparent 1px);
	background-size: auto, auto, 24px 24px;
	-webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 55%, transparent 100%);
	mask-image: radial-gradient(70% 70% at 50% 40%, #000 55%, transparent 100%);
	pointer-events: none;
}
.tmd-hero > * { position: relative; }

/* éléments ludiques retirés */
.tmd-nuage, .tmd-avion-flottant, .tmd-avatars { display: none !important; }

.tmd-preuve {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: #fff;
	border: 1px solid var(--ligne);
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--gris);
	margin: 0 0 30px;
}
.tmd-preuve::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px rgba(225, 29, 111, 0.15);
}

.tmd-titre {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: clamp(38px, 6.2vw, 66px);
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin: 0 0 22px;
	color: var(--encre);
}
.tmd-mot-violet {
	background: var(--degrade);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.tmd-sous-titre {
	max-width: 520px;
	margin: 0 auto 26px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--gris);
}

/* Formulaire d'inscription */
.tmd-form {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	max-width: 520px;
	margin: 0 auto;
}
.tmd-form input[type="email"] {
	flex: 1 1 250px;
	padding: 14px 20px;
	border: 1px solid var(--ligne);
	border-radius: 12px;
	font-size: 15.5px;
	font-family: inherit;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tmd-form input[type="email"]:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 4px rgba(225, 29, 111, 0.12);
	outline: none;
}
.tmd-form button {
	padding: 14px 28px;
	border: none;
	border-radius: 12px;
	background: var(--degrade);
	color: #fff;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 15.5px;
	cursor: pointer;
	box-shadow: 0 8px 26px rgba(225, 29, 111, 0.30);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tmd-form button:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(225, 29, 111, 0.38); }
.tmd-note { font-size: 13px; color: var(--gris); margin-top: 14px; }
.tmd-confirmation {
	display: inline-block;
	background: #EFEDFF;
	color: var(--accent);
	border: 1px solid rgba(225, 29, 111, 0.3);
	padding: 12px 22px;
	border-radius: 12px;
	font-weight: 600;
}

/* ---------- SECTIONS ---------- */
.tmd-section-deals, .tmd-etapes, .tmd-faq { margin: 52px 0; }
.tmd-section-deals h2, .tmd-etapes h2, .tmd-faq h2, .tmd-cta-final h2 {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: clamp(27px, 4vw, 40px);
	letter-spacing: -0.025em;
	text-align: center;
	margin: 0 0 28px;
}

/* ---------- GRILLE DE DEALS ---------- */
.tmd-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 20px;
}
.tmd-billet {
	background: #fff;
	border: 1px solid var(--ligne);
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 8px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tmd-billet:hover {
	transform: translateY(-3px);
	border-color: rgba(225, 29, 111, 0.35);
	box-shadow: 0 16px 40px rgba(15, 17, 21, 0.10);
}

.tmd-photo {
	position: relative;
	height: 185px;
	border-radius: 12px;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
.tmd-photo-degrade {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(60% 80% at 80% 10%, rgba(255, 111, 165, 0.5) 0%, transparent 70%),
		linear-gradient(150deg, #17151F 0%, #2A2350 100%);
}
.tmd-photo-ville {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 23px;
	color: rgba(255, 255, 255, 0.94);
	letter-spacing: 0.02em;
	text-align: center;
	padding: 0 12px;
}

/* Badge prix : verre sombre */
.tmd-badge-prix {
	position: absolute;
	top: 10px; right: 10px;
	background: #fff;
	border-radius: 14px;
	padding: 8px 14px;
	display: flex;
	align-items: center;
	gap: 9px;
	box-shadow: 0 6px 20px rgba(15, 17, 21, 0.22);
}
.tmd-badge-prix .tmd-prix {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 21px;
	letter-spacing: -0.01em;
	color: var(--encre);
}
.tmd-badge-prix .tmd-prix small { font-size: 11.5px; font-weight: 600; color: var(--gris); }
.tmd-badge-prix .tmd-prix-barre {
	font-size: 13px;
	color: #A2A7B0;
	text-decoration: line-through;
}
.tmd-promo-chip {
	background: var(--degrade);
	color: #fff;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 13px;
	padding: 4px 9px;
	border-radius: 999px;
}
.tmd-tag-ville {
	position: absolute;
	left: 10px; bottom: 10px;
	background: rgba(10, 11, 16, 0.6);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	border-radius: 999px;
	padding: 5px 13px;
	font-size: 13px;
	font-weight: 500;
}
.tmd-badge-expire, .tmd-badge-temp, .tmd-badge-communaute {
	position: absolute;
	top: 10px; left: 10px;
	border-radius: 999px;
	padding: 6px 12px;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 12.5px;
}
.tmd-badge-expire { background: rgba(10,11,16,0.72); color: #FF8F8F; border: 1px solid rgba(255,143,143,0.4); }
.tmd-badge-temp { background: rgba(10,11,16,0.72); color: #FFB35C; border: 1px solid rgba(255,179,92,0.45); }
.tmd-badge-communaute { background: rgba(10,11,16,0.72); color: #C9BDFF; border: 1px solid rgba(201,189,255,0.4); }

.tmd-billet-bas {
	padding: 15px 10px 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.tmd-route {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.01em;
}
.tmd-avion { color: var(--accent); font-size: 14px; }

.tmd-visa-ligne { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tmd-visa-badge, .tmd-escale-badge {
	font-size: 11.5px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid transparent;
}
.tmd-escale-badge { background: #F3F3F5; color: var(--gris); border-color: var(--ligne); }
.tmd-escale-badge.est-direct { background: #EDFBF2; color: #157347; border-color: #CBEEDA; }
.tmd-visa-schengen { background: #EAF2FF; color: #1D4ED8; border-color: #D3E3FD; }
.tmd-visa-libre    { background: #EDFBF2; color: #157347; border-color: #CBEEDA; }
.tmd-visa-autre    { background: #FFF4E5; color: #9A6200; border-color: #FBE3BC; }
.tmd-alerte { font-size: 14px; cursor: help; }

.tmd-meta {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: var(--gris);
}
.tmd-compagnie { font-weight: 500; }
.tmd-datevol { font-weight: 600; color: var(--encre); }

/* Votes */
.tmd-votes {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--ligne);
	border-radius: 999px;
	padding: 4px;
	width: fit-content;
	background: var(--fond);
}
.tmd-vote {
	border: none;
	background: #fff;
	width: 30px; height: 30px;
	border-radius: 50%;
	font-size: 13px;
	cursor: pointer;
	border: 1px solid var(--ligne);
	transition: transform 0.12s ease, border-color 0.12s ease;
}
.tmd-vote:hover { transform: scale(1.1); border-color: var(--accent); }
.tmd-votes-nb {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 14px;
	min-width: 32px;
	text-align: center;
}
.tmd-votes.a-deja-vote { animation: tmd-secoue 0.4s; }
@keyframes tmd-secoue {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}
.tmd-billet.est-hot .tmd-votes-nb { color: #E2541B; }
.tmd-billet.est-cold { opacity: 0.65; filter: saturate(0.5); }
.tmd-billet.est-cold .tmd-votes-nb { color: var(--gris); }

.tmd-bouton {
	margin-top: auto;
	display: block;
	text-align: center;
	background: var(--encre);
	color: #fff !important;
	text-decoration: none;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 15px;
	padding: 12px;
	border-radius: 12px;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}
.tmd-bouton:hover { background: var(--accent); box-shadow: 0 8px 24px rgba(225, 29, 111, 0.3); }
.tmd-billet.est-expire { opacity: 0.55; filter: grayscale(0.6); }
.tmd-vide { color: var(--gris); font-style: italic; }

.tmd-voir-tout { text-align: center; margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tmd-voir-tout a, .tmd-ouvrir-proposer {
	display: inline-block;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 15px;
	color: var(--encre);
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--ligne);
	border-radius: 999px;
	padding: 12px 26px;
	cursor: pointer;
	transition: all 0.15s ease;
	margin-left: 0;
}
.tmd-voir-tout a:hover, .tmd-ouvrir-proposer:hover { border-color: var(--accent); color: var(--accent); transform: none; }

/* ---------- COMMENT ÇA MARCHE ---------- */
.tmd-etapes-flex {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 36px;
	align-items: center;
}
.tmd-etapes-pile { display: flex; flex-direction: column; gap: 14px; }
.tmd-etape {
	background: #fff;
	border: 1px solid var(--ligne);
	border-radius: 16px;
	padding: 22px 24px;
	display: flex;
	gap: 18px;
	align-items: flex-start;
	transform: none !important;
	transition: border-color 0.15s ease;
}
.tmd-etape:hover { border-color: rgba(225, 29, 111, 0.35); }
.tmd-etape-num {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 26px;
	line-height: 1.2;
	background: var(--degrade);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	flex-shrink: 0;
}
.tmd-etape h3 {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 17px;
	margin: 0 0 6px;
	color: var(--encre);
}
.tmd-etape .tmd-emoji { margin-right: 6px; }
.tmd-etape p, .tmd-etape.tmd-etape-3 p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--gris); }

.tmd-etapes-visuel {
	background: #fff;
	border: 1px solid var(--ligne);
	border-radius: 20px;
	padding: 10px;
	text-align: center;
}
.tmd-etapes-visuel-img {
	border-radius: 14px;
	height: 300px;
	background:
		radial-gradient(70% 60% at 80% 15%, rgba(255, 111, 165, 0.45) 0%, transparent 70%),
		radial-gradient(60% 60% at 15% 85%, rgba(225, 29, 111, 0.35) 0%, transparent 70%),
		linear-gradient(150deg, #101018 0%, #221D42 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #fff;
}
.tmd-etapes-visuel-img .tmd-drapeau { font-size: 44px; }
.tmd-etapes-visuel-img strong {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 20px;
	letter-spacing: 0.01em;
}
.tmd-cta-pilule {
	display: inline-block;
	margin: 16px auto 8px;
	background: var(--degrade);
	color: #fff !important;
	text-decoration: none;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 15px;
	padding: 13px 30px;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	box-shadow: 0 8px 26px rgba(225, 29, 111, 0.3);
	transition: transform 0.15s ease;
}
.tmd-cta-pilule:hover { transform: translateY(-1px); }

/* ---------- FAQ ---------- */
.tmd-faq { max-width: 720px; margin-left: auto; margin-right: auto; }
.tmd-faq details {
	background: #fff;
	border: 1px solid var(--ligne);
	border-radius: 14px;
	padding: 16px 22px;
	margin-bottom: 10px;
	transition: border-color 0.15s ease;
}
.tmd-faq details[open] { border-color: rgba(225, 29, 111, 0.4); }
.tmd-faq summary {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.tmd-faq summary::after { content: "+"; font-size: 20px; color: var(--accent); font-weight: 500; }
.tmd-faq details[open] summary::after { content: "–"; }
.tmd-faq p { margin: 10px 0 0; color: var(--gris); line-height: 1.65; font-size: 15px; }

/* ---------- CTA FINAL ---------- */
.tmd-cta-final {
	position: relative;
	overflow: hidden;
	background: #101018;
	color: #fff;
	text-align: center;
	border-radius: 24px;
	padding: 56px 24px;
	margin: 52px 0 20px;
}
.tmd-cta-final::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(45% 55% at 85% 10%, rgba(255, 111, 165, 0.28) 0%, transparent 70%),
		radial-gradient(45% 55% at 10% 90%, rgba(225, 29, 111, 0.24) 0%, transparent 70%);
}
.tmd-cta-final > * { position: relative; }
.tmd-cta-final h2 { color: #fff; margin-bottom: 12px; }
.tmd-cta-final > p { color: rgba(255, 255, 255, 0.65); margin: 0 0 30px; font-size: 16.5px; }
.tmd-cta-final .tmd-form input[type="email"] { border-color: transparent; }
.tmd-cta-final .tmd-note { color: rgba(255, 255, 255, 0.5); }
.tmd-cta-final .tmd-confirmation { background: rgba(255,255,255,0.1); color: #C9BDFF; border-color: rgba(201,189,255,0.35); }

/* ---------- FILTRES ---------- */
.tmd-filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	background: rgba(255, 255, 255, 0.8);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 1px solid var(--ligne);
	border-radius: 16px;
	padding: 14px 20px;
	margin-bottom: 26px;
	width: fit-content;
}
.tmd-filtres label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 13.5px;
	color: var(--gris);
}
.tmd-filtres select {
	border: 1px solid var(--ligne);
	border-radius: 10px;
	padding: 8px 12px;
	font-family: inherit;
	font-size: 14px;
	background: #fff;
	color: var(--encre);
	cursor: pointer;
}

/* ---------- POPUPS ---------- */
.tmd-popup { position: fixed; inset: 0; z-index: 999; }
.tmd-popup-fond {
	position: absolute;
	inset: 0;
	background: rgba(10, 11, 16, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.tmd-popup-boite {
	position: relative;
	max-width: 560px;
	margin: 5vh auto;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 20px;
	border: 1px solid var(--ligne);
	box-shadow: 0 30px 80px rgba(10, 11, 16, 0.4);
}
.tmd-popup-fermer {
	position: absolute;
	top: 12px; right: 12px;
	z-index: 2;
	border: 1px solid rgba(255,255,255,0.2);
	width: 36px; height: 36px;
	border-radius: 50%;
	background: rgba(10, 11, 16, 0.6);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 15px;
	cursor: pointer;
}
.tmd-popup-photo {
	height: 195px;
	background-size: cover;
	background-position: center;
	border-radius: 20px 20px 0 0;
}
.tmd-popup-photo.sans-photo {
	background:
		radial-gradient(60% 80% at 80% 10%, rgba(255, 111, 165, 0.5) 0%, transparent 70%),
		linear-gradient(150deg, #17151F 0%, #2A2350 100%);
	height: 96px;
}
.tmd-popup-corps { padding: 24px 28px 28px; }
.tmd-popup-titre {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 21px;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
}
.tmd-popup-contenu { color: #3E4148; line-height: 1.65; font-size: 15px; }
.tmd-popup-contenu ul { padding-left: 20px; }
.tmd-popup-liens { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.tmd-popup-reserver { margin-top: 0; }
.tmd-popup-reserver.secondaire {
	background: #fff;
	color: var(--accent) !important;
	border: 1px solid rgba(225, 29, 111, 0.45);
}
.tmd-popup-reserver.secondaire:hover { background: #F4F2FF; box-shadow: none; }

/* ---------- FORMULAIRE DE PROPOSITION ---------- */
.tmd-proposer { max-width: 640px; margin: 0 auto; }
.tmd-form-proposer { background: transparent; border-radius: 0; padding: 0; box-shadow: none; text-align: center; }
.tmd-form-grille {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
	text-align: left;
	margin-bottom: 20px;
}
.tmd-form-grille label {
	display: block;
	font-weight: 600;
	font-size: 13.5px;
	margin-bottom: 6px;
	color: var(--gris);
}
.tmd-form-grille input, .tmd-form-grille textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--ligne);
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	box-sizing: border-box;
}
.tmd-form-grille input:focus, .tmd-form-grille textarea:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 4px rgba(225, 29, 111, 0.1);
	outline: none;
}
.tmd-pleine-largeur { grid-column: 1 / -1; }
.tmd-piege { position: absolute !important; left: -9999px; }
.tmd-note-sombre { font-size: 13px; color: var(--gris); margin-top: 12px; }

/* ---------- ACCESSIBILITÉ & MOBILE ---------- */
@media (prefers-reduced-motion: reduce) {
	.tmd-billet, .tmd-form button, .tmd-cta-pilule, .tmd-vote { transition: none; }
	.tmd-billet:hover, .tmd-form button:hover, .tmd-cta-pilule:hover { transform: none; }
	.tmd-votes.a-deja-vote { animation: none; }
}
@media (max-width: 880px) {
	.tmd-etapes-flex { grid-template-columns: 1fr; }
	.tmd-etapes-visuel { order: -1; }
	.tmd-etapes-visuel-img { height: 200px; }
}
@media (max-width: 560px) {
	.tmd-hero { padding: 38px 18px 44px; border-radius: 20px; }
	.tmd-titre { font-size: 31px; }
	.tmd-sous-titre { font-size: 15.5px; margin-bottom: 22px; }
	.tmd-preuve { font-size: 12.5px; padding: 7px 14px; margin-bottom: 20px; }
	.tmd-form button { width: 100%; }
	.tmd-section-deals, .tmd-etapes, .tmd-faq { margin: 40px 0; }
	.tmd-grille { grid-template-columns: 1fr; }
	.tmd-form-grille { grid-template-columns: 1fr; }
	.tmd-filtres { width: 100%; border-radius: 16px; }
	.tmd-popup-boite { margin: 0; max-height: 100vh; min-height: 100vh; border-radius: 0; }
	.tmd-popup-photo { border-radius: 0; }
}
