/* Identité visuelle — Roger De Baumont */

@font-face {
  font-family: "Marianne";
  src: url("/css/fonts/marianne-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Marianne";
  src: url("/css/fonts/marianne-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Marianne";
  src: url("/css/fonts/marianne-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("/css/fonts/spectral-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("/css/fonts/spectral-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --rdb-navy: #102b2f;
  --rdb-navy-deep: #071c20;
  --rdb-navy-soft: #1b3d41;
  --rdb-copper: #b8794d;
  --rdb-copper-dark: #925936;
  --rdb-sand: #e8d8c6;
  --rdb-ivory: #f7f4ee;
  --rdb-paper: #fffdf8;
  --rdb-ink: #1b2424;
  --rdb-muted: #5e6967;
  --rdb-line: rgba(16, 43, 47, 0.14);
  --rdb-shadow: 0 24px 70px rgba(7, 28, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--rdb-ink);
  background: var(--rdb-paper);
  font-family: "Marianne", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  color: var(--rdb-navy);
  font-family: "Spectral", serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

a {
  color: var(--rdb-navy);
}

a:focus-visible {
  outline: 3px solid var(--rdb-copper);
  outline-offset: 4px;
}

.fr-container {
  width: min(100% - 2rem, 75rem);
  max-width: 75rem;
}

.rdb-skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--rdb-paper);
  color: var(--rdb-navy);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--rdb-shadow);
  transition: top 0.2s ease;
}

.rdb-skip-link:focus {
  top: 1rem;
}

/* En-tête */
.rdb-header {
  position: relative;
  z-index: 10;
  background: var(--rdb-navy-deep);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.rdb-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6rem;
  gap: 2rem;
}

.rdb-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: #fff;
  text-decoration: none;
}

.rdb-logo {
  display: grid;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  border: 1px solid rgba(232, 216, 198, 0.7);
  color: var(--rdb-sand);
  font-family: "Spectral", serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.rdb-brand:hover .rdb-logo {
  transform: rotate(0deg);
  background: rgba(255, 255, 255, 0.06);
}

.rdb-brand-name {
  font-family: "Spectral", serif;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rdb-nav ul {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rdb-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rdb-nav a::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  bottom: 0.28rem;
  left: 0.8rem;
  height: 1px;
  background: var(--rdb-sand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.rdb-nav a:hover,
.rdb-nav a:focus,
.rdb-nav a[aria-current="page"] {
  color: #fff;
}

.rdb-nav a:hover::after,
.rdb-nav a:focus::after,
.rdb-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.rdb-nav li:last-child a {
  margin-left: 0.45rem;
  padding-inline: 1.15rem;
  border: 1px solid rgba(232, 216, 198, 0.46);
  color: #fff;
}

.rdb-nav li:last-child a::after {
  display: none;
}

.rdb-nav li:last-child a:hover {
  background: var(--rdb-sand);
  color: var(--rdb-navy-deep);
}

/* Typographie et actions */
.rdb-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--rdb-copper-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rdb-eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}

.rdb-hero-title {
  max-width: 12ch;
  margin: 0 0 1.35rem;
  font-size: clamp(3rem, 7vw, 6.9rem);
}

.rdb-hero-lead {
  max-width: 39rem;
  margin: 0 0 2rem;
  color: var(--rdb-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.65;
}

.rdb-lead-text {
  max-width: 42rem;
  margin-top: 0;
  color: var(--rdb-navy);
  font-family: "Spectral", serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.35;
}

.rdb-section-title {
  max-width: 17ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
}

.rdb-section-title-sm {
  margin: 0 0 0.8rem;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
}

.rdb-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--rdb-navy);
  background: var(--rdb-navy);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(7, 28, 32, 0.16);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.rdb-btn-gold::after {
  content: "↗";
  font-size: 1.05rem;
}

.rdb-btn-gold:hover {
  background: var(--rdb-copper);
  border-color: var(--rdb-copper);
  color: #fff;
  transform: translateY(-3px);
}

.rdb-link-arrow {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--rdb-copper);
  color: var(--rdb-navy);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, padding 0.2s ease;
}

.rdb-link-arrow:hover {
  padding-inline: 0.35rem;
  color: var(--rdb-copper-dark);
}

/* Accueil */
.rdb-hero {
  position: relative;
  overflow: hidden;
  min-height: 43rem;
  padding-block: clamp(4rem, 8vw, 7.5rem) !important;
  background:
    radial-gradient(circle at 85% 20%, rgba(184, 121, 77, 0.16), transparent 24rem),
    linear-gradient(135deg, var(--rdb-ivory), #efe8dc);
}

.rdb-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -15rem;
  width: 42rem;
  aspect-ratio: 1;
  border: 1px solid rgba(16, 43, 47, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0.16), 0 0 0 10rem rgba(255, 255, 255, 0.1);
}

.rdb-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.rdb-hero-copy > * {
  animation: rdb-reveal 0.7s both;
}

.rdb-hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.rdb-hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.rdb-hero-copy > *:nth-child(4) { animation-delay: 0.24s; }

.rdb-hero-title em {
  color: var(--rdb-copper-dark);
  font-weight: 400;
}

.rdb-hero-visual {
  position: relative;
  min-height: 31rem;
  animation: rdb-reveal 0.8s 0.18s both;
}

.rdb-portrait-card {
  position: absolute;
  inset: 1rem 1rem 2.5rem 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 55%),
    var(--rdb-navy);
  box-shadow: var(--rdb-shadow);
}

.rdb-portrait-card::before,
.rdb-portrait-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.rdb-portrait-card::before {
  width: 21rem;
  height: 21rem;
  border: 1px solid rgba(232, 216, 198, 0.25);
  box-shadow: 0 0 0 3rem rgba(232, 216, 198, 0.04), 0 0 0 6rem rgba(232, 216, 198, 0.025);
}

.rdb-portrait-card::after {
  right: -5rem;
  bottom: -7rem;
  width: 17rem;
  height: 17rem;
  background: var(--rdb-copper);
  opacity: 0.2;
}

.rdb-monogram {
  position: relative;
  z-index: 1;
  color: var(--rdb-sand);
  font-family: "Spectral", serif;
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.1em;
}

.rdb-hero-note {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: min(19rem, 80%);
  padding: 1.2rem 1.35rem;
  border-left: 3px solid var(--rdb-copper);
  background: var(--rdb-paper);
  box-shadow: 0 16px 40px rgba(7, 28, 32, 0.16);
}

.rdb-hero-note strong,
.rdb-hero-note span {
  display: block;
}

.rdb-hero-note strong {
  color: var(--rdb-navy);
  font-family: "Spectral", serif;
  font-size: 1.15rem;
}

.rdb-hero-note span {
  color: var(--rdb-muted);
  font-size: 0.8rem;
}

.rdb-proof-bar {
  background: var(--rdb-navy-deep);
  color: #fff;
}

.rdb-proof-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 1.35rem 0;
  list-style: none;
}

.rdb-proof-list li {
  padding: 0.35rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.rdb-proof-list li:last-child {
  border-right: 0;
}

.rdb-intro-section,
.rdb-expertise-section,
.rdb-page-section {
  padding-block: clamp(5rem, 10vw, 9rem) !important;
}

.rdb-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: clamp(3rem, 9vw, 8rem);
  align-items: end;
}

.rdb-intro-aside {
  padding: 2rem;
  border-top: 1px solid var(--rdb-copper);
  border-bottom: 1px solid var(--rdb-line);
  color: var(--rdb-muted);
}

.rdb-intro-aside p:first-child {
  margin-top: 0;
  color: var(--rdb-navy);
  font-family: "Spectral", serif;
  font-size: 1.55rem;
  line-height: 1.35;
}

.rdb-section-alt {
  position: relative;
  overflow: hidden;
  background: var(--rdb-ivory);
}

.rdb-section-alt::before {
  content: "RDB";
  position: absolute;
  top: -3rem;
  right: -1rem;
  color: rgba(16, 43, 47, 0.035);
  font-family: "Spectral", serif;
  font-size: clamp(10rem, 28vw, 26rem);
  font-weight: 800;
  line-height: 1;
}

.rdb-services-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1px;
  margin-top: 3.5rem;
  background: var(--rdb-line);
  border: 1px solid var(--rdb-line);
}

