/*
Theme Name: Radiant Media
Theme URI: https://radiantmedia.fr
Author: Radiant Media
Description: Thème personnalisé Radiant Media — Agence marketing digital à Paris
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Proprietary
Text Domain: radiantmedia
*/

/* ============================================================
   GOOGLE FONTS
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Raleway:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS VARIABLES — Brand Design Tokens
============================================================ */
:root {
  /* Colors (HSL) */
  --background:        hsl(30, 20%, 94%);
  --foreground:        hsl(25, 15%, 20%);
  --card:              hsl(30, 15%, 90%);
  --card-foreground:   hsl(25, 15%, 20%);
  --primary:           hsl(25, 15%, 20%);
  --primary-foreground:hsl(30, 20%, 94%);
  --secondary:         hsl(30, 18%, 88%);
  --secondary-foreground: hsl(25, 15%, 20%);
  --muted:             hsl(30, 12%, 85%);
  --muted-foreground:  hsl(25, 10%, 45%);
  --accent:            hsl(38, 40%, 65%);
  --accent-foreground: hsl(25, 15%, 20%);
  --border:            hsl(30, 12%, 82%);
  --input:             hsl(30, 12%, 82%);
  --ring:              hsl(25, 15%, 20%);
  --cream:             hsl(20, 20%, 90%);
  --taupe-dark:        hsl(25, 12%, 35%);
  --gold:              hsl(38, 55%, 55%);
  --radius:            0px;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Raleway', Helvetica, sans-serif;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  background-color: hsl(30, 20%, 94%);
}

body {
  background-color: hsl(30, 20%, 94%);
  color: hsl(25, 15%, 20%);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.2;
}

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

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

/* Background fill images — override the height:auto reset */
.rm-hero__bg-img,
.rm-contact__bg-img,
.rm-page-hero__img,
.rm-svc-hero__img,
.rm-svc-s4__bg,
.rm-proj-hero__img,
.rm-about-pg__split-img-el,
.rm-service-card__img,
.rm-project-card__img {
  height: 100% !important;
  max-width: none !important;
}

/* ============================================================
   TYPOGRAPHY CLASSES
============================================================ */
.heading-hero {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.heading-section {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.heading-card {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.body-text {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.label-small {
  font-family: var(--font-body);
  font-size: clamp(0.625rem, 1vw, 0.75rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--foreground);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-primary:hover,
.btn-outline:hover {
  background: var(--foreground);
  color: var(--primary-foreground);
}

.btn-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(var(--foreground), 0.4);
  padding-bottom: 0.25rem;
  transition: border-color 0.3s ease;
}

.btn-link:hover {
  border-color: var(--foreground);
}

/* ============================================================
   LAYOUT HELPERS
============================================================ */
.section-padding {
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 6rem 5rem;
  }
}

.section-divider {
  width: 100%;
  height: 14px;
  background-color: rgba(0,0,0,0.08);
}

.container-site {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================================
   PAGE TRANSITIONS
============================================================ */
.page-wrapper {
  animation: rm-fadeIn 0.45s ease both;
}

@keyframes rm-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   HEADER — three states matching original React exactly
============================================================ */
#rm-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.5s ease, padding 0.3s ease, border-color 0.5s ease;
  padding: 0.25rem 0;
}

/* State 1: transparent — hero visible behind, white links */
#rm-header.transparent {
  background: transparent;
  border-bottom: 1px solid transparent;
}

/* State 2: scrolled — dark taupe bg, white links */
#rm-header.scrolled {
  background: hsla(25, 12%, 35%, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* State 3: dark-text (Projets page only) — transparent bg, dark links */
#rm-header.transparent.dark-text .rm-nav a {
  color: rgba(25,20,16,0.7);
}
#rm-header.transparent.dark-text .rm-nav a:hover,
#rm-header.transparent.dark-text .rm-nav a.active {
  color: hsl(25,15%,20%);
}
#rm-header.transparent.dark-text .rm-hamburger span {
  background: hsl(25,15%,20%);
}
#rm-header.transparent.dark-text .rm-logo {
  filter: none; /* show original logo color on light bg */
}

.rm-header-inner {
  display: flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  gap: 0;
}

