/**
Theme Name: Energilia
Author: Olivier SOROS / Child Theme Astra
Author URI: http://wpastra.com/about/
Description: Child Theme Astra pour Energilia — fidèle au maquette XD
Version: 1.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: energilia
Template: astra
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* ── Couleurs ── */
  --enrg-dark:          #0C3C57;   /* navy foncé : hero, nav hover, box vocation, bannière métiers */
  --enrg-blue:         #159CBA;   /* vert lime identité (boutons, bullets, soulignements) */
  --enrg-green:         #8EC400;   /* vert lime identité (boutons, bullets, soulignements) */
  --enrg-green-dark:    #5d9a1e;   /* vert plus sombre (hover) */
  --enrg-teal:          #2e6b5e;   /* vert-canard : extrémité dégradé stats */
  --enrg-white:         #ffffff;
  --enrg-text:          #0C3C57;   /* couleur de texte principal */

 /* ── Typographies ── */
  --manrope: 'Manrope', 'Segoe UI', Arial, sans-serif;
}

/* ============================================================
   RESET BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--manrope);
  color: var(--enrg-text);
  font-size: 0.94rem;
  line-height: 1.75;
  background: var(--enrg-white) ;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--manrope);
  line-height: 1.22 ;
}

p { color: var(--enrg-muted); line-height: 1.78; }
a { color: var(--enrg-green-dark); transition: color var(--enrg-tr); }
a:hover { color: var(--enrg-green); }
img { display: block; max-width: 100%; height: auto; }



/* ============================================================
   ② HERO — Split layout (52% dark / 48% image)
   ============================================================ */

#main .home-header  {
    margin-bottom: 50px!important;
}
#main .home-header a {
    color:var(--enrg-white)!important;
}
#main .home-header h1 {
    font-family: var(--manrope);
    font-size: 50px;
    font-weight: 800;
    text-transform: uppercase;
    color:var(--enrg-white);
    line-height: 1.2;
}
#main .home-header h2 {
    font-family: var(--manrope);
    font-size: 35px;
    font-weight: 800;
    text-transform: uppercase;
    /* color:var(--enrg-green); */
    background: linear-gradient(to right, var(--enrg-green), var(--enrg-blue));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent; /* fallback */
    line-height: 1;
}
.entry-content {
  position: relative;
}
.home-header:after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  height: 10px;
  background: linear-gradient(to right, var(--enrg-green), var(--enrg-blue));
  width: 60%;
}
/* ============================================================
   ③ MAIN NAVIGATION
   ============================================================ */
#ast-desktop-header .main-navigation ul li a {
      font-family: var(--manrope);
    font-size:  18px;
    font-weight: 400;
    text-transform: uppercase;
    color:var(--enrg-dark);

}
/* ============================================================
   ③ BOUTONS ENERGILIA
   ============================================================ */

   .wp-block-button .wp-block-button__link, .wp-block-search .wp-block-search__button, body .wp-block-file .wp-block-file__button {
    background-color: transparent;
    color: var(--enrg-text);
    font-family: var(--manrope);
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border-radius: 0 15px 0 0!important;
    border: 2px solid var(--enrg-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
   }

    .wp-block-button.btn-dark .wp-block-button__link{
    color: var(--enrg-dark);
 
   }

   .wp-block-button .wp-block-button__link::after, 
   .wp-block-search .wp-block-search__button::after, 
   body .wp-block-file .wp-block-file__button::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--enrg-green), var(--enrg-blue));
    width: 101%;
    margin-left: -2px;
  }

   .wp-block-button .wp-block-button__link:hover, 
   .wp-block-search .wp-block-search__button:hover, 
   body .wp-block-file .wp-block-file__button:hover,
   .wp-block-button .wp-block-button__link:focus, 
   .wp-block-search .wp-block-search__button:focus, 
   body .wp-block-file .wp-block-file__button:focus {
    background-color: var(--enrg-dark);
        color: var(--enrg-white);
  }

