/* =====================================================
   ZEB PACK À PROPOS — NUISIBLES PREMIUM ÉDITORIAL
   RESPONSIVE • TEXTE JUSTIFIÉ • TITRES SANS COUPURE
===================================================== */

.zeb-about-page{
  background:#fff;
  color:#172104;
  font-family:'Manrope', Arial, sans-serif;
  overflow:hidden;
}

.zeb-about-page *,
.zeb-about-page *::before,
.zeb-about-page *::after{
  box-sizing:border-box;
}

/* ===============================
   BASE SECTIONS
================================ */

.zeb-about-intro,
.zeb-about-cards,
.zeb-about-switch,
.zeb-about-proof{
  position:relative;
  padding:58px 0;
}

.zeb-about-intro{
  background:linear-gradient(180deg, #fff 0%, #fbfaf6 100%);
}

.zeb-about-cards{
  background:
    radial-gradient(circle at 14% 12%, rgba(217,189,115,.20), transparent 30%),
    linear-gradient(135deg, #0d1503 0%, #172504 54%, #101904 100%);
  color:#fff;
}

.zeb-about-switch{
  background:#f8f6ef;
}

.zeb-about-proof{
  background:#fff;
}

.zeb-about-intro__inner,
.zeb-about-proof__inner{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:30px;
  align-items:stretch;
}

/* ===============================
   TYPOGRAPHIE GLOBALE
================================ */

.zeb-about-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-about-eyebrow::before{
  content:"";
  width:30px;
  height:1px;
  flex:0 0 30px;
  background:#d9bd73;
}

/* Titres : largeur disponible complète, sans coupure de mots */
.zeb-about-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;
  overflow-wrap:normal !important;
  word-wrap:normal !important;
  word-break:normal !important;
  hyphens:none !important;
  white-space:normal !important;
  text-wrap:wrap !important;
}

.zeb-about-page h2{
  margin:0 0 18px;
  color:#142002;
  font-size:clamp(31px, 8vw, 62px);
  line-height:1.04;
  font-weight:700;
  letter-spacing:-.055em;
}

.zeb-about-page h3{
  margin:0 0 12px;
  color:#172104;
  font-size:clamp(21px, 5vw, 30px);
  line-height:1.16;
  font-weight:700;
  letter-spacing:-.035em;
}

/* Justification propre sur tous les écrans */
.zeb-about-page p,
.zeb-about-page li{
  margin:0 0 16px;
  color:#333;
  font-size:15px;
  line-height:1.74;
  font-weight:400;

  text-align:justify;
  text-align-last:left;
  text-justify:inter-word;

  word-spacing:0;
  letter-spacing:normal;
  white-space:normal;
  word-break:normal;
  overflow-wrap:break-word;
  hyphens:auto;
  text-wrap:pretty;
}


/* Empêche les colonnes Grid/Flex de réduire artificiellement les titres */
.zeb-about-page :where(
  .zeb-about-intro__content,
  .zeb-about-head,
  .zeb-about-switch__left,
  .zeb-about-switch__right,
  .zeb-about-tab-panel,
  .zeb-about-proof__inner > div,
  .zeb-about-card
){
  min-width:0;
}

.zeb-about-page :where(
  .zeb-about-intro__content,
  .zeb-about-head,
  .zeb-about-switch__left,
  .zeb-about-tab-panel,
  .zeb-about-proof__inner > div,
  .zeb-about-card
) :is(h1,h2,h3,h4,h5,h6){
  inline-size:100%;
}

/* ===============================
   LIENS TEXTUELS AUTOMATIQUES
================================ */

/*
 * Tout lien texte ajouté dans le PHP reçoit automatiquement
 * un soulignement vert animé limité à la largeur du mot.
 * Les boutons et onglets sont exclus.
 */
.zeb-about-page a:not(.zeb-about-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-about-page a:not(.zeb-about-btn):not([class*="btn"]):not([role="button"]):hover,
.zeb-about-page a:not(.zeb-about-btn):not([class*="btn"]):not([role="button"]):focus-visible{
  color:#233308;
  background-size:100% 2px;
}

.zeb-about-page a:focus-visible,
.zeb-about-tabs button:focus-visible,
.zeb-about-btn:focus-visible{
  outline:2px solid #31420f;
  outline-offset:4px;
}

/* Liens sur fond sombre */
.zeb-about-cards a:not(.zeb-about-btn):not([class*="btn"]):not([role="button"]){
  color:#fff;
  background-image:linear-gradient(#d9bd73, #d9bd73);
}

/* ===============================
   INTRO
================================ */

.zeb-about-intro__content{
  position:relative;
  min-width:0;
  max-width:760px;
  padding:0;
}

.zeb-about-intro__content::before{
  content:"";
  display:block;
  width:86px;
  height:4px;
  margin-bottom:26px;
  background:#d9bd73;
}

.zeb-about-intro__content p:first-of-type{
  font-size:16px;
  line-height:1.82;
  color:#222;
}

.zeb-about-intro__media{
  position:relative;
  margin:0;
  min-width:0;
  height:300px;
  max-height:520px;
  overflow:hidden;
  background:#e9e4d8;
  border-radius:0;
}

.zeb-about-intro__media::before{
  content:"";
  position:absolute;
  inset:18px -18px -18px 18px;
  border:1px solid rgba(217,189,115,.82);
  z-index:2;
  pointer-events:none;
}

.zeb-about-intro__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to top, rgba(20,32,2,.24), transparent 55%),
    radial-gradient(circle at 18% 18%, rgba(217,189,115,.18), transparent 28%);
  pointer-events:none;
}

.zeb-about-intro__media img,
.zeb-about-proof figure img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:var(--zeb-about-img-position, center center);
  display:block;
  border-radius:0;
  transition:transform .80s cubic-bezier(.22,1,.36,1);
}

