/*
Theme Name: Bynom
Theme URI: https://bynom.be
Author: Bynom
Description: Thème sur mesure pour bynom.be : page d'accueil à une seule page, sans constructeur ni dépendance.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bynom
*/

:root {
  --brown: #8c6644;
  --brown-dark: #6f4e31;
  --bar: #a67c5b;
  --slate: #475770;
  --coral: #f66464;
  --mist: #dde2e3;
  --paper: #f4f4f4;
  --ink: #1a1a1a;
  --text: #2b2b2b;
  --muted: #4a4a4a;
  --affinitic: #07618f;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: Karla, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; }
p { margin: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 12px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 2px;
  background: var(--brown);
  color: #fff;
  border: 2px solid var(--brown);
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn--outline { background: transparent; color: var(--brown-dark); }
.btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- En-tête ---------- */
.site-header { background: #fff; border-bottom: 1px solid #e3e6e8; }
.site-header .wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 14px; padding-bottom: 6px; }
.site-logo img { display: block; width: 104px; height: 104px; object-fit: contain; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 30px; }
.nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 3px solid transparent;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav a:hover, .nav .current-menu-item > a { border-bottom-color: var(--brown); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--paper { background: var(--paper); }
.section--mist { background: var(--mist); }
.section__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 44px; }
.dash { width: 56px; height: 4px; border-radius: 4px; background: var(--coral); }
.section__head h2, .about__head h2 { font-size: 36px; line-height: 1.2; }
.lead { max-width: 680px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--brown-dark); }

/* Hero */
.hero { background: var(--mist); padding: 84px 0 92px; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero h1 { max-width: 860px; font-size: clamp(32px, 5vw, 52px); line-height: 1.15; }
.hero p { max-width: 660px; font-size: 18px; line-height: 1.65; color: var(--text); }
.hero .btns { margin-top: 8px; }

/* Partenariat */
.partners { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 20px; }
.partner { flex: 1 1 340px; max-width: 460px; background: #fff; border: 1px solid var(--mist); border-radius: 6px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.partner__logo { display: flex; align-items: center; gap: 12px; height: 96px; }
.partner__logo img { height: 96px; width: 96px; object-fit: contain; }
.partner__logo--affinitic img { height: 56px; width: auto; }
.partner__logo--affinitic span { font-size: 24px; font-weight: 700; letter-spacing: .5px; color: var(--affinitic); }
.partner h3 { font-size: 20px; }
.partner p { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.plus { flex: 0 0 56px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--brown); }
.center { display: flex; justify-content: center; margin-top: 44px; }

/* Cartes dépliables */
.cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.col { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.col > h3 { font-size: 22px; margin-bottom: 4px; }
.card { background: #fff; border: 1px solid var(--mist); border-radius: 6px; overflow: hidden; }
.card summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 20px; min-height: 44px; cursor: pointer; }
.card summary::-webkit-details-marker { display: none; }
.card .num { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--slate); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.card .ttl { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.card .ttl strong { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.card .ttl span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.card .chev { flex: 0 0 20px; transition: transform .2s; }
.card[open] .chev { transform: rotate(180deg); }
.card ul { margin: 0; padding: 0 20px 22px 80px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--text); line-height: 1.6; }
.card--plain summary { padding: 18px 20px; }
.card--plain ul { padding: 0 20px 20px 36px; }

/* Parcours */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.about__photo { flex: 1 1 320px; max-width: 420px; aspect-ratio: 4 / 5; border-radius: 4px; background: var(--mist); overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--slate); font-size: 14px; font-weight: 700; letter-spacing: 2px; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__body { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.about__head { display: flex; flex-direction: column; gap: 10px; }
.about__head .sub { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--muted); }
.step { display: flex; gap: 18px; }
.step__rail { display: flex; flex-direction: column; align-items: center; flex: 0 0 14px; }
.step__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brown); margin-top: 6px; }
.step__line { width: 2px; flex: 1 1 auto; background: var(--mist); }
.step__body { padding-bottom: 26px; display: flex; flex-direction: column; gap: 4px; }
.step__body h3 { font-size: 19px; }
.step__body p { font-size: 15.5px; line-height: 1.65; color: var(--text); }
.step:last-child .step__line { background: transparent; }

/* Compétences */
.bar { display: flex; flex-direction: column; gap: 6px; }
.bar__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 500; }
.bar__track { height: 12px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; background: var(--bar); }
.bar__fill--dark { background: var(--slate); }

/* Valeurs */
.values { display: flex; flex-wrap: wrap; gap: 20px; }
.value { flex: 1 1 240px; background: #fff; border: 1px solid var(--mist); border-radius: 6px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.value h3 { font-size: 20px; }
.value p { font-size: 15px; line-height: 1.65; color: var(--text); }

/* Contact */
.cta .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.cta h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.2; }
.cta p { max-width: 640px; font-size: 18px; line-height: 1.65; color: var(--text); }
.cta { padding: 80px 0; }

/* Pied de page */
.site-footer { background: #1c1f23; color: #cdd3d8; padding: 56px 0 28px; }
.site-footer .cols-f { display: flex; flex-wrap: wrap; gap: 36px 56px; justify-content: space-between; }
.site-footer .f-col { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.site-footer .f-col--wide { flex: 2 1 300px; gap: 10px; line-height: 1.7; }
.site-footer .f-col:not(.f-col--wide) { flex: 1 1 180px; }
.site-footer h4 { font-size: 20px; color: #fff; margin-bottom: 4px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.18); margin-top: 36px; padding-top: 22px; text-align: center; font-size: 13px; }

/* Pages et articles ordinaires */
.entry { padding: 64px 0 88px; max-width: 780px; margin: 0 auto; }
.entry h1 { font-size: 40px; line-height: 1.2; margin-bottom: 24px; }
.entry h2 { font-size: 28px; margin: 36px 0 12px; }
.entry p, .entry li { font-size: 16.5px; line-height: 1.7; color: var(--text); }
.entry p { margin-bottom: 16px; }
.entry a { color: var(--brown-dark); text-decoration: underline; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section__head h2, .about__head h2 { font-size: 30px; }
  .card ul { padding-left: 24px; }
  .plus { flex-basis: 100%; height: 32px; }
}
