:root{
  --primary:#6c5cff;
  --secondary:#ffbf66;
  --bg1:#fff8ea;
  --bg2:#eef3ff;
  --text:#2b244d;
  --card:#ffffff;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family:'Fredoka',sans-serif;
  background:linear-gradient(180deg,var(--bg1),var(--bg2));
  color:var(--text);
  min-height:100vh;
  padding:30px;
}

/* CONTAINER */

.container{
  max-width:900px;
  margin:auto;
  text-align:center;
}

/* HEADER */

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:30px;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:20px;
  font-weight:600;
  color:var(--primary);
}

.brand-badge{
  background:white;
  padding:10px;
  border-radius:10px;
  box-shadow:0 6px 12px rgba(0,0,0,0.1);
}

.header-cta{
  background:linear-gradient(135deg,#6c5cff,#8b7dff);
  color:white;
  padding:10px 16px;
  border-radius:10px;
  font-size:14px;
  text-decoration:none;
  font-weight:600;
  box-shadow:0 5px 10px rgba(0,0,0,0.15);
}

/* HERO */

.hero{
  margin-bottom:30px;
}

.hero-text{
  max-width:650px;
  margin:auto;
}

.eyebrow{
  background:white;
  padding:6px 14px;
  border-radius:20px;
  font-size:13px;
  display:inline-block;
  margin-bottom:10px;
  box-shadow:0 5px 12px rgba(0,0,0,0.1);
}

h1{
  font-size:42px;
  margin-bottom:10px;
}

p{
  margin-bottom:25px;
  font-size:18px;
  color:#555;
}

h2{
  margin-top:40px;
  margin-bottom:15px;
}

h3{
  margin-bottom:15px;
}

/* THEMES */

.themes{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:16px;
  margin-bottom:40px;
}

.theme{
  background:var(--card);
  border-radius:18px;
  padding:20px;
  cursor:pointer;
  box-shadow:0 10px 20px rgba(0,0,0,0.08);
  transition:0.25s;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.theme i{
  font-size:22px;
  color:var(--primary);
}

.theme:hover{
  transform:translateY(-5px);
  box-shadow:0 18px 30px rgba(0,0,0,0.15);
}

.theme.selected{
  background:linear-gradient(135deg,var(--primary),#8b7dff);
  color:white;
}

.theme.selected i{
  color:white;
}

#titrevioletrond{
background:#7c4dff;
color:white;
padding:14px 20px;
border-radius:14px;
font-weight:600;
margin-top:60px;
margin-bottom:40px;
text-align:center;
font-size:18px;

}
.gender-choice{
display:flex;
gap:20px;
margin-top:10px;
margin-bottom:20px;
font-size:16px;

}

.gender-choice label{
display:flex;
align-items:center;
gap:8px;
cursor:pointer;
}

.details-highlight{
margin-top:20px;
border:2px solid #7c4dff;
border-radius:12px;
padding:10px;
background:#f6f2ff;

}

.details-highlight summary{
font-weight:600;
cursor:pointer;
font-size:16px;
color:#4a2bc0;

}

.gender-choice{
display:flex;
gap:20px;
margin-top:15px;
margin-bottom:25px;
}

.gender-card{
flex:1;
cursor:pointer;
border:2px solid #e2e2f0;
border-radius:14px;
padding:14px 18px;
display:flex;
align-items:center;
justify-content:center;
font-weight:500;
background:white;
transition:all 0.2s ease;
}

.gender-card input{
display:none;
}

.gender-card:hover{
border-color:#7c4dff;
background:#f7f3ff;
}

.gender-card input:checked + span{
color:#7c4dff;
font-weight:600;
}

.gender-card input:checked + span::before{
content:"✓ ";
color:#7c4dff;
font-weight:bold;
}

#email{
width:100%;
padding:18px 20px;
border-radius:14px;
border:2px solid #7c4dff;
background:#faf7ff;
font-size:16px;
outline:none;
transition:all 0.2s ease;
}

#download-block{
margin-top:40px;
}

