/*
 * MedartProd — Thème Cinéma Audiovisuel
 * Palette : Noir Profond · Or Ambré · Rouge Cinéma · Teal Digital
 */

/* ============================================================
   VARIABLES & BASE
   ============================================================ */
:root {
  --mp-bg:           #060608;
  --mp-surface:      #0d0d12;
  --mp-surface-2:    #14141c;
  --mp-gold:         #F05A28;
  --mp-gold-light:   #FF7043;
  --mp-orange:       #F05A28;
  --mp-orange-light: #FF7043;
  --mp-red:          #FF3535;
  --mp-teal:         #00C9B8;
  --mp-text:         #FFFFFF;
  --mp-text-sec:     #9AACC8;
  --mp-text-muted:   #6A7A95;
  --mp-border:       rgba(240,90,40,0.2);
  --mp-border-gold:  rgba(240,90,40,0.18);
  --mp-glow:         0 0 32px rgba(240,90,40,0.22);

  /* Chrome (topbar/header/footer) & utilitaires — dépendent du thème */
  --mp-topbar-bg:     #030303;
  --mp-header-bg:     rgba(4,4,6,0.97);
  --mp-footer-bg:     #030303;
  --mp-footer-top-bg: #040404;
  --mp-hairline:      rgba(255,255,255,0.04);
  --mp-chip-bg:       rgba(255,255,255,0.06);
  --mp-chip-bg-soft:  rgba(255,255,255,0.12);

  /* Logos : blancs sur fond sombre, couleurs d'origine sur fond clair */
  --mp-logo-filter:         brightness(0) invert(1);
  --mp-client-logo-filter:  brightness(0) invert(1);
  --mp-client-logo-opacity: 0.35;
}

/* ============================================================
   MODE CLAIR — activé via data-theme="light" sur <html>
   ============================================================ */
[data-theme="light"] {
  --mp-bg:           #ffffff;
  --mp-surface:      #f6f7f9;
  --mp-surface-2:    #ececf0;
  --mp-text:         #14161c;
  --mp-text-sec:     #4b5568;
  --mp-text-muted:   #8993a4;
  --mp-border:       rgba(240,90,40,0.28);
  --mp-border-gold:  rgba(240,90,40,0.25);
  --mp-glow:         0 0 28px rgba(240,90,40,0.16);
  --mp-teal:         #00897B;

  --mp-topbar-bg:     #f1f2f5;
  --mp-header-bg:     rgba(255,255,255,0.96);
  --mp-footer-bg:     #f5f6f8;
  --mp-footer-top-bg: #eef0f3;
  --mp-hairline:      rgba(0,0,0,0.08);
  --mp-chip-bg:       rgba(0,0,0,0.05);
  --mp-chip-bg-soft:  rgba(0,0,0,0.07);

  --mp-logo-filter:         none;
  --mp-client-logo-filter:  none;
  --mp-client-logo-opacity: 0.55;
}

/* Base */
html { scroll-behavior: smooth; }

/* Logo blanc sur fond sombre */
.logo img,
.logo a img,
#header .logo img {
  filter: var(--mp-logo-filter);
  transition: filter .3s, opacity .3s;
}

#header .logo img:hover { opacity: .85; }

body {
  background: var(--mp-bg);
  color: var(--mp-text);
  font-family: "Open Sans", sans-serif;
}

a { color: var(--mp-gold); text-decoration: none; }
a:hover { color: var(--mp-gold-light); }

h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", sans-serif;
  color: var(--mp-text);
}

/* ============================================================
   TOP BAR
   ============================================================ */
#topbar {
  background: var(--mp-topbar-bg);
  border-bottom: 1px solid rgba(240,90,40,0.15);
  height: 42px;
  font-size: 13px;
  color: var(--mp-text-sec);
}

#topbar .contact-info i {
  font-style: normal;
  color: var(--mp-gold);
}

#topbar .contact-info i a,
#topbar .contact-info i span {
  color: var(--mp-text-sec);
  padding-left: 5px;
}

#topbar .contact-info i a:hover { color: var(--mp-gold); }

#topbar .cta a {
  background: linear-gradient(90deg, var(--mp-gold), #f0a830);
  color: #060a12;
  padding: 9px 22px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: .3s;
}

#topbar .cta a:hover {
  background: linear-gradient(90deg, var(--mp-gold-light), var(--mp-gold));
}

/* ============================================================
   HEADER & NAVBAR
   ============================================================ */
#header {
  background: var(--mp-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mp-border);
  height: 72px;
  transition: all .4s;
}

#header.header-fixed {
  box-shadow: 0 4px 30px rgba(0,0,0,.5);
}

/* Navbar links */
.navbar a,
.navbar a:focus {
  color: var(--mp-text-sec);
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .3px;
  padding: 10px 0 10px 28px;
  transition: .3s;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: var(--mp-gold);
}

/* Dropdown */
.navbar .dropdown ul {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  border-radius: 8px;
}

.navbar .dropdown ul a { color: var(--mp-text-sec); }
.navbar .dropdown ul a:hover,
.navbar .dropdown ul li:hover > a,
.navbar .dropdown ul .active:hover { color: var(--mp-gold); }

/* Mobile nav */
.mobile-nav-toggle { color: var(--mp-text-sec); }
.mobile-nav-toggle.bi-x { color: var(--mp-gold); }

.navbar-mobile {
  background: var(--mp-header-bg);
  backdrop-filter: blur(20px);
}

.navbar-mobile ul {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
}

.navbar-mobile a,
.navbar-mobile a:focus { color: var(--mp-text-sec); }

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a { color: var(--mp-gold); }

.navbar-mobile .dropdown ul {
  background: var(--mp-surface-2);
  box-shadow: none;
}

/* ============================================================
   THEME TOGGLE (clair / sombre)
   ============================================================ */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 22px;
  border-radius: 50%;
  border: 1px solid var(--mp-border);
  background: var(--mp-surface-2);
  color: var(--mp-gold);
  font-size: 15px;
  cursor: pointer;
  transition: .3s;
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  border-color: var(--mp-gold);
  box-shadow: var(--mp-glow);
}
.theme-toggle-btn .icon-moon { display: none; }
[data-theme="light"] .theme-toggle-btn .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle-btn .icon-moon { display: inline; }

@media (max-width: 991px) {
  .theme-toggle-btn { margin-left: 12px; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  width: 100%;
  min-height: 100vh;
  background-image: url('../img/bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
  padding: 0;
}

/* Cinematic dark overlay on top of bg.jpg */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 40%, rgba(240,90,40,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 60%, rgba(240,90,40,0.09) 0%, transparent 60%),
    linear-gradient(160deg, rgba(6,6,8,0.82) 0%, rgba(6,6,8,0.72) 50%, rgba(10,6,8,0.85) 100%);
  z-index: 0;
}

[data-theme="light"] #hero::before {
  background:
    radial-gradient(ellipse 70% 50% at 20% 40%, rgba(240,90,40,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 60%, rgba(240,90,40,0.05) 0%, transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.82) 50%, rgba(250,243,240,0.9) 100%);
}

/* Animated film-grain texture */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: .4;
  z-index: 0;
  pointer-events: none;
}

#hero .container { position: relative; z-index: 2; }

#hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--mp-text);
  text-shadow: 0 2px 30px rgba(0,0,0,.6);
  letter-spacing: -0.5px;
}

[data-theme="light"] #hero h1 { text-shadow: 0 2px 16px rgba(255,255,255,.6); }

