/*
Theme Name: BR Patrimoine
Theme URI: https://brp.secourit.fr
Author: SecourIT
Author URI: https://secourit.fr
Description: Thème sur mesure pour Romain Billioud, conseiller patrimonial. Design éditorial, palette taupe et noir, typographie Menca.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brp
Tags: one-column, custom-colors, custom-logo, custom-menu, editor-style, block-styles, wide-blocks
*/

/* -------------------------------------------------------------------------
   Polices
   Menca est la police de la charte. Les fichiers WOFF2 seront ajoutés dans
   assets/fonts/ dès réception. Instrument Sans assure le relais en attendant.
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------------------
   Socle
   ------------------------------------------------------------------------- */
:root {
  --brp-noir: #000000;
  --brp-encre: #292522;
  --brp-texte-doux: #6f6661;
  --brp-taupe: #b3867d;
  --brp-taupe-fonce: #9a8c86;
  --brp-taupe-texte: #7a5b54;
  --brp-ivoire: #f8f6f4;
  --brp-sable: #eeeae8;
  --brp-blanc: #ffffff;
  --brp-ligne: #ded4d0;
  --brp-max: 1240px;
  --brp-gutter: clamp(22px, 6vw, 96px);
  --brp-radius: 6px;
  --brp-font: "Menca", "Instrument Sans", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--brp-ivoire);
  color: var(--brp-encre);
  font-family: var(--brp-font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--brp-taupe);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brp-taupe-texte);
  outline-offset: 4px;
}

.brp-main {
  min-height: 50vh;
}

.brp-wrap {
  width: 100%;
  max-width: var(--brp-max);
  margin-inline: auto;
  padding-inline: var(--brp-gutter);
}

/* -------------------------------------------------------------------------
   En-tête
   ------------------------------------------------------------------------- */
.brp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid rgba(154, 140, 134, .28);
  backdrop-filter: blur(12px);
}

.brp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 96px;
  max-width: var(--brp-max);
  margin-inline: auto;
  padding: 12px var(--brp-gutter);
}

.brp-logo {
  flex: none;
}

.brp-logo img {
  display: block;
  width: 220px;
  max-width: 56vw;
  height: auto;
}

.brp-nav {
  margin-left: auto;
}

.brp-nav .wp-block-navigation__container {
  gap: clamp(16px, 2.2vw, 32px);
  font-size: .98rem;
  font-weight: 500;
}

.brp-nav .wp-block-navigation-item__content {
  text-decoration: none;
}

.brp-nav .wp-block-navigation-item:not(.brp-nav-cta) .wp-block-navigation-item__content {
  position: relative;
}

.brp-nav .wp-block-navigation-item:not(.brp-nav-cta) .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--brp-taupe);
  transition: right .25s ease;
}

.brp-nav .wp-block-navigation-item:not(.brp-nav-cta):hover .wp-block-navigation-item__content::after {
  right: 0;
}

.brp-nav .brp-nav-cta .wp-block-navigation-item__content {
  padding: 10px 18px;
  border: 1px solid var(--brp-noir);
  border-radius: 4px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.brp-nav .brp-nav-cta .wp-block-navigation-item__content:hover {
  background: var(--brp-noir);
  color: #fff;
  transform: translateY(-1px);
}

.brp-nav .wp-block-navigation__responsive-container-open,
.brp-nav .wp-block-navigation__responsive-container-close {
  color: var(--brp-noir);
}

/* -------------------------------------------------------------------------
   Héros
   ------------------------------------------------------------------------- */
.brp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 5.5vw, 78px) 0 clamp(56px, 7vw, 104px);
  background: radial-gradient(circle at 78% 16%, rgba(179, 134, 125, .18), transparent 26%), linear-gradient(118deg, #ffffff 0%, #f8f6f4 58%, #e8e1de 100%);
}

.brp-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  max-width: var(--brp-max);
  margin-inline: auto;
  padding-inline: var(--brp-gutter);
}