/* ============================================================
   ③ CONTENEUR GLOBAL
   ============================================================ */  

   .entry-content h2 {
    font-size: 35px;
    font-weight: 700;
    text-transform: uppercase;
    color:var(--enrg-blue);
    line-height: 1.2;
    margin: 10px 0;
}
   .entry-content h3 {
    font-size: 25px;
    font-weight: 600;
    text-transform: uppercase;
    color:var(--enrg-green);
    background: linear-gradient(to right, var(--enrg-green-dark), var(--enrg-green)); /* Du bleu au jaune */
    -webkit-background-clip: text; /* Coupe l'arrière-plan selon la forme du texte */
    -webkit-text-fill-color: transparent; /* Rend la couleur d'origine transparente pour voir le dégradé */
    background-clip: text;
    line-height: 1.2;
        margin: 5px 0;

}
   .entry-content h5 {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    color:var(--enrg-green);
    line-height: 1.2;
}
   .entry-content .wp-block-image{
    position: relative;
}
   .entry-content .wp-block-image img{
    border-radius: 0 30px 0 0!important; 
}
    .entry-content .wp-block-image:after{
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--enrg-green), var(--enrg-blue));
    width: 100%;
  
}

.entry-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.entry-content ul li {
  position: relative;
  padding-left: 1em;
  font-size: 1rem;
  font-weight: 400;
  color: var(--enrg-text);
  line-height: 1.4;
}

.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.50em;
  height: 0.50em;
  background-color: var(--enrg-green-dark);
}

.entry-content .vocation {
    background-color: var(--enrg-dark);
    border-radius: 50px 0 0 0;
    padding: 6rem 3rem;
}
.entry-content .vocation .wp-block-image:after{
  content: '';
  background: none;

}
.entry-content .vocation .wp-block-image img {
  border-radius: 0!important;
}

.entry-content .eb-accordion-container {
    background-color: var(--enrg-white);


}
.entry-content .eb-accordion-9erf1.eb-accordion-container .title-content-eb-accordion-9erf1 .eb-accordion-title {
    color: var(--enrg-teal);
    font-size: 20px;
    line-height: 24px;
}
.eb-accordion-9erf1.eb-accordion-container > .eb-accordion-inner > .eb-accordion-wrapper:not(.eb-accordion-hidden), .eb-accordion-9erf1.eb-accordion-container .eb-accordion-wrapper-eb-accordion-9erf1.eb-accordion-wrapper:not(.eb-accordion-hidden) {
     background-color: var(--enrg-white);
     border-color: var(--enrg-teal);
         border-radius: 50px 0 0 0;
}


.eb-accordion-9erf1.eb-accordion-container .eb-accordion-icon-wrapper-eb-accordion-9erf1 {
    border-color: var(--enrg-teal);
    border-style: solid;
    border-radius: 10px 0 0 0;

}
/* ============================================================
   ⑤ CONTENEUR SECTIONS (Gutenberg alignfull)
   ============================================================ */
/* Supprime paddings internes Astra sur les pages */
.ast-article-single,
.entry-content,
.ast-container .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* ============================================================
   FORMULAIRE 
   ============================================================ */
/* CONTACT FORM 7 */

.FlexContainer {
    display: flex !important;
    flex-flow: row wrap;
}

.CForm {
	width: 100%;
	gap: 20px;
}
.CForm .CF-full {
	width: 100%;
}

.CForm .ast-button, .button, button, input[type=button], input[type=reset], input[type=submit] {
	background-color: transparent;
    color: var(--enrg-text);
    font-family: var(--manrope);
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border-radius: 0 15px 0 0 !important;
    border: 2px solid var(--enrg-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}



.CForm
.CForm .CF-half { width: calc(50% - 10px); }
.CForm .CF-onethird { width: calc(33% - 10px); }
.CForm .CF-twothird { width: calc(66% - 10px); }
.CForm .CF-onequarter {	width: calc(25% - 10px); }
.CForm .CF-threequarter { width: calc(75% - 10px); }

.CForm input, .CForm textarea {
	font-size: 1.5rem;
}
.CForm input:focus, .CForm textarea:focus {
	border: 1px solid var(--enrg-green)!important;
}
.CForm .CF-highlight {
	color: var(--enrg-dark);
	font-weight: 800;
}

.CForm .CF-checkbox .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
}
.CForm .CF-checkbox .wpcf7-list-item {
	margin: 0 0 5px 1%;
	width: 32%;
	min-width: 250px;
}
.CForm .CF-radio .wpcf7-radio {
	display: block;
}
.CForm .CF-radio .wpcf7-list-item {
	margin: 0 0 5px 1%;
	width: 99%;
}
.CForm .wpcf7-not-valid {
	border: 1px solid #dc3232;
}
.CForm .wpcf7-not-valid-tip {
	position: absolute;
	font-size: 1rem;
	bottom: 0;
	transform: translate(0,80%);
}
.CForm .CF-number label > span {
	width: 150px;
	display: block;
}
.CForm .CF-textarea .wpcf7-textarea  {
	resize: vertical;
}