.rdb-services-grid > div:first-child {
  grid-row: span 2;
}

.rdb-numbered-item {
  position: relative;
  height: 100%;
  min-height: 15rem;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  background: var(--rdb-paper);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.rdb-numbered-item:hover {
  z-index: 1;
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(7, 28, 32, 0.1);
}

.rdb-number {
  display: block;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  color: var(--rdb-copper-dark);
  font-family: "Spectral", serif;
  font-size: 1rem;
  font-weight: 800;
}

.rdb-numbered-item h2,
.rdb-numbered-item h3 {
  max-width: 15ch;
  margin-bottom: 0.75rem;
}

.rdb-numbered-item p {
  max-width: 31rem;
  margin-bottom: 0;
  color: var(--rdb-muted);
}

.rdb-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 8rem) !important;
  background: var(--rdb-navy);
  color: #fff;
}

.rdb-cta::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8%;
  width: 19rem;
  aspect-ratio: 1;
  border: 1px solid rgba(232, 216, 198, 0.22);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4rem rgba(232, 216, 198, 0.03), 0 0 0 8rem rgba(232, 216, 198, 0.025);
}

.rdb-cta .fr-container {
  position: relative;
  z-index: 1;
}

.rdb-cta .rdb-eyebrow,
.rdb-cta .rdb-section-title {
  color: #fff;
}

