:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#202b3a;background:#f6f8fb}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}header{background:#fff;border-bottom:1px solid #e5e9f0}.wrap{max-width:1120px;margin:auto;padding:0 22px}.nav{min-height:75px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-size:21px;font-weight:800;color:#203b62}nav{display:flex;gap:24px}main{min-height:80vh;padding-top:28px!important;padding-bottom:65px!important}.hero{background:linear-gradient(110deg,#172f53,#47698d);color:white;padding:65px 50px;border-radius:18px;margin-bottom:46px}.hero h1{font-size:clamp(30px,4vw,52px);max-width:650px;margin:14px 0}.hero p{max-width:570px;line-height:1.7;color:#e6efff}.eyebrow{letter-spacing:3px;font-size:12px}.btn,button{display:inline-block;border:0;background:#2764a1;color:white;border-radius:9px;padding:12px 18px;font-size:15px;font-weight:650;cursor:pointer}.btn.secondary,button.secondary{background:#e8eef6;color:#25446b}.hero .btn{margin-top:14px;background:#fff;color:#1d416a}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.section-head form{display:flex;gap:8px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:22px}.product,.panel{background:white;border:1px solid #e1e7ee;border-radius:14px;overflow:hidden}.cover{height:310px;background:linear-gradient(135deg,#e6edf5,#d4e0ed);display:flex;align-items:center;justify-content:center}.cover img{width:100%;height:100%;object-fit:contain}.placeholder{font-size:75px}.product-body{padding:20px}.product h3{margin:9px 0}.product p{min-height:70px;color:#58687c;line-height:1.5}.product small,small,.muted{color:#64748b}.tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}.tags span{font-size:12px;background:#eff4fa;padding:5px 8px;border-radius:6px}.detail{display:grid;grid-template-columns:minmax(220px,360px) 1fr;gap:45px;margin-top:24px}.detail-cover{height:490px;border-radius:15px;overflow:hidden}.summary{font-size:17px;line-height:1.8;white-space:normal}.variant{background:white;border:1px solid #dce4ef;border-radius:10px;padding:15px;display:flex;justify-content:space-between;gap:15px;margin:10px 0}.variant small{display:block;margin-top:6px}.price{text-align:right;white-space:nowrap}.price strong{display:block;font-size:20px}.price del{color:#8d99a8}.notice,.empty{background:#fff5df;border:1px solid #f0d79d;padding:16px;border-radius:10px;margin-top:20px}.panel{padding:24px;margin:22px 0}.login{max-width:500px}.admin-head,.admin-item,.actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.admin-item{border-top:1px solid #e8edf3;padding:16px 0}.admin-item small{display:block;margin-top:5px}.actions{justify-content:flex-start}label{display:block;font-weight:600;font-size:14px;margin-bottom:14px}input,textarea,select{font:inherit;width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:11px;margin-top:7px;background:white;color:#1d2939}input[type=checkbox]{width:auto;margin:0 8px 0 0}.check{display:flex;align-items:center}.two{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.format-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px}.format{border:1px solid #dbe3ee;border-radius:10px;padding:13px}.format label{font-size:13px}.error,.success{padding:14px;border-radius:9px}.error{background:#fee2e2}.success{background:#dcfce7}.danger{background:#a83c3c}footer{text-align:center;padding:25px;color:#65738a;border-top:1px solid #e2e8f0}@media(max-width:700px){.detail{grid-template-columns:1fr}.hero{padding:35px 25px}.two{grid-template-columns:1fr}.nav{flex-direction:column;padding:18px}.detail-cover{height:380px}}

/* BookBest sombre, contrasté et lisible */
:root{color-scheme:dark;color:#f5f8ff;background:#071525;font-size:18px}body{background:#071525;color:#f5f8ff}header{background:#071323;border-color:#315373}.brand{color:#ffce72;font-size:26px}nav a{color:#f5f8ff;font-weight:700}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:4px solid #ffcd55;outline-offset:3px}.hero{background:linear-gradient(90deg,rgba(2,12,28,.91),rgba(3,19,40,.48)),url('banniere.jpg') center/cover;min-height:330px;border:1px solid #4a7195}.hero h1{color:#fff}.hero p{color:#fff;font-size:20px}.hero .btn{background:#ffcb57;color:#091426}.product,.panel,.variant{background:#10243a;border-color:#466181;color:#fff}.product p,.product small,small,.muted,.variant small{color:#d3e3f6}.cover{background:#18324f}.tags span{background:#285580;color:#fff}.btn,button{background:#176be8;color:#fff;font-size:17px;min-height:45px}.btn.secondary,button.secondary{background:#2d4b6a;color:#fff}.notice,.empty{background:#40341d;border-color:#a78a46;color:#fff}.format{background:#142e4b;border-color:#42638b}input,textarea,select{background:#08192b;color:#fff;border:2px solid #7295b8;font-size:18px;min-height:46px}input::placeholder{color:#c0d1e4}.admin-item{border-color:#42638b}.error{background:#672c35;color:#fff}.success{background:#185b43;color:#fff}footer{color:#c9d9eb;border-color:#34536d}.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:22px 0 40px}.category-tile{background:#10243a;border:1px solid #466181;border-radius:14px;overflow:hidden}.category-tile img{width:100%;height:150px;object-fit:cover}.category-tile div{padding:15px}.category-tile h3{margin:0 0 7px}.category-tile p{margin:0;color:#d3e3f6}.media-player{width:100%;max-width:720px;margin:18px 0;background:#000;border-radius:12px}.media-box{padding:16px;border:1px solid #476486;border-radius:12px;background:#10243a;margin:18px 0}.warning{color:#ffe39a}.format label{color:#fff}button.danger{background:#b32f46} .admin-head h1{font-size:clamp(26px,3vw,38px)}

/* Sélecteur de langue visible, écriture persane RTL */
.language-switch{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.language-switch a{font-size:22px;font-weight:800;border:2px solid #b6d5ff;border-radius:12px;padding:10px 20px;background:#142d4a;color:#fff;min-width:125px;text-align:center}.language-switch a.selected{background:#ffce65;color:#101d31;border-color:#ffce65}html[dir=rtl] body{font-family:Tahoma,Arial,sans-serif}html[dir=rtl] .hero,html[dir=rtl] .product-body,html[dir=rtl] .panel{text-align:right}html[dir=rtl] .price{text-align:left}html[dir=rtl] .section-head{direction:rtl}html[dir=rtl] input,html[dir=rtl] textarea{text-align:right}@media(max-width:850px){.nav{flex-wrap:wrap;justify-content:center}.language-switch{justify-content:center}}

.language-switch a{min-height:58px;min-width:145px;font-size:24px;border-width:3px} .language-switch a:hover{border-color:#ffce65} @media(max-width:680px){.language-switch a{min-width:125px;font-size:21px}}

/* Accessibility: prominent language switch and media tools */
.language-switch{display:flex;gap:10px;flex-wrap:wrap}.language-switch a{font-size:19px!important;font-weight:800!important;padding:12px 17px!important;border:2px solid #8dc6ff!important;border-radius:10px!important;min-width:100px;text-align:center}.language-switch a.selected{background:#f7c35c!important;color:#061427!important;border-color:#f7c35c!important}.media-admin-shortcuts{border:2px solid #5daaff}.media-badge{color:#fff;background:#16539c;padding:8px 12px;border-radius:8px;font-weight:700;margin:10px 0;display:inline-block}input,textarea,select{font-size:18px!important}label{font-size:17px!important}button,.btn{font-size:17px!important}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #ffd05d;outline-offset:3px}
