.invest-block {
  flex: 1;
  padding: 15px 0;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
    }
    .invest-farmland {
      background-color: #ffeed8;
      color: #2c4b39;
    }
    .invest-farmland:hover {
      background-color: #ffeed8;
    }
    .invest-timberland {
      background-color: #2c4b39;
      color: white;
    }
    .invest-timberland:hover {
      background-color: #2c4b39;
	  color: white;
    }


/* Sous-menu Farmland */
body, h1, h2, h3, h4 { font-family: "Montserrat", Arial, sans-serif; }

.submenu-farmland { 
  margin-bottom: 4px !important; 
}
.submenu-farmland a{
  padding: .2rem 1rem;
  font-weight: 600;
  font-size: .87rem;
  color: #2c4b39;
  transition: background-color .2s ease, color .2s ease;
}
.submenu-farmland a:hover{
  color: #2c4b39;
}
.submenu-farmland a.active{
  text-decoration: none; 
  /*color: #1e432e !important;*/
}
.submenu-farmland a.active:hover{
	 text-decoration: none; 
	 color: #2c4b39;	 
}

.submenu-ok{
    padding: .2rem 1rem;
	font-weight: 600;
	font-size: .87rem;
	color: #2c4b39;
}

/* Titre au-dessus du sous-menu (si utilisé) */
.submenu-title{
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #2c4b39; 
}

.submenu-title-fff{
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #fff; 
}


/* Test de Gérard pour les liens) */
.blocs-links{
    list-style-type: none;
    padding-left: 15px;   /* espace à gauche */
    margin: 0;
}
.blocs-links a{
    color: #4caf50;               /* Vert par défaut */
    text-decoration: none;        /* Pas de souligné */
    font-weight: 500;
    display: inline-block;
    margin: 6px 0;                /* espace entre les liens */
}

.blocs-links a:hover{
    color: #6eb7d1;               /* Couleur au survol */
    text-decoration: none;
}
/* Conteneur avec colonnes de même hauteur */
.blocs-2{ 
    display: flex;
    align-items: stretch;         /* étire les colonnes à la même hauteur */
    background: #ffeed8;
    gap: 20px;
}
  .blocs-2 .image-col {
    flex: 1;
    text-align: center;
  }

  .blocs-2 .image-col img {
    width: 100%;
    height: 100%;                 /* prend toute la hauteur */
    object-fit: cover;            /* recadre l’image sans déformation */
  }

  @media (max-width: 768px) {
    .blocs-2 {
      flex-direction: column;   /* empile les colonnes */
    }

    .blocs-2 .image-col img {
      height: auto;             /* sur mobile on garde la taille normale */
    }
  }

/* Sections Farmland Foreign Investor (image + texte) */
.farmland-foreinInvestors {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  margin-top: 0 !important;
}
.farmland-foreinInvestors-image {
  flex: 1;
  background-image: url('https://fian.top/wp-content/uploads/2025/08/peppers.jpg');
  background-size: cover;
  background-position: center;
  min-height: 400px;
}
.farmland-foreinInvestors-text {
  flex: 1;
  background-color: #dff2b1;
  padding: 2rem;
  font-size: 1rem;
  color: #1e432e;
}

