/* Atout Persona — feuille de style unique du site statique. */

:root {
  --violet: #6b6d99;
  --violet-clair: #9794d2;
  --violet-fonce: #4b4d70;
  --encre: #22242e;
  --gris: #5f6272;
  --trait: #e4e4ec;
  --fond: #ffffff;
  --surface: #f6f6fa;
  --largeur: 1160px;
  --lecture: 780px;
  --rayon: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--violet); }
a:hover { color: var(--violet-fonce); }

.wrap { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: var(--lecture); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--violet); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------------ entête */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--trait);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 38px; }

.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 10px 14px; border-radius: var(--rayon);
  color: var(--encre); text-decoration: none; font-weight: 600; font-size: 15px;
}
.site-nav a:hover { background: var(--surface); color: var(--violet); }
.site-nav a[aria-current="page"] { color: var(--violet); }

.nav-toggle { display: none; }
.nav-burger { display: none; }

@media (max-width: 800px) {
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; cursor: pointer; order: 3;
  }
  .nav-burger span { display: block; height: 2px; background: var(--encre); border-radius: 2px; }
  .site-nav { display: none; order: 4; width: 100%; padding-bottom: 12px; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .header-inner { flex-wrap: wrap; }
}

/* -------------------------------------------------------------------- héro */

.hero {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-clair) 100%);
  color: #fff; padding: 84px 0 76px;
}
.hero h1 { margin: 0 0 12px; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; letter-spacing: -0.5px; }
.hero p.baseline { margin: 0 0 28px; font-size: clamp(17px, 2.4vw, 21px); opacity: .95; max-width: 42em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: var(--rayon);
  font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: #fff; color: var(--violet-fonce); }
.btn-primary:hover { background: #f0f0f8; color: var(--violet-fonce); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-solid { background: var(--violet); color: #fff; }
.btn-solid:hover { background: var(--violet-fonce); color: #fff; }

.eyebrow {
  margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 2.4px;
  text-transform: uppercase; opacity: .9;
}
.eyebrow-dark {
  margin: 0 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--violet);
}

/* ---------------------------------------------------------------- sections */

.section { padding: 64px 0; }
.section.alt { background: var(--surface); }
.section > .wrap > h2 { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 32px); }
.section .intro { margin: 0 auto 36px; color: var(--gris); max-width: 46em; }
.section.center { text-align: center; }
.section.center .intro { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 26px; text-align: left;
}
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { margin: 0; color: var(--gris); font-size: 15.5px; }
.card img.logo { height: 46px; width: auto; margin-bottom: 16px; }

/* --------------------------------------------------------------- articles */

.page-article { padding: 44px 0 72px; }
.page-article h1 { margin: 10px 0 6px; font-size: clamp(27px, 4vw, 38px); line-height: 1.2; }
.page-article .meta { color: var(--gris); font-size: 14.5px; margin: 0 0 28px; }

.breadcrumb { font-size: 14px; color: var(--gris); }
.breadcrumb a { text-decoration: none; }
.breadcrumb span { margin: 0 2px; }

.prose { font-size: 17.5px; }
.prose h2 {
  margin: 44px 0 14px; font-size: 26px; line-height: 1.25;
  padding-bottom: 8px; border-bottom: 2px solid var(--trait);
}
.prose h3 { margin: 32px 0 10px; font-size: 21px; }
.prose h4 { margin: 26px 0 8px; font-size: 18px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose img { display: block; margin: 26px auto; border-radius: var(--rayon); }
.prose blockquote {
  margin: 24px 0; padding: 4px 0 4px 20px;
  border-left: 4px solid var(--violet-clair); color: var(--gris); font-style: italic;
}
.prose table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15.5px;
  display: block; overflow-x: auto;
}
.prose th, .prose td { border: 1px solid var(--trait); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose thead th, .prose tr:first-child th { background: var(--surface); }
.prose hr { border: 0; border-top: 1px solid var(--trait); margin: 36px 0; }

/* Sommaire hérité du contenu WordPress (liste de liens en tête d'article). */
.prose > ul:first-of-type { }

/* ----------------------------------------------------- publications (accueil) */

.pub-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 30px; text-align: left;
}
.pub-head h2 { margin: 0 0 8px; }
.pub-sub { margin: 0; color: var(--gris); max-width: 46em; }
.pub-all { font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.pub-all:hover { text-decoration: underline; }

.pub-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.pub-card {
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 26px 28px 28px; text-align: left;
}
.pub-meta {
  margin: 0 0 12px; display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--gris); text-transform: uppercase; letter-spacing: 1.2px;
}
.pub-chip {
  background: #eeeef7; color: var(--violet-fonce); border-radius: 999px;
  padding: 3px 11px; font-weight: 700; font-size: 11.5px; letter-spacing: 1.2px;
}
.pub-card h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; }
.pub-card h3 a { color: var(--encre); text-decoration: none; }
.pub-card h3 a:hover { color: var(--violet); }
.pub-card .pub-excerpt { margin: 0; color: var(--gris); font-size: 15.5px; }

/* ------------------------------------------------------------------ blog */

.post-list { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--trait); border-radius: var(--rayon); background: #fff;
}
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.post-card h2 a { text-decoration: none; color: var(--encre); }
.post-card h2 a:hover { color: var(--violet); }
.post-card p { margin: 0 0 16px; color: var(--gris); font-size: 15px; flex: 1; }
.post-card time { color: var(--gris); font-size: 13.5px; }

/* ---------------------------------------------------------------- contact */

.contact-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-card {
  background: var(--violet); color: #fff; border-radius: var(--rayon);
  padding: 32px 26px; text-align: center;
}
.contact-card h2 { margin: 0 0 6px; font-size: 20px; }
.contact-card p { margin: 0; opacity: .95; }
.contact-card a { color: #fff; }

.logo-wall { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-items: center; }
.logo-wall img {
  width: 100%; height: 86px; object-fit: contain; padding: 10px;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
}

.card p + p { margin-top: 12px; }
.card .eyebrow-dark + h3 { margin-top: 0; }

figure.team { margin: 44px 0 0; text-align: center; }
figure.team img { border-radius: var(--rayon); }
figure.team figcaption { margin-top: 12px; color: var(--gris); font-size: 15px; }

.form-block { margin-top: 8px; }
.serenity-form-fallback { text-align: center; }
.serenity-form-fallback .btn { margin: 4px; }

/* ------------------------------------------------------------------- pied */

.site-footer { background: #2b2d3d; color: #c9cad6; margin-top: 0; padding: 56px 0 0; font-size: 15px; }
.site-footer h2 { margin: 0 0 14px; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: #fff; }
.site-footer p { margin: 0 0 12px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 2fr 1fr 1fr; padding-bottom: 40px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; color: #c9cad6; }
.footer-links a:hover { color: #fff; }
address { font-style: normal; line-height: 1.9; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 24px; }
.footer-legal p { margin: 0; font-size: 13.5px; color: #9294a6; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}
