/* =========================================================================
 * cp.css — portage fidèle du design "Cours particuliers" (design fait foi).
 * SCOPE : tout est préfixé pour ne s'appliquer QUE sur nos pages de template.
 *  - Variables + chrome (header/footer, .container, .btn, .eyebrow) : .pe-template
 *    (le body porte la classe pe-template sur nos templates uniquement).
 *  - Contenu principal (reset, section, h1/h2/h3, sections design) : .pe-cp
 *    (classe posée sur le <main> des templates portés au design).
 * Ainsi les pages non migrées (Astra/Spectra) ne sont jamais impactées.
 * ====================================================================== */

.pe-template {
	--cream: #F6EFE3;
	--cream-deep: #EFE5D2;
	--ink: #0F2235;
	--ink-soft: #2C3E52;
	--muted: #6B7588;
	--line: #E2D7C2;
	--orange: #E8825A;
	--orange-soft: #F4C9A9;
	--orange-pale: #FAE3CF;
	--green: #6B9A6E;
	--blue: #5C7FA0;
	--rose: #C97B6B;
	--shadow: 0 1px 2px rgba(15,34,53,0.04), 0 8px 24px rgba(15,34,53,0.06);
}

.pe-cp *, .pe-cp *::before, .pe-cp *::after { box-sizing: border-box; }

/* Reset minimal (on retire le CSS d'Astra sur nos templates) */
body.pe-template { margin: 0; padding: 0; background: var(--cream); font-family: 'Inter', system-ui, sans-serif; color: var(--ink); }
.pe-template .pe-cp, .pe-template header.site, .pe-template footer.site { box-sizing: border-box; }

/* Lien d'évitement Astra : masqué visuellement (le reset d'Astra ne le fait plus) */
body.pe-template .skip-link,
body.pe-template .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}
body.pe-template .skip-link:focus {
	position: fixed !important;
	top: 10px; left: 10px;
	width: auto; height: auto; clip: auto;
	padding: 12px 20px; background: #fff; color: var(--ink);
	border-radius: 6px; z-index: 100000;
}

/* Reset chrome Astra résiduel autour de nos sections */
.pe-template #content,
.pe-template .ast-container,
.pe-template .site-content .ast-container { max-width: none; padding: 0; margin: 0; }
.pe-template #main,
.pe-template .site-main { margin: 0; padding: 0; }

