/* assets/style.css */
:root{
  --bg1:#ffffff;
  --bg2:#ffffff;
  --line: rgba(140,41,41,.22);
  --text: #3b0d16;
  --muted: #6d3a3a;
  --accent: #8c2929;
  --card: rgba(255,255,255,.94);
  --cardBorder: rgba(140,41,41,.25);
  --btnBg: #8c2929;
  --btnBorder: #742121;
  --shadow: 0 16px 40px rgba(140,41,41,.16);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Segoe UI", Roboto, Arial, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x:hidden;
}

/* --- Background layers --- */
.page-bg{
  position:fixed; inset:0;
  z-index:-2;
  background:#fff;
}

.page-bg::before{
  content:"";
  position:absolute;
  left:0; right:0; top:100px;
  height:360px;
  background: url("img/ENTETE.jpg") center top / cover no-repeat;
  opacity:1;
  pointer-events:none;
}

.binary-overlay{
  position:fixed; inset:0;
  z-index:-1;
  pointer-events:none;
}

.binary-overlay::before{
  content:"";
  position:absolute;
  left:0; right:0; top:100px;
  height:360px;
  background: url("img/ENTETE.jpg") center top / cover no-repeat;
  filter: blur(8px);
  opacity:.58;
  /* Flou concentré sur les bords, centre totalement net */
  mask-image: linear-gradient(to bottom,
    black 0%,
    black 18%,
    transparent 30%,
    transparent 70%,
    black 82%,
    black 100%);
  -webkit-mask-image: linear-gradient(to bottom,
    black 0%,
    black 18%,
    transparent 30%,
    transparent 70%,
    black 82%,
    black 100%);
}

.binary-overlay::after{
  content:"";
  position:absolute;
  left:0; right:0; top:100px;
  height:360px;
  background:
    linear-gradient(to bottom,
      rgba(255,255,255,0.985) 0%,
      rgba(255,255,255,0.48) 18%,
      rgba(255,255,255,0.10) 40%,
      rgba(255,255,255,0.10) 60%,
      rgba(255,255,255,0.48) 82%,
      rgba(255,255,255,0.985) 100%);
  pointer-events:none;
}

/* --- Top bar (like screenshot) --- */
.topbar{
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 34px;
  border-bottom:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.60));
  backdrop-filter: blur(3px);
}

.brand{
  display:flex; align-items:center; gap:14px;
  min-width:220px;
}
.brand-mark{
  width:38px; height:38px;
  border:1px solid rgba(140,41,41,.60);
  border-radius:999px;
  display:grid; place-items:center;
  color:rgba(140,41,41,.95);
  font-weight:600;
}
.brand-name{
  font-weight:600;
  letter-spacing:.6px;
  opacity:.92;
}

.top-actions{
  display:flex; align-items:center; gap:12px;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:10px;
  border:1px solid var(--btnBorder);
  color:#fff;
  background:var(--btnBg);
  text-decoration:none;
  cursor:pointer;
  transition: transform .05s ease, background .15s ease, opacity .15s ease;
}
.btn:hover{ background: #742121; }
.btn:active{ transform: translateY(1px); }
.btn.secondary{
  border-color: rgba(140,41,41,.35);
  background: rgba(255,255,255,.85);
  color: var(--accent);
  opacity:1;
}

/* --- Main container --- */
.wrap{
  max-width:1200px;
  margin:0 auto;
  padding: 22px 34px 60px;
}

/* Hero layout like Azentis home */
.hero{
  margin-top: 26px;
  display:grid;
  grid-template-columns: 1.2fr 28px 1.8fr;
  gap: 26px;
  align-items:center;
  min-height: calc(100vh - 160px);
}

.hero-left{
  color:var(--muted);
  padding-left: 10px;
}

.hero-left .logo-big{
  font-size:56px;
  font-weight:300;
  letter-spacing:1px;
  line-height:0.92;
  margin: 0 0 14px;
  opacity:.92;
}
.hero-left .logo-big span{display:block; font-weight:300;}
.hero-left .services{
  margin-top: 18px;
  font-size:14px;
  line-height:1.9;
  opacity:.9;
}
.hero-left .desc{
  margin-top: 18px;
  max-width: 420px;
  font-size:13px;
  line-height:1.7;
  opacity:.9;
}
.hero-left .cta{
  margin-top:18px;
}
.hero-left .cta .btn{
  border-color: #742121;
  background: #8c2929;
  color: #fff;
}

/* separator vertical line */
.hero-sep{
  width:2px;
  height: 420px;
  background: rgba(140,41,41,.35);
  justify-self:center;
  opacity:.85;
}

/* Quote block */
.hero-right{
  padding-right: 10px;
}
.quote{
  font-size:46px;
  font-weight:200;
  letter-spacing:1px;
  line-height:1.25;
  text-transform:uppercase;
  opacity:.95;
}
.quote .q{opacity:.95}
.quote small{
  display:block;
  margin-top:18px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.5px;
  opacity:.75;
  text-transform:none;
}

/* Cards for login/upload/admin on same background */
.card{
  background: var(--card);
  border:1px solid var(--cardBorder);
  border-radius:16px;
  box-shadow: var(--shadow);
  padding:18px;
}

.row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.row > *{flex:1; min-width:240px;}

input[type=text], input[type=password], input[type=file]{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(140,41,41,.24);
  background: rgba(255,255,255,.95);
  color: var(--text);
}
label{display:block; margin-bottom:6px; opacity:.9}
.muted{color:var(--muted); font-size:12px}
.error{background:rgba(255,0,0,.10); border:1px solid rgba(255,0,0,.20); padding:10px; border-radius:12px}
.ok{background:rgba(0,255,140,.10); border:1px solid rgba(0,255,140,.20); padding:10px; border-radius:12px}

/* Tables */
table{width:100%; border-collapse:collapse; margin-top:10px}
th,td{border-bottom:1px solid rgba(140,41,41,.14); padding:10px; text-align:left; font-size:13px; vertical-align:top}
code{background:rgba(140,41,41,.10); padding:2px 6px; border-radius:999px}

/* Responsive */
@media (max-width: 980px){
  .hero{grid-template-columns: 1fr; gap:18px; min-height:auto}
  .hero-sep{display:none}
  .quote{font-size:34px}
  .topbar{padding:0 18px}
  .wrap{padding:18px}
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.hero-visual img {
    max-width: 480px;
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