/* Sections Farmland (image + texte) */
.farmland-section{
  background-attachment: fixed;
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.farmland-section1{
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0 !important;
  }
  
/* 1) Enlève tout "air" interne en bas du bloc */
.farmland-section1 .farmland-text{
  padding-bottom: 0 !important;
}
.farmland-section1 .farmland-text > :last-child{
  margin-bottom: 0 !important;  /* si WP a inséré un <p> */
}

.farmland-section1 .farmland-text-w{
  padding-bottom: 0 !important;
}
.farmland-section1 .farmland-text-w > :last-child{
  margin-bottom: 0 !important;  /* si WP a inséré un <p> */
}


/* 2) TRUC FIABLE : compense le block-gap du wrapper parent
      (réduit la hauteur du wrapper via une marge négative) */
.farmland-section1{
  margin-bottom: calc(var(--wp--style--block-gap, 24px) * -1) !important;
}


/* 1) Enlève tout "air" interne en bas du bloc   *******************     Foreign Investor *****************/
.management-section .management-text  {
  padding-bottom: 0 !important;
}

.fmanagement-section .management-text > :last-child{
  margin-bottom: 0 !important;  /* si WP a inséré un <p> */
}

.fmanagement-section{
  margin-bottom: calc(var(--wp--style--block-gap, 24px) * -1) !important;
}



.farmland-text{
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: #ffeed8;
  padding: 1rem 2rem 1rem 2rem;  /* ← gauche plus grande */ 
}

.farmland-text-w{
  max-width: 950px;
  font-family: 'Montserrat', sans-serif;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: #2c4b39;
  background-color: #fff;
  padding: 1rem 2rem 1rem 2rem;  /* ← gauche plus grande */ 
}


.fian-tille {
  max-width: 950px;
  margin: 0 auto;           /* centre le bloc */
  margin-bottom: 24px;      /* espace sous le bloc */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* centre les éléments enfants (axe horizontal) */
  /* align-items: center;    /* décommente si tu veux centrage vertical aussi */
  text-align: center;        /* centre le texte à l’intérieur */
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #2c4b39;
}

/**** Pages Sustainability debut ****/
/**** Pages Sustainability ****/

/* Conteneur colonnes */
.top-sustainability.wp-block-columns{
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0 !important;                 /* supprime l’espace entre colonnes */
  --wp--style--block-gap: 0;         /* WP >= 6.x */
}

/* Colonnes = 50/50, pas de marge/padding externe qui crée un “gutter” */
.top-sustainability .wp-block-column{
  flex: 0 0 50%;
  max-width: 50%;
  margin: 0 !important;
  padding: 0 !important;             /* important pour coller les deux colonnes */
  box-sizing: border-box;
  min-width: 0;                      /* évite les débordements */
}

/* Colonne image (gauche) : l'image remplit la colonne */
.top-sustainability .wp-block-column:first-child img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;                  /* recadrage propre si nécessaire */
}

/* Colonne texte (droite) : le panneau occupe toute la largeur, sans “max-width” interne */
.sustainability-text{
  width: 100%;
  max-width: none;                    /* annule ton 950px */
  margin: 0;                          /* annule le centrage interne */
  background-color: #ffeed8;
  padding: 1.25rem;                   /* padding INTERNE conservé */
  color: #1e432e;
  height: 100%;                       /* même hauteur que la colonne gauche */
  display: flex;
  align-items: center;                /* centre verticalement le contenu (optionnel) */
}


/* Nettoyer la casse agressive du texte/titre si le thème force des ruptures */
.sustainability-text h2,
.sustainability-text p{
  word-break: normal;
  overflow-wrap: break-word;  /* casse seulement entre mots si besoin */
  hyphens: auto;
}

.sustainability-text h2{
  margin: 0 0 .75rem;
  line-height: 1.2;
}


.sustainability-bloc2{
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 1rem;
  color: #1e432e;
}

.management-bloc2{
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 1rem;
  color: #1e432e;
}




/* Empilage mobile si besoin */
@media (max-width: 782px){
  .top-sustainability .wp-block-column{
    flex: 1 1 100%;
    max-width: 100%;
  }
}
/**** Fin ****/

/**** Pages Sustainability fin ****/




