:root{
  --bg: #eef6d6;
  --orange: #ef6a00;
  --orange-dark: #e35f00;
  --gold: #ffcb3d;
  --text: #111;
  
  --bg-result: url("images/bg_result.png");
  --bg-question: url("images/sandpaper-1920x1080.png");
  --bg-register: url("images/bg_register.png");
  --bg-index: url("images/bg_index.jpg");
  --img-monique: url("images/monique2.png");
  --img-murielle: url("images/murielle2.png");
  --img-ebinto: url("images/ebinto2.png");

  /* icône trophée */
  --img-trophy: url("https://cdn-icons-png.flaticon.com/512/2583/2583344.png");
}

/** {*/
/*  outline: 1px solid red;*/
/*}*/


.screen-home{
  background: var(--bg-index);
  background-size: cover;
  /*background-position: center;*/
  background-repeat: no-repeat;
  min-height: 100svh; /* small viewport */
  min-height: 120dvh; /* dynamic viewport */
  width: 100%;
  position: relative;
}

/* Styles pour les boutons de réponse */
.answer-btn {
  display: block;
  width: 100%;
  padding: 16px;
  margin-bottom: 12px;
  text-align: left;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
}

.answer-btn:hover {
  background: #e9ecef;
  border-color: #ced4da;
  transform: translateY(-2px);
}

