/* ============================================
   CSS CORRIGÉ - MON BANQUIER PRIVÉ
   Problèmes résolus :
   ✅ Marges blanches éliminées
   ✅ Valeurs fixes remplacées par valeurs fluides
   ✅ Chemins d'images locaux corrigés
   ✅ Responsive entièrement revu
   ✅ Overflow contrôlé partout
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== VARIABLES ===== */
:root {
  --rouge: #e62027;
  --noir: #1a1a1a;
  --blanc: #ffffff;
  --gris-clair: #f8f8f8;
  --dore: #c8604e;

  /* Espacements fluides */
  --spacing-xs: clamp(0.5rem, 2vw, 1rem);
  --spacing-sm: clamp(1rem, 3vw, 2rem);
  --spacing-md: clamp(2rem, 4vw, 3rem);
  --spacing-lg: clamp(3rem, 5vw, 5rem);
  --spacing-xl: clamp(4rem, 6vw, 6rem);

  /* Padding de sections fluide */
  --section-padding-inline: clamp(1.5rem, 5vw, 6rem);
  --section-padding-block: clamp(3rem, 8vw, 6rem);
}

/* ===== BODY & HTML ===== */
html {
  overflow-x: hidden; /* ⚠️ CRUCIAL pour éviter les débordements horizontaux */
  scroll-behavior: smooth;
}

a {
  text-decoration-line: none;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.8;
  color: var(--noir);
  overflow-x: hidden; /* ⚠️ DOUBLE SÉCURITÉ */
  background: var(--blanc);
  font-weight: 300;
  width: 100%; /* ⚠️ Force la largeur à 100% */
  max-width: 100vw; /* ⚠️ Empêche tout débordement */
  position: relative;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><defs><linearGradient id="grad1" x1="0%25" y1="0%25" x2="100%25" y2="100%25"><stop offset="0%25" style="stop-color:%23E62027;stop-opacity:1" /><stop offset="100%25" style="stop-color:%23C8A04E;stop-opacity:1" /></linearGradient></defs><circle cx="16" cy="16" r="12" fill="none" stroke="url(%23grad1)" stroke-width="2" opacity="0.6"/><circle cx="16" cy="16" r="4" fill="url(%23grad1)" opacity="0.8"/><circle cx="16" cy="16" r="7" fill="none" stroke="url(%23grad1)" stroke-width="1" opacity="0.3"/></svg>'),
    auto;
}

a,
button,
.property-card-carousel,
.service-item,
.btn-primary,
.btn-secondary,
.floating-card,
.nav-links a {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><defs><linearGradient id="grad2" x1="0%25" y1="0%25" x2="100%25" y2="100%25"><stop offset="0%25" style="stop-color:%23E62027;stop-opacity:1" /><stop offset="100%25" style="stop-color:%23C8A04E;stop-opacity:1" /></linearGradient><filter id="glow"><feGaussianBlur stdDeviation="2" result="coloredBlur"/><feMerge><feMergeNode in="coloredBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><circle cx="20" cy="20" r="15" fill="none" stroke="url(%23grad2)" stroke-width="3" filter="url(%23glow)"/><circle cx="20" cy="20" r="5" fill="url(%23grad2)"/><circle cx="20" cy="20" r="10" fill="none" stroke="url(%23grad2)" stroke-width="1.5" opacity="0.5"/></svg>'),
    pointer;
}

body.loading {
  overflow: hidden;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blanc) 0%, var(--gris-clair) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  animation: fadeInScale 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  padding: var(--spacing-md);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.preloader-logo-wrapper {
  position: relative;
  width: clamp(80px, 15vw, 120px);
  height: clamp(80px, 15vw, 120px);
  margin: 0 auto 2rem;
}

.preloader-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--rouge) 0%,
    #c91c21 50%,
    var(--noir) 100%
  );
  position: relative;
  overflow: hidden;
  animation: rotateLoader 3s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

@keyframes rotateLoader {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(360deg);
  }
}

.preloader-circle::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--blanc);
}

.preloader-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--rouge) 0%, #ff4444 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  animation: pulseLoader 2s ease-in-out infinite;
}

@keyframes pulseLoader {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.6;
  }
}