/* Gold highlight on hero title span */
#hero h1 span,
#hero .hero-highlight {
  background: linear-gradient(90deg, var(--mp-gold), var(--mp-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero h2 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--mp-text-sec);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* Hero badge separator dots */
#hero h2 .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--mp-gold);
  border-radius: 50%;
  margin: 0 10px;
  vertical-align: middle;
}

/* Hero buttons */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--mp-gold), #f0a830);
  color: #060a12 !important;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 34px;
  border-radius: 50px;
  transition: .3s;
  box-shadow: 0 8px 32px rgba(240,90,40,0.3);
  text-transform: uppercase;
  letter-spacing: .8px;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(240,90,40,0.45);
  background: linear-gradient(135deg, var(--mp-gold-light), var(--mp-gold));
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--mp-text) !important;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 32px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.25);
  transition: .3s;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.btn-hero-secondary:hover {
  border-color: var(--mp-gold);
  color: var(--mp-gold) !important;
  background: rgba(240,90,40,.07);
  transform: translateY(-2px);
}

/* Legacy btn-get-started (welcome.blade) */
#hero .get-started-icon {
  background: linear-gradient(135deg, var(--mp-gold), #f0a830);
  color: #060a12;
  font-size: 22px;
  padding: 14px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(240,90,40,.3);
}

#hero .btn-get-started {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  transition: .3s;
  margin-left: 0;
}

#hero .btn-get-started:hover {
  background: var(--mp-gold);
  border-color: var(--mp-gold);
  color: #060a12;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--mp-text-muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--mp-gold), transparent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* Hero stats bar */
.hero-stats {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--mp-border);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stats .stat-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--mp-gold);
  line-height: 1;
  margin: 0 0 4px;
}

.hero-stats .stat-item p {
  font-size: 12px;
  color: var(--mp-text-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ============================================================
   SECTIONS — GENERAL
   ============================================================ */
section { padding: 72px 0; }

.section-dark  { background: var(--mp-surface); }
.section-dark2 { background: var(--mp-surface-2); }

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--mp-text);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--mp-gold), transparent);
  margin: 10px auto 0;
}

.section-title p { color: var(--mp-text-sec); }

/* ============================================================
   WHY-US CARDS
   ============================================================ */
.why-us { background: linear-gradient(180deg, var(--mp-surface) 0%, var(--mp-bg) 100%); }

.why-us .why-box {
  background: linear-gradient(135deg, var(--mp-surface-2), var(--mp-surface));
  border: 1px solid var(--mp-border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: .3s;
}

.why-us .why-box:hover {
  border-color: var(--mp-gold);
  box-shadow: var(--mp-glow);
  transform: translateY(-4px);
}

.why-us .why-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mp-gold);
}

.why-us .why-box p { color: var(--mp-text-sec); }

.why-us .why-box .more-btn {
  background: linear-gradient(90deg, var(--mp-gold), #f0a830);
  color: #060a12;
  font-weight: 700;
  border-radius: 50px;
  padding: 10px 28px;
  display: inline-block;
  transition: .3s;
}

.why-us .why-box .more-btn:hover {
  box-shadow: 0 6px 20px rgba(240,90,40,.4);
  transform: translateY(-1px);
}

.why-us .card {
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  color: var(--mp-text-sec);
}

.why-us .card span {
  color: var(--mp-gold);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about { background: linear-gradient(180deg, var(--mp-bg) 0%, var(--mp-surface) 100%); }

#about .content h3 {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--mp-text);
}

#about .content ul li {
  color: var(--mp-text-sec);
}

#about .content ul li i {
  color: var(--mp-gold);
}

#about .content p { color: var(--mp-text-sec); }

#about .content .learn-more-btn {
  background: transparent;
  border: 1.5px solid var(--mp-gold);
  color: var(--mp-gold);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: .3s;
}

#about .content .learn-more-btn:hover {
  background: var(--mp-gold);
  color: #060a12;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services { background: linear-gradient(180deg, var(--mp-surface) 0%, var(--mp-bg) 100%); }

#services .icon-box {
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border);
  border-radius: 16px;
  /* Pas de overflow:hidden — l'icône sort au-dessus (position:absolute top:-36px) */
  padding: 50px 20px 30px;
  margin-top: 40px;
  transition: .35s;
  position: relative;
  text-align: center;
}

#services .icon-box:hover {
  border-color: var(--mp-orange);
  box-shadow: var(--mp-glow), 0 16px 48px rgba(0,0,0,.4);
  transform: translateY(-6px);
}

#services .icon-box .icon {
  /* Héritage de position:absolute top:-36px de style.css — on surcharge la couleur */
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light)) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 30px;
  color: #fff !important;
  box-shadow: 0 6px 24px rgba(240,90,40,0.4);
  border: none !important;
  /* Recentrage pour la largeur 72px */
  left: calc(50% - 36px) !important;
  top: -36px !important;
}

#services .icon-box .icon i {
  color: #fff !important;
  font-size: 28px !important;
  line-height: 1 !important;
}

#services .icon-box:hover .icon {
  background: linear-gradient(135deg, var(--mp-orange-light), var(--mp-orange)) !important;
  color: #fff !important;
  box-shadow: 0 8px 30px rgba(240,90,40,0.55);
  border: none !important;
}

#services .icon-box:hover .icon i {
  color: #fff !important;
}

#services .icon-box h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mp-text);
}

#services .icon-box h4 a { color: var(--mp-text); }
#services .icon-box h4 a:hover { color: var(--mp-orange); }
#services .icon-box p { color: var(--mp-text-sec); font-size: 14px; }

/* Section header */
#services .section-title h2 { color: var(--mp-text); }

/* ============================================================
   PORTFOLIO / GALLERY
   ============================================================ */
#portfolio { background: linear-gradient(180deg, var(--mp-bg) 0%, var(--mp-surface) 100%); }

#portfolio .portfolio-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

#portfolio .portfolio-item img {
  height: 260px;
  width: 100%;
  object-fit: cover;
  transition: transform .4s;
}

#portfolio .portfolio-item:hover img {
  transform: scale(1.05);
}

#portfolio .portfolio-item .portfolio-info {
  background: linear-gradient(to top, rgba(6,10,18,.95) 0%, transparent 100%);
}

#portfolio .portfolio-item .portfolio-info h4,
#portfolio .portfolio-item .portfolio-info p { color: var(--mp-text); }

#portfolio #portfolio-flters li {
  color: var(--mp-text-sec);
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 50px;
  padding: 6px 20px;
  cursor: pointer;
  transition: .3s;
}

#portfolio #portfolio-flters li:hover,
#portfolio #portfolio-flters li.filter-active {
  background: var(--mp-gold);
  color: #060a12;
  border-color: var(--mp-gold);
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
#video { background: var(--mp-surface); }

/* ============================================================
   PRICING
   ============================================================ */
#pricing { background: linear-gradient(180deg, var(--mp-surface) 0%, var(--mp-bg) 100%); }

.pricing-box {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 20px;
  padding: 40px 32px;
  transition: .35s;
}

.pricing-box:hover,
.pricing-box.featured {
  border-color: var(--mp-gold);
  box-shadow: var(--mp-glow);
  transform: translateY(-6px);
}

.pricing-box .price {
  color: var(--mp-gold);
  font-size: 2.8rem;
  font-weight: 800;
}

.pricing-box .plan-name { color: var(--mp-text-sec); }
.pricing-box ul li { color: var(--mp-text-sec); }
.pricing-box ul li i { color: var(--mp-gold); }

