/*
Theme Name: UpWP FSE
Author:  
Author URI: 
Theme URI: 
Tags: full-site-editing
Text Domain: upwp-fse
Requires at least: 5.8
Requires PHP: 8.2
Tested up to: 5.9
Version: 1.0.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

All files, unless otherwise stated, are released under the GNU General Public
License version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned
with others.
*/

/* Raleway */
@font-face {
  font-family: "Raleway";
  src: url("./fonts/Raleway-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("./fonts/Raleway-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("./fonts/Raleway-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("./fonts/Raleway-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("./fonts/Raleway-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Open Sans */
@font-face {
  font-family: "Open Sans";
  src: url("./fonts/OpenSans-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("./fonts/OpenSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("./fonts/OpenSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("./fonts/OpenSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


html{overflow-x:hidden;}
*, ::after, ::before {
    box-sizing: border-box;
}

body{overflow-x:hidden !important;}

.mobile,
.hide{display:none !important;}
.row{position:relative;}
.row:after{content:'';clear:both;display: block;} 

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a,
.ariane a{text-decoration:unset !important}

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover,
.ariane a:hover{text-decoration:underline !important}
   

/* HEADER */  
@media (max-width: 850px) {
  header .wp-block-navigation.is-responsive .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }

  header .wp-block-navigation.is-responsive .wp-block-navigation__responsive-container:not(.is-menu-open):not(.has-modal-open) {
    display: none !important;
  }

  header .wp-block-navigation.is-responsive .wp-block-navigation__responsive-container.is-menu-open,
  header .wp-block-navigation.is-responsive .wp-block-navigation__responsive-container.has-modal-open {
    display: flex !important;
  }
}

@media (min-width: 851px) {
  header .wp-block-navigation.is-responsive .wp-block-navigation__responsive-container-open {
    display: none !important;
  }

  header .wp-block-navigation.is-responsive .wp-block-navigation__responsive-container:not(.is-menu-open):not(.has-modal-open) {
    display: block !important;
    position: relative !important;
  }

  header .wp-block-navigation.is-responsive .wp-block-navigation__responsive-container-close {
    display: none !important;
  }
}




/* NAV */   
 

/* NAV — underline progressif au hover */
.wp-block-navigation .wp-block-navigation-item__content{
  position: relative;
  text-decoration: none;
}

/* underline "animé" (invisible par défaut) */
.wp-block-navigation .wp-block-navigation-item__content::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;         
  height: 1px;  
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

/* hover/focus: underline apparaît progressivement */
.wp-block-navigation .wp-block-navigation-item__content:hover::after,
.wp-block-navigation .wp-block-navigation-item__content:focus-visible::after{
  transform: scaleX(1);
}

/* état actif : underline visible en permanence */
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after,
.wp-block-navigation .current_page_item > .wp-block-navigation-item__content::after,
body.page-id-1141 .wp-block-navigation a[href="/about"]::after,
body.post-type-archive-sectors .wp-block-navigation a[href$="/sectors/"]::after,
body.post-type-archive-team_member .wp-block-navigation a[href="/team"]::after,
.wp-block-navigation .is-active-submenu-link::after {
  transform: scaleX(1);
}

/* Menu mobile (overlay) */
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--dark-green, #486113)!important;
  color: #fff!important;
}
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-container-close {
  color: #fff!important;
	margin-right: 20px;
	margin-top: 20px;
}
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-container-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.wp-block-navigation-item__label {
	line-height: 1.3;
}
/* Stackable Blocs */
.stk-block .stk--align-last-block-to-bottom { justify-content: space-between !important;} 

.justify {
	text-align: justify!important;
}
 






/* HOME */ 
.ovfh {
  overflow: hidden;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 100%;
}
.hero-main {
  padding: var(--wp--preset--spacing--80)!important;
}
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
@media (max-width: 1080px) {
  .parallax {
    background-attachment: scroll;
  }
}
.stk-block-posts__item {
	border-radius: 10px;
}
.stk-block:is(.aligncenter,.alignwide,.alignfull)>.stk-content-align.alignwide {
        margin-left: 0!important; 
        margin-right: 0!important;
        max-width: none!important;
}
.stk-block-posts__items {
	display: flex;
	justify-content: space-between;
}
.stk-block-posts__items .stk-container {
    margin: 0!important; 
}
.stk-block-separator .stk-block-separator__inner {
    height: unset!important;
}
.stk-block-carousel__slider>.wp-block-stackable-column>.stk-column-wrapper {
	padding: 0!important;
}

/* services dnas home */
.services-grid .stk-block-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
  cursor: pointer !important;
}

.services-grid .stk-block-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.services-grid .stk-block-card__image {
  overflow: hidden;
}

.services-grid .stk-block-card__image img {
  transition: transform 0.35s ease;
  will-change: transform;
}


.services-grid .stk-block-card:hover .stk-block-card__image img {
  transform: scale(1.04);
}




/* SINGLE POST */

/* Tags */
.taxonomy-post_tag a, .wp-block-tag-cloud a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--wp--preset--color--light-gray, #e4e4e4);
  background: #fff;
  color: var(--wp--preset--color--dark-green, #486113);
  text-decoration: none;
  line-height: 1;
  font-size: 12px !important; /* Tag Cloud injecte parfois des inline styles */
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  will-change: transform;
}

/* Hover */
.taxonomy-post_tag a:hover, .wp-block-tag-cloud a:hover {
  background: var(--wp--preset--color--light-green, #b9d08f);
  border-color: var(--wp--preset--color--light-green, #b9d08f);
  color: #fff;
  transform: scale(0.96);
}

/* Focus keyboard */
.taxonomy-post_tag a:focus-visible, .wp-block-tag-cloud a:focus-visible {
  outline: 2px solid var(--wp--preset--color--orange, #f28c64);
  outline-offset: 2px;
}

.wp-block-tag-cloud a {
    margin-bottom: 5px;
}

/* Categories */
.taxonomy-category a, .wp-block-categories-list .cat-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 8px; /* plus petit que 999px */
  border: 1px solid var(--wp--preset--color--orange, #f28c64);
  color: var(--wp--preset--color--orange, #f28c64);
  text-decoration: none;
  line-height: 1;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  will-change: transform;
}

/* Hover */
.taxonomy-category a:hover, .wp-block-categories-list .cat-item:hover {
  background: var(--wp--preset--color--orange, #f28c64);
  border-color: var(--wp--preset--color--orange, #f28c64);
  color: #fff;
  transform: scale(0.98); /* léger, différent des tags (0.96) */
}

/* Focus keyboard */
.taxonomy-category a:focus-visible {
  outline: 2px solid var(--wp--preset--color--dark-orange, #c57b57);
  outline-offset: 2px;
}

.wp-block-categories-list {
	display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    padding: 0;
    align-items: start;
    margin: 0;
}

.wp-block-categories-list .cat-item a {
	color: var(--wp--preset--color--orange, #f28c64);
    text-decoration: none;
}

.wp-block-categories-list .cat-item a:hover {
	color: #fff;
}

:root :where(.wp-element-button, .wp-block-button__link) {
    padding-top: 5px!important;
    padding-right: 10px!important;
    padding-bottom: 5px!important;
    padding-left: 10px!important;
}






/* CLIENTS */

/* Image en N&B par défaut + retour couleur au hover */
.page-id-20 .stk-block-card__image img{
  filter: grayscale(100%);
  transition: filter 400ms ease;
  will-change: filter;
}
.page-id-20 .stk-block-card:hover .stk-block-card__image img,
.stk-block-card:focus-within .stk-block-card__image img{
  filter: grayscale(0%);
}







/* NEWS */
/* ===== TITRE ===== */
.stk-block-posts__item h3.stk-block-posts__title a{
  text-decoration: none !important;
  background-image: linear-gradient(currentColor, currentColor) !important;
  background-repeat: no-repeat !important;
  background-position: 0 100% !important;
  background-size: 0% 1px !important;
  transition: background-size 250ms ease !important;
}

.stk-block-posts__item:hover h3.stk-block-posts__title a,
.stk-block-posts__item:focus-within h3.stk-block-posts__title a{
  background-size: 100% 1px !important;
}

/* ===== IMAGE ===== */
.stk-block-posts__item figure.stk-img-wrapper{
  overflow: hidden !important;
}
.stk-block-posts__item figure.stk-img-wrapper{
  transform: scale(1) !important;
  transition: transform 400ms ease !important;
  will-change: transform;
}

.stk-block-posts__item:hover figure.stk-img-wrapper,
.stk-block-posts__item:focus-within figure.stk-img-wrapper{
  transform: scale(1.06) !important;
}
.stk-block-posts__item img.attachment-thumbnail{
  transition: transform 400ms ease !important;
  transform: scale(1) !important;
}

.stk-block-posts__item:hover img.attachment-thumbnail,
.stk-block-posts__item:focus-within img.attachment-thumbnail{
  transform: scale(1.06) !important;
}


/* Curseur uniquement sur les vrais liens */
.wp-block-post-template > li.wp-block-post a {
  cursor: pointer;
}

/* Image : prépare le zoom */
.wp-block-post-template > li.wp-block-post .wp-block-post-featured-image {
  overflow: hidden;
  border-radius: 10px;
}

.wp-block-post-template > li.wp-block-post .wp-block-post-featured-image a {
  display: block;
  overflow: hidden;
}

.wp-block-post-template > li.wp-block-post .wp-block-post-featured-image img {
  display: block;
  transition: transform 0.35s ease;
  will-change: transform;
}

/* Image grandit seulement quand on hover un lien cliquable du post */
.wp-block-post-template > li.wp-block-post:has(a:hover) .wp-block-post-featured-image img {
  transform: scale(1.05);
}

/* Titre */
.wp-block-post-template > li.wp-block-post .wp-block-post-title a {
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

/* Titre souligné seulement quand on hover le titre */
.wp-block-post-template > li.wp-block-post .wp-block-post-title a:hover {
  text-decoration: underline;
}





/* =========================
   SECTORS ARCHIVE (desktop)
   ========================= */

/* cards cliquables */
body.post-type-archive-sectors .sectors-loop{
  cursor: pointer;
}
body.post-type-archive-sectors .sectors-loop:hover{
  filter: brightness(.99);
}

/* alternance gauche/droite */
.post-type-archive-sectors 
.wp-block-post-template > li:nth-child(even) 
.wp-block-stackable-columns.sectors-loop > .stk-row.stk-content-align {
  flex-direction: row-reverse !important;
}
/* effet “card” */
.post-type-archive-sectors .wp-block-post-template > li .stk-block-columns{
  transition: transform .18s ease, box-shadow .18s ease;
  will-change: transform;
}

.post-type-archive-sectors .wp-block-post-template > li:hover .stk-block-columns{
  transform: scale(.99);
  box-shadow: 0px 2px 20px rgba(0,0,0,.10);
}

/* excerpt caché par défaut (desktop) */
.post-type-archive-sectors .wp-block-post-template > li .wp-block-post-excerpt,
.post-type-archive-sectors .wp-block-post-template > li .wp-block-stackable-button-group{
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease, max-height .25s ease;
  margin-top: 10px;
}

/* excerpt visible au hover/focus (desktop) */
.post-type-archive-sectors .wp-block-post-template > li:hover .wp-block-post-excerpt,
.post-type-archive-sectors .wp-block-post-template > li:focus-within .wp-block-post-excerpt,
.post-type-archive-sectors .wp-block-post-template > li:hover .wp-block-stackable-button-group,
.post-type-archive-sectors .wp-block-post-template > li:focus-within .wp-block-stackable-button-group{
  max-height: 95px;
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   SECTORS ARCHIVE (mobile)
   ========================= */
@media (max-width: 767px){
  .post-type-archive-sectors .wp-block-post-template > li .wp-block-post-excerpt,
	.post-type-archive-sectors .wp-block-post-template > li .wp-block-stackable-button-group{
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    transform: none !important;
    transition: none !important;
    margin-top: 10px;
  }
}

/* =========================
   SECTORS ARCHIVE (tablet)
   ========================= */
@media (min-width: 768px) and (max-width: 1024px){
  .post-type-archive-sectors .wp-block-post-template > li .wp-block-post-excerpt,
	.post-type-archive-sectors .wp-block-post-template > li .wp-block-stackable-button-group{
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    transform: none !important;
    transition: none !important;
    margin-top: 10px;
  }
}



/* SINGLE ITEM SECTOR */

/* =========================
   SECTOR SUPPORT BLOCK
   ========================= */
.sector-support .stk-row{
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 20px !important;
}

.sector-support__icon{
  flex: 0 0 56px !important; 
  max-width: 56px !important;
}

.sector-support__icon p{
  margin: 0 !important;
}

.sector-support__icon .sector-support-icon{
  display: block !important;
  width: 56px !important;  
  height: 56px !important; 
  object-fit: contain !important;
}

.sector-support__box{
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.sector-support__box p{
  margin: 0 !important;
}

.sector-support__box p:first-child{
  font-family: var(--wp--preset--font-family--open-sans);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wp--preset--color--dark-green);
  margin-bottom: 8px !important;
}

.sector-support__box p:not(:first-child){
  font-style: italic;
  line-height: 1.7;
}
.sector_title a:hover{text-decoration:unset !important}

@media (max-width: 767px){
  .sector-support .stk-row{
    flex-wrap: wrap !important;
  }
  .sector-support__icon{
    flex: 0 0 44px !important;
    max-width: 44px !important;
  }
  .sector-support__icon .sector-support-icon{
    width: 44px !important;
    height: 44px !important;
  }
}
/* =========================
   SECTOR SUPPORT PANEL
   ========================= */

.sector-support__panel{
  padding: 40px 48px !important;
  border-radius: 4px;
	background: var(--wp--preset--gradient--light-orange-to-light-gray-vertical) !important;
}

.sector-support__panel p:first-child{
  font-size: 22px;
  letter-spacing: 0.5px;
  margin-bottom: 12px !important;
}

.sector-support__panel p:not(:first-child){
  font-size: 16px;
  line-height: 1.8;
  color: #4a4a4a;
}

.sector-support__panel{
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* ===== Sector subsectors tabs layout ===== */
.sector-subsectors { margin: 3rem 0; }
.sector-subsectors__title{
  text-align:center;
  letter-spacing:.04em;
  font-weight:700;
  color: var(--wp--preset--color--dark-green);
  margin: 0 0 1.5rem 0;
}

.sector-subsectors__layout{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items:start;
}

.sector-subsectors__tabs{
  display:flex;
  flex-direction:column;
  gap: .75rem;
}

.sector-subsectors__tab{
  width:100%;
  text-align:center;
  border: 0;
  padding: 1.1rem 1rem;
  font-weight:700;
  cursor:pointer;
  background: var(--wp--preset--gradient--light-orange-to-light-gray-vertical);
  color: var(--wp--preset--color--dark-green);
}
.sector-subsectors__tab.is-active{
  background: var(--wp--preset--color--light-green);
}

.sector-subsectors__panel{ display:none; }
.sector-subsectors__panel.is-active{ display:block; }

.sector-subsectors__intro{
  background: var(--wp--preset--color--light-gray);
  padding: 1.5rem 1.5rem;
}
.sector-subsectors__introTitle{
  margin: 0 0 .75rem 0;
  color: var(--wp--preset--color--dark-green);
}
.sector-subsectors__introText p{ margin: 0; font-style: italic; }

.sector-subsectors__projects{
  margin-top: 1.5rem;
  display:flex;
  flex-direction:column;
  gap: 1.25rem;
}

.sector-subsectors__project{
  background:#fff;
  border: 1px solid rgba(0,0,0,.06);
}

.sector-subsectors__projectHeader{
  display:flex;
  align-items:center;
  gap:.75rem;
  padding: .9rem 1rem;
  background: var(--wp--preset--gradient--light-orange-to-light-gray-vertical);
  font-weight: 700;
}

.sector-subsectors__projectIcon{
  width: 26px; height: 26px;
  display:inline-flex;
  align-items:center; justify-content:center;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 50%;
}

.sector-subsectors__projectText{
  padding: 1rem;
  color: #333;
}



.project-acc__head{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border:0;
  cursor:pointer;
  text-align:left;
  padding: 18px 20px;
  background: var(--wp--preset--gradient--light-orange-to-light-gray-vertical);
}

.project-acc__left{
  display:flex;
  align-items:center;
  gap:12px;
}

.project-acc__icon{
  width: 28px;
  height: 28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.25);
}

.project-acc__title{
  font-family: var(--wp--preset--font-family--open-sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
}

.project-acc__arrow{
  width: 28px;
  height: 28px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.25);
  position:relative;
  flex: 0 0 auto;
}

.project-acc__arrow::before{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  width:8px;
  height:8px;
  border-right:2px solid #222;
  border-bottom:2px solid #222;
  transform: rotate(45deg);
  transition: transform .25s ease;
}

.project-acc.is-open .project-acc__arrow::before{
  transform: rotate(-135deg);
}

.project-acc__panel{
  overflow:hidden;
}

.project-acc__content{
  padding: 14px 20px 18px;
  background: rgba(255,255,255,.45);
}

.project-acc__panel{
  overflow: hidden;
}

.project-acc__content{
  transform: translateY(-6px);
  opacity: 0;
  transition: opacity 320ms cubic-bezier(.2,.8,.2,1),
              transform 320ms cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

.project-acc.is-open .project-acc__content{
  transform: translateY(0);
  opacity: 1;
}

.project-acc__head{
  transition: filter 220ms ease, transform 220ms ease;
}
.project-acc__head:hover{
  filter: brightness(.98);
  transform: translateY(-1px);
}

.project-acc__arrow::before{
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}
.project-acc__panel{
  transition: height 380ms cubic-bezier(.2,.8,.2,1);
  will-change: height;
}

@media (prefers-reduced-motion: reduce){
  .project-acc__panel,
  .project-acc__content,
  .project-acc__head,
  .project-acc__arrow::before{
    transition: none !important;
  }
}


/* Responsive */
@media (max-width: 767px){
  .sector-support__panel{
    padding: 20px 20px !important; /* au lieu de 40/48 */
  }
}
@media (max-width: 900px){
  .sector-subsectors__layout{
    grid-template-columns: 1fr;
  }
	

  .sector-subsectors__tabs{
    flex-direction: column;   /* au lieu de row */
    overflow: visible;        /* on enlève le scroll horizontal */
    gap: .5rem;
    padding-bottom: 0;
  }

  .sector-subsectors__tab{
    white-space: normal;      /* au lieu de nowrap */
  }
	  .sector-subsectors__panel{
    margin-left: 12px;
    margin-right: 12px;
  }
}







/* TEAM MEMBER ARCHIVE */
.taxonomy-team_function a {
	  pointer-events: none;
  text-decoration: none;
  color: inherit;
  cursor: default;
}
.wp-block-post-featured-image a {
	cursor: pointer!important;
}

.team-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
	cursor: pointer !important;
}

.team-hover:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* SERVICE ARCHIVE */

.service-link a:hover {
	text-decoration: unset!important;
}


.service-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
	cursor: pointer !important;
}

.service-hover:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.service-hover .wp-block-post-featured-image {
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.service-hover .wp-block-post-featured-image img {
  transition: transform 0.35s ease;
  will-change: transform;
}

.service-hover:hover .wp-block-post-featured-image img {
  transform: scale(1.04);
}



/* Card globale */
.service-hover {
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
  cursor: pointer;
}

.service-hover:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Zone image + overlay */
.service-hover > .wp-block-group:first-child {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Image */
.service-hover .wp-block-post-featured-image {
  margin: 0;
  overflow: hidden;
}

.service-hover .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  will-change: transform;
}

.service-hover:hover .wp-block-post-featured-image img {
  transform: scale(1.04);
}

/* Overlay noir */
.service-hover > .wp-block-group:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Groupe contenant l'excerpt + le bouton */
.service-hover > .wp-block-group:first-child > .wp-block-group {
  position: absolute;
  inset: 0;
  z-index: 2;

  padding: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;

  text-align: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Excerpt */
.service-hover .wp-block-post-excerpt {
  margin: 0;
  max-width: 100%;
}

.service-hover .wp-block-post-excerpt__excerpt {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.5;
}

/* Bouton */
.service-hover .wp-block-stackable-button-group {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.service-hover .wp-block-stackable-button-group .stk-row {
  justify-content: center !important;
}

/* Affichage au hover */
.service-hover:hover > .wp-block-group:first-child::before,
.service-hover:hover > .wp-block-group:first-child > .wp-block-group,
.service-hover:focus-within > .wp-block-group:first-child::before,
.service-hover:focus-within > .wp-block-group:first-child > .wp-block-group {
  opacity: 1;
  visibility: visible;
}

/* Tablette */
@media (min-width: 768px) and (max-width: 1024px) {
  .service-hover > .wp-block-group:first-child > .wp-block-group {
    padding: 20px;
    gap: 10px;
  }

  .service-hover .wp-block-post-excerpt__excerpt {
    font-size: 14px;
    line-height: 1.45;

    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .service-hover:hover {
    transform: none;
    box-shadow: none;
  }

  .service-hover:hover .wp-block-post-featured-image img {
    transform: none;
  }

  .service-hover > .wp-block-group:first-child::before,
  .service-hover > .wp-block-group:first-child > .wp-block-group {
    opacity: 1;
    visibility: visible;
  }

  .service-hover > .wp-block-group:first-child::before {
    background: rgba(0, 0, 0, 0.58);
  }

  .service-hover > .wp-block-group:first-child > .wp-block-group {
    padding: 20px;
    gap: 10px;
  }

  .service-hover .wp-block-post-excerpt__excerpt {
    font-size: 14px;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Services : inner service */
.post-navigation-link-previous{padding-right:30px;}
.post-navigation-link-next {padding-left:30px;}
.post-navigation-link-next span.is-arrow-arrow, 
.post-navigation-link-previous span.is-arrow-arrow{
    position: absolute;
    right: 0px;
    bottom: 0;
    transform: scaleX(1) rotate(180deg) !important;
}
.post-navigation-link-next span.is-arrow-arrow{right:unset; left:0;}


/* NINJA CONTACT FORM */

.nf-search-inline .nf-error-wrap{ margin-top: .25rem; }

/* Container */
.nf-form-layout {
  font-family: var(--wp--preset--font-family--raleway);
  color: var(--wp--preset--color--dark-green, #486113);
}

.nf-form-layout .nf-form-fields-required {
  margin: 0 0 1rem;
  font-size: 14px;
  color: #666;
}

/* Each field block spacing */
.nf-form-layout .nf-field-container {
  margin-bottom: 1.5rem;
}

/* Label */
.nf-form-layout .nf-field-label label {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-family: var(--wp--preset--font-family--open-sans);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--wp--preset--color--dark-green, #486113);
}

.nf-form-layout .ninja-forms-req-symbol {
  color: var(--wp--preset--color--dark-orange, #c57b57);
}

/* Inputs / textarea */
.nf-form-layout .nf-field-element input.nf-element,
.nf-form-layout .nf-field-element textarea.nf-element,
.nf-form-layout .nf-field-element select.nf-element {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--wp--preset--font-family--raleway);
  font-size: 16px;
  line-height: 1.4;
  color: #222;

  background: var(--wp--preset--color--light-orange, #f2ebdc);
  border: 1px solid var(--wp--preset--color--light-gray, #e4e4e4);
  border-radius: 6px;

  padding: 12px 14px;
  outline: none;

  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.nf-form-layout .nf-field-element textarea.nf-element {
  min-height: 180px;
  resize: vertical;
}

/* Focus */
.nf-form-layout .nf-field-element input.nf-element:focus,
.nf-form-layout .nf-field-element textarea.nf-element:focus,
.nf-form-layout .nf-field-element select.nf-element:focus {
  border-color: var(--wp--preset--color--orange, #f28c64);
  box-shadow: 0 0 0 3px rgba(242, 140, 100, .25);
  background: #fff;
}

/* Errors */
.nf-form-layout .nf-error-wrap {
  margin-top: 0.5rem;
}

.nf-form-layout .nf-error-msg {
  font-size: 14px;
  color: #7a1b1b;
}

/* Red border when field has error */
.nf-form-layout .field-wrap.nf-error .nf-element,
.nf-form-layout .field-wrap.nf-fail .nf-element {
  border-color: #c23b3b;
}

/* Form-level error message */
.nf-form-layout .nf-form-errors {
  margin-top: 1rem;
}

.nf-form-layout .nf-error-field-errors {
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(197, 123, 87, .12);
  border: 1px solid rgba(197, 123, 87, .35);
  color: #5a2a16;
}

/* Submit button */
.nf-form-layout input[type="submit"].nf-element {
  appearance: none;
  border: none;
  cursor: pointer;

  font-family: var(--wp--preset--font-family--open-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;

  background: var(--wp--preset--color--orange, #f28c64);
  color: #fff;

  border-radius: 6px;
  padding: 12px 18px;

  transition: transform .15s ease, filter .2s ease, opacity .2s ease;
}

.nf-form-layout input[type="submit"].nf-element:hover {
  filter: brightness(.95);
  transform: translateY(-1px);
}

.nf-form-layout input[type="submit"].nf-element:active {
  transform: translateY(0);
}

/* Disabled submit */
.nf-form-layout input[type="submit"].nf-element[disabled],
.nf-form-layout input[type="submit"].nf-element[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* Mobile */
@media (max-width: 768px) {
  .nf-form-layout .nf-field-label label {
    font-size: 13px;
  }
}

/* Ninja Forms layout */
.nf-form-content nf-fields-wrap {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}

/* Permet aux containers internes de devenir les vrais éléments de grille */
.nf-form-content nf-field {
  display: contents;
}

/* Tous les champs pleine largeur par défaut */
.nf-form-content .nf-field-container {
  width: 100%;
}

/* Name + Surname sur deux colonnes */
.nf-form-content .nf-field-container.nf-half {
  width: calc(50% - 10px);
}

/* Inputs pleine largeur dans leur colonne */
.nf-form-content .nf-field-element input,
.nf-form-content .nf-field-element textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Mobile */
@media (max-width: 600px) {
  .nf-form-content .nf-field-container.nf-half {
    width: 100%;
  }
}








/* FOOTER */
footer a{text-decoration:unset;}
footer a:hover{text-decoration:underline;} 



.farweb-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1000;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 48px;
	height: 48px;
	padding: 0;

	color: #fff;
	background: #222;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 4px 15px rgb(0 0 0 / 20%);

	font-size: 24px;
	line-height: 1;
	cursor: pointer;

	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);

	transition:
		opacity 200ms ease,
		transform 200ms ease,
		visibility 200ms ease;
}

.farweb-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.farweb-back-to-top:hover {
	background: #000;
}

.farweb-back-to-top:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.farweb-back-to-top {
		right: 16px;
		bottom: 16px;
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.farweb-back-to-top {
		transition: none;
	}
}




/* RESPOSIVE */
@media only screen and (max-width:1400px) {   
}
@media only screen and (max-width:1220px) {   
}
@media only screen and (max-width:1080px) { 
	
	.desktop{display:none !important}
	.mobile {display:block !important} 
	
	.services-grid, .member-grid{
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
	
	.hero-main { padding: var(--wp--preset--spacing--70)!important; }
	
} 
@media only screen and (max-width:768px) {  
	
	.services-grid, .member-grid,.policy-statement-grid{
		grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
	.clients-grid{
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
	
}

@media only screen and (max-width:600px) { 
	.services-grid, .policy-statement-grid {
		grid-template-columns: 1fr;
	} 
	.hero-main { padding: var(--wp--preset--spacing--60)!important; }
	.centered-content {
		text-align: center;
		align-items: center;
	}
	.stk-block-carousel__dots {
		display: none;
	} 
}

@media only screen and (max-width:400px) { 
   
}







/* ENVIRONMENTAL POLICY STATEMENT */




/* ABOUT */
.learn-more-container:hover {
  transform: translateY(-2px);
}
.what-we-do {
  transition: all 0.3s ease;
}
.what-we-do:hover {
  background-color: rgba(255, 255, 255, 0.85);
  border: 3px solid var(--wp--preset--color--dark-orange);
  transform: translateY(-2px);
}
.learn-more-container {
	cursor: pointer!important;
}
.wwd-title {
	text-align: left!important;
}


/* WHAT WE STAND FOR */
.workspace-culture {
	    gap: 24px;
    display: flex;
    flex-direction: column;
}








