/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/


/* =Theme customization starts here
------------------------------------------------------- */



:root{
  --bdm-red:#b23f44;
  --bdm-cream:#e8cea0;
  --bdm-dark:#333333;
  --bdm-paper:#f8f5ef;
  --bdm-white:#ffffff;
  --bdm-line:rgba(51,51,51,.13);
  --bdm-shadow:0 18px 50px rgba(32,25,20,.10);
}

/* =========================================================
   BASE
   ========================================================= */
html{scroll-behavior:smooth;}
body{overflow-x:hidden;}

.bdm-section,
.bdm-hero,
.bdm-catering,
.bdm-order{
  color:var(--bdm-dark);
}

.bdm-section *,
.bdm-hero *,
.bdm-catering *,
.bdm-order *{
  box-sizing:border-box;
}

.bdm-container{
  width:min(1180px,calc(100% - 48px));
  margin-inline:auto;
}

.bdm-section{
  padding:90px 0;
  background:var(--bdm-paper);
}

.bdm-section--cream{background:var(--bdm-cream);}
.bdm-section--dark{background:var(--bdm-dark);}

/* No font-family is forced here.
   Your Divi / WordPress typography remains in control. */
.bdm-section h1,
.bdm-section h2,
.bdm-section h3,
.bdm-hero h2,
.bdm-catering h2,
.bdm-order h2{
  margin:0;
  line-height:1.1;
}

/* Main heading sizes only */
.bdm-title{
  font-size:clamp(38px,4vw,58px);
  max-width:820px;
  margin-bottom:26px!important;
  color:var(--bdm-red)!important;
}

.bdm-title--mobile{display:none;}

.bdm-section h2,
.bdm-catering h2,
.bdm-order h2{
  font-size:clamp(32px,3vw,46px);
  margin-bottom:22px;
}

.bdm-section h3{
  font-size:clamp(22px,2vw,28px);
  margin-bottom:14px;
}

.bdm-section p,
.bdm-catering p,
.bdm-order p{
  font-size:16px;
  line-height:1.72;
  margin:0 0 18px;
}

/* Requested title color */
.bdm-section h1,
.bdm-section h2,
.bdm-section h3{
  color:var(--bdm-red)!important;
}

/* White titles on dark / red / image backgrounds */
.bdm-section--dark h1,
.bdm-section--dark h2,
.bdm-section--dark h3,
.bdm-promo h1,
.bdm-promo h2,
.bdm-promo h3,
.bdm-catering h1,
.bdm-catering h2,
.bdm-catering h3,
.bdm-order h1,
.bdm-order h2,
.bdm-order h3{
  color:#fff!important;
}

/* =========================================================
   COMMON LAYOUT
   ========================================================= */
.bdm-split{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.88fr);
  gap:64px;
  align-items:center;
}

.bdm-split--reverse{
  grid-template-columns:minmax(340px,.82fr) minmax(0,1.18fr);
}

.bdm-copy{max-width:680px;}

.bdm-copy--light{color:#fff;}
.bdm-copy--light p{color:rgba(255,255,255,.80);}

/* =========================================================
   IMAGES
   ========================================================= */
.bdm-photo{
  position:relative;
  margin:0;
  overflow:hidden;
  background:#ddd;
}

.bdm-photo::after{
  content:"";
  position:absolute;
  inset:14px;
  border:1px solid rgba(255,255,255,.55);
  pointer-events:none;
}

.bdm-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .7s ease;
}

.bdm-photo:hover img{transform:scale(1.025);}

/* Intro */
.bdm-intro .bdm-photo--portrait{
  height:clamp(430px,44vw,560px);
}

/* About: image follows the text better */
.bdm-section--cream .bdm-split{
  align-items:stretch;
}

.bdm-section--cream .bdm-photo--portrait{
  height:auto;
  min-height:520px;
  max-height:650px;
  align-self:stretch;
}

.bdm-section--cream .bdm-photo--portrait img{
  height:100%;
}

.bdm-section--cream .bdm-copy{
  align-self:center;
  max-width:720px;
}

.bdm-photo--wide{height:430px;}

/* =========================================================
   BUTTONS
   ========================================================= */
.bdm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  margin-top:10px;
  padding:0 25px;
  background:var(--bdm-red);
  color:#fff!important;
  border:1px solid var(--bdm-red);
  text-decoration:none!important;
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
  transition:transform .2s ease,background .2s ease,color .2s ease;
}

.bdm-btn:hover{
  transform:translateY(-2px);
  background:transparent;
  color:var(--bdm-red)!important;
}

.bdm-btn--dark{
  background:var(--bdm-dark);
  border-color:var(--bdm-dark);
}

.bdm-btn--dark:hover{color:var(--bdm-dark)!important;}