.pricing-box .btn-buy {
  background: linear-gradient(135deg, var(--mp-gold), #f0a830);
  color: #060a12;
  font-weight: 700;
  border-radius: 50px;
  padding: 12px 32px;
  transition: .3s;
  display: block;
  text-align: center;
}

.pricing-box .btn-buy:hover {
  box-shadow: 0 8px 28px rgba(240,90,40,.4);
  transform: translateY(-2px);
}

/* ============================================================
   RUBRIQUES CARDS (public index views)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--mp-bg) 0%, var(--mp-surface) 60%, var(--mp-bg) 100%);
  color: var(--mp-text);
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 15% 50%, rgba(240,90,40,0.07), transparent 70%);
}

.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
  position: relative;
}

.page-hero h1 i { color: var(--mp-gold); }

.page-hero p {
  font-size: 1.1rem;
  color: var(--mp-text-sec);
  position: relative;
}

.card-rubrique {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.35) !important;
  transition: transform .3s, box-shadow .3s, border-color .3s !important;
  overflow: hidden;
}

.card-rubrique:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 0 1px var(--mp-gold) !important;
  border-color: var(--mp-gold) !important;
}

.card-rubrique .card-img-top {
  height: 220px;
  object-fit: cover;
  filter: brightness(.9);
  transition: filter .3s;
}

.card-rubrique:hover .card-img-top { filter: brightness(1.05); }

.card-rubrique .card-body { background: var(--mp-surface); }
.card-rubrique .card-title { color: var(--mp-text); font-weight: 700; }
.card-rubrique .card-text  { color: var(--mp-text-sec); font-size: 13.5px; }
.card-rubrique .card-footer { background: var(--mp-surface) !important; border-top: 1px solid var(--mp-border) !important; }

.badge-cat {
  font-size: .72rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 4px 10px;
}

/* Orange button for all rubric views */
.btn-mp-orange {
  background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: .3px;
  transition: opacity .2s, transform .2s, box-shadow .2s !important;
}
.btn-mp-orange:hover, .btn-mp-orange:focus {
  color: #fff !important;
  opacity: .88 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(240,90,40,0.35) !important;
}

/* Orange badge for categories */
.badge-mp-orange {
  background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light)) !important;
  color: #fff !important;
  border: none !important;
}

/* Niveau badges for formations */
.badge-niveau-debutant { background: #1a7a4a !important; color: #fff !important; }
.badge-niveau-intermediaire { background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light)) !important; color: #fff !important; }
.badge-niveau-avance { background: #c0392b !important; color: #fff !important; }
.badge-secondaire { background: var(--mp-chip-bg-soft) !important; color: var(--mp-text-sec) !important; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact { background: linear-gradient(180deg, var(--mp-bg) 0%, var(--mp-surface) 100%); }

#contact .info-box {
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border);
  border-radius: 16px;
  padding: 32px;
}

#contact .info-box i {
  color: var(--mp-gold);
  font-size: 2rem;
}

#contact .info-box h3 { color: var(--mp-text); }
#contact .info-box p  { color: var(--mp-text-sec); }

#contact .php-email-form {
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border);
  border-radius: 16px;
  padding: 36px;
}

#contact .php-email-form input,
#contact .php-email-form textarea,
#contact form input.form-control,
#contact form textarea.form-control {
  background: var(--mp-surface) !important;
  border: 1px solid rgba(240,90,40,0.2) !important;
  color: var(--mp-text) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
}

#contact .php-email-form input:focus,
#contact .php-email-form textarea:focus,
#contact form input.form-control:focus,
#contact form textarea.form-control:focus {
  border-color: var(--mp-orange) !important;
  box-shadow: 0 0 0 3px rgba(240,90,40,.12) !important;
  background: var(--mp-surface-2) !important;
}

#contact .php-email-form input::placeholder,
#contact .php-email-form textarea::placeholder,
#contact form input.form-control::placeholder,
#contact form textarea.form-control::placeholder { color: var(--mp-text-muted) !important; }

#contact .php-email-form button[type=submit] {
  background: linear-gradient(135deg, var(--mp-gold), #f0a830);
  color: #060a12;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 12px 40px;
  transition: .3s;
}

#contact .php-email-form button[type=submit]:hover {
  box-shadow: 0 8px 28px rgba(240,90,40,.4);
  transform: translateY(-1px);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--mp-footer-bg);
  color: var(--mp-text-sec);
  font-size: 14px;
}

#footer .footer-top {
  background: var(--mp-footer-top-bg);
  border-top: 1px solid var(--mp-border);
  padding: 60px 0 40px;
}

#footer .footer-top .footer-contact h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--mp-gold);
  margin-bottom: 16px;
}

#footer .footer-top .footer-contact p { color: var(--mp-text-sec); line-height: 1.8; }
#footer .footer-top .footer-contact p strong { color: var(--mp-text); }

#footer .footer-top h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mp-text);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

#footer .footer-top h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 2px;
  background: var(--mp-gold);
}

#footer .footer-top .footer-links ul { list-style: none; padding: 0; }
#footer .footer-top .footer-links ul li { padding: 6px 0; }
#footer .footer-top .footer-links ul a { color: var(--mp-text-sec); transition: .3s; }
#footer .footer-top .footer-links ul a:hover { color: var(--mp-gold); padding-left: 6px; }
#footer .footer-top .footer-links ul i { color: var(--mp-gold); font-size: 1.1rem; margin-right: 4px; }

/* Newsletter */
#footer .footer-newsletter h4 { color: var(--mp-text) !important; }
#footer .footer-newsletter p   { color: var(--mp-text-sec); font-size: 14px; margin-bottom: 18px; }

/* Annule le layout absolu du template original */
#footer .footer-newsletter form,
.newsletter-form {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  position: static !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input[type=email],
.newsletter-form input[type=text],
#footer .footer-newsletter form input[type=email],
#footer .footer-newsletter form input[type=text] {
  width: 100% !important;
  background: var(--mp-surface) !important;
  border: 1px solid rgba(240,90,40,0.25) !important;
  color: var(--mp-text) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  position: static !important;
  display: block !important;
  transition: border-color .3s !important;
}

.newsletter-form input[type=email]::placeholder,
.newsletter-form input[type=text]::placeholder,
#footer .footer-newsletter form input[type=email]::placeholder,
#footer .footer-newsletter form input[type=text]::placeholder {
  color: #6A7A95 !important;
}

.newsletter-form input[type=email]:focus,
.newsletter-form input[type=text]:focus,
#footer .footer-newsletter form input[type=email]:focus,
#footer .footer-newsletter form input[type=text]:focus {
  border-color: var(--mp-orange) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(240,90,40,0.12) !important;
  background: var(--mp-surface-2) !important;
}

/* Bouton submit */
.newsletter-form button[type=submit],
.newsletter-form input[type=submit],
#footer .footer-newsletter form input[type=submit] {
  position: static !important;
  width: 100% !important;
  background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 13px 24px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: .3s !important;
  display: block !important;
  text-align: center !important;
  letter-spacing: .4px !important;
}

.newsletter-form button[type=submit]:hover,
.newsletter-form input[type=submit]:hover,
#footer .footer-newsletter form input[type=submit]:hover {
  background: linear-gradient(135deg, var(--mp-orange-light), var(--mp-orange)) !important;
  box-shadow: 0 6px 22px rgba(240,90,40,0.4) !important;
  transform: translateY(-1px) !important;
}