.zeb-about-intro__media:hover img,
.zeb-about-proof figure:hover img{
  transform:scale(1.035);
}

/* ===============================
   CARDS
================================ */

.zeb-about-head{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto 34px;
}

.zeb-about-cards .zeb-about-eyebrow{
  color:#d9bd73;
}

.zeb-about-cards .zeb-about-eyebrow::before{
  background:#d9bd73;
}

.zeb-about-cards .zeb-about-head h2{
  color:#fff !important;
}

.zeb-about-cards .zeb-about-head p{
  max-width:760px;
  color:#fff !important;
  opacity:1;
}

.zeb-about-cards__grid{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:1px;
  background:rgba(255,255,255,.24);
}

.zeb-about-card{
  position:relative;
  min-width:0;
  overflow:hidden;
  padding:28px 24px;
  min-height:100%;
  background:rgba(255,255,255,.045);
  border:0;
  transition:
    transform .42s cubic-bezier(.22,1,.36,1),
    background .42s ease;
}

.zeb-about-card::before{
  content:"";
  position:absolute;
  left:24px;
  top:24px;
  width:38px;
  height:2px;
  background:#d9bd73;
  transition:width .38s cubic-bezier(.22,1,.36,1);
}

.zeb-about-card::after{
  content:"";
  position:absolute;
  right:-60px;
  bottom:-60px;
  width:150px;
  height:150px;
  background:rgba(217,189,115,.10);
  border-radius:50%;
  transition:transform .45s ease;
}

.zeb-about-card:hover{
  background:rgba(255,255,255,.085);
  transform:translateY(-4px);
}

.zeb-about-card:hover::before{
  width:70px;
}

.zeb-about-card:hover::after{
  transform:scale(1.20);
}

.zeb-about-card span{
  position:relative;
  z-index:2;
  display:inline-flex;
  margin:18px 0 20px;
  color:#d9bd73;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
}

.zeb-about-card h3{
  position:relative;
  z-index:2;
  color:#fff !important;
}

.zeb-about-card p{
  position:relative;
  z-index:2;
  color:#fff !important;
  opacity:1;
  margin-bottom:0;
}

/* ===============================
   SWITCH
================================ */

.zeb-about-switch__inner{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:24px;
}

.zeb-about-switch__left,
.zeb-about-switch__right{
  min-width:0;
}

.zeb-about-switch__left{
  padding:0;
}

.zeb-about-switch h2{
  width:100% !important;
  max-width:none !important;
  text-wrap:wrap !important;
}

