/*
Theme Name: EEE Divi
Description: EEE Divi child theme
Author: ARB NA
Template: Divi
Version: 0.1.0
*/
/*
/**** MEMO :

vert erc logo REGION :

  vert foncé (grosses gouttes) : #37662b  ( #36672b )
  vert clair texte ERC : #73972c ( #74972c )
  vert marron sous-texte : #432719
----
rouge SRB : #c10230
a {color:#1674ba;} /* bleu fonce SRB */

/*******
----
vert erc logo temporaire
#057e3b


couleur texte initial : #353740!important

--------
Lato
font-family: 'Lato', sans-serif;
Regular 400
Black 900
Bold 700 italic

<link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,900;1,700&display=swap" rel="stylesheet">
*****/
/*************************************/
/*********** GENERAL *****************/
/*************************************/
body {
  color:#353740;
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  line-height:1.8em;
  font-size:100%;
  font-weight:400;
  overflow-x: hidden;
}

/* Liens : vert foncé et gras sur tout le site */
a {
  color:#1A4E28;
  font-weight:700;
  text-decoration:underline;
}

#srbOrientation {
  background-image: url('./static/images/rosace.png');
  background-size: contain;
}

.srbObjectifsFichesActions {
  background-image: url('./static/images/DoubleRosace.png');
  background-size: contain;
}

.srbList ul li{
  list-style-type: none;
}

.srbList ul {
  list-style-image: url('./static/images/puce_SRB.svg');

}

.brownhillSpan{
  font-family: 'Brownhill',Helvetica,Arial,Lucida,sans-serif !important;
  font-size: 82px;
}

.srbBkgOpacity{
  background: #cce0ce50 0% 0% no-repeat padding-box;
  border-radius: 0px 240px 0px 0px;
}

@media screen and (max-width: 900px) {
  .srbBkgOpacity {
    border-radius: 0px 0px 0px 0px;
  }
  .brownhillSpan{
    font-size: 40px;
  }
}

/* Footer */
/* Titre au-dessus des logos des financeurs (pied de page Divi, modèle 95) */
.logoTitre{
  font-family: 'Lato', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #29255b;
  margin: 0 0 .25rem .5rem;
  padding: 0;
}

