
:root{
  --orange:#f25b19; --orange2:#ff6a22; --dark:#101010; --dark2:#181818;
  --text:#1b1b1b; --muted:#6a6a6a; --light:#f5f5f2; --line:#e7e7e3;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:#fff;line-height:1.5}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.topbar{background:#090909;color:#ccc;font-size:13px;padding:8px 5%;text-align:right}
header{background:#111;color:#fff;position:sticky;top:0;z-index:50;border-bottom:1px solid #2c2c2c}
.navwrap{max-width:1280px;margin:auto;padding:9px 22px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand img{height:88px;width:auto;max-width:320px;object-fit:contain;background:#fff;border-radius:8px;padding:4px}
nav{display:flex;gap:18px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
nav a{color:#f3f3f3;font-size:12px;font-weight:900;letter-spacing:.02em}
nav a:hover,nav a.active{color:var(--orange2)}
.hero{max-width:1280px;margin:26px auto 0;padding:0 22px}
.hero-box{height:430px;border-radius:20px;overflow:hidden;display:flex;align-items:center;
background:linear-gradient(90deg,rgba(0,0,0,.86),rgba(0,0,0,.35)),url('assets/magasin.jpg') center/cover}
.hero-content{color:#fff;padding:48px;max-width:650px}
.kicker{color:var(--orange2);font-weight:900;letter-spacing:2px;font-size:13px;text-transform:uppercase}
h1{font-size:50px;line-height:1.03;margin:13px 0 15px}
.hero p{font-size:18px;color:#eee;max-width:580px}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.btn{display:inline-block;background:var(--orange);color:#fff;padding:13px 19px;border-radius:7px;font-weight:900;border:0;cursor:pointer}
.btn.secondary{background:#fff;color:#111}.btn.dark{background:#111;color:#fff}.btn.outline{background:transparent;border:1px solid #aaa;color:#fff}
.btn:hover{filter:brightness(.95)}
.section{max-width:1280px;margin:auto;padding:68px 22px}
.section.alt{max-width:none;background:var(--light)} .section.alt>.inner{max-width:1280px;margin:auto}
.head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}
.head h2{font-size:34px;margin:0}.head p{color:var(--muted);margin:6px 0 0;max-width:650px}
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 7px 24px rgba(0,0,0,.05)}
.card img{width:100%;height:205px;object-fit:cover}
.card-body{padding:20px}
.card h3{margin:0 0 8px;font-size:20px}.card p{color:var(--muted);margin:0 0 16px}
.tag{display:inline-block;background:#f1f1ef;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800;margin:0 5px 6px 0}
.robot-visual{height:235px;background:linear-gradient(135deg,#ededeb,#fff);display:flex;align-items:center;justify-content:center;position:relative}
.robot-shape{width:68%;height:48%;background:#333;border-radius:48% 48% 28% 28%;position:relative;box-shadow:0 18px 28px rgba(0,0,0,.15)}
.robot-shape:before{content:"";position:absolute;width:44%;height:24%;background:#4a4a4a;border-radius:50%;left:28%;top:14%}
.robot-shape:after{content:"";position:absolute;width:20%;height:10%;background:var(--orange);border-radius:20px;left:40%;top:10%}
.photo-label{position:absolute;left:12px;bottom:10px;background:#fff;border:1px solid var(--line);padding:5px 8px;border-radius:5px;font-size:11px;color:#777}
.band{background:#111;color:#fff}
.band-inner{max-width:1280px;margin:auto;padding:48px 22px;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.band-item{padding:16px}.band-item b{color:var(--orange2)}
.split{display:grid;grid-template-columns:1.05fr .95fr;gap:45px;align-items:center}
.split img{height:390px;width:100%;object-fit:cover;border-radius:16px}
.list{display:grid;gap:10px;margin:24px 0}.list div{background:#fff;border-left:4px solid var(--orange);padding:13px 15px;border-radius:5px}
.page-hero{background:#111;color:#fff}.page-hero .inner{max-width:1280px;margin:auto;padding:70px 22px}.page-hero h1{margin-bottom:12px}.page-hero p{color:#ccc;max-width:760px;font-size:18px}
.price{font-size:24px;font-weight:900;color:#111;margin:12px 0}
.status{display:inline-block;background:#eaf7ea;color:#1f6b2a;padding:6px 9px;border-radius:6px;font-size:11px;font-weight:900}
.placeholder{height:210px;background:linear-gradient(135deg,#252525,#555);display:flex;align-items:end;color:#fff;padding:18px;font-weight:900;font-size:20px}
.video{height:220px;background:#171717;display:flex;align-items:center;justify-content:center;position:relative}
.play{width:62px;height:62px;border-radius:50%;background:var(--orange);color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;padding-left:4px}
.contact-panel{display:grid;grid-template-columns:1fr 1fr;gap:24px}.contact-box{background:#fff;border:1px solid var(--line);border-radius:14px;padding:25px}
.contact-row{padding:12px 0;border-bottom:1px solid var(--line)}.contact-row:last-child{border:0}
.notice{background:#fff4ed;border-left:4px solid var(--orange);padding:15px;border-radius:6px;color:#6b442d}
.site-footer{background:#090909;color:#d1d1d1;font-size:14px;border-top:1px solid #242424}
.footer-inner{max-width:1280px;margin:auto;padding:52px 22px 42px;display:grid;grid-template-columns:1.15fr .8fr 1fr 1.35fr;gap:42px;text-align:left}
.footer-col{min-width:0}.footer-col h3{color:#fff;font-size:15px;text-transform:uppercase;letter-spacing:.06em;margin:0 0 18px;padding-bottom:10px;border-bottom:2px solid var(--orange);display:inline-block}
.footer-col p{margin:0 0 10px;color:#c4c4c4}.footer-col>a{display:block;color:#c9c9c9;margin:0 0 10px}.footer-col>a:hover{color:var(--orange2)}
.footer-brand{font-size:28px;line-height:1;font-weight:1000;letter-spacing:.02em;color:#fff;margin-bottom:15px}.footer-brand span{color:var(--orange2)}
.footer-about>p:first-of-type{color:#fff;font-weight:800;font-size:16px}.footer-muted{max-width:270px;line-height:1.65}
.footer-contact-btn{display:inline-block!important;width:max-content;background:var(--orange);color:#fff!important;padding:10px 14px;border-radius:7px;font-weight:900;margin-top:8px!important}
.footer-map{height:190px;border-radius:12px;overflow:hidden;border:1px solid #2c2c2c;background:#1b1b1b}.footer-map iframe{width:100%;height:100%;border:0;display:block}
.footer-bottom{border-top:1px solid #242424;max-width:1280px;margin:auto;padding:18px 22px;display:flex;justify-content:space-between;gap:18px;color:#777;font-size:12px;text-align:left}.footer-bottom a{color:#888}.footer-bottom a:hover{color:#fff}
@media(max-width:980px){.footer-inner{grid-template-columns:repeat(2,1fr);gap:34px}.footer-map{height:220px}}
@media(max-width:650px){.footer-inner{grid-template-columns:1fr;padding:38px 18px 30px;gap:30px}.footer-map{height:240px}.footer-bottom{flex-direction:column;padding:16px 18px}.footer-brand{font-size:25px}}
@media(max-width:980px){
  .brand img{height:72px} nav{gap:10px}.grid4{grid-template-columns:repeat(2,1fr)}.grid3{grid-template-columns:repeat(2,1fr)}
  .band-inner{grid-template-columns:repeat(2,1fr)}.split,.contact-panel{grid-template-columns:1fr}.hero-box{height:400px}
}
@media(max-width:650px){
  .topbar{text-align:center}.navwrap{align-items:flex-start}.brand img{height:62px;max-width:210px}nav{display:none}
  .hero{padding:0 12px}.hero-box{height:480px;border-radius:14px}.hero-content{padding:28px}
  h1{font-size:38px}.section{padding:50px 16px}.grid4,.grid3,.grid2,.band-inner{grid-template-columns:1fr}
  .head{display:block}.head .btn{margin-top:15px}.page-hero .inner{padding:50px 16px}
}

/* Alignement uniforme des boutons dans les cartes */
.grid4 .card, .grid3 .card {
  display: flex;
  flex-direction: column;
}
.grid4 .card .card-body, .grid3 .card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.grid4 .card .card-body .btn, .grid3 .card .card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.admin-wrap{max-width:900px;margin:40px auto;padding:0 20px}.admin-panel{background:#fff;border:1px solid #e7e7e3;border-radius:14px;padding:22px}.field{margin-bottom:15px}.field label{display:block;font-weight:800;margin-bottom:6px}.field input,.field textarea{width:100%;padding:11px;border:1px solid #ccc;border-radius:7px;font:inherit}.save{background:#f25b19;color:#fff;border:0;padding:12px 17px;border-radius:7px;font-weight:900}.notice{background:#fff4ed;border-left:4px solid #f25b19;padding:15px;border-radius:6px}

/* Admin complet / réglages dynamiques */
.brand{display:flex;align-items:center;flex:0 0 auto}
.brand img{width:auto!important;max-width:360px;object-fit:contain;transition:.2s}
.navwrap{min-height:92px}
.card{display:flex;flex-direction:column}
.card-body{display:flex;flex-direction:column;flex:1}
.card-body .btn{margin-top:auto;align-self:flex-start}
.admin-shell{max-width:1280px;margin:28px auto;padding:0 20px}
.admin-header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}
.admin-header img{max-width:240px;max-height:100px;object-fit:contain}
.admin-nav{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 25px}
.admin-nav a{background:#eee;padding:10px 13px;border-radius:8px;font-weight:800}
.admin-panel{background:#fff;border:1px solid #e5e5e5;padding:22px;margin-bottom:20px}
.admin-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.field{margin-bottom:15px}.field label{display:block;font-weight:800;margin-bottom:6px}
.field input,.field textarea,.field select{width:100%;padding:11px;border:1px solid #ccc;border-radius:7px;font:inherit;background:#fff}
.field textarea{min-height:88px;resize:vertical}.field input[type=range]{padding:0}
.save{background:var(--orange);color:#fff;border:0;padding:12px 17px;border-radius:7px;font-weight:900;cursor:pointer}
.small-btn{border:0;padding:8px 10px;border-radius:6px;cursor:pointer;font-weight:800}
.danger{background:#ffe8e8;color:#9d1010}.neutral{background:#eee;color:#111}.updown{background:#111;color:#fff}
.admin-list{display:grid;gap:10px;margin-top:16px}.admin-item{border:1px solid #eee;border-radius:10px;padding:12px}
.admin-item summary{cursor:pointer;font-weight:900;display:flex;justify-content:space-between;gap:10px}
.item-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.thumb-admin{width:110px;height:80px;object-fit:cover;border-radius:7px;border:1px solid #ddd;margin:8px 0}
.ok{background:#eaf7ea;color:#226629;padding:12px 14px;border-radius:7px;margin-bottom:16px}
.warn{background:#fff4ed;border-left:4px solid var(--orange);padding:12px 14px;border-radius:7px;margin-bottom:16px}
.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:11px 0;border-bottom:1px solid #eee}
.toggle-row:last-child{border:0}.toggle-row input{width:22px;height:22px}
@media(max-width:980px){.brand img{max-width:280px}.admin-grid{grid-template-columns:1fr}}
@media(max-width:650px){.brand img{max-width:210px}.navwrap{min-height:75px}.admin-header{align-items:flex-start;flex-direction:column}}

/* Editeur visuel Mécabo */
body.editor-mode{padding-bottom:78px}
.editor-toolbar{position:sticky;top:0;z-index:9999;background:#111;color:#fff;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 3px 12px rgba(0,0,0,.22)}
.editor-toolbar .left,.editor-toolbar .right{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.editor-toolbar button,.editor-toolbar a{border:0;border-radius:7px;padding:9px 12px;font-weight:900;cursor:pointer;text-decoration:none}
.editor-toolbar .orange{background:var(--orange);color:#fff}.editor-toolbar .light{background:#fff;color:#111}.editor-toolbar .muted{background:#333;color:#fff}
.editable{position:relative;outline:2px dashed transparent;outline-offset:4px;transition:.15s}
.editable:hover{outline-color:var(--orange);cursor:pointer}
.edit-badge{position:absolute;z-index:30;top:7px;right:7px;background:#111;color:#fff;border-radius:6px;padding:5px 8px;font-size:12px;font-weight:900;opacity:0;pointer-events:none}
.editable:hover>.edit-badge{opacity:1}
.editor-panel{position:fixed;z-index:10000;right:0;top:0;width:min(440px,94vw);height:100vh;background:#fff;box-shadow:-6px 0 25px rgba(0,0,0,.25);padding:22px;overflow:auto;transform:translateX(105%);transition:.2s}
.editor-panel.open{transform:translateX(0)}
.editor-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}
.editor-panel h2{color:#111;margin:0}.editor-close{border:0;background:#eee;border-radius:50%;width:38px;height:38px;font-size:20px;cursor:pointer}
.editor-field{margin-bottom:15px}.editor-field label{display:block;font-weight:900;margin-bottom:6px}
.editor-field input,.editor-field textarea,.editor-field select{width:100%;padding:11px;border:1px solid #ccc;border-radius:7px;font:inherit}.editor-field textarea{min-height:100px}
.editor-save{width:100%;background:var(--orange);color:#fff;border:0;border-radius:7px;padding:12px;font-weight:900;cursor:pointer}
.editor-help{background:#fff4ed;border-left:4px solid var(--orange);padding:11px;border-radius:6px;font-size:14px;margin-bottom:15px}
.editor-card-actions{display:flex;gap:7px;margin-top:10px;flex-wrap:wrap}.editor-card-actions button{border:0;border-radius:6px;padding:7px 9px;font-weight:800;cursor:pointer}
.editor-add{border:2px dashed #bbb;border-radius:12px;padding:25px;text-align:center;font-weight:900;cursor:pointer;background:#fafafa;min-height:130px;display:flex;align-items:center;justify-content:center}
.editor-add:hover{border-color:var(--orange);color:var(--orange)}
@media(max-width:700px){.editor-toolbar{align-items:flex-start;flex-direction:column}.editor-toolbar .right{width:100%}.editor-toolbar button,.editor-toolbar a{font-size:12px}}

/* Logo Mécabo : bouton cliquable fondu dans la bannière noire */
header .brand,
.site-header .brand,
.topbar .brand,
.brand {
  background: #111 !important;
  background-color: #111 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.brand img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: block;
}
