/*
Theme Name: GoMakina V2
Theme URI: https://www.gomakina.fr/
Author: GoMakina
Description: Thème commercial B2B GoMakina V2 — vente de matériels de manutention, catalogue, reprise et SAV.
Version: 0.1.6
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: gomakina-v2
*/

:root{
  --gm-red:#DD1C2A;--gm-red-dark:#A6141F;--gm-black:#0F0F0E;
  --gm-text:#232629;--gm-muted:#6E7377;--gm-light:#F5F5F5;
  --gm-line:#DEDEDE;--gm-white:#fff;--gm-green:#237A49;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--gm-text);background:#fff;line-height:1.5;font-size:15px}
a{text-decoration:none;color:inherit}.gm-container{width:min(1220px,calc(100% - 48px));margin:auto}
.gm-topline{height:5px;background:var(--gm-red)}.gm-utility{background:var(--gm-black);color:#fff;font-size:12px}
.gm-utility .gm-inner{min-height:34px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.gm-header{background:#fff;border-bottom:1px solid var(--gm-line);position:sticky;top:0;z-index:50}
.gm-header .gm-inner{height:82px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.gm-logo img{display:block;max-width:205px;max-height:58px;width:auto;height:auto}.gm-logo-fallback{font-size:18px;font-weight:900}
.gm-name{font-weight:700}.gm-name .gm-initial{color:var(--gm-red);font-weight:900}
.gm-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:24px;align-items:center}
.gm-nav a{display:block;padding:30px 0 26px;border-bottom:3px solid transparent;font-size:14px;font-weight:700}
.gm-nav a:hover,.gm-nav .current-menu-item>a{color:var(--gm-red-dark);border-bottom-color:var(--gm-red)}
.gm-header-actions{display:flex;gap:9px}.gm-btn{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:0 18px;border:1px solid transparent;border-radius:3px;font-weight:800;font-size:13px;cursor:pointer}
.gm-btn-red{background:var(--gm-red);color:#fff}.gm-btn-red:hover{background:var(--gm-red-dark)}
.gm-btn-dark{background:var(--gm-black);color:#fff}.gm-btn-outline{border-color:#bcc1c3;background:#fff;color:var(--gm-black)}
.gm-hero{background:#f2f2f2;border-bottom:1px solid var(--gm-line)}.gm-hero-grid{display:grid;grid-template-columns:1.04fr .96fr;min-height:510px}
.gm-hero-copy{padding:70px 60px 64px 0;display:flex;flex-direction:column;justify-content:center}
.gm-eyebrow{font-size:12px;color:var(--gm-red);font-weight:900;text-transform:uppercase;letter-spacing:1.1px}
.gm-hero h1{font-size:47px;line-height:1.07;letter-spacing:-1.3px;color:var(--gm-black);margin:14px 0 20px}
.gm-hero p{font-size:17px;color:#505559;max-width:680px;margin:0 0 26px}.gm-actions{display:flex;gap:10px;flex-wrap:wrap}
.gm-hero-points{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;border-top:1px solid #d2d2d2;margin-top:34px;padding-top:20px}
.gm-hero-points b{display:block;color:var(--gm-black);font-size:13px}.gm-hero-points span{font-size:12px;color:#73787a}
.gm-hero-media{background:#e7e7e7;border-left:1px solid var(--gm-line);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.gm-hero-media:before{content:"";position:absolute;left:0;top:0;bottom:0;width:7px;background:var(--gm-red)}
.gm-hero-media img{width:88%;height:82%;object-fit:contain}.gm-section{padding:68px 0}.gm-alt{background:var(--gm-light);border-top:1px solid var(--gm-line);border-bottom:1px solid var(--gm-line)}
.gm-section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:28px}.gm-section h2{font-size:32px;line-height:1.15;margin:0;color:var(--gm-black)}
.gm-section-head p{max-width:540px;margin:0;color:var(--gm-muted)}.gm-rule{width:44px;height:3px;background:var(--gm-red);margin-top:12px}
.gm-categories{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.gm-category{border:1px solid var(--gm-line);background:#fff;padding:24px;min-height:175px;position:relative}
.gm-category:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--gm-red)}.gm-category h3{font-size:20px;margin:0 0 9px}.gm-category p{font-size:13px;color:var(--gm-muted);margin:0 0 18px}.gm-text-link{font-size:13px;font-weight:900;color:var(--gm-red-dark)}
.gm-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.gm-machine-card{border:1px solid #d7d7d7;background:#fff}.gm-machine-image{height:220px;background:#ececec;border-bottom:1px solid #ddd;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.gm-machine-image img{width:100%;height:100%;object-fit:contain;padding:16px}
.gm-status{position:absolute;top:12px;left:12px;background:var(--gm-green);color:#fff;padding:6px 9px;font-size:10px;font-weight:900;z-index:2}.gm-status.gm-new{background:var(--gm-red)}
.gm-machine-body{padding:19px}.gm-machine-body h3{font-size:18px;margin:0 0 4px}.gm-sub{font-size:12px;color:#74787b;margin-bottom:14px}.gm-specs{width:100%;border-collapse:collapse;font-size:12px;margin-bottom:15px}.gm-specs td{padding:7px 0;border-bottom:1px solid #ececec}.gm-specs td:last-child{text-align:right;font-weight:700}.gm-price{font-size:19px;font-weight:900}.gm-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}
.gm-dark{background:var(--gm-black);color:#fff}.gm-dark h2{color:#fff}.gm-dark .gm-section-head p{color:#bfc2c3}.gm-service-grid{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #333}.gm-service{padding:24px;border-right:1px solid #333;min-height:180px}.gm-service:last-child{border-right:0}.gm-service .gm-num{font-size:11px;color:var(--gm-red);font-weight:900;margin-bottom:18px}.gm-service h3{margin:0 0 8px;font-size:17px}.gm-service p{font-size:13px;color:#bcc0c2;margin:0}
.gm-pagehead{background:#f3f3f3;border-bottom:1px solid var(--gm-line);padding:54px 0}.gm-pagehead h1{font-size:40px;letter-spacing:-1px;margin:10px 0}.gm-pagehead p{max-width:820px;color:#5c6164;font-size:16px}
.gm-two-col{display:grid;grid-template-columns:1fr 1fr;gap:28px}.gm-panel{border:1px solid var(--gm-line);background:#fff;padding:28px}.gm-panel-red{border-top:4px solid var(--gm-red)}.gm-panel h3{font-size:22px;margin:0 0 10px}.gm-panel p{color:var(--gm-muted)}
.gm-product{display:grid;grid-template-columns:1.12fr .88fr;gap:30px}.gm-gallery{border:1px solid var(--gm-line);background:#eee;min-height:520px;display:flex;align-items:center;justify-content:center;overflow:hidden}.gm-gallery img{width:100%;height:100%;max-height:600px;object-fit:contain}.gm-product-box{border:1px solid var(--gm-line);padding:28px;background:#fff}.gm-product-box h1{font-size:30px;line-height:1.15;margin:8px 0}.gm-bigprice{font-size:29px;font-weight:900;margin:18px 0}.gm-facts{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--gm-line);border-left:1px solid var(--gm-line);margin:22px 0}.gm-fact{padding:12px;border-right:1px solid var(--gm-line);border-bottom:1px solid var(--gm-line);font-size:12px}.gm-fact b{display:block;font-size:14px;margin-top:3px}
.gm-form{border:1px solid var(--gm-line);background:#fff;padding:28px}.gm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.gm-field{display:flex;flex-direction:column;gap:6px}.gm-field.full{grid-column:1/-1}.gm-field label{font-size:12px;font-weight:800}.gm-field input,.gm-field select,.gm-field textarea{width:100%;border:1px solid #cfd2d4;padding:11px 12px;font:inherit;font-size:13px;background:#fff}.gm-field textarea{min-height:92px;resize:vertical}.gm-notice{border-left:4px solid var(--gm-green);background:#f4fbf7;padding:15px 17px;margin:18px 0;font-size:13px}.gm-error{border-left-color:var(--gm-red);background:#fff3f4}
.gm-fast-choices{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.gm-fast-choice{border:1px solid #d1d4d5;background:#fff;padding:13px;text-align:left;font:inherit;font-size:12px;font-weight:800;cursor:pointer;min-height:51px}.gm-fast-choice:hover,.gm-fast-choice.selected{border-color:var(--gm-red);box-shadow:inset 0 0 0 1px var(--gm-red)}
.gm-side-tabs{position:fixed;right:0;top:43%;z-index:999;display:flex;flex-direction:column;gap:8px;align-items:flex-end}.gm-side-tab{width:38px;height:178px;border:0;border-radius:4px 0 0 4px;cursor:pointer;box-shadow:0 6px 16px rgba(0,0,0,.14);display:flex;align-items:center;justify-content:center}.gm-side-tab.red{background:var(--gm-red);color:#fff}.gm-side-tab.black{background:var(--gm-black);color:#fff}.gm-side-tab span{writing-mode:vertical-rl;text-orientation:mixed;direction:rtl;font-size:12px;line-height:1;font-weight:800;white-space:nowrap}
.gm-modal{display:none;position:fixed;inset:0;z-index:1100;background:rgba(0,0,0,.58);padding:22px;overflow:auto}.gm-modal.open{display:flex;align-items:center;justify-content:center}.gm-modal-card{width:min(680px,100%);background:#fff;border-top:5px solid var(--gm-red);box-shadow:0 24px 70px rgba(0,0,0,.3)}.gm-modal-head{padding:24px 26px 18px;border-bottom:1px solid var(--gm-line);display:flex;justify-content:space-between;gap:20px}.gm-modal-head h2{margin:3px 0 7px;font-size:25px}.gm-close{border:0;background:#f1f1f1;width:34px;height:34px;font-size:20px;cursor:pointer}
.gm-mobile-toggle{display:none;width:42px;height:42px;border:1px solid #cfd2d4;background:#fff;border-radius:3px;align-items:center;justify-content:center;flex-direction:column;gap:4px;cursor:pointer}.gm-mobile-toggle span{width:19px;height:2px;background:#0f0f0e}.gm-mobile-menu{display:none}.gm-mobile-overlay{display:none}
.gm-footer{background:#090909;color:#b8b8b8;padding:44px 0 24px}.gm-footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:36px}.gm-footer h4{color:#fff;font-size:13px;margin:0 0 12px}.gm-footer a{display:block;margin:8px 0;font-size:12px}.gm-footer-bottom{margin-top:28px;padding-top:18px;border-top:1px solid #2a2a2a;font-size:11px}
@media(max-width:1000px){
  .gm-nav{display:none}.gm-mobile-toggle{display:flex}.gm-hero-grid,.gm-product{grid-template-columns:1fr}.gm-hero-copy{padding-right:0}.gm-hero-media{min-height:380px;border-left:0}.gm-categories{grid-template-columns:1fr 1fr}.gm-grid-3{grid-template-columns:1fr 1fr}.gm-service-grid{grid-template-columns:1fr 1fr}
  .gm-mobile-menu{display:block;position:fixed;top:0;right:0;width:min(320px,84vw);height:100vh;background:#fff;padding:76px 18px 24px;box-shadow:-10px 0 30px rgba(0,0,0,.16);transform:translateX(105%);transition:.2s;z-index:1002;overflow-y:auto}.gm-mobile-menu.open{transform:translateX(0)}.gm-mobile-menu a{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #ededed;font-size:12px;font-weight:800}.gm-mobile-menu a:after{content:"›";color:var(--gm-red);font-size:16px}.gm-mobile-overlay{position:fixed;inset:0;z-index:1001;background:rgba(0,0,0,.35)}.gm-mobile-overlay.open{display:block}
  .gm-side-tabs{top:auto;right:10px;bottom:12px;flex-direction:column;gap:7px}.gm-side-tab{width:42px;height:42px;border-radius:50%}.gm-side-tab span{writing-mode:horizontal-tb;direction:ltr;font-size:0}.gm-side-tab.red span:before{content:"↗";font-size:18px}.gm-side-tab.black span:before{content:"✓";font-size:18px}
}
@media(max-width:700px){
  .gm-container{width:min(100% - 28px,1220px)}.gm-utility .gm-inner{flex-direction:column;align-items:flex-start;padding:7px 0}.gm-header .gm-inner{height:66px;gap:10px}.gm-header-actions{display:none}.gm-logo img{max-width:145px;max-height:46px}.gm-hero-copy{padding:45px 0}.gm-hero h1{font-size:36px}.gm-hero-points,.gm-categories,.gm-grid-3,.gm-service-grid,.gm-two-col,.gm-form-grid,.gm-fast-choices,.gm-footer-grid{grid-template-columns:1fr}.gm-field.full{grid-column:auto}.gm-section{padding:50px 0}.gm-section-head{flex-direction:column;align-items:flex-start}.gm-service{border-right:0;border-bottom:1px solid #333}
}

/* ===== v0.1.1 — correction logo WordPress ===== */
.gm-logo{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  max-width:205px;
  max-height:58px;
  overflow:hidden;
}
.gm-logo .custom-logo-link{
  display:block;
  line-height:0;
  max-width:205px;
  max-height:58px;
}
.gm-logo img,
.gm-logo .custom-logo{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:205px !important;
  max-height:58px !important;
  object-fit:contain !important;
}
@media(max-width:700px){
  .gm-logo,
  .gm-logo .custom-logo-link{
    max-width:145px;
    max-height:46px;
  }
  .gm-logo img,
  .gm-logo .custom-logo{
    max-width:145px !important;
    max-height:46px !important;
  }
}

/* ===== v0.1.2 — Trouver ma machine en 2 étapes ===== */
.gm-finder-wrap{max-width:790px;margin:0 auto}
.gm-finder-progress{display:flex;gap:8px;margin:0 0 24px}
.gm-finder-progress span{height:4px;background:#dedede;flex:1}
.gm-finder-progress span.active,
.gm-finder-progress span.done{background:var(--gm-red)}
.gm-finder-step{display:none}
.gm-finder-step.active{display:block}
.gm-finder-step-title{margin-bottom:24px}
.gm-finder-step-title h2{font-size:28px;margin:5px 0 7px}
.gm-finder-step-title p{margin:0;color:var(--gm-muted);font-size:14px}
.gm-finder-question{margin-bottom:23px}
.gm-finder-question .gm-eyebrow{margin-bottom:9px}
.gm-finder-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:20px;
  margin-top:22px;
  border-top:1px solid #ececec
}
.gm-finder-contact-intro{
  border-left:3px solid var(--gm-red);
  padding:10px 14px;
  background:#fafafa;
  margin-bottom:22px;
  font-size:13px;
  color:#555
}
.gm-finder-mini-summary{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
  margin-bottom:20px
}
.gm-finder-mini-summary div{
  padding:10px 12px;
  border:1px solid #e1e1e1;
  background:#fafafa;
  font-size:11px;
  color:#666
}
.gm-finder-mini-summary b{
  display:block;
  color:#111;
  font-size:12px;
  margin-top:2px
}
@media(max-width:700px){
  .gm-finder-mini-summary{grid-template-columns:1fr}
  .gm-finder-step-title h2{font-size:23px}
}

/* ===== v0.1.3 — Finder compact sur une page ===== */
.gm-compact-finder{max-width:860px;margin:0 auto}
.gm-compact-finder-head{margin-bottom:24px}
.gm-compact-finder-head h2{font-size:28px;margin:5px 0 7px}
.gm-compact-finder-head p{margin:0;color:var(--gm-muted);font-size:14px}
.gm-compact-selects{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px;
  margin-bottom:24px;
}
.gm-select-card{
  border:1px solid #d9dcde;
  background:#fafafa;
  padding:13px 14px;
}
.gm-select-card label{
  display:block;
  font-size:11px;
  font-weight:900;
  color:#555;
  text-transform:uppercase;
  letter-spacing:.45px;
  margin-bottom:7px;
}
.gm-select-card select{
  width:100%;
  min-height:44px;
  border:1px solid #cbd0d2;
  background:#fff;
  padding:8px 34px 8px 11px;
  font:inherit;
  font-size:13px;
  font-weight:700;
}
.gm-compact-separator{
  border-top:1px solid #e6e6e6;
  padding-top:22px;
  margin-top:4px;
}
.gm-compact-contact-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:15px;
}
.gm-compact-contact-title h3{margin:0;font-size:19px}
.gm-compact-contact-title span{font-size:11px;color:#777}
@media(max-width:700px){
  .gm-compact-selects{grid-template-columns:1fr}
  .gm-compact-finder-head h2{font-size:23px}
  .gm-compact-contact-title{display:block}
  .gm-compact-contact-title span{display:block;margin-top:5px}
}

/* ===== v0.1.4 — logo footer lisible sur fond noir ===== */
.gm-footer .gm-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  max-width:230px;
  max-height:none;
  overflow:visible;
  background:#fff;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.95);
  border-radius:2px;
  margin-bottom:12px;
}
.gm-footer .gm-logo .custom-logo-link{
  display:block;
  line-height:0;
  max-width:205px;
  max-height:none;
}
.gm-footer .gm-logo img,
.gm-footer .gm-logo .custom-logo{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:205px !important;
  max-height:50px !important;
  object-fit:contain !important;
}
@media(max-width:700px){
  .gm-footer .gm-logo{
    max-width:190px;
    padding:6px 9px;
  }
  .gm-footer .gm-logo img,
  .gm-footer .gm-logo .custom-logo{
    max-width:170px !important;
    max-height:44px !important;
  }
}

/* ===== v0.1.6 — galerie machine haute définition ===== */
.gm-product-gallery{min-width:0}
.gm-gallery-main{
  background:#f3f3f3;
  border:1px solid #dedede;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:560px;
  overflow:hidden;
}
.gm-gallery-main img{
  display:block;
  width:100%;
  height:100%;
  max-height:650px;
  object-fit:contain;
  background:#fff;
}
.gm-gallery-thumbs{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin-top:9px;
}
.gm-gallery-thumb{
  appearance:none;
  border:1px solid #d6d6d6;
  background:#fff;
  padding:4px;
  cursor:pointer;
  min-height:85px;
}
.gm-gallery-thumb.is-active{border:2px solid var(--gm-red)}
.gm-gallery-thumb img{
  width:100%;
  height:78px;
  object-fit:contain;
  display:block;
}
@media(max-width:900px){
  .gm-gallery-main{min-height:360px}
}
@media(max-width:700px){
  .gm-gallery-main{min-height:300px}
  .gm-gallery-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}
  .gm-gallery-thumb{min-height:68px}
  .gm-gallery-thumb img{height:60px}
}
