.zan-home{--sa-yellow:#ffd400;--sa-dark:#101820;--sa-ink:#111827;--sa-muted:#68717a;--sa-line:#e7eaee;--sa-soft:#f5f7f9;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--sa-ink);font-size:16px;line-height:1.45;background:#fff}
.zan-home *{box-sizing:border-box}.zan-home a{color:inherit;text-decoration:none}.zan-home img{display:block;max-width:100%}.zan-home .mpd-wrap{width:min(1180px,calc(100% - 40px));margin-inline:auto}.zan-home .mpd-section{margin-top:42px}.zan-home h1,.zan-home h2,.zan-home h3,.zan-home p{margin-top:0}.zan-home .mpd-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:18px}.zan-home .mpd-head h2{margin:0;font-size:34px;line-height:1;font-weight:900;letter-spacing:-.03em;position:relative}.zan-home .mpd-head h2:after{content:"";display:block;width:42px;height:4px;background:var(--sa-yellow);border-radius:10px;margin-top:9px}.zan-home .mpd-head>a{font-size:12px;font-weight:800;color:#303943}.zan-home .mpd-head.compact{align-items:flex-start;margin-bottom:14px}.zan-home .mpd-head.compact h2{font-size:28px}.zan-home .mpd-head.compact p{margin:7px 0 0;font-size:12px;color:var(--sa-muted)}
/* Hero */
.zan-home .mpd-hero{min-height:430px;background-image:var(--mpd-overlay),var(--mpd-image);background-size:cover;background-position:center;background-color:#202830;color:#fff;display:flex;align-items:center;position:relative}.zan-home .mpd-hero.no-image{background:linear-gradient(120deg,#111923,#303942)}.zan-home .mpd-hero-copy{padding:62px 0 78px}.zan-home .mpd-hero-copy>span,.zan-home .mpd-community-copy>span,.zan-home .mpd-cta span{display:inline-block;font-size:11px;letter-spacing:.16em;font-weight:900;text-transform:uppercase;color:#fff}.zan-home .mpd-hero h1{max-width:560px;margin:14px 0 14px;font-size:58px;line-height:.92;letter-spacing:-.045em;text-transform:uppercase;font-weight:950;color:#fff}.zan-home .mpd-hero p{max-width:540px;margin:0 0 22px;font-size:17px;color:rgba(255,255,255,.88)}.zan-home .mpd-actions{display:flex;gap:10px;flex-wrap:wrap}.zan-home .mpd-actions a,.zan-home .mpd-community-copy>a,.zan-home .mpd-cta a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border-radius:999px;font-size:12px;font-weight:900}.zan-home .mpd-actions .primary,.zan-home .mpd-community-copy>a,.zan-home .mpd-cta a{background:var(--sa-yellow);color:#111}.zan-home .mpd-actions .secondary{border:1px solid rgba(255,255,255,.65);color:#fff;background:rgba(0,0,0,.14)}
.zan-home .mpd-hero-features{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:#131c25;color:#fff;border-top:1px solid rgba(255,255,255,.12);margin-top:-1px}.zan-home .mpd-hero-features>div{display:flex;gap:12px;align-items:center;padding:15px 20px;border-right:1px solid rgba(255,255,255,.12)}.zan-home .mpd-hero-features>div:last-child{border-right:0}.zan-home .mpd-hero-features i{width:28px;height:28px;color:#fff}.zan-home .mpd-hero-features svg{width:100%;height:100%}.zan-home .mpd-hero-features p{margin:0}.zan-home .mpd-hero-features strong{display:block;font-size:12px}.zan-home .mpd-hero-features span{display:block;font-size:9px;color:rgba(255,255,255,.62);margin-top:2px}
/* Models */
.zan-home .mpd-models-section{margin-top:30px}.zan-home .mpd-transform{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.zan-home .mpd-room{min-height:210px;border-radius:10px;background-image:var(--mpd-overlay),var(--mpd-image);background-size:cover;background-position:center;background-color:#e8ebee;position:relative;overflow:hidden;box-shadow:inset 0 -70px 90px rgba(8,12,16,.58);transition:.2s ease}.zan-home .mpd-room:hover{transform:translateY(-3px);box-shadow:inset 0 -70px 90px rgba(8,12,16,.62),0 12px 28px rgba(15,23,42,.12)}.zan-home .mpd-room>div{position:absolute;left:0;right:0;bottom:0;padding:14px;color:#fff}.zan-home .mpd-room h3{font-size:20px;line-height:1;margin:0 0 4px;font-weight:950}.zan-home .mpd-room p{margin:0;max-width:90%;font-size:10px;line-height:1.3;color:rgba(255,255,255,.86)}.zan-home .mpd-room div>b{position:absolute;right:12px;bottom:14px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#0f1720;color:#fff;font-size:12px}.zan-home .mpd-room em{position:absolute;z-index:2;top:10px;right:10px;background:var(--sa-yellow);color:#111;padding:4px 10px;border-radius:999px;font-size:9px;font-style:normal;font-weight:950}
/* Featured */
.zan-home .mpd-featured-grid{display:grid;grid-template-columns:1.5fr .92fr .9fr;gap:14px;align-items:stretch}.zan-home .mpd-feature-main{min-height:410px;border-radius:12px;overflow:hidden;position:relative;background-image:var(--mpd-overlay),var(--mpd-image);background-size:cover;background-position:center;background-color:#d8dde2}.zan-home .mpd-feature-main>div{position:absolute;left:0;right:0;bottom:0;padding:24px;color:#fff}.zan-home .mpd-feature-main span{display:inline-flex;background:rgba(15,23,32,.78);border:1px solid rgba(255,255,255,.25);padding:5px 9px;border-radius:999px;font-size:9px;font-weight:900}.zan-home .mpd-feature-main h3{margin:10px 0 8px;font-size:32px;line-height:1.02;font-weight:950;letter-spacing:-.03em}.zan-home .mpd-feature-main p{margin:0 0 13px;font-size:12px;max-width:88%;color:rgba(255,255,255,.82)}.zan-home .mpd-feature-main b{display:inline-flex;background:#fff;color:#111;padding:8px 12px;border-radius:999px;font-size:10px}.zan-home .mpd-feature-list{display:grid;grid-template-rows:repeat(3,1fr);gap:10px}.zan-home .mpd-feature-list>a{display:grid;grid-template-columns:92px 1fr;gap:11px;padding:9px;border:1px solid var(--sa-line);border-radius:10px;background:#fff;align-items:center}.zan-home .mpd-feature-list img,.zan-home .mpd-thumb-placeholder{width:92px;height:100%;min-height:88px;object-fit:cover;border-radius:7px;background:#dfe4e8}.zan-home .mpd-feature-list h3{margin:0 0 5px;font-size:14px;line-height:1.15;font-weight:900}.zan-home .mpd-feature-list p{margin:0;font-size:10px;line-height:1.35;color:var(--sa-muted)}.zan-home .mpd-guides{border-radius:10px;background:#f5f6f8;padding:14px}.zan-home .mpd-guides>h3{font-size:18px;margin:0 0 10px;font-weight:950}.zan-home .mpd-guides>a{display:grid;grid-template-columns:28px 1fr 16px;align-items:center;gap:9px;background:#fff;border-radius:8px;padding:10px;margin-bottom:7px;font-size:10px;font-weight:750;line-height:1.25}.zan-home .mpd-guides>a:last-child{margin-bottom:0}.zan-home .mpd-guides i{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#e5e9ed;font-style:normal;font-size:10px;font-weight:900}.zan-home .mpd-guides a:first-of-type i{background:var(--sa-yellow)}
/* Universe + history */
.zan-home .mpd-universe-row{display:grid;grid-template-columns:1.05fr .95fr;gap:18px}.zan-home .mpd-practical{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.zan-home .mpd-practical>a{min-height:150px;border-radius:10px;padding:15px;background:#1a222b;color:#fff;display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden}.zan-home .mpd-practical>a:nth-child(2n){background:#202a34}.zan-home .mpd-practical i{position:absolute;top:14px;left:14px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.1);padding:7px;color:#fff}.zan-home .mpd-practical svg{width:100%;height:100%}.zan-home .mpd-practical h3{font-size:15px;line-height:1.05;margin:0 0 4px}.zan-home .mpd-practical p{margin:0;font-size:9px;line-height:1.35;color:rgba(255,255,255,.68)}.zan-home .mpd-history-card{display:grid;grid-template-columns:40% 1fr;gap:14px;border:1px solid var(--sa-line);border-radius:10px;background:#f7f8f9;padding:10px;min-height:150px}.zan-home .mpd-architect-img{border-radius:8px;min-height:148px;background-image:var(--mpd-overlay),var(--mpd-image);background-size:cover;background-position:center;background-color:#dfe3e7}.zan-home .mpd-history-card>div:last-child{align-self:center}.zan-home .mpd-history-card span{font-size:9px;letter-spacing:.12em;font-weight:900;color:#6b7280}.zan-home .mpd-history-card h3{font-size:23px;line-height:1;margin:6px 0}.zan-home .mpd-history-card p{font-size:10px;line-height:1.45;color:var(--sa-muted);margin:0}
/* Community */
.zan-home .mpd-project{margin-top:44px;background-image:var(--mpd-overlay),var(--mpd-image);background-size:cover;background-position:center;background-color:#101820;color:#fff;padding:34px 0}.zan-home .mpd-community-grid{display:grid;grid-template-columns:1.05fr 1.15fr .9fr;gap:22px;align-items:center}.zan-home .mpd-community-copy h2{font-size:34px;line-height:1;margin:8px 0 10px;font-weight:950;color:#fff}.zan-home .mpd-community-copy h2::after{content:"";display:block;width:40px;height:4px;background:var(--sa-yellow);margin-top:9px}.zan-home .mpd-community-copy p{font-size:12px;color:rgba(255,255,255,.72);margin-bottom:14px}.zan-home .mpd-discussions{background:#fff;color:#111;border-radius:9px;padding:12px}.zan-home .mpd-discussions>h3{margin:0 0 7px;font-size:14px}.zan-home .mpd-discussions>a{display:grid;grid-template-columns:1fr 30px;gap:10px;align-items:center;padding:8px 6px;border-top:1px solid #edf0f2;font-size:10px}.zan-home .mpd-discussions a>b{border:1px solid #dfe4e8;border-radius:999px;padding:3px 5px;text-align:center;font-size:9px}.zan-home .mpd-project blockquote{margin:0;font-size:23px;line-height:1.18;font-weight:700;font-style:italic;color:rgba(255,255,255,.92)}
/* Latest */
.zan-home .mpd-latest{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.zan-home .mpd-latest article{border:1px solid var(--sa-line);border-radius:9px;overflow:hidden;background:#fff}.zan-home .mpd-latest img,.zan-home .mpd-latest-placeholder{width:100%;aspect-ratio:1.55;object-fit:cover;background:#e4e8eb}.zan-home .mpd-latest-copy{padding:10px}.zan-home .mpd-latest time{font-size:8px;color:#9aa2aa}.zan-home .mpd-latest h3{font-size:12px;line-height:1.22;margin:5px 0 0;font-weight:850}
/* CTA */
.zan-home .mpd-cta{min-height:250px;margin-top:42px;margin-bottom:32px;border-radius:13px;overflow:hidden;background-image:var(--mpd-overlay),var(--mpd-image);background-size:cover;background-position:center;background-color:#202a34;color:#fff;display:flex;align-items:center}.zan-home .mpd-cta-copy{padding:34px;max-width:620px}.zan-home .mpd-cta h2{font-size:39px;line-height:1;margin:8px 0 8px;color:#fff}.zan-home .mpd-cta p{font-size:12px;color:rgba(255,255,255,.72);margin-bottom:10px}
/* avoid theme interference */
.zan-home section,.zan-home nav,.zan-home div{max-width:none}.zan-home .mpd-wrap{max-width:1180px!important}
@media(max-width:1050px){.zan-home .mpd-featured-grid{grid-template-columns:1.2fr 1fr}.zan-home .mpd-guides{grid-column:1/-1}.zan-home .mpd-guides{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.zan-home .mpd-guides>h3{grid-column:1/-1}.zan-home .mpd-guides>a{margin:0;grid-template-columns:24px 1fr}.zan-home .mpd-guides>a>b{display:none}.zan-home .mpd-universe-row{grid-template-columns:1fr}.zan-home .mpd-latest{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.zan-home .mpd-wrap{width:min(100% - 28px,1180px)}.zan-home .mpd-hero{min-height:480px;background-position:62% center}.zan-home .mpd-hero h1{font-size:46px;max-width:470px}.zan-home .mpd-hero-features{grid-template-columns:1fr 1fr}.zan-home .mpd-hero-features>div:nth-child(2){border-right:0}.zan-home .mpd-hero-features>div{border-bottom:1px solid rgba(255,255,255,.12)}.zan-home .mpd-transform{grid-template-columns:repeat(2,1fr)}.zan-home .mpd-room:last-child{grid-column:1/-1}.zan-home .mpd-featured-grid{grid-template-columns:1fr}.zan-home .mpd-feature-main{min-height:360px}.zan-home .mpd-feature-list{grid-template-rows:auto}.zan-home .mpd-guides{grid-template-columns:1fr 1fr}.zan-home .mpd-community-grid{grid-template-columns:1fr}.zan-home .mpd-project blockquote{display:none}.zan-home .mpd-practical{grid-template-columns:1fr 1fr}.zan-home .mpd-latest{grid-template-columns:1fr 1fr}}
@media(max-width:540px){.zan-home .mpd-head h2{font-size:28px}.zan-home .mpd-head>a{display:none}.zan-home .mpd-hero h1{font-size:38px}.zan-home .mpd-hero p{font-size:14px}.zan-home .mpd-actions{flex-direction:column;align-items:flex-start}.zan-home .mpd-hero-features{grid-template-columns:1fr}.zan-home .mpd-hero-features>div{border-right:0}.zan-home .mpd-transform{grid-template-columns:1fr}.zan-home .mpd-room:last-child{grid-column:auto}.zan-home .mpd-feature-main h3{font-size:27px}.zan-home .mpd-feature-list>a{grid-template-columns:78px 1fr}.zan-home .mpd-feature-list img,.zan-home .mpd-thumb-placeholder{width:78px}.zan-home .mpd-guides{grid-template-columns:1fr}.zan-home .mpd-practical{grid-template-columns:1fr 1fr}.zan-home .mpd-history-card{grid-template-columns:1fr}.zan-home .mpd-latest{grid-template-columns:1fr 1fr}.zan-home .mpd-cta h2{font-size:31px}}


/* ===== SmartActive v1.2 — final front-end polish ===== */
/* Remonte la home au maximum sous le header du thème sans toucher à l’admin bar. */
.zan-home{
  margin-top:-40px !important;
  padding-top:0 !important;
  position:relative;
  z-index:1;
  overflow:visible;
}
.admin-bar .zan-home{margin-top:-40px !important}

/* Neutralise les marges que certains thèmes ajoutent autour du shortcode / contenu. */
.entry-content > .zan-home:first-child,
.page-content > .zan-home:first-child,
.site-main > .zan-home:first-child,
.wp-block-post-content > .zan-home:first-child{
  margin-top:-40px !important;
}
.zan-home > .mpd-hero:first-child{margin-top:0 !important}

/* Hero : plus tendu et plus proche de la maquette. */
.zan-home .mpd-hero{min-height:445px;border-radius:0;overflow:hidden}
.zan-home .mpd-hero-copy{padding-top:54px;padding-bottom:72px}
.zan-home .mpd-hero-copy>span{padding-left:12px;position:relative}
.zan-home .mpd-hero-copy>span:before{content:"";position:absolute;left:0;top:1px;bottom:1px;width:3px;border-radius:3px;background:var(--sa-yellow)}
.zan-home .mpd-hero h1,.zan-home .mpd-hero p{color:#fff !important}
.zan-home .mpd-actions a{box-shadow:none!important;text-decoration:none!important}
.zan-home .mpd-actions .primary:hover,.zan-home .mpd-community-copy>a:hover,.zan-home .mpd-cta a:hover{filter:brightness(.96);transform:translateY(-1px)}
.zan-home .mpd-actions .secondary:hover{background:rgba(255,255,255,.10)}

/* Bandeau sous le hero : collé au visuel, sans saut vertical parasite. */
.zan-home .mpd-hero-features{position:relative;z-index:3;margin-top:0!important;border-radius:0 0 12px 12px;overflow:hidden}

/* Titres / liens : protège le rendu contre le CSS du thème. */
.zan-home h1,.zan-home h2,.zan-home h3{font-family:inherit!important;text-transform:none}
.zan-home .mpd-hero h1{text-transform:uppercase}
.zan-home .mpd-head h2,.zan-home .mpd-head.compact h2{color:#111827!important}
.zan-home .mpd-head>a{color:#303943!important;text-decoration:none!important}
.zan-home .mpd-head>a:hover{color:#111827!important}

/* Cartes modèles : meilleure lisibilité des visuels et du texte. */
.zan-home .mpd-room{isolation:isolate;background-position:center center}
.zan-home .mpd-room:after{content:"";position:absolute;inset:38% 0 0;z-index:0;background:linear-gradient(180deg,transparent,rgba(6,10,14,.76));pointer-events:none}
.zan-home .mpd-room>div,.zan-home .mpd-room em{z-index:2}
.zan-home .mpd-room h3{color:#fff!important}
.zan-home .mpd-room p{color:rgba(255,255,255,.88)!important}

/* À la une : équilibre les colonnes et fixe les placeholders/images. */
.zan-home .mpd-feature-main:after{content:"";position:absolute;inset:42% 0 0;background:linear-gradient(180deg,transparent,rgba(5,9,13,.82));pointer-events:none}
.zan-home .mpd-feature-main>div{z-index:1}
.zan-home .mpd-feature-main h3{color:#fff!important}
.zan-home .mpd-feature-list>a{min-height:118px}
.zan-home .mpd-feature-list img,.zan-home .mpd-thumb-placeholder{height:100%;min-height:98px}

/* Univers Smart : correction du texte noir visible sur les cartes sombres. */
.zan-home .mpd-practical>a{box-shadow:0 7px 18px rgba(15,23,42,.06);transition:transform .18s ease,box-shadow .18s ease}
.zan-home .mpd-practical>a:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(15,23,42,.12)}
.zan-home .mpd-practical h3{color:#fff!important;font-weight:850!important}
.zan-home .mpd-practical p{color:rgba(255,255,255,.72)!important}
.zan-home .mpd-practical i{color:#fff!important}

/* Histoire Smart : proportions plus proches de la maquette. */
.zan-home .mpd-history-card{min-height:160px;align-items:stretch}
.zan-home .mpd-history-card h3{color:#111827!important;font-weight:850}

/* Communauté : évite les styles blockquote du thème. */
.zan-home .mpd-project blockquote{border:0!important;padding:0!important;background:none!important;text-align:center}
.zan-home .mpd-community-copy h2{color:#fff!important}
.zan-home .mpd-discussions a{color:#111!important;text-decoration:none!important}

/* Derniers articles : cartes alignées malgré des titres de longueurs différentes. */
.zan-home .mpd-latest{align-items:stretch}
.zan-home .mpd-latest article{height:100%;transition:transform .18s ease,box-shadow .18s ease}
.zan-home .mpd-latest article:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,23,42,.09)}
.zan-home .mpd-latest article>a{display:flex!important;flex-direction:column;height:100%;text-decoration:none!important}
.zan-home .mpd-latest-copy{flex:1}
.zan-home .mpd-latest h3{color:#111827!important}

/* CTA final */
.zan-home .mpd-cta{min-height:270px;background-position:center 58%;box-shadow:0 16px 35px rgba(15,23,42,.08)}
.zan-home .mpd-cta h2{color:#fff!important;font-weight:900}

/* Espacements plus réguliers entre sections. */
.zan-home .mpd-section{margin-top:38px}
.zan-home .mpd-models-section{margin-top:28px}
.zan-home .mpd-project{margin-top:38px}
.zan-home .mpd-cta{margin-top:38px}

@media(max-width:800px){
  .zan-home,.admin-bar .zan-home,
  .entry-content > .zan-home:first-child,.page-content > .zan-home:first-child,
  .site-main > .zan-home:first-child,.wp-block-post-content > .zan-home:first-child{margin-top:-24px!important}
  .zan-home .mpd-hero{min-height:470px}
  .zan-home .mpd-hero-copy{padding-top:48px;padding-bottom:56px}
  .zan-home .mpd-hero-features{border-radius:0}
}
@media(max-width:540px){
  .zan-home,.admin-bar .zan-home,
  .entry-content > .zan-home:first-child,.page-content > .zan-home:first-child,
  .site-main > .zan-home:first-child,.wp-block-post-content > .zan-home:first-child{margin-top:-16px!important}
  .zan-home .mpd-section{margin-top:32px}
  .zan-home .mpd-hero{min-height:500px}
  .zan-home .mpd-cta{min-height:300px;background-position:65% center}
}
