/*
Theme Name: Enfold Child
Description: A child theme for the Enfold WordPress Theme. Use this theme for custom modifications so parent-theme updates do not overwrite them.
Version: 1.0
Author: Kriesi
Author URI: https://kriesi.at
Template: enfold
*/

/* Add your own styles below. */


/* ========================================
   COLONNES ENFOLD — ESPACEMENT 2 %
   ======================================== */

@media only screen and (min-width: 768px) {

  .flex_column.av_one_half {
    width: 49% !important;
    margin-left: 2% !important;
  }

  .flex_column.av_one_third {
    width: 32% !important;
    margin-left: 2% !important;
  }

  .flex_column.av_two_third {
    width: 66% !important;
    margin-left: 2% !important;
  }

  .flex_column.av_one_fourth {
    width: 23.5% !important;
    margin-left: 2% !important;
  }

  .flex_column.av_three_fourth {
    width: 74.5% !important;
    margin-left: 2% !important;
  }

  .flex_column.av_one_fifth {
    width: 18.4% !important;
    margin-left: 2% !important;
  }

  .flex_column.av_two_fifth {
    width: 38.8% !important;
    margin-left: 2% !important;
  }

  .flex_column.av_three_fifth {
    width: 59.2% !important;
    margin-left: 2% !important;
  }

  .flex_column.av_four_fifth {
    width: 79.6% !important;
    margin-left: 2% !important;
  }

  .flex_column.first {
    margin-left: 0 !important;
  }
}


/* TABLETTE — 2 colonnes */

@media only screen and (min-width: 768px) and (max-width: 989px) {

  .flex_column.av_one_fourth {
    width: 48% !important;
    margin-left: 2% !important;
  }

  .flex_column.av_one_fourth:nth-child(even) {
    margin-left: 0% !important;
  }
}


#top .av-flex-placeholder {
  width: 2% !important;
}


/* ========================================
   BANDEAU LOGOS
   ======================================== */

.bande-logos {
  --duree-defilement: 22s;
  --espace-logos: 24px;

  width: 100%;
  overflow: hidden;
}

.bande-logos__piste {
  display: flex;
  width: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.bande-logos__groupe {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.bande-logos__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bande-logos__logo img {
  display: block;
  width: 100%;
  object-fit: contain;
}


/* Ordinateur : logos fixes sur une seule ligne */

/* Desktop : tous les logos sur une ligne, dans le container */
@media (min-width: 768px) {

  #top .bande-logos {
    width: 100%;
    overflow: hidden;
  }

  #top .bande-logos.is-ready .bande-logos__piste,
  #top .bande-logos .bande-logos__piste {
    width: 100%;
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }

  #top .bande-logos .bande-logos__groupe {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  #top .bande-logos__logo {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 9vw;
  }

  #top .bande-logos__logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 60px;
    object-fit: contain;
  }

  #top .bande-logos__groupe[aria-hidden="true"] {
    display: none !important;
  }
}




/* Mobile : défilement automatique */

/* Mobile : bandeau logos bord à bord */
@media (max-width: 767px) {

  #top .bande-logos {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }

  #top .bande-logos__piste {
    display: flex;
    width: max-content;
    gap: 0;
  }

  #top .bande-logos__groupe {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 24px;
    padding-left: 0;
    padding-right: 24px;
  }

  #top .bande-logos__logo {
    flex: 0 0 160px;
    width: 160px;
  }

  #top .bande-logos__logo img {
    width: 100%;
    height: 70px;
    object-fit: contain;
  }

  #top .bande-logos.is-ready .bande-logos__piste {
    animation: defilement-logos var(--duree-defilement) linear infinite;
  }
}


@keyframes defilement-logos {

  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}


/* Pause au survol */

.bande-logos:hover .bande-logos__piste {
  animation-play-state: paused;
}


/* Accessibilité : désactiver le mouvement si demandé */

@media (prefers-reduced-motion: reduce) {

  #top .bande-logos.is-ready .bande-logos__piste {
    animation: none;
  }
}


/* ========================================
   FORMULAIRE MÉDIA
   ======================================== */

