/**********************************
custom-arrows
***********************************/
.wp-block-group.custom-arrows .splide__arrows--ltr {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: var(--wp--preset--spacing--20);
}

.wp-block-group.custom-arrows .splide__arrow--prev,
.wp-block-group.custom-arrows .splide__arrow--next {
  display: inline-flex;
  align-items: center;
  width: 40px;
  height: 40px;
  background: var(--wp--preset--color--accent-2);
  border: none;
  border-radius: 50%;
}

.wp-block-group.custom-arrows .splide__arrow--prev svg,
.wp-block-group.custom-arrows .splide__arrow--next svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.wp-block-group.custom-arrows .splide__arrow--prev svg {
  transform: rotate(180deg);
}


/**********************************
Adobe Fonts (Amifer)
***********************************/
/* Appliquer Amifer Regular sur le corps de texte */
body {
    font-family: 'Amifer', sans-serif;
    font-weight: 400; /* Regular */
}

/* Appliquer Amifer Bold sur les titres */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Amifer', sans-serif;
    font-weight: 700; /* Bold */
}

/* Gutenberg Buttons */
.wp-block-button__link {
    font-family: 'Amifer', sans-serif !important;
    font-weight: 500; /* or 400 if you want thinner text */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/**********************************
Carousel vertical centering
***********************************/
.wp-block-cloudcatch-splide-carousel-item {
  display: flex;
  align-items: center;   
  justify-content: center; 
}

.wp-block-cloudcatch-splide-carousel-item > .wp-block-group {
  margin: auto; 
}

/**********************************
card-client-logo (Home page)
***********************************/
/* Default state: logos in grey & white (soft, no deep black) */
.card-clientlogo .img-clientlogo img {
  filter: grayscale(100%) brightness(115%) contrast(90%);
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), 
              filter 0.6s ease;
}

/* Card transition */
.card-clientlogo {
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.6s ease, 
              border-color 0.6s ease;
}

/* Hover effect on card */
.card-clientlogo:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  border-color: rgba(255,255,255,0.4);
}

/* Hover: restore natural colors */
.card-clientlogo:hover .img-clientlogo img {
  filter: grayscale(0%) brightness(100%) contrast(100%);
  transform: scale(1.08);
}

/**********************************
Blog / Category tags
***********************************/
.taxonomy-category a {
	display: inline-block;
	padding: 8px 20px;
	border: 1px solid var(--wp--preset--color--accent-2);
	background: transparent;
	text-decoration: none;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	margin-right: 6px;
	color: var(--wp--preset--color--accent-2);
}

.wp-block-group.has-global-padding.is-content-justification-right {
	text-align: right;
	margin-top: 20px;
}

.wp-block-group.has-global-padding.is-content-justification-right .wp-block-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 25px;
	background-color: var(--wp--preset--color--accent-2);
	color: #fff;
	font-weight: bold;
	font-size: 16px;
	font-family: 'Amifer', sans-serif;
	border-radius: 50px;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.wp-block-group.has-global-padding.is-content-justification-right .wp-block-read-more::after {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="https://www.w3.org/2000/svg" fill="none" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" viewBox="0 0 24 24"><path d="M4.5 19.5l15-15M19.5 4.5H8.25M19.5 4.5v11.25"/></svg>') no-repeat center;
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="https://www.w3.org/2000/svg" fill="none" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" viewBox="0 0 24 24"><path d="M4.5 19.5l15-15M19.5 4.5H8.25M19.5 4.5v11.25"/></svg>') no-repeat center;
	background-color: #fff;
	transition: transform 0.3s ease;
}

.wp-block-group.has-global-padding.is-content-justification-right .wp-block-read-more:hover::after {
	transform: rotate(45deg);
}

.wp-block-group.has-global-padding.is-content-justification-right .wp-block-read-more span.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/**********************************
List block bullet
***********************************/
.wp-block-list li {
  list-style: none;
  position: relative;
  padding-left: 1.75em;
}

