/* =========================================================
   CARID ASBL — Feuille de style principale
   ========================================================= */

:root {
	--navy: #0b2545;
	--navy-light: #16386b;
	--navy-lighter: #1f4a8a;
	--accent: #e98300;
	--accent-dark: #c56c00;
	--red: #c0392b;
	--bg: #ffffff;
	--bg-muted: #f4f6f9;
	--text: #1c2b3a;
	--text-light: #5b6b7b;
	--border: #e2e6ea;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
	--shadow-lg: 0 20px 45px rgba(11, 37, 69, 0.16);
	--container: 1180px;
	--font-heading: 'Poppins', 'Segoe UI', sans-serif;
	--font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--text);
	background: var(--bg);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	color: var(--navy);
	line-height: 1.2;
	margin: 0 0 16px;
	font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 16px; }
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus {
	position: fixed; top: 10px; left: 10px; z-index: 9999;
	background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 6px;
}

.section { padding: 88px 0; }
.section--muted { background: var(--bg-muted); }
.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 12px;
}
.center { text-align: center; }
h2.center { margin-left: auto; margin-right: auto; max-width: 640px; }
p.center { text-align: center; }
.content-narrow { max-width: 780px; margin: 0 auto; }

.link-arrow {
	font-weight: 600;
	color: var(--navy);
	border-bottom: 2px solid var(--accent);
	padding-bottom: 2px;
	white-space: nowrap;
}
.link-arrow:hover { color: var(--accent); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: #ffb15c; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	border: 2px solid transparent;
	transition: all 0.2s ease;
	white-space: nowrap;
}
.btn--donate { background: var(--accent); color: #fff; }
.btn--donate:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn--outline-light { border-color: rgba(255,255,255,0.8); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: 8px 18px; font-size: 0.82rem; }
.btn--lg { padding: 17px 34px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cfdcef; font-size: 0.82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar__contact { display: flex; gap: 22px; }
.topbar__contact span { display: inline-flex; align-items: center; gap: 6px; }
.topbar__contact .icon { width: 14px; height: 14px; opacity: 0.85; }
.topbar__actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 6px; align-items: center; }
.lang-switch a { color: #cfdcef; font-weight: 600; }
.lang-switch a.is-active { color: #fff; text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 500;
	border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 28px; }
.site-logo { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; }
.site-logo__wordmark { position: relative; display: inline-flex; align-items: baseline; font-family: var(--font-heading); font-weight: 800; font-size: 1.7rem; letter-spacing: 0.01em; }
.site-logo__cari { color: var(--navy); }
.site-logo__d { color: var(--accent); }
.site-logo__leaf { position: absolute; top: -0.7em; left: 2.55em; color: #4c9a2a; }
.site-logo__leaf .icon { width: 13px; height: 13px; transform: rotate(20deg); }
.site-logo__sub { font-weight: 600; font-size: 0.85rem; color: var(--text-light); }
.site-logo--footer .site-logo__cari { color: #fff; }
.site-logo--footer .site-logo__sub { color: #9fb1c8; }
.site-logo img { max-height: 64px; width: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
	font-weight: 600;
	font-size: 0.96rem;
	color: var(--navy);
	padding: 8px 0;
	border-bottom: 2px solid transparent;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a { border-color: var(--accent); color: var(--accent); }

.nav-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: -16px;
	background: #fff;
	min-width: 230px;
	box-shadow: var(--shadow-lg);
	border-radius: var(--radius-sm);
	padding: 10px;
	z-index: 100;
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu a { display: block; padding: 10px 12px; border-radius: 6px; font-weight: 500; color: var(--text); }
.nav-menu .sub-menu a:hover { background: var(--bg-muted); color: var(--accent); }

.site-header__cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); display: block; }

.nav-backdrop {
	position: fixed; inset: 0; background: rgba(6, 20, 40, 0.55);
	z-index: 390; opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: flex-end;
	color: #fff;
	overflow: hidden;
}
.hero--interior { min-height: 46vh; }
.hero--don { min-height: 36vh; align-items: center; text-align: center; }
.hero__media {
	position: absolute; inset: 0;
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lighter) 100%);
	background-size: cover;
	background-position: center;
}
.hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(6,20,40,0.88) 0%, rgba(6,20,40,0.45) 55%, rgba(6,20,40,0.35) 100%);
}
.hero__content { position: relative; z-index: 2; padding-bottom: 64px; max-width: 820px; }
.hero--interior .hero__content, .hero--don .hero__content { padding-bottom: 0; max-width: 720px; margin: 0 auto; }
.hero__content h1 { color: #fff; margin-bottom: 18px; }
.hero__content .eyebrow { color: #ffb15c; }
.hero__lead { font-size: 1.15rem; color: #dbe6f5; max-width: 620px; }
.hero__lead-dark { font-size: 1.1rem; color: var(--text-light); max-width: 620px; }
.hero--don .hero__lead { margin: 0 auto 8px; }
.hero__actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Hero carousel ---------- */
.hero-carousel__track { position: absolute; inset: 0; }
.hero-slide {
	position: absolute; inset: 0; display: flex; align-items: flex-end;
	opacity: 0; visibility: hidden; transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide__media {
	position: absolute; inset: -2%;
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lighter) 100%);
	background-size: cover; background-position: center;
	filter: saturate(1.08) brightness(0.97);
}
.hero-carousel__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
	width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); color: #fff; cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.hero-carousel__arrow:hover { background: rgba(255,255,255,0.28); }
.hero-carousel__arrow svg { width: 22px; height: 22px; }
.hero-carousel__arrow--prev { left: 28px; }
.hero-carousel__arrow--next { right: 28px; }
.hero-carousel__dots {
	position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 6;
	display: flex; gap: 10px;
}
.hero-carousel__dot {
	width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; padding: 0;
	cursor: pointer; transition: all .25s ease;
}
.hero-carousel__dot.is-active { background: #fff; width: 26px; border-radius: 6px; }
.hero-carousel__dot:hover { background: rgba(255,255,255,0.75); }

/* ---------- Icons (replace emoji) ---------- */
.icon { width: 18px; height: 18px; display: inline-block; vertical-align: -4px; flex-shrink: 0; }
.icon-inline { width: 15px; height: 15px; vertical-align: -2px; margin-right: 2px; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--navy-light); color: #fff; padding: 44px 0; }
.stats-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-family: var(--font-heading); font-size: 2.3rem; font-weight: 800; color: #ffb15c; }
.stat__label { font-size: 0.92rem; color: #cfdcef; }

/* ---------- Page hero (interior pages without image) ---------- */
.page-hero { background: var(--bg-muted); padding: 64px 0 48px; text-align: left; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--bg-muted); font-size: 0.85rem; color: var(--text-light); padding: 14px 0; }
.breadcrumb a { color: var(--text-light); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Mission intro ---------- */
.mission-intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mission-intro__media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Domains grid ---------- */
.domains-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.domains-grid--six { grid-template-columns: repeat(3, 1fr); }
.domain-card {
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
	padding: 30px 24px; text-align: center; transition: transform .2s ease, box-shadow .2s ease;
}
.domain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.domain-card__icon {
	width: 64px; height: 64px; border-radius: 50%; background: var(--bg-muted);
	display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--accent);
}
.domain-card__icon .icon { width: 28px; height: 28px; }
.domain-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.domain-card p { color: var(--text-light); font-size: 0.92rem; margin: 0; }

/* ---------- Section heading row ---------- */
.section-heading-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 20px; flex-wrap: wrap; }
.section-heading-row h2 { margin: 0; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
	background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
	display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 2.6; overflow: hidden; background: var(--bg-muted); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy), var(--navy-lighter)); }
