:root{
  /* Modern minimal palette */
  --primary:   #6b4d9e;
  --accent:    #d4a024;

  --bg:        #0a0a0f;
  --bg-card:   #14141c;
  --bg-hover:  #1c1c26;

  --text:      #e8e8eb;
  --text-sub:  #8a8a94;
  --text-dim:  #5a5a64;

  --border:    #28282f;
  --border-hover: #3a3a44;

  --accent-subtle: rgba(212,160,36,.12);
  --primary-subtle: rgba(107,77,158,.12);

  /* Spacing & Radii - generous whitespace */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --space: 24px;

  /* Shadows - subtle depth */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.5);
}

/* ========== Base / reset ========== */
*{ box-sizing: border-box; }
html, body{ min-height: 100%; }

body{
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 70% 20%, #11153a 0%, var(--bg) 50%, #070913 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.panel,
.wrap,
header,
main,
footer,
.hud {
  position: relative;
  z-index: 10;
}



/* deeeeeeeeeee */

.alert-danger {
  background-color: #6b4d9e77;
  color: white;
  text-align: center;
}

/* Canvas étoiles + grain = fond global */
#stars,
.grain {
  position: fixed;   
  inset: 0;         
  width: 100vw;
  height: 100vh;
  pointer-events: none; 
}

#stars {
  z-index: -1;        
  display: block;
}

.grain {
  z-index: 0;        
  opacity: .06;      
}

/* Le contenu passe au-dessus */
.hud,
.wrap,
footer {
  position: relative; 
  z-index: 1;
}





/* ============================================================================
   Layout / Containers
   ========================================================================== */
.wrap{
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px;
}

.hud{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-sub);
  transition: border-color .2s;
}
.chip:hover{
  border-color: var(--border-hover);
}
.chip small{
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 11px;
}
.chip b{
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================================
   Card / Panel
   ========================================================================== */
.panel{
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  transition: border-color .3s, box-shadow .3s;
}
.panel:hover{
  border-color: var(--border-hover);
}

.k{
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h1{
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2{
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* ============================================================================
   Textes
   ========================================================================== */
.text-center {
  text-align: center !important;
}

.hero{
  font-weight: 700;
  color: var(--text);
}

.muted{
  color: var(--text-sub);
}

p{
  margin: 0 0 16px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ============================================================================
   Buttons - Modern minimal style
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover{
  background: var(--bg-hover);
  border-color: var(--border-hover);
}
.btn.primary{
  color: #0a0a0f;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.btn.primary:hover{
  background: #c99521;
  border-color: #c99521;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn[disabled]{
  opacity: .5;
  pointer-events: none;
  cursor: not-allowed;
}

/* ============================================================================
   Slides
   ========================================================================== */
.slides{
  display: grid;
  grid-template-rows: minmax(520px, auto) auto; 
  gap: 16px;
  margin-top: 3%;
  padding-bottom: 0; 
}

.slide{
  grid-row: 1 / 2;
  grid-column: 1 / -1;

  display: none;                 
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 24px;
  margin: var(--space);         
  opacity: 0;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.slide.active{
  opacity:1;
  display: grid;
  transform: translateY(0) scale(1);
  pointer-events:auto;
}
@media (max-width:980px){
  .slide{ grid-template-columns:1fr; }
}

/* ============================================================================
   Content helpers
   ========================================================================== */
.terminal{
  color: var(--text);
  font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
}
.terminal .scan{
  margin: 8px 0;
  color: var(--accent);
}

/* Mail block */
.mail{
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-hover);
}
.mail .row{
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-sub);
}

/* Options grid */
.options{
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
  margin-top: 16px;
}
@media (max-width:800px){
  .options{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* Choices grid */
.choices{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 12px;
  margin-top: 16px;
}
.opt{
  padding: 16px;
  text-align: center;
  user-select: none;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  font-size: 14px;
  transition: all .2s;
}
.opt:hover{
  background: var(--bg-hover);
  border-color: var(--border-hover);
}
.opt.good{
  border-color: var(--accent);
  background: var(--accent-subtle);
}
.opt.bad{
  border-color: #e15d67;
  background: rgba(225,93,103,.1);
}

/* Generator */
.gen{
  display: flex;
  align-items: center;
  gap: 12px;
}
.gen input{
  flex: 1;
  padding: 12px 16px;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  outline: none;
  font-size: 14px;
  transition: border-color .2s;
}
.gen input:focus{
  border-color: var(--accent);
}
.gencode{
  margin-top: 16px;
  padding: 16px;
  font-size: 14px;
  font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code", Consolas, monospace;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  color: var(--accent);
}

/* Result messages */
.result{
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
}

/* Form fields */
.field input[type="text"],
.field input[type="password"],
.field input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  margin: 8px 0;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  outline: none;
  font-size: 14px;
  transition: border-color .2s;
}
.field input:focus{
  border-color: var(--accent);
}

/* Progress / dots */
.progress{
  grid-row: 2 / 3;
  grid-column: 1 / -1;
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 var(--space) 24px;
}
.bullets{
  display: flex;
  gap: 8px;
}
.dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all .3s;
}
.dot.on{
  background: var(--accent);
}


/* Bgc */



/* ============================================================================
   Footer
   ========================================================================== */


/* ============================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  .btn:hover{ transform:none; }
}
