/*
Theme Name: Portfolio Charles Djade
Description: Thème portfolio pour journaliste et consultant numérique : accueil, services (journalisme, SEO, WordPress, marketing digital), à propos, contact. Tout le contenu se règle dans Apparence > Personnaliser.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: charles-djade-portfolio
*/

:root {
	--cdp-ink: #14213d;
	--cdp-accent: #d97706;
	--cdp-text: #1f2937;
	--cdp-muted: #5b6573;
	--cdp-alt: #f6f4ef;
	--cdp-border: #e2ded4;
	--cdp-wa: #1fa855;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--cdp-text);
	background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--cdp-ink); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--cdp-ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.screen-reader-text { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text:focus { left: 8px; top: 8px; width: auto; height: auto; background: #fff; padding: 8px 12px; z-index: 9999; }

.cdp-container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.cdp-narrow { max-width: 780px; }
.cdp-center { text-align: center; }
.cdp-small { font-size: 14px; color: var(--cdp-muted); }
.cdp-plain { list-style: none; margin: 0; padding: 0; }
.cdp-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--cdp-accent); margin-bottom: .6em; }
.cdp-lead { font-size: clamp(1.05rem, 2.5vw, 1.3rem); max-width: 720px; }
.cdp-big { font-size: 1.2rem; }
.cdp-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--cdp-accent); }