/* Hero / Banner – collé au menu principal */
.homepage-banner,
.farmland-hero{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Grille de ressources / colonnes (Gutenberg) */
.farmland-resources{
  display: flex;
  gap: 0 !important;
  align-items: stretch;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.farmland-resources > .wp-block-column{
  margin: 0 !important;
  padding: 0 !important;
}
.farmland-resources img{
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}


  /* Page Farmland Resources */
  .pdf-docs-container {
	max-width: 950px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: #ffeed8;
    padding: 1rem;
  }
  
  
  /* Colonne gauche (texte PDF) */
  
  /* Centre le h3 uniquement dans la colonne texte de ce bloc */
.pdf-docs-container .text-col > h3{
  text-align: left !important;
  width: 100%;          /* utile si .text-col est en flex */
  margin: 0 0 1rem;     /* ajuste l’espace sous le titre */
  color: #2f513d;
  
}

  
  
.pdf-docs-container .text-col {
  flex: 1;
  padding-left: 20px;         /* petite marge à gauche */
  box-sizing: border-box;     /* pour que le padding ne casse pas le 50% */
  color: #2f513d;
}

  .pdf-docs-container .image-col {
    flex: 1;
    text-align: center;
  }

  .pdf-docs-container .image-col img {
    width: 100%;
    height: 100%;                 /* prend toute la hauteur */
    object-fit: cover;            /* recadre l’image sans déformation */
  }

  @media (max-width: 768px) {
    .pdf-docs-container {
      flex-direction: column;   /* empile les colonnes */
    }

    .pdf-docs-container .image-col img {
      height: auto;             /* sur mobile on garde la taille normale */
    }
  }

/* Style des liens PDF */
.pdf-docs-container .text-col ul li a {
  color: #2f513d;              /* couleur du texte */
  text-decoration: underline;  /* souligné par défaut */
  transition: all 0.2s ease;   /* petite animation */
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

.pdf-docs-container .text-col ul li a:hover {
  color: #2f513d;              /* même couleur */
  text-decoration: none;       /* retire le souligné au survol */
}
/* fin Page Farmland Resources */

/* FIX critique : la carte ne doit pas dépasser sa colonne */
.wp-article-block{
  width:100% !important;
  background:#f7f7f3;
  padding:0;
  overflow:hidden;
  box-sizing: border-box;
  margin: 0;                 /* pas de marge parasite */
}

.wp-article-thumb{
  display:block;
  width:100%;
  height:auto;
  margin:0;               /* pas d’espace autour de l’image */
  height:160px;      /* choisis ta hauteur */
  object-fit:cover;  /* recadre sans déformation */
  border-radius:0;
}

/* On remet du padding uniquement au texte */
.wp-article-title,
.wp-article-meta,
.wp-article-content,
.wp-article-actions{
  padding: .6rem 1.2rem;
  color: #2c4b39; 
}

.wp-article-title { 
	margin:.2rem 0; 
	color: #2c4b39;               /* Vert par défaut */
	font-family: 'Montserrat', sans-serif;
    font-weight: 600;

    /*text-decoration: none;         Pas de souligné */
	font-size: .97rem;
    display: inline-block;
	}
	

.wp-article-content p{
	margin-bottom:.8rem; 
	font-family: 'Montserrat', sans-serif;
    font-weight: 400;

	}

.card,
.card-img-top {
	
  border-radius: 0 !important;
}

/* Bouton */
.btn-readmore,
.btn-contact 

{
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  display:inline-block; padding:.55rem 1rem; border-radius:999px;
  background:#2f513d; color:#fff; text-decoration:none; font-weight:600;
  transition:transform .15s ease;
  /*   transition:transform .15s ease, opacity .15s ease; */
}
/*.btn-readmore:hover { transform:translateY(-1px); opacity:.92; text-decoration:none; }*/
.btn-readmore:hover,
.btn-contact:hover { text-decoration:none; }
/* .btn-contact:hover {opacity:.62; text-decoration:none; } */

/* OPTION A — Ascenseur (scroll) */

.wp-article-content.is-scroll { 
  overflow: auto;
  padding-right: .4rem; 
  scrollbar-gutter: stable;            /* évite les sauts de mise en page */
}
/* Look des scrollbars (Chrome/Edge/Safari) */
.wp-article-content.is-scroll::-webkit-scrollbar { width: 10px; }
.wp-article-content.is-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,.25); border-radius: 8px; }
.wp-article-content.is-scroll::-webkit-scrollbar-track { background: transparent; }

/* OPTION B — Clip + dégradé + bouton Lire plus */
.wp-article-content.is-clamp {
  max-height: var(--clip-h, 320px);
  overflow: hidden;
  position: relative;
  --clip-bg: #f7f7f3;                 /* couleur du fond du bloc (ajuste si besoin) */
}
.wp-article-content.is-clamp::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 64px;                        /* zone du dégradé */
  background: linear-gradient(to bottom, rgba(247,247,243,0), var(--clip-bg));
  pointer-events: none;                /* clics passent à travers */
}

.scroll-up-link {
  font-size: 14px;
  background: none;
  border: none;
  color: #2c4b39;
  text-decoration: underline;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;

  cursor: pointer;
}

.scroll-up-link:hover {
  text-decoration: none;
}