.preloader-text {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, var(--noir) 0%, var(--rouge) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  animation: fadeInText 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.3s both;
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preloader-tagline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--gris-anthracite);
  margin-top: 1rem;
  font-style: italic;
  animation: fadeInText 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.6s both;
}

.preloader-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 3rem;
}

.preloader-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rouge) 0%, var(--dore) 100%);
  animation: dotPulse 1.5s ease-in-out infinite;
}

.preloader-dot:nth-child(1) {
  animation-delay: 0s;
}
.preloader-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.preloader-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.6);
    opacity: 0.4;
  }
}

/* ===== HEADER ===== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.92) 100%
  );
  backdrop-filter: blur(30px);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 80px rgba(230, 32, 39, 0.05);
}

nav {
  display: flex;
  justify-content: space-between; /* espace total entre logo / nav-links / contact */
  align-items: center;
  width: 100%;
  padding: clamp(1rem, 3vw, 2rem) var(--section-padding-inline);
  max-width: 1400px; /* limite la largeur max */
  margin: 0 auto; /* centre le contenu */
  position: relative;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 4rem; /* marges gauche/droite du headere */
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--noir);
}

.logo-circle-wrapper {
  position: relative;
  width: clamp(40px, 8vw, 60px);
  height: clamp(40px, 8vw, 60px);
  flex-shrink: 0;
}

.logo-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--rouge) 0%,
    #c91c21 50%,
    var(--noir) 100%
  );
  position: relative;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.logo-circle::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blanc);
}

.logo-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--rouge) 0%, #ff4444 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  animation: pulse360 3s infinite ease-in-out;
}

@keyframes pulse360 {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3) rotate(180deg);
    opacity: 0.5;
  }
}

@keyframes turn {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3) rotate(0deg);
    opacity: 0.5;
  }
}

.logo-container:hover .logo-circle {
  transform: rotate(360deg) scale(1.05);
  box-shadow: 0 10px 40px rgba(230, 32, 39, 0.3);
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  background: linear-gradient(135deg, var(--noir) 0%, var(--rouge) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0 auto; /* ça les centre visuellement */
  padding: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* centre parfaitement */
}

.nav-links li:last-child {
  margin-left: auto; /* pousse le bouton contact à droite */
}

.nav-links a {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--noir);
  text-decoration: none;
  position: relative;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-align: center;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--rouge) 50%,
    transparent 100%
  );
  transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-links a:hover {
  color: var(--rouge);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Desktop version des boutons Contact/Connexion */
.nav-right-desktop {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-contact {
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--rouge) 0%, #c91c21 100%);
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(230, 32, 39, 0.3);
}

.nav-contact::after {
  display: none;
}

.nav-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(230, 32, 39, 0.4);
}

.nav-login {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  position: relative;
  padding: 0.65rem 1.7rem;
  border-radius: 50px;
  font-family: "Inter", sans-serif;
  color: rgb(0, 0, 0);
  text-decoration: none;
  background: transparent;
  margin-left: 1rem;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  letter-spacing: 0.5px;
  border: 2px solid rgba(230, 32, 39, 0.2);
}

/* Effet hover */
.nav-login:hover {
  
  background: linear-gradient(
    135deg,
    rgba(230, 32, 39, 0.05) 0%,
    rgba(200, 160, 78, 0.05) 100%
  );
  border-color: var(--rouge);
  transform: translateY(-5px);
}

/* Ligne fine séparatrice */
.nav-login::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px; /* très fin */
  height: 100%; /* légèrement plus haut que le bouton */
  background: linear-gradient(
    180deg,
    var(--rouge),
    var(--noir)
  );
  opacity: 0.6;
  border-radius: 2px;
}


/* ===== HERO ===== */
.hero {
  margin-top: 0;
  min-height: 100vh;
  background: url("images/hero-background.jpg") center/cover;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: clamp(80px, 15vh, 120px);
  filter: brightness(1.1) contrast(1.05);
  width: 100%; /* ⚠️ CRUCIAL */
  max-width: 100vw; /* ⚠️ CRUCIAL */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  display: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.shape1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(230, 32, 39, 0.1) 0%,
    transparent 70%
  );
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.shape2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(200, 160, 78, 0.08) 0%,
    transparent 70%
  );
  bottom: -150px;
  left: -100px;
  animation-delay: 5s;
}