.rdb-cta .rdb-section-title {
  max-width: 18ch;
}

.rdb-cta .rdb-btn-gold {
  border-color: var(--rdb-sand);
  background: var(--rdb-sand);
  color: var(--rdb-navy-deep);
}

/* Pages intérieures */
.rdb-page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 9vw, 8rem) !important;
  background: var(--rdb-ivory);
  border-bottom: 1px solid var(--rdb-line);
}

.rdb-page-hero::after {
  content: attr(data-index);
  position: absolute;
  right: 5vw;
  bottom: -0.25em;
  color: rgba(16, 43, 47, 0.05);
  font-family: "Spectral", serif;
  font-size: clamp(9rem, 23vw, 22rem);
  font-weight: 800;
  line-height: 1;
}

.rdb-page-hero .fr-container {
  position: relative;
  z-index: 1;
}

.rdb-page-hero .rdb-hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
}

.rdb-page-section .fr-grid-row--gutters {
  row-gap: 2rem;
}

.rdb-page-section .rdb-numbered-item {
  border: 1px solid var(--rdb-line);
}

.rdb-page-section .fr-col-md-6:nth-child(even) .rdb-numbered-item {
  margin-top: 2.5rem;
}

.rdb-timeline {
  position: relative;
  max-width: 58rem;
  margin-top: 0 !important;
  margin-left: auto;
}

.rdb-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8.5rem;
  width: 1px;
  background: var(--rdb-line);
}

.rdb-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 3rem;
  margin-bottom: 1rem;
  padding: 2rem 0 3rem;
}

.rdb-timeline-item::before {
  content: "";
  position: absolute;
  top: 2.45rem;
  left: 8.1rem;
  width: 0.8rem;
  aspect-ratio: 1;
  border: 3px solid var(--rdb-paper);
  border-radius: 50%;
  background: var(--rdb-copper);
  box-shadow: 0 0 0 1px var(--rdb-copper);
}

.rdb-timeline-item .rdb-eyebrow {
  display: block;
  padding-top: 0.25rem;
  text-align: right;
}

.rdb-timeline-item .rdb-eyebrow::before {
  display: none;
}

.rdb-timeline-content {
  padding-left: 1rem;
}

.rdb-timeline-content p:last-child {
  max-width: 42rem;
  color: var(--rdb-muted);
}

