/*
Theme Name: CESAR Conseil & Courtage
Description: Thème du site de CESAR Conseil & Courtage, courtier en assurances d’entreprise à Strassen.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: cesar
*/

:root {
  --navy: #1b2033;
  --navy-2: #232a42;
  --gold: #b8964f;
  --gold-text: #80632d;
  --gold-light: #d9bf7c;
  --gold-hover: #c9a961;
  --ink: #1b1f27;
  --muted: #5b6270;
  --line: #e3e5ea;
  --bg: #ffffff;
  --bg-alt: #f4f5f8;
  --error: #b42318;
  --success: #1f6f43;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.22rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 26px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--gold-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn[disabled] { opacity: 0.7; cursor: wait; }
.btn-small { padding: 9px 18px; font-size: 0.88rem; }
.link-arrow { display: inline-block; text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: "\00a0→"; }
.section .link-arrow { color: var(--navy); margin-top: 8px; }
.section-dark .link-arrow, .hero .link-arrow { color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 0.93rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover { color: var(--gold-text); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 7px 9px; }

/* Hero (home) and page heads */
.hero {
  position: relative;
  background: var(--navy) url(assets/photos/luxembourg-kirchberg.jpg) 70% 35% / cover no-repeat;
  color: #fff;
  padding: 92px 0 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(27, 32, 51, 0.97) 0%, rgba(27, 32, 51, 0.9) 45%, rgba(27, 32, 51, 0.6) 100%);
}
.hero > .wrap { position: relative; }
.hero h1, .page-head h1 { color: #fff; max-width: 21ch; }
.lead { font-size: 1.15rem; color: #c9cedb; max-width: 60ch; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-top: 40px; }
.trust {
  margin-top: 64px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  color: #b8bfcf;
  display: flex; align-items: center; gap: 14px;
}
.trust::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex: none; }
.page-head { background: var(--navy); color: #fff; padding: 60px 0 64px; }
.page-head h1 { max-width: 34ch; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.page-head .lead { margin-top: 18px; max-width: 72ch; font-size: 1.08rem; }
.page-head .lead + .lead { margin-top: 0; }
.page-head .btn { margin-top: 28px; }

/* Sections */
.section { padding: 86px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-2); color: #d5d9e3; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }
.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; }
.prose p { font-size: 1.06rem; }
.muted p, p.muted { color: var(--muted); }
.small-print { font-size: 0.85rem; color: var(--muted); margin-top: 48px; }

.checks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.checks li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 12px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

.callout { border-left: 2px solid var(--gold); padding: 4px 0 4px 20px; margin: 28px 0; color: var(--ink); }
.callout strong { color: var(--navy); }

.icon { width: 40px; height: 40px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; display: block; }
.section-photo { margin: 40px 0 0; aspect-ratio: 4 / 3; overflow: hidden; }
.section-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Proof band */
.proofs { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 36px 0; }
.proofs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.proofs-grid > div { border-left: 2px solid var(--gold); padding-left: 20px; }
.proof-title { font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; }
.proofs p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-top: 3px solid var(--gold); padding: 36px 32px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.card .link-arrow { align-self: flex-start; }

/* Founders teaser */
.founders-teaser { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; }
.monograms { display: flex; gap: 28px; justify-content: center; }
.monogram { text-align: center; font-size: 0.9rem; color: var(--muted); }
.monogram img { width: 220px; height: 275px; object-fit: cover; object-position: center top; filter: grayscale(1); margin: 0 auto 14px; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; filter: grayscale(1); }

/* Method (home) */
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: m; margin-bottom: 40px; }
.method > div { counter-increment: m; padding: 32px 32px 0 0; }
.method > div::before { content: "0" counter(m); display: block; font-family: var(--serif); color: var(--gold-text); margin-bottom: 14px; }
.method h3 { margin-bottom: 10px; }
.method p { color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.15rem; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold-text); font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 24px; margin: 0; max-width: 70ch; }

/* CTA band */
.cta { background: var(--bg-alt); text-align: left; }
.cta-inner { display: grid; grid-template-columns: 1.4fr auto; gap: 48px; align-items: end; }
.cta p { color: var(--muted); font-size: 1.06rem; margin: 18px 0 0; }

/* Solutions page */
.solution { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; padding: 72px 0; border-bottom: 1px solid var(--line); }
.solution:last-child { border-bottom: 0; }
.solution-body > p { color: var(--muted); }
.solution-body .checks { margin: 8px 0 0; }

/* Approach page */
.steps { counter-reset: s; }
.step { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; padding: 56px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.step p { color: var(--muted); }
.step .callout { color: var(--ink); margin-bottom: 0; }

/* Founders page */
.person { display: grid; grid-template-columns: 280px 1fr; gap: 64px; padding: 80px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; padding-top: 0; }
.role { color: var(--gold-text); font-weight: 600; margin: 10px 0 4px; }
.licence { font-size: 0.92rem; font-weight: 500; color: var(--navy); margin-bottom: 24px; }
.person-body p:not(.role):not(.licence) { color: var(--muted); }

/* Contact */
.contact-page { padding: 52px 0 86px; }
.contact-intro { max-width: 720px; margin-bottom: 40px; }
.contact-intro h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.contact-intro p { color: var(--muted); font-size: 1.08rem; margin: 16px 0 0; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: start; }
.form { background: var(--bg-alt); padding: 36px 40px; display: grid; gap: 18px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--navy); }
.req { color: var(--gold-text); margin-left: 2px; }
.field input, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfd3db; background: #fff; border-radius: 2px; color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: -1px; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: var(--error); }
.help { font-size: 0.85rem; color: var(--muted); margin: 0; }
.error { font-size: 0.85rem; color: var(--error); margin: 0; }
.error:empty { display: none; }
.form-info { font-size: 0.85rem; color: var(--muted); margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-status { margin: 0; font-size: 0.95rem; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }
.aside-block { border-top: 2px solid var(--navy); padding-top: 28px; }
.aside-block + .aside-block { margin-top: 48px; }
.aside-block h2 { font-size: 1.5rem; margin-bottom: 16px; }
.aside-block h3 { font-size: 1rem; margin-bottom: 8px; }
.aside-block p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #aab1c2; padding: 72px 0 28px; font-size: 0.9rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-logo { height: 60px; width: auto; margin-bottom: 24px; }
.footer-id p { margin: 0 0 12px; line-height: 1.7; }
.footer-id strong { color: #fff; font-weight: 600; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover, .footer-bottom a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 48px; padding-top: 24px; font-size: 0.82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-bottom a { text-decoration: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 22px; font-size: 0.9rem; }
}
@media (max-width: 980px) {
  .two-col, .founders-teaser, .solution, .step, .contact-grid, .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cards, .method, .proofs-grid { grid-template-columns: 1fr; }
  .proofs-grid { gap: 22px; }
  .contact-grid aside { display: contents; }
  .aside-address { order: -1; }
  .aside-next { order: 1; }
  .aside-block + .aside-block { margin-top: 0; }
  .method > div { padding-right: 0; }
  .person { grid-template-columns: 1fr; gap: 28px; }
  .person .portrait { max-width: 280px; }
  .monograms { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--gold-text); }
  .nav .btn { margin-top: 16px; text-align: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { height: 72px; }
  .logo img { height: 44px; }
  .nav { top: 72px; }
  .hero { padding-top: 72px; }
  .trust { margin-top: 56px; align-items: flex-start; }
  .trust::before { margin-top: 10px; }
  .section { padding: 60px 0; }
  .solution { padding: 52px 0; }
  .page-head { padding: 44px 0 48px; }
  .contact-page { padding-top: 36px; }
  .monogram img { width: 140px; height: 175px; }
  .form { padding: 24px; }
}
