/*
Theme Name: Mon Budget Véto Child
Theme URI: https://monbudgetveto.local
Description: Thème enfant Divi pour Mon Budget Véto
Author: Martine
Template: Divi
Version: 1.0.0
Text Domain: monbudgetveto-child
*/

/* =========================================================
   MON BUDGET VÉTO - STYLES GLOBAUX
   ========================================================= */

:root {
  --mbv-bg: #FAF7F2;
  --mbv-bg-soft: #EFE4D6;
  --mbv-title: #243746;
  --mbv-text: #3C4143;
  --mbv-primary: #2F6F7E;
  --mbv-primary-dark: #245A66;
  --mbv-green: #7FA58B;
  --mbv-cta: #D96B4C;
  --mbv-cta-hover: #B94F35;
  --mbv-gold: #D6A85A;
  --mbv-alert-bg: #FFF1D6;
  --mbv-white: #FFFFFF;
  --mbv-border: rgba(36, 55, 70, 0.10);
  --mbv-shadow: 0 18px 45px rgba(36, 55, 70, 0.10);
  --mbv-shadow-soft: 0 10px 28px rgba(36, 55, 70, 0.08);
}

body {
  background-color: var(--mbv-bg);
  color: var(--mbv-text);
}

body,
p,
.et_pb_text,
.et_pb_module,
input,
textarea,
select,
button {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--mbv-title);
  letter-spacing: -0.03em;
}

a {
  color: var(--mbv-primary);
  transition: all 0.2s ease;
}

a:hover {
  color: var(--mbv-cta);
}

/* Corrections Divi légères */
.et_pb_section {
  background-color: transparent;
}

.mbv-btn,
.et_pb_button.mbv-btn {
  background-color: var(--mbv-cta) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  border: none !important;
  font-weight: 800 !important;
  padding: 14px 28px !important;
  box-shadow: 0 12px 28px rgba(217, 107, 76, 0.25);
}

.mbv-btn:hover,
.et_pb_button.mbv-btn:hover {
  background-color: var(--mbv-cta-hover) !important;
  color: #ffffff !important;
}

.mbv-btn-secondary,
.et_pb_button.mbv-btn-secondary {
  background-color: var(--mbv-primary) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  border: none !important;
  font-weight: 800 !important;
  padding: 14px 28px !important;
  box-shadow: 0 12px 28px rgba(47, 111, 126, 0.22);
}

.mbv-btn-secondary:hover,
.et_pb_button.mbv-btn-secondary:hover {
  background-color: var(--mbv-primary-dark) !important;
  color: #ffffff !important;
}

.mbv-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--mbv-shadow-soft);
  border: 1px solid rgba(47, 111, 126, 0.08);
}

@media (max-width: 767px) {
  .mbv-btn,
  .et_pb_button.mbv-btn,
  .mbv-btn-secondary,
  .et_pb_button.mbv-btn-secondary {
    display: block !important;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
  }
}
/* =========================================================
   MON BUDGET VÉTO - PATCH RESPONSIVE GLOBAL
   À ajouter dans le style.css du thème enfant
   ========================================================= */

/* Empêche les débordements horizontaux */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Sécurise tous les éléments */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Images, SVG, vidéos responsive */
img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Conteneur principal des pages custom */
.mbv-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Sécurise les containers */
.mbv-container {
  width: min(1180px, calc(100% - 40px));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Sécurise les grilles */
.mbv-grid-2,
.mbv-grid-3,
.mbv-guides-grid,
.mbv-newsletter-box,
.mbv-hero-grid,
.mbv-cta-band,
.mbv-footer-grid {
  max-width: 100%;
}

/* Tableaux scrollables sur mobile */
.mbv-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Empêche les textes longs de casser la mise en page */
.mbv-page h1,
.mbv-page h2,
.mbv-page h3,
.mbv-page p,
.mbv-page a,
.mbv-page li,
.mbv-page td,
.mbv-page th {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Header mobile plus robuste */
@media (max-width: 980px) {
  .mbv-header {
    min-height: 72px;
    position: relative;
  }

  .mbv-nav {
    top: 78px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .mbv-logo {
    max-width: calc(100% - 95px);
  }

  .mbv-logo-main {
    white-space: nowrap;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .mbv-container {
    width: calc(100% - 28px);
  }

  .mbv-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .mbv-hero {
    padding-top: 46px;
    padding-bottom: 54px;
  }

  .mbv-page h1 {
    font-size: 36px !important;
    line-height: 1.12 !important;
    letter-spacing: -0.035em;
  }

  .mbv-page h2 {
    font-size: 29px !important;
    line-height: 1.18 !important;
  }

  .mbv-page h3 {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }

  .mbv-page p,
  .mbv-page li {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  .mbv-lead {
    font-size: 17px !important;
    line-height: 1.6 !important;
  }

  .mbv-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .mbv-btn,
  .mbv-btn-secondary,
  .mbv-btn-light {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 18px;
  }

  .mbv-card,
  .mbv-split-card,
  .mbv-feature-box,
  .mbv-note,
  .mbv-affiliation-box {
    padding: 22px;
    border-radius: 22px;
  }

  .mbv-hero-card {
    padding: 16px;
    border-radius: 26px;
  }

  .mbv-hero-visual {
    min-height: 420px;
    border-radius: 22px;
  }

  .mbv-hero-info,
  .mbv-pet-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 20px;
    border-radius: 20px;
  }

  .mbv-mini-badge,
  .mbv-floating-card {
    position: static;
    width: auto;
    margin: 18px;
  }

  .mbv-hero-dog,
  .mbv-hero-icon-large {
    max-width: 220px;
  }

  .mbv-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 16px;
  }

  .mbv-footer {
    padding-top: 52px;
  }

  .mbv-footer-grid {
    gap: 26px;
  }
}

/* Très petits mobiles */
@media (max-width: 390px) {
  .mbv-container {
    width: calc(100% - 22px);
  }

  .mbv-page h1 {
    font-size: 32px !important;
  }

  .mbv-page h2 {
    font-size: 27px !important;
  }

  .mbv-logo-main {
    font-size: 18px !important;
  }

  .mbv-logo-mark {
    width: 42px !important;
    height: 42px !important;
  }

  .mbv-menu-toggle {
    padding: 10px 13px;
    font-size: 13px;
  }

  .mbv-card,
  .mbv-split-card,
  .mbv-feature-box,
  .mbv-note,
  .mbv-affiliation-box {
    padding: 19px;
  }
}
/* =========================================================
   MON BUDGET VÉTO - PATCH DIVI FULL PAGE
   Masque le header/footer Divi natif et supprime les marges
   ========================================================= */

/* Masquer le header Divi natif */
#main-header,
#top-header,
.et-l--header {
  display: none !important;
}

/* Masquer le footer Divi natif */
#main-footer,
.et-l--footer,
footer#main-footer {
  display: none !important;
}

/* Supprimer l'espace réservé au header fixe Divi */
#page-container,
.et_fixed_nav #page-container,
.et_non_fixed_nav #page-container {
  padding-top: 0 !important;
}

/* Forcer le contenu Divi à occuper toute la largeur */
#et-main-area,
#main-content,
.entry-content,
.et_builder_inner_content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Supprimer les marges de section/ligne Divi autour du module Code */
.et_pb_section,
.et_pb_row,
.et_pb_column,
.et_pb_module,
.et_pb_code,
.et_pb_code_inner {
  max-width: 100% !important;
}

.et_pb_section {
  padding: 0 !important;
}

.et_pb_row {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Évite les débordements horizontaux */
html,
body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* Le site custom doit prendre toute la largeur disponible */
.mbv-page {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}