.bdm-btn--cream{
  background:var(--bdm-cream);
  border-color:var(--bdm-cream);
  color:var(--bdm-dark)!important;
}

.bdm-btn--cream:hover{color:var(--bdm-cream)!important;}

/* =========================================================
   HERO SLIDER
   ========================================================= */
.bdm-hero{
  position:relative;
  background:var(--bdm-dark);
}

.bdm-slider{
  position:relative;
  height:min(680px,78vh);
  min-height:520px;
  overflow:hidden;
}

.bdm-slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  background-image:var(--bg);
  background-size:cover;
  background-position:center;
  transform:scale(1.025);
  transition:opacity .8s ease,visibility .8s ease,transform 1.1s ease;
}

.bdm-slide.is-active{
  opacity:1;
  visibility:visible;
  transform:scale(1);
}

.bdm-slide__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    rgba(20,20,20,.76) 0%,
    rgba(20,20,20,.48) 45%,
    rgba(20,20,20,.15) 100%
  );
}

.bdm-slide__content{
  position:absolute;
  left:max(7vw,42px);
  bottom:105px;
  width:min(700px,72vw);
  color:#fff;
}

.bdm-slide__content h2{
  color:#fff!important;
  font-size:clamp(34px,4.3vw,58px);
  max-width:700px;
  text-shadow:0 2px 16px rgba(0,0,0,.18);
}

.bdm-slider__arrow{
  position:absolute;
  z-index:5;
  top:50%;
  width:46px;
  height:46px;
  border:1px solid rgba(255,255,255,.75);
  background:rgba(20,20,20,.18);
  color:#fff;
  font-size:28px;
  display:grid;
  place-items:center;
  cursor:pointer;
  transform:translateY(-50%);
  transition:background .2s ease,color .2s ease;
}

.bdm-slider__arrow:hover{
  background:#fff;
  color:var(--bdm-dark);
}

.bdm-slider__arrow--prev{left:26px;}
.bdm-slider__arrow--next{right:26px;}

.bdm-slider__dots{
  position:absolute;
  z-index:5;
  left:max(7vw,42px);
  bottom:50px;
  display:flex;
  gap:9px;
}

.bdm-slider__dots button{
  width:32px;
  height:3px;
  padding:0;
  border:0;
  background:rgba(255,255,255,.45);
  cursor:pointer;
  transition:width .25s ease,background .25s ease;
}

.bdm-slider__dots button.is-active{
  width:58px;
  background:var(--bdm-cream);
}

/* =========================================================
   01 / 02 / 03 QUALITY CARDS
   NO ICONS HERE
   ========================================================= */
