/*
Theme Name: Blocksy Child
Theme URI: http://localhost
Description: Child theme for Blocksy
Author: MeriemBS
Template: blocksy
Version: 1.0
*/
/* HERO BUTTON STYLE */

body{
  margin-bottom: 0 !important;
}

.wp-block-button__link {
    padding: 14px 28px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.wp-block-button__link:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
}

/* =========================
   SERVICES SECTION
   ========================= */
.services-section {
  padding: 80px 0;
}

/* CARD */
/* SCROLL REVEAL (PRO) */
.service-card{
  text-align: center;
  padding: 30px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
  margin-bottom: 50px !important;

  /* état initial (important) */
  opacity: 0;
  transform: translateY(50px);
  transition: opacity .8s cubic-bezier(.21,.61,.35,1),
              transform .8s cubic-bezier(.21,.61,.35,1),
              box-shadow .3s ease;
  will-change: opacity, transform;
  transition-delay: 0s; /* valeur par défaut */
}

/* état visible */
.service-card.is-visible{
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--delay, 0s);
}

/* hover */
.service-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,.1);
}

/* ICON POP EFFECT */
/* état initial */
.service-icon {
    margin-bottom: 15px;
    color: #1DA1F2; /* couleur de l’icône */
    display: flex;
    justify-content: center;
    transform: scale(0.85);
    opacity: 0;
    transition: transform .5s cubic-bezier(.31,1.65,.64,1),
                opacity .4s ease;
}

/* quand la card devient visible */
.service-card.is-visible .service-icon {
  transform: scale(1);
  opacity: 1;
}

/* TITLE & TEXT */
.service-card h4 {
    color: #0F4C81;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px !important;
}

.wp-block-buttons {
    justify-content: center;
    margin-top: 40px !important;
}

/* ===== GRILLE SERVICES - 3 COLONNES MAX, CARTES DE MÊME HAUTEUR ===== */
.services-grid.wp-block-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
}

.services-grid .service-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    padding-bottom: 30px !important;
}


/* Empêche la coupure des mots dans les titres */
.service-card h4.wp-block-heading {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
}

/* La carte Smart Home devient pleine largeur, mise en avant */
/* Le conteneur doit être en position relative */
.service-card.featured-service {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 18px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 48px 40px !important;
    border-radius: 24px !important;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%) !important;
    border: 2px solid #0F4C81 !important;
    box-shadow: 0 16px 40px rgba(15, 76, 129, 0.15) !important;
}
/* CIBLE TOUS LES ENFANTS DIRECTS SAUF L'ICÔNE - empêche l'effondrement */
.service-card.featured-service > * {
    flex-shrink: 0;
}
/* Motif de points en fond, façon circuit connecté */
.service-card.featured-service::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
}

/* Icône */
.service-card.featured-service .service-icon {
    color: #ffffff !important;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0F4C81, #1DA1F2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 76, 129, 0.3);
}

.service-card.featured-service .service-icon svg {
    width: 38px !important;
    height: 38px !important;
}

/* Titre */
.service-card.featured-service h4.wp-block-heading {
    color: #0F4C81 !important;
    font-size: 28px !important;
    margin: 0 !important;
}

/* Paragraphe texte */
.service-card.featured-service p.wp-block-paragraph {
    color: #5a6470 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

.service-card.featured-service:hover {
    transform: translateY(-4px);
    transition: transform 0.25s ease;
}

/* Badge "Nouveau" - repositionné pour ne pas chevaucher le bord de la carte */
/* BADGE - sorti complètement du flux flex, peu importe son type de bloc */
.service-card.featured-service .service-badge,
.service-card.featured-service p:first-child,
.service-card.featured-service .wp-block-paragraph:first-child {
    position: absolute !important;
    top: -14px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    display: inline-block !important;
    background: #0F4C81 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 6px 18px !important;
    border-radius: 20px !important;
    width: auto !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px rgba(15,76,129,0.3);
}

@media (max-width: 900px) {
    .services-grid.wp-block-group {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 700px) {
    .service-card.featured-service {
        flex-direction: column !important;
        text-align: center;
        padding: 32px 24px !important;
    }
    .service-card.featured-service h4.wp-block-heading,
    .service-card.featured-service p.wp-block-paragraph {
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    .services-grid.wp-block-group {
        grid-template-columns: 1fr !important;
    }
}

/* ===== LES 6 AUTRES CARTES EN SCROLL HORIZONTAL ===== */
.services-scroll-row {
  position: relative;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
/* Wrapper pour le fondu (à ajouter si tu veux l'effet, voir note plus bas) */
/* ===== CONTENEUR SCROLL - OMBRES SUR LES BORDS POUR INDIQUER LE SCROLL ===== */
.services-scroll-row-wrapper {
    position: relative;
}

.services-scroll-row-wrapper::before,
.services-scroll-row-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 20px;
    width: 40px;
    z-index: 5;
    pointer-events: none;
}

.services-scroll-row-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f4f7fb, transparent);
}

.services-scroll-row-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f4f7fb, transparent);
}
.services-scroll-row .service-card {
    flex: 0 0 auto;
    width: 260px;
    scroll-snap-align: start;
}

