/* COMPARALU — design 2026 partagé, site public. CSS only, no SEO/router/DB changes. */
:root{--ca-red:#c51f2d;--ca-ink:#263241;--ca-muted:#5f6c7a;--ca-border:#e5eaf0;--ca-surface:#f6f8fa}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--ca-surface);color:var(--ca-ink);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;line-height:1.6}
.wrapper{width:min(1180px,calc(100% - 44px));max-width:1180px}
a{color:#bb2330}a:hover{color:#991a26}
p{text-align:left;line-height:1.7}
h1,h2,h3,.title-h{color:var(--ca-ink);letter-spacing:-.016em;font-family:Arial,'Helvetica Neue',sans-serif}
h1{font-size:clamp(24px,2.65vw,34px);line-height:1.2;font-weight:700;margin-bottom:21px}
h2{font-size:21px;line-height:1.35;font-weight:650}h3{font-size:17px;line-height:1.4;font-weight:600}
#site-header{background:#fff!important;border-top:0!important}
#site-header .header-title{padding:19px 0;margin:0 auto!important}
#site-header .header-title>p{color:#2c3541!important;text-align:left!important;line-height:1.32}
#site-header .header-title>p strong{color:var(--ca-red)!important}
#site-header .header-menu{background:#c51f2d!important;box-shadow:none;border:0;overflow:visible}
#site-header .header-menu ul{display:flex;align-items:stretch;justify-content:space-between;min-height:52px;gap:0}
#site-header .header-menu ul li{float:none;display:flex;align-items:stretch;flex:1 1 auto;width:auto!important;min-width:0;position:relative}
#site-header .header-menu ul li:nth-child(1){flex:.75 1 auto}
#site-header .header-menu ul li:nth-child(2){flex:1.6 1 auto}
#site-header .header-menu ul li:nth-child(3){flex:1.95 1 auto}
#site-header .header-menu ul li:nth-child(4){flex:1.32 1 auto}
#site-header .header-menu ul li:nth-child(5){flex:.55 1 auto}
#site-header .header-menu ul li:after{display:none!important}
#site-header .header-menu ul li+li:before{content:'';position:absolute;left:0;top:13px;bottom:13px;width:1px;background:rgba(255,255,255,.55)}
#site-header .header-menu ul li a{width:100%;display:flex;align-items:center;justify-content:center;white-space:nowrap!important;padding:14px 9px!important;height:auto!important;line-height:1.3!important;text-align:center;font-size:clamp(11px,1.05vw,13px)!important;font-weight:650;color:white!important;text-decoration:none}
#site-header .header-menu ul li a:hover,#site-header .header-menu ul li a:focus{background:#a81b27!important;color:#fff!important}
#site-header .header-hero .hero-bg{background-size:cover;background-position:center;min-height:170px}
#site-content{padding:30px 0 40px;background:var(--ca-surface)}
#site-content>.wrapper{min-width:0}
#site-content>.wrapper>h1:first-child{margin-top:0}
#site-content .pod{background:#fff;border:1px solid var(--ca-border);border-radius:10px;box-shadow:0 4px 15px rgba(32,48,63,.035);overflow:hidden}
#site-content .pod .pod-header{background:var(--ca-red)!important;color:#fff!important}
#site-content .pod .pod-content{padding:20px 22px}
#site-content .dynamic-row{display:flex;align-items:flex-start;gap:23px}
#site-content .dynamic-row>[class*="column"]{float:none;min-width:0;margin:0}
#site-content .dynamic-row>.column-2{flex:1 1 0;width:auto}
#site-content .dynamic-row>.column-3{flex:0 0 260px;width:260px}
#site-content .dynamic-row img{max-width:100%;height:auto}
#site-content .popular{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:18px 0 28px}
#site-content .popular .popular-pod{float:none!important;clear:none!important;width:auto!important;margin:0!important;min-width:0;box-shadow:none!important}
#site-content .popular-pod .pod{height:196px;overflow:hidden}
#site-content .popular-pod .name{font-size:17px;color:var(--ca-red);font-weight:650;height:46px;line-height:46px}
#site-content .popular-pod .image{height:150px}
#site-content .popular-pod .bttn{top:46px;line-height:150px;height:150px;border-radius:0;background:rgba(196,31,45,.79)!important}
#site-content .bttn{background:var(--ca-red)!important;border-radius:5px}
#site-content input[type=text],#site-content input[type=email],#site-content input[type=tel],#site-content select,#site-content textarea{max-width:100%;border-radius:5px}
#site-footer{background:#262e39!important;color:#e6ebf0!important;padding:30px 0 20px}
#site-footer a{color:#e6ebf0!important}
#site-footer a:hover{color:white!important;text-decoration:underline}
#side-4{background:#fff;padding:25px 0;border-top:1px solid var(--ca-border)}
#side-4 .side-4-title{font-size:20px;color:var(--ca-ink);font-weight:650}
.cd-card,.cd-grid article{border-radius:10px;box-shadow:0 4px 15px rgba(25,40,65,.045)}
@media(max-width:900px){.wrapper{width:calc(100% - 30px)}#site-header .header-menu ul li a{font-size:11px!important;padding:13px 6px!important}#site-content .dynamic-row>.column-3{flex-basis:225px;width:225px}}
@media(max-width:800px){.wrapper,#site-content .wrapper,#site-footer .wrapper{width:auto!important;max-width:100%!important;padding-left:16px!important;padding-right:16px!important}#site-header .mobile-menu-toggle{display:block;background:var(--ca-red)!important}#site-header .header-menu{display:none}#site-header .header-menu.is-open{display:block}#site-header .header-menu ul{display:flex;flex-direction:column;min-height:0;padding:0 15px!important}#site-header .header-menu ul li{flex:1 1 auto!important;width:100%!important}#site-header .header-menu ul li:before{display:none}#site-header .header-menu ul li a{justify-content:flex-start;white-space:normal!important;font-size:14px!important;padding:12px 15px!important}#site-content .dynamic-row{flex-direction:column}#site-content .dynamic-row>[class*="column"],#site-content .dynamic-row>.column-3{width:100%!important;flex:auto}#site-content .popular{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#site-content .pod .pod-content{padding:17px}}
@media(max-width:520px){#site-content .popular{grid-template-columns:1fr}#site-content .popular-pod .pod{height:195px}#site-content{padding-top:19px}h1{font-size:25px}}

/* Correctif V2 : bandeau unifie sur les pages utilisant header.php. */
#site-header{display:flex!important;flex-direction:column!important}
#site-header .header-title{order:1!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;min-height:275px!important;margin:0!important;padding:20px max(24px,calc((100% - 1180px)/2))!important;background:url('/media/comparalu-hero-2026.jpg') center/cover no-repeat!important;display:flex;align-items:center}
#site-header .header-hero{display:none!important}
#site-header .header-menu{order:2!important;width:100%!important}
#site-header .header-title .ca-hero-copy{display:flex;flex-direction:column;gap:8px;max-width:670px;width:62%;}
#site-header .ca-hero-eyebrow{font-size:11px;font-weight:700;letter-spacing:.16em;color:#333b45}
#site-header .ca-hero-headline{font-size:clamp(23px,2.15vw,31px);font-weight:800;line-height:1.17;margin:0;color:#c51f2d!important}
#site-header .ca-hero-subtitle{font-size:clamp(15px,1.45vw,19px);line-height:1.25;margin:0;color:#26303b!important}
#site-header .ca-hero-benefits{display:flex;gap:8px 15px;flex-wrap:wrap;font-size:12px;color:#303943}
#site-header .ca-hero-benefits span:before{content:'✓';display:inline-flex;background:#cb1e2a;color:white;border-radius:50%;width:16px;height:16px;align-items:center;justify-content:center;margin-right:6px;font-size:10px}
#site-header .ca-hero-button{display:inline-block;align-self:flex-start;margin-top:3px;border-radius:5px;background:#cb1e2a;padding:11px 19px;color:#fff!important;text-decoration:none;font-weight:700;font-size:13px}
#site-header .header-menu ul{box-sizing:border-box;width:min(1180px,calc(100% - 44px));margin:0 auto}
/* Pied de page plus fin : quatre colonnes lisibles et copyright discret. */
#site-footer{padding:0!important;background:#252b32!important}
#site-footer>.wrapper{box-sizing:border-box;padding:22px 0 19px!important}
#site-footer .site-footer-links{margin:0!important;padding:0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;list-style:none;gap:0}
#site-footer .site-footer-links li{float:none!important;width:auto!important;min-height:90px;padding:0 18px!important;border-right:1px solid rgba(255,255,255,.14)!important}
#site-footer .site-footer-links li:first-child{padding-left:0!important}
#site-footer .site-footer-links li:last-child{border-right:0!important}
#site-footer .site-footer-links .li-title{font-size:13px!important;line-height:1.35!important;text-align:left!important;color:#fff!important;margin:0 0 12px!important;font-weight:700!important}
#site-footer .site-footer-links a{display:block!important;font-size:12px!important;line-height:1.5!important;text-align:left!important;margin:0 0 6px!important;color:#cbd1d8!important;text-decoration:none}
#site-footer .site-footer-copyright{background:#1f242a!important;color:#adb7c1!important;font-size:12px!important;padding:10px!important;text-align:center!important}
@media(max-width:800px){#site-header .header-title{min-height:220px!important;padding:25px 18px!important;background-image:linear-gradient(90deg,rgba(255,255,255,.88),rgba(255,255,255,.38)),url('/media/comparalu-hero-2026.jpg')!important}#site-header .header-title .ca-hero-copy{width:85%}#site-footer .site-footer-links{grid-template-columns:repeat(2,minmax(0,1fr))!important;row-gap:20px}#site-footer .site-footer-links li:nth-child(2){border-right:0!important}#site-footer .site-footer-links li:nth-child(3){padding-left:0!important}}
@media(max-width:520px){#site-header .header-title{min-height:0!important;padding:25px 16px!important;background-image:linear-gradient(90deg,rgba(255,255,255,.94),rgba(255,255,255,.7)),url('/media/comparalu-hero-2026.jpg')!important}#site-header .header-title .ca-hero-copy{width:100%}#site-header .ca-hero-headline{font-size:21px}#site-header .ca-hero-subtitle{font-size:15px}#site-footer .site-footer-links .li-title{font-size:12px!important}#site-footer .site-footer-links li{padding-right:8px!important}}

/* Correctif 2026-10-22 : les pseudo-elements clearfix ne doivent pas occuper des cellules de grille. */
#site-content .popular::before,
#site-content .popular::after { content:none!important; display:none!important; }
#site-content .popular { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:800px){#site-content .popular{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:520px){#site-content .popular{grid-template-columns:minmax(0,1fr);}}
