@charset "utf-8";

/* ============================================================
   0) VARIABLES / BASE
============================================================ */
:root{
  --lod-blue:#002536;
  --lod-red:#e2001a;
  --lod-bg:#F5F2F3;
  --lod-panel:#fff;

  --radius-lg:14px;
  --shadow-soft:0 8px 24px rgba(0,0,0,.04);
  --border-soft:1px solid rgba(0,0,0,.08);

  --accent-grad:linear-gradient(90deg, #e2001a, rgba(226,0,26,.35), #e2001a);
}

*{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  font-family:"Barlow", system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important;
  background: var(--lod-bg) !important;
  display:flex;
  flex-direction:column;
  min-height:100vh;
  overflow-x:hidden; /* évite micro débordements */
}

/* ============================================================
   1) LAYOUT GÉNÉRAL
============================================================ */
.container{
  padding:30px;
  border-radius:8px;
  box-shadow:0 0 10px 0 rgba(0,0,0,.10);
}

@media (max-width: 1024px){
  .container{ padding:18px; }
}

.footer{
  margin-top:auto;
  height:30px;
  text-align:center;
}

#back-to-top-btn{
  z-index:1020;
  position:fixed;
  bottom:20px;
  right:20px;
  display:none;
}

/* ============================================================
   2) TITRES / TYPO
============================================================ */
h1{
  font-size:2.5em;
  margin-bottom:20px;
  color:var(--lod-blue);
}

h2{
  font-size:25px;
  font-weight:800;
  font-style:italic;
  color:var(--lod-red);
  margin-bottom:5px;
}

h4{ padding:5px; }

@media (max-width: 767px){
  header h1{ font-size:24px; }
}

/* ============================================================
   3) SEARCH RESULTS (dropdown)
============================================================ */
#searchResults{
  position:absolute;
  width:500px;
  z-index:1050;
  top:100%;
  right:0;
  border-top:none;
  max-height:300px;
  overflow-y:auto;
}

@media (max-width: 1024px){
  #searchResults{
    width:min(92vw, 500px);
    right:auto;
    left:0;
  }
}

#searchResults .list-group-item{
  display:flex;
  align-items:center;
  padding:10px;
  border-bottom:1px solid #ccc;
  background:#f9f9f9;
}
#searchResults .list-group-item:hover{ background:#e9ecef; }

.list-group-item img{
  width:50px;
  height:auto;
  margin-right:10px;
}

.search-form .btn-sm{
  border:none;
  background:transparent;
  cursor:pointer;
  outline:none;
}
.search-form .btn-sm .fas.fa-times{ color:#000; }

/* ============================================================
   4) BLOCS "STEP" (V3)
============================================================ */
.step-block{
  border:var(--border-soft);
  background:var(--lod-panel);
  border-radius:var(--radius-lg);
  padding:18px;
  margin-bottom:14px;
  box-shadow:var(--shadow-soft);
}

.step-head h5{
  margin:0 0 4px 0;
  font-weight:800;
  letter-spacing:-.2px;
}

.step-sub{
  color:rgba(0,0,0,.6);
  font-size:.92rem;
  margin-bottom:14px;
}

/* animation cascade */
.reveal{ overflow:hidden; }
.reveal.lod-show{ animation:lodIn .28s ease-out both; }
@keyframes lodIn{
  from{ transform:translateY(8px); opacity:0; }
  to{ transform:translateY(0); opacity:1; }
}

/* ============================================================
   5) CARDS (V3)
============================================================ */
.lod-card{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px;
  border-radius:var(--radius-lg);
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  text-align:left;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  position:relative;
  min-height:84px;
}

button.lod-card{
  width:100%;
  cursor:pointer;
}

.lod-card:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(0,0,0,.08);
  border-color:rgba(226,0,26,.44);
}

.lod-card.selected{
  border-color:var(--lod-blue);
  box-shadow:0 1px 18px rgba(226,0,26,.18);
}

