/* main.css — Fondations : variables, reset, structure de page, en-tête, mise en page générale */
/* Utilisé par toutes les pages (index, connexion, inscription, tableau-de-bord, abonnement) */
/* Palette et style calqués sur l'identité visuelle DRSA-SERVICES (bannière boutique) :
   marine profond + bleu vif électrique, bandes diagonales, typographie bold géométrique. */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

  :root{
    --ink:#0b1f5e;          /* marine DRSA */
    --ink-soft:#5a6a95;
    --paper-app:#eef1f8;
    --panel:#ffffff;
    --line:#dbe0ee;
    --accent:#0e57f0;       /* bleu vif DRSA */
    --accent-dark:#083bb0;
    --accent-soft:#e6edfd;
    --danger:#b0473c;
    --radius:10px;
  }
  *{box-sizing:border-box;}
  html,body{margin:0;padding:0;}
  body{
    background:var(--paper-app);
    color:var(--ink);
    font-family:'Poppins',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    font-size:15px;
    line-height:1.45;
  }
  h1,h2,.brand h1,.plan-price,.hero h1{font-family:'Poppins',sans-serif;}

  /* ---------- App shell ---------- */
  header.app-header{
    background:linear-gradient(120deg, var(--ink) 0%, var(--ink) 55%, var(--accent-dark) 100%);
    color:#fff;
    padding:18px 22px 26px 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    position:sticky;
    top:0;
    z-index:50;
    box-shadow:0 2px 10px rgba(0,0,0,.15);
    clip-path:polygon(0 0,100% 0,100% 88%,0 100%);
  }
  .brand{display:flex;align-items:center;gap:12px;}
  .brand .badge{
    width:40px;height:40px;border-radius:9px;
    background:linear-gradient(145deg, var(--accent) 0%, var(--ink) 100%);
    display:flex;align-items:center;justify-content:center;
    font-weight:800;font-size:15px;letter-spacing:.5px;
    flex:0 0 auto;
    box-shadow:0 2px 6px rgba(0,0,0,.25);
  }
  .brand h1{font-size:16px;margin:0;font-weight:800;letter-spacing:.2px;}
  .brand p{margin:0;font-size:12px;color:#b9c6f5;}

  .top-actions{display:flex;gap:8px;flex-wrap:wrap;}
  button, .btn{
    font-family:inherit;
    border:none;
    border-radius:8px;
    padding:9px 14px;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    transition:transform .05s ease, filter .15s ease;
  }
  button:active{transform:scale(.97);}
  .btn-accent{background:var(--accent);color:#fff;}
  .btn-accent:hover{filter:brightness(1.08);}
  .btn-outline{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.4);}
  .btn-outline:hover{background:rgba(255,255,255,.1);}
  .btn-ghost{background:var(--accent-soft);color:var(--accent-dark);}
  .btn-ghost:hover{filter:brightness(.97);}
  .btn-danger{background:#fbeae8;color:var(--danger);}

  .layout{
    display:grid;
    grid-template-columns:1fr;
    gap:0;
  }
  

  .panel-form{
    padding:18px;
    max-width:720px;
    margin:0 auto;
    width:100%;
  }
  .panel-preview-wrap{
    padding:18px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
  }

  /* mobile tabs */
  .mobile-tabs{
    display:flex;
    gap:8px;
    padding:10px 16px 0 16px;
    position:sticky;
    top:82px;
    background:var(--paper-app);
    z-index:40;
  }
  
  .mobile-tabs button{flex:1;background:var(--panel);color:var(--ink-soft);border:1px solid var(--line);}
  .mobile-tabs button.active{background:var(--ink);color:#fff;border-color:var(--ink);}

  

  footer.app-footer{
    text-align:center;
    font-size:11.5px;
    color:#8b968f;
    padding:26px 12px 40px 12px;
  }

  /* ---------- Print ---------- */
  
