/* =========================
   mytutos.cloud — STYLE FINAL COMPLET
   Compatible :
   - index.php
   - dashboard.php
   - applications.php
   - faq.php
   - offres.php
   - boutique.php
   - formuler.php
   ========================= */

:root{
  --bg:#070b17;
  --bg2:#050815;

  --text:#eaf0ff;
  --muted:rgba(234,240,255,.78);

  --card:rgba(10,16,40,.55);
  --card2:rgba(255,255,255,.06);

  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.12);

  --primary:#2d6eff;
  --primary2:#1950dc;

  --good:#2dd4bf;
  --warn:#fb7185;
  --danger:#ff4a4a;

  --shadow:0 18px 60px rgba(0,0,0,.45);
  --shadow2:0 12px 50px rgba(0,0,0,.35);

  --radius:18px;
}

/* =========================
   RESET
   ========================= */

*{box-sizing:border-box}

html,body{
  height:100%;
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}

a{
  color:inherit;
  text-decoration:none;
}

a:hover{
  opacity:.98;
}

/* =========================
   BACKGROUND
   ========================= */

.bg{
  position:fixed;
  inset:0;
  background:
    radial-gradient(900px 500px at 50% 25%, rgba(45,110,255,.25), transparent 60%),
    radial-gradient(700px 500px at 20% 60%, rgba(0,255,180,.10), transparent 60%),
    radial-gradient(700px 500px at 80% 70%, rgba(255,0,140,.08), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  filter:saturate(1.1);
  z-index:-1;
}

/* =========================
   WRAPPERS
   ========================= */

.wrap,
.wrap-center{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.page,
.wrap-page{
  max-width:1100px;
  margin:0 auto;
  padding:28px 18px 70px;
}

/* =========================
   TOPBAR / NAV
   ========================= */

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border:1px solid var(--line2);
  border-radius:999px;
  background:rgba(255,255,255,.03);
  backdrop-filter:blur(10px);
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.2px;
  opacity:.95;
}

.dot{
  width:10px;
  height:10px;
  border-radius:99px;
  background:var(--primary);
  box-shadow:0 0 0 5px rgba(45,110,255,.15);
  flex:0 0 auto;
  margin-right:0;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.pill{
  font-size:12px;
  color:var(--muted);
  padding:7px 10px;
  border:1px solid var(--line2);
  border-radius:999px;
  background:rgba(255,255,255,.03);
  white-space:nowrap;
}

.nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  font-weight:900;
  transition:all .18s ease;
}

.nav a:hover{
  filter:brightness(1.06);
  transform:translateY(-1px);
}

.nav a.primary{
  background:linear-gradient(90deg, rgba(45,110,255,1), rgba(25,80,220,1));
  border:0;
}

.nav a.danger{
  background:rgba(255,70,70,.14);
  border:1px solid rgba(255,70,70,.25);
}

/* =========================
   TITRES / TEXTES
   ========================= */

h1{
  margin:18px 0 8px;
  font-size:40px;
  letter-spacing:-.6px;
  line-height:1.1;
}

.subtitle{
  margin:0 0 18px 0;
  color:var(--muted);
  line-height:1.55;
  max-width:80ch;
}

.pageHeader{
  padding:26px 6px 12px;
}

.pageHeader h1{
  margin:0;
}

.pageHeader p{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.55;
  max-width:90ch;
}

.small{
  font-size:13px;
  line-height:1.55;
  color:var(--muted);
}

.muted{
  color:var(--muted);
}

/* =========================
   LOGIN CARD
   ========================= */

.card{
  width:min(520px, 92vw);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
}

label{
  display:block;
  font-size:14px;
  margin:14px 0 8px;
  opacity:.9;
  font-weight:800;
}

input{
  width:100%;
  padding:14px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.25);
  color:#fff;
  outline:none;
}

input:focus{
  border-color:rgba(45,110,255,.55);
  box-shadow:0 0 0 4px rgba(45,110,255,.12);
}

/* =========================
   PANELS / SECTIONS
   ========================= */

.cards{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-top:16px;
}

.panel{
  border:1px solid var(--line2);
  background:var(--card2);
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
  overflow:hidden;
}

.panelHd{
  padding:16px 16px 12px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), transparent);
}

.panelHd h2{
  margin:0;
  font-size:16px;
  letter-spacing:.2px;
  font-weight:1000;
}