/* Scrollbar discrète */
.services-scroll-row::-webkit-scrollbar {
    height: 5px;
}
.services-scroll-row::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #0F4C81, #1DA1F2);
    border-radius: 10px;
}
.services-scroll-row::-webkit-scrollbar-thumb:hover {
    background: #0F4C81;
}
.services-scroll-row::-webkit-scrollbar-track {
    background: #e1e8ed;
    border-radius: 10px;
    margin: 0 24px;
}
/* =========================
   WHY SECTION
   ========================= */
.why-section{
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /*parallax simple */
  background-repeat: no-repeat;
  isolation: isolate;

}

/* overlay sombre */
.why-section::before{
  content:"";
  position:absolute;
  inset:0;
/* WHY NETWORK EFFECT */
   background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .18;
  z-index: 1;
  animation: whyGridMove 18s linear infinite;
  pointer-events: none;
}

/* WHY NETWORK EFFECT */
@keyframes whyGridMove{
  from{
    transform: translateY(0);
  }
  to{
    transform: translateY(80px);
  }
}

/* contenu au-dessus */
.why-section > *{
  position: relative;
  z-index: 2;
}

/* STATS */
.why-section .wp-block-columns:first-of-type{
  margin-top: 25px;
  margin-bottom: 35px;
}

/* =========================
   STATS GLASSMORPHISM
   ========================= */

.stats-grid > *,
.why-section .wp-block-columns:first-of-type .wp-block-column{
  position: relative;
  overflow: hidden;

  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 10px 30px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.12);

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

/* effet hover */
.stats-grid > *:hover,
.why-section .wp-block-columns:first-of-type .wp-block-column:hover{
  transform: translateY(-8px);
  border-color: rgba(0,200,83,.22);
  box-shadow:
    0 18px 40px rgba(0,0,0,.18),
    0 0 0 1px rgba(0,200,83,.10),
    0 10px 30px rgba(0,200,83,.10);
}

/* reflet subtil */
.stats-grid > *::before,
.why-section .wp-block-columns:first-of-type .wp-block-column::before{
  content:"";
  position:absolute;
  top:-40%;
  left:-20%;
  width:80%;
  height:180%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.10) 50%,
    transparent 100%
  );
  transform: rotate(18deg);
  opacity:.55;
  pointer-events:none;
}

/* chiffres */
.stats-grid h3,
.stats-grid h4,
.why-section .wp-block-columns:first-of-type h3,
.why-section .wp-block-columns:first-of-type h4{
  color: #1DA1F2 !important;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.5px;
  margin-bottom: 8px !important;
  text-shadow: 0 0 18px rgba(0,200,83,.12);
}

/* texte des stats */
.stats-grid p,
.why-section .wp-block-columns:first-of-type > p{
  color: rgba(255,255,255,.82) !important;
  font-size: 15px !important;
  line-height: 1.6;
  margin: 0 !important;
}

.why-section > p {
  color: rgba(255,255,255,.88);
}

/* =========================
   STATS PREMIUM HALO
   ========================= */

.counter-value{
  position: relative;
  display: inline-block;
  font-weight:700;
  letter-spacing:1px;
  z-index: 1;
}

/* activation au hover */
.why-section .wp-block-column:hover .counter-value::before{
  opacity:1;
}

/* halo */
.counter-value::before{
  content:"";
  position:absolute;
  inset:-12px;
  border-radius:16px;
  background: radial-gradient(
    circle,
    rgba(0,200,83,0.22),
    rgba(0,200,83,0.10) 40%,
    transparent 72%
  );
  opacity:.22;
  animation: statPulse 3s ease-in-out infinite;
  z-index:-1;
}

