/* =========================================================================
   Thème Chez Donald — tokens & structure.
   Palette Donald : bleu #1D6FB8 · jaune soleil #FFC93C · orange #F59E2D
   rouge cravate #E8543F · crème #FFF9EF · encre #16324F.
   Signature : frise festonnée (scallop) entre les sections.
   ========================================================================= */

:root {
	--cd-blue: #1d6fb8;
	--cd-blue-dark: #16537e;
	--cd-navy: #16324f;
	--cd-sun: #ffc93c;
	--cd-orange: #f59e2d;
	--cd-red: #e8543f;
	--cd-sky: #7ec8f2;
	--cd-cream: #fff9ef;
	--cd-white: #ffffff;
	--cd-ink: #22344a;
	--cd-muted: #64748b;
	--cd-line: #f0e6d6;
	--cd-radius: 22px;
	--cd-font-display: 'Baloo 2', system-ui, sans-serif;
	--cd-font-body: 'Nunito', system-ui, sans-serif;
	--cd-shadow: 0 10px 30px rgba(22, 50, 79, .1);
}

html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--cd-font-body);
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--cd-ink);
	background: var(--cd-cream);
}
h1, h2, h3, h4, h5 {
	font-family: var(--cd-font-display);
	color: var(--cd-navy);
	line-height: 1.15;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
a { color: var(--cd-blue); }
img { max-width: 100%; height: auto; }

.cd-container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.cd-skip { position: absolute; left: -9999px; top: 0; background: var(--cd-navy); color: #fff; padding: 10px 18px; z-index: 999; }
.cd-skip:focus { left: 12px; top: 12px; }

/* ---- Boutons ---- */
.cd-btn {
	display: inline-block;
	font-family: var(--cd-font-display);
	font-weight: 700;
	font-size: 16px;
	border-radius: 999px;
	padding: 11px 26px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.cd-btn:hover { transform: translateY(-2px); box-shadow: var(--cd-shadow); }
.cd-btn:focus-visible { outline: 3px solid var(--cd-red); outline-offset: 2px; }
.cd-btn-sun { background: var(--cd-sun); color: var(--cd-navy) !important; }
.cd-btn-blue { background: var(--cd-blue); color: #fff !important; }
.cd-btn-red { background: var(--cd-red); color: #fff !important; }
.cd-btn-ghost { background: transparent; color: var(--cd-blue) !important; border: 2px solid var(--cd-blue); }

/* ---- Signature : frise festonnée ---- */
.cd-scallop {
	height: 26px;
	background-image: radial-gradient(circle at 50% 0, var(--cd-cream) 13px, transparent 14px);
	background-size: 34px 26px;
	background-repeat: repeat-x;
}
.cd-scallop-sun { background-image: radial-gradient(circle at 50% 0, var(--cd-sun) 13px, transparent 14px); }
.cd-scallop-white { background-image: radial-gradient(circle at 50% 0, var(--cd-white) 13px, transparent 14px); }

/* ---- Topbar ---- */
.cd-topbar { background: var(--cd-navy); color: #dbe7f3; font-size: 13.5px; }
.cd-topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.cd-topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.cd-topbar a { color: #dbe7f3; text-decoration: none; }
.cd-topbar a:hover { color: var(--cd-sun); }
.cd-topbar-hours { color: var(--cd-sun); font-weight: 600; }

/* ---- Header ---- */
.cd-header { background: var(--cd-white); position: sticky; top: 0; z-index: 90; box-shadow: 0 2px 14px rgba(22, 50, 79, .07); }
.cd-header-in { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 84px; }
.cd-brand img { max-height: 66px; width: auto; }
.cd-brand-text { font-family: var(--cd-font-display); font-weight: 800; font-size: 24px; color: var(--cd-blue); text-decoration: none; }
.cd-nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.cd-nav-list a {
	display: block;
	font-family: var(--cd-font-display);
	font-weight: 700;
	font-size: 15.5px;
	color: var(--cd-navy);
	text-decoration: none;
	padding: 10px 15px;
	border-radius: 999px;
	transition: background .15s ease, color .15s ease;
}
.cd-nav-list a:hover, .cd-nav-list .current-menu-item > a { background: var(--cd-sun); color: var(--cd-navy); }
.cd-nav-list .sub-menu { display: none; position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--cd-shadow); padding: 8px; list-style: none; min-width: 200px; }
.cd-nav-list li { position: relative; }
.cd-nav-list li:hover > .sub-menu, .cd-nav-list li:focus-within > .sub-menu { display: block; }
.cd-header-actions { display: flex; align-items: center; gap: 12px; }

/* Burger (mobile) */
.cd-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.cd-burger span { width: 26px; height: 3px; border-radius: 3px; background: var(--cd-navy); }

/* ---- Navigation mobile plein écran ---- */
.cd-mobile {
	position: fixed; inset: 0; z-index: 200;
	background: var(--cd-blue);
	background-image: radial-gradient(circle at 85% 12%, rgba(255, 201, 60, .35) 0 90px, transparent 91px),
		radial-gradient(circle at 10% 85%, rgba(126, 200, 242, .3) 0 120px, transparent 121px);
	color: #fff;
	padding: 22px;
	display: flex; flex-direction: column; gap: 18px;
	overflow-y: auto;
}
.cd-mobile-head { display: flex; justify-content: space-between; align-items: center; }
.cd-mobile-title { font-family: var(--cd-font-display); font-weight: 800; font-size: 20px; }
.cd-mobile-close { background: rgba(255,255,255,.15); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.cd-mobile-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cd-mobile-list a {
	display: block; color: #fff; text-decoration: none;
	font-family: var(--cd-font-display); font-weight: 700; font-size: 22px;
	padding: 12px 16px; border-radius: 14px;
}
.cd-mobile-list a:hover { background: rgba(255, 255, 255, .12); }
.cd-mobile-portal { align-self: flex-start; }
.cd-mobile-contact { margin-top: auto; display: flex; flex-direction: column; gap: 4px; font-size: 14px; opacity: .9; }

/* ---- Contenu / pages classiques ---- */
.cd-main { min-height: 55vh; }
.cd-page, .cd-archive, .cd-404 { padding: 56px 22px 72px; }
.cd-page-head { margin-bottom: 28px; }
.cd-entry :is(h2, h3) { margin-top: 1.4em; }
.cd-single-thumb img { border-radius: var(--cd-radius); }

/* Grille actualités */
.cd-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.cd-post-card { background: #fff; border-radius: var(--cd-radius); overflow: hidden; box-shadow: var(--cd-shadow); display: flex; flex-direction: column; }
.cd-post-thumb img { display: block; width: 100%; height: 200px; object-fit: cover; }
.cd-post-body { padding: 20px 22px 24px; }
.cd-post-date { font-size: 13px; color: var(--cd-orange); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.cd-post-body h2 { font-size: 20px; margin: 6px 0 8px; }
.cd-post-body h2 a { color: var(--cd-navy); text-decoration: none; }
.cd-more { font-weight: 700; text-decoration: none; }
.cd-pagination { margin-top: 32px; text-align: center; }
.cd-pagination .page-numbers { display: inline-block; padding: 8px 15px; border-radius: 999px; background: #fff; margin: 0 3px; text-decoration: none; font-weight: 700; }
.cd-pagination .current { background: var(--cd-blue); color: #fff; }

/* 404 */
.cd-404 { text-align: center; }
.cd-404-emoji { font-size: 64px; display: block; margin-bottom: 10px; }

/* ---- Footer ---- */
.cd-footer { background: var(--cd-navy); color: #cfe0ef; margin-top: 64px; }
.cd-footer .cd-scallop { margin-top: -26px; }
.cd-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 34px; padding-top: 48px; padding-bottom: 40px; }
.cd-footer h3 { color: var(--cd-sun); font-size: 18px; }
.cd-footer a { color: #cfe0ef; }
.cd-footer a:hover { color: var(--cd-sun); }
.cd-footer-logo img { max-height: 70px; width: auto; background: #fff; border-radius: 14px; padding: 8px 14px; }
.cd-footer-menu { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cd-footer-menu a { text-decoration: none; font-weight: 600; }
.cd-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.cd-footer-bottom .cd-container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }

/* ---- Harmonie portail (plugin Espace Chez Donald) ---- */
.cd-elementor-page .ecde-portal { margin-top: 34px; margin-bottom: 60px; }
.ecde-portal { font-family: var(--cd-font-body); }
.ecde-portal .ecde-portal-title, .ecde-portal h2, .ecde-portal h3 { font-family: var(--cd-font-display); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
	.cd-nav { display: none; }
	.cd-burger { display: flex; }
	.cd-header-actions .cd-btn { display: none; }
}
@media (max-width: 640px) {
	.cd-topbar-hours { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.cd-btn { transition: none; }
}

/* =========================================================================
   Bandeau d'en-tête de page (titre centré)
   ========================================================================= */
.cd-page-header { position: relative; overflow: hidden; background: linear-gradient(125deg, var(--cd-blue, #1D6FB8), #2a86d6 55%, var(--cd-orange, #F59E2D)); padding: 52px 0 64px; text-align: center; }
.cd-page-header-deco { position: absolute; inset: 0; background-image: radial-gradient(circle at 15% 30%, rgba(255,255,255,.14) 0 12px, transparent 13px), radial-gradient(circle at 82% 65%, rgba(255,255,255,.12) 0 18px, transparent 19px), radial-gradient(circle at 55% 20%, rgba(255,255,255,.08) 0 9px, transparent 10px); pointer-events: none; }
.cd-page-header-in { position: relative; z-index: 2; }
.cd-page-title { margin: 0; color: #fff; font-family: var(--cd-font-display, 'Baloo 2', sans-serif); font-weight: 800; font-size: clamp(28px, 4.5vw, 44px); line-height: 1.1; text-shadow: 0 2px 10px rgba(22,50,79,.18); }
.cd-page-subtitle { margin: 12px auto 0; max-width: 620px; color: rgba(255,255,255,.94); font-size: 16.5px; line-height: 1.5; }
.cd-breadcrumb { display: flex; gap: 8px; justify-content: center; align-items: center; margin-bottom: 14px; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.85); }
.cd-breadcrumb a { color: #fff; text-decoration: none; opacity: .9; }
.cd-breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.cd-breadcrumb span[aria-hidden] { opacity: .6; }
/* Frise festonnée blanche en bas du bandeau */
.cd-page-header-scallop { position: absolute; left: 0; right: 0; bottom: -1px; height: 18px; background: radial-gradient(circle at 14px 18px, #fff 13px, transparent 14px); background-size: 28px 18px; z-index: 2; }
@media (max-width: 640px) {
	.cd-page-header { padding: 38px 0 46px; }
}