.shape3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(230, 32, 39, 0.06) 0%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  animation-delay: 10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

.hero-content {
  width: 100%; /* ⚠️ CRUCIAL */
  max-width: min(1400px, 92vw); /* réduit la largeur max du hero-content */
  margin: 0 auto;
  padding: var(--spacing-lg) var(--section-padding-inline);
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(3rem, 8vw, 8rem); /* ⚠️ GAP FLUIDE au lieu de 16rem fixe */
}

.hero-text {
  flex: 1 1 min(600px, 100%); /* ⚠️ FLUIDE avec minimum */
  animation: fadeSlideUp 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  background: rgba(255, 255, 255, 0.75);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: clamp(20px, 4vw, 30px);
  backdrop-filter: blur(10px);
  min-width: 0; /* ⚠️ Permet le shrink */
  text-align: center;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-label {
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  letter-spacing: clamp(2px, 0.5vw, 4px);
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--rouge) 0%, var(--dore) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: clamp(1rem, 3vw, 2rem);
  font-weight: 500;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 6rem); /* ⚠️ FLUIDE */
  line-height: 1.1;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: clamp(-1px, -0.2vw, -2px);
}

.hero h1 .gradient-text {
  background: linear-gradient(
    135deg,
    var(--rouge) 0%,
    #ff4444 50%,
    var(--dore) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  color: #303030;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-style: italic;
}

.hero-description {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  line-height: 1.5;
  color: #555;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 600px;
}

.hero-description .span {
  display: none;
}

/* Centre les boutons dans .hero-cta */
.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1rem, 2.5vw, 2rem);
}

/* Empêche des marges indésirables sur les enfants */
.hero-cta > * {
  margin: 0;
}

/* Sur petits écrans : empile et laisse les boutons larges */
@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    gap: clamp(0.75rem, 3vw, 1rem);
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    max-width: 340px;
  }
}
.hero-cta {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  align-self: center;
}

.btn-primary {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  background: linear-gradient(135deg, var(--rouge) 0%, #c91c21 100%);
  color: var(--blanc);
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  font-size: clamp(0.9rem, 1.5vw, 0.9rem);
  letter-spacing: 0.5px;
  box-shadow: 0 10px 40px rgba(230, 32, 39, 0.25);
  position: relative;
  overflow: hidden;
  display: inline-block;
  line-height: 1;
  width: clamp(170px, 15vw, 210px);
  height: clamp(20px, 15vw, 60px);
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff4444 0%, var(--rouge) 100%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(230, 32, 39, 0.35);
}

.btn-secondary {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1.15rem, 4vw, 2.5rem);
  background: transparent;
  color: var(--noir);
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  letter-spacing: 0.5px;
  border: 2px solid rgba(230, 32, 39, 0.2);
  display: inline-block;
  align-items: center;
  justify-content: center;
  line-height: 1;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-secondary:hover {
  background: linear-gradient(
    135deg,
    rgba(230, 32, 39, 0.05) 0%,
    rgba(200, 160, 78, 0.05) 100%
  );
  border-color: var(--rouge);
  transform: translateY(-5px);
}

.hero-visual {
  flex: 1 1 min(400px, 100%); /* ⚠️ FLUIDE */
  position: relative;
  min-height: clamp(400px, 60vh, 650px); /* ⚠️ FLUIDE */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.floating-card {
  position: absolute;
  background: var(--blanc);
  border-radius: clamp(20px, 4vw, 30px);
  padding: clamp(2rem, 3vw, 3rem);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.08);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  max-width: 90%; /* ⚠️ Empêche les débordements */
}

.floating-card:hover {
  transform: translateY(-20px) rotate(2deg);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.12);
}

.floating-card:nth-child(1) {
  top: 0;
  left: 7%;
  width: min(280px, 80%); /* ⚠️ FLUIDE */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 248, 248, 0.95) 100%
  );
  animation: floatCard1 6s infinite ease-in-out;
}

.floating-card:nth-child(2) {
  top: 50%;
  right: 0;
  width: min(300px, 85%); /* ⚠️ FLUIDE */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 248, 248, 0.95) 100%
  );
  animation: floatCard2 7s infinite ease-in-out;
}