/* En-tête */
.cdp-header { background: #fff; border-bottom: 1px solid var(--cdp-border); position: sticky; top: 0; z-index: 50; }
.cdp-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; flex-wrap: wrap; }
.cdp-brand-text { font-family: Georgia, serif; font-weight: 700; font-size: 1.25rem; color: var(--cdp-ink); text-decoration: none; }
.cdp-brand img { max-height: 46px; width: auto; }
.cdp-nav { display: flex; align-items: center; gap: 14px; }
.cdp-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.cdp-menu a { display: block; padding: 8px 12px; color: var(--cdp-text); text-decoration: none; border-radius: 6px; font-size: 15px; }
.cdp-menu a:hover,
.cdp-menu .current-menu-item > a,
.cdp-menu .current_page_item > a { color: var(--cdp-accent); }
.cdp-menu-toggle { display: none; background: var(--cdp-ink); color: #fff; border: 0; border-radius: 6px; padding: 8px 14px; font-size: 15px; cursor: pointer; }

/* Boutons */
.cdp-btn {
	display: inline-block; background: var(--cdp-ink); color: #fff !important; border: 2px solid var(--cdp-ink);
	border-radius: 8px; padding: 11px 22px; font-size: 16px; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; margin: 4px 6px 4px 0;
}
.cdp-btn:hover { opacity: .9; }
.cdp-btn-light { background: #fff; color: var(--cdp-ink) !important; }
.cdp-btn-wa { background: var(--cdp-wa); border-color: var(--cdp-wa); }
.cdp-btn-small { padding: 8px 16px; font-size: 14px; margin: 0; background: var(--cdp-accent); border-color: var(--cdp-accent); }
.cdp-center .cdp-btn { margin: 4px 3px; }

/* Haut de page */
.cdp-hero { background: var(--cdp-alt); padding: 72px 0; }
.cdp-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cdp-portrait img { width: 100%; max-width: 380px; border-radius: 16px; display: block; margin: 0 auto; border: 6px solid #fff; box-shadow: 0 10px 30px rgba(20,33,61,.15); }
.cdp-page-title { background: var(--cdp-ink); color: #fff; padding: 56px 0; }
.cdp-page-title h1, .cdp-page-title .cdp-lead { color: #fff; }
.cdp-page-title .cdp-lead { opacity: .9; margin: 0; }

.cdp-stats { background: var(--cdp-ink); color: #fff; }
.cdp-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding-top: 28px; padding-bottom: 28px; text-align: center; }
.cdp-stat-val { display: block; font-family: Georgia, serif; font-size: 2.2rem; font-weight: 700; color: var(--cdp-accent); line-height: 1.1; }
.cdp-stat-lab { font-size: 14px; opacity: .9; }

/* Sections */
.cdp-section { padding: 60px 0; }
.cdp-alt { background: var(--cdp-alt); }
.cdp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 24px 0; }
.cdp-card { background: #fff; border: 1px solid var(--cdp-border); border-radius: 12px; padding: 24px; }
.cdp-num { font-family: Georgia, serif; font-size: 1.6rem; color: var(--cdp-accent); font-weight: 700; display: block; margin-bottom: 6px; }
.cdp-service { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cdp-checks { list-style: none; margin: 0; padding: 0; }
.cdp-checks li { padding: 10px 0 10px 32px; border-bottom: 1px solid var(--cdp-border); position: relative; }
.cdp-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--cdp-accent); font-weight: 800; }
.cdp-media-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-left: 5px solid var(--cdp-accent); padding-left: 24px; }
.cdp-media-box > div { flex: 1 1 420px; }

.cdp-steps { list-style: none; counter-reset: step; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cdp-steps li { counter-increment: step; border: 1px solid var(--cdp-border); border-radius: 12px; padding: 20px; position: relative; }
.cdp-steps li::before { content: counter(step); display: block; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 700; color: var(--cdp-accent); }
.cdp-steps strong { display: block; }
.cdp-steps span { color: var(--cdp-muted); font-size: 15px; }

.cdp-about { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.cdp-about:not(:has(.cdp-portrait)) { grid-template-columns: 1fr; max-width: 780px; }
.cdp-prose { max-width: 780px; }
.cdp-prose p { font-size: 1.05rem; }
.cdp-timeline { list-style: none; margin: 24px 0 0; padding: 0 0 0 22px; border-left: 3px solid var(--cdp-accent); }
.cdp-timeline li { position: relative; padding: 0 0 22px 18px; }
.cdp-timeline li::before { content: ""; position: absolute; left: -31px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--cdp-accent); }
.cdp-year { font-family: Georgia, serif; font-weight: 700; font-size: 1.3rem; color: var(--cdp-ink); display: block; }
.cdp-timeline p { margin: 0; }
.cdp-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; }
.cdp-tags li { background: var(--cdp-alt); border: 1px solid var(--cdp-border); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.cdp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.cdp-cta { background: var(--cdp-ink); color: #fff; padding: 56px 0; }
.cdp-cta h2 { color: #fff; }
.cdp-cta .cdp-btn { background: var(--cdp-accent); border-color: var(--cdp-accent); }
.cdp-cta .cdp-btn-wa { background: var(--cdp-wa); border-color: var(--cdp-wa); }

/* Formulaire */
.cdp-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.cdp-form input[type="text"], .cdp-form input[type="email"], .cdp-form input[type="tel"], .cdp-form select, .cdp-form textarea {
	width: 100%; padding: 11px 12px; border: 1px solid var(--cdp-border); border-radius: 8px; font: inherit; background: #fff;
}
.cdp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cdp-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.cdp-ok { background: #eaf6ee; border-left: 4px solid #1b7a3a; }
.cdp-err { background: #fcecec; border-left: 4px solid #b32d2e; }

/* Pied de page */
.cdp-footer { background: #0d1630; color: #d5dbe8; padding: 44px 0 16px; }
.cdp-footer h3 { color: #fff; font-size: 1.1rem; }
.cdp-footer a { color: #fff; }
.cdp-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.cdp-social a { margin-right: 12px; }
.cdp-copy { border-top: 1px solid #2a3556; margin-top: 24px; padding-top: 14px; font-size: 14px; }
.cdp-copy p { margin: 0; }

@media (max-width: 860px) {
	.cdp-hero-grid, .cdp-service, .cdp-about, .cdp-two, .cdp-footer-grid { grid-template-columns: 1fr; }
	.cdp-hero { padding: 44px 0; }
	.cdp-section { padding: 40px 0; }
	.cdp-menu-toggle { display: inline-block; }
	.cdp-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
	.cdp-nav.is-open { display: flex; }
	.cdp-menu { flex-direction: column; }
	.cdp-nav-cta { text-align: center; }
	.cdp-portrait { order: -1; }
}