.rdb-cta-inline {
  position: relative;
  max-width: 58rem;
  margin-left: auto;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--rdb-line);
  background: var(--rdb-ivory);
}

.rdb-contact-grid {
  align-items: stretch;
}

.rdb-contact-card {
  height: 100%;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--rdb-line);
  background: var(--rdb-paper);
}

.rdb-contact-card--dark {
  background: var(--rdb-navy);
  color: rgba(255, 255, 255, 0.76);
  box-shadow: var(--rdb-shadow);
}

.rdb-contact-card--dark .rdb-eyebrow,
.rdb-contact-card--dark .rdb-section-title-sm,
.rdb-contact-card--dark a {
  color: #fff;
}

.rdb-contact-links {
  margin: 2rem 0;
  font-family: "Spectral", serif;
  font-size: clamp(1.3rem, 2.7vw, 2rem);
  line-height: 1.55;
}

.rdb-contact-links a {
  text-decoration-color: rgba(232, 216, 198, 0.45);
  text-underline-offset: 0.25em;
}

.rdb-contact-links a:hover {
  color: var(--rdb-sand);
}

.rdb-checklist {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.rdb-checklist li {
  position: relative;
  padding: 1rem 0 1rem 2rem;
  border-bottom: 1px solid var(--rdb-line);
}

.rdb-checklist li::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: 0;
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid var(--rdb-copper);
  transform: rotate(45deg);
}

/* Pied de page */
.rdb-footer {
  padding: 4.5rem 0 2rem;
  background: var(--rdb-navy-deep);
  color: #fff;
}

.rdb-footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.rdb-footer-name {
  margin: 0;
  color: #fff;
  font-family: "Spectral", serif;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
}

.rdb-footer-tagline {
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.88rem;
}

.rdb-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.rdb-footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  text-decoration: none;
}

.rdb-footer-contact a:hover {
  color: var(--rdb-sand);
}

.rdb-footer-copy {
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes rdb-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 62em) {
  .rdb-hero-grid,
  .rdb-intro-grid {
    grid-template-columns: 1fr;
  }

  .rdb-hero-visual {
    width: min(100%, 34rem);
    min-height: 28rem;
  }

  .rdb-hero-title {
    max-width: 10ch;
  }
}

@media (max-width: 48em) {
  .rdb-header-row {
    align-items: flex-start;
    min-height: auto;
    padding: 1.1rem 0 0.8rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .rdb-brand-name {
    font-size: 1.05rem;
  }

  .rdb-logo {
    width: 2.6rem;
  }

  .rdb-nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .rdb-nav::-webkit-scrollbar {
    display: none;
  }

  .rdb-nav ul {
    width: max-content;
    gap: 0;
  }

  .rdb-nav a {
    padding-inline: 0.65rem;
    font-size: 0.78rem;
  }

  .rdb-nav li:first-child a {
    padding-left: 0;
  }

  .rdb-nav li:last-child a {
    margin-left: 0.25rem;
    min-height: 2.35rem;
  }

  .rdb-hero {
    min-height: auto;
  }

  .rdb-hero-visual {
    min-height: 23rem;
  }

  .rdb-proof-list {
    grid-template-columns: 1fr;
  }

  .rdb-proof-list li {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .rdb-services-grid {
    grid-template-columns: 1fr;
  }

  .rdb-services-grid > div:first-child {
    grid-row: auto;
  }

  .rdb-page-section .fr-col-md-6:nth-child(even) .rdb-numbered-item {
    margin-top: 0;
  }

  .rdb-timeline::before {
    left: 0.35rem;
  }

  .rdb-timeline-item {
    display: block;
    padding: 1rem 0 2.5rem 2.1rem;
  }

  .rdb-timeline-item::before {
    top: 1.4rem;
    left: 0;
  }

  .rdb-timeline-item .rdb-eyebrow {
    text-align: left;
  }

  .rdb-timeline-content {
    padding-left: 0;
  }

  .rdb-footer-grid {
    grid-template-columns: 1fr;
  }

  .rdb-footer-contact {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