/* suffixes */
.counter-percent::after{
  content:"%";
  margin-left: 2px;
  font-size: .9em;
  opacity: .9;
}

.counter-hours::after{
  content:"h";
  margin-left: 2px;
  font-size: .9em;
  opacity: .9;
}

@keyframes statPulse{
  0%{
    transform:scale(.9);
    opacity:.15;
  }

  50%{
    transform:scale(1.05);
    opacity:.35;
  }

  100%{
    transform:scale(.9);
    opacity:.15;
  }
}

.why-section h2{
  color: #ffffff !important;
  text-shadow:
    0 8px 20px rgba(0,0,0,.35);
}

.why-section h2::after{
  content:"";
  display:block;
  width:70px;
  height:3px;
  background: #1DA1F2;
  margin:18px auto 0;
  border-radius:2px;
}

/* CARDS */
.why-card{
  background: rgba(255,255,255,0.94) !important;
  backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
  transition: transform .3s ease, box-shadow .3s ease;
  margin-bottom: 20px;
  margin-top: 50px !important;
}

.why-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,.1),
              0 0 0 1px rgba(0,200,83,.15),
              0 8px 25px rgba(0,200,83,.15);
}

.why-card:hover .why-icon{
  color: #1DA1F2;
  filter: drop-shadow(0 0 6px rgba(0,200,83,.4));
}

.why-card h4{
  color: #0F4C81;
  margin-bottom: 10px;
  font-weight: 600;
}

.why-card p{
  margin: 0;
  color: #555;
  font-size: 14px;
}

/* Center CTA button */
.why-section .wp-block-buttons{
  justify-content: center;
  margin-top: 10px;
}

/* WHY ICON */
.why-icon{
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  color: #1DA1F2;
  transform: scale(1);
  opacity: 1 !important;
  transition: transform .6s cubic-bezier(.34,1.56,.64,1),
              opacity .4s ease;
}

/* seulement si animation active */
.why-card:not(.is-visible) .why-icon{
  transform: scale(0.85);
  opacity: 0;
}

/* =========================
   REALISATION PREMIUM MEDIA
   ========================= */
.realisation-media{
  position: relative;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.realisation-media::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.15)
  );
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 1;
}

.realisation-card:hover .realisation-media::before{
  opacity: 1;
}

.realisation-media .wp-block-image{
  margin: 0 !important;
}

.realisation-media img{
  width: 100%;
  display: block;
  transition: transform .45s ease;
}

.realisation-card:hover .realisation-media img{
  transform: scale(1.08);
}

/* Icon on image */
.realisation-icon{
  position: absolute;
  top: 16px;
  right: 16px;

  width: 48px;
  height: 48px;

  border-radius: 50%;

  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);

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

  font-size: 22px;

  z-index: 2;

  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .35s ease, transform .35s ease;
}

.realisation-card:hover .realisation-icon {
  opacity: 1;
  transform: translateY(0);
}

/* Overlay button */
.realisation-overlay-btn{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%);
  z-index: 2;
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
}

.realisation-card:hover .realisation-overlay-btn{
  opacity: 1;
  transform: translate(-50%, -50%);
}

.realisation-overlay-btn .wp-block-button__link{
  background: #1DA1F2 !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 12px 20px !important;
  box-shadow: 0 10px 24px rgba(0,200,83,.25) !important;
}

.realisation-overlay-btn .wp-block-button__link:hover{
  transform: none !important;
  box-shadow: 0 12px 28px rgba(0,200,83,.35) !important;
}

/* =========================
   REALISATIONS SECTION
   ========================= */
.realisation-section{
  padding: 80px 0;
  background: #F4F6F9;
}

.realisation-card{
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
  transition: opacity .8s cubic-bezier(.21,.61,.35,1),
              transform .8s cubic-bezier(.21,.61,.35,1),
              box-shadow .3s ease;
  opacity: 0;
  transform: translateY(50px);
  will-change: opacity, transform;
  margin-top: 50px !important;
}

.realisation-card.is-visible{
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--delay, 0s);
}

.realisation-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,.1);
}

.realisation-card img{
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin-top: 10px;
}

.realisation-card .wp-block-image{
  margin-bottom: 0;
}