/* DURATION */

.duration-cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:40px;
}

.duration-card{
  background:white;
  border-radius:16px;
  padding:14px;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(0,0,0,0.08);
  transition:0.25s;
  font-weight:600;
}

.duration-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 25px rgba(0,0,0,0.15);
}

.duration-card.selected{
  background:linear-gradient(135deg,#ffbf66,#ffd98d);
}

/* INPUTS */

input{
  width:100%;
  padding:14px;
  margin-bottom:14px;
  border-radius:12px;
  border:1px solid #ddd;
  font-size:16px;
  font-family:'Fredoka',sans-serif;
}

input:focus{
  outline:none;
  border-color:var(--primary);
}

details{
  margin-bottom:30px;
}

summary{
  cursor:pointer;
  margin-bottom:15px;
  font-weight:600;
}

/* BUTTON */

button{
  background:linear-gradient(135deg,var(--secondary),#ffd98d);
  border:none;
  padding:14px 24px;
  border-radius:12px;
  font-size:16px;
  cursor:pointer;
  font-weight:600;
  transition:0.2s;
}

button:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(0,0,0,0.15);
}

/* LOADER */

.magic-loader{
  margin-top:30px;
  margin-bottom:30px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
}

.loader-icon{
  font-size:32px;
  color:#6c5cff;
  animation:spin 2s linear infinite;
}

@keyframes spin{
  0%{transform:rotate(0deg);}
  100%{transform:rotate(360deg);}
}

.loader-step{
  opacity:0.35;
  font-size:18px;
}

.loader-step.active{
  opacity:1;
  font-weight:600;
  color:#6c5cff;
}

/* STORY PREVIEW */

.story-preview{
  margin-top:40px;
  background:white;
  padding:30px;
  border-radius:20px;
  box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

/* TITRE HISTOIRE */

.story-title{
  background:linear-gradient(135deg,#6c5cff,#8b7dff);
  color:white;
  padding:16px 28px;
  border-radius:18px;
  font-weight:700;
  font-size:22px;
  margin:0 auto 20px auto;
  display:block;
  text-align:center;
  width:fit-content;
  box-shadow:0 10px 22px rgba(0,0,0,0.18);
}

/* META INFO */

.story-meta{
  background:#f4f5ff;
  padding:15px;
  border-radius:14px;
  display:flex;
  gap:15px;
  margin-bottom:25px;
  flex-wrap:wrap;
  justify-content:center;
}

.story-meta span{
  background:white;
  padding:8px 16px;
  border-radius:20px;
  font-weight:600;
  color:#4a4bd1;
  font-size:14px;
  box-shadow:0 4px 10px rgba(0,0,0,0.05);
}

.hero p{
max-width:700px;
margin:0 auto 50px auto;
line-height:1.6;
font-size:18px;
}

/* TEASER */

.story-preview-line{
  text-align:center;
  font-size:16px;
  color:#444;
  margin-bottom:20px;
}

/* BOUTON INSCRIPTION */

.upgrade-block{
  margin-top:25px;
  margin-bottom:35px;
  text-align:center;
}

.cta-upgrade{
  display:inline-block;
  background:linear-gradient(135deg,#6c5cff,#8b7dff);
  color:white;
  padding:14px 26px;
  border-radius:14px;
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  box-shadow:0 8px 20px rgba(0,0,0,0.18);
  transition:0.2s;
}

.cta-upgrade:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,0.25);
}

/* DOWNLOAD */

#download-block{
  margin-top:40px;
}

/* RESPONSIVE */

@media(max-width:768px){

body{
  padding:15px;
}

h1{
  font-size:30px;
}

.themes{
  grid-template-columns:1fr 1fr;
}

.duration-cards{
  grid-template-columns:1fr 1fr;
}

.topbar{
  flex-direction:column;
}

@media(max-width:480px){

.themes{
  grid-template-columns:1fr;
}

.duration-cards{
  grid-template-columns:1fr;
}

h1{
  font-size:26px;
.gender-choice{
flex-direction:column;
}
}