/* =====================================================
   ZEB PACK EXPERTISE — VPCE PREMIUM CLEAN
   RESPONSIVE • TITRES SANS COUPURE • LIENS AUTOMATIQUES
===================================================== */

.zeb-expertise-page{
  background:#fff;
  color:#172104;
  font-family:'Manrope', Arial, sans-serif;
  overflow:hidden;
}

.zeb-expertise-page *,
.zeb-expertise-page *::before,
.zeb-expertise-page *::after{
  box-sizing:border-box;
}

/* =====================================================
   SECTIONS
===================================================== */

.zeb-expertise-intro,
.zeb-expertise-content,
.zeb-expertise-focus,
.zeb-expertise-cta{
  position:relative;
  padding:60px 0;
}

.zeb-expertise-intro{
  background:#fff;
}

.zeb-expertise-content{
  background:
    radial-gradient(circle at 10% 12%, rgba(217,189,115,.12), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8f6ef 100%);
}

.zeb-expertise-focus{
  background:
    radial-gradient(circle at 16% 18%, rgba(217,189,115,.20), transparent 30%),
    linear-gradient(135deg, #0d1503 0%, #172504 55%, #101904 100%);
  color:#fff;
}

.zeb-expertise-intro__inner,
.zeb-expertise-content__inner,
.zeb-expertise-focus__inner{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:34px;
  align-items:stretch;
}

.zeb-expertise-content__inner--single{
  display:block;
}

/* =====================================================
   TYPOGRAPHIE
===================================================== */

.zeb-expertise-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
  color:#8d741d;
  font-size:10.5px;
  font-weight:800;
  line-height:1.3;
  text-transform:uppercase;
  letter-spacing:.15em;
}

.zeb-expertise-eyebrow::before{
  content:"";
  width:30px;
  height:1px;
  flex:0 0 30px;
  background:#d9bd73;
}

/*
 * RÈGLE FORTE POUR TOUS LES TITRES
 * - jamais de coupure dans un mot ;
 * - retour à la ligne uniquement entre les mots ;
 * - largeur réellement disponible respectée ;
 * - aucun débordement du grid.
 */
.zeb-expertise-page :is(h1,h2,h3,h4,h5,h6){
  display:block;
  width:100% !important;
  max-width:none !important;
  min-width:0;

  inline-size:100% !important;
  max-inline-size:none !important;

  overflow:visible !important;
  white-space:normal !important;

  overflow-wrap:normal !important;
  word-wrap:normal !important;
  word-break:normal !important;
  hyphens:none !important;

  text-wrap:wrap !important;
}

.zeb-expertise-page h2{
  margin:0 0 18px;
  color:#142002;
  font-size:clamp(31px, 6vw, 62px);
  line-height:1.04;
  font-weight:700;
  letter-spacing:-.05em;
}

.zeb-expertise-page h3{
  margin:0 0 14px;
  color:#172104;
  font-size:clamp(21px, 3.2vw, 30px);
  line-height:1.16;
  font-weight:700;
  letter-spacing:-.03em;
}

/* =====================================================
   TEXTES JUSTIFIÉS SUR TOUS LES ÉCRANS
===================================================== */

.zeb-expertise-page p,
.zeb-expertise-page li{
  color:#333;
  font-size:15px;
  line-height:1.74;
  font-weight:400;

  text-align:justify !important;
  text-align-last:left !important;
  text-justify:inter-word;

  word-spacing:0 !important;
  letter-spacing:0 !important;

  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word;
  hyphens:none !important;

  text-wrap:pretty;
}

.zeb-expertise-page p{
  margin:0 0 16px;
}

.zeb-expertise-page ul{
  margin:0;
  padding-left:20px;
}

.zeb-expertise-page li{
  margin-bottom:12px;
}

.zeb-expertise-intro__content{
  width:100%;
  min-width:0;
  max-width:none;
}

.zeb-expertise-intro__content::before{
  content:"";
  display:block;
  width:86px;
  height:4px;
  margin-bottom:26px;
  background:#d9bd73;
}