/* Footer bottom */
#footer .copyright { color: var(--mp-text-muted); font-size: 13px; }
#footer .copyright strong span { color: var(--mp-gold); }

#footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 50%;
  font-size: 16px;
  color: var(--mp-text-sec);
  transition: .3s;
  margin-left: 6px;
}

#footer .social-links a:hover {
  background: var(--mp-gold);
  color: #060a12;
  border-color: var(--mp-gold);
  transform: translateY(-2px);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  background: linear-gradient(135deg, var(--mp-gold), #f0a830) !important;
  box-shadow: 0 4px 20px rgba(240,90,40,.4);
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
}

.back-to-top i { color: #060a12 !important; }

.back-to-top:hover {
  background: linear-gradient(135deg, var(--mp-gold-light), var(--mp-gold)) !important;
}

/* ============================================================
   BOOTSTRAP OVERRIDES
   ============================================================ */

/* Cards */
.card {
  background: var(--mp-surface);
  border-color: var(--mp-border);
  color: var(--mp-text);
}

.card-header {
  background: var(--mp-surface-2);
  border-color: var(--mp-border);
}

.card-footer {
  background: var(--mp-surface-2);
  border-color: var(--mp-border);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--mp-gold), #f0a830);
  border-color: transparent;
  color: #060a12 !important;
  font-weight: 700;
  border-radius: 50px;
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--mp-gold-light), var(--mp-gold));
  box-shadow: 0 6px 20px rgba(240,90,40,.4);
  border-color: transparent;
}

.btn-outline-primary {
  border-color: var(--mp-gold);
  color: var(--mp-gold);
  border-radius: 50px;
}

.btn-outline-primary:hover {
  background: var(--mp-gold);
  color: #060a12 !important;
}

.btn-danger {
  background: var(--mp-red);
  border-color: var(--mp-red);
  border-radius: 50px;
}

/* Alerts */
.alert-success {
  background: rgba(0,201,184,.12);
  border-color: rgba(0,201,184,.3);
  color: #00C9B8;
}

/* Pagination */
.page-link {
  background: var(--mp-surface);
  border-color: var(--mp-border);
  color: var(--mp-text-sec);
}

.page-link:hover { background: var(--mp-surface-2); color: var(--mp-gold); }
.page-item.active .page-link {
  background: var(--mp-gold);
  border-color: var(--mp-gold);
  color: #060a12;
}

/* Form controls */
.form-control, .form-select {
  background: var(--mp-surface);
  border-color: var(--mp-border);
  color: var(--mp-text);
}

.form-control:focus, .form-select:focus {
  background: var(--mp-surface-2);
  border-color: var(--mp-gold);
  color: var(--mp-text);
  box-shadow: 0 0 0 3px rgba(240,90,40,.15);
}

.form-control::placeholder { color: var(--mp-text-muted); }

/* ============================================================
   RUBRIQUES HUB SECTION (welcome page cards)
   ============================================================ */
.rubrique-hub-card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  transition: .35s;
  display: block;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}

.rubrique-hub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mp-gold), transparent);
  opacity: 0;
  transition: .35s;
}

.rubrique-hub-card:hover {
  transform: translateY(-8px);
  border-color: var(--mp-gold);
  box-shadow: var(--mp-glow), 0 20px 60px rgba(0,0,0,.5);
}

.rubrique-hub-card:hover::before { opacity: 1; }

.rubrique-hub-card .icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
  transition: .3s;
}

.rubrique-hub-card:hover .icon {
  transform: scale(1.1) rotate(-3deg);
}

.rubrique-hub-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mp-text);
  margin-bottom: 8px;
}

.rubrique-hub-card p {
  font-size: 13px;
  color: var(--mp-text-sec);
  margin: 0;
}

/* ============================================================
   MAIN CONTENT BACKGROUND
   ============================================================ */
#main { background: var(--mp-bg); }

/* Sections alternating — dégradés noirs */
.section-bg { background: linear-gradient(180deg, var(--mp-surface) 0%, var(--mp-bg) 100%) !important; }

/* Icon boxes (services, why-us) */
.icon-box { background: var(--mp-surface-2); }

/* Values/counters section */
#values { background: linear-gradient(180deg, var(--mp-surface) 0%, var(--mp-bg) 100%); }
#values .count-box .count-icon { color: var(--mp-gold); }
#values .count-box span { color: var(--mp-gold); }
#values .count-box p { color: var(--mp-text-sec); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  #hero { min-height: 100svh; padding: 100px 0 60px; }
  #hero h1 { font-size: 2rem; }
  #hero h2 { font-size: .95rem; }
  .hero-stats { gap: 24px; }
  .hero-stats .stat-item h3 { font-size: 1.8rem; }
  .page-hero { padding: 70px 0 40px; }
  .page-hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
}

/* ============================================================
   WHY-US INTRO
   ============================================================ */
.why-us-intro { padding-right: 24px; }

.why-us-intro .section-label {
  display: inline-flex;
  align-items: center;
  background: rgba(240,90,40,.1);
  border: 1px solid rgba(240,90,40,.25);
  color: var(--mp-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  width: fit-content;
}

.why-us-intro h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--mp-text);
  margin-bottom: 14px;
  line-height: 1.35;
}

.why-us-intro > p { color: var(--mp-text-sec); margin-bottom: 20px; font-size: 14px; }

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  color: var(--mp-text-sec);
  font-size: 14px;
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--mp-hairline);
}

.service-list li:last-child { border-bottom: none; }

.service-list li i {
  color: var(--mp-gold);
  font-size: 15px;
  flex-shrink: 0;
}

/* ============================================================
   CLIENT SHOWCASE CARDS (why-us section)
   ============================================================ */
.client-showcase-card {
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border);
  border-radius: 18px;
  padding: 32px 26px;
  height: 100%;
  transition: .35s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.client-showcase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mp-gold), transparent);
  opacity: 0;
  transition: .35s;
}

.client-showcase-card:hover {
  border-color: var(--mp-gold);
  transform: translateY(-5px);
  box-shadow: var(--mp-glow), 0 16px 40px rgba(0,0,0,.4);
}

.client-showcase-card:hover::before { opacity: 1; }

.client-showcase-card .client-logo {
  width: 80px; height: 80px;
  background: #fff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  padding: 10px;
  flex-shrink: 0;
}

.client-showcase-card .client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Image originale sans filtre */
}

.client-showcase-card h5 {
  color: var(--mp-text);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.client-showcase-card p {
  color: var(--mp-text-sec);
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
}

.client-link {
  color: var(--mp-orange);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  transition: .3s;
  text-decoration: none !important;
}

.client-link:hover {
  color: var(--mp-gold-light);
  gap: 10px;
}

/* ============================================================
   CLIENTS SLIDER
   ============================================================ */
#clients {
  background: var(--mp-surface);
  border-top: 1px solid rgba(240,90,40,0.15);
  border-bottom: 1px solid rgba(240,90,40,0.15);
  padding: 36px 0;
}

.clients-slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
}

.clients-slider img {
  filter: var(--mp-client-logo-filter);
  opacity: var(--mp-client-logo-opacity);
  max-height: 55px;
  width: auto !important;
  transition: opacity .3s;
}

.clients-slider .swiper-slide:hover img { opacity: 0.8; }

/* ============================================================
   VALUES / RÉALISATIONS
   ============================================================ */
#values { background: linear-gradient(180deg, var(--mp-surface) 0%, var(--mp-bg) 100%) !important; }