/* Logo always on the right */
.rm-header-logo {
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* Nav fills space between hamburger and logo on desktop */
.rm-nav {
  flex: 1;
  justify-content: flex-start;
  padding-left: 2rem;
}

@media (min-width: 768px) {
  .rm-header-inner { padding: 0.5rem 3rem; }
}
@media (min-width: 1024px) {
  .rm-header-inner { padding: 0.5rem 4rem; }
}

@media (min-width: 1024px) {
  .rm-header-inner {
    padding: 0.5rem 4rem;
  }
}

/* Nav links */
.rm-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

@media (min-width: 768px) {
  .rm-nav {
    display: flex;
  }
}

.rm-nav a {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}

.rm-nav a:hover,
.rm-nav a.active {
  color: #fff;
}

#rm-header.scrolled-dark .rm-nav a {
  color: rgba(0,0,0,0.6);
}

#rm-header.scrolled-dark .rm-nav a:hover {
  color: var(--foreground);
}

/* Logo */
.rm-logo {
  height: 3.5rem;
  width: auto;
  /* Make logo pure white on all dark/coloured backgrounds */
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

/* Mobile hamburger */
.rm-hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

@media (min-width: 768px) {
  .rm-hamburger {
    display: none;
  }
}

.rm-hamburger span {
  display: block;
  width: 20px;
  height: 1px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#rm-header.scrolled-dark .rm-hamburger span {
  background: var(--foreground);
}

.rm-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.rm-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.rm-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.rm-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  background: hsla(25, 12%, 35%, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.5rem 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  list-style: none;
}

.rm-mobile-menu.open {
  display: flex;
}

.rm-mobile-menu a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}

.rm-mobile-menu a:hover {
  color: #fff;
}

/* ============================================================
   FOOTER
============================================================ */
#rm-footer {
  background: var(--foreground);
  color: var(--primary-foreground);
  padding: 1rem 1.5rem 4rem;
}

@media (min-width: 768px) {
  #rm-footer {
    padding: 1rem 3rem 4rem;
  }
}

@media (min-width: 1024px) {
  #rm-footer {
    padding: 1rem 5rem 4rem;
  }
}

.rm-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.rm-footer-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  padding-top: 2rem;
}

.rm-footer-logo {
  height: 6rem;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@media (min-width: 768px) {
  .rm-footer-logo {
    height: 8rem;
  }
}

.rm-footer-desc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.rm-footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  list-style: none;
}

@media (min-width: 768px) {
  .rm-footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

.rm-footer-links a {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

.rm-footer-links a:hover {
  color: #fff;
}

.rm-footer-sep {
  display: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

@media (min-width: 768px) {
  .rm-footer-sep {
    display: inline-block;
  }
}

.rm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .rm-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.rm-footer-copy {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.rm-footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.rm-footer-legal a {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s ease;
}

.rm-footer-legal a:hover {
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   WHATSAPP BUTTON
============================================================ */
#rm-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}

#rm-whatsapp.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#rm-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}

#rm-whatsapp svg {
  width: 2rem;
  height: 2rem;
  fill: #fff;
  position: relative;
  z-index: 1;
}

.rm-wa-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: rm-ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
  opacity: 0.25;
}

.rm-wa-pulse {
  position: absolute;
  inset: -0.5rem;
  border-radius: 50%;
  background: rgba(37,211,102,0.2);
  animation: rm-pulse 2s ease infinite;
}

@keyframes rm-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes rm-pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

/* ============================================================
   SLOGAN BAR
============================================================ */
.rm-slogan-bar {
  background: var(--muted);
  padding: 2rem 0;
  overflow: hidden;
}

.rm-slogan-track {
  display: flex;
  white-space: nowrap;
  animation: rm-marquee 30s linear infinite;
}

.rm-slogan-text {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  color: rgba(0,0,0,0.35);
  letter-spacing: 0.02em;
  padding-right: 2rem;
  flex-shrink: 0;
}

@keyframes rm-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   IMAGE PLACEHOLDERS
============================================================ */
.rm-img-placeholder {
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

/* ============================================================
   HOVER INTERACTIONS
============================================================ */

/* Nav links — animated underline */
.rm-nav a {
  position: relative;
}

.rm-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.rm-nav a:hover::after,
.rm-nav a.active::after {
  width: 100%;
}

/* CTA button pulse on hover */
.btn-primary:hover,
.btn-outline:hover {
  letter-spacing: 0.28em;
}

/* Image zoom on hover — generic utility */
.rm-hover-zoom {
  overflow: hidden;
}

.rm-hover-zoom img {
  transition: transform 0.6s ease;
}

.rm-hover-zoom:hover img {
  transform: scale(1.05);
}

/* Link arrow animation */
.rm-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.rm-link-arrow:hover {
  gap: 0.75rem;
}

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