/* ── Road2Luxe — card-destination.css ───────────────────────────
   Composant Card Destination : circuit r2l_circuit (3 gabarits).
   .r2l-card (vedette) · .r2l-card--xl · .r2l-card--compact
   Chargement conditionnel (front-page, single circuit, archive, taxo).
   Tokens depuis tokens.css — pas de redéclaration de palette ici.
   ──────────────────────────────────────────────────────────────── */


/* ═══════════════════════════════════════════════════════════════
   BASE — gabarit vedette (défaut)
   ═══════════════════════════════════════════════════════════════ */

.r2l-card {
	display: flex;
	flex-direction: column;
	background: var(--r2l-sable-0);
	border: 1px solid var(--r2l-sable-4);
	border-radius: var(--r2l-card-radius);
	overflow: hidden;
	width: 372px;
	max-width: 100%;
	padding: var(--r2l-card-pad);
	box-shadow: var(--r2l-card-shadow);
	transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
}

.r2l-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px -18px rgba(44,40,42,.28);
}

/* Tête */
.r2l-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 6px 4px 16px;
}

.r2l-card__titre {
	font-family: var(--r2l-font-titres);
	font-weight: 700;
	font-size: 1.3rem;
	line-height: 1.18;
	letter-spacing: -.005em;
	color: var(--r2l-charbon);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.r2l-card__titre a {
	color: inherit;
	text-decoration: none;
}

.r2l-card__pays {
	display: block;
	font-size: .82rem;
	color: var(--r2l-terre-corps);
	margin-top: 4px;
}

/* Frame image */
.r2l-card__frame {
	position: relative;
	display: block;
	aspect-ratio: var(--r2l-card-ratio);
	border-radius: 14px;
	overflow: hidden;
	background: var(--r2l-charbon);
}

.r2l-card__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.22,.61,.36,1);
}

.r2l-card:hover .r2l-card__frame img {
	transform: scale(1.045);
}

/* Voile dégradé bas */
.r2l-card__frame::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(44,40,42,.5) 0%, rgba(44,40,42,0) 42%);
	pointer-events: none;
}

/* Pills sur la photo */
.r2l-frame__pills {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.r2l-ipill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .72rem;
	font-weight: 600;
	color: #fff;
	background: rgba(44,40,42,.44);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,.16);
	padding: 6px 11px;
	border-radius: 100px;
	white-space: nowrap;
}

.r2l-ipill svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
}

/* ── Badge vignette (#17) — haut-droite de l'image ──────────────────
   Set fermé : Dernières places (auto) · Offre en cours · Nouveau · Coup de cœur.
   Charbon plein + crème. Jamais d'orange, jamais d'opacité (réservée --complet). */
.r2l-card__badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	padding: 6px 11px;
	border-radius: 100px;
	background: var(--r2l-charbon);
	color: var(--r2l-sable-1);
	font-family: var(--r2l-font-corps);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 2px 10px rgba(44,40,42,.28);
}

/* Pied de card */
.r2l-card__foot {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 18px 4px 4px;
}

.r2l-card__departs-label {
	display: block;
	font-size: .62rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--r2l-terre-sec);
	margin-bottom: 11px;
}

/* ── Chips voyage (scoped pour ne pas conflitter avec .r2l-chip global) ── */

.r2l-card .r2l-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.r2l-card .r2l-chip {
	/* Reset du .r2l-chip global (pill arrondi) → format colonne */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 104px;
	padding: 9px 13px;
	border: 1px solid var(--r2l-sable-4);
	border-radius: 11px;
	background: var(--r2l-sable-1);
	text-decoration: none;
	transition: border-color .2s ease, transform .2s ease;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

/* Neutralise le ::before de .r2l-chip--urgent global (point via pseudo-élément) */
.r2l-card .r2l-chip--urgent::before {
	display: none;
}

.r2l-card a.r2l-chip:hover {
	border-color: var(--r2l-charbon);
	transform: translateY(-1px);
}

.r2l-card .r2l-chip__date {
	font-family: var(--r2l-font-titres);
	font-weight: 700;
	font-size: .9rem;
	line-height: 1;
	color: var(--r2l-charbon);
	display: flex;
	align-items: center;
	gap: 6px;
}

.r2l-chip__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--r2l-charbon);
	display: inline-block;
	flex-shrink: 0;
}