.linkedin-link {
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 32px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.linkedin-text {
  color: #0077b5; /* Bleu LinkedIn */
}

.linkedin-box {
  background-color: #0077b5;
  color: white;
  padding: 2px 6px;
  margin-left: 2px;
  border-radius: 2px;
}


.timberland-section {
  background: url('<?php echo esc_url($background_url); ?>') center center / cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;

}

.timberland-text {
  flex: 1;
  background-color: #ffeed8;
  padding: 2rem;
  font-size: 1rem;
  color: #1e432e;	
}

.timberland-image {
  flex: 1;
  background-image: url('https://fian.top/wp-content/uploads/2025/07/thumbnail_amir-reza-mansouri-_8TydwLwaI4-unsplash-1-1-scaled.jpg');
  background-size: cover;
  background-position: center;
  min-height: 400px;	
}

/* Section principale */
.organic-section1 {
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 1rem;
}

.organic-section2 {
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: #ffeed8;
  padding: 1rem;
}


/* Bloc texte */
.organic-text {
  flex: 1 1 600px;
  padding: 1rem;
  max-width: 700px;
}

.organic-description {
  color: #1e432e;
  margin-bottom: 0;
}

/* Bloc image */
.organic-image {
  flex: 1 1 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.organic-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/*    Management */

.management-section {
  display: flex;
  align-items: flex-start;   /* aligne le haut du texte et de l'image */
  gap: 20px;                 /* espace entre image et texte */
  max-width: 950px;   /* largeur max du bloc */
  margin: 0 auto;     /* centre le bloc horizontalement */
  padding: 1rem;      /* optionnel : espace intérieur */
  background-color: #ffeed8;
  color: #1e432e;
}

.management-section2{
  background-color: #fff;
  gap: 20px;
}	

.management-image {
  flex: 1;     /* prend une part flexible */
  max-width: 400px;  /* limite la taille max */

}

.management-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;        /* optionnel : coins arrondis */
}

.management-text {
  flex: 1;                   /* prend le reste de l’espace */
}


/* --- Responsive --- */
@media (max-width: 768px) {
  .management-section {
    flex-direction: column;   /* image au-dessus du texte */
    align-items: center;
    gap: 16px;
  }
  .management-image {
    flex: 0 0 auto;
    width: 100%;              /* image plein largeur du bloc */
    max-width: 600px;         /* limite la largeur visuelle sur mobile/tablette */
  }
  .management-text {
    width: 100%;
  }
}

/* Bouton toujours visible et au-dessus de tout */
.micro-toggle{
  position: fixed !important;  /* clé pour empêcher le scroll */
  top: 120px;
  left: 16px;
  z-index: 5000;
  width: 35px;
  height: 35px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid #e0e0e0;
  border-radius:50%;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
  cursor:pointer;
}
.micro-toggle svg{ display:block; }

.submenu-item-link {
  color: #2f513d !important; /* vert FIAN */
  padding: 10px 14px;
  border-radius: 6px;
}
.submenu-item-link:hover,
.submenu-item-link:focus {
  text-decoration: underline;
  color: #1e432e !important;
}


/* ************ Menu Hamburger *********** */
#farmlandMenu .offcanvas-header {
  background-color: #fff;
  justify-content: center;
  border-bottom: 2px solid #2f513d;
  color: #2f513d;   
  padding: 10px 14px;
}
/* Réduire la largeur du menu */
#farmlandMenu.offcanvas-start {
  top: 120px;                 /* même hauteur que ton bouton */
  width: 220px;               /* largeur réduite (défaut = 400px) */
  height: auto;               /* pas toute la hauteur */
  max-height: calc(7* 44px ); /* 6 lignes + header (ajuste si besoin) */
  border-radius: 0 12px 12px 0; /* petit arrondi côté droit */
  overflow-y: hidden;         /* pas de scroll en plus */
}
/* Chaque ligne (list-group-item) plus compacte */
#farmlandMenu .list-group-item {
  padding: 3px 3px;   /* réduit le padding vertical */
  font-size: 12px;
}
/* Enlever les grands espacements */
#farmlandMenu .offcanvas-header {
  padding: 5px 14px;
}
/* Décale l’offcanvas vers le bas */
#farmlandMenu.offcanvas-start {
  top: 180px; /* identique à la valeur du bouton */
  height: calc(100% - 120px); /* réduit la hauteur pour ne pas dépasser */
}
.offcanvas .list-group-item {
  border-color: #eee;
}
.offcanvas .list-group-item.active .submenu-ok {
  color: #1e432e;
  font-weight: 600;
}
@media (max-width: 480px) {
  #farmlandMenu { width: 86vw; }
}