.pe-cp {
	background: var(--cream);
	color: var(--ink);
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.pe-cp img { display: block; max-width: 100%; }
.pe-cp a { color: inherit; text-decoration: none; }
.pe-cp button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.pe-template .container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.pe-cp section { padding: 96px 0; position: relative; }

/* ---------- Type ---------- */
.pe-template .eyebrow {
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--ink-soft); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
}
.pe-template .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); display: inline-block; }
.pe-cp h1, .pe-cp h2, .pe-cp h3 { font-family: 'Fraunces', Georgia, serif; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.pe-cp h1 { font-size: clamp(44px, 5.5vw, 72px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 500; }
.pe-cp h2 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 500; }
.pe-cp h3 { font-size: 22px; line-height: 1.25; font-weight: 600; }
.pe-cp .italic { font-style: italic; font-weight: 500; }
.pe-cp .underline-mark { background: linear-gradient(transparent 60%, var(--orange-soft) 60%); padding: 0 6px; }
.pe-cp p.lede { font-size: 18px; line-height: 1.65; color: var(--ink-soft); max-width: 56ch; }

/* ---------- Buttons ---------- */
.pe-template .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 15px; border: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.pe-template .btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(232,130,90,0.35); }
.pe-template .btn-primary:hover { transform: translateY(-1px); background: #E0764B; }
.pe-template .btn-dark { background: var(--ink); color: #fff; }
.pe-template .btn-dark:hover { background: #1A2F44; }
.pe-template .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.pe-template .btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.pe-template header.site { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.pe-template .nav-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.pe-template .logo { display: flex; align-items: center; gap: 12px; font-family: 'Fraunces', serif; font-size: 20px; line-height: 1; font-weight: 500; color: var(--ink); }
.pe-template .logo-mark { width: 40px; height: 40px; background: transparent; display: grid; place-items: center; color: #2F6F5F; }
.pe-template .logo-mark svg { width: 34px; height: 34px; }
.pe-template .logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.pe-template .logo-text small { font-style: italic; font-size: 16px; color: var(--ink-soft); }
.pe-template nav.primary { display: flex; gap: 36px; align-items: center; }
.pe-template nav.primary a { font-size: 15px; color: var(--ink); font-weight: 500; position: relative; }
.pe-template nav.primary a.active::after, .pe-template nav.primary .current-menu-item > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--orange); border-radius: 2px; }
.pe-template nav.primary ul { list-style: none; display: flex; gap: 36px; align-items: center; margin: 0; padding: 0; }
.pe-template .burger { display: none; background: none; border: 0; padding: 10px; }
.pe-template .burger span { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; }
.pe-template .burger span::before, .pe-template .burger span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--ink); }
.pe-template .burger span::before { top: -7px; } .pe-template .burger span::after { top: 7px; }

/* ---------- Hero ---------- */
.pe-cp .hero { padding: 64px 0 80px; }
.pe-cp .hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.pe-cp .hero h1 .underline-mark { background: linear-gradient(transparent 62%, var(--orange-soft) 62%); }
.pe-cp .hero p.lede { margin: 28px 0 36px; }
.pe-cp .hero-cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pe-cp .hero-image { position: relative; aspect-ratio: 4 / 3.2; border-radius: 4px; overflow: hidden; background: var(--cream-deep); }
.pe-cp .hero-image img { width: 100%; height: 100%; object-fit: cover; }
.pe-cp .reviews { margin-top: 40px; display: flex; align-items: center; gap: 18px; }
.pe-cp .avatar-stack { display: flex; }
.pe-cp .avatar-stack .av { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--cream); display: grid; place-items: center; font-family: 'Fraunces', serif; font-weight: 600; color: #fff; font-size: 14px; margin-left: -10px; }
.pe-cp .avatar-stack .av:first-child { margin-left: 0; }
.pe-cp .av-1 { background: #C9A47A; } .pe-cp .av-2 { background: #6B9A6E; } .pe-cp .av-3 { background: #5C7FA0; } .pe-cp .av-4 { background: #C97B6B; }
.pe-cp .stars { color: var(--orange); letter-spacing: 1px; font-size: 14px; }
.pe-cp .reviews-text { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.pe-cp .reviews-text strong { color: var(--ink); }

/* ---------- Stat band ---------- */
.pe-cp .stat-band { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pe-cp .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.pe-cp .stat { display: flex; flex-direction: column; gap: 6px; }
.pe-cp .stat-num { font-family: 'Fraunces', serif; font-size: 56px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.pe-cp .stat-num em { font-style: italic; color: var(--orange); font-weight: 500; }
.pe-cp .stat-label { font-size: 14px; color: var(--ink-soft); line-height: 1.4; max-width: 22ch; }

/* ---------- Section heads ---------- */
.pe-cp .section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: end; margin-bottom: 64px; }
.pe-cp .section-head .eyebrow { margin-bottom: 16px; }
.pe-cp .section-head p { color: var(--ink-soft); font-size: 17px; line-height: 1.6; margin: 0; max-width: 52ch; }

/* ---------- Deroulement (timeline sombre) ---------- */
.pe-cp .deroulement { background: var(--ink); color: var(--cream); }
.pe-cp .deroulement h2, .pe-cp .deroulement .eyebrow { color: var(--cream); }
.pe-cp .deroulement .eyebrow { opacity: 0.85; }
.pe-cp .deroulement .section-head p { color: rgba(246,239,227,0.72); }
.pe-cp .timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 16px; }
.pe-cp .tl-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(246,239,227,0.12); border-radius: 4px; padding: 32px; }
.pe-cp .tl-card .num { font-family: 'Fraunces', serif; font-style: italic; font-size: 56px; line-height: 1; color: var(--orange); margin-bottom: 24px; display: block; }
.pe-cp .tl-card h3 { color: var(--cream); margin-bottom: 12px; }
.pe-cp .tl-card p { color: rgba(246,239,227,0.72); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ---------- Credit impot ---------- */
.pe-cp .credit-impot { background: var(--cream-deep); }
.pe-cp .ci-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.pe-cp .ci-text h2 .underline-mark { background: linear-gradient(transparent 60%, var(--orange-soft) 60%); }
.pe-cp .ci-text p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.pe-cp .ci-list { margin-top: 28px; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pe-cp .ci-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; color: var(--ink); }
.pe-cp .ci-list li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 50%; background: var(--orange); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.5L4.7 8.5L9.5 3.5' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-size: 12px 12px; background-position: center; background-repeat: no-repeat; }
.pe-cp .ci-card { background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 36px; box-shadow: var(--shadow); }
.pe-cp .ci-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pe-cp .ci-card-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--orange-pale); color: #B45A33; padding: 6px 10px; border-radius: 4px; }
.pe-cp .ci-card h3 { font-family: 'Fraunces', serif; font-size: 24px; margin-bottom: 28px; font-weight: 500; font-style: italic; }
.pe-cp .ci-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.pe-cp .ci-row:last-of-type { border-bottom: none; }
.pe-cp .ci-row .label { color: var(--ink-soft); }
.pe-cp .ci-row .value { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; color: var(--ink); }
.pe-cp .ci-row.minus .value { color: var(--orange); }
.pe-cp .ci-row.total { margin-top: 8px; padding-top: 20px; border-top: 2px solid var(--ink); }
.pe-cp .ci-row.total .value { font-size: 32px; font-weight: 600; }
.pe-cp .ci-foot { margin-top: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Niveaux / matieres (grille de cartes) ---------- */
.pe-cp .card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pe-cp .nav-card { display: flex; align-items: center; gap: 16px; padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); background: var(--cream); transition: background .15s; }
.pe-cp .nav-card:hover { background: var(--cream-deep); }
.pe-cp .nav-card .num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--orange); letter-spacing: 0.08em; }
.pe-cp .nav-card .name { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.pe-cp .nav-card::after { content: "\2192"; margin-left: auto; font-size: 18px; color: var(--muted); transition: transform .15s, color .15s; }
.pe-cp .nav-card:hover::after { color: var(--orange); transform: translateX(4px); }

/* ---------- Profs ---------- */
.pe-cp .profs { background: var(--cream); }
.pe-cp .prof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pe-cp .prof-card { background: var(--cream-deep); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.pe-cp .prof-body { padding: 24px; }
.pe-cp .prof-body .name { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.pe-cp .prof-body .title { font-size: 13px; color: var(--orange); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; margin-bottom: 14px; }
.pe-cp .prof-body p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ---------- Temoignages ---------- */
.pe-cp .temoignages { background: var(--cream-deep); }
.pe-cp .testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pe-cp .testi { background: var(--cream); border-radius: 6px; padding: 32px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.pe-cp .testi .stars { margin-bottom: 18px; font-size: 16px; }
.pe-cp .testi blockquote { margin: 0 0 24px; font-family: 'Fraunces', serif; font-size: 19px; line-height: 1.45; color: var(--ink); font-weight: 400; flex-grow: 1; }
.pe-cp .testi blockquote::before { content: "\00AB "; color: var(--orange); }
.pe-cp .testi blockquote::after { content: " \00BB"; color: var(--orange); }
.pe-cp .testi-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.pe-cp .testi-author .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: 'Fraunces', serif; color: #fff; font-size: 14px; background: var(--blue); }
.pe-cp .testi-author .meta { line-height: 1.3; }
.pe-cp .testi-author .meta strong { font-size: 14px; color: var(--ink); display: block; }
.pe-cp .testi-author .meta span { font-size: 12px; color: var(--muted); }

/* ---------- Zones ---------- */
.pe-cp .zones { background: var(--cream); }
.pe-cp .zones-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.pe-cp .visio-card { background: var(--ink); color: var(--cream); border-radius: 6px; padding: 40px; position: relative; overflow: hidden; }
.pe-cp .visio-card h3 { color: var(--cream); margin-bottom: 14px; font-weight: 500; font-size: 28px; font-style: italic; }
.pe-cp .visio-card p { color: rgba(246,239,227,0.75); font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
.pe-cp .visio-deco { position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--orange) 0%, transparent 60%); opacity: 0.25; pointer-events: none; }

/* ---------- FAQ ---------- */
.pe-cp .faq { background: var(--cream); }
.pe-cp .faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.pe-cp .faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.pe-cp details.q { border-bottom: 1px solid var(--line); padding: 22px 4px; }
.pe-cp details.q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.pe-cp details.q summary::-webkit-details-marker { display: none; }
.pe-cp details.q summary::after { content: "+"; font-family: 'Inter', sans-serif; font-size: 24px; color: var(--orange); font-weight: 300; transition: transform .2s; flex: none; }
.pe-cp details.q[open] summary::after { content: "\2212"; }
.pe-cp details.q .answer { margin-top: 14px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; max-width: 64ch; }

/* ---------- CTA final ---------- */
.pe-cp .cta-final { background: var(--ink); color: var(--cream); text-align: center; padding: 120px 0; position: relative; overflow: hidden; }
.pe-cp .cta-final h2 { color: var(--cream); font-weight: 500; max-width: 18ch; margin: 0 auto 24px; }
.pe-cp .cta-final h2 .italic { color: var(--orange-soft); }
.pe-cp .cta-final p { color: rgba(246,239,227,0.72); max-width: 52ch; margin: 0 auto 36px; font-size: 17px; }
.pe-cp .cta-final .btn-primary { padding: 18px 36px; font-size: 16px; }
.pe-cp .cta-deco-1, .pe-cp .cta-deco-2 { position: absolute; border-radius: 50%; pointer-events: none; opacity: 0.18; }
.pe-cp .cta-deco-1 { width: 360px; height: 360px; left: -120px; top: -120px; background: radial-gradient(circle, var(--orange) 0%, transparent 65%); }
.pe-cp .cta-deco-2 { width: 420px; height: 420px; right: -160px; bottom: -160px; background: radial-gradient(circle, var(--orange-soft) 0%, transparent 65%); }

/* ---------- Footer ---------- */
.pe-template footer.site { background: var(--cream); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 13.5px; color: var(--ink-soft); }
.pe-template .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 48px; align-items: start; }
.pe-template .foot-brand p { font-size: 14px; line-height: 1.6; max-width: 28ch; margin: 18px 0 0; color: var(--ink-soft); }
.pe-template .foot-col h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 6px 0 22px; }
.pe-template .foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.pe-template .foot-col ul a { font-size: 15px; color: var(--ink); }
.pe-template .foot-col a:hover, .pe-template .foot-legal a:hover { color: var(--orange); }
.pe-template .foot-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; gap: 12px; }
.pe-template .foot-legal { display: inline-flex; gap: 12px; align-items: center; }
.pe-template .foot-legal span { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.pe-cp section { padding: 64px 0; }
	.pe-cp .hero-grid, .pe-cp .ci-grid, .pe-cp .res-grid, .pe-cp .zones-grid, .pe-cp .faq-grid, .pe-cp .section-head { grid-template-columns: 1fr; gap: 40px; }
	.pe-cp .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
	.pe-cp .timeline, .pe-cp .prof-grid, .pe-cp .testi-grid { grid-template-columns: 1fr; }
	.pe-cp .card-grid { grid-template-columns: repeat(2, 1fr); }
	.pe-template nav.primary { display: none; }
	.pe-template .burger { display: inline-flex; }
	.pe-template .foot-grid { grid-template-columns: 1fr 1fr; }
	.pe-template nav.primary.pe-open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 72px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 16px 32px; gap: 16px; z-index: 60; }
	.pe-template nav.primary.pe-open ul { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 560px) {
	.pe-cp .stats { grid-template-columns: 1fr; }
	.pe-cp .card-grid { grid-template-columns: 1fr; }
	.pe-cp .stat-num { font-size: 44px; }
	.pe-template .foot-grid { grid-template-columns: 1fr; }
}