#values .card {
  position: relative !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  min-height: 300px !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid var(--mp-border) !important;
  transition: transform .35s, box-shadow .35s, border-color .35s !important;
}

#values .card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,10,18,.96) 0%, rgba(6,10,18,.55) 50%, rgba(6,10,18,.2) 100%);
  z-index: 0;
}

#values .card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 0 30px rgba(240,90,40,.15), 0 20px 60px rgba(0,0,0,.6) !important;
  border-color: var(--mp-gold) !important;
}

#values .card .card-body {
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  min-height: 300px !important;
  padding: 28px !important;
}

#values .card .card-title a { color: var(--mp-gold) !important; font-weight: 700; font-size: 1.15rem; }
#values .card .card-text { color: rgba(255,255,255,.8) !important; font-size: 13.5px; line-height: 1.6; }

/* ============================================================
   ABOUT — ICON-BOXES
   ============================================================ */
#about { background: linear-gradient(180deg, var(--mp-bg) 0%, var(--mp-surface) 100%) !important; }

#about .icon-boxes .icon-box {
  background: transparent;
  border-left: 3px solid rgba(240,90,40,.3);
  padding: 18px 0 18px 20px;
  margin-bottom: 12px;
  transition: border-color .3s;
}

#about .icon-boxes .icon-box:hover { border-left-color: var(--mp-gold); }

#about .icon-boxes .icon-box .icon {
  width: 52px; height: 52px;
  background: rgba(240,90,40,.1);
  border: 1px solid rgba(240,90,40,.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--mp-gold);
  margin-bottom: 12px;
}

#about .icon-boxes .icon-box h4.title {
  color: var(--mp-text) !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 0;
  margin-bottom: 6px;
}

#about .icon-boxes .icon-box h4.title::after { display: none; }
#about .icon-boxes .icon-box p.description { color: var(--mp-text-sec); font-size: 13.5px; line-height: 1.6; margin: 0; }

/* ============================================================
   PRICING — Template .box and .btn-buy overrides
   ============================================================ */
#pricing { background: linear-gradient(180deg, var(--mp-surface) 0%, var(--mp-bg) 100%) !important; }

#pricing .box {
  background: var(--mp-surface-2) !important;
  border: 1px solid var(--mp-border) !important;
  border-radius: 20px;
  padding: 36px 28px;
  transition: .35s;
  position: relative;
}

#pricing .box:hover,
#pricing .box.featured {
  border-color: var(--mp-gold) !important;
  box-shadow: 0 0 30px rgba(240,90,40,.15), 0 16px 48px rgba(0,0,0,.4) !important;
  transform: translateY(-6px);
}

#pricing .box h3 { color: var(--mp-text-sec) !important; font-size: 1rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
#pricing .box h4 { color: var(--mp-gold) !important; font-size: 2.2rem; font-weight: 800; margin-bottom: 24px; }
#pricing .box h4 sup { font-size: .9rem; color: var(--mp-text-muted); }
#pricing .box ul { list-style: none; padding: 0; margin: 0 0 16px; }
#pricing .box ul li { color: var(--mp-text-sec); padding: 8px 0; border-bottom: 1px solid var(--mp-hairline); font-size: 14px; }
#pricing .btn-wrap { margin-top: 20px; }

#pricing .btn-buy {
  background: linear-gradient(135deg, var(--mp-gold), #f0a830) !important;
  color: #060a12 !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  padding: 12px 28px !important;
  transition: .3s !important;
  display: block;
  text-align: center;
  font-size: 14px;
  border: none !important;
}

#pricing .btn-buy:hover {
  box-shadow: 0 8px 28px rgba(240,90,40,.45) !important;
  transform: translateY(-2px) !important;
  background: linear-gradient(135deg, var(--mp-gold-light), var(--mp-gold)) !important;
}

#pricing .box .advanced {
  position: absolute;
  top: 18px; right: 18px;
  background: rgba(240,90,40,.15);
  border: 1px solid rgba(240,90,40,.3);
  color: var(--mp-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ============================================================
   FAQ
   ============================================================ */
#faq { background: linear-gradient(180deg, var(--mp-bg) 0%, var(--mp-surface) 100%) !important; }

/* Conteneur général — pas d'overflow caché */
.faq { overflow: visible !important; }
.faq .faq-list { padding: 0 !important; overflow: visible !important; }
.faq .faq-list ul { padding: 0 !important; list-style: none !important; overflow: visible !important; }

/* Chaque item FAQ */
.faq .faq-list li,
.faq-list > ul > li {
  background: var(--mp-surface-2) !important;
  border: 1px solid rgba(240,90,40,0.2) !important;
  border-radius: 12px !important;
  padding: 22px 26px !important;
  margin-bottom: 12px !important;
  transition: border-color .3s !important;
  overflow: visible !important;
  position: relative !important;
}

.faq .faq-list li:hover,
.faq-list > ul > li:hover {
  border-color: rgba(240,90,40,0.5) !important;
}

/* Question — lien toujours lisible, état ouvert ET collapsed */
.faq .faq-list a,
.faq .faq-list a:link,
.faq .faq-list a:visited,
.faq .faq-list a.collapsed,
.faq-list a,
.faq-list a.collapsed {
  color: var(--mp-text) !important;
  font-family: "Poppins", sans-serif !important;
  font-weight: 600 !important;
  font-size: 15.5px !important;
  line-height: 1.5 !important;
  display: block !important;
  padding-right: 36px !important;
}

.faq .faq-list a:hover,
.faq-list a:hover {
  color: var(--mp-orange) !important;
}

/* Réponse (paragraphe sous la question) */
.faq .faq-list p,
.faq-list p {
  color: var(--mp-text-sec) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  padding-top: 14px !important;
  margin: 0 !important;
}

/* Icônes (help, chevron) */
.faq .faq-list .icon-help,
.faq-list .icon-help {
  color: var(--mp-orange) !important;
  font-size: 22px !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  margin: 0 !important;
}

.faq .faq-list .icon-show,
.faq .faq-list .icon-close,
.faq-list .icon-show,
.faq-list .icon-close {
  color: var(--mp-orange) !important;
  font-size: 20px !important;
}

/* ============================================================
   SESSION / STATUS ALERT
   ============================================================ */
.alert[role="alert"] {
  background: rgba(0,201,184,.08) !important;
  border-color: rgba(0,201,184,.25) !important;
  color: #3dfff0 !important;
  border-radius: 0 !important;
  border-left: 3px solid var(--mp-teal) !important;
  padding: 12px 20px;
}

/* ============================================================
   ORANGE — Tous les boutons CTA
   ============================================================ */

/* Hero primary */
.btn-hero-primary {
  background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light)) !important;
  box-shadow: 0 8px 32px rgba(240,90,40,0.35) !important;
}
.btn-hero-primary:hover {
  background: linear-gradient(135deg, var(--mp-orange-light), var(--mp-orange)) !important;
  box-shadow: 0 12px 40px rgba(240,90,40,0.5) !important;
}

/* Pricing btn-buy */
#pricing .btn-buy {
  background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light)) !important;
  color: #fff !important;
}
#pricing .btn-buy:hover {
  background: linear-gradient(135deg, var(--mp-orange-light), var(--mp-orange)) !important;
  box-shadow: 0 8px 28px rgba(240,90,40,0.45) !important;
  color: #fff !important;
}