.floating-card:nth-child(3) {
  top: 100%;
  left: 20%;
  width: min(260px, 75%); /* ⚠️ FLUIDE */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 248, 248, 0.95) 100%
  );
  animation: floatCard3 8s infinite ease-in-out;
}

@keyframes floatCard1 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(-3deg);
  }
}

@keyframes floatCard2 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

@keyframes floatCard3 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(-2deg);
  }
}

.card-icon {
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  background: linear-gradient(135deg, var(--rouge) 0%, var(--dore) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(230, 32, 39, 0.2);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blanc);
  stroke-width: 2;
  fill: none;
}

.floating-card h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.0rem, 2vw, 1.3rem);
  margin-bottom: 0.8rem;
  color: var(--noir);
  font-weight: 600;
}

.floating-card p {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  line-height: 1.7;
  color: #666;
}

/* ===== SECTIONS ===== */
section {
  padding: var(--section-padding-block) var(--section-padding-inline); /* ⚠️ FLUIDE */
  position: relative;
  width: 100%; /* ⚠️ CRUCIAL */
  max-width: 100vw; /* ⚠️ CRUCIAL */
  overflow-x: hidden; /* ⚠️ CRUCIAL */
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.section-label {
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  letter-spacing: clamp(2px, 0.5vw, 4px);
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--rouge) 0%, var(--dore) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  font-weight: 500;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem); /* ⚠️ FLUIDE */
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -1px;
  line-height: 1.2;
}

.section-title .gradient-text {
  background: linear-gradient(135deg, var(--rouge) 0%, var(--dore) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rejoindre-text .gradient-text {
  background: linear-gradient(135deg, var(--noir) 0%, var(--dore) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #666;
  max-width: min(800px, 90%); /* ⚠️ FLUIDE */
  margin: 0 auto;
  line-height: 1.9;
  font-style: italic;
}

/* ===== PRÉSENTATION ===== */
.presentation {
  background: radial-gradient(
      ellipse at top left,
      rgba(200, 160, 78, 0.05) 0%,
      transparent 50%
    ),
    linear-gradient(180deg, var(--blanc) 0%, var(--gris-clair) 100%);
  position: relative;
}

.presentation::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="houses" x="0" y="0" width="200" height="200" patternUnits="userSpaceOnUse"><path d="M50 80 L70 60 L90 80 M60 80 L60 100 L80 100 L80 80 M65 85 L65 95 M75 85 L75 95" stroke="%23000" stroke-width="1" fill="none" opacity="0.1"/></pattern></defs><rect width="1200" height="800" fill="url(%23houses)"/></svg>');
  opacity: 0.015;
  z-index: 0;
}

.presentation-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(400px, 100%), 1fr)
  ); /* ⚠️ RESPONSIVE AUTOMATIQUE */
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.presentation-content {
  min-width: 0; /* ⚠️ Permet le shrink */
}

.presentation-content h2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -1px;
}

.presentation-content p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 2;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  color: #555;
}

.presentation-signature {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(248, 248, 248, 0.9) 100%
  );
  border-radius: 20px;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, var(--rouge) 0%, var(--dore) 100%) 1;
}

.signature-text {
  font-family: "Libre Baskerville", serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--noir);
  margin-bottom: 1rem;
}

.signature-name {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: #666;
}

.presentation-visual {
  position: relative;
  min-height: clamp(400px, 60vh, 700px);
  width: 100%;
  overflow: hidden; /* ⚠️ CRUCIAL */
}

.visual-orb {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(230, 32, 39, 0.15) 0%,
    rgba(200, 160, 78, 0.1) 100%
  );
  filter: blur(60px);
  animation: orbFloat 8s infinite ease-in-out;
  max-width: 100%; /* ⚠️ Empêche les débordements */
}

.visual-orb:nth-child(1) {
  width: min(300px, 40vw);
  height: min(300px, 40vw);
  top: 0;
  right: 0;
}

.visual-orb:nth-child(2) {
  width: min(250px, 35vw);
  height: min(250px, 35vw);
  bottom: 0;
  left: 0;
  animation-delay: 3s;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -20px) scale(1.1);
  }
}

