/* ============================================================
   OneClick — Layout & composants (header, footer, etc.)
   ============================================================ */

/* ---------- Brand / Logo ---------- */
.brand { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; }
.brand-img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-family: var(--font-head); font-weight: 800; font-size: 16px; line-height: 1;
  text-align: left; letter-spacing: .01em;
}
.brand-name.dark { color: var(--orange); }
.brand-name.light { color: var(--orange); }
.brand-tag {
  font-family: var(--font-head); font-weight: 600; font-size: 11px; line-height: 1.25;
  text-align: left; letter-spacing: .01em;
}
.brand-tag.dark { color: var(--ink-2); }
.brand-tag.light { color: rgba(255,255,255,.8); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(250,248,244,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.hdr.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(6,32,47,.05); background: rgba(250,248,244,.94); }
.hdr-in { display: flex; align-items: center; gap: 20px; width: 100%; }
.hdr-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr-link {
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--ink-2);
  background: none; border: 0; padding: 9px 13px; border-radius: 999px; position: relative;
  transition: color .15s, background .15s;
}
.hdr-link:hover { color: var(--navy-800); background: rgba(24,80,110,.07); }
.hdr-link.active { color: var(--navy-800); }
.hdr-link.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  background: var(--orange); border-radius: 2px;
}
.hdr-cta { display: flex; }
.hdr-burger { display: none; background: none; border: 0; color: var(--navy-800); padding: 6px; margin-left: auto; }

/* ---------- Header dropdown (Écosystème) ---------- */
.hdr-drop { position: relative; }
.hdr-drop-panel {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3);
  padding: 8px; min-width: 220px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
  z-index: 70;
}
.hdr-drop-panel.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.hdr-drop-link {
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink-2);
  background: none; border: 0; padding: 10px 14px; border-radius: var(--r-sm); text-align: left;
  transition: background .15s, color .15s;
}
.hdr-drop-link:hover { background: var(--paper-2); color: var(--navy-800); }
.hdr-drop-link.active { color: var(--orange-600); background: var(--orange-050); }

/* ---------- Recherche globale ---------- */
.hdr-search { position: relative; display: flex; align-items: center; margin-left: 10px; }
.hdr-search-icon { position: absolute; left: 12px; color: var(--ink-3); pointer-events: none; }
.hdr-search-input {
  width: 190px; font-family: var(--font-body); font-size: 14px; color: var(--ink);
  background: rgba(255,255,255,.7); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 14px 8px 34px; transition: width .2s ease, border-color .15s, background .15s;
}
.hdr-search-input:focus { outline: none; width: 240px; border-color: var(--navy-500); background: #fff; }
.hdr-search-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3);
  padding: 8px; display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow-y: auto;
  z-index: 70;
}
.hdr-search-result {
  display: flex; flex-direction: column; gap: 1px; text-align: left;
  background: none; border: 0; padding: 9px 12px; border-radius: var(--r-sm);
}
.hdr-search-result:hover { background: var(--paper-2); }
.hdr-search-result-title { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--navy-800); }
.hdr-search-result-sub { font-family: var(--font-body); font-size: 12.5px; color: var(--ink-3); }
.hdr-search-empty { font-family: var(--font-body); font-size: 13.5px; color: var(--ink-3); padding: 10px 12px; }

.drawer-search-wrap { padding: 14px 18px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.drawer-search-wrap .hdr-search { margin-left: 0; width: 100%; }
.drawer-search-wrap .hdr-search-input { width: 100%; }
.drawer-search-wrap .hdr-search-input:focus { width: 100%; }
.drawer-search-wrap .hdr-search-panel { position: static; margin-top: 8px; box-shadow: none; border-color: var(--line-soft); }

/* ---------- Drawer (mobile) ---------- */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 100;
  background: rgba(6,32,47,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.drawer.open { opacity: 1; pointer-events: auto; }

.drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 90vw);
  height: 100vh;
  background: var(--paper);
  box-shadow: -4px 0 30px rgba(6,32,47,.22);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.open .drawer-panel { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--paper);
}
.drawer-close {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: none; border: 0; color: var(--navy-800);
  cursor: pointer;
  transition: background .15s;
}
.drawer-close:hover { background: var(--paper-2); }

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 6px 0 32px;
}

.drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--navy-800);
  background: none; border: 0;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}
.drawer-link svg { color: var(--ink-3); flex-shrink: 0; }
.drawer-link.active { color: var(--orange-600); }
.drawer-link.active svg { color: var(--orange-300, #f9a86a); }

.drawer-group { border-bottom: 1px solid var(--line-soft); }
.drawer-group .drawer-link { border-bottom: 0; }
.drawer-subnav { display: flex; flex-direction: column; padding: 0 22px 14px 34px; gap: 2px; }
.drawer-sublink {
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px; color: var(--ink-2);
  background: none; border: 0; padding: 10px 0; text-align: left;
}
.drawer-sublink.active { color: var(--orange-600); }

/* ---------- MINEFOP bar ---------- */
.minefop {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 20px; box-shadow: var(--sh-1);
}
.minefop-logo { height: 52px; width: auto; }
.minefop-txt { display: flex; flex-direction: column; gap: 2px; }
.minefop-txt strong { font-family: var(--font-head); color: var(--navy-800); font-size: 15px; }
.minefop-txt span { color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.minefop.compact { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.minefop.compact .minefop-txt strong { color: #fff; }
.minefop.compact .minefop-txt span { color: rgba(255,255,255,.78); }
.minefop.compact .minefop-logo { background: #fff; border-radius: 8px; padding: 4px; }

/* ---------- Footer ---------- */
.ftr { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 36px 0 20px; margin-top: 40px; }
.ftr-top { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 32px; }
.ftr-col h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.ftr-col button { display: block; background: none; border: 0; color: rgba(255,255,255,.72); font-family: var(--font-body); font-size: 14.5px; padding: 6px 0; text-align: left; transition: color .15s; }
.ftr-col button:hover { color: var(--orange); }
.ftr-eco svg { color: var(--orange); flex-shrink: 0; }
.ftr-brand-eco { margin-top: 0; }
.ftr-brand-eco h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.ftr-brand-eco .ftr-eco { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: rgba(255,255,255,.72); font-family: var(--font-body); font-size: 14px; padding: 6px 0; text-align: left; transition: color .15s; }
.ftr-brand-eco .ftr-eco:hover { color: var(--orange); }
.ftr-contact { display: flex; align-items: center; gap: 9px; font-size: 14.5px; padding: 7px 0; transition: color .15s; }
.ftr-contact:hover { color: var(--orange); }
.ftr-contact svg { color: var(--orange); }
.ftr-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px;
}
.ftr-made { color: rgba(255,255,255,.45); }

/* ---------- Bouton flottant WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 2px 8px rgba(6,32,47,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55);
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.wa-float:hover { transform: scale(1.06); box-shadow: 0 14px 30px rgba(37,211,102,.55), 0 2px 8px rgba(6,32,47,.24); }
.wa-float-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: var(--navy-900); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 13px;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.wa-float:hover .wa-float-tip { opacity: 1; }
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float-tip { display: none; }
}

/* ---------- Section head ---------- */
.sec-head { margin-bottom: 44px; }
.sec-head.center { text-align: center; }

/* ---------- Placeholder ---------- */
.ph {
  width: 100%; border-radius: var(--r-md); overflow: hidden;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, var(--line-soft) 0 14px, transparent 14px 28px);
  border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
}
.ph-tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px;
  color: var(--ink-3); background: rgba(255,255,255,.85); padding: 5px 11px; border-radius: 6px;
  letter-spacing: .02em;
}
.imgfill { width: 100%; overflow: hidden; border-radius: var(--r-md); }
.imgfill img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Page transition ---------- */
@media (prefers-reduced-motion: no-preference) {
  .view-anim { animation: viewIn .45s cubic-bezier(.22,.61,.36,1) both; }
  @keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hdr-nav, .hdr-cta, .hdr-search-desktop { display: none; }
  .hdr-burger { display: inline-flex; }
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .brand-tag { display: none; }
  .brand-img { height: 40px; }
  .ftr-top { grid-template-columns: 1fr; gap: 28px; }
  .ftr-bottom { flex-direction: column; align-items: flex-start; }
  .minefop { flex-direction: row; padding: 12px 14px; }
  .minefop-logo { height: 44px; }
}
