*{box-sizing:border-box}

body{
  margin:0;
  font-family:Arial,sans-serif;
  background:#080d14;
  color:#f5f7fa;
}

header{
  padding:28px 20px 10px;
  max-width:900px;
  margin:auto;
}

.logo{
  font-size:30px;
  font-weight:900;
  letter-spacing:2px;
}

.subtitle{
  color:#8e9aaa;
  margin-top:5px;
}

main{
  max-width:900px;
  margin:auto;
  padding:20px;
}

.hero{
  background:linear-gradient(135deg,#10251f,#141a2e);
  border:1px solid #243442;
  border-radius:24px;
  padding:30px;
  margin-bottom:20px;
}

.hero span{
  color:#25e5a4;
  font-weight:bold;
}

h1{
  font-size:38px;
  margin:15px 0 10px;
}

h2{
  margin-top:0;
}

p{
  color:#aeb8c5;
  line-height:1.6;
}

button{
  border:0;
  border-radius:14px;
  padding:15px 20px;
  background:#25e5a4;
  color:#06110d;
  font-weight:800;
  cursor:pointer;
  margin-top:10px;
}

.secondary{
  background:#1a2633;
  color:white;
}

.hero-info{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
  margin:20px 0;
}

.hero-info b{
  background:#101720;
  padding:10px 14px;
  border-radius:12px;
}

.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:20px;
}

.stats div{
  background:#101720;
  border:1px solid #22303e;
  border-radius:18px;
  padding:20px;
  text-align:center;
}

.stats strong{
  display:block;
  font-size:25px;
}

.stats small{
  color:#7f8b99;
}

.card{
  background:#101720;
  border:1px solid #22303e;
  border-radius:20px;
  padding:22px;
  margin-bottom:15px;
}

.days{
  display:grid;
  grid-template-columns:repeat(10,1fr);
  gap:7px;
}

.dayButton{
  padding:10px 4px;
  margin:0;
  background:#1a2633;
  color:#fff;
}

.dayButton.active{
  outline:2px solid #25e5a4;
}

.dayButton.done{
  background:#173d32;
  color:#25e5a4;
}

.exercise{
  display:flex;
  align-items:center;
  gap:15px;
  background:#0b1118;
  border:1px solid #202d3a;
  border-radius:14px;
  padding:15px;
  margin-bottom:8px;
}

.exercise span{
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#25e5a4;
  color:#06110d;
  font-weight:bold;
}

.exercise strong{
  flex:1;
}

.exercise small{
  color:#7f8b99;
}

input{
  width:100%;
  padding:14px;
  border-radius:12px;
  border:1px solid #344353;
  background:#080d14;
  color:white;
  font-size:16px;
}

.timer{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.88);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:100;
}

.timer-box{
  text-align:center;
  background:#101720;
  padding:40px;
  border-radius:25px;
  width:min(90%,400px);
  border:1px solid #293947;
}

#time{
  font-size:90px;
  font-weight:900;
  color:#25e5a4;
  margin:20px;
}

.hidden{
  display:none;
}

@media(max-width:600px){

  h1{
    font-size:30px;
  }

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

  .days{
    grid-template-columns:repeat(5,1fr);
  }

  .hero-info{
    flex-direction:column;
  }
}


/* ===== FLORIANE - Illustrations exercices ===== */

.exercise{
  display:flex;
  align-items:center;
  gap:14px;
  cursor:pointer;
  transition:transform .15s, border-color .15s;
}

.exercise:hover{
  transform:translateY(-1px);
}

.exercise-img{
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:14px;
  flex:none;
  border:1px solid rgba(255,255,255,.10);
}

.exercise-content{
  flex:1;
}

.exercise-content strong{
  display:block;
  font-size:17px;
  margin-bottom:3px;
}

.exercise-content small{
  opacity:.65;
}

.exercise-content p{
  margin:5px 0 0;
  font-size:13px;
  line-height:1.4;
  opacity:.78;
}

/* ===== Fenêtre d'information ===== */

.info-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(0,0,0,.78);
  backdrop-filter:blur(5px);
}

.info-modal.hidden{
  display:none;
}

.info-box{
  position:relative;
  width:min(430px,100%);
  max-height:90vh;
  overflow:auto;
  padding:20px;
  border-radius:22px;
  background:#101923;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 20px 60px rgba(0,0,0,.45);
  text-align:center;
}

.info-box img{
  width:100%;
  max-height:300px;
  object-fit:cover;
  border-radius:16px;
  margin-bottom:14px;
}

.info-box h2{
  margin:5px 0 8px;
}

.info-box p{
  line-height:1.6;
  opacity:.85;
  margin:0;
}

.close-info{
  position:absolute;
  top:10px;
  right:10px;
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:rgba(0,0,0,.55);
  color:white;
  font-size:20px;
  cursor:pointer;
}

/* ===== Timer ===== */

.timer-image{
  width:min(260px,80vw);
  height:180px;
  object-fit:cover;
  border-radius:18px;
  margin-bottom:12px;
}

.timer-text{
  max-width:360px;
  margin:8px auto 18px;
  line-height:1.5;
  opacity:.8;
}

@media(max-width:600px){
  .exercise-img{
    width:62px;
    height:62px;
  }

  .exercise-content p{
    font-size:12px;
  }

  .timer-image{
    height:150px;
  }
}
