/* =====================================================================
   ECOREPARTECH — refonte façon Reichelt (30/11/2026)
   Référence : maquette_site_ecorepartech.html + CAHIER_DES_CHARGES_SITE_ECOREPARTECH.md
   Étape 1 : charte (§1), en-tête (§2), pied de page (§3). Préfixe .e2-
   ===================================================================== */
:root{
  --e2-blue:#0d5fd6;--e2-blue-d:#0a4bab;--e2-blue-l:#e8f1fd;
  --e2-navy:#0f1b2d;--e2-green:#3aa935;--e2-red:#d71920;
  --e2-txt:#333a44;--e2-muted:#6b7480;--e2-grey:#f2f3f5;--e2-foot:#e6e8eb;--e2-line:#d5d9de;
  --e2-cond:"Oswald","Arial Narrow","Roboto Condensed",Arial,sans-serif;
}
/* --- charte : texte, fond blanc, pas de fond à points --- */
body.e2{font:14px/1.4 Arial,Helvetica,sans-serif;color:var(--e2-txt);background:#fff!important;background-image:none!important}
body.e2 .ert-page,body.e2 .ert-content{background:#fff!important;background-image:none!important}
.e2-wrap{max-width:1240px;margin:0 auto;padding:0 16px;box-sizing:border-box}
.e2-wrap *,.e2-foot *{box-sizing:border-box}
.e2-head a,.e2-foot a{color:inherit;text-decoration:none}
.e2-head button,.e2-foot button{font:inherit;cursor:pointer}

/* l'ancien en-tête et l'ancien pied restent dans la page mais sont masqués (retour arrière immédiat) */
body.e2 .ert-topbar,body.e2 header.ert-header,body.e2 .ert-nav-overlay,body.e2 .ert-pdp{display:none!important}

/* --- bandeau construction (actuel, gardé) --- */
body.e2 .ert-chantier{background:#fff6d6;color:#6b5300;font-size:13px;padding:6px 44px 6px 16px;border-bottom:0;min-height:30px}
body.e2 .ert-chantier strong{color:#8a5a00}
body.e2 .ert-chantier a{color:#6b5300;font-weight:400}

/* --- barre utilitaire (28 px) --- */
.e2-util{font-size:12px;color:#555;display:flex;justify-content:space-between;align-items:center;height:28px}
.e2-util > div{display:flex;align-items:center}
.e2-util .e2-u{margin-right:14px}
.e2-util .r .e2-u{margin:0 0 0 10px}
.e2-util .r .e2-sep{margin-left:10px;color:#999}
.e2-util button{border:0;background:none;padding:0;color:#555;font-size:12px}
.e2-util a:hover,.e2-util button:hover{color:var(--e2-blue)}

/* menus déroulants de la barre utilitaire */
.e2-dd{position:relative;display:inline-block}
.e2-dd > button,.e2-dd > span{cursor:pointer}
.e2-dd .e2-ddm{display:none;position:absolute;top:100%;left:0;z-index:60;min-width:220px;background:#fff;border:1px solid var(--e2-line);border-top:3px solid var(--e2-blue);box-shadow:0 6px 16px rgba(0,0,0,.12);padding:6px 0;font-size:13px;color:var(--e2-txt);text-align:left}
.e2-util .r .e2-dd .e2-ddm{left:auto;right:0}
.e2-dd.open .e2-ddm{display:block}
.e2-ddm a,.e2-ddm p,.e2-ddm button{display:block;width:100%;padding:6px 14px;margin:0;line-height:1.35;background:none;border:0;text-align:left;font-size:13px;color:var(--e2-txt)}
.e2-ddm a:hover,.e2-ddm button:hover{background:var(--e2-blue-l);color:var(--e2-blue)}
.e2-ddm .on{font-weight:700;color:var(--e2-blue)}
.e2-ddm p{color:var(--e2-muted);font-size:12px}

/* --- ligne logo / recherche / panier --- */
.e2-hline{display:flex;align-items:center;gap:30px;padding:6px 0 10px}
.e2-logo{display:flex;flex-direction:column;flex:none}
.e2-logo img{display:block;height:56px;width:auto;border-radius:8px}
.e2-logo small{font-size:11px;color:var(--e2-muted);text-align:right;margin-top:3px}
.e2-logo small i{color:var(--e2-green);font-style:normal}
.e2-search{flex:1;position:relative;min-width:0}
.e2-sbox{display:flex;height:38px;border:1px solid var(--e2-line);margin:0;background:#fff}
.e2-sbox select{border:0;border-right:1px solid var(--e2-line);background:#fff;padding:0 10px;width:110px;font-size:13px;color:var(--e2-txt);border-radius:0;height:auto;-webkit-appearance:auto;appearance:auto}
.e2-sbox input[type=search]{flex:1;min-width:0;border:0;padding:0 12px;font-size:13px;height:auto;border-radius:0;box-shadow:none;background:#fff;color:var(--e2-txt)}
.e2-sbox input[type=search]:focus{outline:2px solid var(--e2-blue);outline-offset:-2px}
.e2-sbox button{width:44px;border:0;background:var(--e2-blue);color:#fff;display:flex;align-items:center;justify-content:center;padding:0;border-radius:0}
.e2-sbox button:hover{background:var(--e2-blue-d)}
.e2-slinks{font-size:14px;color:#555;margin-top:6px}
.e2-slinks a:hover,.e2-slinks button:hover{color:var(--e2-blue)}
.e2-slinks button{border:0;background:none;padding:0;color:#555;font-size:14px}
.e2-slinks .e2-ddm{min-width:340px}
/* suggestions de la recherche instantanée */
.e2-suggest{position:absolute;left:0;right:0;top:39px;z-index:70;background:#fff;border:1px solid var(--e2-line);border-top:0;box-shadow:0 8px 18px rgba(0,0,0,.12)}
.e2-suggest a{display:flex;align-items:center;gap:10px;padding:7px 10px;border-top:1px solid #eef0f3;font-size:13px}
.e2-suggest a:hover,.e2-suggest a.on{background:var(--e2-blue-l)}
.e2-suggest img{width:40px;height:40px;object-fit:contain;flex:none;background:#fff}
.e2-suggest .t{flex:1;min-width:0;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.e2-suggest .r{display:block;font-weight:400;color:var(--e2-muted);font-size:12px}
.e2-suggest .p{font:700 16px var(--e2-cond);white-space:nowrap}
.e2-suggest .s{font-size:11px;color:var(--e2-green);white-space:nowrap}
.e2-suggest .s.no{color:var(--e2-red)}
.e2-suggest .all{justify-content:center;font-weight:700;color:var(--e2-blue)}

.e2-cart{display:flex;gap:12px;align-items:center;flex:none}
.e2-cart .ic{position:relative;color:var(--e2-blue);line-height:1;display:block}
.e2-cart .ic svg{display:block;width:38px;height:38px}
.e2-cart .ic em{position:absolute;top:-6px;right:-8px;background:var(--e2-red);color:#fff;font:700 11px/18px Arial;min-width:18px;padding:0 4px;text-align:center;border-radius:9px;font-style:normal}
.e2-cart .tx{display:block;text-align:right;font-size:12px;line-height:1.25}
.e2-cart .tx b{font-size:13px}
.e2-cart .qo{display:block;font-size:14px;color:#555;margin-top:8px;text-align:right}
.e2-cart .qo:hover,.e2-cart .tx:hover b{color:var(--e2-blue)}

/* --- barre des rayons (12 boutons de même largeur, 52 px) --- */
.e2-rayons{display:grid;grid-template-columns:repeat(12,1fr);gap:3px;position:relative}
.e2-rayons > a{background:var(--e2-blue);color:#fff!important;height:52px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:13px;line-height:1.15;padding:0 4px}
.e2-rayons > a:hover,.e2-rayons > a.hov,.e2-rayons > a.cur{background:var(--e2-blue-d)}
.e2-rayons > a.nv{background:var(--e2-green)}.e2-rayons > a.nv:hover{background:#2f8f2b}
.e2-rayons > a.pr{background:var(--e2-red)}.e2-rayons > a.pr:hover{background:#b5141a}
.e2-mega{display:none;position:absolute;left:0;right:0;top:52px;background:#fff;border:1px solid var(--e2-line);border-top:3px solid var(--e2-blue);box-shadow:0 6px 16px rgba(0,0,0,.12);padding:16px 20px;z-index:50;grid-template-columns:repeat(4,1fr);gap:10px 24px}
.e2-mega.show{display:grid}
.e2-mega a{display:flex;align-items:center;gap:10px;font-size:13px;padding:4px}
.e2-mega a:hover{color:var(--e2-blue)}
.e2-mega .ph{width:40px;height:40px;flex:none;object-fit:contain}
.e2-mega .n{color:var(--e2-muted);font-size:12px}
.e2-mega .all{grid-column:1/-1;font-weight:700;border-top:1px solid #eef0f3;padding-top:8px;margin-top:2px}

/* --- bandeau d'arguments (24 px, bleu nuit) --- */
.e2-args{background:var(--e2-navy);color:#fff;text-align:center;font-size:13px;height:24px;line-height:24px;overflow:hidden;white-space:nowrap}
.e2-args span{margin:0 14px}

/* --- fil d'Ariane du thème au format de la maquette --- */
body.e2 .ert-crumbs{font-size:13px!important;margin:10px 0 14px!important;color:var(--e2-txt)!important;display:block!important;background:none!important;padding:0!important}
body.e2 .ert-crumbs::before{content:"Vous êtes ici : ";font-weight:700}
body.e2 .ert-crumbs a{color:var(--e2-txt)!important;text-decoration:none!important}
body.e2 .ert-crumbs a:hover{color:var(--e2-blue)!important;text-decoration:underline!important}
body.e2 .ert-crumbs span[aria-hidden]{font-size:0!important;margin:0 4px}
body.e2 .ert-crumbs span[aria-hidden]::after{content:"◂";font-size:13px}
body.e2 .ert-crumbs__cur{color:var(--e2-txt)!important;font-weight:400!important}

/* --- placeholder d'image (cadre gris + format attendu) --- */
.e2-ph{background:#eef0f3;border:1px dashed #b9c0c9;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#8a93a0;font-size:11px;text-align:center;line-height:1.2;position:relative}
.e2-ph svg{width:46%;max-width:70px;opacity:.55}

/* =========================== PIED DE PAGE =========================== */
.e2-foot{font:14px/1.4 Arial,Helvetica,sans-serif;color:var(--e2-txt)}
.e2-note{font-size:14px;color:#555;margin:46px 0 14px}
.e2-fpay{background:var(--e2-navy);color:#fff;padding:28px 0 36px}
.e2-fpay .e2-wrap{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.e2-fpay h4{margin:0 0 8px;font-size:18px;color:#fff;font-family:Arial,Helvetica,sans-serif}
.e2-fpay p{margin:0 0 20px;font-size:15px;color:#d6dce5}
.e2-fpay .pl{display:flex;gap:12px;margin-top:38px;flex-wrap:wrap}
.e2-fpay .pl i{width:84px;height:58px;background:#fff;color:#0f1b2d;display:flex;align-items:center;justify-content:center;font:700 italic 15px Arial;font-style:normal}
.e2-fpay .sl{display:flex;gap:16px;flex-wrap:wrap}
.e2-fpay .sl i{width:62px;height:62px;border-radius:50%;border:3px solid #c5ccd6;display:flex;align-items:center;justify-content:center;text-align:center;font:700 9px/1.1 Arial;font-style:normal;padding:4px;background:#1b2b44;color:#fff}
.e2-fcols{background:var(--e2-foot);padding:30px 0 50px}
.e2-fcols .e2-wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;font-size:15px;line-height:1.45}
.e2-fcols h5{font-size:19px;margin:0 0 6px;color:#3b434d;font-family:Arial,Helvetica,sans-serif;font-weight:700}
.e2-fcols p{margin:0 0 22px}
.e2-fcols a:hover{color:var(--e2-blue);text-decoration:underline}
.e2-fcols .box{background:var(--e2-blue);color:#fff;padding:2px 6px;display:inline-block;margin:6px 0 4px}
.e2-fcols .box:hover{color:#fff;background:var(--e2-blue-d);text-decoration:none}
.e2-legal{background:var(--e2-navy);color:#fff;text-align:center;padding:22px;font-size:15px;position:relative}
.e2-legal a{margin:0 8px;color:#fff}
.e2-legal a:hover{text-decoration:underline}
.e2-top{position:fixed;right:18px;bottom:0;background:var(--e2-blue);color:#fff!important;font-size:13px;padding:6px 12px;z-index:30;text-decoration:none!important}
.e2-top:hover{background:var(--e2-blue-d)}

/* mode contraste (barre utilitaire) */
html.e2-contraste body.e2{filter:contrast(1.25)}
html.e2-contraste .e2-util,html.e2-contraste .e2-slinks,html.e2-contraste .e2-note{color:#000}

/* ============================ MOBILE (≤ 900 px) ============================ */
.e2-mbar,.e2-mray,.e2-drawer,.e2-drawer-bg{display:none}
@media (max-width:900px){
  .e2-util,.e2-slinks,.e2-cart .tx,.e2-cart .qo,.e2-rayons,.e2-args span:nth-child(n+3){display:none!important}
  .e2-hline{flex-wrap:wrap;gap:8px 12px;padding:8px 0}
  .e2-logo img{height:40px}
  .e2-logo small{display:none}
  .e2-hline .e2-search{order:3;flex:1 1 100%}
  .e2-cart{margin-left:auto}
  .e2-mbar{display:flex;align-items:center;gap:14px;margin-left:auto}
  .e2-mbar a{color:var(--e2-blue);display:block}
  .e2-mbar svg{display:block;width:28px;height:28px}
  .e2-cart .ic svg{width:30px;height:30px}
  .e2-mray{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:42px;background:var(--e2-blue);color:#fff;border:0;font-size:15px;font-weight:700;margin-bottom:0}
  .e2-drawer-bg{position:fixed;inset:0;background:rgba(15,27,45,.5);z-index:99990}
  .e2-drawer{position:fixed;top:0;left:0;bottom:0;width:min(320px,86vw);background:#fff;z-index:99991;overflow:auto;transform:translateX(-100%);transition:transform .2s}
  .e2-drawer.open{transform:none;display:block}.e2-drawer-bg.open{display:block}
  .e2-drawer .hd{display:flex;align-items:center;justify-content:space-between;background:var(--e2-blue);color:#fff;padding:0 6px 0 14px;height:48px;font-weight:700;font-size:16px}
  .e2-drawer .hd button{border:0;background:none;color:#fff;font-size:28px;width:44px;height:44px}
  .e2-drawer a{display:block;padding:12px 16px;border-bottom:1px solid #eef0f3;font-size:15px;color:var(--e2-txt)}
  .e2-drawer a.sub{padding-left:32px;font-size:14px;color:#555}
  .e2-drawer a.nv{color:var(--e2-green);font-weight:700}.e2-drawer a.pr{color:var(--e2-red);font-weight:700}
  .e2-drawer .ex{background:var(--e2-grey)}
  .e2-args{font-size:12px}
  .e2-fpay .e2-wrap,.e2-fcols .e2-wrap{grid-template-columns:1fr;gap:18px}
  .e2-fpay .pl{gap:10px;margin-top:14px}.e2-fpay .pl i{width:72px;height:44px;font-size:13px}
  .e2-fpay .sl i{width:56px;height:56px}
  .e2-fcols{padding:24px 0 30px}.e2-fcols p{margin-bottom:14px}
  .e2-legal{padding:16px 10px 44px;font-size:13px}.e2-legal a{display:inline-block;margin:4px 6px}
  .e2-note{margin-top:30px;font-size:13px}
}
@media (max-width:420px){.e2-args span:nth-child(2){display:none}}


/* en-tête téléphone aligné : ☰ | logo | compte | panier, recherche dessous (03/12, demande d'Amadou) */
@media (max-width:900px){
 header.e2-head>.e2-wrap{position:relative}
 header.e2-head .e2-hline{display:grid!important;grid-template-columns:44px minmax(0,1fr) 40px 46px;grid-template-areas:'m logo acc cart' 's s s s';align-items:center;gap:8px 6px;padding-top:8px;padding-bottom:4px}
 header.e2-head .e2-hline .e2-logo{grid-area:logo;min-width:0;margin:0}
 header.e2-head .e2-hline .e2-logo img{width:auto;max-width:100%;height:auto;max-height:38px}
 header.e2-head .e2-hline .e2-mbar{grid-area:acc;justify-self:center;align-self:center;margin:0}
 header.e2-head .e2-hline .e2-mbar a{display:flex;align-items:center;justify-content:center;width:40px;height:40px}
 header.e2-head .e2-hline .e2-cart{grid-area:cart;justify-self:end;align-self:center;margin:0}
 header.e2-head .e2-hline .e2-cart .ic{display:flex;align-items:center;justify-content:center;width:42px;height:40px}
 header.e2-head .e2-hline .e2-search{grid-area:s;width:100%}
 header.e2-head .e2-mray{position:absolute;left:16px;top:8px;width:44px;height:40px;padding:0;margin:0;border-radius:6px;font-size:0;line-height:0;display:flex;align-items:center;justify-content:center;z-index:3}
 header.e2-head .e2-mray:before{content:'☰';font-size:26px;line-height:1;color:#fff}
 header.e2-head .e2-args{margin-top:6px}
}

/* alignement et doigts sur téléphone (03/12) : une seule marge de 16 px, zones de clic de 40-44 px */
@media (max-width:900px){
 .ert-wrap{padding-left:16px!important;padding-right:16px!important}
 .ert-pc__line strong,.ert-card strong{overflow-wrap:anywhere;word-break:break-word}
 .ert-chantier__x{min-width:40px;min-height:40px}
 .e2-hero .vg .mini input,.e2-hero .vg .jp input[type=email]{height:40px!important;font-size:15px!important}
 .e2-hero .vg .mini button,.e2-hero .vg .jp button,.e2-hero .vg .jp input[type=submit]{height:40px!important;min-width:48px}
 .e2-hero .slider .sa{width:40px;height:40px;margin-top:-20px;border:0!important;border-radius:50%;background:rgba(15,27,45,.45)!important;filter:none}
 .e2-hero .slider .sa:before{content:'';position:absolute;top:50%;left:50%;width:10px;height:10px;border:solid #fff;border-width:0 3px 3px 0;transform:translate(-65%,-50%) rotate(135deg)}
 .e2-hero .slider .sa.r:before{transform:translate(-35%,-50%) rotate(-45deg)}
 .e2-hero .dots button{width:18px;height:8px;padding:12px 4px;box-sizing:content-box;background-clip:content-box!important}
}

@media (max-width:900px){.ert-pc__line{min-width:0;overflow-wrap:anywhere}.ert-pc__line strong{word-break:break-all}.ert-card{min-width:0}}

@media (max-width:900px){.ert-pc__line{white-space:normal!important;overflow:visible!important}}

/* pied de page téléphone 2 par 2 (03/12, demande d'Amadou) */
@media (max-width:900px){
 .e2-fpay .e2-wrap{display:grid!important;grid-template-columns:1fr 1fr;gap:12px;align-items:start;padding-top:14px;padding-bottom:14px}
 .e2-fpay h4{font-size:13px!important;margin:0 0 8px!important;line-height:1.2}
 .e2-fpay p{display:none}
 .e2-fpay .pl,.e2-fpay .logos{display:flex!important;flex-wrap:wrap;gap:5px!important}
 .e2-fpay .pl i,.e2-fpay .logos i{font-size:10px!important;padding:5px 6px!important;min-width:0!important;width:auto!important;height:auto!important}
 .e2-fpay .sl{display:grid!important;grid-template-columns:repeat(2,auto);gap:6px!important;justify-content:start}
 .e2-fpay .sl i{width:44px!important;height:44px!important;font-size:7px!important;border-width:2px!important;padding:2px!important}
 .e2-fcols .e2-wrap{display:grid!important;grid-template-columns:1fr 1fr!important;gap:18px 14px!important;padding-top:16px;padding-bottom:16px}
 .e2-fcols .e2-wrap>*{min-width:0;margin:0!important}
 .e2-fcols h5{font-size:14px!important;margin:0 0 6px!important}
 .e2-fcols h5+p,.e2-fcols p{font-size:13px!important;line-height:1.75!important;margin:0 0 8px!important}
 .e2-fcols a{display:inline-block;min-height:24px}
 .e2-fcols .box{font-size:12px;padding:4px 6px;margin:4px 0}
 .e2-legal{padding:10px 16px!important;font-size:12px!important;line-height:2!important}
}

@media (max-width:900px){.e2-fcols *{white-space:normal!important;overflow-wrap:anywhere}.e2-fcols .e2-wrap>*{overflow:visible!important}.e2-fcols .box{display:inline-block;max-width:100%;line-height:1.3}}

@media (max-width:900px){.e2-fcols .e2-wrap>* a,.e2-fcols .e2-wrap>*{font-size:13px!important}.e2-fcols h5{font-size:14px!important}.e2-legal{display:flex!important;flex-wrap:wrap;justify-content:center;gap:2px 8px;white-space:normal!important;overflow:visible!important;padding-bottom:64px!important}.e2-legal *{white-space:nowrap}}

/* pied téléphone : seulement les pages (03/12, demande d'Amadou) */
@media (max-width:900px){.e2-fpay,.e2-fcols .e2-wrap>*:nth-child(1),.e2-fcols .e2-wrap>*:nth-child(2){display:none!important}.e2-fcols .e2-wrap{padding-top:14px!important;padding-bottom:10px!important}}