.lod-card__title{
  font-weight:900;
  line-height:1.1;
  margin-bottom:2px;
}

.lod-card__meta{
  font-size:.9rem;
  color:rgba(0,0,0,.65);
}

/* pictos */
.lod-card__media{
  width:76px;
  min-width:76px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.lod-card__media img{
  max-height:64px;
  max-width:64px;
  width:auto;
  height:auto;
  object-fit:contain;
}

.lod-card__check{
  margin-left:auto;
  width:22px;
  height:22px;
  border-radius:999px;
  border:2px solid rgba(0,0,0,.15);
  display:grid;
  place-items:center;
  flex:0 0 auto;
}

.lod-card.selected .lod-card__check{
  border-color:#45a049;
  background:#45a049;
}
.lod-card.selected .lod-card__check::after{
  content:"✓";
  color:#fff;
  font-size:14px;
  font-weight:900;
  line-height:1;
}

button.lod-card:focus{
  outline:none;
  box-shadow:0 0 0 4px rgba(13,110,253,.18);
}

@media (max-width: 768px){
  .lod-card{ padding:10px; min-height:72px; }
  .lod-card__media img{ max-height:48px; max-width:48px; }
}

/* ============================================================
   6) MINI PANELS / HINTS
============================================================ */
.mini-panel{
  border:1px dashed rgba(0,0,0,.15);
  border-radius:var(--radius-lg);
  padding:14px;
  background:rgba(13,110,253,.02);
}
.mini-title{ font-weight:800; margin-bottom:10px; }
.hint{ font-size:.9rem; color:rgba(0,0,0,.6); }

.hole-dot{
  display:inline-block;
  width:12px;
  height:12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.15);
  vertical-align:middle;
}

/* ============================================================
   7) PREVIEW / CANVAS
============================================================ */
.preview-wrap{
  width:100%;
  aspect-ratio:16 / 9;
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:var(--border-soft);
  background:#fff;
  position:relative;
}

#sheetPreviewWrap{
  position:relative;
  width:100%;
  height:min(70vh, 620px);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  border:1px dashed rgba(0,0,0,.15);
}

#sheetCanvas{
  display:block;
  width:100%;
  height:100%;
}

.canvas-fallback{
  display:none;
  position:absolute;
  inset:0;
  align-items:center;
  justify-content:center;
  font-size:14px;
  color:#666;
}

/* ============================================================
   8) DETAILS GRID (fiche produit)
============================================================ */
.details-grid{
  display:grid;
  grid-template-columns:360px 1fr;
  gap:16px;
}
@media (max-width: 992px){
  .details-grid{ grid-template-columns:1fr; }
}

.preview-box{
  border:1px solid rgba(0,0,0,.10);
  border-radius:var(--radius-lg);
  background:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.04);
  overflow:hidden;
  min-height:260px;
  display:grid;
  place-items:center;
}
.preview-box img{
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:260px;
}

.preview-caption{
  margin-top:10px;
  font-size:.92rem;
  color:rgba(0,0,0,.65);
}

.details-info{ display:grid; gap:14px; }

.details-card{
  border:1px solid rgba(0,0,0,.10);
  border-radius:var(--radius-lg);
  background:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.04);
  padding:14px;
}

.details-card__title{ font-weight:900; margin-bottom:10px; }

.details-row{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:10px;
  padding:10px 0;
  border-top:1px solid rgba(0,0,0,.06);
}
.details-row:first-of-type{ border-top:none; padding-top:0; }

.details-label{ color:rgba(0,0,0,.65); font-weight:700; }
.details-value{ font-weight:800; }