/* Marqueur « dernières places » — Phosphor warning, coloré par currentColor
   (charbon, hérité de .r2l-chip__date). Le triangle a un centre optique bas
   → léger remontage pour s'aligner sur la hauteur de capitale du Cabinet. */
.r2l-card .r2l-chip__warn {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	transform: translateY(-.5px);
}

.r2l-card .r2l-chip__places {
	font-size: .72rem;
	line-height: 1.3;
	color: var(--r2l-terre-corps);
}

/* ── État « dernières places » — chip claire ────────────────────────────────
   ⚠️ TEST EN COURS (arbitrage Aaron) — dérogation à la règle « Flamingo =
   CTA uniquement » (tokens.css:3, CLAUDE.md §11). À trancher puis nettoyer.

   Deux leviers indépendants, un token chacun :
     --r2l-urgent-picto  → couleur du triangle
     --r2l-urgent-texte  → couleur de « Plus que N places »
   Pour ne passer QU'UN des deux en orange, remettre l'autre à
   var(--r2l-charbon). Variante actuelle : les deux en Flamingo. */
.r2l-card .r2l-chip--urgent {
	--r2l-urgent-picto: var(--r2l-flamingo);
	--r2l-urgent-texte: var(--r2l-flamingo);
}

.r2l-card .r2l-chip--urgent .r2l-chip__warn {
	color: var(--r2l-urgent-picto);
}

.r2l-card .r2l-chip--urgent .r2l-chip__places {
	color: var(--r2l-urgent-texte);
	font-weight: 700;
}

.r2l-card .r2l-chip--complet {
	opacity: .45;
	background: var(--r2l-sable-3);
	cursor: default;
}

.r2l-card .r2l-chip--complet .r2l-chip__date {
	text-decoration: line-through;
}

/* ── Chip « +N » (#18) — profondeur du calendrier. Lien vers la section départs. ── */
.r2l-card .r2l-chip--more {
	min-width: 0;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	padding-inline: 16px;
}

.r2l-card .r2l-chip__more {
	font-family: var(--r2l-font-titres);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	letter-spacing: -.01em;
	color: var(--r2l-terre-sec);
	transition: color .2s ease;
}

.r2l-card a.r2l-chip--more:hover .r2l-chip__more {
	color: var(--r2l-charbon);
}

/* Pied bas : prix + CTA */
.r2l-card__footrow {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-top: auto;
	padding-top: 16px;
}

/* Prix — surcharge des tailles de base (components.css) dans le contexte card */
.r2l-card .r2l-prix__label {
	font-size: .64rem;
	letter-spacing: .02em;
	margin-bottom: 5px;
}

.r2l-card .r2l-prix__montant {
	font-size: 1.55rem;
	letter-spacing: -.01em;
	line-height: 1;
}

.r2l-card .r2l-prix__unite {
	font-size: .78rem;
	margin-top: 1px; /* #19 — resserre montant ↔ « / pilote » */
	line-height: 1;
}

/* CTA — soulignement déployé depuis le centre (même pattern que la hero search-bar) */
.r2l-card__cta {
	position: relative;
	font-family: var(--r2l-font-corps);
	font-weight: 700;
	font-size: .9rem;
	color: var(--r2l-charbon);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
}

.r2l-card__cta .r2l-arrow {
	color: var(--r2l-flamingo);
}

.r2l-card__cta::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 1.5px;
	background: var(--r2l-flamingo);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .3s cubic-bezier(.22,.61,.36,1);
}

.r2l-card__cta:hover::after {
	transform: scaleX(1);
}