.logoBloc{
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.arbIcone{
  content: url('https://srb.biodiversite-nouvelle-aquitaine.fr/wp-content/uploads/2021/12/logoVF_ARB_NA-couleur-01.png');
  width: 8rem;
  height: fit-content;
  margin: 0.5rem;
  border-right: 1px solid #707070;
}

.regionIcone{
  content: url('https://srb.biodiversite-nouvelle-aquitaine.fr/wp-content/uploads/2023/02/logo_na_horiz_QUADRI_2019.png');
  width: 6rem;
  height: fit-content;
  margin: 0.5rem;
}

.ofbIcone{
  content: url('https://srb.biodiversite-nouvelle-aquitaine.fr/wp-content/uploads/2023/03/bloc-marque-RF-OFB_horizontal.jpg');
  width: 10rem;
  height: fit-content;
  margin: 0.5rem;
}

.prefetNaIcone{
  content: url('https://www.eee-nouvelle-aquitaine.fr/wp-content/uploads/2026/09/PREFETE_region_Nouvelle_Aquitaine_Couleurs-scaled.jpg');
  width: 7rem;
  height: fit-content;
  margin: 0.5rem;
}

.lbIcone{
  content: url('https://srb.biodiversite-nouvelle-aquitaine.fr/wp-content/uploads/2023/02/Logo-RFIAE-long200px.png');
  width: 14rem;
  height: fit-content;
  margin: 0.5rem;
}

.eaugsoIcone{
  content: url('https://srb.biodiversite-nouvelle-aquitaine.fr/wp-content/uploads/2023/02/eau-grand-sud-ouest-marianne-bloc-marque-scaled.jpg');
  width: 8rem;
  height: fit-content;
  margin: 0.5rem;
}

/* ACTUALITES */

.actuAccueil {
  color: white;
  width: 30%;
  padding: 1rem;
  margin: 1rem;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 0 40px 0 40px;
  box-shadow: inset 0 0 0 1000px rgba(1, 40, 24, 0.6);
  position: relative;
}

@media screen and (max-width: 900px) {
  .actuAccueil {
    width: 100%;
  }
}

.blocActuAccueil{
  display: flex;
  flex-flow: row wrap;
  justify-content:flex-start;
  align-items: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.actuTitre{
  position:relative;
  font-size: 24px;
  font-weight: bold;
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  padding-bottom: 7rem;
  padding-top: 1rem;
}

.actuTitreLink, .actuTitreLink:hover{
  color: inherit;
  text-decoration: inherit;
}

.actuBottom{
  position: absolute;
  bottom: 1.5rem;
  display: flex;
  width: 93%;
  flex-wrap: wrap;
}

.actuDate{
  font-size: 15px;
  font-weight: lighter;
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  letter-spacing: 2px;
}

.actuPermalink{
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  color: white;
  background-color: #c9d600;
  border-radius: 20px;
  width: 2.5rem;
  height: 2.5rem;
  padding-top: 0.4rem;
  text-align: center;
  margin-left: auto;
  font-size: 40px;
  text-decoration: none;
}

.actuCateg{
  font-size: 10px;
  font-weight: bold;
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  color: white;
  text-transform: uppercase;
  background-color: #749719;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  margin-right: 1rem;
}

/* ***************************************** */

/* ******************PAGES ACTION*********** */

@media screen and (max-width: 900px) {
  .actionLib{
    font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
    font-size: 18px;
    letter-spacing: 0px;
    text-transform: uppercase;
  }

  .actionNb{
    font-family: 'Brownhill',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: 20px;
    border-radius: 40px;
    padding: 0.6rem;
    letter-spacing: 0px;
    color: #FFFFFF;
  }

  .actionbtn1{
    font-size: 10px;
    font-weight: bold;
    font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
    padding: 1rem;
    color:#53833f;
    background-color: #F0F6F0;
    border: 1px solid #53833f;
    border-radius: 40px;
    width: 10%;
  }

  .actionbtn2{
    font-size: 10px;
    font-weight: bold;
    font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
    padding: 1rem;
    color:#FFFFFF;
    background-color: #53833f;
    border: 1px solid #53833f;
    border-radius: 40px;
    width: 10%;
  }

  .actionText{
    margin-top: 2rem;
    width: 80%;
    font-size: 18px;
  }

  .actionBloc{
    flex-flow: column !important;
  }

  .actionPuce{
    display: inline-table !important;
}
}

.actionLib{
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  font-size: 20px;
  letter-spacing: 0px;
  text-transform: uppercase;
}

.actionNb{
  font-family: 'Brownhill',Helvetica,Arial,Lucida,sans-serif !important;
  font-size: 24px;
  border-radius: 40px;
  padding: 0.6rem;
  letter-spacing: 0px;
  color: #FFFFFF;
}

.actionbtn1{
  font-size: 13px;
  font-weight: bold;
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  padding: 1rem;
  color:#53833f;
  background-color: #F0F6F0;
  border: 1px solid #53833f;
  border-radius: 40px;
  width: 10%;
}

.actionbtn2{
  font-size: 13px;
  font-weight: bold;
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  padding: 1rem;
  color:#FFFFFF;
  background-color: #53833f;
  border: 1px solid #53833f;
  border-radius: 40px;
  width: 10%;
}

.actionPuce{
  /* width: 10%; */
  width: 15%;/* VG 20230302 */
}

.actionText{
  margin-top: 2rem;
  /* width: 80%; */
  width: 70%;/* VG 20230302 */
}

.actionBloc{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  flex-flow: row wrap;
}

/* ************************************************ */

/* **************ACTION PAGE ACCUEIL*************** */

.actionAcc{
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
}

.actionAccBloc{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.2rem;
}

.actionAccBorder{
  border-right: 1px solid black;
}

.actionAccImgBloc{
  width:100px;
  text-align: center;
  margin: auto;
}

.actionAccTitre{
  font-size: 15px;
  font-weight: bolder;
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  padding-bottom: 0px;
  display: block;
}

.actionPreserv{
  color:#54B800;
}

.actionPreservBkg{
  background-color:#54B800;
}

.actionPreservImg{
  filter: invert(44%) sepia(98%) saturate(891%) hue-rotate(58deg) brightness(103%) contrast(101%);
}

.actionTerr{
  color: #E8A303;
}

.actionTerrBkg{
  background-color: #E8A303;
}

.actionTerrImg{
  filter: invert(55%) sepia(23%) saturate(3294%) hue-rotate(16deg) brightness(108%) contrast(104%);
}

.actionCoPol{
  color: #691CC7;
}

.actionCoPolBkg{
  background-color: #691CC7;
}

.actionCoPolImg{
  filter: invert(14%) sepia(91%) saturate(3494%) hue-rotate(265deg) brightness(94%) contrast(103%);
}

.actionDevEco{
  color: #36DE8A;
}

.actionDevEcoBkg{
  background-color: #36DE8A;
}

.actionDevEcoImg{
  filter: invert(73%) sepia(77%) saturate(428%) hue-rotate(88deg) brightness(92%) contrast(88%);
}

.actionMobi{
  color: #3DD9FA;
}

.actionMobiBkg{
  background-color: #3DD9FA;
}

.actionMobiImg{
  filter: invert(74%) sepia(33%) saturate(1647%) hue-rotate(157deg) brightness(102%) contrast(96%);
}

.actionAccText{
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  font-weight: normal;
  color:#012A19;
  font-size: 17px;
  line-height: 1.2em;
  display: block;
}

.actionAccBlocText{
  width: 55%;
  display: flex;
  flex-direction: column;
  text-align: left;
}

/***************************************************/

/* ***************EEE Accueil 2 blocs ************ */

.blocs2img1{
  background-image: url("https://www.eee-nouvelle-aquitaine.fr/wp-content/uploads/2023/11/Raisin-dAmerique_ARBNA-scaled.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0px 240px 0px 0px;
  height: 350px;
  position: relative;
}

.blocs2img2{
  background-image: url("https://www.eee-nouvelle-aquitaine.fr/wp-content/uploads/2023/11/Lithobates_catesbeianus_Diana_Robinson_BY-NC-scaled.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0px 240px 0px 0px;
  height: 350px;
  position: relative;
}

.blocs2img3{
  background-image: url("https://www.eee-nouvelle-aquitaine.fr/wp-content/uploads/2023/11/Pelophylax_ridibundus_Joana_PERRODIN_BY-NC-SA-scaled.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0px 240px 0px 0px;
  height: 350px;
  position: relative;
}

.blocs2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centre les blocs */
  align-items: stretch; /* Assure une hauteur égale */
  gap: 50px;
  font-family: 'Lato';
}

.blocs2 > div {
  flex: 1 1 350px; /* Taille flexible avec une base */
  max-width: 400px;
  display: flex;
  flex-direction: column;
  background: #012A19; /* Fond uniforme */
  border-top-right-radius: 200px;
}

.blocs2img1, .blocs2img2 ,.blocs2img3 {
  height: 200px; /* Hauteur fixe pour les images */
  border-radius: 0px 240px 0px 0px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}

.blocs2title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.6); /* Fond semi-transparent */
  font-size: 63px;
  font-weight: bold;
  padding: 20px;
  color: #012a19;
  border-top-right-radius: 200px;
}

.blocs2btmBloc {
  flex-grow: 1; /* Remplit l’espace restant */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  color: white;
}

.blocs2btmBloc p {
  font-size: 19px;
  flex-grow: 1;
}

.blocs2btmBloc a {
  background-color: #c9d600;
  font-family: 'Brownhill';
  color: white;
  font-size: 35px;
  border-radius: 40px;
  font-weight: 500;
  padding: .3em 1em;
  line-height: 1.7em;
  margin-right: 20px;
}

.blocs2btn {
  text-align: right;
}

@media (max-width: 768px) {
  .blocs2img1, .blocs2img2, .blocs2img3 {
      border-radius: 0px;
  }

  .blocs2title {
      border-radius: 0px;
      text-align: center;
      padding: 2rem;
  }

  .blocs2btn {
      text-align: center;
  }

  .blocs2btmBloc a {
      margin-right: 0px;
  }
}



/***************************************************/

/* ***************SRB CQ? Indicateurs************* */
.indicModule{
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  border-top: 1px solid white;
}

.indicModule2{
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  border-top: 1px solid #137C42;
}

.indicBloc{
  display: flex;
  flex-direction: column;
  text-align:center;
  width: 50%;
  padding: 2rem;
  background-image: url('https://srb.biodiversite-nouvelle-aquitaine.fr/wp-content/uploads/2023/03/feuille_indicateurs.svg');
  background-repeat: no-repeat;
  background-position:top;
  background-size: 7rem;
}

.indicBloc2{
  display: flex;
  flex-direction: column;
  text-align:center;
  width: 50%;
  padding: 2rem;
  background-image: url('https://srb.biodiversite-nouvelle-aquitaine.fr/wp-content/uploads/2023/03/feuille_indicateurs2.svg');
  background-repeat: no-repeat;
  background-position:top;
  background-size: 7rem;
}

.indicTitre{
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  font-weight: bold;
  color:white !important;
  font-size: 30px;
  line-height: 1.2em;
}

.indicTitre2{
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  font-weight: bold;
  color: #137C42 !important;
  font-size: 30px;
  line-height: 1.2em;
}

.indicText{
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  font-weight: normal;
  color:white !important;
  font-size: 16px;
  line-height: 1.2em;
}

.indicText2{
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  font-weight: normal;
  color: #137C42 !important;
  font-size: 16px;
  line-height: 1.2em;
}

.indicBorder{
  border-right: 1px solid white;
  height: 80%;
}

.indicBorder2{
  border-right: 1px solid #137C42;
  height: 80%;
}

/* ************** Articles ESPECES ********************** */

.article-especes {
  max-width: 1200px; /* Largeur max pour éviter que tout s'étale trop */
  width: 100%;
  margin: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
}

.bloc-intro {
  width: 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  box-sizing: border-box; /* Évite les débordements liés au padding */
  background-color: #418b34;
  margin-bottom: 50px;
  color: white;
}

.bloc-intro-content {
  max-width: 1080px; /* Évite de dépasser */
  width: 100%;
  display: flex;
  align-items: center;
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  font-size: 20px;
}

.bloc-intro img {
  max-width: 150px; /* Ajuste la taille */
  height: auto;
  margin-left: 20px;
}

.contenu-article {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 1080px; /* Évite de dépasser */
  flex-wrap: wrap;
}

.article-main {
  flex: 2.5;
  min-width: 70%;
}

.article-sidebar {
  flex: .5;
  min-width: 20%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-sidebar img {
  width: 100%;
  border-radius: 10px;
}

.date{
  color: grey;
  font-size: 16px;
  margin-bottom: 20px;
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
}

.article-title{
  font-size: 45px;
  font-weight: bolder;
  text-transform: uppercase;
  margin: 20px;
  margin-bottom: 40px;
  color: #012A19;
}

@media (max-width: 768px) {
  .contenu-article {
    flex-direction: column;
    align-items: center;
  }

  .article-main,
  .article-sidebar {
    width: 100%;
    min-width: unset;
  }

  .bloc-intro {
    flex-direction: column;
    text-align: center;
  }

  .bloc-intro img {
    display: none; /* Cache l’image sur mobile */
  }
}


/* ************** ALL Articles Especes ********************** */

.especes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
}

.espece-item {
  background-color: #f0f0a0;
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  position: relative;
}

.espece-title {
  font-size: 1.7rem;
  margin: 0 0 5px 0;
  color: #006400;
  transition: color 0.3s;
  font-weight: bolder;
}

.espece-link {
  text-decoration: none;
}

.espece-link:hover .espece-title {
  color: #008800;
}

.espece-date {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #333;
  font-style: italic;
}

.espece-thumbnail {
  margin-bottom: 10px;
  width: 100%;
  transition: opacity 0.3s;
}

.espece-thumbnail-link:hover .espece-thumbnail {
  opacity: 0.9;
}

.espece-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.espece-excerpt {
  font-size: 0.95rem;
  line-height: 1.4;
  flex-grow: 1;
}

.espece-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.espece-read-more {
  display: inline-block;
  color: #006400;
  font-weight: bold;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.espece-read-more:hover {
  background-color: rgba(0, 100, 0, 0.1);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .especes-grid {
      grid-auto-rows: 1fr;
  }
}

/* ************** Menu navigation ********************** */
/* Style des liens du menu */
#top-menu li a {
  position: relative;
  padding-bottom: 10px;
}

/* Taille du menu : 17px au lieu des 18px des options Divi, pour que « Réglementation » tienne */
#et-top-navigation #top-menu li a {
  font-size: 17px;
}

/* Barre visible par défaut */
#top-menu li a::after {
  content: '' !important;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  top: auto !important;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* Couleurs spécifiques par élément (décalées d'un cran : la 1re entrée est le picto Accueil, cf. functions.php) */
#top-menu > li:nth-child(2) > a::after,
#top-menu > li:nth-child(2) .sub-menu li a::after {
  background-color: #DDD900;
}

#top-menu > li:nth-child(3) > a::after,
#top-menu > li:nth-child(3) .sub-menu li a::after {
  background-color: #006838;
}

