/*
Theme Name: Le Regard du Monde
Author: LE REGARD DU MONDE
Description: Thème éditorial minimaliste personnalisable pour sondages citoyens.
Version: 0.4.5
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: lrdm
License: GPL-2.0-or-later
*/
:root{--ink:#111827;--blue:#2865bb;--bg:#f5f5f7;--muted:#687180;--radius:25px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.45}a{color:inherit;text-decoration:none}button,input{font:inherit}.container{width:min(1040px,calc(100% - 36px));margin:auto}.site-header{position:sticky;top:0;z-index:50;background:rgba(245,245,247,.97);border-bottom:1px solid #e9ebef;backdrop-filter:blur(14px)}.admin-bar .site-header{top:32px}.header-inner{min-height:74px;display:flex;justify-content:space-between;align-items:center;gap:12px}.brand{display:flex;align-items:center;gap:11px;min-width:0}.brand-icon{width:43px;height:43px;object-fit:contain;border-radius:12px;flex:none}.brand-words{display:flex;flex-direction:column;min-width:0}.brand-title{font-size:clamp(14px,1.8vw,20px);font-weight:800;letter-spacing:-.045em;line-height:1.15}.brand-sub{font-size:12px;color:var(--muted);margin-top:5px}.main-nav{display:flex;gap:23px}.main-nav a{font-weight:650;font-size:13px}.menu-toggle{display:none;border:1px solid #e5e7eb;background:white;border-radius:50%;width:44px;height:44px;flex:none;align-items:center;justify-content:center;flex-direction:column;gap:5px}.menu-toggle span{width:18px;height:2px;background:var(--ink);border-radius:3px}.home-layout{padding-top:14px}.hero-compact{position:relative;overflow:hidden;min-height:152px;border-radius:22px;background:#e8eff7;display:flex;align-items:center;padding:22px 26px;isolation:isolate}.hero-compact:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(237,244,251,.97) 0%,rgba(237,244,251,.93) 47%,rgba(237,244,251,.16) 100%),var(--hero-image) right center/cover no-repeat;z-index:-1}.hero-content{max-width:600px}.eyebrow{font-size:10px;color:var(--blue);font-weight:800;letter-spacing:.09em}.hero-compact h1{font-size:clamp(22px,3vw,33px);letter-spacing:-.045em;line-height:1.14;margin:8px 0}.hero-compact p{font-size:13px;color:#48556a;line-height:1.5;margin:0;max-width:490px}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:20px 0 12px}.section-head h2{font-size:22px;letter-spacing:-.045em;margin:0}.section-label{color:var(--blue);font-size:10px;font-weight:750;letter-spacing:.05em;text-transform:uppercase}.poll-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.poll-card{background:#fff;border:1px solid #edf0f3;border-radius:var(--radius);padding:20px;min-width:0;box-shadow:0 6px 20px #11182705}.card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#687180;font-size:12px}.pill{color:var(--blue);font-weight:800;font-size:10px;letter-spacing:.035em}.poll-card h3{font-size:clamp(20px,2.5vw,27px);line-height:1.18;letter-spacing:-.045em;margin:12px 0 8px}.poll-sub{color:#6a7380;font-size:12px;margin:0}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.choice{min-width:0}.choice-visual{aspect-ratio:1.55;overflow:hidden;border-radius:14px;background:#e9edf3}.choice-visual img{display:block;width:100%;height:100%;object-fit:cover}.choice strong{display:block;font-size:13px;font-weight:650;margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.btn{border:0;border-radius:13px;min-height:46px;padding:10px 16px;font-size:13px;font-weight:700;background:var(--ink);color:#fff}.btn.full{width:100%}.btn:disabled{cursor:not-allowed;opacity:.93}.demo-note{display:block;font-size:10px;color:#7c8490;text-align:center;margin-top:8px}.small-info{padding:22px 5px;border-bottom:1px solid #e4e7eb}.small-info h2{font-size:19px;letter-spacing:-.035em;margin:0 0 6px}.small-info p{font-size:13px;color:var(--muted);margin:0}.site-footer{padding:25px 0 35px;color:#6a7380}.footer-inner{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;font-size:12px}.footer-inner strong{color:var(--ink)}.mobile-bottom{display:none}.page-wrap{background:white;border-radius:25px;padding:clamp(22px,4vw,48px);margin:30px auto 50px;max-width:900px}.page-wrap h1{letter-spacing:-.05em}.page-wrap p{color:#465064}.empty{padding:25px;border-radius:18px;background:white}.skip-link{position:absolute;left:8px;top:-80px;background:white;padding:10px;z-index:100}.skip-link:focus{top:8px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:700px){html{scroll-padding-top:85px}.container{width:calc(100% - 28px)}.header-inner{min-height:70px}.brand-icon{width:40px;height:40px}.brand-title{font-size:15px}.brand-sub{font-size:11px}.menu-toggle{display:flex}.main-nav{display:none;position:absolute;left:14px;right:14px;top:69px;background:white;border:1px solid #e7e9ed;border-radius:18px;padding:10px;box-shadow:0 15px 30px #11182716;flex-direction:column;gap:0}.main-nav.open{display:flex}.main-nav a{display:block;padding:12px}.home-layout{padding-top:9px}.hero-compact{min-height:112px;padding:15px 16px;border-radius:18px}.hero-compact h1{font-size:20px;margin:6px 0}.hero-compact p{font-size:11px;max-width:95%;line-height:1.35}.eyebrow{font-size:9px}.section-head{margin:15px 0 10px}.section-head h2{font-size:19px}.section-label{font-size:9px}.poll-grid{grid-template-columns:1fr;gap:12px}.poll-card{padding:16px;border-radius:22px}.poll-card h3{font-size:clamp(20px,5.2vw,25px);margin:10px 0 7px}.poll-sub{font-size:11px}.choice-grid{gap:10px;margin:12px 0}.choice-visual{aspect-ratio:1.55;border-radius:12px}.choice strong{font-size:12px;margin-top:6px}.btn{min-height:43px}.small-info{padding:20px 5px}.site-footer{padding-bottom:95px}.mobile-bottom{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;align-items:center;z-index:45;background:rgba(250,250,252,.97);border-top:1px solid #e7e9ee;padding:9px 8px max(10px,env(safe-area-inset-bottom));backdrop-filter:blur(15px)}.mobile-bottom a{min-width:75px;display:flex;flex-direction:column;align-items:center;gap:3px;color:#6b7484;font-size:11px}.mobile-bottom a:first-child{color:var(--ink)}.mobile-bottom svg{width:21px;height:21px}.admin-bar .site-header{top:46px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* Version 0.3 : sondages réels et non cartes fictives */
.home-layout .polls-section{margin-top:12px}.home-layout .hero-compact{margin-bottom:16px}.home-layout .section-head{margin-bottom:12px}
/* LRDM v0.4: poll detail without duplicate WordPress title */
.lrdm-single-wrap{max-width:760px;margin:22px auto 60px}.lrdm-single-wrap .lrdm-detail{max-width:100%}.home-layout .polls-section .lrdm-polls{margin-top:0}@media(max-width:700px){.lrdm-single-wrap{margin:12px auto 100px}.home-layout .polls-section{margin-top:8px}.home-layout .section-head{margin:10px 0}.home-layout .hero-compact{margin-bottom:10px}}

/* LRDM 0.4.1 : formulaire et liens institutionnels */
.lrdm-legal-links{display:flex;flex-wrap:wrap;gap:10px 18px;font-size:13px}.lrdm-legal-links a{color:inherit;text-decoration:none}.lrdm-legal-links a:hover{text-decoration:underline}.lrdm-contact{max-width:600px;margin:24px auto;padding:24px;background:#fff;border-radius:24px}.lrdm-contact form{display:grid;gap:15px}.lrdm-contact label{display:grid;gap:6px;font-weight:600}.lrdm-contact input,.lrdm-contact textarea{width:100%;box-sizing:border-box;border:1px solid #d5d9e0;border-radius:12px;padding:12px;font:inherit}.lrdm-contact button{background:#111827;color:#fff;border:0;border-radius:12px;padding:14px;font:inherit;font-weight:700;cursor:pointer}.lrdm-honeypot{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* LRDM 0.4.2: dark mode, opt-in per device */
.lrdm-theme-toggle{border:1px solid #d9dde4;border-radius:50%;background:#fff;color:#111827;width:38px;height:38px;flex-shrink:0;cursor:pointer;font-size:21px;display:inline-flex;align-items:center;justify-content:center;margin-left:auto;margin-right:10px}.lrdm-dark{color-scheme:dark;--ink:#f1f5f9!important;--bg:#101722!important}.lrdm-dark body,.lrdm-dark .site-header,.lrdm-dark .site-footer{background:#101722!important;color:#f1f5f9!important}.lrdm-dark .hero-compact,.lrdm-dark .small-info,.lrdm-dark .lrdm-poll,.lrdm-dark .lrdm-result-card,.lrdm-dark .lrdm-empty,.lrdm-dark .mobile-bottom{background:#1c2736!important;border-color:#344255!important;color:#f1f5f9!important}.lrdm-dark .lrdm-poll h2,.lrdm-dark .lrdm-option,.lrdm-dark .lrdm-result-card h3 a,.lrdm-dark .lrdm-browser-tools label,.lrdm-dark .brand-title,.lrdm-dark h1,.lrdm-dark h2,.lrdm-dark h3{color:#f1f5f9!important}.lrdm-dark .lrdm-option-text small,.lrdm-dark .lrdm-description,.lrdm-dark .lrdm-total,.lrdm-dark .lrdm-meta span:last-child{color:#bac7d7!important}.lrdm-dark .lrdm-list .lrdm-option,.lrdm-dark .lrdm-detail .lrdm-grid .lrdm-option{border-color:#344255!important}.lrdm-dark .lrdm-browser-tools input,.lrdm-dark .lrdm-browser-tools select{background:#263447;color:#f1f5f9;border-color:#526277}.lrdm-dark .lrdm-track{background:#3b4b61}.lrdm-dark .lrdm-theme-toggle{background:#263447;color:#fff;border-color:#526277}.lrdm-dark .lrdm-state-voted{background:#143b2b;color:#a9f0c9;border-color:#286a49}.lrdm-dark .lrdm-state-closed{background:#303b4a;color:#d7e1ef;border-color:#526277}.lrdm-dark .lrdm-result-head{color:#c4cedd}.lrdm-dark .lrdm-status.is-open{background:#143b2b;color:#a9f0c9}.lrdm-dark .lrdm-status.is-closed{background:#303b4a;color:#d7e1ef}

/* 0.4.3 — sélecteur de thème explicite, accessible sur téléphone */
.lrdm-theme-toggle{width:auto;min-width:112px;height:38px;padding:0 11px;border-radius:999px;gap:7px;margin-left:auto;margin-right:4px;font-size:12px;font-weight:700;white-space:nowrap;line-height:1;transition:background-color .15s,border-color .15s}
.lrdm-theme-toggle:focus-visible{outline:3px solid #3b82f6;outline-offset:3px}
.lrdm-mode-icon{font-size:18px;line-height:1}.lrdm-mode-label{font-size:12px}
.lrdm-dark .main-nav.open{background:#1c2736;border-color:#344255}.lrdm-dark .menu-toggle{background:#263447;border-color:#526277}.lrdm-dark .menu-toggle span{background:#f1f5f9}
.lrdm-dark .page-wrap,.lrdm-dark .lrdm-contact,.lrdm-dark .empty{background:#1c2736;color:#f1f5f9}.lrdm-dark .page-wrap p,.lrdm-dark .small-info p,.lrdm-dark .hero-compact p{color:#c3d0e1}.lrdm-dark .lrdm-contact input,.lrdm-dark .lrdm-contact textarea{background:#263447;color:#f1f5f9;border-color:#526277}
@media(max-width:700px){.lrdm-theme-toggle{min-width:92px;padding:0 8px;gap:4px}.lrdm-mode-label{font-size:11px}.header-inner{gap:7px}.brand{gap:7px}.brand-icon{width:36px;height:36px}.brand-title{font-size:clamp(12px,3.7vw,15px)}.brand-sub{font-size:10px}.menu-toggle{width:39px;height:39px}}
@media(max-width:370px){.lrdm-mode-label{font-size:0}.lrdm-theme-toggle{min-width:40px;width:40px;padding:0;justify-content:center}.lrdm-mode-icon{font-size:19px}}

/* V0.4.4: keep the light hero banner readable in dark mode. */
html.lrdm-dark .hero-compact{background:#e8eff7!important;color:#17263b!important;border-color:transparent!important}
html.lrdm-dark .hero-compact .hero-content,html.lrdm-dark .hero-compact h1{color:#17263b!important}
html.lrdm-dark .hero-compact .eyebrow{color:#245b9d!important}
html.lrdm-dark .hero-compact p{color:#35465e!important}


/* V0.4.5 — identité visuelle et contraste de la bannière, sans toucher aux sondages */
.brand-name-main{color:#101820!important}
.brand-name-red{color:#df0612!important}
.lrdm-dark .brand-name-main{color:#f8fafc!important}
.lrdm-dark .brand-name-red{color:#ff4652!important}
.brand-title{letter-spacing:-.035em}
.brand-icon{object-fit:contain;border-radius:0;background:transparent}
html.lrdm-dark .hero-compact,
html:not(.lrdm-dark) .hero-compact{
 background:#e8eff7!important;color:#101820!important;
}
html.lrdm-dark .hero-compact:before{
 background:linear-gradient(90deg,rgba(237,244,251,.98) 0%,rgba(237,244,251,.96) 55%,rgba(237,244,251,.65) 100%),var(--hero-image) right center/cover no-repeat!important;
}
html.lrdm-dark .hero-compact h1,
html.lrdm-dark .hero-compact p,
html.lrdm-dark .hero-compact .hero-content,
html:not(.lrdm-dark) .hero-compact h1{color:#101820!important;font-weight:750!important;text-shadow:none!important}
html.lrdm-dark .hero-compact .eyebrow{color:#1d528c!important;font-weight:850!important}
.lrdm-contact-brand{display:flex;align-items:center;gap:12px;margin:0 0 18px}
.lrdm-contact-brand img{width:64px;height:auto;object-fit:contain}
.lrdm-contact-brand strong{font-size:15px;letter-spacing:-.025em}
.lrdm-contact-brand .red{color:#df0612}
.lrdm-dark .lrdm-contact-brand .main{color:#f8fafc}
@media(max-width:700px){.brand-icon{width:38px;height:32px}.brand-title{font-size:clamp(11px,3.25vw,15px)}.brand-words{max-width:calc(100vw - 208px)}.lrdm-contact-brand img{width:52px}}