/* ============================================================
   9) STARS
============================================================ */
.stars{ display:inline-flex; gap:3px; vertical-align:middle; }
.star{ font-size:16px; line-height:1; opacity:.95; }
.star.filled{ color:#ffb300; }
.star.empty{ color:rgba(0,0,0,.20); }

/* ============================================================
   10) SHAPES / INPUTS
============================================================ */
.shape-media{
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  flex-shrink:0;
}
.shape-svg{ width:56px; height:56px; }

.form-control.is-invalid{
  box-shadow:0 10px 26px rgba(220,53,69,.10);
}

/* ============================================================
   11) BADGES MACHINE
============================================================ */
.machine-badge{
  font-weight:600;
  padding:.35rem .55rem;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
}

.machine-badge--vision{
  background:rgba(13,110,253,.12);
  color:#0d6efd;
  border-color:rgba(13,110,253,.25);
}
.machine-badge--epilog{
  background:rgba(111,66,193,.12);
  color:#6f42c1;
  border-color:rgba(111,66,193,.25);
}
.machine-badge--cam{
  background:rgba(115,174,66,.80);
  color:#495057;
  border-color:rgba(108,117,125,.28);
}
.machine-badge--unknown{
  background:rgba(0,0,0,.05);
  color:#6c757d;
  border-color:rgba(0,0,0,.08);
}

.price-discount{ color:#dc3545; font-weight:800; }

/* ============================================================
   12) QUANTITÉS / INPUTS
============================================================ */
.qty-line label{ white-space:nowrap; }
.qty-line input,
.qty-line select{ height:32px; }

input:disabled{
  background:#f5f5f5;
  opacity:.7;
  cursor:not-allowed;
}

@media (max-width: 768px){
  .qty-line{ flex-direction:column; align-items:flex-start; }
}

/* ============================================================
   13) FRAIS SUPPLÉMENTAIRES (V3)
============================================================ */
.fee-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.fee-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px dashed rgba(0,0,0,.12);
  border-radius:12px;
  background:rgba(255,255,255,.6);
}

.fee-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.fee-qty{ width:90px; }

.fee-summary{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding-top:8px;
  border-top:1px solid rgba(0,0,0,.08);
}

@media (max-width: 768px){
  .fee-row{ flex-direction:column; align-items:flex-start; }
  .fee-actions{ width:100%; justify-content:flex-start; }
}

/* ============================================================
   14) LEGACY / DIVERS
============================================================ */
.cadre.small{ max-width:600px; }
.cadre.medium{ max-width:800px; }
.cadre.large{ max-width:1000px; }

#discountRow{ padding-top:8px; }

#subcontractDiscountPanel.mini-panel{
  padding-top:14px;
  border:0;
  background:transparent;
}

/* ============================================================
   15) FIX iPad / Tablette : cards matière
============================================================ */
@media (max-width: 1024px){
  .material-container .row > [class*="col"],
  #materialCardsContainer .row > [class*="col"],
  .step-block .row > [class*="col"]{
    display:flex;
  }

  .material-container .lod-card,
  #materialCardsContainer .lod-card{
    height:100%;
  }

  .lod-card__meta{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
}

/* ============================================================
   16) NAVBAR LoD V3 (dégradé + glow + trait rouge gradient)
============================================================ */
    .lod-navbar{
      position: relative;
      z-index: 1020;

      background: linear-gradient(135deg, #002536 0%, #0b3a4d 60%, #002536 100%);
      font-family:"Barlow", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

      padding-top: .6rem;
      padding-bottom: calc(.6rem + 3px);  /* ✅ réserve pour le trait */
      min-height: 64px;
      overflow: visible; /* ✅ ok ici, car on a réservé */
    }

/* On clippe uniquement le fond/glow sur le container */
.lod-navbar > .container-fluid{
  position: relative;
  z-index: 1;
  overflow: hidden;         /* ✅ clip ici */
  border-radius: 0;         /* optionnel */
}

/* Glow derrière, attaché au container-fluid */
.lod-navbar > .container-fluid::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:
    radial-gradient(600px 200px at 15% -50%, rgba(226,0,26,.14), transparent 60%),
    radial-gradient(500px 200px at 85% 0%, rgba(245,242,243,.06), transparent 60%);
  pointer-events:none;
}