.bdm-values{background:#fff;}

.bdm-card-grid{
  display:grid;
  gap:22px;
}

.bdm-card-grid--3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.bdm-feature{
  position:relative;
  padding:34px;
  border:1px solid var(--bdm-line);
  background:#fff;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}

.bdm-feature:hover{
  transform:translateY(-5px);
  box-shadow:var(--bdm-shadow);
  border-color:rgba(178,63,68,.28);
}

.bdm-feature .bdm-fa-icon,
.bdm-feature .bdm-icon{
  display:none!important;
}

.bdm-feature__number{
  display:block;
  margin:0 0 24px;
  color:var(--bdm-red);
  font-size:18px;
  font-weight:700;
}

.bdm-feature h3{
  color:var(--bdm-red)!important;
}

.bdm-feature p{
  font-size:15px;
}

/* =========================================================
   PRODUCTS / SERVICES
   ========================================================= */
.bdm-products-intro{
  padding-bottom:42px;
  background:#fff;
}

.bdm-heading-center{
  max-width:860px;
  text-align:center;
}

.bdm-services{
  padding-top:26px;
  background:#fff;
}

.bdm-service-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border:1px solid var(--bdm-line);
  background:#fff;
  box-shadow:var(--bdm-shadow);
}

.bdm-service{
  padding:32px 36px;
  border-right:1px solid var(--bdm-line);
  border-bottom:1px solid var(--bdm-line);
  transition:background .2s ease;
}

.bdm-service:nth-child(2n){border-right:0;}
.bdm-service:nth-last-child(-n+2){border-bottom:0;}

.bdm-service:hover{
  background:rgba(232,206,160,.20);
}

.bdm-service h3{
  color:var(--bdm-red)!important;
}

.bdm-service p{
  font-size:14px;
  line-height:1.68;
}

/* Font Awesome */
.bdm-fa-icon{
  display:inline-block;
  width:auto;
  height:auto;
  margin:0 0 14px;
  padding:0;
  color:var(--bdm-red);
  background:transparent;
  border:0;
  font-size:24px;
  line-height:1;
}

.bdm-fa-icon--small{
  width:auto;
  height:auto;
  margin:2px 0 0;
  padding:0;
  font-size:18px;
  line-height:1;
}

.bdm-center{
  text-align:center;
  margin-top:34px;
}

/* =========================================================
   CATERING + CF7
   ========================================================= */
.bdm-catering{
  background:var(--bdm-dark);
}

.bdm-catering__media{
  min-height:700px;
  background-size:cover;
  background-position:center;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(390px,.78fr);
  gap:60px;
  align-items:center;
  padding:80px max(6vw,32px);
}

.bdm-catering__copy{
  max-width:620px;
  color:#fff;
}

.bdm-catering__copy p{
  color:rgba(255,255,255,.82);
}

.bdm-catering__form{
  background:#fff;
  padding:38px;
  box-shadow:0 22px 65px rgba(0,0,0,.22);
}

.bdm-cf7-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.bdm-cf7-full{
  grid-column:1/-1;
}

.bdm-cf7-group label{
  display:block;
  margin:0 0 7px;
  font-size:14px;
  font-weight:700;
}

.bdm-cf7-group input,
.bdm-cf7-group textarea{
  width:100%;
  border:0!important;
  border-bottom:1px solid rgba(51,51,51,.42)!important;
  background:transparent!important;
  padding:11px 0!important;
  font-size:15px;
  border-radius:0!important;
  outline:none;
  box-shadow:none!important;
}

.bdm-cf7-group textarea{
  height:115px;
  resize:vertical;
}

.bdm-cf7-submit{
  margin-top:10px!important;
  min-height:48px!important;
  padding:0 26px!important;
  border:1px solid var(--bdm-red)!important;
  border-radius:0!important;
  background:var(--bdm-red)!important;
  color:#fff!important;
  font-weight:700!important;
  cursor:pointer;
}

/* =========================================================
   PROMO
   ========================================================= */
.bdm-promo{
  background:var(--bdm-red);
  color:#fff;
}

.bdm-promo p{
  color:rgba(255,255,255,.88);
  max-width:700px;
}

.bdm-promo__inner{
  display:flex;
  justify-content:space-between;
  gap:40px;
  align-items:center;
}

/* =========================================================
   CLICK & COLLECT
   ========================================================= */
.bdm-clickcollect{
  background:var(--bdm-paper);
}

.bdm-pickup{
  border-top:1px solid var(--bdm-line);
}

.bdm-pickup__item{
  display:grid;
  grid-template-columns:26px 34px minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:20px 0;
  border-bottom:1px solid var(--bdm-line);
}

.bdm-pickup__item span{
  color:var(--bdm-red);
  font-weight:700;
  font-size:15px;
  line-height:1.25;
  padding-top:1px;
}

.bdm-pickup__item p{
  margin:0;
  padding:0;
}

/* =========================================================
   ORDER CTA
   ========================================================= */
.bdm-order{
  min-height:460px;
  background-size:cover;
  background-position:center;
  display:grid;
  place-items:center;
  text-align:center;
  padding:65px 24px;
  color:#fff;
}

.bdm-order__inner{
  max-width:740px;
}

.bdm-order p{
  color:rgba(255,255,255,.84);
}

/* =========================================================
   PARTNERS
   ========================================================= */
.bdm-partners{
  background:#fff;
}

.bdm-partners .bdm-heading-center p{
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}

/* =========================================================
   ANIMATION
   ========================================================= */
.bdm-reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .65s ease,transform .65s ease;
}

.bdm-reveal.is-visible{
  opacity:1;
  transform:none;
}

