/* ==========================================
   EXCCA — STYLE GLOBAL REFONTE PREMIUM
========================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --rouge: #C8102E;
  --rouge-clair: rgba(200,16,46,0.08);
  --vert: #2D6A4F;
  --vert-clair: rgba(45,106,79,0.08);
  --vert-vif: #94FF02;
  --noir: #111111;
  --blanc: #FFFFFF;
  --gris-clair: #F8F8F6;
  --gris-texte: #555555;
  --gris-border: #E8E8E8;
  --or: #C9A84C;
  --ombre: 0 4px 24px rgba(0,0,0,0.08);
  --ombre-hover: 0 16px 48px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--noir);
  background: var(--blanc);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ==========================================
   UTILITAIRES
========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 100px 0; }

.section-titre {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--noir);
  line-height: 1.2;
}

.section-titre span { color: var(--rouge); }

.section-sous-titre {
  text-align: center;
  color: var(--gris-texte);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.8;
  font-weight: 400;
}

/* ---- BOUTONS ---- */
.btn-rouge {
  background: var(--rouge);
  color: var(--blanc);
  padding: 14px 34px;
  border: 2px solid var(--rouge);
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-rouge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.15);
  transition: left 0.3s ease;
}

.btn-rouge:hover::before { left: 100%; }

.btn-rouge:hover {
  background: #a00d25;
  border-color: #a00d25;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,16,46,0.3);
}

.btn-vert {
  background: var(--vert);
  color: var(--blanc);
  padding: 14px 34px;
  border: 2px solid var(--vert);
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-vert:hover {
  background: #1e4d38;
  border-color: #1e4d38;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,106,79,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--blanc);
  padding: 14px 34px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-outline:hover {
  background: var(--blanc);
  color: var(--noir);
  border-color: var(--blanc);
  transform: translateY(-2px);
}

/* ==========================================
   HEADER / NAVIGATION
========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gris-border);
  transition: all 0.4s ease;
}

header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 14px;
}

.logo img {
  height: 65px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img { transform: scale(1.03); }
.logo-text { display: none; }

/* ==========================================
   NAVIGATION — NIVEAU 1
========================================== */
nav > ul {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}

nav > ul > li {
  position: relative;
  list-style: none;
}

nav > ul > li > a {
  text-decoration: none;
  color: var(--noir);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 3px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

nav > ul > li > a .chevron {
  font-size: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
}

nav > ul > li:hover > a .chevron {
  transform: rotate(180deg);
}

nav > ul > li > a:hover,
nav > ul > li > a.active {
  color: var(--rouge);
  background: var(--rouge-clair);
}

/* BOUTON RDV */
.nav-rdv {
  background: var(--vert) !important;
  color: var(--blanc) !important;
  padding: 10px 22px !important;
  border-radius: 3px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
}

.nav-rdv:hover {
  background: #1e4d38 !important;
  color: var(--blanc) !important;
}

/* ==========================================
   SOUS-MENU — NIVEAU 2 (vertical, toujours)
========================================== */
.sous-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--blanc);
  border: 1px solid var(--gris-border);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 9999;
  overflow: visible;

  /* Toujours vertical, une colonne */
  display: flex !important;
  flex-direction: column !important;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
}

nav > ul > li:hover > .sous-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sous-menu > li {
  display: block;
  width: 100%;
  list-style: none;
  position: relative;
}

.sous-menu > li > a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 13px 20px;
  font-size: 13px;
  color: var(--noir);
  background: transparent;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.2s ease;
  width: 100%;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 400;
}

.sous-menu > li:last-child > a {
  border-bottom: none;
}

.sous-menu > li > a:hover {
  background: var(--gris-clair);
  color: var(--rouge);
}

.sous-menu > li > a .sm-icone {
  font-size: 18px;
  flex-shrink: 0;
}

/* Sous-menu aligné à droite (ex: Partenaires) */
.sous-menu-right {
  left: auto;
  right: 0;
}

/* ==========================================
   SOUS-MENU CASCADE — NIVEAU 3
   (ex: Partenaires > Nos clients > 13 secteurs)
========================================== */
.has-sous-cascade {
  position: relative;
}

.has-sous-cascade > a {
  cursor: default;
}

.sous-cascade {
  display: none;
  position: absolute;
  top: -1px;
  left: 100%;
  background: var(--blanc);
  border: 1px solid var(--gris-border);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 14px;
  margin: 0;
  z-index: 10000;
  list-style: none;

  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.has-sous-cascade:hover .sous-cascade {
  display: grid;
}

.sous-cascade li {
  width: 100%;
  list-style: none;
}

.sous-cascade li a {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 11px 14px !important;
  font-size: 13px !important;
  border-radius: 6px;
  white-space: nowrap;
  color: var(--noir);
  text-decoration: none;
  border-bottom: none !important;
}

.sous-cascade li a:hover {
  background: var(--gris-clair);
  color: var(--rouge);
}

@media (max-width: 1366px) {
  .sous-cascade { width: 460px; }
}

/* HAMBURGER MOBILE */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--noir);
  transition: all 0.3s ease;
  display: block;
}