/* =====================================================
   LIENS TEXTUELS AUTOMATIQUES
===================================================== */

.zeb-expertise-page a:not(.zeb-expertise-btn):not([class*="btn"]):not([role="button"]){
  position:relative;
  display:inline;
  color:#31420f;
  text-decoration:none;

  background-image:linear-gradient(#31420f, #31420f);
  background-repeat:no-repeat;
  background-position:left calc(100% - 1px);
  background-size:0 2px;

  transition:
    color .30s ease,
    background-size .38s cubic-bezier(.22,1,.36,1);
}

.zeb-expertise-page a:not(.zeb-expertise-btn):not([class*="btn"]):not([role="button"]):hover,
.zeb-expertise-page a:not(.zeb-expertise-btn):not([class*="btn"]):not([role="button"]):focus-visible{
  color:#233308;
  background-size:100% 2px;
}

.zeb-expertise-focus a:not(.zeb-expertise-btn):not([class*="btn"]):not([role="button"]),
.zeb-expertise-cta a:not(.zeb-expertise-btn):not([class*="btn"]):not([role="button"]){
  color:#fff;
  background-image:linear-gradient(#d9bd73, #d9bd73);
}

.zeb-expertise-page a:focus-visible,
.zeb-expertise-btn:focus-visible{
  outline:2px solid #31420f;
  outline-offset:4px;
}

/* =====================================================
   IMAGE INTRO
===================================================== */

.zeb-expertise-intro__media{
  position:relative;
  min-width:0;
  margin:0;
  height:300px;
  overflow:hidden;
  background:#e9e4d8;
  border-radius:0 !important;
  box-shadow:0 22px 58px rgba(0,0,0,.10);
}

.zeb-expertise-intro__media img,
.zeb-expertise-cta__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:var(--zeb-expertise-img-position, center center);
  display:block;
  border-radius:0 !important;
  transition:transform .80s cubic-bezier(.22,1,.36,1);
}

.zeb-expertise-intro__media:hover img,
.zeb-expertise-cta:hover .zeb-expertise-cta__media img{
  transform:scale(1.035);
}

/* =====================================================
   BLOCS CENTRAUX
===================================================== */

.zeb-expertise-block,
.zeb-expertise-panel{
  position:relative;
  min-width:0;
  min-height:100%;
  background:#fff;
  border:1px solid rgba(34,48,6,.10);
  box-shadow:0 18px 48px rgba(0,0,0,.055);
  padding:28px;
  overflow:hidden;
}

.zeb-expertise-block::before,
.zeb-expertise-panel::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:linear-gradient(180deg, #31420f, #d9bd73);
  opacity:.95;
}

.zeb-expertise-panel{
  background:
    radial-gradient(circle at 90% 10%, rgba(217,189,115,.14), transparent 34%),
    #fff;
}

.zeb-expertise-panel h3{
  color:#172104;
}

.zeb-expertise-panel li{
  color:#333;
}

.zeb-expertise-block > *,
.zeb-expertise-panel > *{
  position:relative;
  z-index:2;
}

/* =====================================================
   FOCUS SOMBRE
===================================================== */

.zeb-expertise-focus h2,
.zeb-expertise-focus h3,
.zeb-expertise-focus p,
.zeb-expertise-focus li{
  color:#fff !important;
}

.zeb-expertise-focus .zeb-expertise-eyebrow{
  color:#d9bd73;
}

.zeb-expertise-focus__inner{
  max-width:980px;
}

.zeb-expertise-focus__inner > div{
  min-width:0;
  padding:0;
}

/* =====================================================
   CTA FINAL
===================================================== */

.zeb-expertise-cta{
  min-height:420px;
  display:grid;
  align-items:center;
  overflow:hidden;
  background:#111905;
  color:#fff;
  margin-bottom:0 !important;
}

.zeb-expertise-cta__media{
  position:absolute;
  inset:0;
}

.zeb-expertise-cta__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      105deg,
      rgba(13,20,3,.94) 0%,
      rgba(13,20,3,.80) 45%,
      rgba(13,20,3,.42) 100%
    );
}