.brp-hero__copy {
  min-width: 0;
}

.brp-hero h1 {
  max-width: 880px;
  color: var(--brp-noir);
}

.brp-hero h1 em {
  position: relative;
  display: inline-block;
  color: var(--brp-taupe);
  font-style: normal;
}

.brp-hero h1 em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, var(--brp-taupe), transparent);
}

.brp-lead {
  max-width: 660px;
  margin: 28px 0 32px;
  color: #40504e;
  font-size: clamp(1.1rem, 1.45vw, 1.28rem);
  line-height: 1.72;
}

.brp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--brp-texte-doux);
  font-size: .86rem;
}

.brp-trust li::before {
  content: "•";
  margin-right: 9px;
  color: var(--brp-taupe);
}

.brp-hero__media {
  width: 100%;
  max-width: 430px;
  justify-self: end;
}

.brp-portrait {
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(179, 134, 125, .38);
  border-radius: 8px;
  box-shadow: 0 26px 65px rgba(20, 16, 14, .16);
}

.brp-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
}

.brp-portrait .wp-element-caption {
  display: flex;
  flex-direction: column;
  padding: 14px 6px 3px;
  color: var(--brp-texte-doux);
  font-size: .82rem;
  line-height: 1.45;
  text-align: left;
}

.brp-portrait .wp-element-caption strong {
  color: var(--brp-encre);
  font-size: .95rem;
  font-weight: 600;
}

.brp-decision-path {
  position: absolute;
  right: -4%;
  bottom: 4%;
  z-index: 0;
  width: 58%;
  height: 72%;
  overflow: visible;
  opacity: .42;
  pointer-events: none;
}

.brp-decision-path path {
  fill: none;
  stroke: var(--brp-taupe);
  stroke-width: 1.35;
  stroke-dasharray: 7 9;
}

.brp-decision-path circle {
  fill: var(--brp-taupe);
  stroke: var(--brp-ivoire);
  stroke-width: 3;
}

/* -------------------------------------------------------------------------
   Sections et titres
   ------------------------------------------------------------------------- */
.brp-section {
  padding: clamp(70px, 9vw, 132px) 0;
}

.brp-section--sable {
  background: var(--brp-sable);
}

.brp-section--night {
  position: relative;
  background: linear-gradient(145deg, #000 0%, #292522 100%);
  color: #fff;
}

.brp-section--night::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--brp-gutter);
  width: min(32%, 360px);
  height: 2px;
  background: linear-gradient(90deg, var(--brp-taupe), transparent);
}

.brp-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--brp-taupe-texte);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.brp-eyebrow::before {
  content: "";
  flex: none;
  width: 34px;
  height: 2px;
  background: var(--brp-taupe);
}

.brp-section-head {
  max-width: 800px;
  margin-bottom: clamp(36px, 5vw, 54px);
}

.brp-section-head h2 {
  color: var(--brp-noir);
}

.brp-section-head > p:last-child {
  max-width: 700px;
  margin-top: 20px;
  color: var(--brp-texte-doux);
  font-size: 1.06rem;
}

.brp-section--night .brp-eyebrow {
  color: #e2c4bd;
}

.brp-section--night .brp-section-head h2 {
  color: #fff;
}

.brp-section--night .brp-section-head > p:last-child {
  color: #cfc2bd;
}

/* -------------------------------------------------------------------------
   Mon approche
   ------------------------------------------------------------------------- */