.realisation-card .wp-block-group,
.realisation-card > *:not(.wp-block-image){
  padding-left: 22px !important;
  padding-right: 22px !important;
}

.realisation-category{
  color: #1DA1F2 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  margin-top: 18px !important;
  margin-bottom: 8px;
}

.realisation-card h4{
  color: #0F4C81 !important;
  margin-bottom: 10px !important;
  font-weight: 600 !important;
}

.realisation-card p{
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px !important;
}

.realisation-section .wp-block-buttons{
  justify-content: center !important;
  margin-top: 20px !important;
}

/* =========================
   PROCESS TIMELINE
   ========================= */
.process-section{
  padding: 90px 0 !important;
  background: #ffffff !important;
}

.process-timeline{
  margin-top: 40px !important;
  position: relative !important;
}

/* ligne horizontale derrière */
.process-timeline::before{
  content: "" !important;
  position: absolute !important;
  top: 52px !important;
  left: 8% !important;
  right: 8% !important;
  height: 2px !important;
  background: linear-gradient(to right, rgba(15,76,129,.15), rgba(0,200,83,.25)) !important;
  z-index: 0 !important;
}

.process-step{
  position: relative !important;
  text-align: center !important;
  padding: 0 14px !important;
  z-index: 1 !important;
  opacity: 0 !important;
  transform: translateY(40px) !important;
  transition: opacity .8s cubic-bezier(.21,.61,.35,1),
              transform .8s cubic-bezier(.21,.61,.35,1) !important;
}

.process-step.is-visible{
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition-delay: var(--delay, 0s) !important;
}

.process-number{
  width: 52px !important;
  height: 52px !important;
  margin: 0 auto 14px !important;
  border-radius: 50% !important;
  background: #0F4C81 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 10px 24px rgba(15,76,129,.18) !important;
  position: relative !important;
  z-index: 2 !important;
}

.process-icon{
  font-size: 30px !important;
  margin-bottom: 14px !important;
  line-height: 1 !important;
  transform: scale(0.85) !important;
  opacity: 0 !important;
  transition: transform .5s cubic-bezier(.31,1.65,.64,1),
              opacity .4s ease !important;
}

.process-step.is-visible .process-icon{
  transform: scale(1) !important;
  opacity: 1 !important;
}

.process-step h4{
  color: #0F4C81 !important;
  margin-bottom: 10px !important;
  font-weight: 600 !important;
  font-size: 20px !important;
}

.process-step p{
  color: #555;
  font-size: 14px !important;
  line-height: 1.7 !important;
  margin: 0 !important;
  max-width: 260px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =========================
   TESTIMONIALS SECTION
   ========================= */
.testimonials-section{
  padding: 90px 0;
  background: #F4F6F9;
}

.testimonials-grid{
  margin-top: 40px;
  gap: 24px !important;
}

.testimonial-card{
  position: relative;
  background: #ffffff;
  padding: 34px 28px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
  transition: transform .3s ease, box-shadow .3s ease,
              opacity .8s cubic-bezier(.21,.61,.35,1),
              background .3s ease;
  opacity: 0;
  transform: translateY(40px);
  min-height: 360px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden; /*TESTIMONIAL LIGHT SWEEP*/
}

/*TESTIMONIAL LIGHT SWEEP*/
.testimonial-card::before{
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.10) 45%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.10) 55%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left .7s ease;
  pointer-events: none;
  z-index: 1;
}

.testimonial-card:hover::before{
  left: 140%;
}

.testimonial-card.is-visible{
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--delay, 0s);
}

.testimonial-card:hover{
  transform: translateY(-8px);
  border-color: rgba(15,76,129,.08);
  box-shadow:
    0 20px 45px rgba(0,0,0,.08),
    0 0 0 1px rgba(15,76,129,.06),
    0 10px 30px rgba(15,76,129,.06);
}

/* featured card */
.testimonial-card.is-featured{
  background: #0F4C81 !important;
}

/* effet de fond très subtil */
.testimonial-card:not(.is-featured):hover{
  background:
    radial-gradient(circle at top right, rgba(15,76,129,.035), transparent 35%),
    #ffffff;
}

/* card featured bleue */
.testimonial-card.is-featured:hover{
  box-shadow:
    0 24px 50px rgba(0,0,0,.14),
    0 0 0 1px rgba(255,255,255,.06),
    0 0 30px rgba(15,76,129,.10);
}