/* Contact — bouton envoyer */
.btn-contact-submit,
#contact .php-email-form button[type=submit],
#contact form button[type=submit] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 42px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .5px !important;
  cursor: pointer !important;
  transition: .3s !important;
  position: static !important;
  box-shadow: 0 6px 24px rgba(240,90,40,0.3) !important;
}

.btn-contact-submit:hover,
#contact .php-email-form button[type=submit]:hover,
#contact form button[type=submit]:hover {
  background: linear-gradient(135deg, var(--mp-orange-light), var(--mp-orange)) !important;
  box-shadow: 0 10px 32px rgba(240,90,40,0.5) !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
}

/* Newsletter submit — géré dans le bloc Newsletter ci-dessus */

/* Bootstrap btn-primary override → orange */
.btn-primary {
  background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light)) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--mp-orange-light), var(--mp-orange)) !important;
  box-shadow: 0 6px 20px rgba(240,90,40,0.4) !important;
}

/* Back-to-top */
.back-to-top {
  background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light)) !important;
  box-shadow: 0 4px 20px rgba(240,90,40,0.4) !important;
}
.back-to-top:hover {
  background: linear-gradient(135deg, var(--mp-orange-light), var(--mp-orange)) !important;
}
.back-to-top i { color: #fff !important; }

/* Client-link arrow → orange */
.client-link { color: var(--mp-orange) !important; }
.client-link:hover { color: var(--mp-orange-light) !important; }

/* Why-us more-btn → orange */
.why-us .why-box .more-btn {
  background: linear-gradient(90deg, var(--mp-orange), var(--mp-orange-light)) !important;
  color: #fff !important;
}

/* Top bar CTA */
#topbar .cta a {
  background: linear-gradient(90deg, var(--mp-orange), var(--mp-orange-light)) !important;
  color: #fff !important;
}
#topbar .cta a:hover {
  background: linear-gradient(90deg, var(--mp-orange-light), var(--mp-orange)) !important;
}

/* Active nav / selected filter items → orange */
.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a { color: var(--mp-orange) !important; }

.navbar .dropdown ul a:hover,
.navbar .dropdown ul li:hover > a,
.navbar .dropdown ul .active:hover { color: var(--mp-orange) !important; }

#portfolio #portfolio-flters li:hover,
#portfolio #portfolio-flters li.filter-active {
  background: var(--mp-orange) !important;
  border-color: var(--mp-orange) !important;
}

/* Pagination active → orange */
.page-item.active .page-link {
  background: var(--mp-orange) !important;
  border-color: var(--mp-orange) !important;
}

/* Section title underline → orange */
.section-title h2::after {
  background: linear-gradient(90deg, var(--mp-orange), transparent) !important;
}

/* ============================================================
   ABOUT — VIDEO BOX (image de fond)
   ============================================================ */
#about .video-box {
  min-height: 380px !important;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-color: var(--mp-surface-2) !important;
  /* Fallback gradient si about.jpg absent */
  background-image:
    url('../img/about-img.jpg'),
    linear-gradient(135deg, var(--mp-surface) 0%, var(--mp-surface-2) 100%) !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid var(--mp-border) !important;
}

#about .video-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(240,90,40,0.08), rgba(16,24,42,0.4));
  border-radius: 20px;
  z-index: 0;
}

#about .play-btn {
  position: relative;
  z-index: 1;
}

/* About section icon-boxes — orange icons */
#about .icon-boxes .icon-box .icon {
  background: linear-gradient(135deg, rgba(240,90,40,.18), rgba(240,90,40,.08)) !important;
  border: 1px solid rgba(240,90,40,.25) !important;
  color: var(--mp-orange) !important;
}

#about .icon-boxes .icon-box:hover { border-left-color: var(--mp-orange) !important; }

/* (services icon rules already defined in the main SERVICES block above) */
#services .icon-box h4 a:hover { color: var(--mp-orange) !important; }

/* ============================================================
   PROCESSUS DE TRAVAIL
   ============================================================ */
.process-step {
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border);
  border-radius: 18px;
  padding: 36px 24px 28px;
  text-align: center;
  position: relative;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  height: 100%;
}
.process-step:hover {
  border-color: var(--mp-orange);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(240,90,40,.12);
}
.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(240,90,40,.1);
  position: absolute;
  top: 12px;
  right: 18px;
  line-height: 1;
  letter-spacing: -2px;
  pointer-events: none;
}
.step-icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(240,90,40,.15), rgba(255,112,67,.06));
  border: 1px solid rgba(240,90,40,.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: background .3s;
}
.process-step:hover .step-icon {
  background: linear-gradient(135deg, rgba(240,90,40,.28), rgba(255,112,67,.14));
}
.step-icon i { font-size: 28px; color: var(--mp-orange); }
.process-step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mp-text);
  margin-bottom: 12px;
}
.process-step p { font-size: 13.5px; color: var(--mp-text-sec); margin: 0; line-height: 1.65; }

/* ============================================================
   CTA INTERMÉDIAIRE
   ============================================================ */
.cta-mid-section {
  background: linear-gradient(135deg, var(--mp-surface) 0%, var(--mp-surface-2) 50%, var(--mp-surface) 100%);
  border-top: 1px solid rgba(240,90,40,.18);
  border-bottom: 1px solid rgba(240,90,40,.18);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-mid-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 50% 50%, rgba(240,90,40,.09) 0%, transparent 70%);
  pointer-events: none;
}
.cta-mid-section .container { position: relative; }
.cta-mid-section h2 { color: var(--mp-text); font-size: 2.2rem; font-weight: 800; }
.cta-mid-section p { color: var(--mp-text-sec); font-size: 1.05rem; max-width: 580px; margin: 16px auto 36px; }
.btn-cta-outline {
  border: 2px solid rgba(240,90,40,.5) !important;
  color: #F05A28 !important;
  background: transparent !important;
  border-radius: 50px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 13px 36px !important;
  transition: all .3s !important;
}
.btn-cta-outline:hover {
  background: rgba(240,90,40,.12) !important;
  border-color: var(--mp-orange) !important;
  transform: translateY(-1px) !important;
}

/* ============================================================
   TÉMOIGNAGES
   ============================================================ */
