
:root {
  --rp-black: #0B0B0C;
  --rp-black-soft: #161618;
  --rp-white: #F7F6F4;
  --rp-grey: #E7E5E1;
  --rp-red: #C8102E;
  --rp-line: rgba(247, 246, 244, 0.14);
  --rp-logo-width: 200px;
  --rp-logo-width-mobile: 140px;
}

/* ==============================
   BASE
============================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--rp-white);
  color: var(--rp-black);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ==============================
   BARRE ROUGE
============================== */

.rp-speedline {
  height: 3px;
  background: var(--rp-red);
}

/* ==============================
   HEADER
============================== */

.rp-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(22, 22, 24, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rp-line);
  color: var(--rp-white);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* Header plus foncé pendant le défilement */

.rp-header.rp-header-scrolled {
  background: rgba(11, 11, 12, 0.98);
  border-bottom-color: rgba(247, 246, 244, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.rp-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(20px, 4vw, 56px);
  max-width: 1440px;
  margin: auto;
}

/* Logo texte */

.rp-header .rp-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: 'Big Shoulders Display', Arial, sans-serif;
  font-weight: 900;
  font-size: 27px;
  line-height: 1;
  color: var(--rp-white);
}

.rp-logo-text span {
  color: var(--rp-red);
}

/* Logo image WordPress */

.rp-header .rp-logo-img {
  display: block !important;
  width: var(--rp-logo-width) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
}

/* Navigation principale */

.rp-primary-nav {
  margin-left: auto;
}

.rp-menu,
.rp-menu-fallback {
  display: flex;
  gap: 26px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rp-menu li,
.rp-menu-fallback li {
  margin: 0;
  padding: 0;
}

.rp-menu a,
.rp-menu-fallback a {
  color: var(--rp-white);
  opacity: 0.78;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.rp-menu a:hover,
.rp-menu a:focus-visible,
.rp-menu-fallback a:hover,
.rp-menu-fallback a:focus-visible {
  opacity: 1;
}

/* Bouton de contact du header */

.rp-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rp-red);
  color: var(--rp-white);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.rp-header-cta:hover,
.rp-header-cta:focus-visible {
  background: #E01432;
  transform: translateY(-1px);
  color: var(--rp-white);
}

/* Menu mobile */

.rp-mobile-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.rp-mobile-toggle > span:not(.screen-reader-text) {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rp-mobile-nav {
  padding: 0 20px 18px;
}

.rp-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rp-mobile-menu li {
  margin: 0;
  padding: 0;
}

.rp-mobile-menu a {
  display: block;
  color: #fff;
  padding: 6px 0;
}

.rp-mobile-nav[hidden] {
  display: none !important;
}

/* ==============================
   FOOTER
============================== */

.rp-footer {
  background: var(--rp-black);
  color: rgba(247, 246, 244, 0.72);
  border-top: 1px solid var(--rp-line);
  padding: 22px clamp(20px, 4vw, 56px) 28px;
  font-size: 12px;
}

.rp-footer-inner {
  max-width: 1180px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.rp-footer a {
  transition: opacity 0.2s ease;
}

.rp-footer a:hover {
  opacity: 0.8;
}

/* ==============================
   PAGES WORDPRESS / ELEMENTOR
============================== */

.rp-page-shell,
.rp-content-wrap {
  min-height: 40vh;
}

.rp-page-title {
  font-family: 'Big Shoulders Display', Arial, sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  margin: 0 0 28px;
}

.rp-page-entry,
.rp-entry {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) clamp(20px, 4vw, 56px);
}

.rp-front-page .rp-page-entry,
.rp-front-page .rp-elementor-content {
  padding: 0;
}

.rp-front-page .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1180px;
}

/* ==============================
   TYPOGRAPHIE
============================== */

.rp-display {
  font-family: 'Big Shoulders Display', Arial, sans-serif;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.01em;
}

/* ==============================
   ANIMATIONS D'APPARITION
============================== */

.rp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rp-reveal.rp-is-in {
  opacity: 1;
  transform: translateY(0);
}

.rp-reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rp-reveal-scale.rp-is-in {
  opacity: 1;
  transform: scale(1);
}

/* ==============================
   BOUTONS
============================== */

.rp-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rp-red);
  color: #fff;
  padding: 14px 24px;
  font-weight: 700;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.rp-button:hover,
.rp-button:focus-visible {
  background: #E01432;
  transform: translateY(-1px);
  color: #fff;
}

/* ==============================
   EXPERTISES
============================== */

.rp-univers {
  background: var(--rp-black);
  color: var(--rp-white);
}

.rp-exp-nav {
  position: sticky;
  top: 100px;
}