.testimonial-card.is-featured p,
.testimonial-card.is-featured h4,
.testimonial-card.is-featured .testimonial-stars,
.testimonial-card.is-featured .testimonial-avatar,
.testimonial-card.is-featured .testimonial-author h4,
.testimonial-card.is-featured .testimonial-author p{
  color: #ffffff;
}

/* léger accent sur le nom */
.testimonial-card:hover .testimonial-author h4{
  transform: translateX(2px);
  transition: transform .25s ease, color .25s ease;
}
/* légère accentuation du meta */
.testimonial-card:hover .testimonial-author p{
  color: #5f6b78;
  transition: color .25s ease;
}
/* sur la card bleue */
.testimonial-card.is-featured:hover .testimonial-author p{
  color: rgba(255,255,255,.82);
}
/* étoiles un peu plus lumineuses */
.testimonial-card:hover .testimonial-stars{
  filter: saturate(1.08);
}
/* date */
.testimonial-date{
  font-size: 11px;
  color: #0F4C81;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  font-style: italic;
  text-align: center;
  opacity: .7;
}

/* card bleue */
.testimonial-card.is-featured .testimonial-date{
  color: rgba(255,255,255,.75);
}

/* premium svg stars */
.testimonial-stars{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  color: #F5C84C;
}

.testimonial-stars::after{
  content:"";
  display:block;
  width:32px;
  height:2px;
  background:#e8edf3;
  margin-top:12px;
}

.testimonial-stars .star{
  display: inline-flex;
  width: 16px !important;
  height: 16px !important;
  transform: translateY(0) scale(1);
  transition: transform .25s ease, filter .25s ease;
}

.testimonial-stars .star svg{
  width: 100%;
  height: 100%;
  display: block;
}

.testimonial-card:hover .testimonial-stars .star{
  transform: translateY(-1px) scale(1.06);
  filter: drop-shadow(0 2px 8px rgba(245,200,76,.22));
}

/* featured card: stars stay elegant on blue */
.testimonial-card.is-featured .testimonial-stars{
  color: #FFD76A;
}

.testimonial-card.is-featured .testimonial-stars::after{
  background:rgba(255,255,255,.35);
}

.testimonial-card.is-featured .testimonial-quote{
  color: rgba(255,255,255,0.18);
}

/* text */
.testimonial-card > p{
  color: #5a6470;
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
  position: relative; /* quotes dans le texte */
  z-index: 2;
}

/* quote début */
.testimonial-card > p::before{
  content: "❝";
  font-size: 26px;
  color: rgba(15,76,129,0.25);
  margin-right: 6px;
}

/* quote fin */
.testimonial-card > p::after{
  content: "❞";
  font-size: 26px;
  color: rgba(15,76,129,0.25);
  margin-left: 6px;
}

/* couleur pour la card bleue */
.testimonial-card.is-featured > p::before,
.testimonial-card.is-featured > p::after{
  color: rgba(255,255,255,0.5);
}

/* author */
.testimonial-author{
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  position: relative;
  z-index: 2;
}

/* premium avatar badge */
.testimonial-avatar{
  width: 54px;
  height: 54px;
  border-radius: 50%;

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

  font-size: 15px;
  font-weight: 700;

  color: #ffffff;

  background: linear-gradient(135deg,#0F4C81,#1F6FB2);

  box-shadow:
    0 10px 25px rgba(15,76,129,.25),
    inset 0 1px 0 rgba(255,255,255,.15);

  position: relative;
  flex-shrink: 0;

  transition: transform .3s ease, box-shadow .3s ease;
}

/* petit point décoratif */
.testimonial-avatar::after{
  content:"";
  position:absolute;

  width:10px;
  height:10px;
  border-radius:50%;

  background: #1DA1F2;

  bottom:3px;
  right:3px;

  box-shadow:0 0 0 2px #fff;
}

/* featured card avatar: card bleue */
.testimonial-card.is-featured .testimonial-avatar{
  background: rgba(255,255,255,.18);
  box-shadow:
    0 10px 24px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.25);
}

/* hover */
.testimonial-card:hover .testimonial-avatar{
  transform: scale(1.08);
  box-shadow:
    0 16px 35px rgba(15,76,129,.35),
    inset 0 1px 0 rgba(255,255,255,.2);
}

