/* Petits Espaces: tokens, light Astra overrides and the content components used in pages (written in the WordPress editor). */

:root {
  --pe-teal: #0f766e; --pe-teal-d: #0b5d57; --pe-ink: #16282b; --pe-mute: #4d6265;
  --pe-sand: #f5f1ea; --pe-line: #e2dcd1; --pe-soft: #eef5f3; --pe-amber: #f4b942;
  --pe-buy: #c8431f; --pe-buy-d: #a93616; --pe-r: 14px; --pe-r-s: 9px;
  --pe-head: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --pe-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---- Base and Astra overrides */
body { color: var(--pe-ink); font-family: var(--pe-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--pe-head); letter-spacing: -.02em; line-height: 1.15; color: var(--pe-ink); }
a { color: var(--pe-teal-d); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #1d8cf8; outline-offset: 2px; border-radius: 4px; }
.site-header, .main-header-bar { border-bottom: 1px solid var(--pe-line); }
.site-title a { font-family: var(--pe-head); font-weight: 800; letter-spacing: -.03em; color: var(--pe-teal); }
.main-header-menu .menu-link { font-weight: 600; }
#ast-scroll-top { background: var(--pe-teal); border-radius: 12px; }
input[type=range] { accent-color: var(--pe-teal); }
.pe-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Bars */
.pe-topbar { background: var(--pe-ink); color: #dbe7e5; font-size: 14px; text-align: center; padding: 8px 16px; }
.pe-topbar p { margin: 0; }
.pe-topbar a { color: #fff; font-weight: 600; }
.pe-legalbar { background: var(--pe-ink); color: #9db4b1; font-size: 13.5px; padding: 18px 24px; text-align: center; }
.pe-legalbar p { margin: 0; }

/* ---- Buttons: orange = buy, teal = read */
.pe-buy, .wp-block-button.is-style-pe-buy .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; background: var(--pe-buy); color: #fff !important; font-weight: 700; font-size: 16px; padding: 13px 24px; border-radius: var(--pe-r-s); text-decoration: none !important; box-shadow: 0 2px 0 var(--pe-buy-d); border: 0; }
.pe-buy:hover, .wp-block-button.is-style-pe-buy .wp-block-button__link:hover { background: var(--pe-buy-d); }
.pe-read { color: var(--pe-teal-d); font-weight: 700; text-decoration: none; }
.pe-read:hover { text-decoration: underline; }

/* ---- Article header: breadcrumb, byline, short answer, key facts */
.pe-crumb { font-size: 14px; color: var(--pe-mute); margin: 0 0 10px; }
.pe-byline { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 18px; font-size: 14.5px; color: var(--pe-mute); }
.pe-abrief { font-size: 19px; background: var(--pe-soft); border-left: 5px solid var(--pe-teal); border-radius: 0 var(--pe-r-s) var(--pe-r-s) 0; padding: 14px 18px; margin: 0 0 18px; }
.pe-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--pe-line); border-radius: var(--pe-r); margin: 0 0 18px; overflow: hidden; background: #fff; }
.pe-facts div { padding: 14px 16px; border-right: 1px solid var(--pe-line); }
.pe-facts div:last-child { border-right: 0; }
.pe-facts dt { font-size: 13px; color: var(--pe-mute); font-weight: 600; }
.pe-facts dd { margin: 2px 0 0; font-weight: 700; }

/* ---- State of a figure and the sources table */
.pe-etat { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pe-etat-confirme { background: #dff3e6; color: #14653a; }
.pe-etat-concordant { background: #dcefed; color: #0b5d57; }
.pe-etat-contradictoire { background: #fdeed3; color: #8a5200; }
.pe-etat-non_confirme { background: #ece9e2; color: #5a5a52; }
.pe-table-wrap { overflow-x: auto; border: 1px solid var(--pe-line); border-radius: var(--pe-r); background: #fff; margin: 14px 0; }
.pe-sources, .pe-compare { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; }
.pe-sources th, .pe-sources td, .pe-compare th, .pe-compare td { padding: 11px 14px; border-top: 1px solid var(--pe-line); text-align: left; vertical-align: top; }
.pe-sources thead th, .pe-compare thead th { background: var(--pe-ink); color: #fff; border-top: 0; font-size: 13.5px; white-space: nowrap; }
.pe-sources tbody th { width: 26%; background: var(--pe-soft); }
.pe-sources .pe-src { color: var(--pe-mute); font-size: 13.5px; min-width: 200px; }
.pe-sources tr.is-missing td { color: var(--pe-mute); font-style: italic; background: #faf8f4; }

/* ---- Callouts, housing chips, steps, criteria, FAQ */
.pe-rule { background: var(--pe-soft); border: 1px solid #d5e5e1; border-radius: var(--pe-r); padding: 14px 18px; margin: 0 0 22px; font-size: 15.5px; }
.pe-fit { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pe-fit li { background: var(--pe-soft); color: var(--pe-teal-d); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; }
.pe-criteria, .pe-steps { counter-reset: c; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pe-criteria li, .pe-steps li { counter-increment: c; background: #fff; border: 1px solid var(--pe-line); border-radius: var(--pe-r); padding: 18px 18px 18px 62px; position: relative; }
.pe-criteria li::before, .pe-steps li::before { content: counter(c); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--pe-teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--pe-head); }
.pe-faq details { border: 1px solid var(--pe-line); border-radius: var(--pe-r-s); padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.pe-faq summary { cursor: pointer; font-weight: 700; }
.pe-faq details p { margin: 10px 0 0; color: var(--pe-mute); }
.pe-disclosure { font-size: 13.5px; color: var(--pe-mute); border-top: 1px solid var(--pe-line); padding-top: 14px; margin-top: 24px; }

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .pe-facts div { border-right: 0; border-bottom: 1px solid var(--pe-line); }
  .pe-facts div:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- Full-width pages with our own containers (pages written as blocks of sections) */
.ast-page-builder-template .site-content > .ast-container { max-width: none; padding: 0; display: block; }
.ast-page-builder-template .entry-content, .ast-page-builder-template .ast-container { margin: 0; }
.ast-page-builder-template .ast-article-post, .ast-page-builder-template article.page { padding: 0 !important; margin: 0 !important; border: 0 !important; }
.page .entry-header { display: none; }
body .entry-content .pe-sec, body .entry-content .pe-hero-in, body .entry-content .pe-note, body .entry-content .pe-trust ul { max-width: 1240px !important; margin-left: auto !important; margin-right: auto !important; }

.pe-sec { padding: 60px 24px 0; box-sizing: border-box; }
.pe-sec > h2 { font-size: clamp(26px, 3.2vw, 34px); margin: 0 0 8px; }
.pe-lead { color: var(--pe-mute); margin: 0 0 26px; max-width: 720px; font-size: 18px; }
.pe-note { padding: 0 24px 10px; font-size: 13px; color: var(--pe-mute); margin-top: 36px; }
.pe-band { background: var(--pe-sand); margin-top: 64px; padding-bottom: 60px; border-block: 1px solid var(--pe-line); }
.pe-band .pe-sec { padding-top: 56px; }

/* ---- Hero */
.pe-hero { position: relative; min-height: 460px; display: grid; align-items: center; color: #fff; background: linear-gradient(90deg, rgba(8, 44, 42, .93) 0%, rgba(8, 44, 42, .7) 52%, rgba(8, 44, 42, .12) 100%), var(--hero) center/cover; }
.pe-hero-in { padding: 56px 24px; width: 100%; box-sizing: border-box; }
.pe-hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.04; margin: 0 0 16px; color: #fff; letter-spacing: -.035em; max-width: 720px; font-weight: 800; }
.pe-hero p { font-size: 19px; max-width: 600px; margin: 0 0 26px; color: #e3f0ee; }
.pe-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pe-btn { display: inline-flex; align-items: center; background: var(--pe-teal); color: #fff !important; font-weight: 700; padding: 14px 26px; border-radius: var(--pe-r-s); text-decoration: none !important; border: 2px solid var(--pe-teal); }
.pe-btn:hover { background: var(--pe-teal-d); border-color: var(--pe-teal-d); }
.pe-btn.alt { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.pe-btn.alt:hover { background: rgba(255, 255, 255, .22); }
.pe-trust { background: var(--pe-sand); border-bottom: 1px solid var(--pe-line); }
.pe-trust ul { padding: 16px 24px; list-style: none; display: flex; gap: 10px 34px; flex-wrap: wrap; justify-content: space-between; font-weight: 600; font-size: 14.5px; margin: 0; }

/* ---- Feature block, columns, guides */
.pe-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; background: #fff; border: 1px solid var(--pe-line); border-radius: 20px; padding: 30px; }
.pe-feature h3 { font-size: 24px; margin: 0 0 10px; }
.pe-feature ul { margin: 0 0 20px; padding-left: 1.1em; }
.pe-feature li { margin: 0 0 8px; }
.pe-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.pe-links a { display: block; padding: 14px 18px; border: 1px solid var(--pe-line); border-radius: var(--pe-r-s); background: var(--pe-soft); font-weight: 700; text-decoration: none; color: var(--pe-ink); }
.pe-links a:hover { border-color: var(--pe-teal); color: var(--pe-teal-d); }
.pe-links small { display: block; font-weight: 400; color: var(--pe-mute); }
.pe-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.pe-col { background: #fff; border: 1px solid var(--pe-line); border-radius: var(--pe-r); padding: 22px; }
.pe-col h3 { margin: 0 0 8px; font-size: 20px; }
.pe-col p { margin: 0; color: var(--pe-mute); font-size: 16px; }
.pe-steps li h3 { margin: 0 0 6px; font-size: 20px; }
.pe-steps li p { margin: 0; color: var(--pe-mute); font-size: 16px; }
.pe-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.pe-guide { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--pe-line); border-radius: var(--pe-r); padding: 22px; text-decoration: none !important; color: inherit; }
.pe-guide:hover { border-color: var(--pe-teal); }
.pe-guide h3 { margin: 0; font-size: 20px; }
.pe-guide p { margin: 0; color: var(--pe-mute); flex: 1; font-size: 16px; }
.pe-sec.pe-faq details { max-width: 860px; }

@media (max-width: 900px) { .pe-feature { grid-template-columns: 1fr; padding: 22px; } }
@media (max-width: 720px) { .pe-hero { min-height: 0; } .pe-hero-in { padding: 38px 18px 44px; } .pe-sec { padding: 44px 18px 0; } .pe-trust ul { justify-content: flex-start; } }
