
/* Cartec: cadres sobres, proportions constantes, médias toujours accessibles. */
html body .page-featured{max-width:460px!important;margin:0 auto 28px!important;padding:18px!important;border:1px solid #dce2e7!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 24px rgba(12,30,44,.06)}
html body .page-featured img{width:100%!important;height:260px!important;object-fit:contain!important}
html body .content-wrap{max-width:1120px}
html body:not(.page-id-183) .entry-content figure:not(.ctg-video){box-sizing:border-box;max-width:560px!important;width:100%;padding:16px!important;margin:20px auto!important;background:#fff!important;border:1px solid #dce2e7!important;border-radius:14px!important;box-shadow:0 6px 20px rgba(12,30,44,.045)}
html body:not(.page-id-183) .entry-content figure img:not([style*="position:absolute"]):not([style*="position: absolute"]){width:100%!important;max-width:100%!important;height:280px!important;max-height:280px!important;object-fit:contain!important;border-radius:8px!important}
html body:not(.page-id-183) .entry-content>p>img{display:block;width:100%!important;max-width:520px!important;max-height:300px!important;object-fit:contain!important;margin:24px auto!important;padding:16px;background:#fff;border:1px solid #dce2e7;border-radius:14px}
html body .entry-content figcaption{font-size:15px!important;line-height:1.55!important;margin-top:12px!important;color:#344a58!important}
html body .entry-content video,html body .ctg-video video{display:block!important;width:100%!important;max-width:600px!important;height:340px!important;max-height:340px!important;object-fit:contain!important;background:#111b23!important;border-radius:10px!important;margin-inline:auto!important}
html body .entry-content .premium-media-grid,html body .entry-content .content-gallery,html body .entry-content .product-photo-grid,html body .entry-content .brand-machine-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important;align-items:start!important}
html body .entry-content .premium-media-grid>figure,html body .entry-content .content-gallery>figure,html body .entry-content .product-photo-grid>figure{margin:0!important}
html body .entry-content .brand-machine-grid>article{min-width:0;padding:22px!important;background:#fff;border:1px solid #dce2e7;border-radius:14px;box-shadow:0 6px 20px rgba(12,30,44,.045)}
html body .entry-content .brand-machine-grid>article>img{display:block;width:100%!important;height:260px!important;object-fit:contain!important;border-radius:8px}
html body .ctg-gallery .ctg-open img{height:240px!important;object-fit:contain!important}
html body .ctg-videos{gap:24px!important}
html body .ctg-video{padding:14px!important;box-sizing:border-box;background:#fff!important;border:1px solid #dce2e7!important;border-radius:14px!important}
html body .ctg-video figcaption{padding:0!important}
.cs-media-nav,.cs-network-nav{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 30px}
.cs-media-nav a,.cs-network-nav a{display:inline-flex;align-items:center;padding:11px 16px;min-height:44px;border:1px solid #dce2e7;border-radius:8px;background:#fff;color:#173044;font-weight:700;text-decoration:none}
.cs-media-nav a:hover,.cs-network-nav a:hover{border-color:#b91c1c;color:#b91c1c}
.cs-media-group{margin-top:44px;padding-top:28px;border-top:1px solid #dce2e7;scroll-margin-top:110px}
.cs-group-heading{font-size:clamp(24px,3vw,31px)!important;line-height:1.25;color:#173044;border-left:4px solid #b91c1c;padding-left:16px;margin:0 0 24px}
.cs-media-group>section{margin:24px 0!important;padding:24px!important;border:1px solid #e0e5e9!important;border-radius:14px!important;background:#f7f8f9}
.cs-media-group h3{font-size:22px!important;line-height:1.3!important}
.cs-media-group h4{font-size:19px!important;line-height:1.4!important}
.cs-network-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
.cs-social-card{min-width:0;border:1px solid #dce2e7;border-top:4px solid #b91c1c;border-radius:16px;padding:26px;background:#fff;box-shadow:0 8px 28px rgba(12,30,44,.05);scroll-margin-top:110px}
.cs-social-card h2{font-size:26px!important;line-height:1.25!important;margin:8px 0 18px}
.cs-network-label{font-size:13px!important;letter-spacing:.08em;text-transform:uppercase;font-weight:750;color:#a91b25}
.cs-social-wide{grid-column:1/-1}
.cs-embed-stage{min-height:220px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;padding:20px 0;max-width:100%;overflow:hidden}
.cs-embed-stage iframe{display:block;width:100%;max-width:500px;border:0;border-radius:10px;background:#f5f6f7}
.cs-embed-stage .tiktok-embed{width:100%;margin:0!important}
.cs-social-card .btn{white-space:normal;text-align:center;min-height:48px}
.cs-profile-link{font-weight:750}
.cs-privacy-note{font-size:15px!important;line-height:1.65;color:#4c616e;max-width:820px}
.cs-community-section{margin-top:44px;scroll-margin-top:110px}
.cs-community-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.cs-community-card{display:flex;flex-direction:column;gap:14px;padding:24px;border:1px solid #dce2e7;border-radius:14px;background:#f6f7f8;color:#173044;text-decoration:none!important}
.cs-community-card strong{font-size:20px;line-height:1.3}
.cs-community-card span{font-size:16px;line-height:1.6}
.cs-community-card b{margin-top:auto;font-size:15px;color:#a91b25}
.cs-home-after{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:34px;align-items:center}
.cs-home-after video{display:block;width:100%;height:330px;object-fit:contain;background:#111b23;border:1px solid #dce2e7;border-radius:14px;padding:10px;box-sizing:border-box}
.cs-home-networks{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px;border:1px solid #dce2e7;border-left:4px solid #b91c1c;border-radius:14px;background:#f7f8f9}
.cs-home-networks h2{font-size:28px}
@media(max-width:760px){.cs-network-grid,.cs-community-grid,.cs-home-after{grid-template-columns:1fr}.cs-social-wide{grid-column:auto}.cs-home-networks{display:block}.cs-home-networks .btn{margin-top:16px}.cs-social-card{padding:20px}.cs-media-group>section{padding:18px!important}}
@media(max-width:600px){html body .entry-content .premium-media-grid,html body .entry-content .content-gallery,html body .entry-content .product-photo-grid,html body .entry-content .brand-machine-grid{grid-template-columns:1fr!important}html body .entry-content figure img{height:240px!important;max-height:240px!important}html body .entry-content video,html body .ctg-video video{height:300px!important;max-height:300px!important}html body .ctg-gallery .ctg-open img{height:240px!important}.cs-home-after video{height:280px}}

/* Priorité aux dimensions communes malgré les anciennes règles par page. */
html body #cartec-main .entry-content.entry-content video{width:100%!important;max-width:560px!important;height:320px!important;min-height:0!important;max-height:320px!important;aspect-ratio:auto!important}
html body #cartec-main .page-featured.page-featured{width:min(100%,560px)!important;max-width:560px!important}
html body #cartec-main .page-featured.page-featured img{width:100%!important;height:280px!important;max-height:280px!important;object-fit:contain!important}
html body #cartec-main .entry-content.entry-content figure img:not([style*="position:absolute"]):not([style*="position: absolute"]){max-width:100%!important;height:280px!important;max-height:280px!important;object-fit:contain!important}
html body #aftermovie-cartec-accueil video{width:100%!important;height:320px!important;max-height:320px!important;object-fit:contain!important;border:1px solid #dce2e7;border-radius:14px;padding:10px;box-sizing:border-box}
@media(max-width:600px){html body #cartec-main .entry-content.entry-content video{height:280px!important;max-height:280px!important}html body #cartec-main .entry-content.entry-content figure img:not([style*="position:absolute"]):not([style*="position: absolute"]){height:240px!important;max-height:240px!important}html body #cartec-main .page-featured.page-featured img{height:240px!important;max-height:240px!important}}

.cs-facebook-preview{display:flex;align-items:center;gap:18px;padding:24px;margin:24px 0;border:1px solid #dce2e7;border-radius:12px;background:#f7f8f9;color:#173044;text-decoration:none!important}.cs-facebook-preview svg{flex:0 0 40px;color:#1877f2}.cs-facebook-preview span{display:flex;flex-direction:column;gap:8px;min-width:0}.cs-facebook-preview strong{font-size:19px;line-height:1.35}.cs-facebook-preview small{font-size:15px;color:#4c616e}.cs-facebook-preview>b{margin-left:auto}.cs-facebook-preview:hover{border-color:#b91c1c}