/* author text wrapper */
.testimonial-author-text{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* name */
.testimonial-author h4{
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #0F4C81;
  letter-spacing: -0.2px;
}

/* meta */
.testimonial-author p{
  margin: 0;
  font-size: 14px;
  color: #7b8591;
  line-height: 1.5;
}

/* =========================
   CTA FINAL SECTION - PREMIUM
   ========================= */

.cta-section{
  position: relative;
  overflow: hidden;

  padding: 110px 24px;
  text-align: center;
  border-radius: 28px;
  margin-top: 70px;

  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(0,200,83,.16), transparent 28%),
    linear-gradient(135deg, #0B3F74 0%, #0F4C81 45%, #1F6FB2 100%);

  color: #ffffff;

  box-shadow:
    0 30px 70px rgba(15,76,129,.22),
    inset 0 1px 0 rgba(255,255,255,.08);
}

/* halos décoratifs */
.cta-section::before{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  top:-180px;
  right:-120px;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 68%);
  pointer-events:none;
}

.cta-section::after{
  content:"";
  position:absolute;
  width:380px;
  height:380px;
  bottom:-170px;
  left:-120px;
  background: radial-gradient(circle, rgba(0,200,83,.22), transparent 70%);
  pointer-events:none;
}

/* contenu au-dessus des halos */
.cta-section > *{
  position: relative;
  z-index: 2;
}

.cta-section h2{
  color: #ffffff;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section p{
  max-width: 760px;
  margin: 0 auto 34px;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255,255,255,.88);
}

.cta-section .wp-block-buttons{
  justify-content: center;
  gap: 16px;
}

/* bouton principal */
.cta-section .wp-block-button:first-child .wp-block-button__link{
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1DA1F2, #09d861) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 16px 28px !important;
  box-shadow:
    0 14px 30px rgba(0,200,83,.28),
    0 0 0 1px rgba(255,255,255,.08) inset !important;
}

.cta-section .wp-block-button:first-child .wp-block-button__link::after{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:60%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.35),
    transparent
  );
  transform:skewX(-20deg);
  transition:left .7s ease;
}

/* bouton secondaire */
.cta-section .wp-block-button:last-child .wp-block-button__link{
  background: rgba(255,255,255,.05) !important;
  border: 1.5px solid rgba(255,255,255,.28) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  padding: 16px 28px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* hover premium */
.cta-section .wp-block-button:first-child .wp-block-button__link:hover{
  transform: translateY(-3px) !important;
  box-shadow:
    0 18px 36px rgba(0,200,83,.34),
    0 0 0 1px rgba(255,255,255,.10) inset !important;
}

.cta-section .wp-block-button:first-child .wp-block-button__link:hover::after{
  left:140%;
}

.cta-section .wp-block-button:last-child .wp-block-button__link:hover{
  transform: translateY(-3px) !important;
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.45) !important;
}

/* =========================
   FOOTER
   ========================= */
.site-footer{
  margin-top: 80px;
  padding: 70px 24px 28px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(0,200,83,.08), transparent 22%),
    radial-gradient(circle at 88% 20%, rgba(255,255,255,.04), transparent 18%),
    linear-gradient(180deg, #071a2f 0%, #081f38 100%);
  color: #ffffff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow:
    0 -8px 30px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.03);
}

/* fine ligne premium en haut */
.site-footer::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,.15),
    rgba(0,200,83,.20),
    rgba(255,255,255,.15),
    transparent
  );
}