#top .media-form-section .media-form-content {
  padding-top: 24px;
}

#top .media-form-section form {
  margin-top: 36px;
}


/* Champs texte */

#top .media-form-section input[type="text"],
#top .media-form-section input[type="email"],
#top .media-form-section input[type="tel"],
#top .media-form-section input[type="url"],
#top .media-form-section textarea {
  background: transparent;
  color: inherit;
  border: 0;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 0;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}


/* Zone de texte */

#top .media-form-section textarea {
  min-height: 110px;
  resize: vertical;
}


/* Labels */

#top .media-form-section label {
  font: inherit;
  font-style: italic;
  color: inherit;
}


/* Placeholders */

#top .media-form-section input::placeholder,
#top .media-form-section textarea::placeholder {
  color: inherit;
  opacity: 0.8;
}


/* Bouton d'envoi */

#top .media-form-section input[type="submit"],
#top .media-form-section button[type="submit"] {
  display: block;
  margin: 24px 0 0 auto;
  background: transparent;
  color: inherit;
  border: 2px solid currentColor;
  border-radius: 40px;
  padding: 12px 28px;
  font: inherit;
  cursor: pointer;
}

#top .media-form-section input[type="submit"]:hover {
  background: rgba(255, 255, 255, 0.12);
}


/* Focus */

#top .media-form-section :is(input, textarea, button):focus-visible {
  outline: 0px solid currentColor;
  outline-offset: 5px;
}


/* Grille des champs */

#top .media-form-section .media-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
}

#top .media-form-section .media-fields p {
  margin: 0;
}

#top .media-form-section .media-full {
  grid-column: 1 / -1;
}


/* Texte d'aide */

#top .media-form-section .media-help, #top .media-form-section label span{
  font-size: 15px;
  font-style: normal;
  opacity: 0.85;
	color: white !important;
}


/* Fichier */

#top .media-form-section input[type="file"] {
  max-width: 100%;
  font: inherit;
  color: inherit;
  font-size: 16px;
}


/* Erreur Contact Form 7 */

#top .media-form-section .wpcf7-not-valid-tip {
  color: #ffbdbd;
}


/* ========================================
   FORMULAIRE — MOBILE
   ======================================== */

@media (max-width: 767px) {

  #top .media-form-section .media-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  #top .media-form-section .media-form-content {
    padding-top: 8px;
  }

  #top .media-form-section input[type="submit"] {
    width: 100%;
  }
}


/* ========================================
   FORMULAIRE MLF
   ======================================== */

/* Honeypot anti-spam */

#top .mlf-media-form .media-trap {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* Texte d'aide */

#top .mlf-media-form .media-help {
  display: block;
  margin: 8px 0 20px;
}


/* Messages */

#top .mlf-media-form .media-form-notice {
  padding: 18px;
  border: 1px solid currentColor;
  border-radius: 10px;
  margin-bottom: 24px;
}

#top .mlf-media-form .is-error {
  color: #ffbdbd;
}


/* Bouton Envoyer */

#top .mlf-media-form button[type="submit"] {
  display: flex;
  align-items: center;
  gap: 40px;
}

#top .mlf-media-form button[type="submit"] span {
  font-size: 32px;
  line-height: 1;
}

#top .mlf-media-form button[type="submit"]:hover {
  background: rgba(255, 255, 255, 0.12);
}


/* Bouton mobile */

@media (max-width: 767px) {

  #top .mlf-media-form button[type="submit"] {
    width: 100%;
    justify-content: space-between;
  }
}


/* ========================================
   BOUTONS DE SÉLECTION DES PDF
   ======================================== */

#top .mlf-media-form .media-fields > p {
  min-width: 0;
}

#top .mlf-media-form input[type="file"] {
  width: 100%;
  min-width: 0;
}

#top .mlf-media-form input[type="file"]::file-selector-button {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 12px;
  margin: 8px 10px 8px 0;
  font: inherit;
  cursor: pointer;
}

#top .mlf-media-form input[type="file"]::file-selector-button:hover {
  background: rgba(255, 255, 255, 0.12);
}