.brp-statement__grid {
  display: grid;
  grid-template-columns: minmax(140px, .32fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.brp-statement__body {
  min-width: 0;
}

.brp-statement h2 {
  max-width: 920px;
}

.brp-statement__body > p {
  max-width: 790px;
  margin: 24px 0 0;
  color: var(--brp-texte-doux);
  font-size: 1.09rem;
}

.brp-values {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px !important;
  margin: clamp(40px, 5vw, 60px) 0 0 !important;
  align-items: stretch;
}

.brp-values .wp-block-column {
  width: auto !important;
  flex: none !important;
  margin: 0 !important;
  padding-top: 20px;
  border-top: 1px solid var(--brp-ligne);
}

.brp-index {
  margin: 0 0 8px !important;
  color: var(--brp-taupe-texte);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.brp-values h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.brp-values p:last-child {
  margin: 0;
  color: var(--brp-texte-doux);
  font-size: .96rem;
}

/* -------------------------------------------------------------------------
   Cartes expertises
   ------------------------------------------------------------------------- */
.brp-cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px !important;
  margin: 0 !important;
  align-items: stretch;
}

.brp-cards .wp-block-column {
  display: flex;
  flex-direction: column;
  width: auto !important;
  flex: none !important;
  min-height: 250px;
  margin: 0 !important;
  padding: clamp(24px, 3vw, 34px);
  background: #fff;
  border: 1px solid rgba(41, 37, 34, .09);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 16, 14, .045);
  transition: transform .25s ease, box-shadow .25s ease;
}

.brp-cards .wp-block-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 16, 14, .09);
}

.brp-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: #f5eadc;
  color: var(--brp-taupe-texte);
  box-shadow: inset 0 0 0 1px rgba(179, 134, 125, .42);
}

.brp-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brp-cards h3 {
  margin: 0 0 8px;
  font-size: 1.26rem;
}

.brp-cards p {
  margin: 0;
  color: var(--brp-texte-doux);
  font-size: .95rem;
}

/* -------------------------------------------------------------------------
   Méthode
   ------------------------------------------------------------------------- */
.brp-timeline {
  margin: clamp(36px, 5vw, 52px) 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  list-style: none;
  counter-reset: brp-step;
}

.brp-timeline li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  column-gap: 26px;
  row-gap: 4px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  counter-increment: brp-step;
}

.brp-timeline li::before {
  content: counter(brp-step, decimal-leading-zero);
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(179, 134, 125, .75);
  border-radius: 50%;
  background: rgba(179, 134, 125, .08);
  color: var(--brp-taupe);
  font-size: 1rem;
  font-weight: 500;
}

.brp-timeline h3,
.brp-timeline p {
  grid-column: 2;
}

.brp-timeline h3 {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
}

.brp-timeline p {
  max-width: 760px;
  margin: 0;
  color: #cfc2bd;
  font-size: 1rem;
}

/* -------------------------------------------------------------------------
   À propos
   ------------------------------------------------------------------------- */
.brp-about__grid {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}

.brp-about__media {
  margin: 0;
}

.brp-about__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 6px;
}

.brp-about__media .wp-element-caption {
  padding: 14px 4px 0;
  color: var(--brp-texte-doux);
  font-size: .88rem;
}

.brp-about__body > p {
  color: var(--brp-texte-doux);
}

.brp-about__body h2 {
  margin-bottom: 22px;
}

.brp-quote {
  margin: 30px 0 0;
  padding: 20px 0 20px 24px;
  border-left: 3px solid var(--brp-taupe);
  color: var(--brp-encre);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.5;
}

.brp-quote p {
  margin: 0;
}

.brp-quote cite {
  display: block;
  margin-top: 10px;
  color: var(--brp-texte-doux);
  font-size: .85rem;
  font-style: normal;
}

/* -------------------------------------------------------------------------
   Engagements
   ------------------------------------------------------------------------- */
.brp-commit-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px !important;
  margin: 0 !important;
  align-items: stretch;
}

.brp-commit-grid .wp-block-column {
  width: auto !important;
  flex: none !important;
  min-height: 220px;
  margin: 0 !important;
  padding: clamp(24px, 3vw, 30px);
  background: #fff;
  border-top: 3px solid var(--brp-taupe);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 22px rgba(20, 16, 14, .045);
}

.brp-commit-grid h3 {
  margin: 20px 0 8px;
  font-size: 1.24rem;
}