.rp-exp-nav-item {
  display: block;
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--rp-line);
  background: transparent;
  text-align: left;
  color: var(--rp-white);
  opacity: 0.42;
  cursor: pointer;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.rp-exp-nav-item:last-child {
  border-bottom: 1px solid var(--rp-line);
}

.rp-exp-nav-item .num {
  display: block;
  color: var(--rp-red);
  font-family: 'Big Shoulders Display', Arial, sans-serif;
  font-weight: 800;
  font-size: 13px;
}

.rp-exp-nav-item h3 {
  font-family: 'Big Shoulders Display', Arial, sans-serif;
  font-size: 19px;
  line-height: 1.05;
  margin: 4px 0 0;
}

.rp-exp-nav-item.active {
  opacity: 1;
  transform: translateX(8px);
}

.rp-exp-nav-item.active h3 {
  color: var(--rp-red);
}

.rp-univers-block {
  scroll-margin-top: 100px;
}

/* ==============================
   GALERIE
============================== */

.rp-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.rp-gallery-card {
  position: relative;
  flex: 0 0 260px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  scroll-snap-align: start;
}

.rp-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rp-gallery-card:hover img {
  transform: scale(1.08);
}

.rp-gallery-card:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(11, 11, 12, 0.88),
    transparent 55%
  );
  pointer-events: none;
}

.rp-gallery-card .rp-gallery-meta {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  color: #fff;
}

.rp-gallery-card .rp-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--rp-red);
  text-transform: uppercase;
}

.rp-gallery-card .rp-card-title {
  font-family: 'Big Shoulders Display', Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.rp-gallery-card .rp-card-link {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

/* ==============================
   HERO
============================== */

.rp-hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      112deg,
      #232326 0 2px,
      transparent 2px 32px
    ),
    radial-gradient(
      circle at 70% 20%,
      rgba(200, 16, 46, 0.32),
      transparent 36%
    ),
    linear-gradient(140deg, #1C1C1F, #0B0B0C 72%);
  color: var(--rp-white);
}

.rp-hero:before {
  content: '';
  position: absolute;
  inset: -10%;
  background: repeating-linear-gradient(
    68deg,
    rgba(200, 16, 46, 0.11) 0 3px,
    transparent 3px 38px
  );
  animation: rp-drift 24s ease-in-out infinite alternate;
}

.rp-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 12, 0.45),
    rgba(11, 11, 12, 0.72)
  );
}

.rp-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 70px 20px;
  max-width: 1000px;
}

.rp-hero-content h1 {
  font-size: clamp(38px, 7vw, 78px);
  margin: 0 auto;
  max-width: 16ch;
}

.rp-kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--rp-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
}

.rp-hero-content .rp-button {
  margin-top: 28px;
}

/* ==============================
   INTRODUCTION DES SECTIONS
============================== */

.rp-section-intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px clamp(20px, 4vw, 56px);
}

.rp-section-intro h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.rp-section-intro p {
  max-width: 44ch;
  color: rgba(247, 246, 244, 0.65);
}

/* ==============================
   SECTION AGENCE
============================== */

.rp-agence {
  background: var(--rp-grey);
  padding: clamp(60px, 9vw, 92px)
    max(20px, calc((100% - 760px) / 2));
  text-align: center;
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 500;
}

/* ==============================
   SECTION CONTACT
============================== */

.rp-contact {
  position: relative;
  background: var(--rp-black);
  color: var(--rp-white);
  padding: clamp(80px, 13vw, 148px) 20px;
  text-align: center;
}

.rp-contact h2 {
  font-size: clamp(38px, 5.6vw, 64px);
  max-width: 14ch;
  margin: 0 auto;
}

.rp-contact p {
  max-width: 46ch;
  margin: 18px auto 0;
  color: rgba(247, 246, 244, 0.6);
}

.rp-contact .rp-button {
  margin-top: 30px;
}

/* ==============================
   MOUVEMENT DU HERO
============================== */

@keyframes rp-drift {
  from {
    transform: translate(0, 0) scale(1.04);
  }

  to {
    transform: translate(-3%, -2%) scale(1.14);
  }
}

/* ==============================
   TABLETTES ET MOBILES
============================== */

@media (max-width: 820px) {
  .rp-primary-nav,
  .rp-header-cta {
    display: none;
  }

  .rp-mobile-toggle {
    display: block;
  }

  .rp-footer-inner {
    flex-direction: column;
  }

  .rp-header-row {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .rp-header .rp-logo-img {
    width: var(--rp-logo-width-mobile) !important;
  }

  .rp-hero-content {
    padding: 60px 20px;
  }

  .rp-gallery-card {
    flex-basis: 230px;
  }
}

/* ==============================
   ACCESSIBILITÉ
============================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rp-reveal,
  .rp-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .rp-hero:before {
    animation: none;
  }

  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