.visual-image {
  position: absolute;
  width: clamp(280px, 40vw, 500px);
  aspect-ratio: 4 / 3;
  background: url("./images/presentation-image.jpg") center/cover;
  border-radius: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.visual-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

/* ===== SERVICES ===== */
.services {
  background: var(--blanc);
  overflow: hidden;
}

.services-container {
  max-width: min(1800px, 95vw);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  justify-items: center;
  max-width: 1800px;
  margin: var(--spacing-lg) auto 0;
}

.service-item {
  flex: 1 1 350px; /* largeur min 350px, peut grandir ou rapetisser */
  max-width: 400px; /* limite la taille max pour garder un layout harmonieux */
}

.service-item {
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(248, 248, 248, 0.92) 100%
  );
  border-radius: clamp(30px, 5vw, 40px);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(230, 32, 39, 0.08);
  background-size: cover;
  background-position: center;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(248, 248, 248, 0.7) 100%
  );
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 0;
}

.service-item:hover::before {
  opacity: 0.3;
}

.service-item > * {
  position: relative;
  z-index: 1;
}

/* ⚠️ IMAGES LOCALES POUR LES SERVICES - Remplacez par vos chemins */
.service-item:nth-child(1) {
  background-image: url("./images/service-1.jpg");
  /* Alternative : url("../assets/images/service-gestion.jpg") */
}
.service-item:nth-child(2) {
  background-image: url("./images/service-2.jpg");
  /* Alternative : url("../assets/images/service-immobilier.jpg") */
}
.service-item:nth-child(3) {
  background-image: url("./images/service-3.jpg");
  /* Alternative : url("../assets/images/service-financement.jpg") */
}
.service-item:nth-child(4) {
  background-image: url("./images/service-4.jpg");
  /* Alternative : url("../assets/images/service-assurance.jpg") */
}

.service-item:hover {
  transform: translateY(-15px);
  box-shadow: 0 40px 100px rgba(230, 32, 39, 0.25);
  filter: brightness(1.1) contrast(1.05);
}