/* colonne logo */
.site-footer .footer-logo img{
  max-width: 150px;
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.site-footer .footer-brand-text{
  max-width: 290px;
  color: rgba(255,255,255,.78);
  line-height: 1.9;
  text-align: left;
}

/* grille footer plus équilibrée */
.footer-grid{
  align-items: start;
  gap: 36px !important;
}

.site-footer h3,
.site-footer h4{
  color: #ffffff;
  position: relative;
  display: inline-block;
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.site-footer h3::after,
.site-footer h4::after{
  content:"";
  position:absolute;
  
  bottom:-10px;

  width:42px;
  height:3px;
  border-radius:4px;

  left:50%;
  transform:translateX(-50%);

  background: linear-gradient(
    90deg,
    #1DA1F2,
    #1DA1F2,
    rgba(0,200,83,.25)
  );

  box-shadow: 0 0 8px rgba(0,200,83,.35);
}

.site-footer p,
.site-footer li,
.site-footer a{
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.8;
  text-decoration: none;
}

/* liens footer */
.site-footer a{
  transition: color .25s ease, transform .25s ease, opacity .25s ease;
}

.site-footer a:hover{
  color: #1DA1F2;
  transform: translateX(2px);
}

.site-footer ul{
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

/* listes */
.site-footer ul li,
.site-footer .wp-block-list li{
  margin-bottom: 10px;
}

.footer-contact-item{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
  margin-top: 20px !important;
  color: rgba(255,255,255,.82);
}

.footer-contact-item svg{
  flex-shrink:0;
  opacity: .95;
}

/* réseaux sociaux */
.footer-social{
  display:flex;
  gap:12px;
  margin-top:16px;
}

.social-icon{
  width:40px;
  height:40px;

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

  border-radius:50%;
  background:rgba(255,255,255,0.08);

  color:#ffffff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition:all .3s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.social-icon:hover{
  color:#fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,200,83,.25);
}

/* copyright */
.footer-bottom{
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,.68);
  letter-spacing: .2px;
}

/* =========================
   RESPONSIVE (MOBILE)
   ========================= */

   /* Tablette */
@media (max-width: 1024px){
  .why-section{
    background-attachment: scroll;
  }

  .why-grid, 
  .services-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .realisations-grid{
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .process-timeline{
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
  }

  .process-timeline::before{
    display: none;
  }

  .testimonials-grid{
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }

  .testimonial-card{
    min-height: 320px;
  }

  .footer-grid{
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}

@media (max-width: 768px){
  .why-section{
    background-attachment: scroll;
  }

  .services-section,
  .why-section{
    padding: 56px 0 !important;
  }

  .service-card,
  .why-card{
    padding: 22px !important;
    margin-bottom: 16px !important;
  }

  .why-section h2,
  .services-section h2{
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  .service-card p,
  .why-card p,
  .why-section p{
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  .wp-block-button__link{
    width: 100%;
    text-align: center;
    padding: 14px 18px !important;
  }

  .wp-block-buttons{
    justify-content: center !important;
  }

  .service-icon svg,
  .why-icon svg{
    width: 34px;
    height: 34px;
  }

  /* NEW MOBILE FIX */
  .services-section .wp-block-group.is-layout-flex,
  .why-section .wp-block-group.is-layout-flex{
    flex-direction: column !important;
    gap: 16px !important;
  }

  .services-section .wp-block-columns.is-layout-flex > .wp-block-column,
  .why-section .wp-block-columns.is-layout-flex > .wp-block-column{
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Force Gutenberg columns to become 1 column per row */
  .entry-content .wp-block-columns,
  .wp-block-post-content .wp-block-columns{
    display: block !important;
  }

  .entry-content .wp-block-columns .wp-block-column,
  .wp-block-post-content .wp-block-columns .wp-block-column{
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    display: block !important;
  }

    .why-grid,
    .services-grid,
    .stats-grid{
      grid-template-columns: 1fr !important; /* 1 colonne */
      gap: 14px !important;
  }

  .realisation-section{
    padding: 56px 0 !important;
  }

  .realisations-grid{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .realisation-card h4{
    font-size: 24px !important;
    line-height: 1.25 !important;
  }

  .realisation-overlay-btn{
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .realisation-media::before{
    opacity: 1;
  }

  .realisation-icon{
    opacity: 1;
    transform: translateY(0);
  }

  .realisation-overlay-btn .wp-block-button__link{
    width: auto !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
  }

  .process-section{
    padding: 56px 0 !important;
  }

  .process-timeline{
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .process-timeline::before{
    display: none;
  }

  .process-step{
    padding: 0 !important;
  }

  .process-step h4{
    font-size: 22px !important;
  }

  .testimonials-section{
    padding: 56px 0 !important;
  }

  .testimonials-grid{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .testimonial-card{
    min-height: auto;
    padding: 26px 22px !important;
  }

  .testimonial-author h4{
    font-size: 16px !important;
  }

  .testimonial-card > p{
    font-size: 15px !important;
    line-height: 1.8 !important;
  }

    .site-footer{
    margin-top: 56px;
    padding: 50px 20px 24px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }

  .footer-grid{
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .site-footer h3,
  .site-footer h4{
    font-size: 18px;
  }

  .site-footer p,
  .site-footer li,
  .site-footer a{
    font-size: 14px;
  }

    .stats-grid > *,
  .why-section .wp-block-columns:first-of-type .wp-block-column{
    padding: 18px !important;
    border-radius: 16px;
  }

  .stats-grid h3,
  .stats-grid h4,
  .why-section .wp-block-columns:first-of-type h3,
  .why-section .wp-block-columns:first-of-type h4{
    font-size: 30px !important;
  }

  .stats-grid p,
  .why-section .wp-block-columns:first-of-type p{
    font-size: 14px !important;
  }
}

/* ===== BARRE RECHERCHE INLINE HEADER ===== */

/* Supprimer le modal */
#search-modal {
    display: none !important;
}

.entry-content.is-layout-flow {
  width: 700px !important;
}
/* Formulaire inline */
.header-search-inline-form {
    display: flex !important;
    align-items: center !important;
    max-width: 700px !important;
    width: 100% !important;
    margin: 0 auto !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    border: 1.5px solid #e1e8ed !important;
    background: #f4f7fb !important;
    transition: border-color 0.2s !important;
}


.header-search-inline-form:focus-within {
    border-color: #0F4C81 !important;
    background: #ffffff !important;
}

/* Champ texte */
.header-search-input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 12px 18px !important;
    font-size: 15px !important;
    color: #1F2937 !important;
    outline: none !important;
    min-width: 0 !important;
}

.header-search-input::placeholder {
    color: #9ca3af !important;
}

/* Bouton */
.header-search-btn {
    background: #0F4C81 !important;
    border: none !important;
    padding: 12px 18px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s !important;
    flex-shrink: 0 !important;
}

.header-search-btn:hover {
    background: #1DA1F2 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .header-search-inline-form {
        max-width: 100% !important;
        margin: 8px 16px !important;
    }
}

/* ===== BOUTON WISHLIST EN OVERLAY SUR L'IMAGE ===== */

/* Le conteneur de l'image doit être en position relative pour que l'overlay fonctionne */
.product-small .image-outer,
li.product .woocommerce-loop-product__link {
    position: relative !important;
    overflow: visible !important;
}

/* Le bouton wishlist */
.yith-wcwl-add-to-wishlist,
.add_to_wishlist {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 10 !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Cacher le texte "Ajouter à la liste d'envies" */
.yith-wcwl-add-to-wishlist .feedback,
.yith-wcwl-wishlistaddedbrowse a span,
.yith-wcwl-wishlistexistsbrowse a span,
.add_to_wishlist .yith-wcwl-icon + span,
.yith-wcwl-add-to-wishlist a span:not(.yith-wcwl-icon) {
    display: none !important;
}

/* Garder juste l'icône, la centrer */
.yith-wcwl-add-to-wishlist a,
.add_to_wishlist a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.yith-wcwl-add-to-wishlist svg,
.yith-wcwl-icon {
    width: 18px !important;
    height: 18px !important;
    fill: #0F4C81 !important;
    color: #0F4C81 !important;
}

.yith-wcwl-add-to-wishlist a:hover svg,
.yith-wcwl-add-to-wishlist a:hover .yith-wcwl-icon {
    fill: #e53e3e !important;
    color: #e53e3e !important;
}

/* Effet au survol de la carte produit */
.product-small:hover .yith-wcwl-add-to-wishlist {
    transform: scale(1.05) !important;
}

/* ===== MENU PRINCIPAL - HOVER & ACTIVE SIMPLES ===== */

#header-menu-1 ul.menu {
    display: flex;
    gap: 4px;
    justify-content: center;
}

#header-menu-1 ul.menu > li > a.ct-menu-link {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 22px 18px !important;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Hover — fond blanc léger */
#header-menu-1 ul.menu > li > a.ct-menu-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

#header-menu-1 ul.menu > li.current-menu-item > a.ct-menu-link {
    color: #ffffff !important;
    background: transparent;
    position: relative;
}

/* ===== ICONE WISHLIST DANS LE HEADER ===== */

.header-wishlist-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #e53e3e ;
    text-decoration: none;
    transition: color 0.2s;
    margin-right: 8px;
}

.header-wishlist-icon:hover {
    color: #0F4C81;
}

.header-wishlist-icon svg {
    width: 20px;
    height: 20px;
}

.header-wishlist-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #0F4C81;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 3px;
}

.header-wishlist-count:empty {
    display: none;
}