.wp-block-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.1em;
  height: 1.1em;

  /* Correct mask shorthand syntax */
  mask: url('data:image/svg+xml;utf8,<svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10m-5.186-2.419a1 1 0 1 0-1.628-1.162l-4.314 6.04l-2.165-2.166a1 1 0 0 0-1.414 1.414l3 3a1 1 0 0 0 1.52-.126z" clip-rule="evenodd"/></svg>') no-repeat center / contain;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10m-5.186-2.419a1 1 0 1 0-1.628-1.162l-4.314 6.04l-2.165-2.166a1 1 0 0 0-1.414 1.414l3 3a1 1 0 0 0 1.52-.126z" clip-rule="evenodd"/></svg>') no-repeat center / contain;

  background-color: var(--wp--preset--color--accent-2);
}

/* ==========================
   Champs côte à côte
========================== */
.wpm-l-side,
.wpm-R-side {
    width: 49%;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    margin-bottom: 15px;
}

/* Responsive: sur mobile, champs en pleine largeur */
@media (max-width: 768px) {
    .wpm-l-side,
    .wpm-R-side {
        width: 100%;
        display: block;
    }
}

/* ==========================
   Bouton full width avec couleur accentée
========================== */
input[type="submit"].ninja-forms-field.nf-element {
    width: 100%;
    background-color: var(--wp--preset--color--accent-2);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

/* Effet au survol */
input[type="submit"].ninja-forms-field.nf-element:hover {
    background-color: color-mix(in srgb, var(--wp--preset--color--accent-2) 85%, #000);
}


/*RGPD text*/
#nf-label-field-21,
.nf-checked-label { 
    font-weight: 400 !important; 
    font-size: 14px;
}

/**********************************
Detail Block / FAQ
***********************************/
/* FAQ block */
.wpm-faq {
  border: 1px solid var(--wp--preset--color--custom-base-outline);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

/* Summary (question) */
.wpm-faq > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* SVG icon before text (with correct mask shorthand) */
.wpm-faq > summary::before {
  content: "";
  width: 1.35rem;
  height: 1.35rem;

  mask: url("data:image/svg+xml;utf8,<svg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='black' stroke-width='1.5'><circle cx='12' cy='12' r='10'/><path stroke-linecap='round' stroke-linejoin='round' d='m15 13.5l-3-3l-3 3'/></g></svg>") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='black' stroke-width='1.5'><circle cx='12' cy='12' r='10'/><path stroke-linecap='round' stroke-linejoin='round' d='m15 13.5l-3-3l-3 3'/></g></svg>") no-repeat center / contain;

  background-color: var(--wp--preset--color--accent-2);
  transition: transform 0.4s ease;
}

/* Rotate when open */
.wpm-faq[open] > summary::before {
  transform: rotate(180deg);
}

/* Answer wrapper */
.wpm-faq-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 1rem;
  transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.4s ease;
}

/* When open */
.wpm-faq[open] .wpm-faq-content {
  opacity: 1;
  padding: 0 1rem 1rem 3.75rem;
  max-height: 1000px;
}

/**********************************
Stucking cards effect
***********************************/
.wpm-steps-section,
.wpm-steps-section .wp-block-group {
    overflow: visible !important;
}

.wpm-steps-section .wp-block-columns > .wp-block-column:first-child {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.wpm-steps-section .wp-block-columns > .wp-block-column:last-child {
    min-height: 130vh;
}

.wpm-step1,
.wpm-step2,
.wpm-step3 {
    position: -webkit-sticky;
    position: sticky;
}

.wpm-step1 {
    top: 100px;
    z-index: 2;
}

.wpm-step2 {
    top: 120px;
    z-index: 3;
}

.wpm-step3 {
    top: 140px;
    z-index: 4;
}

.wpm-step1,
.wpm-step2 {
    margin-bottom: 1rem;
}

/**********************************
Logo Slider (Hero) - Home page
***********************************/
.logo-carousel {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  white-space: nowrap;
}

.logo-carousel .track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
  align-items: center;
}

.logo-carousel img {
  margin: 0 1rem;
  max-height: 80px;
  width: auto;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.logo-carousel img:hover {
  filter: grayscale(0%);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-carousel::before,
.logo-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-carousel::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.logo-carousel::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

@media (max-width: 768px) {
  .logo-carousel img { max-height: 60px; }
  .logo-carousel::before,
  .logo-carousel::after { width: 50px; }
}

/**********************************
Card hover global
***********************************/
.Card-hover-global{
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.Card-hover-global:hover {
  background-color: var(--wp--preset--color--custom-base-background);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/**********************************
Client Logo hover
***********************************/
.wp-block-outermost-icon-block.Client-logo .icon-container svg {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, filter 0.4s ease;
  opacity: 0.9;
}

.wp-block-outermost-icon-block.Client-logo .icon-container svg:hover {
  transform: scale(1.15);
  opacity: 1;
  filter: brightness(1.1);
}

/**********************************
Button style
***********************************/
.circle-text-container {
  width: 150px;
  height: 150px;
  position: relative;
}

.circle-text {
  width: 100%;
  height: 100%;
  font-size: 22px;
}

.circle-text-path {
  fill: var(--wp--preset--color--custom-background-button) !important;
}

.rotating {
  animation: rotate 8s linear infinite;
  transform-origin: center center;
}

.circle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.circle-icon:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/**********************************
Cards Hover Effect
***********************************/
.wp-block-group.is-vertical.is-layout-flex.wp-container-core-group-is-layout-9ae43232.wp-block-group-is-layout-flex {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.wp-block-group.is-vertical.is-layout-flex.wp-container-core-group-is-layout-9ae43232.wp-block-group-is-layout-flex:hover {
  background-color: var(--wp--preset--color--custom-base-outline);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/**********************************
Navigation - Custom-nav-block
***********************************/
.Custom-nav-block {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Amifer', sans-serif;
}

.wp-block-navigation-item {
    margin: 0 1rem;
    display: inline-flex;
    align-items: center;
    font-family: 'Amifer', sans-serif;
}

.wp-block-navigation-item__content {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
    transform: translateY(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0.2rem 0;
    font-family: 'Amifer', sans-serif;
}

.wp-block-navigation-item__content:hover {
    transform: translateY(-2px);
    color: var(--wp--preset--color--accent-2, #ff6347);
}

.wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
    display: block;
    padding: 0.75rem 1rem;
    color: #fff;
    transform: translateY(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: color 0.2s ease, transform 0.2s ease;
    font-family: 'Amifer', sans-serif;
    font-weight: 600; 
}

.wp-block-navigation__responsive-container-content .wp-block-navigation-item__content:hover {
    transform: translateY(-2px);
    color: var(--wp--preset--color--accent-2, #ff6347);
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Amifer', sans-serif;
}

/**********************************
Buttons class - slide-right-effect
***********************************/
.slide-right-effect {
	position: relative;
	overflow: hidden;
	z-index: 0;
	cursor: pointer;
	border-radius: 25px;
	background-color: var(--wp--preset--color--base-2);
	transition: color 0.3s ease-out 0.15s, box-shadow 0.3s ease-out 0.15s;
}

.slide-right-effect::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0%;
	background-color: var(--wp--preset--color--accent-2);
	z-index: -1;
	transition: width 0.3s ease-out;
	border-radius: 25px;
}

.slide-right-effect:hover::before {
	width: 100%;
}

.slide-right-effect:hover {
	color: #ffffff !important;
	box-shadow: 0 0 0 2px #ffffff;
}

.slide-right-effect:hover * {
	color: #ffffff !important;
}