.service-number {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  background: linear-gradient(
    135deg,
    rgba(230, 32, 39, 0.15) 0%,
    rgba(200, 160, 78, 0.15) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.service-item h3 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  color: var(--noir);
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.service-item p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.9;
  color: #333;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* ===== BIENS ===== */

.properties {
  background: radial-gradient(
    ellipse at bottom right,
    rgba(230, 32, 39, 0.04) 0%,
    transparent 50%
  );
}

.properties-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem; /* petit espace à gauche/droite */
 }


.properties-container .gradient-text {
  background: linear-gradient(135deg, var(--noir) 0%, var(--rouge) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services .gradient-text {
  background: linear-gradient(135deg, var(--noir) 0%, var(--rouge) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.properties-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.property-card {
  flex: 1 1 280px;
  max-width: 320px;
  background: var(--blanc);
  border-radius: clamp(15px, 2vw, 25px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(230, 32, 39, 0.05);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  height: clamp(400px, 50vh, 520px);
}


.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(230, 32, 39, 0.12);
}

.property-image {
  width: 100%;
  height: 55%;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.property-badge {
  position: absolute;
  top: var(--spacing-xs);
  left: var(--spacing-xs);
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rouge);
}

.property-content {
  padding: var(--spacing-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.property-location {
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  color: var(--dore);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.property-content h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--noir);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.property-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: var(--spacing-xs) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.property-detail span:first-child {
  font-size: clamp(0.65rem, 1.5vw, 0.7rem);
  color: #999;
  display: block;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.property-detail span:last-child {
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  font-weight: 500;
  color: var(--noir);
}

.property-price {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-top: var(--spacing-xs);
  color: #1a1a1a;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .property-card {
    height: clamp(380px, 45vh, 450px);
  }
}

 
/* ===== NOUS REJOINDRE ===== */
.rejoindre {
  background: radial-gradient(
      ellipse at top left,
      rgba(230, 32, 39, 0.06) 0%,
      transparent 50%
    ),
    linear-gradient(180deg, var(--gris-clair) 0%, var(--blanc) 100%);
  position: relative;
}

.rejoindre::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23000" width="1200" height="800"/></svg>');
  background-size: cover;
  background-position: center;
  opacity: 0.02;
  z-index: 0;
}

.rejoindre-content {
  max-width: min(1200px, 95%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(400px, 100%), 1fr)
  ); /* ⚠️ RESPONSIVE AUTO */
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.rejoindre-text h2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.rejoindre-text p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 2;
  color: #555;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.rejoindre-benefits {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  transition: all 0.4s ease;
}

.benefit-item:hover {
  background: var(--blanc);
  transform: translateX(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  background: linear-gradient(135deg, var(--rouge) 0%, var(--dore) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blanc);
  stroke-width: 2;
  fill: none;
}

.benefit-text h4 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--noir);
  margin-bottom: 0.5rem;
}

.benefit-text p {
  font-size: clamp(0.95rem, 1.8vw, 1rem);
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* ===== EXPERTISE ===== */
.expertise {
  background: radial-gradient(
      ellipse at top,
      rgba(26, 26, 26, 1) 0%,
      rgba(26, 26, 26, 0.98) 100%
    ),
    var(--noir);
  color: var(--blanc);
  overflow: hidden;
  position: relative;
}

.expertise::before {
  content: "";
  position: absolute;
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  background: radial-gradient(
    circle,
    rgba(230, 32, 39, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -300px;
  right: -200px;
  filter: blur(80px);
}

.expertise::after {
  content: "";
  position: absolute;
  width: min(500px, 70vw);
  height: min(500px, 70vw);
  background: radial-gradient(
    circle,
    rgba(200, 160, 78, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  bottom: -250px;
  left: -150px;
  filter: blur(80px);
}

.expertise .section-label {
  background: linear-gradient(90deg, var(--dore) 0%, var(--blanc) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.expertise .section-title {
  color: var(--blanc);
}

.expertise .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.expertise-container {
  max-width: min(1800px, 95vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  justify-items: center;
  max-width: 1800px;
  margin: var(--spacing-lg) auto 0;
}


.expertise-item {
  flex: 1 1 350px;  /* largeur min 350px, peut grandir ou rapetisser */
  max-width: 400px; /* limite la taille max pour garder l’harmonie */
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-radius: clamp(30px, 5vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  backdrop-filter: blur(20px);
}


.expertise-item:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border-color: rgba(230, 32, 39, 0.3);
  transform: translateY(-10px);
}

.expertise-icon {
  width: clamp(50px, 10vw, 60px);
  height: clamp(50px, 10vw, 60px);
  background: linear-gradient(135deg, var(--rouge) 0%, var(--dore) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 15px 40px rgba(230, 32, 39, 0.3);
}
.expertise-icon :hover {
  animation: turn;
}

.expertise-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--blanc);
  stroke-width: 2;
  fill: none;
}

.expertise-item h3 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  color: var(--blanc);
}

.expertise-item p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== FOOTER ===== */
footer {
  background: radial-gradient(
      ellipse at top,
      rgba(26, 26, 26, 1) 0%,
      rgba(26, 26, 26, 0.98) 100%
    ),
    var(--noir);
  color: var(--blanc);
  padding: var(--spacing-xl) var(--section-padding-inline) var(--spacing-lg);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

footer::before {
  content: "";
  position: absolute;
  width: min(400px, 60vw);
  height: min(400px, 60vw);
  background: radial-gradient(
    circle,
    rgba(230, 32, 39, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -200px;
  right: 10%;
  filter: blur(80px);
}

.footer-content {
  max-width: min(1800px, 95vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(200px, 100%), 1fr)
  ); /* ⚠️ RESPONSIVE AUTO */
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.footer-brand h2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.footer-brand p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.footer-address {
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
}

.footer-section h4 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.2rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  color: var(--blanc);
}

.footer-section-contact h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-style: bold;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  color: var(--blanc);
  background-color: #b11717;
  border-radius: 15px;
  text-align: center;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--blanc);
  padding-left: 8px;
}

.footer-bottom {
  max-width: min(1800px, 95vw);
  margin: 0 auto;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-copyright {
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  color: rgba(255, 255, 255, 0.5);
}

.footer-synergie {
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  background: linear-gradient(90deg, var(--dore) 0%, var(--blanc) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-slide {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.fade-slide.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   MEDIA QUERIES CONSOLIDÉES
   ============================================ */

@media (max-width: 1400px) {
  :root {
    --spacing-xl: clamp(3rem, 5vw, 4rem);
  }
}

@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(4rem, 8vw, 6rem);
  }

  .hero-text {
    width: 100%;
    max-width: 700px;
  }

  .hero-visual {
    width: 100%;
    min-height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2rem);
    position: relative;
  }

  .floating-card {
    position: relative; /* ⚠️ Plus de position absolue sur tablette */
    margin: 1.5rem 0;
    width: min(320px, 90%);
  }

  .presentation-grid,
  .services-grid,
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .rejoindre-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .benefit-item {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-visual {
    min-height: auto;
    padding: 2rem 0;
  }

  .floating-card {
    width: 100%;
    max-width: 320px;
    margin: 1rem auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .presentation-visual {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-text {
    padding: clamp(1.5rem, 4vw, 2rem);
  }

  .floating-card {
    padding: 1.5rem;
  }

  .benefit-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ===== HAMBURGER / NAV (mobile) ===== */
/* desktop: hide hamburger */
.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.hamburger-box {
  display: block;
  width: 26px;
  height: 18px;
  position: relative;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  background: var(--noir);
  height: 2px;
  width: 26px;
  display: block;
  position: absolute;
  left: 0;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.2s ease;
}
.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger-inner::before {
  content: "";
  top: -8px;
}
.hamburger-inner::after {
  content: "";
  top: 8px;
}

/* overlay (initially inert) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1098;
}

/* Desktop: Masquer les boutons du hamburger */
@media (min-width: 769px) {
  .nav-right {
    display: none !important;
  }
}

/* mobile behaviour */
@media (max-width: 768px) {
  /* Cacher nav-right-desktop sur mobile */
  .nav-right-desktop {
    display: none !important;
  }

  /* convert nav-links into a slide panel */
  .nav-links {
    position: fixed;
    top: 0;
    right: -110%;
    width: 82%;
    max-width: 360px;
    height: 100vh;
    background: linear-gradient(
      180deg,
      var(--blanc) 0%,
      rgba(248, 248, 248, 0.98) 100%
    );
    padding: 5.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    transition: right 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
    z-index: 1102; /* above overlay so links   clickable */
    overflow-y: auto;
  }

  .nav-login::before {
    display: none;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    width: 100%;
  }

  /* Accepter les enfants directs dans nav-links (div.nav-right) */
  .nav-links > * {
    width: 100%;
  }

  /* Créer un wrapper pour les liens nav */
  .nav-links > li {
    margin-bottom: 0.5rem;
  }

  /* Style pour nav-right en mobile - AU DESSUS des liens */
  .nav-right {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    order: -1; /* Met nav-right en premier */
  }

  body.nav-open .nav-right {
    display: flex;
  }

  .nav-right a {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block !important;
  }

  .nav-right .nav-contact {
    background: linear-gradient(135deg, var(--rouge) 0%, #c91c21 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(230, 32, 39, 0.25);
    padding: 0.75rem !important;
    border-radius: 8px;
  }

  .nav-right .nav-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 32, 39, 0.35);
  }

  .nav-right .nav-login {
    background: transparent !important;
    color: var(--noir) !important;
    border: 2px solid rgba(230, 32, 39, 0.2) !important;
    border-radius: 8px;
    padding: 0.75rem !important;
  }

  .nav-right .nav-login:hover {
    background: rgba(230, 32, 39, 0.08) !important;
    border-color: var(--rouge) !important;
  }

  /* show overlay when menu open */
  .nav-overlay {
    display: block;
    z-index: 1100;
  }

  /* when open */
  body.nav-open .nav-links {
    right: 0;
  }
  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* hamburger X animation */
  .hamburger[aria-expanded="true"] .hamburger-inner {
    transform: rotate(45deg);
    top: 50%;
  }
  .hamburger[aria-expanded="true"] .hamburger-inner::before {
    transform: rotate(-90deg);
    top: 0;
  }
  .hamburger[aria-expanded="true"] .hamburger-inner::after {
    opacity: 0;
    transform: translateX(-8px);
  }
}
@media (max-width: 768px) {
  .fade-slide {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/* ============================================
   FIN DU CSS CORRIGÉ
   ============================================ */