.zeb-expertise-cta__content{
  position:relative;
  z-index:2;
  width:min(980px, calc(100% - 32px));
  margin:0 auto;
  min-width:0;
}

.zeb-expertise-cta h2,
.zeb-expertise-cta p{
  color:#fff !important;
}

.zeb-expertise-cta p{
  max-width:680px;
}

.zeb-expertise-phone{
  font-size:18px !important;
  margin-bottom:22px !important;
}

.zeb-expertise-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:13px 22px;

  background:#fff;
  color:#172104;
  text-decoration:none;

  font-size:12px;
  font-weight:800;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.07em;

  transition:
    transform .35s ease,
    background .35s ease,
    color .35s ease,
    box-shadow .35s ease;
}

.zeb-expertise-btn:hover{
  transform:translateY(-3px);
  background:#d9bd73;
  color:#172104;
  box-shadow:0 18px 36px rgba(217,189,115,.24);
}

/* =====================================================
   ANIMATIONS DOUCES
===================================================== */

.zeb-expertise-reveal{
  opacity:1;
  transform:none;
}

.zeb-expertise-js .zeb-expertise-reveal{
  opacity:0;
  transform:translateY(22px);

  transition:
    opacity .68s ease,
    transform .68s cubic-bezier(.22,1,.36,1);

  transition-delay:var(--zeb-exp-delay, 0ms);
  will-change:opacity, transform;
}

.zeb-expertise-js .zeb-expertise-reveal.zeb-expertise-reveal--left{
  transform:translateX(-22px) translateY(12px);
}

.zeb-expertise-js .zeb-expertise-reveal.zeb-expertise-reveal--right{
  transform:translateX(22px) translateY(12px);
}

.zeb-expertise-js .zeb-expertise-reveal.is-visible{
  opacity:1;
  transform:translateX(0) translateY(0);
  will-change:auto;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width:719px){
  .zeb-expertise-intro,
  .zeb-expertise-content,
  .zeb-expertise-focus,
  .zeb-expertise-cta{
    padding:58px 0;
  }

  .zeb-expertise-intro__inner,
  .zeb-expertise-content__inner,
  .zeb-expertise-focus__inner{
    width:calc(100% - 28px);
    gap:28px;
  }

  .zeb-expertise-page h2{
    font-size:clamp(30px, 9.2vw, 43px);
    line-height:1.07;
    letter-spacing:-.04em;
  }

  .zeb-expertise-page h3{
    font-size:clamp(21px, 6.2vw, 27px);
    line-height:1.18;
  }

  .zeb-expertise-page p,
  .zeb-expertise-page li{
    font-size:15px;
    line-height:1.72;
  }

  .zeb-expertise-intro__media{
    height:260px;
  }

  .zeb-expertise-block,
  .zeb-expertise-panel{
    padding:26px 24px;
  }

  .zeb-expertise-btn{
    width:100%;
  }

  .zeb-expertise-phone{
    font-size:15px !important;
  }

  .zeb-expertise-js .zeb-expertise-reveal,
  .zeb-expertise-js .zeb-expertise-reveal.zeb-expertise-reveal--left,
  .zeb-expertise-js .zeb-expertise-reveal.zeb-expertise-reveal--right{
    transform:translateY(18px);
  }
}

/* =====================================================
   TABLETTE
===================================================== */

@media (min-width:720px) and (max-width:979px){
  .zeb-expertise-intro,
  .zeb-expertise-content,
  .zeb-expertise-focus,
  .zeb-expertise-cta{
    padding:76px 0;
  }

  .zeb-expertise-intro__media{
    height:390px;
  }

  .zeb-expertise-page h2{
    font-size:clamp(40px, 6.2vw, 52px);
    line-height:1.06;
    letter-spacing:-.045em;
  }

  .zeb-expertise-page h3{
    font-size:clamp(24px, 3.4vw, 29px);
  }

  .zeb-expertise-page p,
  .zeb-expertise-page li{
    line-height:1.82;
  }

  .zeb-expertise-block,
  .zeb-expertise-panel{
    padding:36px;
  }
}