.testimonial-card {
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border);
  border-radius: 18px;
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.testimonial-card:hover {
  border-color: var(--mp-orange);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(240,90,40,.12);
}
.testi-quote {
  font-size: 2.8rem;
  color: var(--mp-orange);
  line-height: 1;
  margin-bottom: 18px;
  opacity: .55;
}
.testimonial-card > p {
  color: var(--mp-text-sec);
  font-size: 15px;
  line-height: 1.72;
  font-style: italic;
  flex: 1;
  margin-bottom: 24px;
}
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(240,90,40,.22), rgba(255,112,67,.1));
  border: 1px solid rgba(240,90,40,.32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testi-avatar i { font-size: 22px; color: var(--mp-orange); }
.testi-author h6 { font-size: .9rem; font-weight: 700; color: var(--mp-text); margin: 0 0 3px; }
.testi-author span { font-size: .8rem; color: var(--mp-orange); font-weight: 600; letter-spacing: .3px; }
.testi-stars { color: #F05A28; font-size: .9rem; margin-bottom: 14px; letter-spacing: 2px; }

/* ============================================================
   ÉQUIPE
   ============================================================ */
.team-card {
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border);
  border-radius: 18px;
  padding: 36px 24px 26px;
  text-align: center;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  height: 100%;
}
.team-card:hover {
  border-color: var(--mp-orange);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(240,90,40,.12);
}
.team-avatar {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(240,90,40,.3);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar i { font-size: 40px; color: #fff; }
.team-card h5 { font-size: 1.05rem; font-weight: 700; color: var(--mp-text); margin-bottom: 4px; }
.team-role {
  font-size: .78rem;
  color: var(--mp-orange);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.team-card > p { font-size: 13.5px; color: var(--mp-text-sec); line-height: 1.65; margin: 0; }
.team-socials { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.team-socials a {
  width: 36px;
  height: 36px;
  background: rgba(240,90,40,.1);
  border: 1px solid rgba(240,90,40,.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mp-orange);
  font-size: 15px;
  transition: background .25s, color .25s, transform .25s;
  text-decoration: none;
}
.team-socials a:hover {
  background: var(--mp-orange);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   CARD-RUBRIQUE hover → orange border
   ============================================================ */
.card-rubrique:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 0 1px var(--mp-orange) !important;
  border-color: var(--mp-orange) !important;
}

/* ============================================================
   PRICING hover → orange glow
   ============================================================ */
#pricing .box:hover, #pricing .box.featured {
  border-color: var(--mp-orange) !important;
  box-shadow: 0 0 32px rgba(240,90,40,0.22), 0 16px 48px rgba(0,0,0,.4) !important;
}
#pricing .box h4 { color: var(--mp-orange) !important; }

/* ============================================================
   CLIENT CARDS hover → orange
   ============================================================ */
.client-showcase-card:hover {
  border-color: var(--mp-orange) !important;
  box-shadow: 0 0 32px rgba(240,90,40,0.2), 0 16px 40px rgba(0,0,0,.4) !important;
}
.client-showcase-card::before {
  background: linear-gradient(90deg, transparent, var(--mp-orange), transparent) !important;
}

/* VALUES cards hover → orange */
#values .card:hover { border-color: var(--mp-orange) !important; }
#values .card .card-title a { color: var(--mp-orange) !important; }

/* RUBRIQUE hub cards hover → orange */
.rubrique-hub-card:hover {
  border-color: var(--mp-orange) !important;
  box-shadow: 0 0 32px rgba(240,90,40,0.2), 0 20px 60px rgba(0,0,0,.5) !important;
}
.rubrique-hub-card::before {
  background: linear-gradient(90deg, transparent, var(--mp-orange), transparent) !important;
}

/* FAQ hover → déjà géré dans le bloc FAQ ci-dessus */

/* Social links hover → orange */
#footer .social-links a:hover {
  background: var(--mp-orange) !important;
  border-color: var(--mp-orange) !important;
}

/* Scroll indicator → orange */
.hero-scroll::after {
  background: linear-gradient(to bottom, var(--mp-orange), transparent) !important;
}

/* Stats → orange numbers */
.hero-stats .stat-item h3 { color: var(--mp-orange) !important; }

/* ============================================================
   RUBRIQUE — Nouveau système de cartes & pages
   ============================================================ */

/* ----- Hero rubrique ----- */
.rub-hero {
  position: relative;
  padding: 90px 0 64px;
  background: linear-gradient(135deg, var(--mp-bg) 0%, var(--mp-surface) 60%, var(--mp-bg) 100%);
  overflow: hidden;
  text-align: center;
}
.rub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 60%, rgba(240,90,40,.1), transparent 70%);
}
.rub-hero .container { position: relative; z-index: 1; }
.rub-hero-icon {
  width: 84px; height: 84px;
  background: linear-gradient(135deg, rgba(240,90,40,.18), rgba(255,112,67,.06));
  border: 1px solid rgba(240,90,40,.3);
  border-radius: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  color: var(--mp-orange);
  margin-bottom: 24px;
}
.rub-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--mp-text);
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.rub-hero p {
  font-size: 1.05rem;
  color: var(--mp-text-sec);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}
.rub-hero-divider {
  width: 52px; height: 3px;
  background: linear-gradient(90deg, var(--mp-orange), transparent);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ----- Section grille ----- */
.rub-section {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, var(--mp-bg) 0%, var(--mp-surface) 100%);
  min-height: 50vh;
}

/* Header au-dessus de la grille */
.rub-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}
.rub-section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mp-text);
  margin: 0;
}
.rub-count { font-size: 13px; color: var(--mp-text-muted); }
.rub-count strong { color: var(--mp-orange); }

/* ----- Carte rubrique ----- */
.rub-card {
  background: var(--mp-surface);
  border: 1px solid rgba(240,90,40,.14);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .35s, box-shadow .35s, border-color .35s;
  position: relative;
}
.rub-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mp-orange), transparent);
  opacity: 0;
  transition: opacity .35s;
}
.rub-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240,90,40,.45);
  box-shadow: 0 0 28px rgba(240,90,40,.12), 0 22px 64px rgba(0,0,0,.55);
}
.rub-card:hover::after { opacity: 1; }

/* Image wrapper */
.rub-card-img {
  position: relative;
  overflow: hidden;
  height: 230px;
  flex-shrink: 0;
}
.rub-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.rub-card:hover .rub-card-img img { transform: scale(1.07); }

/* Overlay hover */
.rub-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,8,.9) 0%, rgba(6,6,8,.35) 55%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .35s;
}
.rub-card:hover .rub-card-overlay { opacity: 1; }
.rub-overlay-btn {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  transform: translateY(12px) scale(.8);
  transition: transform .35s, box-shadow .35s;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(240,90,40,.4);
}
.rub-card:hover .rub-overlay-btn { transform: translateY(0) scale(1); }

/* Badge catégorie sur l'image */
.rub-img-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light));
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  z-index: 1;
}

/* Placeholder (pas d'image) */
.rub-placeholder {
  height: 230px;
  background: linear-gradient(135deg, var(--mp-surface), var(--mp-surface-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  color: rgba(240,90,40,.35);
  border-bottom: 1px solid rgba(240,90,40,.08);
}

/* Body */
.rub-card-body {
  flex: 1;
  padding: 22px 22px 14px;
}
.rub-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--mp-text-muted);
  font-weight: 600;
  letter-spacing: .2px;
}
.rub-card-meta i { color: var(--mp-orange); font-size: 12px; }
.rub-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mp-text);
  line-height: 1.45;
  margin-bottom: 10px;
}
.rub-card-desc {
  font-size: 13px;
  color: var(--mp-text-sec);
  line-height: 1.65;
  margin: 0;
}

/* Footer */
.rub-card-footer {
  padding: 0 22px 22px;
}
.rub-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(240,90,40,.07);
  border: 1px solid rgba(240,90,40,.18);
  color: var(--mp-orange);
  font-size: 13px;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 12px;
  transition: .3s;
  text-decoration: none;
  letter-spacing: .2px;
}
.rub-btn:hover {
  background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(240,90,40,.35);
  text-decoration: none;
}
.rub-btn i { transition: transform .3s; }
.rub-btn:hover i { transform: translateX(4px); }

