/* =========================================================
   Croissant-Rouge Comorien — Feuille de style principale
   ========================================================= */

:root {
	--red-primary: #C41E3A;
	--red-dark: #8B0000;
	--red-light: #E8B4B8;
	--green-primary: #006400;
	--green-light: #E8F5E9;
	--gold: #C9A227;
	--dark: #1a1a2e;
	--gray-100: #f8f9fa;
	--gray-200: #e9ecef;
	--gray-300: #dee2e6;
	--gray-600: #6c757d;
	--gray-800: #343a40;
	--white: #ffffff;
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
	--shadow-md: 0 4px 12px rgba(0,0,0,0.1);
	--shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
	--radius: 8px;
	--radius-lg: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--gray-800); line-height: 1.6; background: var(--white); width: 100%; position: relative; }
img, svg { max-width: 100%; height: auto; display: block; }
iframe, video, embed, object { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p, a, li, td, th { overflow-wrap: break-word; word-wrap: break-word; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }

/* ============ TOP BAR ============ */
.top-bar { background: var(--dark); color: var(--white); padding: 8px 0; font-size: 13px; }
.top-bar-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 24px; flex-wrap: wrap; }
.top-bar-left a, .top-bar-right a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color .2s; }
.top-bar-left a:hover, .top-bar-right a:hover { color: var(--red-primary); }
.top-bar-left i, .top-bar-right i { margin-right: 6px; color: var(--red-primary); }
.top-bar-right { display: flex; gap: 16px; }
.top-bar-right a { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.1); transition: all .2s; }
.top-bar-right a i { margin: 0; }
.top-bar-right a:hover { background: var(--red-primary); color: var(--white); }

/* ============ HEADER ============ */
.main-header { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; transition: box-shadow .3s; }
.header-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.logo img { max-height: 64px; width: auto; }
.logo-icon { width: 56px; height: 56px; background: var(--red-primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; flex-shrink: 0; }
.logo-icon::after { content: ''; width: 36px; height: 36px; background: var(--white); border-radius: 50%; position: absolute; }
.logo-icon::before { content: ''; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 22px solid var(--red-primary); position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%,-55%); }
.logo-text { display: flex; flex-direction: column; }
.logo-text .main-title { font-size: 18px; font-weight: 800; color: var(--red-primary); line-height: 1.2; letter-spacing: -.3px; }
.logo-text .sub-title { font-size: 11px; color: var(--gray-600); font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }
.custom-logo-link { display: flex; align-items: center; }