/* Focus visible */
.r2l-card a:focus-visible,
.r2l-card__titre a:focus-visible {
	outline: 2px solid var(--r2l-flamingo);
	outline-offset: 3px;
	border-radius: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   MODIFICATEUR XL — mise en avant / hero
   ═══════════════════════════════════════════════════════════════ */

.r2l-card--xl {
	width: min(456px, 82vw);
	padding: var(--r2l-card-pad);
	border-radius: var(--r2l-card-radius);
}

.r2l-card--xl .r2l-card__head {
	padding: 8px 6px 20px;
}

.r2l-card--xl .r2l-card__titre {
	font-size: 1.6rem;
	min-height: calc(1.18em * 2); /* réserve 2 lignes → image à hauteur constante quelle que soit la longueur du titre */
}

.r2l-card--xl .r2l-card__pays {
	font-size: .9rem;
	margin-top: 5px;
}

.r2l-card--xl .r2l-card__frame {
	border-radius: 16px;
}

.r2l-card--xl .r2l-frame__pills {
	left: 14px;
	right: 14px;
	bottom: 14px;
	gap: 8px;
	/* flex-wrap:wrap hérité de la base — labels courts + white-space:nowrap garantissent 1 ligne */
}

.r2l-card--xl .r2l-card__badge {
	top: 14px;
	right: 14px;
	font-size: .72rem;
	padding: 7px 13px;
}

.r2l-card--xl .r2l-ipill {
	font-size: .78rem;
	padding: 7px 13px;
}

.r2l-card--xl .r2l-ipill svg {
	width: 14px;
	height: 14px;
}

.r2l-card--xl .r2l-card__foot {
	padding: 22px 6px 6px;
}

.r2l-card--xl .r2l-card__departs-label {
	font-size: .66rem;
	margin-bottom: 13px;
}

.r2l-card--xl .r2l-chip {
	min-width: 118px;
	padding: 11px 15px;
}

.r2l-card--xl .r2l-chip__date {
	font-size: 1rem;
}

.r2l-card--xl .r2l-chip__warn {
	width: 14px;
	height: 14px;
}

.r2l-card--xl .r2l-chip__places {
	font-size: .78rem;
}

.r2l-card--xl .r2l-prix__montant {
	font-size: 1.9rem;
}

.r2l-card--xl .r2l-prix__unite {
	font-size: .9rem;
}

.r2l-card--xl .r2l-prix__label {
	font-size: .7rem;
}

.r2l-card--xl .r2l-card__cta {
	font-size: 1rem;
}

.r2l-card--xl .r2l-card__footrow {
	padding-top: 20px; /* remplace margin-top — margin-top:auto de la base assure l'ancrage en bas */
}

/* L'encart XL porte ses specs en pills sur l'image → la liste en ligne est muette.
   Révélée uniquement là où l'image passe nue (mobile « Nos voyages »). */
.r2l-card--xl .r2l-card__specs {
	display: none;
}


/* ═══════════════════════════════════════════════════════════════
   MODIFICATEUR COMPACT — image en tête, pleine largeur
   Sert à la fois de card mobile et de card compacte desktop.
   Image bord à bord, 4:3, nue (aucune surcouche) → contenu dessous.
   ═══════════════════════════════════════════════════════════════ */

.r2l-card--compact {
	width: 320px;
	padding: 0; /* image bord à bord — le padding passe sur __foot */
	border-radius: 16px;
}

/* Image en tête : pleine largeur, 4:3, coins hauts arrondis via overflow du parent */
.r2l-card--compact .r2l-card__frame {
	aspect-ratio: 4 / 3;
	border-radius: 0;
	flex: 0 0 auto;
}

/* Ni voile ni pills sur l'image compacte — les specs passent dans le corps */
.r2l-card--compact .r2l-card__frame::after {
	content: none;
}

/* Corps */
.r2l-card--compact .r2l-card__foot {
	padding: 18px;
}

/* Eyebrow = pays (réutilise .r2l-card__pays, remonté au-dessus du titre en compact) */
.r2l-card--compact .r2l-card__pays {
	font-size: .68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--r2l-terre-sec);
	margin: 0 0 8px;
}

.r2l-card--compact .r2l-card__titre {
	font-size: 1.14rem;
	margin: 0 0 12px;
}

/* Specs en ligne — séparateurs points, jamais de pills */
.r2l-card__specs {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .02em;
}

.r2l-card__specs li {
	color: var(--r2l-terre-corps);
}

.r2l-card__specs li:first-child {
	color: var(--r2l-charbon);
	font-weight: 700;
}

.r2l-card__specs li:not(:first-child) {
	position: relative;
	padding-left: 11px;
	margin-left: 11px;
}

.r2l-card__specs li:not(:first-child)::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--r2l-sable-4);
}

.r2l-card--compact .r2l-card__departs-label {
	font-size: .6rem;
	margin-bottom: 9px;
}

/* ── Départs : scroll horizontal (pas de wrap → cards courtes) ──
   Le fondu de débordement est posé sur le conteneur, pas sur le scroller. */
.r2l-card--compact .r2l-card__departs {
	position: relative;
}

