/*
Theme Name: CoAbonnement Theme Rebuild Stable
Theme URI: https://coabonnement.com/
Author: 3Vision Group
Author URI: https://3vision-group.com/
Description: Thème CoAbonnement premium, mobile-first et compatible avec les plugins co-abonnement, digital, visibilité et marketplace comptes sociaux. Refonte vitrine v21.9.1 inspirée de Stitch sans dépendance CDN, SEO-first, animations légères, mascotte conservée et navigation mobile app-like.
Version: 21.11.6
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ddbz
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* v20.7.3 — mode clair unique + suppression logique sombre/auto côté UI */
body:not(.logged-in) .coab-safe-footer{
  margin-top:40px!important;
  background:radial-gradient(circle at 12% 0%,rgba(45,182,223,.18),transparent 34%),linear-gradient(180deg,#07111f 0%,#08111d 100%)!important;
  border-top:1px solid rgba(255,255,255,.06)!important;
}
body:not(.logged-in) .coab-safe-footer .coab-safe-wrap{
  max-width:1180px!important;
  width:min(1180px,calc(100% - 40px))!important;
  padding-left:0!important;
  padding-right:0!important;
}
body:not(.logged-in) .coab-safe-footer__grid{
  grid-template-columns:minmax(250px,1.15fr) repeat(3,minmax(150px,.75fr))!important;
  align-items:start!important;
  gap:clamp(22px,4vw,56px)!important;
  padding-top:46px!important;
  padding-bottom:30px!important;
}
body:not(.logged-in) .coab-safe-footer__brand{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  text-align:center!important;
  max-width:330px!important;
}
body:not(.logged-in) .coab-safe-footer__logo{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  margin:0 auto 14px!important;
}
body:not(.logged-in) .coab-safe-footer__logo img{
  display:block!important;
  width:min(210px,100%)!important;
  max-width:210px!important;
  max-height:82px!important;
  object-fit:contain!important;
  margin:0 auto!important;
}
body:not(.logged-in) .coab-safe-footer__brand p{
  max-width:310px!important;
  margin:0 auto!important;
  color:#cdd8e8!important;
  font-size:15px!important;
  line-height:1.7!important;
}
body:not(.logged-in) .coab-safe-footer h3{
  color:#fff!important;
  font-size:15px!important;
  letter-spacing:.01em!important;
}
body:not(.logged-in) .coab-safe-footer a{
  color:#dbe7f6!important;
  font-size:15px!important;
  line-height:1.55!important;
}
body:not(.logged-in) .coab-safe-footer a:hover{color:#55d8ff!important}
body:not(.logged-in) .coab-safe-footer__bottom{
  justify-content:center!important;
  text-align:center!important;
  color:#aebed2!important;
  padding-top:18px!important;
  padding-bottom:24px!important;
}
.coabv8-public-showcase{
  width:100%;
}
.coabv8-public-showcase__head{
  padding:0 2px;
}
.coabv8-public-item{
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.coabv8-public-item:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 46px rgba(15,23,42,.12);
  border-color:rgba(45,182,223,.42)!important;
}
@media(max-width:980px){
  body:not(.logged-in) .coab-safe-footer__grid{
    grid-template-columns:1fr 1fr!important;
  }
  body:not(.logged-in) .coab-safe-footer__brand{
    grid-column:1/-1!important;
    justify-self:center!important;
  }
}
@media(max-width:640px){
  body:not(.logged-in) .coab-safe-footer{margin-top:26px!important}
  body:not(.logged-in) .coab-safe-footer .coab-safe-wrap{
    width:calc(100% - 28px)!important;
  }
  body:not(.logged-in) .coab-safe-footer__grid{
    grid-template-columns:1fr!important;
    text-align:center!important;
    gap:24px!important;
    padding-top:34px!important;
    padding-bottom:24px!important;
  }
  body:not(.logged-in) .coab-safe-footer__brand,
  body:not(.logged-in) .coab-safe-footer__grid > div{
    align-items:center!important;
    justify-items:center!important;
    text-align:center!important;
  }
  body:not(.logged-in) .coab-safe-footer a{margin-left:auto!important;margin-right:auto!important}
  body:not(.logged-in) .coab-safe-footer__bottom{font-size:12.5px!important;padding-bottom:88px!important}
  body.home:not(.logged-in) .coabv8-wrap,
  body:not(.logged-in) .coabv8-wrap{
    width:100%!important;
    max-width:100%!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }
  body.home:not(.logged-in) .coabv8-card,
  body.home:not(.logged-in) .coabv8-hero,
  body.home:not(.logged-in) .coabv8-cta-grid,
  body.home:not(.logged-in) .coabv8-public-showcase,
  body.home:not(.logged-in) .coabv8-testimonials,
  body.home:not(.logged-in) .coabv8-final-cta{
    margin-left:0!important;
    margin-right:0!important;
  }
  .coabv8-public-showcase__grid{
    padding-left:0!important;
    padding-right:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  .coabv8-public-item{flex-basis:84%!important}
}

/* v20.7.2 — home publique : sections dynamiques sans débordement */
body.home:not(.logged-in) .coabv8-home-paths{display:none!important}
body.home:not(.logged-in) .coabv8-public-showcase{max-width:1180px!important;margin-left:auto!important;margin-right:auto!important;overflow:hidden!important}
body.home:not(.logged-in) .coabv8-public-showcase__grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:16px!important;max-width:100%!important;overflow:visible!important}
body.home:not(.logged-in) .coabv8-public-item{min-width:0!important;width:100%!important;flex:initial!important}
body.home:not(.logged-in) .coabv8-public-item__media img{object-fit:contain!important;background:#f4f7fb!important}
@media(max-width:640px){
  body.home:not(.logged-in) .coabv8-public-showcase{padding-left:0!important;padding-right:0!important;overflow:visible!important}
  body.home:not(.logged-in) .coabv8-public-showcase__grid{grid-template-columns:1fr!important;gap:12px!important;overflow:visible!important;margin:0!important;padding:0!important}
  body.home:not(.logged-in) .coabv8-public-item{min-height:216px!important;border-radius:22px!important}
  body.home:not(.logged-in) .coabv8-public-item__media{height:110px!important;border-radius:17px!important}
}


/* v20.7.3 — Light only guard: aucune bascule sombre/auto dans le thème. */
:root{color-scheme:light!important;}
html,body{color-scheme:light!important;}
body.ddbz-light-only,
body.ddbz-light{background-color:#f4f7fb!important;}
/* Masque d'éventuels anciens boutons laissés par cache/plugin sans toucher aux parcours. */
[data-theme-toggle],
[data-coab-theme-toggle],
[data-ddbz-theme-toggle],
.ddbz-theme-toggle,
.coab-theme-toggle,
.theme-toggle,
.dark-mode-toggle,
.coab-dark-toggle,
.ddbz-dark-toggle{display:none!important;}


/* v20.7.4 — footer public centré + logo lisible, sans toucher aux flows */
body:not(.logged-in) footer.coab-safe-footer{
  margin-top:40px!important;
}
body:not(.logged-in) footer.coab-safe-footer > .coab-safe-wrap{
  width:min(1180px,calc(100vw - 80px))!important;
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
}
body:not(.logged-in) footer.coab-safe-footer .coab-safe-footer__grid{
  display:grid!important;
  grid-template-columns:minmax(280px,.95fr) repeat(3,minmax(145px,.65fr))!important;
  gap:clamp(34px,5vw,76px)!important;
  align-items:start!important;
}
body:not(.logged-in) footer.coab-safe-footer .coab-safe-footer__brand{
  justify-self:start!important;
  align-items:flex-start!important;
  text-align:left!important;
  max-width:340px!important;
}
body:not(.logged-in) footer.coab-safe-footer .coab-safe-footer__logo{
  width:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:8px 12px!important;
  margin:0 0 16px!important;
  border-radius:22px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 16px 36px rgba(0,0,0,.16)!important;
}
body:not(.logged-in) footer.coab-safe-footer .coab-safe-footer__logo img{
  width:min(190px,100%)!important;
  max-width:190px!important;
  max-height:62px!important;
  margin:0!important;
  object-fit:contain!important;
}
body:not(.logged-in) footer.coab-safe-footer .coab-safe-footer__brand p{
  margin:0!important;
  max-width:340px!important;
  text-align:left!important;
}
@media(max-width:980px){
  body:not(.logged-in) footer.coab-safe-footer > .coab-safe-wrap{
    width:min(720px,calc(100vw - 44px))!important;
  }
  body:not(.logged-in) footer.coab-safe-footer .coab-safe-footer__grid{
    grid-template-columns:1fr 1fr!important;
    gap:28px 42px!important;
  }
  body:not(.logged-in) footer.coab-safe-footer .coab-safe-footer__brand{
    grid-column:1/-1!important;
    justify-self:center!important;
    align-items:center!important;
    text-align:center!important;
  }
  body:not(.logged-in) footer.coab-safe-footer .coab-safe-footer__brand p{
    text-align:center!important;
  }
}
@media(max-width:640px){
  body:not(.logged-in) footer.coab-safe-footer > .coab-safe-wrap{
    width:calc(100vw - 28px)!important;
  }
  body:not(.logged-in) footer.coab-safe-footer .coab-safe-footer__grid{
    grid-template-columns:1fr!important;
    gap:24px!important;
    text-align:center!important;
  }
  body:not(.logged-in) footer.coab-safe-footer .coab-safe-footer__grid > div,
  body:not(.logged-in) footer.coab-safe-footer .coab-safe-footer__brand{
    justify-self:center!important;
    align-items:center!important;
    text-align:center!important;
  }
  body:not(.logged-in) footer.coab-safe-footer .coab-safe-footer__brand p{
    text-align:center!important;
  }
}


/* v20.7.6 — footer logo alignment fallback */
footer.coab-safe-footer > .coab-safe-wrap{width:min(1120px,calc(100vw - 96px))!important;max-width:1120px!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box!important;}
footer.coab-safe-footer .coab-safe-footer__grid{justify-content:center!important;gap:clamp(34px,4.8vw,72px)!important;}
footer.coab-safe-footer .coab-safe-footer__logo{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;max-width:230px!important;min-height:74px!important;padding:10px 14px!important;margin:0 0 16px 0!important;border-radius:24px!important;background:#fff!important;box-shadow:0 18px 42px rgba(0,0,0,.22)!important;overflow:hidden!important;}
footer.coab-safe-footer .coab-safe-footer__logo img{display:block!important;width:auto!important;max-width:200px!important;max-height:58px!important;height:auto!important;margin:0!important;object-fit:contain!important;}
@media(max-width:980px){footer.coab-safe-footer > .coab-safe-wrap{width:min(760px,calc(100vw - 44px))!important;}footer.coab-safe-footer .coab-safe-footer__brand{grid-column:1/-1!important;justify-self:center!important;align-items:center!important;text-align:center!important;}footer.coab-safe-footer .coab-safe-footer__brand p{text-align:center!important;}}
@media(max-width:640px){footer.coab-safe-footer > .coab-safe-wrap{width:calc(100vw - 28px)!important;}footer.coab-safe-footer .coab-safe-footer__grid{grid-template-columns:1fr!important;text-align:center!important;}footer.coab-safe-footer .coab-safe-footer__grid > div,footer.coab-safe-footer .coab-safe-footer__brand{justify-self:center!important;align-items:center!important;text-align:center!important;}footer.coab-safe-footer .coab-safe-footer__brand p{text-align:center!important;}footer.coab-safe-footer .coab-safe-footer__logo{margin-left:auto!important;margin-right:auto!important;min-height:66px!important;}}


/* v21.8.3 — Social uses the native CoAbonnement shell; only navigation context changes. */
body.coab-social-context.logged-in .ddbz-header{
  background:#fff!important;
  border-bottom:1px solid #e8ebf0!important;
}
@media(min-width:980px){
  body.coab-social-context.logged-in .ddbz-member-desktop-nav--social a{
    padding-left:13px!important;
    padding-right:13px!important;
  }
  body.coab-social-context.logged-in .ddbz-member-desktop-nav--social a.is-active{
    background:#14171c!important;
    color:#fff!important;
  }
}
@media(max-width:979px){
  body.coab-social-context.logged-in .ddbz-nav-bottom--member .ddbz-primary-nav ul{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }
  body.coab-social-context.logged-in .ddbz-nav-bottom--member .ddbz-primary-nav .ddbz-nav-label{
    font-size:10.5px!important;
  }
}


/* v21.8.5 — footer minimal dédié à la marketplace Comptes sociaux */
.coab-social-simple-footer{margin:0!important;border-top:1px solid #e7ebf2!important;background:#fff!important;color:#718096!important}
.coab-social-simple-footer__inner{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:18px 0;display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:12.5px;line-height:1.4}
.coab-social-simple-footer__copy{display:flex;align-items:center;gap:8px;color:#718096;font-weight:600}
.coab-social-simple-footer__dot{width:5px;height:5px;border-radius:999px;background:#4f46e5;opacity:.75}
.coab-social-simple-footer__legal{display:flex;align-items:center;gap:8px}
.coab-social-simple-footer a{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 11px;border:1px solid #e3e8f0;border-radius:999px;background:#fff;color:#1e293b!important;font-weight:750;text-decoration:none!important;box-shadow:0 5px 14px rgba(15,23,42,.04)}
.coab-social-simple-footer a:hover{border-color:#c7d2fe;color:#4338ca!important;background:#f8f9ff}
.coab-social-simple-footer__arrow{font-size:14px;line-height:1;color:#6366f1}
@media(max-width:979px){
 body.coab-social-context .coab-social-simple-footer{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))!important}
 .coab-social-simple-footer__inner{width:min(calc(100% - 28px),640px);padding:14px 0;flex-direction:column;justify-content:center;text-align:center;gap:9px;font-size:11.5px}
 .coab-social-simple-footer__copy{justify-content:center;flex-wrap:wrap}
 .coab-social-simple-footer a{min-height:32px;padding:6px 10px;font-size:11.5px}
}
/* v21.8.6 — dock Social : libellé métier explicite sans perdre l'aspect application. */
@media(max-width:979px){
 body.coab-social-context .ddbz-nav-bottom--member .ddbz-primary-nav a{min-height:68px!important;padding:6px 2px!important;white-space:normal!important}
 body.coab-social-context .ddbz-nav-bottom--member .ddbz-nav-label{overflow:visible!important;text-overflow:clip!important;white-space:normal!important;line-height:1.05!important;font-size:10.5px!important;max-width:70px!important;text-align:center!important}
}


/* v21.8.7 — Social: Favoris + suppression des espaces mobiles résiduels */
@media(max-width:760px){
 body.coab-social-context main.ddbz-wrap,
 body.coab-social-context .ddbz-wrap,
 body.coab-social-context .ddbz-container,
 body.coab-social-context article.ddbz-article,
 body.coab-social-context .ddbz-content--social{
   min-height:0!important;height:auto!important;margin-bottom:0!important;padding-bottom:0!important;
 }
 body.coab-social-context main.ddbz-wrap,
 body.coab-social-context .ddbz-container,
 body.coab-social-context article.ddbz-article{padding-top:0!important;margin-top:0!important}
 body.coab-social-context .coab-social-simple-footer{margin-top:0!important}
}
