/*
Theme Name:   MP Development Child
Theme URI:    https://mp-development.fr
Description:  Thème enfant MP Development — Bleu nuit #0B0E20 + Or #C9A84C
Author:       Malkiel Pitoun
Author URI:   https://mp-development.fr
Template:     kubio
Version:      2.0
Text Domain:  mp-development-child
*/

/* ═══════════════════════════════════════════════
   VARIABLES GLOBALES — Palette MP Development
   ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,600&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --blue-deep:         #0B0E20;
  --blue-mid:          #12162B;
  --blue-card:         #1A1F38;
  --blue-hover:        #1F2542;
  --gold:              #C9A84C;
  --gold-light:        #E8C96B;
  --gold-pale:         rgba(201,168,76,0.10);
  --gold-border:       rgba(201,168,76,0.18);
  --gold-border-h:     rgba(201,168,76,0.55);
  --mp-text:           #F0EBE0;
  --mp-muted:          #8A8FA8;
  --mp-dim:            #4A4F6A;
  --mp-border-sub:     rgba(255,255,255,0.05);
  --radius:            6px;
  --radius-sm:         4px;
  --ease:              cubic-bezier(0.4,0,0.2,1);
}

/* ═══════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════ */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif !important;
  background-color: var(--blue-deep) !important;
  color: var(--mp-text) !important;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 400;
}

h1 em, h2 em, h3 em { font-style: italic; color: var(--gold); }

a { color: var(--gold); transition: color 0.2s; }
a:hover { color: var(--gold-light); }

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

/* ═══════════════════════════════════════════════
   LOGO PNG — FILTRE OR SUR FOND BLEU NUIT
   ═══════════════════════════════════════════════ */
.mp-logo-img,
.custom-logo,
.site-logo img {
  filter: brightness(0) saturate(100%) invert(72%)
          sepia(40%) saturate(520%) hue-rotate(5deg) brightness(0.95);
  transition: filter 0.3s ease;
}
.mp-logo-img:hover,
.custom-logo:hover,
.site-logo img:hover {
  filter: brightness(0) saturate(100%) invert(82%)
          sepia(40%) saturate(600%) hue-rotate(5deg) brightness(1.05);
}

/* ═══════════════════════════════════════════════
   BOUTONS — ARRONDIS 6px
   ═══════════════════════════════════════════════ */
.mp-btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-deep) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius);
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.mp-btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(201,168,76,0.28);
  color: var(--blue-deep) !important;
}

.mp-btn-ghost {
  display: inline-block;
  border: 0.5px solid rgba(240,235,224,0.22);
  color: var(--mp-text) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none !important;
  background: transparent;
  transition: all 0.35s var(--ease);
}
.mp-btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
}

/* ═══════════════════════════════════════════════
   SECTIONS — FONDS ALTERNÉS
   ═══════════════════════════════════════════════ */
.mp-bg-deep { background: var(--blue-deep) !important; }
.mp-bg-mid  { background: var(--blue-mid)  !important; }
.mp-bg-card { background: var(--blue-card) !important; }

.mp-section {
  padding: 100px 80px;
}
@media (max-width: 1024px) { .mp-section { padding: 72px 40px; } }
@media (max-width: 640px)  { .mp-section { padding: 56px 24px; } }

/* ═══════════════════════════════════════════════
   EYEBROW — LABEL DORÉ
   ═══════════════════════════════════════════════ */
.mp-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.mp-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 0.5px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   TITRES DE SECTION
   ═══════════════════════════════════════════════ */
.mp-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--mp-text);
  margin-bottom: 16px;
}
.mp-section-sub {
  font-size: 15px;
  color: var(--mp-muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 56px;
}

/* ═══════════════════════════════════════════════
   CARTES — HOVER DORÉ
   ═══════════════════════════════════════════════ */
.mp-card {
  background: var(--blue-card);
  border: 0.5px solid var(--mp-border-sub);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition: background 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.mp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.mp-card:hover {
  background: var(--blue-hover);
  box-shadow: inset 0 0 0 0.5px var(--gold-border-h);
}
.mp-card:hover::before { transform: scaleX(1); }

/* Tags de service */
.mp-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  border: 0.5px solid var(--gold-border);
  padding: 4px 10px;
  border-radius: 3px;
  transition: border-color 0.2s, background 0.2s;
}
.mp-card:hover .mp-tag {
  border-color: rgba(201,168,76,0.4);
  background: var(--gold-pale);
}

/* ═══════════════════════════════════════════════
   ANIMATION SCROLL REVEAL
   ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════
   GRILLES
   ═══════════════════════════════════════════════ */
.mp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
}
.mp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 1024px) {
  .mp-grid-2 { grid-template-columns: 1fr; }
  .mp-grid-3 { grid-template-columns: 1fr; }
  .mp-grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .mp-grid-4 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════ */
.mp-faq-item {
  background: var(--blue-card);
  border: 0.5px solid var(--mp-border-sub);
  margin-bottom: 1.5px;
  transition: border-color 0.25s;
}
.mp-faq-item:hover,
.mp-faq-item.open { border-color: var(--gold-border); }

.mp-faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--mp-text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.mp-faq-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 0.5px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s, border-color 0.25s;
}
.mp-faq-item.open .mp-faq-icon {
  transform: rotate(45deg);
  border-color: var(--gold);
}
.mp-faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.mp-faq-item.open .mp-faq-answer { max-height: 280px; }
.mp-faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 13px;
  color: var(--mp-muted);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--blue-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ═══════════════════════════════════════════════
   RESPONSIVE HELPERS
   ═══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .mp-hide-mobile { display: none !important; }
  .mp-stack { flex-direction: column !important; }
}
/* ═══════════════════════════════════════════════════════════
   MP DEVELOPMENT — PATCH KUBIO
   Coller à la FIN du fichier style.css du child theme
   Corrige : pleine largeur + couleurs + lisibilité
   ═══════════════════════════════════════════════════════════ */