.panelBd{
  padding:14px 16px 16px;
}

.block{
  border:1px dashed rgba(255,255,255,.16);
  background:rgba(0,0,0,.12);
  border-radius:16px;
  padding:12px 12px;
  margin-top:10px;
}

/* =========================
   LIST / ROW
   ========================= */

.list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.item{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.12);
  border-radius:16px;
  padding:14px 14px;
}

.row{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.title{
  font-weight:1000;
  letter-spacing:.1px;
}

/* =========================
   CODE / URL / MONO
   ========================= */

.mono{
  margin-top:10px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:12px;
  color:rgba(233,238,252,.92);
  background:rgba(255,255,255,.05);
  border:1px dashed rgba(255,255,255,.18);
  padding:12px 12px;
  border-radius:14px;
  overflow:auto;
  white-space:pre-wrap;
  line-height:1.55;
}

.urlBox{
  margin-top:10px;
  border-radius:14px;
  padding:14px 14px;
  border:1px solid rgba(255,70,70,.28);
  background:rgba(255,70,70,.10);
  font-weight:1000;
  letter-spacing:.2px;
}

.urlBox .label{
  opacity:.9;
  font-weight:900;
}

.urlBox .value{
  color:#ff4a4a;
  font-size:18px;
  font-weight:1100;
}

.appleUrl{
  margin-top:10px;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(251,113,133,.25);
  background:rgba(251,113,133,.10);
  font-weight:1000;
}

.appleUrl b{
  color:#ff5a70;
}

/* =========================
   BADGES / CHIPS
   ========================= */

.badge{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  white-space:nowrap;
}

.badge.good{
  border-color:rgba(45,212,191,.35);
  background:rgba(45,212,191,.08);
  color:#bff7ef;
}

.badge.warn{
  border-color:rgba(251,113,133,.35);
  background:rgba(251,113,133,.08);
  color:#ffd0d8;
}

.chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.chip{
  font-size:12px;
  color:var(--muted);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
}

/* =========================
   ALERT / NOTICE
   ========================= */

.alert{
  margin:12px 0 0;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,70,70,.14);
  border:1px solid rgba(255,70,70,.25);
  font-weight:900;
}

.notice{
  margin-top:16px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(251,113,133,.25);
  background:rgba(251,113,133,.10);
}

/* =========================
   BUTTONS
   ========================= */

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:var(--text);
  font-weight:900;
  cursor:pointer;
  user-select:none;
  transition:all .18s ease;
  -webkit-tap-highlight-color:transparent;
}

.btn:hover{
  filter:brightness(1.06);
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}

.btn:active{
  transform:translateY(1px);
  box-shadow:none;
}

.btn.primary{
  border:0;
  background:linear-gradient(90deg, rgba(45,110,255,1), rgba(25,80,220,1));
}

.btn.warn{
  background:rgba(251,113,133,.12);
  border:1px solid rgba(251,113,133,.22);
}

.btn.copy{
  background:rgba(45,110,255,.12);
  border:1px solid rgba(45,110,255,.22);
}

.btn.wide{
  min-width:180px;
}

/* =========================
   DETAILS / ACCORDIONS
   ========================= */

details{
  margin-top:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  border-radius:16px;
  padding:12px 12px;
}

summary{
  cursor:pointer;
  font-weight:1000;
}

details p{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.55;
}

.divider{
  height:1px;
  background:rgba(255,255,255,.10);
  margin:14px 0;
}

/* =========================
   FOOTER
   ========================= */

footer,
.foot{
  margin-top:18px;
  font-size:12px;
  color:rgba(234,240,255,.55);
  text-align:center;
}

/* =========================
   TOAST
   ========================= */

#toast{
  position:fixed;
  left:50%;
  bottom:22px;
  transform:translateX(-50%);
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.55);
  color:white;
  border-radius:999px;
  font-weight:1000;
  z-index:9999;
  backdrop-filter:blur(10px);
  opacity:0;
  transition:opacity .18s ease, transform .18s ease;
}

#toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(-4px);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width:820px){
  h1{font-size:34px}
}

@media (max-width:600px){
  h1{font-size:28px}
}

@media (max-width:520px){
  .btn.wide{
    min-width:unset;
    width:100%;
  }

  .actions{
    gap:8px;
  }

  .row{
    flex-direction:column;
    align-items:flex-start;
  }
}