@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important;
  }

  .bdm-reveal{
    opacity:1;
    transform:none;
  }
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width:980px){
  .bdm-section{
    padding:72px 0;
  }

  .bdm-split,
  .bdm-split--reverse{
    grid-template-columns:1fr;
    gap:40px;
  }

  .bdm-card-grid--3{
    grid-template-columns:1fr;
  }

  .bdm-intro .bdm-photo--portrait,
  .bdm-section--cream .bdm-photo--portrait{
    height:500px;
    min-height:0;
    max-height:none;
  }

  .bdm-catering__media{
    grid-template-columns:1fr;
    gap:42px;
    padding:70px 32px;
  }

  .bdm-catering__form{
    max-width:720px;
    width:100%;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width:767px){
  .bdm-container{
    width:min(100% - 30px,1180px);
  }

  .bdm-section{
    padding:58px 0;
  }

  .bdm-title--desktop{
    display:none;
  }

  .bdm-title--mobile{
    display:block;
    font-size:36px;
  }

  .bdm-section h2,
  .bdm-catering h2,
  .bdm-order h2{
    font-size:32px;
  }

  .bdm-section h3{
    font-size:23px;
  }

  .bdm-section p,
  .bdm-catering p,
  .bdm-order p{
    font-size:15px;
  }

  .bdm-slider{
    height:70vh;
    min-height:500px;
  }

  .bdm-slide__overlay{
    background:linear-gradient(
      0deg,
      rgba(20,20,20,.80),
      rgba(20,20,20,.12) 72%
    );
  }

  .bdm-slide__content{
    left:22px;
    right:22px;
    bottom:90px;
    width:auto;
  }

  .bdm-slide__content h2{
    font-size:34px;
    max-width:100%;
  }

  .bdm-slider__arrow{
    top:auto;
    bottom:24px;
    width:40px;
    height:40px;
    transform:none;
  }

  .bdm-slider__arrow--prev{
    left:auto;
    right:70px;
  }

  .bdm-slider__arrow--next{
    right:22px;
  }

  .bdm-slider__dots{
    left:22px;
    bottom:40px;
  }

  .bdm-intro .bdm-photo--portrait,
  .bdm-section--cream .bdm-photo--portrait,
  .bdm-photo--wide{
    height:350px;
  }

  .bdm-feature{
    padding:28px;
  }

  .bdm-service-grid{
    grid-template-columns:1fr;
  }

  .bdm-service,
  .bdm-service:nth-child(2n),
  .bdm-service:nth-last-child(-n+2){
    border-right:0;
    border-bottom:1px solid var(--bdm-line);
    padding:27px;
  }

  .bdm-service:last-child{
    border-bottom:0;
  }

  .bdm-catering__media{
    min-height:auto;
    padding:56px 18px;
  }

  .bdm-catering__form{
    padding:26px 20px;
  }

  .bdm-cf7-grid{
    grid-template-columns:1fr;
  }

  .bdm-cf7-full{
    grid-column:auto;
  }

  .bdm-promo__inner{
    display:block;
  }

  .bdm-promo .bdm-btn{
    margin-top:15px;
  }

  .bdm-pickup__item{
    grid-template-columns:24px 30px minmax(0,1fr);
    gap:8px;
  }

  .bdm-fa-icon--small{
    width:auto;
    height:auto;
    font-size:17px;
  }

  .bdm-pickup__item span{
    line-height:1.25;
  }

  .bdm-pickup__item p{
    padding:0;
  }
}
/* Anchor navigation */
#accueil,
#notre-histoire,
#nos-produits,
#service-traiteur,
#click-collect{
  scroll-margin-top:100px;
}

/* Belitalia link */
.bdm-inline-link{
  color:#b23f44;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}

.bdm-section--dark .bdm-inline-link,
.bdm-catering .bdm-inline-link{
  color:#e8cea0;
}
/* Contact Form 7 - Boucherie du Marché Styling */

/* Form Container Layout */
.wpcf7-form {
    max-width: 650px;
    margin: 0 auto;
    padding: 25px;
    background-color: #fdfdfd;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Form Groups & Labels */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 6px;
}

/* Input Fields & Textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* Focus States */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    border-color: #8b0000; /* Deep Butcher Red */
    outline: none;
    box-shadow: 0 0 5px rgba(139, 0, 0, 0.25);
}

/* Placeholder Styling */
.wpcf7-form ::placeholder {
    color: #999999;
    font-style: italic;
}

/* Submit Button */
.submit-button {
    text-align: center;
    margin-top: 10px;
}

.wpcf7-form input[type="submit"] {
    background-color: #8b0000; /* Primary brand color */
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 32px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    width: 100%;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #660000;
}

.wpcf7-form input[type="submit"]:active {
    transform: scale(0.99);
}

/* Validation & Error Messages */
.wpcf7-not-valid-tip {
    color: #d9534f;
    font-size: 13px;
    margin-top: 4px;
}

.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 12px 15px !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    text-align: center !important;
}

.wpcf7-mail-sent-ok {
    border: 1px solid #4caf50 !important;
    background-color: #edf7ed !important;
    color: #1e4620 !important;
}

.wpcf7-validation-errors, 
.wpcf7-acceptance-missing {
    border: 1px solid #f44336 !important;
    background-color: #fdecea !important;
    color: #611a15 !important;
}

/* Responsive Design */
@media (max-width: 600px) {
    .wpcf7-form {
        padding: 15px;
    }
}
.mobile_menu_bar:before, .mobile_menu_bar:after, #top-menu li.current-menu-ancestor>a, #top-menu li.current-menu-item>a {
  color: #fff;
}

.et_mobile_menu {
border-top: 3px solid #fff;
}

.et-fixed-header #top-menu .menu-button a {
  color : #fff !important;
}
@media (max-width:767px){

  /* Only move images before text */
  .bdm-split > .bdm-photo{
    order:-1;
  }

}
@media (max-width:767px){

  #nos-produits.bdm-products-intro{
    padding-top:40px !important;
    padding-bottom:0px !important;
  }

}
@media (min-width: 1024px) {
  .center-text-image {
      display: flex;
      align-items: center;
  }
}