/* Badges extras */
.rub-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
}
.rub-badge-orange  { background: rgba(240,90,40,.13); color: var(--mp-orange); border: 1px solid rgba(240,90,40,.25); }
.rub-badge-green   { background: rgba(26,122,74,.18); color: #2ecc71; border: 1px solid rgba(26,122,74,.3); }
.rub-badge-purple  { background: rgba(139,92,246,.13); color: #8B5CF6; border: 1px solid rgba(139,92,246,.25); }
.rub-badge-red     { background: rgba(255,53,53,.13); color: #FF3535; border: 1px solid rgba(255,53,53,.25); }
.rub-badge-teal    { background: rgba(0,201,184,.1); color: #00C9B8; border: 1px solid rgba(0,201,184,.2); }
.rub-badge-gray    { background: var(--mp-chip-bg); color: var(--mp-text-sec); border: 1px solid var(--mp-hairline); }

/* Prix */
.rub-price { font-size: 1.05rem; font-weight: 800; color: var(--mp-orange); }
.rub-price-free { color: #00C9B8 !important; }

/* Empty state */
.rub-empty { text-align: center; padding: 80px 20px; }
.rub-empty-icon {
  width: 96px; height: 96px;
  background: rgba(240,90,40,.06);
  border: 1px solid rgba(240,90,40,.14);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  color: rgba(240,90,40,.35);
  margin-bottom: 24px;
}
.rub-empty h5 { color: var(--mp-text); font-weight: 700; margin-bottom: 8px; }
.rub-empty p  { color: var(--mp-text-sec); font-size: 15px; margin: 0; }

/* ----- Filtres catégories ----- */
.rub-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.rub-filter-btn {
  padding: 9px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--mp-surface-2);
  color: var(--mp-text-sec);
  border: 1px solid transparent;
  transition: all .25s;
}
.rub-filter-btn:hover { color: var(--mp-orange); text-decoration: none; }
.rub-filter-btn.active {
  background: rgba(240,90,40,.13);
  color: var(--mp-orange);
  border-color: rgba(240,90,40,.35);
}

/* ----- CTA Devis ----- */
.rub-devis-cta {
  margin-top: 56px;
  padding: 44px 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--mp-surface) 0%, var(--mp-surface-2) 100%);
  border: 1px solid var(--mp-border);
  position: relative;
  overflow: hidden;
}
.rub-devis-cta::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(240,90,40,.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.rub-devis-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mp-orange);
  margin-bottom: 10px;
}
.rub-devis-cta h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--mp-orange);
  margin-bottom: 10px;
}
.rub-devis-cta p {
  color: var(--mp-text-sec);
  font-size: 14.5px;
  max-width: 520px;
  margin: 0;
}
.rub-devis-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 40px;
  background: linear-gradient(135deg, #F05A28, #FF7043);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(240,90,40,.35);
  transition: all .25s;
  white-space: nowrap;
}
.rub-devis-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(240,90,40,.45); color: #fff; }

/* ----- Modal devis (thème sombre/clair) ----- */
#modalDevisPhoto .modal-dialog { max-width: 900px; }
#modalDevisPhoto .modal-content {
  background: var(--mp-surface);
  color: var(--mp-text);
  border: 1px solid var(--mp-border);
  border-radius: 16px;
}
#modalDevisPhoto .modal-header { border-bottom: 1px solid var(--mp-hairline); }
#modalDevisPhoto .modal-title { font-weight: 800; color: var(--mp-orange); }
#modalDevisPhoto .btn-close { filter: var(--mp-logo-filter); opacity: .7; }
#modalDevisPhoto .rub-devis-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--mp-orange);
  margin-bottom: 18px;
}
#modalDevisPhoto .rub-devis-section-title:not(:first-child) { margin-top: 8px; }
#modalDevisPhoto .form-label { color: var(--mp-text-sec); font-size: .88rem; }
#modalDevisPhoto .form-label .req-dot { color: var(--mp-orange); margin-left: 3px; }
#modalDevisPhoto .form-control:focus,
#modalDevisPhoto .form-select:focus {
  border-color: var(--mp-orange);
  box-shadow: 0 0 0 3px rgba(240,90,40,.15);
}

/* ----- Pages SHOW ----- */
.rub-show-section {
  padding: 48px 0 80px;
  background: linear-gradient(180deg, var(--mp-bg) 0%, var(--mp-surface) 100%);
}

/* Breadcrumb */
.rub-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  font-size: 13px;
  flex-wrap: wrap;
}
.rub-breadcrumb a { color: var(--mp-text-sec); text-decoration: none; transition: color .2s; }
.rub-breadcrumb a:hover { color: var(--mp-orange); }
.rub-breadcrumb .bc-sep { color: rgba(240,90,40,.4); font-size: 10px; }
.rub-breadcrumb .bc-active { color: var(--mp-orange); font-weight: 600; }

/* Image hero show */
.rub-show-img-wrap {
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 16px 56px rgba(0,0,0,.5);
  border: 1px solid rgba(240,90,40,.15);
  position: relative;
}
.rub-show-img-wrap img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.rub-show-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(6,6,8,.7), transparent);
}

/* Conteneur principal show */
.rub-show-box {
  background: var(--mp-surface);
  border: 1px solid rgba(240,90,40,.14);
  border-radius: 22px;
  padding: 40px;
}

/* Titre show */
.rub-show-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--mp-text);
  line-height: 1.3;
  margin-bottom: 16px;
}
.rub-show-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--mp-text-muted);
}
.rub-show-meta i { color: var(--mp-orange); }
.rub-show-divider {
  height: 1px;
  background: rgba(240,90,40,.12);
  margin: 28px 0;
}
.rub-show-content {
  color: var(--mp-text-sec);
  font-size: 15.5px;
  line-height: 1.85;
}

/* Bouton retour */
.rub-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,90,40,.08);
  border: 1px solid rgba(240,90,40,.22);
  color: var(--mp-orange);
  padding: 11px 26px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: .3s;
  text-decoration: none;
  margin-top: 32px;
}
.rub-back-btn:hover {
  background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(240,90,40,.32);
  text-decoration: none;
}

/* Sidebar (formations) */
.rub-sidebar {
  background: var(--mp-surface);
  border: 1px solid rgba(240,90,40,.14);
  border-radius: 22px;
  padding: 28px 24px;
  position: sticky;
  top: 88px;
}
.rub-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mp-text);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(240,90,40,.12);
}
.rub-sidebar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--mp-hairline);
}
.rub-sidebar-row:last-child { border-bottom: none; }
.rub-sidebar-ico {
  width: 38px; height: 38px;
  background: rgba(240,90,40,.1);
  border: 1px solid rgba(240,90,40,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--mp-orange);
  font-size: 1rem;
  flex-shrink: 0;
}
.rub-sidebar-lbl { font-size: 10.5px; color: var(--mp-text-muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; margin-bottom: 2px; }
.rub-sidebar-val { font-size: 14px; color: var(--mp-text); font-weight: 600; }
.rub-sidebar-cta {
  display: block;
  margin-top: 24px;
  background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-light));
  color: #fff;
  text-align: center;
  padding: 13px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition: .3s;
  text-decoration: none;
}
.rub-sidebar-cta:hover {
  box-shadow: 0 8px 26px rgba(240,90,40,.4);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

/* Lecteur vidéo */
.rub-video-wrap {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  border: 1px solid rgba(240,90,40,.15);
}

/* Lecteur audio */
.rub-audio-box {
  background: var(--mp-bg);
  border: 1px solid rgba(240,90,40,.2);
  border-radius: 16px;
  padding: 24px 26px;
  margin-top: 24px;
}
.rub-audio-label {
  font-size: 11px;
  color: var(--mp-text-sec);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rub-audio-label i { color: var(--mp-orange); }
audio { accent-color: var(--mp-orange); width: 100%; }

/* Responsive */
@media (max-width: 768px) {
  .rub-hero { padding: 70px 0 48px; }
  .rub-hero h1 { font-size: 1.9rem; }
  .rub-show-box { padding: 24px 20px; }
  .rub-card-img, .rub-placeholder { height: 200px; }
}