/* Conteneur général de la page article */
.single-article .container {
  max-width: 980px;        /* largeur de lecture confortable */
  padding-left: 16px;
  padding-right: 16px;
}

/* Titre */
.single-article .entry-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;        /* gras 700 */
  color: #1e432e;
  margin: 1rem 0 0.75rem;
  line-height: 1.2;
}

/* Image mise en avant */
.single-article .entry-figure {
  margin: 1rem 0 1.5rem;
  text-align: center;
}
.single-article .featured-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Corps du texte */

body.single-post {
  font-family: 'Montserrat', Arial, sans-serif;
}
.single-article .entry-content {
  color: #1e432e;
  font-size: 1.08rem;
  line-height: 1.72;
}
.single-article .entry-content p {
  margin: 0 0 1.05rem;
}
.single-article .entry-content h2,
.single-article .entry-content h3,
.single-article .entry-content h4 {
  color: #1e432e;
  margin: 1.5rem 0 0.75rem;
}

/* Liens dans le contenu */
.single-article .entry-content a {
  color: #2f513d;
  text-decoration: underline;
}
.single-article .entry-content a:hover {
  text-decoration: none;
}

/* Listes plus lisibles */
.single-article .entry-content ul,
.single-article .entry-content ol {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

/* Navigation précédent/suivant */
.single-article .post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e9e9e9;
}
.single-article .post-nav a {
  color: #2f513d;
  text-decoration: none;
  font-weight: 600;
}
.single-article .post-nav a:hover {
  text-decoration: underline;
}

/* (Optionnel) masquer métadonnées si ton thème les injecte */
.single-post .entry-meta,
.single-post .posted-on,
.single-post .byline,
.single-post .cat-links,
.single-post .tags-links {
  display: none !important;
}

/* (Optionnel) largeur max des contenus embarqués */
.single-article .entry-content img,
.single-article .entry-content figure,
.single-article .entry-content iframe {
  max-width: 100%;
  height: auto;
}

/* (Optionnel) gouttières sur écrans étroits */
@media (max-width: 576px) {
  .single-article .container { padding-left: 12px; padding-right: 12px; }
}


/* ===== Challenges block ===== */
.challenges-card{
  background: #ffeed8;                 /* beige FIAN */

  padding: 28px;
  max-width:950px;
  margin: 0 auto 28px;
  position: relative;
  color: #1e432e;
}

.ch-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;  /* texte / visuel */
  gap: 28px;
  align-items: center;
}

.ch-title{
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #1e432e;
}

.ch-copy p{ margin: 0 0 12px; }
.ch-list{ margin: 0 0 12px 1.2rem; }
.ch-list li{ margin: 6px 0; }

.ch-paper-link a{
  color: #2f513d;
  font-weight: 700;
  text-decoration: underline;
}
.ch-paper-link a:hover{ text-decoration: none; }

/* Encadré visuel à droite */
.ch-figure{
  background: #f4f4f4;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  padding: 12px;
  display: grid;
  place-items: center;
  min-height: 220px;
}
.ch-figure img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Lien DOWNLOAD en bas-droite du panneau */
.ch-download{
  position: absolute;
  right: 24px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e432e;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
}
.ch-download:hover{ text-decoration: underline; }
.ch-download .ch-ico{ display: inline-block; }

/* Responsive */
@media (max-width: 900px){
  .ch-grid{ grid-template-columns: 1fr; }
  .ch-figure{ min-height: 180px; }
  .ch-download{
    position: static;
    margin-top: 10px;
    align-self: end;
  }
}

/* ===== Full-bleed wrapper : s'étend de bord à bord du viewport ===== */
.three-articles-outer{
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;   /* annule tout padding/marge parent */
  margin-right: -50vw;
  width: 100vw;         /* prend toute la largeur du viewport */
  max-width: 100vw;     /* évite tout dépassement */
}