/* ============ NAV ============ */
.main-nav { display: flex; align-items: center; gap: 4px; list-style: none; flex-wrap: wrap; }
.main-nav > li { position: relative; }
.main-nav a { color: var(--gray-800); text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: var(--radius); transition: all .2s; display: inline-flex; align-items: center; gap: 4px; }
.main-nav > li > a:hover { color: var(--red-primary); background: var(--gray-100); }
.main-nav > li.current-menu-item > a,
.main-nav > li.current-menu-ancestor > a,
.main-nav > li.current_page_item > a { color: var(--red-primary); position: relative; }
.main-nav > li.current-menu-item > a::after,
.main-nav > li.current_page_item > a::after { content: ''; position: absolute; bottom: 2px; left: 16px; right: 16px; height: 3px; background: var(--red-primary); border-radius: 2px; }
.nav-caret { font-size: 10px !important; margin-left: 2px; }
.main-nav .nav-dropdown, .main-nav li.menu-item-has-children { position: relative; }
.main-nav .sub-menu.dropdown-menu { list-style: none; position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 260px; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s ease; border: 1px solid var(--gray-200); z-index: 100; }
.main-nav li.menu-item-has-children:hover > .sub-menu.dropdown-menu,
.main-nav li.menu-item-has-children.is-open > .sub-menu.dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu.dropdown-menu a { display: block; padding: 10px 20px; font-size: 13px; font-weight: 500; color: var(--gray-800); border-radius: 0; }
.sub-menu.dropdown-menu a:hover { background: var(--gray-100); color: var(--red-primary); }
.sub-menu.dropdown-menu li a::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 10px; color: var(--red-primary); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all .2s; line-height: 1.2; }
.btn-primary { background: var(--red-primary); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--red-primary); border: 2px solid var(--red-primary); }
.btn-outline:hover { background: var(--red-primary); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: #b8941f; transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--red-primary); }
.btn-white:hover { background: var(--gray-100); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; color: var(--gray-800); cursor: pointer; padding: 8px; }

@media (max-width: 1180px) and (min-width: 969px) {
	.header-container { padding: 0 16px; gap: 12px; }
	.main-nav { gap: 0; }
	.main-nav a { padding: 10px 11px; font-size: 13px; }
	.logo-text .sub-title { display: none; }
	.btn-outline.btn { padding: 9px 14px; font-size: 13px; }
}

@media (max-width: 968px) {
	.mobile-menu-btn { display: block; }
	.main-nav { position: fixed; top: 0; right: -320px; width: min(300px, 85vw); height: 100vh; height: 100dvh; background: var(--white); flex-direction: column; align-items: stretch; padding: 90px 20px 20px; box-shadow: var(--shadow-lg); transition: right .3s ease; overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 1100; }
	.main-nav.open { right: 0; }
	.main-nav > li { width: 100%; }
	.main-nav a { width: 100%; padding: 14px 12px; }
	.sub-menu.dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--gray-100); display: none; margin: 0 0 8px 12px; }
	.main-nav li.menu-item-has-children.is-open .sub-menu.dropdown-menu { display: block; }
	.header-container { height: 70px; }
}

/* ============ HERO SLIDER (accueil) ============ */
.hero-slider { position: relative; min-height: clamp(480px, 85vh, 680px); overflow: hidden; }
.hero-slides { position: relative; min-height: clamp(480px, 85vh, 680px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease; display: flex; align-items: center; }
.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; z-index: 2; }
.hero-slide-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,46,.92) 0%, rgba(139,0,0,.85) 100%); background-size: cover; background-position: center; }
.hero-slide-bg-default { background: linear-gradient(135deg, rgba(26,26,46,.95) 0%, rgba(139,0,0,.9) 100%); }
.hero-slide-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,46,.72) 0%, rgba(139,0,0,.68) 100%); }
.hero-slide-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(196,30,58,.25), transparent 55%); }
.hero-slide-pattern { position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-slide-content { position: relative; z-index: 3; max-width: 760px; margin: 0 auto; padding: 100px 24px 140px; width: 100%; color: var(--white); text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); backdrop-filter: blur(10px); padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 24px; border: 1px solid rgba(255,255,255,.2); opacity: 0; animation: heroFadeUp .7s ease .1s forwards; }
.hero-badge i { color: var(--gold); }
.hero-title { font-size: 48px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px; color: var(--white); opacity: 0; animation: heroFadeUp .7s ease .25s forwards; }
.hero-desc { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.85); margin: 0 auto 32px; max-width: 620px; opacity: 0; animation: heroFadeUp .7s ease .4s forwards; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; opacity: 0; animation: heroFadeUp .7s ease .55s forwards; }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.hero-nav { position: absolute; top: 45%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.15); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; }
.hero-nav:hover { background: var(--red-primary); border-color: var(--red-primary); }
.hero-nav-prev { left: 24px; }
.hero-nav-next { right: 24px; }
.hero-dots { position: absolute; bottom: 128px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0; transition: all .25s; }
.hero-dot.is-active { background: var(--white); width: 28px; border-radius: 6px; }