.answer-btn.selected {
  background: #007bff;
  color: white;
  border-color: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Styles pour l'affichage des scores */
.scores-summary {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.final-scores h4 {
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #dee2e6;
}

.score-row.winner {
  background: #d4edda;
  border-left-color: #28a745;
  font-weight: 600;
}

.score-value {
  font-weight: 700;
  color: #495057;
}

/* Boutons d'action */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  padding: 14px 24px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover {
  background: #1e7e34;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #007bff;
  color: #007bff;
}

.btn-outline:hover {
  background: #007bff;
  color: white;
}

.btn-nav {
  background: transparent;
  color: #6c757d;
  font-size: 20px;
  padding: 8px 16px;
}

.btn-nav:hover {
  color: #007bff;
}


/* Texte de progression */
#progressText {
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
}

/* Indications */
.hint {
  font-size: 14px;
  color: #6c757d;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .answer-btn {
    padding: 14px;
    font-size: 15px;
  }
  
  .scores-summary {
    padding: 16px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* Base */
*{ box-sizing:border-box; }
html, body{ min-height: 100%; }
body{
  margin:0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#0000;
}
.screen{ min-height: 100%;}

.page-shell{
  min-height:100vh;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding: 28px 18px 0 18px;
}

.page-shell-profile{
  min-height:100vh;
  position:relative;
  /*display:flex;*/
  flex-direction:column;
  align-items:center;
  padding: 28px 18px 0 18px;
}

.content-center, .quiz-wrap, .home-cta, .result-wrap, .form-wrap, .share-wrap{
  width: min(420px, 100%);
}

.top-doodles{
  position:absolute;
  top:0; left:0; right:0;
  height:220px;
  opacity:.22;
  pointer-events:none;
  background-image: var(--img-doodles);
  background-size: 420px 420px;
  background-repeat: repeat;
}

/* Splash */
.screen-splash{ background: var(--bg); }
.splash-block{ /*transform: translateY(120px);*/ text-align:center; }
.brand-script{
  font-family: "Libre Baskerville";
  /*color: var(--orange);*/
  font-size: 50px;
  line-height: 0.5;
  font-weight:bolder;
  letter-spacing:-5px;
}
.brand-sub{
  margin-top: 8px;
  font-weight: bold;
  color: var(--orange);
  font-size: 30px;
}

/* Home */
.home-title{
  font-weight: 800;
  font-size: 34px;
  line-height: 1.05;
  margin-top: 20px;
  text-transform: uppercase;
}
.orange{ color: var(--orange); }
.home-sub{
  margin-top: 14px;
  color: #5a5a5a;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.25;
  text-transform: uppercase;
}
.home-cta{
  /*margin-top:auto;*/
  padding-bottom: 40px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 14px;
}
.btn-ebinto{
  background: var(--orange);
  border: none;
  color: #fff;
  font-weight: 500;
  letter-spacing: .5px;
  padding: 16px 26px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(239,106,0,.22);
}
.btn-ebinto:hover{ background: var(--orange-dark); color:#fff; }
/*.home-foot{*/
/*  text-align:center;*/
/*  color: var(--orange);*/
/*  font-weight: 700;*/
/*  font-size: 16px;*/
/*  line-height: 1.2;*/
/*  text-transform: uppercase;*/
/*}*/

/* Quiz */
.screen-quiz{ background: var(--bg); }
.quiz-wrap{ padding-top: 80px; padding-bottom: 26px; }
.topic{
  color:#595959;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-align:center;
}

.prompt{
  margin-top: 18px;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.25;
  text-align:center;
}

/* Answer cards */
.answer-card{
  width:100%;
  background: var(--bg-question);
  border: 4px solid rgba(255,255,255,.15);
  border-bottom:4px solid var(--gold) !important;
  overflow:hidden;
  display:flex;
  align-items:stretch;
  margin-bottom: 14px;
  cursor:pointer;
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
  transition: transform .06s ease;
}
.answer-card:hover{ transform: translateY(-1px); }
.answer-letter{
  width: 74px; min-width: 74px;
  background: var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-weight: 900; font-size: 34px;
  color:#7d3f14;
}
.answer-body{
  padding: 16px 16px;
  color:#fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}
.answer-card.selected{
  outline: 4px solid rgba(17,17,17,.10);
  box-shadow: 0 14px 26px rgba(239,106,0,.28);
}

.btn-nav{
  background: #f2b11b29;
  border: 2px solid rgba(239,106,0,.35);
  color: #7d3f14;
  font-weight: 900;
  border-radius: 12px;
  padding: 10px 14px;
}
.btn-nav:disabled{ opacity:.45; }

/* Footer orange + texture en ligne */
.bottom-footer{
  width:100%;
  margin-top:auto;
  /*position:relative;*/
  height: 120px;
}

.footer-notch{
  position:absolute;
  left:50%; transform: translateX(-50%);
  top:0;
  width: 90px; height: 55px;
  background: var(--bg);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
}

/* RESULT */
.screen-result{
 background: var(--bg-result);
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
}
.result-wrap{
  padding-top: 40px;
  padding-bottom: 40px;
  color:#fff;
}
.trophy{
  width: 62px; height: 62px;
  background-image: var(--img-trophy);
  background-size: cover;
  background-position:center;
  margin: 6px auto 16px auto;
}
.result-title{
  text-align:center;
  font-weight: 900;
  font-size: 34px;
  text-transform: uppercase;
}
.result-sub{
  text-align:center;
  color: rgba(255,255,255,.75);
  font-weight: 700;
  font-size: 22px;
  margin-top: 6px;
  font-style: italic;
}
.photo-frame{
  margin: 26px auto 18px auto;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 330px;
  border: 3px solid rgba(255,255,255,.85);
  border-radius: 6px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.photo-frame .photo{
  width:100%; height:100%;
  background-size: cover;
  background-position:center;
}
.result-text{
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,.92);
}
.result-stats{
  margin-top: 18px;
  font-size: 18px;
  font-weight: 900;
}
.result-stats span{
  color: var(--gold);
}
.btn-white{
  background:#fff;
  color: #7d3f14;
  font-weight: 600;
  border-radius: 999px;
  padding: 14px 26px;
  border:none;
}

/* SIGNUP */
.screen-signup{
  background: var(--bg-register);
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
}
.form-wrap{
  padding-top: 60px;
  padding-bottom: 50px;
  color:#fff;
}
.form-title{
  font-weight: 600;
  font-size: 34px;
  text-transform: uppercase;
}
.form-sub{
  margin-top: 10px;
  font-style: italic;
  opacity:.9;
  line-height: 1.3;
}
.form-control.eb{
  border-radius: 14px;
  padding: 18px 16px;
  border: none;
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}
.check-row{
  display:flex; gap:12px; align-items:center;
  margin-top: 16px;
}
.check-box{
  width: 22px; height: 22px;
  border:2px solid rgba(255,255,255,.9);
  border-radius: 3px;
}
.btn-center{ display:flex; justify-content:center; margin-top: 26px; }

/* SHARE */
.screen-share{
  background: var(--bg-register);
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
}
.share-wrap{
  padding-top: 70px;
  padding-bottom: 60px;
  color:#fff;
}
.share-title{
  text-align:center;
  font-weight: 900;
  font-size: 34px;
  text-transform: uppercase;
}
.share-sub{
  text-align:center;
  color: var(--gold);
  font-style: italic;
  font-weight: 800;
  font-size: 26px;
}
.share-box{
  margin: 26px auto;
  width: 100%;
  max-width: 330px;
  aspect-ratio: 1/1;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.socials{
  display:flex;
  justify-content:center;
  gap: 14px;
  margin-top: 16px;
}
.socials img{
  width: 32px;
  height: 32px;
}


/*.screen-home{*/
/*  background: var(--bg-index);*/
/*  background-size: cover;*/
/*  background-repeat: no-repeat;*/
 /* min-height: 100svh;  small viewport */
  /*min-height: 120dvh;  dynamic viewport */
/*  width: 100%;*/
/*  position: relative;*/
/*}*/

.splash-block{ /*transform: translateY(120px);*/ text-align:center; }

.question-pill{
  display:inline-block;
  color:white;
  background: var(--bg-question);
  font-weight: 800;
  padding: 10px 22px;
  border-top-left-radius: 50px;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
    border-bottom-left-radius: 14px;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(239,106,0,.18);
}

.footer-pattern{
  position:absolute; left: 0; right:-20px; bottom:0;
width: 100%;
  height: 90px;
  background: #7d3f14;
  background-image: var(--bg-question);
  background-size: 420px 420px;
  opacity:.95;
}
/*.footer-notch{*/
/*  position:absolute;*/
/*  left:50%; transform: translateX(-50%);*/
/*  top:0;*/
/*  width: 90px; height: 55px;*/
/*  background: var(--bg);*/
/*  border-bottom-left-radius: 60px;*/
/*  border-bottom-right-radius: 60px;*/
/*}*/

/* RESULT */
/*.screen-result{*/
/*  background: var(--bg-result);*/
/*  background-size: cover;*/
/*  background-repeat: no-repeat;*/
/*  min-height: 100vh;*/
/*}*/
/*.result-wrap{*/
/*  padding-top: 40px;*/
/*  padding-bottom: 40px;*/
/*  color:#fff;*/
/*}*/
/*.trophy{*/
/*  width: 62px; height: 62px;*/
/*  background-image: var(--img-trophy);*/
/*  background-size: cover;*/
/*  background-position:center;*/
/*  margin: 6px auto 16px auto;*/
/*}*/
/*.result-title{*/
/*  text-align:center;*/
/*  font-weight: 900;*/
/*  font-size: 34px;*/
/*  text-transform: uppercase;*/
/*}*/
/*.result-sub{*/
/*  text-align:center;*/
/*  color: var(--gold);*/
/*  font-weight: 700;*/
/*  font-size: 22px;*/
/*  margin-top: 6px;*/
/*  font-style: italic;*/
/*}*/
/*.photo-frame{*/
/*  margin: 26px auto 18px auto;*/
/*  width: 100%;*/
/*  aspect-ratio: 1/1;*/
/*  max-width: 330px;*/
/*  border: 3px solid rgba(255,255,255,.85);*/
/*  border-radius: 6px;*/
/*  overflow:hidden;*/
/*  background:#fff;*/
/*  box-shadow: 0 18px 40px rgba(0,0,0,.18);*/
/*}*/
/*.photo-frame .photo{*/
/*  width:100%; height:100%;*/
/*  background-size: cover;*/
/*  background-position:center;*/
/*}*/
/*.result-text{*/
/*  font-size: 15px;*/
/*  line-height: 1.55;*/
/*  color: rgba(255,255,255,.92);*/
/*}*/
/*.result-stats{*/
/*  margin-top: 18px;*/
/*  font-size: 18px;*/
/*  font-weight: 900;*/
/*}*/
/*.result-stats span{*/
/*  color: var(--gold);*/
/*}*/
/*.btn-white{*/
/*  background:#fff;*/
/*  color: #7d3f14;*/
/*  font-weight: 600;*/
/*  border-radius: 999px;*/
/*  padding: 14px 26px;*/
/*  border:none;*/
/*}*/

/* SIGNUP */
/*.screen-signup{*/
/*  background: var(--bg-register);*/
/*  background-size: cover;*/
/*  background-repeat: no-repeat;*/
/*  min-height: 100vh;*/
/*}*/
/*.form-wrap{*/
/*  padding-top: 60px;*/
/*  padding-bottom: 50px;*/
/*  color:#fff;*/
/*}*/
/*.form-title{*/
/*  font-weight: 600;*/
/*  font-size: 34px;*/
/*  text-transform: uppercase;*/
/*}*/
/*.form-sub{*/
/*  margin-top: 10px;*/
/*  font-style: italic;*/
/*  opacity:.9;*/
/*  line-height: 1.3;*/
/*}*/
/*.form-control.eb{*/
/*  border-radius: 14px;*/
/*  padding: 18px 16px;*/
/*  border: none;*/
/*  box-shadow: 0 12px 24px rgba(0,0,0,.12);*/
/*}*/
/*.check-row{*/
/*  display:flex; gap:12px; align-items:center;*/
/*  margin-top: 16px;*/
/*}*/
/*.check-box{*/
/*  width: 22px; height: 22px;*/
/*  border:2px solid rgba(255,255,255,.9);*/
/*  border-radius: 3px;*/
/*}*/
/*.btn-center{ display:flex; justify-content:center; margin-top: 26px; }*/

/* SHARE */
/*.screen-share{*/
/*  background: var(--bg-register);*/
/*  background-size: cover;*/
/*  background-repeat: no-repeat;*/
/*  min-height: 100vh;*/
/*}*/
/*.share-wrap{*/
/*  padding-top: 70px;*/
/*  padding-bottom: 60px;*/
/*  color:#fff;*/
/*}*/
/*.share-title{*/
/*  text-align:center;*/
/*  font-weight: 900;*/
/*  font-size: 34px;*/
/*  text-transform: uppercase;*/
/*}*/
/*.share-sub{*/
/*  text-align:center;*/
/*  color: var(--gold);*/
/*  font-style: italic;*/
/*  font-weight: 800;*/
/*  font-size: 26px;*/
/*}*/
/*.share-box{*/
/*  margin: 26px auto;*/
/*  width: 100%;*/
/*  max-width: 330px;*/
/*  aspect-ratio: 1/1;*/
/*  background: #fff;*/
/*  border-radius: 6px;*/
/*  box-shadow: 0 18px 40px rgba(0,0,0,.18);*/
/*}*/
/*.socials{*/
/*  display:flex;*/
/*  justify-content:center;*/
/*  gap: 14px;*/
/*  margin-top: 16px;*/
/*}*/
/*.socials img{*/
/*  width: 32px;*/
/*  height: 32px;*/
/*}*/