.r2l-card--compact .r2l-card__departs::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 0;
	width: 28px;
	height: 100%;
	pointer-events: none;
	background: linear-gradient(to right, transparent 0%, var(--r2l-sable-0) 100%);
}

.r2l-card--compact .r2l-chips {
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	gap: 8px;
}

.r2l-card--compact .r2l-chips::-webkit-scrollbar {
	display: none;
}

.r2l-card--compact .r2l-chip {
	flex: 0 0 auto;
	scroll-snap-align: start;
	min-width: 96px;
	padding: 8px 12px;
}

/* Scroller horizontal → la date ne wrappe plus (chips de hauteur égale) */
.r2l-card--compact .r2l-chip__date {
	font-size: .84rem;
	white-space: nowrap;
}

.r2l-card--compact .r2l-chip__warn {
	width: 12px;
	height: 12px;
}

.r2l-card--compact .r2l-chip__places {
	font-size: .69rem;
	white-space: nowrap;
}

/* margin-top:auto hérité de la base — ancre le footrow en bas si la card est étirée */
.r2l-card--compact .r2l-card__footrow {
	padding-top: 16px;
	gap: 12px;
}

.r2l-card--compact .r2l-prix__label {
	font-size: .62rem;
	margin-bottom: 3px;
}

.r2l-card--compact .r2l-prix__montant {
	font-size: 1.4rem;
}

.r2l-card--compact .r2l-prix__unite {
	font-size: .74rem;
	margin-top: 3px;
}

.r2l-card--compact .r2l-card__cta {
	font-size: .84rem;
}


/* ═══════════════════════════════════════════════════════════════
   CARD XL — ADAPTATION MOBILE
   Déclenché quand la carte est en dessous de ~400px
   (card = 82vw → 82% × 520px ≈ 426px, inner ≈ 382px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 520px) {
	.r2l-card--xl .r2l-prix__montant {
		font-size: 1.5rem;
	}

	/* Prix sur sa ligne, CTA dessous — évite tout débordement */
	.r2l-card--xl .r2l-card__footrow {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}


/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITÉ
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
	.r2l-card,
	.r2l-card__frame img,
	.r2l-card__cta::after,
	.r2l-card .r2l-chip,
	.r2l-circuit__departs-list .r2l-chip {
		transition: none !important;
	}
}


/* ═══════════════════════════════════════════════════════════════
   LISTE DÉPARTS — single-r2l_circuit (section hors card)
   Tous les départs à venir du circuit courant.
   ═══════════════════════════════════════════════════════════════ */

.r2l-circuit__voyages {
	margin-block: var(--r2l-s-12);
}

.r2l-circuit__voyages-titre {
	font-family: var(--r2l-font-titres);
	font-size: var(--r2l-text-h2);
	font-weight: var(--r2l-fw-h2);
	color: var(--r2l-charbon);
	margin: 0 0 var(--r2l-s-6);
}

.r2l-circuit__departs-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Chips départs — même DNA que .r2l-card .r2l-chip, scoped ici */
.r2l-circuit__departs-list .r2l-chip {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 140px;
	padding: 11px 15px;
	border: 1px solid var(--r2l-sable-4);
	border-radius: 11px;
	background: var(--r2l-sable-1);
	text-decoration: none;
	transition: border-color .2s ease, transform .2s ease;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.r2l-circuit__departs-list a.r2l-chip:hover {
	border-color: var(--r2l-charbon);
	transform: translateY(-1px);
}

.r2l-circuit__departs-list .r2l-chip__date {
	font-family: var(--r2l-font-titres);
	font-weight: 700;
	font-size: 1rem;
	color: var(--r2l-charbon);
	display: flex;
	align-items: center;
	gap: 6px;
}

.r2l-circuit__departs-list .r2l-chip__places {
	font-size: .78rem;
	color: var(--r2l-terre-corps);
}

.r2l-circuit__departs-list .r2l-chip--urgent .r2l-chip__places {
	color: var(--r2l-charbon);
	font-weight: 700;
}

/* Neutralise le ::before global (point via pseudo-élément) */
.r2l-circuit__departs-list .r2l-chip--urgent::before {
	display: none;
}

.r2l-circuit__departs-list .r2l-chip--complet {
	opacity: .45;
	background: var(--r2l-sable-3);
	cursor: default;
}

.r2l-circuit__departs-list .r2l-chip--complet .r2l-chip__date {
	text-decoration: line-through;
}
