/* ==========================================================================
   BBC News FR — Feuille de style principale
   Inspirée du design Hespress : bandeau bleu, fil "EN CONTINU", grille 2 colonnes
   ========================================================================== */

:root {
	--bbc-primary: #1a3fa0;
	--bbc-primary-dark: #122c75;
	--bbc-accent: #d4af37;
	--bbc-text: #1c1c1c;
	--bbc-text-light: #5a5a5a;
	--bbc-border: #e4e4e4;
	--bbc-bg: #f5f6f8;
	--bbc-white: #ffffff;
	--font-main: 'Libre Franklin', 'Source Sans 3', Arial, sans-serif;
	--font-heading: 'Playfair Display', 'Source Serif 4', 'Georgia', serif;
	--font-condensed: 'Roboto Condensed', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-main);
	color: var(--bbc-text);
	background: var(--bbc-bg);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 16px;
	width: 100%;
}

/* ---------- Top bar (date / langue) ---------- */
.bbc-topbar {
	background: var(--bbc-primary);
	color: #fff;
}
.bbc-topbar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
}
.bbc-logo {
	display: flex;
	align-items: center;
	height: 40px;
}
.bbc-logo-img {
	height: 38px;
	width: auto;
	max-width: 260px;
}
.bbc-logo img.custom-logo {
	height: 40px;
	width: auto;
}
.bbc-topbar-right {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 14px;
}
.bbc-lang-switch a {
	padding: 2px 8px;
	border: 1px solid rgba(255,255,255,.5);
	border-radius: 3px;
	font-size: 12px;
}

/* ---------- Navigation principale ---------- */
.bbc-nav {
	background: var(--bbc-white);
	border-bottom: 1px solid var(--bbc-border);
}
.bbc-nav .container { display: flex; align-items: center; }
.bbc-nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 22px;
	padding: 14px 0;
	cursor: pointer;
}
.bbc-nav ul {
	list-style: none;
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	width: 100%;
}
.bbc-nav ul li {
	flex: 0 1 auto;
	min-width: 0;
}
.bbc-nav ul li a {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 16px 12px;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .2px;
	color: var(--bbc-text);
	border-bottom: 3px solid transparent;
	line-height: 1.25;
	white-space: nowrap;
}
.bbc-nav ul li a:hover,
.bbc-nav ul li.current-menu-item a {
	color: var(--bbc-primary);
	border-bottom-color: var(--bbc-accent);
	text-decoration: none;
}

/* ---------- Bannière publicitaire (placeholder) ---------- */
.bbc-banner {
	max-width: 1180px;
	margin: 18px auto;
	padding: 0 16px;
}
.bbc-banner-inner {
	background: linear-gradient(90deg, var(--bbc-primary), var(--bbc-primary-dark));
	border-radius: 4px;
	min-height: 90px;
	display: flex;
	align-items: center;
	color: #fff;
	padding: 18px 24px;
	font-family: var(--font-condensed);
}

/* ---------- Bandeau "Actualités en bref" (ticker défilant) ---------- */
.bbc-ticker {
	background: var(--bbc-primary-dark);
	color: #fff;
	overflow: hidden;
}
.bbc-ticker-inner {
	display: flex;
	align-items: center;
	height: 38px;
	gap: 14px;
}
.bbc-ticker-label {
	background: var(--bbc-accent);
	color: var(--bbc-primary-dark);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 2px;
	flex-shrink: 0;
	white-space: nowrap;
}
.bbc-ticker-track-wrap {
	overflow: hidden;
	flex: 1;
	position: relative;
	height: 100%;
}
.bbc-ticker-track {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 48px;
	position: absolute;
	white-space: nowrap;
	align-items: center;
	height: 100%;
	animation: bbc-ticker-scroll 30s linear infinite;
}
.bbc-ticker-track:hover { animation-play-state: paused; }
.bbc-ticker-track li { flex-shrink: 0; }
.bbc-ticker-track a {
	color: #fff;
	font-size: 14px;
	opacity: 0.92;
}
.bbc-ticker-track a:hover { opacity: 1; text-decoration: underline; }
@keyframes bbc-ticker-scroll {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
	.bbc-ticker-track { animation: none; }
}

/* ---------- Bloc Hero : 1 article principal + 3 secondaires ---------- */
.bbc-hero-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 20px;
	margin-bottom: 32px;
}