.hero-stats { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(20px); z-index: 6; }
.hero-stats-inner { max-width: 1280px; margin: 0 auto; padding: 28px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hero-stat { text-align: center; padding: 8px 16px; border-right: 1px solid var(--gray-200); }
.hero-stat:last-child { border-right: none; }
.hero-stat-number { font-size: 34px; font-weight: 800; color: var(--red-primary); line-height: 1; margin-bottom: 6px; }
.hero-stat-label { font-size: 13px; color: var(--gray-600); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.hero-stats-inline { position: static; background: transparent; }
.hero-stats-inline .hero-stat { border-right-color: rgba(255,255,255,.15); }

@media (max-width: 768px) {
	.hero-title { font-size: 32px; }
	.hero-slide-content { padding: 70px 20px 190px; }
	.hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
	.hero-stat:nth-child(2n) { border-right: none; }
	.hero-nav { display: none; }
}

/* ============ SECTIONS COMMUNS ============ */
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-label { display: inline-flex; align-items: center; gap: 8px; color: var(--red-primary); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--red-primary); }
.section-label-gold { color: var(--gold); }
.section-label-gold::before { background: var(--gold); }
.section-title { font-size: 36px; font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 16px; }
.section-desc { font-size: 17px; color: var(--gray-600); line-height: 1.7; }
.bg-light { background: var(--gray-100); }
.section-dark { background: linear-gradient(135deg, var(--dark) 0%, var(--red-dark) 100%); color: var(--white); position: relative; overflow: hidden; }
.section-pattern { position: absolute; inset: 0; opacity: .03; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.text-white { color: var(--white) !important; }
.text-white-70 { color: rgba(255,255,255,.8) !important; }
.section-cta { text-align: center; margin-top: 40px; }

/* Fade up on scroll */
.fade-up { opacity: 0; transform: translateY(24px); transition: all .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-2-uneven { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 968px) { .grid-2, .grid-2-uneven { grid-template-columns: 1fr; gap: 32px; } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Cards (domaines / activités) */
.card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .3s; border: 1px solid var(--gray-200); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-image { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 48px; color: rgba(255,255,255,.9); overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-content { padding: 24px; }
.card-tag { display: inline-block; background: var(--red-light); color: var(--red-primary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 4px 12px; border-radius: 50px; margin-bottom: 12px; }
.card-title { font-size: 19px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.card-desc { font-size: 14.5px; color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; }
.card-link { font-size: 14px; font-weight: 700; color: var(--red-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.card-link:hover { gap: 10px; }

/* Programmes phares */
.program-list { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.program-item { display: flex; gap: 16px; align-items: flex-start; }
.program-icon { width: 48px; height: 48px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--gold); flex-shrink: 0; }
.program-info h4 { font-size: 16px; margin-bottom: 4px; }
.program-info p { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.6; }
.stat-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 24px 18px; text-align: center; }
.stat-card i { font-size: 24px; color: var(--gold); margin-bottom: 12px; }
.stat-card .number { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.stat-card .label { font-size: 12.5px; color: rgba(255,255,255,.7); line-height: 1.5; }
.stat-card .label p { margin: 0; }
@media (max-width: 560px) { .stat-card-grid { grid-template-columns: 1fr; } }

/* News cards */
.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.news-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 968px) { .news-grid, .news-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .news-grid, .news-grid-3 { grid-template-columns: 1fr; } }
.news-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: all .3s; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.news-card-featured { grid-row: span 2; }
.news-card-image { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--gray-200); }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-image img { transform: scale(1.06); }
.news-card-cat { position: absolute; top: 14px; left: 14px; background: var(--red-primary); color: var(--white); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 5px 12px; border-radius: 50px; }
.news-card-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-card-date { font-size: 12.5px; color: var(--gray-600); margin-bottom: 8px; }
.news-card-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.news-card-title a { text-decoration: none; color: var(--dark); }
.news-card-title a:hover { color: var(--red-primary); }
.news-card-desc { font-size: 14px; color: var(--gray-600); margin-bottom: 14px; flex: 1; }

.crc-thumb-fallback { width: 100%; height: 100%; min-height: 140px; display: flex; align-items: center; justify-content: center; font-size: 34px; color: rgba(255,255,255,.85); background: linear-gradient(135deg, var(--red-primary), var(--red-dark)); }
.crc-fallback-thumb { display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--white); background: linear-gradient(135deg, var(--red-primary), var(--red-dark)); height: 100%; }

.news-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-pill { padding: 8px 18px; border-radius: 50px; background: var(--gray-100); border: 1px solid var(--gray-200); color: var(--gray-800); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: all .2s; }
.filter-pill:hover { border-color: var(--red-primary); color: var(--red-primary); }
.filter-pill.is-active { background: var(--red-primary); border-color: var(--red-primary); color: var(--white); }

/* Empty state */
.crc-empty-state { grid-column: 1 / -1; text-align: center; padding: 56px 24px; color: var(--gray-600); background: var(--white); border: 1px dashed var(--gray-300); border-radius: var(--radius-lg); }
.crc-empty-state i { font-size: 32px; color: var(--red-primary); margin-bottom: 12px; display: block; }

/* Pagination */
.crc-pagination { margin-top: 48px; display: flex; justify-content: center; }
.crc-pagination ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.crc-pagination a, .crc-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--gray-200); text-decoration: none; color: var(--gray-800); font-weight: 600; font-size: 14px; }
.crc-pagination .current { background: var(--red-primary); border-color: var(--red-primary); color: var(--white); }
.crc-pagination a:hover { border-color: var(--red-primary); color: var(--red-primary); }

/* CTA final */
.cta-final { background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%); text-align: center; }
.cta-final-inner h2 { color: var(--white); font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.cta-final-inner p { color: rgba(255,255,255,.85); font-size: 17px; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ============ PAGE HERO (pages intérieures) ============ */
.page-hero { position: relative; min-height: 340px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, rgba(26,26,46,.95) 0%, rgba(139,0,0,.9) 100%); }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.page-hero-pattern { position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.page-hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 70px 24px; width: 100%; text-align: center; color: var(--white); }
.page-hero-breadcrumb { display: flex; justify-content: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 16px; flex-wrap: wrap; }
.page-hero-breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.page-hero-breadcrumb a:hover { color: var(--white); }
.page-hero-breadcrumb i { font-size: 10px; margin-top: 4px; }
.page-hero-title { font-size: 40px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; letter-spacing: -1px; }
.page-hero-desc { font-size: 17px; color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto; line-height: 1.7; }
.page-hero-article .page-hero-content { text-align: left; max-width: 820px; margin: 0 auto; }
.page-hero-article .page-hero-breadcrumb { justify-content: flex-start; }
.article-cat { display: inline-block; background: var(--red-primary); padding: 5px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; font-size: 13.5px; color: rgba(255,255,255,.75); }
.article-meta i { margin-right: 6px; color: var(--gold); }
.error-404-code { font-size: 90px; font-weight: 800; color: rgba(255,255,255,.15); line-height: 1; margin-bottom: 12px; }

/* ============ PROSE (contenu éditeur) ============ */
.crc-prose { font-size: 16.5px; line-height: 1.85; color: var(--gray-800); }
.crc-prose h2 { font-size: 28px; font-weight: 800; color: var(--dark); margin: 40px 0 16px; }
.crc-prose h3 { font-size: 21px; font-weight: 700; color: var(--dark); margin: 32px 0 12px; }
.crc-prose p { margin-bottom: 18px; }
.crc-prose ul, .crc-prose ol { margin: 0 0 18px 24px; }
.crc-prose li { margin-bottom: 8px; }
.crc-prose img { border-radius: var(--radius-lg); margin: 24px 0; }
.crc-prose a { color: var(--red-primary); font-weight: 600; }
.crc-prose blockquote { border-left: 4px solid var(--red-primary); padding: 12px 24px; margin: 24px 0; background: var(--gray-100); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--gray-800); }
.crc-prose table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.crc-prose table th, .crc-prose table td { border: 1px solid var(--gray-200); padding: 10px 14px; text-align: left; }
.crc-prose table th { background: var(--gray-100); }

/* Article layout */
.grid-article { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .grid-article { grid-template-columns: 1fr; } }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0; }
.tag-pill { background: var(--gray-100); color: var(--gray-800); padding: 6px 14px; border-radius: 50px; font-size: 13px; text-decoration: none; }
.tag-pill:hover { background: var(--red-primary); color: var(--white); }
.crc-share { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.crc-share-label { font-weight: 700; font-size: 14px; margin-right: 4px; }
.crc-share a { width: 36px; height: 36px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-800); text-decoration: none; transition: all .2s; }
.crc-share a:hover { background: var(--red-primary); color: var(--white); }
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--gray-100); border-radius: var(--radius-lg); padding: 24px; }
.widget-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.widget-cta p { font-size: 14px; color: var(--gray-600); margin-bottom: 16px; }
.related-articles { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--gray-200); }
.related-title { font-size: 24px; font-weight: 800; margin-bottom: 24px; }
.page-links { margin: 24px 0; font-weight: 600; }