/* Conteneur des 3 articles */
.three-articles-grid,
.my-three-articles.wp-block-columns{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
  width: min(950px, 100%);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* Colonnes / items : pas de padding/marges qui ajoutent de la largeur */
.three-articles-grid > * ,
.my-three-articles.wp-block-columns > .wp-block-column{
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
  box-sizing: border-box;
}

.three-articles-grid > .three-articles-item{
  margin: 0;
  padding: 0;
  min-width: 0;
}

.three-articles-grid img{
  display: block;
  width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 1024px){
  .three-articles-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .three-articles-grid{ grid-template-columns: 1fr; }
}


/* Bloc ligne FIAN (container blanc + ligne verte centrée) */
.fian-line--block{
  width: var(--line-width);       /* ex. 950px ou 90% */
  max-width: 100%;
  height: var(--line-height);     /* ex. 1.6em */
  margin: var(--line-mt) auto var(--line-mb) auto;  /* centre le bloc */
  background: var(--line-bg);     /* ex. #fff */
  display: flex;
  align-items: center;
}

.fian-line__box{
  width: 100%;
  padding-left: var(--line-pad);   /* marge interne gauche de la ligne */
  padding-right: var(--line-pad);  /* marge interne droite de la ligne */
  box-sizing: border-box;
}

.fian-line__rule{
  display: block;
  width: 100%;
  height: var(--line-thick);       /* ex. 1px */
  background-color: var(--line-color); /* ex. #1e432e */
  line-height: 0;
}

/* Optionnel : resserrer le padding sur mobile */
@media (max-width: 600px){
  .fian-line__box{
    padding-left: clamp(16px, 6vw, var(--line-pad));
    padding-right: clamp(16px, 6vw, var(--line-pad));
  }
}




/* Mettre les liens et le texte du menu popup en majuscules */
#farmlandMenu .submenu-item-link,
#farmlandMenu .submenu-ok {
  text-transform: uppercase;
}


/* CONTENEUR des 3 blocs sustainability */
.fian-management {
  max-width: 950px;
  margin: 0 auto;
  background:#fff;
  font-family:'Montserrat', sans-serif;
  color:#2c4b39;
  /* annule les marges verticales héritées */
  padding: 0;

}






/* CONTENEUR des 3 blocs sustainability */
.fian-sustainability {
  max-width: 950px;
  margin: 0 auto;
  background:#fff;
  font-family:'Montserrat', sans-serif;
  color:#2c4b39;
  /* annule les marges verticales héritées */
  padding: 0;

}



/* CONTENEUR des 3 blocs */
.fian-features{
  max-width: 950px;
  margin: 0 auto;
  background:#fff;
  font-family:'Montserrat', sans-serif;
  color:#2c4b39;
  /* annule les marges verticales héritées */
  padding: 0;
}

/* Grille : colonnes collées + largeur égale, même si le contenu diffère */
.fian-features__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* évite le sizing par contenu */
  gap:0;                 /* pas de gouttière */
  column-gap:0;
}

/* Colonne */
.fian-feature{
  margin:0;
  padding:0 16px;        /* micro souffle interne (facultatif) */
  display:flex;
  flex-direction:column;
  align-items:center;
  box-sizing:border-box;
}

/* Icône */
.fian-feature__icon{
  width:80px;           /* fixe et homogène */
  max-width:80%;
  aspect-ratio:1/1;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto;
}
.fian-feature__icon img{
  display:block;
  width:100%; height:auto;
}

/* Liste : même indentation et pas de marges parasites */
.fian-feature__list{
  margin:12px 0 0 0;     /* supprime la grosse marge par défaut */
  padding-left:1.2rem;   /* indentation identique pour toutes */
  list-style: disc outside;
  font-size:1.08rem; line-height:1.55;
}
.fian-feature__list li{ margin:0.2rem 0; }

/* Évite que des styles génériques WP ajoutent des gaps dans cette section */
.fian-features .wp-block-columns,
.fian-features .is-layout-flex{
  gap:0 !important;
  column-gap:0 !important;
}

/* Responsive */
@media (max-width:1024px){
  .fian-features__grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width:640px){
  .fian-features__grid{ grid-template-columns: 1fr; }
  .fian-feature{ padding:6px 8px; }
}