.bbc-hero-main {
	position: relative;
	display: block;
	border-radius: 6px;
	overflow: hidden;
}
.bbc-hero-main .thumb img {
	width: 100%;
	height: 480px;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.bbc-hero-main:hover .thumb img { transform: scale(1.04); }
.bbc-hero-main .caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	background: linear-gradient(transparent, rgba(0,0,0,.88) 70%);
	color: #fff;
	padding: 70px 26px 24px;
}
.bbc-hero-main .caption h2 {
	font-size: 28px;
	font-weight: 900;
	margin: 0 0 8px;
	line-height: 1.25;
}
.bbc-hero-excerpt {
	font-size: 14px;
	line-height: 1.5;
	color: #e2e5f3;
	margin: 0;
	max-width: 560px;
}

.bbc-hero-secondary {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.bbc-hero-sec-item {
	display: flex;
	gap: 12px;
	background: var(--bbc-white);
	border-radius: 6px;
	overflow: hidden;
	flex: 1;
}
.bbc-hero-sec-item .thumb {
	flex-shrink: 0;
	width: 120px;
}
.bbc-hero-sec-item .thumb img {
	width: 120px;
	height: 100%;
	min-height: 100px;
	object-fit: cover;
}
.bbc-hero-sec-text {
	padding: 10px 12px 10px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.bbc-hero-sec-text h3 {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
}
.category-badge-sm {
	font-size: 10px;
	padding: 2px 6px;
	margin-bottom: 4px;
}

/* ---------- EN CONTINU : section pleine largeur en bas de page ---------- */
.bbc-livefeed-fullwidth {
	background: var(--bbc-white);
	border-top: 1px solid var(--bbc-border);
	padding: 10px 0 40px;
	margin-top: 10px;
}
.bbc-livefeed-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
.bbc-livefeed-item {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px 14px 10px 10px;
	background: var(--bbc-bg);
	border-radius: 4px;
	border-left: 3px solid var(--bbc-primary);
}
.bbc-livefeed-thumb {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 4px;
	overflow: hidden;
}
.bbc-livefeed-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bbc-livefeed-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0; /* permet au texte de se tronquer correctement dans la grille */
}
.bbc-livefeed-item time {
	color: var(--bbc-primary);
	font-weight: 700;
	font-size: 13px;
}
.bbc-livefeed-item span {
	font-size: 14px;
	line-height: 1.4;
	color: var(--bbc-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bbc-livefeed-item:hover { background: #eceffa; }

/* ---------- Grille d'articles secondaires (2 colonnes x N) ---------- */
.bbc-article-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
	margin-bottom: 30px;
}
.bbc-card { background: var(--bbc-white); border-radius: 4px; overflow: hidden; }
.bbc-card .thumb img {
	width: 100%;
	height: 230px;
	object-fit: cover;
}
.bbc-card .card-body { padding: 14px 4px; }
.bbc-card h3 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
}
.category-badge {
	display: inline-block;
	background: var(--bbc-primary);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 2px;
	margin-bottom: 8px;
}
.bbc-hero-main .caption .category-badge {
	background: var(--bbc-accent);
	color: var(--bbc-primary-dark);
}

/* ---------- Section title (Vidéos, etc.) ---------- */
.bbc-section-title {
	font-size: 22px;
	font-weight: 900;
	text-transform: uppercase;
	border-bottom: 3px solid var(--bbc-primary);
	display: inline-block;
	padding-bottom: 6px;
	margin: 30px 0 18px;
}

/* ---------- Description de rubrique (archive) ---------- */
.archive-description {
	font-size: 16px;
	line-height: 1.6;
	color: var(--bbc-text-light);
	margin: 0 0 24px;
	max-width: 760px;
}
.archive-description p { margin: 0; }

/* ---------- Layout contenu + sidebar (pages internes) ---------- */
.bbc-content-layout {
	display: grid;
	grid-template-columns: 2.2fr 1fr;
	gap: 30px;
	padding: 24px 0 50px;
}
.bbc-sidebar .widget {
	background: var(--bbc-white);
	border: 1px solid var(--bbc-border);
	border-radius: 4px;
	padding: 16px;
	margin-bottom: 20px;
}
.widget-title {
	font-size: 16px;
	font-weight: 900;
	text-transform: uppercase;
	border-bottom: 2px solid var(--bbc-primary);
	padding-bottom: 8px;
	margin: 0 0 12px;
}

/* ---------- Article unique ---------- */
.single-article h1.entry-title {
	font-size: 30px;
	font-weight: 900;
	line-height: 1.3;
	margin: 0 0 12px;
}
.entry-meta {
	color: var(--bbc-text-light);
	font-size: 14px;
	margin-bottom: 18px;
}
.entry-content { font-size: 17px; line-height: 1.8; }
.entry-content p { margin-bottom: 18px; }
.entry-content img { border-radius: 4px; margin: 10px 0; }
.entry-content h2 {
	font-size: 24px;
	margin: 32px 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--bbc-border);
}
.entry-content h3 {
	font-size: 20px;
	margin: 24px 0 12px;
}
.entry-content ul,
.entry-content ol {
	margin: 0 0 18px;
	padding-left: 22px;
}
.entry-content li { margin-bottom: 6px; }

/* ---------- Commentaires ---------- */
.comments-area {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid var(--bbc-border);
}
.comments-area .widget-title {
	font-size: 20px;
	margin-bottom: 18px;
}
.comment-list { margin: 0 0 24px; }
.comment-list .comment {
	background: var(--bbc-white);
	border: 1px solid var(--bbc-border);
	border-radius: 6px;
	padding: 16px 18px;
	margin-bottom: 14px;
}
.comment-list .comment-author .fn {
	font-weight: 700;
	font-style: normal;
	color: var(--bbc-primary);
}
.comment-list .comment-metadata {
	font-size: 12px;
	color: var(--bbc-text-light);
	margin-bottom: 8px;
}
.comment-list .comment-metadata a { color: inherit; }
.comment-list .comment-content p { margin: 0; font-size: 15px; line-height: 1.6; }
.comment-list .children { list-style: none; margin: 14px 0 0; padding-left: 24px; }

/* Formulaire de commentaire : seul le champ "nom" est visible, le champ
   e-mail technique requis par WordPress reste caché à l'écran. */
.bbc-hidden-field { display: none !important; }

#respond.comment-respond {
	background: var(--bbc-white);
	border: 1px solid var(--bbc-border);
	border-radius: 6px;
	padding: 22px 24px;
}
#respond .comment-reply-title {
	font-size: 19px;
	margin: 0 0 16px;
}
.comment-form-author label,
.comment-form-comment label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 6px;
}
.comment-form-author input,
.comment-form-comment textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--bbc-border);
	border-radius: 4px;
	font-family: var(--font-main);
	font-size: 15px;
	margin-bottom: 16px;
}
.comment-form-author input:focus,
.comment-form-comment textarea:focus {
	outline: none;
	border-color: var(--bbc-primary);
}
.comment-form-comment textarea { resize: vertical; min-height: 120px; }
#respond .form-submit { margin: 0; }
#respond .submit {
	background: var(--bbc-primary);
	color: #fff;
	border: none;
	padding: 11px 24px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: background 0.2s ease;
}
#respond .submit:hover { background: var(--bbc-primary-dark); }