.brp-commit-grid p {
  margin: 0;
  color: var(--brp-texte-doux);
  font-size: .94rem;
}

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */
.brp-contact {
  background: linear-gradient(125deg, #e6dfdc 0%, #ffffff 100%);
}

.brp-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}

.brp-contact__intro > p {
  max-width: 560px;
  color: var(--brp-texte-doux);
}

.brp-contact__media {
  max-width: 310px;
  margin: 30px 0 0;
}

.brp-contact__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  border: 1px solid rgba(179, 134, 125, .35);
}

.brp-contact-card {
  padding: clamp(24px, 3vw, 38px);
  background: #fff;
  border: 1px solid rgba(41, 37, 34, .08);
  border-radius: 10px;
  box-shadow: 0 22px 58px rgba(20, 16, 14, .10);
}

.brp-contact-line {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--brp-ligne);
}

.brp-contact-line svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--brp-taupe-texte);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brp-contact-line__text {
  min-width: 0;
}

.brp-contact-line__text p {
  margin: 0;
  overflow-wrap: anywhere;
}

.brp-contact-line .brp-label {
  margin: 0 0 1px;
  color: var(--brp-taupe-texte);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.brp-contact-line a {
  text-decoration: none;
}

.brp-contact-line a:hover {
  text-decoration: underline;
}

.brp-socials {
  margin-top: 20px;
}

.brp-socials .wp-block-social-link,
.brp-socials .wp-block-social-link.wp-social-link-linkedin {
  border-radius: 7px;
  background: var(--brp-noir);
  color: #fff;
  transition: background .2s ease, transform .2s ease;
}

.brp-socials .wp-block-social-link:hover {
  background: var(--brp-taupe-texte);
  transform: translateY(-1px);
}

.brp-socials .wp-block-social-link-anchor {
  padding: 8px;
  color: inherit;
}

.brp-contact-note {
  margin: 18px 0 0;
  color: var(--brp-texte-doux);
  font-size: .82rem;
}

/* -------------------------------------------------------------------------
   Pages éditoriales / légales
   ------------------------------------------------------------------------- */
.brp-page-hero {
  padding: clamp(56px, 7vw, 92px) 0 clamp(32px, 4vw, 48px);
  background: radial-gradient(circle at 82% 18%, rgba(179, 134, 125, .15), transparent 24%), linear-gradient(118deg, #fff 0%, var(--brp-ivoire) 65%, #e8e1de 100%);
  border-bottom: 1px solid rgba(154, 140, 134, .22);
}

.brp-page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.06;
}

.brp-page-hero .brp-lead {
  margin-bottom: 0;
}

.brp-page-body {
  padding: clamp(42px, 6vw, 80px) 0 clamp(72px, 9vw, 120px);
}

.brp-legal {
  max-width: 900px;
}

.brp-legal h2 {
  margin: 42px 0 10px;
  color: var(--brp-noir);
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  letter-spacing: -.02em;
}

.brp-legal h2:first-child {
  margin-top: 0;
}

.brp-legal h3 {
  margin: 24px 0 6px;
  font-size: 1.08rem;
}

.brp-legal p,
.brp-legal li {
  color: #4b4541;
}

.brp-legal a {
  color: var(--brp-taupe-texte);
  text-decoration: underline;
}

.brp-legal-note {
  margin: 28px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--brp-taupe);
  background: #fff;
}

.brp-legal-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 18px 0 !important;
}

.brp-legal-grid .wp-block-column {
  width: auto !important;
  flex: none !important;
  margin: 0 !important;
}

.brp-legal-card {
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(41, 37, 34, .08);
  border-radius: 6px;
}

.brp-legal-card h3 {
  margin-top: 0;
}

.brp-back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--brp-taupe-texte);
  font-weight: 600;
  text-decoration: none;
}

.brp-back-link:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Pied de page
   ------------------------------------------------------------------------- */