.CForm .CF-hr {
	position: relative;
}
/* ============================================================
   ACTUALITES 
   ============================================================ */

/* ===== GRILLE ACTUALITÉS ===== */
.wp-block-bloc-actualites-actualites {
  display: grid;
  gap: 1.75rem;
  padding: 2rem 0;
  font-family: var(--manrope);
}

.wp-block-bloc-actualites-actualites.layout-grid.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== CARTE ARTICLE ===== */
.actualite-item {
  display: flex;
  flex-direction: column;
  background: var(--enrg-white);
  border-radius: 0 30px 0 0 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.actualite-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--enrg-green), var(--enrg-blue));
}

.actualite-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(12, 60, 87, 0.15);
}

/* ===== IMAGE ===== */
.actualite-thumbnail {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.actualite-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 0 30px 0 0 !important;
}

.actualite-item:hover .actualite-thumbnail img {
  transform: scale(1.05);
}

/* ===== CONTENU ===== */
.actualite-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.5rem 1.5rem;
  gap: 0.5rem;
}

/* ===== TAG CATÉGORIE ===== */
.actualite-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.actualite-category-tag {
  display: inline-block;
  font-family: var(--manrope);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--enrg-green-dark);
  background: rgba(142, 196, 0, 0.12);
  padding: 0.22rem 0.7rem;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.actualite-category-tag:hover {
  background: rgba(142, 196, 0, 0.25);
  color: var(--enrg-green-dark);
}

/* ===== TITRE ===== */
.actualite-title {
  margin: 0;
  font-family: var(--manrope);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.actualite-title a {
  color: var(--enrg-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.actualite-title a:hover {
  color: var(--enrg-blue);
}

/* ===== META (date) ===== */
.actualite-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.actualite-date {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--manrope);
  font-size: 0.76rem;
  color: rgba(12, 60, 87, 0.45);
}

.actualite-date svg {
  flex-shrink: 0;
  color: var(--enrg-blue);
  opacity: 0.6;
}

/* ===== EXTRAIT ===== */
.actualite-excerpt {
  flex: 1;
}

.actualite-excerpt p {
  margin: 0;
  font-family: var(--manrope);
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(12, 60, 87, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== LIEN "LIRE LA SUITE" ===== */
.actualite-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-family: var(--manrope);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--enrg-green);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}

.actualite-read-more:hover {
  gap: 0.6rem;
  color: var(--enrg-green-dark);
}

.actualite-read-more svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.actualite-read-more:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   ⑫ FOOTER
   Fond blanc · logo centré · email vert · téléphone · copyright
   ============================================================ */
.footer {
  margin-top: 50px;
}

/* ============================================================
   ⑬ STYLES BLOCS DIVERS (Gutenberg)
   ============================================================ */



/* ============================================================
   ⑮ RESPONSIVE
   ============================================================ */

/* ── Tablette ≤ 1024px ── */
@media (max-width: 1024px) {
  #energilia-hero,
  .enrg-hero {
    grid-template-columns: 1fr !important;
  }
  .enrg-hero__right {
    min-height: 260px !important;
    order: -1 !important;   /* image en haut */
  }
  .enrg-hero__left::before { left: 0 !important; }
  .enrg-hero__left-inner {
    max-width: 100% !important;
    padding: 2.5rem 1.5rem !important;
  }
  .wp-block-columns { flex-wrap: wrap !important; }
}

/* ── Mobile ≤ 768px ── */
@media (max-width: 768px) {
  .enrg-hero__h1 { font-size: clamp(0.95rem, 5.5vw, 1.35rem) !important; }
  .enrg-hero__ctas {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .enrg-btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .enrg-hero__right { min-height: 190px !important; }
  .wp-block-group.alignfull > .wp-block-group__inner-container {
    padding-inline: 1rem !important;
  }
  .wp-block-columns { gap: 1.5rem !important; }
  .enrg-stats-band .wp-block-heading,
  .wp-block-group.enrg-stats-band h2 {
    font-size: clamp(2.4rem, 13vw, 3.8rem) !important;
  }
}

/* ── Très petit ≤ 480px ── */
@media (max-width: 480px) {
  .enrg-hero__logo img { height: 48px !important; }
  .enrg-hero__h1 { font-size: 0.95rem !important; }
}



@media (max-width: 1024px) {
  .wp-block-bloc-actualites-actualites.columns-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wp-block-bloc-actualites-actualites.columns-3 {
    grid-template-columns: 1fr;
  }
}