/* =====================================================
   DESKTOP
===================================================== */

@media (min-width:980px){
  .zeb-expertise-intro,
  .zeb-expertise-content,
  .zeb-expertise-focus,
  .zeb-expertise-cta{
    padding:clamp(84px, 8vw, 118px) 0;
  }

  .zeb-expertise-intro__inner{
    grid-template-columns:minmax(0, .95fr) minmax(0, 1.05fr);
    gap:68px;
  }

  .zeb-expertise-content__inner{
    grid-template-columns:minmax(0, 1fr) minmax(0, .78fr);
    gap:42px;
    align-items:stretch;
  }

  .zeb-expertise-content__inner--single{
    display:block;
  }

  /*
   * Limite volontaire de la taille des titres sur desktop :
   * cela évite les retours prématurés causés par un titre trop gros.
   */
  .zeb-expertise-page h2{
    font-size:clamp(40px, 3.8vw, 54px);
    line-height:1.06;
    letter-spacing:-.042em;
  }

  .zeb-expertise-page h3{
    font-size:clamp(24px, 2.3vw, 30px);
  }

  .zeb-expertise-intro__media{
    height:auto;
    min-height:0;
    max-height:none;
    align-self:stretch;
  }

  .zeb-expertise-block,
  .zeb-expertise-panel{
    padding:clamp(38px, 4vw, 52px);
  }

  .zeb-expertise-panel{
    display:flex;
    flex-direction:column;
    justify-content:center;
  }

  .zeb-expertise-cta{
    min-height:500px;
  }
}

/* =====================================================
   TRÈS PETITS MOBILES
===================================================== */

@media (max-width:420px){
  .zeb-expertise-intro__inner,
  .zeb-expertise-content__inner,
  .zeb-expertise-focus__inner{
    width:calc(100% - 22px);
  }

  .zeb-expertise-page h2{
    font-size:clamp(29px, 9.8vw, 38px);
  }

  .zeb-expertise-page h3{
    font-size:21px;
  }

  .zeb-expertise-page p,
  .zeb-expertise-page li{
    font-size:14.5px;
    line-height:1.68;
  }
}


/* =====================================================
   HARMONISATION FORTE — TITRES, TEXTES, IMAGES ET LIENS
===================================================== */

.zeb-expertise-intro__inner > *,
.zeb-expertise-content__inner > *,
.zeb-expertise-focus__inner > *{
  min-width:0;
}

.zeb-expertise-page :is(h2,h3){
  contain:none;
}

.zeb-expertise-page p:last-child,
.zeb-expertise-page li:last-child{
  margin-bottom:0;
}

@media (min-width:980px){
  .zeb-expertise-intro__inner{
    align-items:stretch;
  }

  .zeb-expertise-intro__content,
  .zeb-expertise-intro__media{
    align-self:stretch;
  }

  .zeb-expertise-intro__media img{
    min-height:100%;
  }
}


/* =====================================================
   CORRECTION HAUTEUR IMAGE INTRO — EXPERTISE
   Le texte pilote la hauteur, l'image remplit le cadre.
===================================================== */

@media (min-width:980px){

  .zeb-expertise-intro__inner{
    align-items:stretch;
  }

  .zeb-expertise-intro__content{
    position:relative;
    z-index:2;
    min-width:0;
    align-self:stretch;
  }

  .zeb-expertise-intro__media{
    position:relative;
    align-self:stretch;

    width:100%;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;

    overflow:hidden;
  }

  .zeb-expertise-intro__media img{
    position:absolute;
    inset:0;

    width:100%;
    height:100% !important;
    min-height:0 !important;

    object-fit:cover;
    object-position:var(--zeb-expertise-img-position, center center);
  }
}

/* =====================================================
   ACCESSIBILITÉ
===================================================== */

@media (prefers-reduced-motion:reduce){
  .zeb-expertise-js .zeb-expertise-reveal{
    opacity:1;
    transform:none;
    transition:none;
  }

  .zeb-expertise-intro__media img,
  .zeb-expertise-cta__media img,
  .zeb-expertise-page a{
    transition:none;
  }
}