/*
 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
------------------------------------------------------- */


@media (max-width: 991px) {
  .inverse {
      display: flex;
      flex-direction: column-reverse;
  }
}

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

/* ===== DIVI GLOBAL HEADINGS ===== */

h1, .et_pb_text h1, .entry-title {
  font-size: 48px !important;
}

h2, .et_pb_text h2 {
  font-size: 28px !important;
}

h3, .et_pb_text h3 {
  font-size: 20px !important;
}

/* Fiche produit lire plus */

.fiche-readmore-text details {
  display: inline;
  position: relative;
}

.fiche-readmore-text details summary {
  display: block;
  cursor: pointer;
  color: black;
  font-size: 18px !important;
  font-weight: bold;
  list-style: none;
}

.fiche-readmore-text details summary:focus {
  outline: none;
}

.fiche-readmore-text details[open] {
  display: block;
  padding-bottom: 45px;
  padding-top: 10px;
  animation: open .2s linear;
}

.fiche-readmore-text details[open] summary {
  position: absolute;
  bottom: 0;
  left: 0;
}

/* OPEN / CLOSE FIX */
.fiche-readmore-text details #open {
  display: inline-block !important;
  padding-left: 5px;
}

.fiche-readmore-text details #close {
  display: none !important;
}

.fiche-readmore-text details[open] #open {
  display: none !important;
}

.fiche-readmore-text details[open] #close {
  display: block !important;
  position: relative;
}

.fiche-readmore-text details #open:after {
  display: inline-block;
  position: relative;
  top: -3px;
  padding-left: 8px;
  content: "\00bb";
  transform: rotate(90deg);
}

.fiche-readmore-text details summary::-webkit-details-marker {
  display: none;
}



@keyframes open {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fin lire plus */

/* =====================================================
   BLACK & WHITE → COLOR + ZOOM (CLASS VERSION)
   Desktop only — no tablet, no mobile
   ===================================================== */
@media (min-width: 1025px) {

    .bw-hover {
        overflow: hidden;
    }
    .bw-hover img {
        display: block;
        width: 100%;
        filter: grayscale(100%) saturate(0.9);
        transform: scale(1) translateZ(0);
        backface-visibility: hidden;
        will-change: transform, filter;
        transition:
            transform 0.6s cubic-bezier(.2,.65,.3,1),
            filter 0.6s cubic-bezier(.2,.65,.3,1) !important;
    }
    .bw-hover:hover img {
        filter: grayscale(0%) saturate(1);
        transform: scale(1.1) translateZ(0);
    }

}
/* =====================================================
   GLOBAL DIVI IMAGE ZOOM (EXCLUDING bw-hover)
   ===================================================== */

/* clip zoom */
.et_pb_image:not(.bw-hover),
.et_pb_column:not(.bw-hover),
.et_pb_module:not(.bw-hover) {
    overflow: hidden;
}

/* default state */
.et_pb_image:not(.bw-hover) img,
.et_pb_column:not(.bw-hover) img,
.et_pb_module:not(.bw-hover) img {
    display: block;
    width: 100%;
    transform: scale(1) translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(.2,.65,.3,1);
}

/* hover zoom */
.et_pb_image:not(.bw-hover):hover img,
.et_pb_column:not(.bw-hover):hover img,
.et_pb_module:not(.bw-hover):hover img {
    transform: scale(1.1) translateZ(0);
}

.dc-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Number — outlined circle */
.dc-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #c8c8c8;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.05em;
  background: transparent;
}

/* Badge base */
.dc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Hebdomadaire — sage green */
.dc-badge.atelier {
  background: #c8d9b0;
  color: #3a4a28;
}

/* Master class — same green, star emoji included in HTML */
.dc-badge.master {
  background: #e2c7ff;
  color: #3a4a28;
}

.dc-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.dc-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  color: #667085;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dc-nav a:hover {
  color: #111;
  background: #f5f5f5;
}

.dc-nav a.active {
  color: #ffffff !important;
  background: #111111;
}

/* Mobile */
/* Mobile */
@media (max-width: 768px) {
  .dc-nav {
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 10px 0;
    flex-wrap: nowrap;              /* keep one row */
    -webkit-overflow-scrolling: touch;
  }

  .dc-nav a {
    font-size: 14px;
    padding: 11px 15px;
    flex: 0 0 auto;                 /* 🚨 KEY FIX: no shrinking */
  }

  .dc-nav::-webkit-scrollbar {
    display: none;
  }
}

.dc-nav a {
  white-space: nowrap;
  flex-shrink: 0;   /* safety for all sizes */
}

.dc-badge.statut {
  background: #faeeda;
  color: #633806;
}

.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;
}
/* =========================
   DIVI MOBILE HEADER FIX
   Logo + second image + hamburger spacing
   ========================= */

@media (max-width: 980px) {

  #main-header {
    background: rgba(0, 0, 0, 0.65) !important;
    box-shadow: none !important;
    min-height: 76px !important;
    padding: 0 !important;
  }

  #main-header .container {
    width: 94% !important;
    max-width: 94% !important;
    height: 76px !important;
    padding: 0 !important;

    display: grid !important;
    grid-template-columns: 1fr auto 52px !important;
    align-items: center !important;
    column-gap: 22px !important;
  }

  /* Logo left */
  .logo_container {
    position: static !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    grid-column: 1 !important;
    min-width: 0 !important;
  }

  #logo {
    display: block !important;
    max-height: 44px !important;
    width: auto !important;
    max-width: 135px !important;
    object-fit: contain !important;
  }

  /* Second image / award */
  .dc-header-award {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    grid-column: 2 !important;
    margin: 0 !important;
  }

  .dc-header-award img {
    display: block !important;
    max-height: 42px !important;
    width: auto !important;
    max-width: 70px !important;
    object-fit: contain !important;
  }

  /* Hamburger right */
  #et-top-navigation {
    grid-column: 3 !important;
    justify-self: end !important;
    width: 52px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  #et_mobile_nav_menu {
    display: block !important;
    width: 52px !important;
  }

  .mobile_menu_bar {
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .mobile_menu_bar:before {
    color: #fff !important;
    font-size: 36px !important;
    line-height: 1 !important;
  }

  #top-menu,
  #et_search_icon,
  #et-top-navigation .et-cart-info {
    display: none !important;
  }

  .et_mobile_menu {
    top: 76px !important;
    border-top: 3px solid #fff !important;
    background: #fff !important;
  }

  .et_mobile_menu li a {
    color: #000 !important;
  }
}


/* Extra small phones */
@media (max-width: 480px) {

  #main-header {
    min-height: 70px !important;
  }

  #main-header .container {
    height: 70px !important;
    grid-template-columns: 1fr auto 50px !important;
    column-gap: 16px !important;
  }

  #logo {
    max-height: 38px !important;
    max-width: 115px !important;
  }

  .dc-header-award img {
    max-height: 34px !important;
    max-width: 58px !important;
  }

  #et-top-navigation,
  #et_mobile_nav_menu,
  .mobile_menu_bar {
    width: 50px !important;
  }

  .mobile_menu_bar:before {
    font-size: 32px !important;
  }

  .et_mobile_menu {
    top: 70px !important;
  }
}

text__1 {
	color:white !important;
}