/* ── 1. PLEINE LARGEUR — force tous les shortcodes à 100% ── */

/* Kubio encapsule les shortcodes dans des wrappers limités */
.kubio-shortcode-wrapper,
.kubio-shortcode-wrapper > *,
.wp-block-shortcode,
.wp-block-shortcode > *,
[class*="kubio-"] > .wp-block-shortcode,
[class*="kubio-"] > .kubio-shortcode-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Force les sections MP à sortir du container Kubio */
.mp-hero,
.mp-services-wrap,
.mp-process-wrap,
.mp-packs-wrap,
.mp-packs-domaine-wrap,
.mp-about-intro-wrap,
.mp-about-wrap,
.mp-timeline-wrap,
.mp-expertises-wrap,
.mp-valeurs-wrap,
.mp-faq-wrap,
.mp-faq-contact-wrap,
.mp-faq-svc-wrap,
.mp-contact-wrap,
.mp-portfolio-wrap,
.mp-cta-wrap,
.mp-footer-wrap,
.mp-page-hero-wrap,
.mp-svc-detail-web,
.mp-svc-detail-son,
.mp-svc-detail-tech,
.mp-svc-detail-vjing {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
}

/* ── 2. FOND GÉNÉRAL — force le bleu nuit sur tout le site ── */

html,
body,
.site,
.site-content,
#page,
#content,
.kubio-page,
[class*="kubio-section"],
[class*="kubio-row"],
[class*="kubio-column"],
[class*="kubio-inner"] {
    background-color: #0B0E20 !important;
}

/* ── 3. TEXTES — force la lisibilité sur fond bleu ── */

body,
body p,
body span,
body div,
body li,
body td,
.kubio-page *:not(h1):not(h2):not(h3):not(h4):not(a):not(.mp-btn-primary):not(.mp-btn-ghost) {
    color: #F0EBE0;
}

/* Titres */
h1, h2, h3, h4, h5, h6,
.kubio-page h1,
.kubio-page h2,
.kubio-page h3 {
    color: #F0EBE0 !important;
    font-family: 'Cormorant Garamond', serif !important;
}

h1 em, h2 em, h3 em { color: #C9A84C !important; font-style: italic; }

/* Paragraphes et textes secondaires */
p, li, span, td, label {
    color: #F0EBE0;
}

/* ── 4. LIENS — couleur or ── */
a {
    color: #C9A84C !important;
    text-decoration: none !important;
}
a:hover { color: #E8C96B !important; }

/* Sauf les boutons qui ont leurs propres couleurs */
.mp-btn-primary,
.mp-btn-primary:hover {
    color: #0B0E20 !important;
    text-decoration: none !important;
}
.mp-btn-ghost {
    color: #F0EBE0 !important;
}
.mp-btn-ghost:hover {
    color: #C9A84C !important;
}

/* ── 5. SUPPRESSION DES STYLES KUBIO PARASITES ── */

/* Kubio ajoute parfois un fond blanc ou gris sur ses conteneurs */
[class*="kubio-section"]:not([class*="mp-"]),
[class*="kubio-row"]:not([class*="mp-"]),
[class*="kubio-column"]:not([class*="mp-"]) {
    background-color: transparent !important;
    background-image: none !important;
}

/* Supprime les marges/paddings internes de Kubio sur les blocs shortcode */
.wp-block-shortcode {
    margin: 0 !important;
    padding: 0 !important;
}

/* ── 6. NAV — s'assure qu'elle reste fixe et visible ── */
.mp-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Compense la hauteur de la nav Kubio si elle existe */
.kubio-header ~ .site-content,
.kubio-header ~ #content {
    padding-top: 0 !important;
}

/* ── 7. FOOTER — plein écran et collé en bas ── */
.mp-footer-wrap {
    position: relative !important;
    z-index: 1 !important;
}