/* ==========================================
   HERO
========================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(17,17,17,0.5) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanc);
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--rouge), var(--vert), var(--rouge));
  background-size: 200% 100%;
  animation: gradientSlide 3s linear infinite;
}

@keyframes gradientSlide {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-content { max-width: 820px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--blanc);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--vert-vif);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero h1 span { color: var(--vert-vif); }

.hero p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 44px;
  opacity: 0.88;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   CHIFFRES CLÉS
========================================== */
.chiffres {
  background: var(--noir);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.chiffres::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--rouge), var(--vert), var(--rouge));
  background-size: 200%;
  animation: gradientSlide 3s linear infinite;
}

.chiffres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.chiffre-item {
  color: var(--blanc);
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease;
}

.chiffre-item:last-child { border-right: none; }
.chiffre-item:hover { background: rgba(255,255,255,0.03); }

.chiffre-item .nombre {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.chiffre-item:nth-child(odd) .nombre { color: var(--rouge); }
.chiffre-item:nth-child(even) .nombre { color: var(--vert-vif); }

.chiffre-item .label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  font-weight: 400;
}

/* ==========================================
   CARDS SERVICES
========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--blanc);
  padding: 36px 32px;
  border-radius: 6px;
  box-shadow: var(--ombre);
  transition: all 0.4s ease;
  border: 1px solid var(--gris-border);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--noir);
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--rouge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:nth-child(even)::before { background: var(--vert); }
.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ombre-hover);
  border-color: transparent;
}

.service-card .icone {
  font-size: 36px;
  margin-bottom: 18px;
  display: block;
  transition: transform 0.3s ease;
}

.service-card:hover .icone { transform: scale(1.15); }

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--noir);
}

.service-card p {
  color: var(--gris-texte);
  font-size: 14px;
  line-height: 1.8;
}

/* ==========================================
   BANDEAU CONFIANCE
========================================== */
.bandeau-confiance {
  background: linear-gradient(135deg, var(--rouge) 0%, #8B0000 100%);
  padding: 28px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bandeau-confiance::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.bandeau-confiance p {
  color: var(--blanc);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ==========================================
   CTA SECTION
========================================== */
.cta-section {
  background: var(--gris-clair);
  text-align: center;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: var(--rouge-clair);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 250px; height: 250px;
  background: var(--vert-clair);
  border-radius: 50%;
}

.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: var(--gris-texte);
  margin-bottom: 36px;
  font-size: 16px;
  position: relative;
  z-index: 1;
}

.cta-section .btn-rouge { position: relative; z-index: 1; }

/* ==========================================
   FOOTER
========================================== */
footer {
  background: #0d0d0d;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--rouge), var(--vert), var(--rouge));
  background-size: 200%;
  animation: gradientSlide 3s linear infinite;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--blanc);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 24px; height: 2px;
  background: var(--rouge);
}

.footer-col p {
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 8px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a::before {
  content: '›';
  color: var(--rouge);
  font-size: 16px;
}

.footer-col ul li a:hover {
  color: var(--blanc);
  padding-left: 4px;
}

.footer-logo-text .nom {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--blanc);
  margin-bottom: 4px;
}

.footer-logo-text .sous-nom {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ==========================================
   ANIMATIONS
========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================
   PAGE HEADER (pages intérieures)
========================================== */
.page-header {
  background: linear-gradient(135deg, rgba(0,0,0,0.75), rgba(17,17,17,0.55)),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  padding: 170px 0 90px;
  text-align: center;
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--rouge), var(--vert), var(--rouge));
  background-size: 200%;
  animation: gradientSlide 3s linear infinite;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.page-header p {
  font-size: 16px;
  opacity: 0.8;
  position: relative;
  z-index: 1;
  font-weight: 300;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--vert-vif); }
.breadcrumb span { color: var(--vert-vif); }

/* ==========================================
   LOADER
========================================== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.cache {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo img {
  height: 100px;
  width: auto;
  animation: logoSlide 0.6s ease forwards;
}

.loader-barre {
  width: 120px;
  height: 3px;
  background: var(--gris-border);
  border-radius: 3px;
  overflow: hidden;
}

.loader-barre-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rouge), var(--vert));
  border-radius: 3px;
  animation: loaderBar 1.2s ease forwards;
}

@keyframes logoSlide {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes loaderBar {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1024px) {
  .chiffres-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .sous-cascade {
    position: static;
    box-shadow: none;
    border: none;
    display: none !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
    max-height: none;
    padding: 0;
  }
  .has-sous-cascade.mobile-open-2 .sous-cascade {
    display: grid !important;
    padding: 8px 0;
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 34px; }
  .section-titre { font-size: 28px; }
  nav > ul { display: none; }
  .hamburger { display: flex; }

  nav.open > ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 90px; left: 0;
    width: 100%;
    background: var(--blanc);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 4px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  .sous-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: var(--gris-clair) !important;
    border-radius: 6px !important;
    display: none !important;
    width: 100% !important;
    min-width: unset !important;
    max-width: unset !important;
  }

  .sous-menu.mobile-open {
    display: flex !important;
    flex-direction: column !important;
  }

  .services-grid { grid-template-columns: 1fr; }
  .chiffres-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .chiffres-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}