/* =========================================================================
 * Thème Fabre - Pages CMS (cms/page.tpl) — mesures du site d'origine à 1440px
 * Pages de présentation (La Ferme, élevages, Les Amis, Boutique) : cadre crème sur fond bois,
 * comme les règles .cms-id-* du site d'origine. Pages légales : texte simple sur fond blanc.
 * ========================================================================= */

/* Onglets de section (hook displayLinovMenuTabs, module linovmegamenu) */
.linov-menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.linov-menu-tabs__link {
  display: inline-block;
  margin: 0 15px 30px;
  padding: 5px 25px;
  font-size: 14px;
  line-height: 28px;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--fabre-green-light);
  border: 1px solid transparent;
  transition: background-color 0.2s;
}

.linov-menu-tabs__link:hover,
.linov-menu-tabs__link:focus-visible {
  color: #fff;
  background: var(--fabre-green);
}

/* Titre et contenu */
.fabre-cms__header {
  margin: 0 0 25px;
}

.fabre-cms__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 30.8px;
  color: var(--fabre-dark);
}

.fabre-cms__content {
  margin: 0 0 25px;
  padding: 20px 0;
  text-align: justify;
  font-size: 14px;
  line-height: 17.5px;
  color: var(--fabre-text);
}

/* Pages de présentation : fond bois + cadre crème */
.cms-id-6 #wrapper,
.cms-id-7 #wrapper,
.cms-id-8 #wrapper,
.cms-id-9 #wrapper,
.cms-id-10 #wrapper,
.cms-id-12 #wrapper {
  background-image: url('../img/texture-background-full.jpg');
  background-size: contain;
}

.cms-id-6 .fabre-cms,
.cms-id-7 .fabre-cms,
.cms-id-8 .fabre-cms,
.cms-id-9 .fabre-cms,
.cms-id-10 .fabre-cms,
.cms-id-12 .fabre-cms {
  margin-bottom: 60px;
  padding: 2% 3%;
  background-color: var(--fabre-cream);
  border-radius: 25px;
  box-shadow: 2px 2px 8px 2px rgba(52, 52, 52, 0.35);
}

/* Les Amis : listes de liens plus aérées (règle du site d'origine) */
.cms-id-7 .fabre-cms__content ul {
  line-height: 25px;
}

/* Boutons de section : 30px avant le cadre */
.fabre-cms__tabs {
  margin-bottom: 30px;
}

/* ----- Contenu rédigé pour le thème d'origine (Bootstrap 4 alpha + classes leo_koreni) ----- */
/* Gouttières de 30px */
.fabre-cms__content .row {
  --bs-gutter-x: 30px;
}

/* Colonnes posées hors d'une .row (ex. image col-sm-3 entourée de texte) : flottantes, comme en BS4 alpha */
.fabre-cms__content :not(.row) > [class*="col-"] {
  float: left;
  height: auto;
  padding: 0 15px;
}

.fabre-cms__content::after {
  content: "";
  display: table;
  clear: both;
}

.title_ferme {
  font-size: 18px;
  color: var(--fabre-green-light);
}

.title_ferme img {
  display: none;
}

.circle_ferme {
  padding: 0 7px;
  color: #fff;
  background: var(--fabre-green-light);
  border-radius: 50%;
}

.flexrow {
  display: flex;
  align-items: center;
  padding-bottom: 15px;
}

@media (max-width: 769px) {
  .title_ferme {
    line-height: 2em;
    text-align: left;
  }
}

@media (max-width: 425px) {
  .flexrow {
    display: block;
  }

  .cms-id-6 .fabre-cms__content,
  .cms-id-7 .fabre-cms__content,
  .cms-id-8 .fabre-cms__content,
  .cms-id-9 .fabre-cms__content,
  .cms-id-10 .fabre-cms__content {
    margin-bottom: 0;
  }

  .linov-menu-tabs {
    display: block;
  }
}