/* Et le contenu de la navbar au-dessus du glow */
.lod-navbar > .container-fluid > *{
  position: relative;
  z-index: 1;
}
.lod-navbar .dropdown-menu{
  z-index: 2000;
}


/* 1) La navbar ne doit JAMAIS couper les menus */
.lod-navbar,
.lod-navbar .container-fluid,
.lod-navbar .navbar-collapse,
.lod-navbar .navbar-nav,
.lod-navbar .nav-item,
.lod-navbar .dropdown{
  overflow: visible !important;
}

/* 2) Le menu doit passer au-dessus de la page */
.lod-navbar .dropdown-menu{
  z-index: 9999 !important;
}

/* 3) Au cas où un pseudo-element serait devant */
.lod-navbar::after{
  pointer-events: none !important;
}

/* Brand */
.navbar-brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.lod-brand-logo{
  height:45px;
  width:auto;
  display:block;
}
.lod-brand-text{
  font-weight:700;
  letter-spacing:.4px;
  color:#f5f2f3;
  opacity:.95;
  font-size:1.05rem;
}

.lod-toggler{
  border:1px solid rgba(245,242,243,.25) !important;
  border-radius:12px;
}

/* Menu */
.lod-nav{ padding:.4rem 0; }

.lod-link{
  color: rgba(245,242,243,.92) !important;
  padding: .55rem .85rem !important;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.lod-link:hover{
  background: rgba(245,242,243,.10);
  transform: translateY(-1px);
}
.lod-link.active,
.lod-link[aria-current="page"]{
  background: rgba(226,0,26,.18);
  box-shadow: inset 0 0 0 1px rgba(226,0,26,.35);
}

.lod-sep{
  display:inline-block;
  width:1px;
  height:26px;
  background:rgba(245,242,243,.18);
  margin:0 .25rem;
}

.lod-account{
  background: rgba(245,242,243,.08);
  box-shadow: inset 0 0 0 1px rgba(245,242,243,.12);
}
.lod-account:hover{ background: rgba(245,242,243,.12); }

.lod-logout:hover{
  background: rgba(226,0,26,.18);
  box-shadow: inset 0 0 0 1px rgba(226,0,26,.30);
}

/* Dropdown */
.lod-dropdown{
  background: var(--lod-blue);
  border: 1px solid rgba(245,242,243,.14);
  border-radius: 16px;
  padding: .35rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.lod-dd-item{
  color: rgba(245,242,243,.92);
  border-radius: 12px;
  padding: .6rem .7rem;
  font-weight: 600;
}
.lod-dd-item:hover{
  background: rgba(245,242,243,.10);
  color: #f5f2f3;
}
.lod-divider{ border-color: rgba(245,242,243,.16); }

/* ✅ Trait rouge gradient sous la navbar :
   -> en flux normal via div (.lod-accent-in) => 100% responsive */
    .lod-accent-in{
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;

      height: 3px;
      background: linear-gradient(90deg, #e2001a, rgba(226,0,26,.35), #e2001a);

      z-index: 0 !important; /* le dropdown passe devant */
      pointer-events: none;
    }

/* Mobile/tablette : menu plus lisible */
@media (max-width: 1399.98px){
  .lod-link{
    border-radius: 14px;
    width: 100%;
  }
  .lod-dropdown{ width:100%; }
}

/* Mobile : un poil plus d’air */
    @media (max-width: 991.98px){
      .lod-navbar{
        min-height: 70px;
        padding-top: .7rem;
        padding-bottom: calc(.7rem + 3px);
      }
    }

/* ============================================================
   NAVBAR — fond du menu en mode responsive (collapse ouvert)
============================================================ */
@media (max-width: 1399.98px){

  /* Le bloc qui se déplie */
  .lod-navbar .navbar-collapse{
    margin-top: .6rem;
    padding: .75rem;
    border-radius: 16px;

    /* ✅ fond opaque (pas transparent) */
    background: linear-gradient(135deg, #002536 0%, #0b3a4d 70%, #002536 100%);

    /* petit style premium */
    border: 1px solid rgba(245,242,243,.12);
    box-shadow: 0 18px 55px rgba(0,0,0,.35);
  }

  /* Optionnel : un léger “glass” (si tu aimes) */
  .lod-navbar .navbar-collapse{
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}
/* ============================================================
   NAVBAR — Alignement dropdown en mode responsive
============================================================ */
@media (max-width: 1399.98px){

  .lod-navbar .dropdown-toggle{
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .lod-navbar .dropdown-toggle::after{
    margin-left: auto; /* flèche à droite */
  }

}
/* ============================================================
   17) HERO HEADER LoD
============================================================ */

/* =====================================
   HERO GLOBAL SPACING FIX
===================================== */

/* Distance navbar → hero */
.page-wrap{
  padding-top: 32px;
}


.lod-hero{
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0,37,54,.98), rgba(0,37,54,.86));
  border: 1px solid rgba(245,242,243,.10);
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
  overflow: hidden;
}

.lod-hero-inner{
  padding: 22px;
  position: relative;
}

.lod-hero-inner::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(700px 200px at 10% 0%, rgba(226,0,26,.16), transparent 60%),
    radial-gradient(700px 220px at 90% 40%, rgba(245,242,243,.08), transparent 60%);
  pointer-events:none;
}

.lod-hero-kicker{
  color: rgba(245,242,243,.70);
  font-weight: 600;
  letter-spacing: .4px;
  font-size: .92rem;
  position: relative;
  z-index: 1;
}

.lod-hero-title{
  color: #f5f2f3;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  position: relative;
  z-index: 1;
}

.lod-hero-sub{
  color: rgba(245,242,243,.78);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Badge principal */
.lod-badge{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.45rem .9rem;
  border-radius:999px;

  background: linear-gradient(135deg, rgba(226,0,26,.5), rgba(226,0,26,.45));
  border:1px solid rgba(226,0,26,.45);
  color:#f5f5f5;

  font-weight:700;
  font-size:.85rem;

  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(226,0,26,.25);
}

/* Badge secondaire */
.lod-badge-soft{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.45rem .9rem;
  border-radius:999px;

  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.25);

  color:#fff;
  font-weight:600;
  font-size:.85rem;

  backdrop-filter: blur(6px);
}
.lod-btn{
  border-radius: 14px;
  border: 1px solid rgba(245,242,243,.22);
  color: #f5f2f3;
}
.lod-btn:hover{
  background: rgba(245,242,243,.10);
  border-color: rgba(245,242,243,.28);
}

.lod-btn-danger{
  border-radius: 14px;
  background: var(--lod-red);
  border-color: var(--lod-red);
  font-weight: 700;
}
.lod-btn-danger:hover{ filter: brightness(1.05); 
}


/* ============================
   FOOTER V3 PREMIUM
============================ */
/* ===================================
   GLOBAL FOOTER — LoD V3
=================================== */
.lod-footer{
  background: linear-gradient(180deg, #002536 0%, #001e2b 100%);
  padding: 20px 0;
  border-top: 3px solid var(--lod-red);
}

.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(245,242,243,.85);
  font-size: .9rem;
}

.footer-brand{
  font-weight: 800;
  letter-spacing: .02em;
}

.footer-sub{
  font-size: .78rem;
  opacity: .6;
  margin-top: 4px;
}

.footer-center{
  display:flex;
  gap: 24px;
  font-size: .85rem;
  opacity: .75;
}

.footer-center span{
  display:flex;
  align-items:center;
  gap:6px;
}

.footer-right{
  font-weight: 600;
  opacity: .8;
}

/* Responsive */
@media (max-width: 768px){
  .footer-inner{
    flex-direction: column;
    text-align:center;
    gap: 12px;
  }

  .footer-center{
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
  }
}