/* 1) Couper les paddings verticales Bootstrap ici */
.page-id-16858 .container.py-5 { padding-top: 0 !important; padding-bottom: 0 !important; }

/* 2) Neutraliser les marges verticales des wrappers de section */
.page-id-16858 .farmland-section,
.page-id-16858 .farmland-section1,
.page-id-16858 .management-section,
.page-id-16858 .fian-features,
.page-id-16858 .challenges-card { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0; padding-bottom: 0; }

/* 3) Coller les blocs de texte (titres + paragraphes) */
.page-id-16858 .farmland-text-w h2,
.page-id-16858 .farmland-text-w h3,
.page-id-16858 .farmland-text-w p,
.page-id-16858 .management-text p,
.page-id-16858 .fian-tille h2 { margin-top: 0 !important; margin-bottom: 0 !important; }

/* 4) Supprimer les marges autour des traits séparateurs */
.page-id-16858 .fian-line--block { --line-mt: 0 !important; --line-mb: 0 !important; }

/* 5) (Optionnel) Neutraliser les <br> “décoratifs” dans ces zones */
.page-id-16858 .management-text br,
.page-id-16858 .farmland-text-w br { display: none; }


/* Indentation totale de la liste: 15px */
.page-id-16858 .management-text ul.management-list {
  padding-left: 40px;  /* décale puce + texte */
  margin: 0;           /* évite les espaces verticaux */
  list-style: disc;    /* au cas où un thème la change */
}


/* ===== Foreign Investors : 3 blocs collés, largeurs stables ===== */
/* 1) Un conteneur unique à poser autour de tes 3 blocs */
.fi-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 colonnes égales */
  gap: 0;                 /* aucun espace entre colonnes */
  max-width: 950px;       /* ta contrainte */
  margin: 0 auto;         /* centré */
  background: #fff;
  font-family: 'Montserrat', sans-serif;
  color: #2c4b39;
  box-sizing: border-box;
}
.fi-three > * {
  box-sizing: border-box; /* padding inclus dans la largeur */
}

/* 2) Tuer les gaps/margins WP à l’intérieur du conteneur */
.fi-three,
.fi-three * {
  --wp--style--block-gap: 0 !important;
}
.fi-three p,
.fi-three ul,
.fi-three li,
.fi-three h3,
.fi-three h4 {
  margin: 0;              /* pas de marges verticales parasites */
  padding: 0;
}

/* 3) Si tu utilises des colonnes Gutenberg, neutraliser leurs gaps quand imbriquées ici */
.fi-three .wp-block-columns {
  gap: 0 !important;
  column-gap: 0 !important;
  margin: 0 !important;
}
.fi-three .wp-block-column {
  margin: 0 !important;
  padding: 0; /* optionnel: tu peux ajouter un padding homogène ci-dessous */
}

/* 4) Images et listes: éviter les sauts de largeur */
.fi-three img {
  display: block;
  width: 100%;
  height: auto;
}
.fi-three ul {
  list-style: none;       /* optionnel */
}

/* Espacement interne des 3 blocs */
.fi-card {
  padding: 0 2rem;  /* 24px à gauche/droite */
  /*text-align: center;  optionnel, si tu veux centrer les textes */
}
.fi-card ul {
  margin: 0;
  padding: 0;
  list-style: none;   /* garde le look minimal */
}
.fi-card li {
  margin: 0.3rem 0;   /* espace vertical entre les lignes */
}


/* 5) Responsive (<= 900px): passer en 1 ou 2 colonnes si tu veux */
@media (max-width: 900px) {
  .fi-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fi-three { grid-template-columns: 1fr; }
}



.challenges-block .ch-title {
  margin-top: 0 !important;   /* supprime le margin haut du h2 */
  padding-top: 1rem;          /* espace uniforme, tu ajustes la valeur */
}

/* Rétablir les listes dans les cartes de la section fi-three */
.fi-three .fi-card ul {
  list-style: disc outside;     /* puces visibles */
  padding-left: 1.2rem;         /* indentation standard */
  margin: 0 0 1rem;             /* petit espace sous la liste */
}
.fi-three .fi-card li {
  margin: .3rem 0;              /* espacement vertical entre items */
}


