/* SF Wait Times — styles du widget (couleurs SensationsFortes : #FF5223 / #200A07) */

.sf-waittimes,
.sf-crowd {
	font-family: inherit;
	color: inherit;
}

/* ---- Grille des attractions ---- */
.sfwt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
	margin: 12px 0;
}

.sfwt-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-left: 4px solid #888;
}

.sfwt-name {
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1.2;
}

.sfwt-wait {
	font-weight: 800;
	font-size: 1.05rem;
	white-space: nowrap;
}

.sfwt-wait small {
	font-weight: 600;
	font-size: 0.7rem;
	opacity: 0.7;
}

/* Couleurs selon l'attente */
.sfwt-low    { border-left-color: #22c55e; }
.sfwt-mid    { border-left-color: #eab308; }
.sfwt-high   { border-left-color: #f97316; }
.sfwt-xhigh  { border-left-color: #ef4444; }
.sfwt-closed { border-left-color: #6b7280; opacity: 0.55; }
.sfwt-closed .sfwt-wait { font-size: 0.85rem; font-weight: 600; opacity: 0.8; }

/* ---- Pied + états ---- */
.sfwt-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px;
	font-size: 0.75rem;
	opacity: 0.7;
	margin-top: 8px;
}

.sfwt-empty,
.sfwt-error,
.sfwt-stale {
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 0.9rem;
}

.sfwt-empty  { background: rgba(255, 255, 255, 0.05); }
.sfwt-error  { background: rgba(239, 68, 68, 0.12); }
.sfwt-stale  { background: rgba(234, 179, 8, 0.14); margin-bottom: 10px; font-size: 0.8rem; }
.sfwt-ts     { opacity: 0.85; }

/* ---- Affluence : prévision par jour de la semaine ---- */
.sfwt-fc-head {
	font-weight: 800;
	font-size: 1rem;
	margin-bottom: 2px;
}

.sfwt-fc-sub {
	font-size: 0.78rem;
	opacity: 0.65;
	margin-bottom: 10px;
}

.sfwt-fc-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
}

.sfwt-fc-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 12px 4px;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	text-align: center;
	color: #fff;
	background: #4b5563; /* défaut (sera remplacé par le niveau) */
}

.sfwt-fc-name { font-weight: 800; font-size: 0.85rem; }
.sfwt-fc-date { font-size: 0.7rem; opacity: 0.85; }

/* La couleur d'affluence remplit toute la case : la pastille n'est plus utile. */
.sfwt-fc-dot { display: none; }

.sfwt-fc-level { font-size: 0.72rem; font-weight: 600; line-height: 1.1; }

.sfwt-fc-today {
	box-shadow: 0 0 0 2px #FF5223;
}

/* Couleurs selon le niveau d'affluence (1 = calme … 5 = très chargé) — toute la case */
.sfwt-fc-l1 { background: #1f9d57; }
.sfwt-fc-l2 { background: #5fae2e; }
.sfwt-fc-l3 { background: #c08a12; }
.sfwt-fc-l4 { background: #d2691e; }
.sfwt-fc-l5 { background: #c0392b; }

/* Responsive : la grille passe sur 2 lignes en mobile */
@media (max-width: 560px) {
	.sfwt-fc-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Paragraphe météo (2 lignes) ---- */
.sfwt-weather-note {
	margin: 10px 0 0;
	font-size: 0.85rem;
	line-height: 1.5;
	opacity: 0.85;
}

/* ---- Blocs texte SEO (sobres, au-dessus de chaque donnée) ---- */
.sfwt-seo {
	margin: 6px 0 14px;
	/* Marge horizontale alignée sur le retrait interne des widgets (5vw),
	   pour que le texte ne soit pas collé au bord gauche de la page. */
	padding-left: clamp(16px, 5vw, 76px);
	padding-right: clamp(16px, 5vw, 76px);
	font-size: 0.95rem;
	line-height: 1.6;
	opacity: 0.92;
}

.sfwt-seo h2 {
	font-size: 1.15rem;
	margin: 0 0 6px;
}

.sfwt-seo p { margin: 0 0 8px; }

/* ---- Barre de tri des temps d'attente ---- */
.sfwt-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
}

.sfwt-sort-label {
	font-size: 0.85rem;
	font-weight: 600;
	opacity: 0.8;
}

.sfwt-sort {
	font: inherit;
	font-size: 0.85rem;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	padding: 6px 10px;
	cursor: pointer;
	max-width: 100%;
}

.sfwt-sort option { color: #1a1a1a; }
