/*
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: 2.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 { position: relative; 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: 480px; 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: 22px; color: var(--ink); }
.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; }

/* 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; object-position: 50% 30%; 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; }

/* 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); }

/* Sélecteur de langue */
.lang { position: absolute; top: 14px; right: 24px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 2px; z-index: 5; }
.lang a { padding: 10px 2px; border-bottom: 3px solid transparent; }
.lang a:hover, .lang a[aria-current] { border-bottom-color: var(--brown); }
.lang span { color: #9aa3a8; }

/* « Vos bénéfices » */
.ben { margin-top: auto; border-top: 1px solid var(--mist); padding-top: 4px; }
.ben summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 12px 0; cursor: pointer; color: var(--brown-dark); font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.ben summary::-webkit-details-marker { display: none; }
.ben summary:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
.ben .chev { flex: 0 0 20px; transition: transform .2s; }
.ben[open] .chev { transform: rotate(180deg); }
.bul { margin: 4px 0 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 10px; color: var(--text); font-size: 15px; line-height: 1.6; }
.bul li::marker, .flip li::marker { color: var(--brown); }

/* Trajectoire */
.trajet { list-style: none; margin: 0 0 44px; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.trajet li { flex: 1 1 170px; min-width: 0; position: relative; border-top: 2px solid var(--mist); padding-top: 22px; }
.trajet li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--slate); }
.trajet .trajet__now::before { background: var(--brown); }
.trajet__when { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--brown-dark); }
.trajet__what { display: block; margin-top: 6px; font-family: var(--serif); font-size: 17px; line-height: 1.35; color: var(--ink); }

/* Cartes qui se retournent */
.flips { display: flex; flex-wrap: wrap; gap: 20px; }
.flip { flex: 1 1 440px; min-width: 0; perspective: 1100px; height: 380px; outline: none; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d; }
.flip:hover .flip-inner, .flip:focus-within .flip-inner, .flip:focus .flip-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6px; overflow: hidden; }
.front { background: var(--slate); color: #fff; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.front__n { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--mist); }
.front__txt { display: flex; flex-direction: column; gap: 14px; }
.front__dash { width: 40px; height: 4px; border-radius: 4px; background: var(--coral); }
.front h3 { font-size: 28px; line-height: 1.2; }
.front__hint { font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--mist); }
.back { transform: rotateY(180deg); background: #fff; border: 1px solid var(--mist); padding: 26px 28px; display: flex; flex-direction: column; gap: 16px; }
.back ul { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; line-height: 1.55; color: var(--text); }
.tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brown-dark); border: 1px solid var(--brown); border-radius: 999px; padding: 5px 12px; }
.flip:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
@media (max-width: 600px) { .flip { height: 500px; } }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }

@media (max-width: 640px) { .lang { top: 8px; right: 12px; } }

/* 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 .social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: 10px; border-radius: 6px; background: var(--brown); transition: filter .15s; }
.site-footer .social:hover { filter: brightness(1.15); }
.site-footer .social:focus-visible { outline-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; }
  .plus { flex-basis: 100%; height: 32px; }
}