.zeb-about-tabs{
  display:flex;
  gap:10px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x proximity;
  padding:2px 0 8px;
  margin-top:24px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}

.zeb-about-tabs::-webkit-scrollbar{
  display:none;
}

.zeb-about-tabs button{
  flex:0 0 auto;
  scroll-snap-align:start;
  border:1px solid rgba(49,66,15,.18);
  padding:13px 18px;
  background:#fff;
  color:#31420f;
  font:inherit;
  font-size:11.5px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.07em;
  cursor:pointer;
  white-space:nowrap;
  transition:
    background .32s ease,
    color .32s ease,
    border-color .32s ease,
    transform .32s ease;
}

.zeb-about-tabs button:hover,
.zeb-about-tabs button.is-active{
  background:#31420f;
  border-color:#31420f;
  color:#fff;
  transform:translateY(-2px);
}

.zeb-about-switch__right{
  min-height:auto;
}

.zeb-about-tab-panel{
  display:none;
  min-width:0;
  padding:30px;
  background:#fff;
  border-top:4px solid #d9bd73;
  box-shadow:0 18px 48px rgba(0,0,0,.07);
  animation:zebAboutPanel .48s cubic-bezier(.22,1,.36,1) both;
}

.zeb-about-tab-panel.is-active{
  display:block;
}

.zeb-about-tab-panel span{
  display:inline-flex;
  margin-bottom:18px;
  color:#8d741d;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
}

.zeb-about-tab-panel p{
  margin-bottom:0;
}

/* ===============================
   PROOF
================================ */

.zeb-about-proof:nth-of-type(even){
  background:#fbfaf6;
}

.zeb-about-proof__inner{
  background:transparent;
}

.zeb-about-proof figure{
  position:relative;
  min-width:0;
  margin:0;
  height:300px;
  max-height:520px;
  overflow:hidden;
  background:#e9e4d8;
  border-radius:0;
}

.zeb-about-proof figure::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(20,32,2,.18), transparent 58%);
  pointer-events:none;
}

.zeb-about-proof__inner > div{
  min-width:0;
  padding:0;
}

/* ===============================
   BOUTON
================================ */

.zeb-about-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:13px 22px;
  background:#31420f;
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.07em;
  transition:
    transform .35s ease,
    background .35s ease,
    color .35s ease,
    box-shadow .35s ease;
}

.zeb-about-btn:hover{
  transform:translateY(-3px);
  background:#d9bd73;
  color:#172104;
  box-shadow:0 18px 36px rgba(217,189,115,.24);
}

/* ===============================
   ANIMATIONS DOUCES
================================ */

.zeb-about-reveal{
  opacity:1;
  transform:none;
}

.zeb-about-js .zeb-about-reveal{
  opacity:0;
  transform:translateY(22px);
  transition:
    opacity .68s ease,
    transform .68s cubic-bezier(.22,1,.36,1);
  transition-delay:var(--zeb-delay, 0ms);
  will-change:opacity, transform;
}

.zeb-about-js .zeb-about-reveal.zeb-about-reveal--left{
  transform:translateX(-22px) translateY(12px);
}

.zeb-about-js .zeb-about-reveal.zeb-about-reveal--right{
  transform:translateX(22px) translateY(12px);
}

.zeb-about-js .zeb-about-reveal.is-visible{
  opacity:1;
  transform:translateX(0) translateY(0);
  will-change:auto;
}