/* ---------- Pied de page ---------- */
.bbc-footer {
	background: var(--bbc-primary-dark);
	color: #d8dcec;
	margin-top: 40px;
}
.bbc-footer .container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	padding: 40px 16px;
}
.bbc-footer .widget-title { color: #fff; border-bottom-color: var(--bbc-accent); }
.bbc-footer-desc {
	font-size: 14px;
	line-height: 1.6;
	color: #c5cce8;
	margin: 0 0 16px;
}
.bbc-social-links {
	display: flex;
	gap: 10px;
}
.bbc-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,0.15);
	color: #fff;
	flex-shrink: 0;
	transition: background 0.2s ease, color 0.2s ease;
}
.bbc-social-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	display: block;
	pointer-events: none;
}
.bbc-social-icon:hover {
	background: var(--bbc-accent);
	color: var(--bbc-primary-dark);
	text-decoration: none;
}
.bbc-social-icon-empty {
	opacity: 0.35;
	cursor: default;
}
.bbc-social-links-hint {
	font-size: 12px;
	color: #8b93bd;
	margin: 8px 0 0;
	font-style: italic;
}
.bbc-footer-bottom {
	background: #0d1f54;
	text-align: center;
	padding: 16px;
	font-size: 13px;
	color: #aab2d6;
}