.card .badge {
	position: absolute; top: 14px; left: 14px; background: var(--accent); color: #fff;
	font-size: 0.72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__meta { font-size: 0.82rem; color: var(--text-light); margin: 0; font-weight: 600; }
.card__title { margin: 4px 0 8px; font-size: 1.15rem; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { color: var(--text-light); font-size: 0.92rem; margin: 0 0 10px; flex: 1; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.team-card { text-align: center; }
.team-card__media { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px; box-shadow: var(--shadow); }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; }
.team-card__media--placeholder { display: flex; align-items: center; justify-content: center; background: var(--bg-muted); width: 100%; height: 100%; color: var(--navy-lighter); opacity: 0.45; }
.team-card__media--placeholder .icon { width: 56px; height: 56px; }
.team-card__name { margin-bottom: 4px; font-size: 1.05rem; }
.team-card__role { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

.team-single { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.team-single__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.team-single__links a { color: var(--navy); font-weight: 600; }
.team-single__links a:hover { color: var(--accent); }

/* ---------- Feature band (photo plein format, style CRS) ---------- */
.feature-band {
	position: relative; min-height: 480px; display: flex; align-items: center;
	background-size: cover; background-position: center; color: #fff; overflow: hidden;
}
.feature-band__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(6,20,40,0.94) 0%, rgba(6,20,40,0.62) 50%, rgba(6,20,40,0.25) 100%);
}
.feature-band__overlay--right {
	background: linear-gradient(270deg, rgba(6,20,40,0.94) 0%, rgba(6,20,40,0.62) 50%, rgba(6,20,40,0.25) 100%);
}
.feature-band__content { position: relative; z-index: 2; max-width: 560px; padding: 64px 0; }
.feature-band__content h2 { color: #fff; }
.feature-band__content p { color: #dbe6f5; }
.feature-band .eyebrow { color: #ffb15c; }
.feature-band--right .feature-band__content--right { margin-left: auto; text-align: right; }

/* ---------- Partners ---------- */
.partners__row { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; margin-top: 30px; opacity: 0.65; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }

/* ---------- Pre-footer CTA ---------- */
.pre-footer-cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-lighter) 100%); color: #fff; padding: 56px 0; }
.pre-footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.pre-footer-cta h3 { color: #fff; margin-bottom: 8px; }
.pre-footer-cta p { color: #cfdcef; margin: 0; max-width: 520px; }

/* ---------- Footer ---------- */
.site-footer { background: #071b34; color: #b9c8dc; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-col p { color: #9fb1c8; font-size: 0.92rem; }
.footer-widget__title, .footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-menu li, .footer-widget ul li { margin-bottom: 10px; }
.footer-menu a, .footer-widget a { color: #b9c8dc; font-size: 0.92rem; }
.footer-menu a:hover, .footer-widget a:hover { color: var(--accent); }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
	width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08);
	display: flex; align-items: center; justify-content: center; color: #fff;
}
.social-links a .icon { width: 17px; height: 17px; margin: 0; vertical-align: 0; }
.social-links a:hover { background: var(--accent); }
.newsletter-form { display: flex; gap: 8px; margin-bottom: 18px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 6px; border: none; font-size: 0.9rem; }
.newsletter-form .btn { flex-shrink: 0; }
.footer-address { font-size: 0.88rem; line-height: 1.8; }
.footer-bottom { padding: 20px 0; }
.footer-bottom__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: #7d90a8; }

/* ---------- Forms ---------- */
.carid-form { display: flex; flex-direction: column; gap: 16px; }
.carid-form label { font-weight: 600; font-size: 0.9rem; color: var(--navy); display: flex; flex-direction: column; gap: 6px; }
.carid-form input, .carid-form textarea {
	font-family: inherit; font-size: 0.95rem; padding: 12px 14px; border: 1px solid var(--border);
	border-radius: var(--radius-sm); font-weight: 400; color: var(--text); background: #fff;
}
.carid-form input:focus, .carid-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233,131,0,0.15); }

.don-form-card, .contact-info { background: #fff; }
.don-layout, .contact-layout, .project-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: start; }
.don-form-card {
	background: var(--bg-muted); border-radius: var(--radius); padding: 32px; position: sticky; top: 110px;
}
.form-note { font-size: 0.85rem; color: var(--text-light); }
.form-success { text-align: center; padding: 20px 0; }
.form-success h3 { color: var(--navy); }

/* ---------- Project / facts ---------- */
.project-facts { background: var(--bg-muted); border-radius: var(--radius); padding: 30px; position: sticky; top: 110px; }
.fact-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.fact-list li:last-child { border-bottom: none; }

/* ---------- Impact grid (donation page) ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0 36px; }
.impact-card { background: var(--bg-muted); border-radius: var(--radius-sm); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.impact-card strong { color: var(--accent); font-size: 1.3rem; font-family: var(--font-heading); }
.impact-card span { font-size: 0.88rem; color: var(--text-light); }

/* ---------- Reports ---------- */
.report-list { display: flex; flex-direction: column; gap: 14px; }
.report-row {
	display: flex; align-items: center; justify-content: space-between; background: #fff;
	border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 26px; gap: 20px; flex-wrap: wrap;
}
.report-row h3 { margin: 0 0 4px; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 44px; display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
	border-radius: 8px; border: 1px solid var(--border); font-weight: 600;
}
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Entry content ---------- */
.entry-content h2, .entry-content h3 { margin-top: 32px; }
.entry-content p { color: var(--text); }
.entry-content img { border-radius: var(--radius); margin: 20px 0; }
.page-featured-image img { border-radius: var(--radius); margin-bottom: 30px; }
.entry-header { margin-bottom: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.main-nav {
		position: fixed; top: 0; right: -320px; height: 100vh; width: 300px; background: #fff;
		flex-direction: column; padding: 100px 28px 28px; box-shadow: var(--shadow-lg); transition: right .25s ease; z-index: 400;
	}
	.main-nav.is-open { right: 0; }
	.nav-menu { flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
	.nav-menu > li { width: 100%; }
	.nav-menu .sub-menu { position: static; box-shadow: none; display: none; padding-left: 12px; }
	.nav-menu li.is-open > .sub-menu { display: block; }
	.nav-toggle { display: flex; }
	.site-header__cta .btn--donate { display: none; }
	.stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
	.domains-grid { grid-template-columns: repeat(2, 1fr); }
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.team-grid { grid-template-columns: repeat(2, 1fr); }
	.mission-intro__grid, .don-layout, .contact-layout, .project-layout, .team-single { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.don-form-card, .project-facts { position: static; }
}
@media (max-width: 600px) {
	.topbar__contact span:nth-child(2) { display: none; }
	.card-grid, .team-grid, .domains-grid { grid-template-columns: 1fr; }
	.stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr; }
	.pre-footer-cta__inner { text-align: center; justify-content: center; }
	.impact-grid { grid-template-columns: 1fr; }
	.site-header__inner { height: 72px; }
	.hero-carousel__arrow { width: 38px; height: 38px; }
	.hero-carousel__arrow svg { width: 18px; height: 18px; }
	.hero-carousel__arrow--prev { left: 12px; }
	.hero-carousel__arrow--next { right: 12px; }
	.feature-band { min-height: 420px; }
	.feature-band__content { max-width: 100%; }
	.feature-band--right .feature-band__content--right { margin-left: 0; text-align: left; }
	.feature-band__overlay--right { background: linear-gradient(0deg, rgba(6,20,40,0.95) 0%, rgba(6,20,40,0.6) 60%, rgba(6,20,40,0.35) 100%); }
}