#top-menu > li:nth-child(4) > a::after,
#top-menu > li:nth-child(4) .sub-menu li a::after {
  background-color: #009FE3;
}

#top-menu > li:nth-child(5) > a::after,
#top-menu > li:nth-child(5) .sub-menu li a::after {
  background-color: #98C21D;
}

#top-menu > li:nth-child(6) > a::after,
#top-menu > li:nth-child(6) .sub-menu li a::after {
  background-color: #1D1D1B;
}

#top-menu > li:nth-child(7) > a::after,
#top-menu > li:nth-child(7) .sub-menu li a::after {
  background-color: #BE1622;
}

/* Picto Accueil : pas de barre de couleur, icône alignée sur le texte des autres entrées */
#top-menu > li.menu-accueil > a::after {
  display: none;
}
#top-menu li.menu-accueil a svg {
  vertical-align: -6px;
}
#top-menu li.menu-accueil a {
  color: #000 !important;
}
#top-menu li.menu-accueil a:hover,
#top-menu li.menu-accueil a:focus-visible {
  opacity: .7;
}

/* Masque la barre au survol */
#top-menu li a:hover::after {
  opacity: 0;
}


/* *************************************** */

/* Citations / textes en exergue : barre ocre (charte du site, cf. .actionTerr) au lieu du bleu Divi #2ea3f2 */
blockquote {
  border-color: #E8A303;
}