/* ---------- Pagination ---------- */
.pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 20px 0;
}
.pagination .page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--bbc-border);
	border-radius: 3px;
	background: #fff;
}
.pagination .current {
	background: var(--bbc-primary);
	color: #fff;
	border-color: var(--bbc-primary);
}

/* ---------- Responsive ---------- */

/* Tablette large (iPad, écrans intermédiaires) */
@media (max-width: 1024px) {
	.bbc-content-layout {
		grid-template-columns: 1fr;
	}
	.bbc-hero-grid { grid-template-columns: 1fr; }
	.bbc-hero-main .thumb img { height: 380px; }
	.bbc-hero-secondary { flex-direction: row; }
	.bbc-hero-sec-item { flex-direction: column; }
	.bbc-hero-sec-item .thumb { width: 100%; }
	.bbc-hero-sec-item .thumb img { width: 100%; height: 140px; }
	.bbc-footer .container { grid-template-columns: repeat(2, 1fr); }
}

/* Tablette / petit ordinateur portable */
@media (max-width: 900px) {
	.container { padding: 0 14px; }
	.bbc-article-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.bbc-card .thumb img { height: 190px; }
	.bbc-nav ul li a { padding: 14px 4px; font-size: 12px; }
	.bbc-livefeed-grid { grid-template-columns: 1fr; }
}

/* Mobile (téléphones standards) */
@media (max-width: 700px) {
	.bbc-topbar .container { height: auto; padding: 10px 14px; flex-wrap: wrap; row-gap: 6px; }
	.bbc-logo-img { height: 30px; }
	.bbc-topbar-right { font-size: 12px; gap: 8px; }

	.bbc-nav-toggle { display: block; order: 2; }
	.bbc-nav .container { flex-wrap: wrap; padding: 0 14px; }
	.bbc-nav ul {
		display: none;
		flex-direction: column;
		width: 100%;
	}
	.bbc-nav ul.is-open { display: flex; }
	.bbc-nav ul li { width: 100%; }
	.bbc-nav ul li a {
		padding: 12px 4px;
		border-bottom: 1px solid var(--bbc-border);
		justify-content: flex-start;
		text-align: left;
	}

	.bbc-ticker-label { font-size: 10px; padding: 4px 8px; }
	.bbc-ticker-track a { font-size: 13px; }

	.bbc-banner { margin: 12px auto; }
	.bbc-banner-inner { padding: 16px; min-height: 70px; font-size: 13px; }

	.bbc-article-grid { grid-template-columns: 1fr; gap: 18px; }
	.bbc-card .thumb img { height: 220px; }

	.bbc-hero-grid { gap: 16px; }
	.bbc-hero-main .thumb img { height: 240px; }
	.bbc-hero-main .caption { padding: 36px 16px 14px; }
	.bbc-hero-main .caption h2 { font-size: 19px; }
	.bbc-hero-excerpt { display: none; }
	.bbc-hero-secondary { flex-direction: column; }
	.bbc-hero-sec-item { flex-direction: row; }
	.bbc-hero-sec-item .thumb { width: 90px; }
	.bbc-hero-sec-item .thumb img { width: 90px; height: 100%; }
	.bbc-hero-sec-text h3 { font-size: 14px; }

	.bbc-livefeed-fullwidth { padding: 6px 0 28px; }
	.bbc-livefeed-grid { grid-template-columns: 1fr; gap: 10px; }

	.bbc-section-title { font-size: 19px; }

	.single-article h1.entry-title { font-size: 24px; }
	.entry-content { font-size: 16px; }

	.bbc-footer .container { grid-template-columns: 1fr; padding: 28px 16px; gap: 20px; }
}

/* Petits mobiles (≤ 380px) */
@media (max-width: 380px) {
	.bbc-logo-img { height: 26px; max-width: 180px; }
	.bbc-topbar-right span { display: none; } /* masque la date pour gagner de la place */
	.bbc-nav ul li a { font-size: 13px; }
	.bbc-hero-main .caption h2 { font-size: 17px; }
	.bbc-ticker-label { display: none; }
}

/* Très grands écrans : on évite que tout s'étire trop */
@media (min-width: 1400px) {
	.container { max-width: 1280px; }
}