/* ============ ACTIVITÉS (page détail) ============ */
.grid-2-activite { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.grid-2-activite.is-reverse { direction: rtl; }
.grid-2-activite.is-reverse > * { direction: ltr; }
@media (max-width: 900px) { .grid-2-activite { grid-template-columns: 1fr; direction: ltr !important; } }
.activite-visual { border-radius: var(--radius-lg); min-height: 320px; display: flex; align-items: center; justify-content: center; font-size: 80px; color: rgba(255,255,255,.9); overflow: hidden; }
.activite-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.activite-text .card-tag { margin-bottom: 14px; }

/* ============ VALEURS / ICON BLOCKS / STEPS ============ */
.value-card, .icon-block { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; transition: all .3s; }
.value-card:hover, .icon-block:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.value-icon, .icon-block-icon { width: 56px; height: 56px; margin: 0 auto 16px; background: var(--red-light); color: var(--red-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.value-card h3, .icon-block h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.value-card p, .icon-block p { font-size: 13.5px; color: var(--gray-600); line-height: 1.7; }

.steps-grid { position: relative; }
.step-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; position: relative; }
.step-number { width: 44px; height: 44px; background: var(--red-primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin: 0 auto 16px; }
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--gray-600); line-height: 1.6; }

/* ============ ÉQUIPE ============ */
.team-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; transition: all .3s; }
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.team-photo { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(135deg, var(--red-primary), var(--red-dark)); display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--white); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.team-role { display: block; font-size: 12.5px; color: var(--red-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 10px; }
.team-card p { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* ============ TÉMOIGNAGES ============ */
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.testimonial-quote { font-size: 15px; font-style: italic; color: var(--gray-800); line-height: 1.8; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar, .testimonial-avatar-img { width: 44px; height: 44px; border-radius: 50%; background: var(--red-primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; object-fit: cover; }
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 12.5px; color: var(--gray-600); }

/* ============ CONTACT ============ */
.contact-info-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; }
.contact-info-icon { width: 60px; height: 60px; margin: 0 auto 18px; background: var(--red-light); color: var(--red-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.contact-info-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.contact-info-card p { font-size: 14.5px; color: var(--gray-600); }
.contact-info-card a { color: var(--red-primary); font-weight: 600; text-decoration: none; }
.contact-info-sub { font-size: 12.5px !important; margin-top: 4px; }

.branch-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; transition: all .3s; }
.branch-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.branch-icon { width: 48px; height: 48px; background: var(--red-primary); color: var(--white); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 16px; }
.branch-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.branch-details p { font-size: 13.5px; color: var(--gray-600); margin-bottom: 8px; }
.branch-details i { color: var(--red-primary); margin-right: 8px; width: 14px; }

.grid-2-contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .grid-2-contact { grid-template-columns: 1fr; } }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-embed iframe { display: block; }
.contact-side-card { margin-top: 24px; background: var(--gray-100); border-radius: var(--radius-lg); padding: 24px; }
.contact-side-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.contact-side-card p { font-size: 13.5px; color: var(--gray-600); margin-bottom: 16px; line-height: 1.6; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 18px 22px; font-size: 15px; font-weight: 700; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-question i { transition: transform .25s; color: var(--red-primary); flex-shrink: 0; }
.faq-item.is-open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 22px 20px; font-size: 14.5px; color: var(--gray-600); line-height: 1.7; }

/* ============ FORMULAIRES ============ */
.form-card { background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-300); border-radius: var(--radius); font-size: 14.5px; font-family: inherit; color: var(--gray-800); transition: border-color .2s; background: var(--white); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--red-primary); }
.form-textarea { min-height: 140px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input { margin-top: 4px; }
.form-check label { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.form-honeypot { position: absolute !important; left: -9999px !important; top: -9999px; }
.form-message { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.form-message.is-success { background: var(--green-light); color: var(--green-primary); border: 1px solid #b7e2ba; }
.form-message.is-error { background: #fde8e8; color: var(--red-dark); border: 1px solid #f5c2c2; }

/* Commentaires */
.comments-area { margin-top: 40px; }
.comments-title, .related-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.comment-list { list-style: none; }
.comment-list .comment { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.crc-comment-form input, .crc-comment-form textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-300); border-radius: var(--radius); margin-bottom: 14px; font-family: inherit; }
.crc-comment-form textarea { min-height: 120px; }

/* Search form standalone */
.crc-search-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.crc-search-form .form-input { flex: 1; }

/* ============ FOOTER ============ */
.main-footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo-text .main-title { color: var(--white); }
.footer-brand p { font-size: 13.5px; line-height: 1.8; margin: 18px 0 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: var(--white); text-decoration: none; transition: all .2s; }
.footer-social a:hover { background: var(--red-primary); }
.footer-title { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 13.5px; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-links a i { font-size: 10px; margin-right: 8px; color: var(--red-primary); }
.footer-contact p { font-size: 13.5px; margin-bottom: 12px; line-height: 1.6; }
.footer-contact i { color: var(--red-primary); margin-right: 8px; width: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12.5px; }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--white); }

/* ============ ÉLÉMENTS FLOTTANTS ============ */
.emergency-bar { background: var(--red-dark); color: var(--white); padding: 0; max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.emergency-bar.show { max-height: 60px; }
.emergency-container { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.emergency-text i { margin-right: 8px; color: var(--gold); }
.emergency-text a { color: var(--white); text-decoration: underline; font-weight: 700; }
.emergency-close { background: none; border: none; color: var(--white); cursor: pointer; font-size: 16px; opacity: .8; }
.emergency-close:hover { opacity: 1; }

.donate-float { position: fixed; bottom: 24px; right: 24px; z-index: 900; }
.donate-float .btn { box-shadow: var(--shadow-lg); }
@media (max-width: 640px) { .donate-float { bottom: 16px; right: 16px; } .donate-float .btn span { display: none; } }

/* WP core alignments & misc */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
.wp-block-image { margin-bottom: 20px; }
.wp-caption-text { font-size: 13px; color: var(--gray-600); text-align: center; margin-top: 8px; }

/* Embeds responsives (vidéos YouTube/Vimeo insérées via l'éditeur de blocs) */
.wp-block-embed__wrapper { position: relative; overflow: hidden; }
.wp-block-embed:not([class*="wp-embed-aspect"]) .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.wp-block-embed__wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Sécurité anti-débordement horizontal (tableaux larges, blocs de code, carte) */
.crc-prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.crc-prose pre { overflow-x: auto; max-width: 100%; }
.map-embed { max-width: 100%; }
.map-embed iframe { width: 100%; max-width: 100%; }

/* Print */
@media print {
	.top-bar, .main-header, .emergency-bar, .donate-float, .main-footer { display: none; }
}