@keyframes zebAboutPanel{
  from{
    opacity:0;
    transform:translateY(12px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ===============================
   MOBILE
================================ */

@media (max-width:719px){
  .zeb-about-intro,
  .zeb-about-cards,
  .zeb-about-switch,
  .zeb-about-proof{
    padding:54px 0;
  }

  .zeb-about-intro__inner,
  .zeb-about-proof__inner,
  .zeb-about-head,
  .zeb-about-cards__grid,
  .zeb-about-switch__inner{
    width:calc(100% - 28px);
  }

  .zeb-about-page h2{
    font-size:clamp(30px, 9.3vw, 43px);
    line-height:1.06;
    letter-spacing:-.042em;
  }

  .zeb-about-page h3{
    font-size:clamp(21px, 6.2vw, 27px);
    line-height:1.18;
  }

  .zeb-about-page p,
  .zeb-about-page li{
    font-size:15px;
    line-height:1.72;
  }

  .zeb-about-tab-panel{
    padding:24px 20px;
  }

  .zeb-about-js .zeb-about-reveal,
  .zeb-about-js .zeb-about-reveal.zeb-about-reveal--left,
  .zeb-about-js .zeb-about-reveal.zeb-about-reveal--right{
    transform:translateY(18px);
  }

  .zeb-about-card:hover{
    transform:none;
  }
}

/* ===============================
   TABLETTE
================================ */

@media (min-width:720px){
  .zeb-about-intro,
  .zeb-about-cards,
  .zeb-about-switch,
  .zeb-about-proof{
    padding:74px 0;
  }

  .zeb-about-cards__grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .zeb-about-intro__media,
  .zeb-about-proof figure{
    height:380px;
  }

  .zeb-about-page p,
  .zeb-about-page li{
    line-height:1.82;
  }
}

/* ===============================
   DESKTOP
================================ */

@media (min-width:980px){
  .zeb-about-intro,
  .zeb-about-cards,
  .zeb-about-switch,
  .zeb-about-proof{
    padding:clamp(82px, 8vw, 118px) 0;
  }

  .zeb-about-intro__inner{
    grid-template-columns:minmax(0, 1fr) minmax(320px, .92fr);
    gap:68px;
    align-items:stretch;
  }

  .zeb-about-intro__content{
    padding-left:26px;
    border-left:1px solid rgba(217,189,115,.55);
  }

  .zeb-about-proof__inner{
    grid-template-columns:minmax(320px, .92fr) minmax(0, 1fr);
    gap:64px;
    align-items:stretch;
  }

  .zeb-about-intro__media,
  .zeb-about-proof figure{
    height:auto;
    min-height:0;
    max-height:none;
    align-self:stretch;
  }

  .zeb-about-intro__media img,
  .zeb-about-proof figure img{
    position:absolute;
    inset:0;
  }

  .zeb-about-cards__grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }

  .zeb-about-card{
    min-height:280px;
    padding:34px 28px;
  }

  .zeb-about-switch__inner{
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    align-items:start;
    gap:52px;
  }

  /* Titres longs : utilisent la ligne entière sans équilibrage artificiel */
  .zeb-about-proof h2,
  .zeb-about-switch h2{
    font-size:clamp(38px, 3.45vw, 52px);
    line-height:1.08;
    letter-spacing:-.045em;
    text-wrap:wrap !important;
  }

  .zeb-about-tabs{
    flex-direction:column;
    overflow:visible;
    max-width:360px;
  }

  .zeb-about-tabs button{
    width:100%;
    text-align:left;
  }

  .zeb-about-tab-panel{
    min-height:360px;
    padding:42px;
  }

  .zeb-about-proof:nth-of-type(odd) .zeb-about-proof__inner figure{
    order:2;
  }
}

/* ===============================
   TRÈS PETITS MOBILES
================================ */

@media (max-width:420px){
  .zeb-about-intro__inner,
  .zeb-about-proof__inner,
  .zeb-about-head,
  .zeb-about-cards__grid,
  .zeb-about-switch__inner{
    width:calc(100% - 22px);
  }

  .zeb-about-page h2{
    font-size:clamp(29px, 9.8vw, 38px);
  }

  .zeb-about-page h3{
    font-size:21px;
  }

  .zeb-about-page p,
  .zeb-about-page li{
    font-size:14.5px;
    line-height:1.68;
  }

  .zeb-about-tabs button{
    font-size:10.5px;
    padding:12px 14px;
  }

  .zeb-about-btn{
    width:100%;
  }

  .zeb-about-intro__media,
  .zeb-about-proof figure{
    height:270px;
  }
}

/* ===============================
   ACCESSIBILITÉ
================================ */

@media (prefers-reduced-motion:reduce){
  .zeb-about-js .zeb-about-reveal{
    opacity:1;
    transform:none;
    transition:none;
  }

  .zeb-about-tab-panel{
    animation:none;
  }

  .zeb-about-intro__media img,
  .zeb-about-proof figure img,
  .zeb-about-page a{
    transition:none;
  }
}