.brp-footer {
  padding: clamp(48px, 6vw, 70px) 0 26px;
  background: #000;
  color: #c8bfbb;
  border-top: 3px solid var(--brp-taupe);
}

.brp-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, .9fr);
  gap: 32px;
  align-items: start;
  max-width: var(--brp-max);
  margin-inline: auto;
  padding-inline: var(--brp-gutter);
}

.brp-footer__brand img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin-bottom: 18px;
}

.brp-footer p {
  margin: 0;
  color: #c8bfbb;
  font-size: .86rem;
  line-height: 1.65;
}

.brp-footer a {
  color: #e8dfdb;
  text-decoration: none;
}

.brp-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.brp-footer__title {
  margin: 0 0 14px;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.brp-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}

.brp-footer__links a {
  display: inline-block;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 4px;
  font-size: .8rem;
}

.brp-footer__links a:hover {
  border-color: var(--brp-taupe);
  text-decoration: none;
}

.brp-regulatory {
  grid-column: 1 / -1;
  margin: 22px 0 0 !important;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #a99d97 !important;
  font-size: .78rem !important;
}

.brp-footer__col--right {
  text-align: right;
}

/* -------------------------------------------------------------------------
   Pages système
   ------------------------------------------------------------------------- */
.brp-404 {
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
}

.brp-404 h1 {
  margin: 0 0 18px;
}

.brp-404 p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--brp-texte-doux);
}

/* -------------------------------------------------------------------------
   Animations discrètes
   ------------------------------------------------------------------------- */
@keyframes brp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.brp-hero__copy > .wp-block-paragraph,
.brp-hero__copy > h1,
.brp-hero__copy > .wp-block-buttons,
.brp-hero__copy > .wp-block-list {
  animation: brp-rise .65s ease-out both;
}

.brp-hero__copy > h1 { animation-delay: .05s; }
.brp-hero__copy > .wp-block-buttons { animation-delay: .12s; }
.brp-hero__copy > .wp-block-list { animation-delay: .17s; }
.brp-hero__media { animation: brp-rise .8s ease-out .1s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .brp-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    gap: 42px;
  }

  .brp-hero__media {
    max-width: 380px;
  }

  .brp-commit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 86px;
  }

  .brp-header__inner {
    min-height: 78px;
    padding-block: 8px;
  }

  .brp-logo img {
    width: 190px;
  }

  .brp-nav .wp-block-navigation__container {
    gap: 18px;
    font-size: 1rem;
  }

  .brp-hero__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .brp-hero__media {
    justify-self: start;
    max-width: 360px;
  }

  .brp-decision-path {
    width: 78%;
    height: 48%;
    opacity: .26;
  }

  .brp-statement__grid,
  .brp-about__grid,
  .brp-contact__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .brp-values,
  .brp-cards,
  .brp-commit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brp-about__media {
    max-width: 520px;
  }

  .brp-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .brp-footer__col--right {
    text-align: left;
  }

  .brp-footer__links {
    justify-content: flex-start;
  }

  .brp-legal-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .brp-hero {
    padding-top: 30px;
  }

  .brp-hero h1 em::after {
    bottom: -5px;
  }

  .brp-trust {
    display: grid;
    gap: 6px;
  }

  .brp-values,
  .brp-cards,
  .brp-commit-grid {
    grid-template-columns: 1fr;
  }

  .brp-cards .wp-block-column,
  .brp-commit-grid .wp-block-column {
    min-height: 0;
  }

  .brp-timeline li {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 2px;
    padding: 26px 0;
  }

  .brp-timeline li::before {
    width: 44px;
    height: 44px;
    font-size: .92rem;
  }

  .brp-timeline h3 {
    font-size: 1.3rem;
  }

  .brp-quote {
    font-size: 1.18rem;
    padding-left: 18px;
  }

  .brp-contact__media {
    max-width: 260px;
  }

  .brp-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .brp-decision-path {
    display: none;
  }

  .brp-page-hero {
    padding-top: 44px;
  }
}
