@font-face {
    font-family: "ductusregular_custom";
    src: url('../fonts/ductus/ductus-regularcustom-webfont.woff2') format('woff2'),
         url('../fonts/ductus/ductus-regularcustom-webfont.woff') format('woff');

}
@font-face {
    font-family: 'Faune';
    src:    url('../fonts/faune/eot/Faune-Display_Black.eot');
    src:    url('../fonts/faune/eot/Faune-Display_Black.eot?#iefix') format('embedded-opentype'),
            url('../fonts/faune/woff/Faune-Display_Black.woff') format('woff'),
            url('../fonts/faune/woff2/Faune-Display_Black.woff2') format('woff2'),
            url('../fonts/faune/ttf/Faune-Display_Black.ttf') format('truetype'),
            url('../fonts/faune/svg/Faune-Display_Black.svg#svgFontName') format('svg');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Faune';
    src:    url('../fonts/faune/eot/Faune-Display_Bold_Italic.eot');
    src:    url('../fonts/faune/eot/Faune-Display_Bold_Italic.eot?#iefix') format('embedded-opentype'),
            url('../fonts/faune/woff/Faune-Display_Bold_Italic.woff') format('woff'),
            url('../fonts/faune/woff2/Faune-Display_Bold_Italic.woff2') format('woff2'),
            url('../fonts/faune/ttf/Faune-Display_Bold_Italic.ttf') format('truetype'),
            url('../fonts/faune/svg/Faune-Display_Bold_Italic.svg#svgFontName') format('svg');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Faune';
    src:    url('../fonts/faune/eot/Faune-Display_Thin.eot');
    src:    url('../fonts/faune/eot/Faune-Display_Thin.eot?#iefix') format('embedded-opentype'),
            url('../fonts/faune/woff/Faune-Display_Thin.woff') format('woff'),
            url('../fonts/faune/woff2/Faune-Display_Thin.woff2') format('woff2'),
            url('../fonts/faune/ttf/Faune-Display_Thin.ttf') format('truetype'),
            url('../fonts/faune/svg/Faune-Display_Thin.svg#svgFontName') format('svg');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Faune';
    src:    url('../fonts/faune/eot/Faune-Text_Bold.eot');
    src:    url('../fonts/faune/eot/Faune-Text_Bold.eot?#iefix') format('embedded-opentype'),
            url('../fonts/faune/woff/Faune-Text_Bold.woff') format('woff'),
            url('../fonts/faune/woff2/Faune-Text_Bold.woff2') format('woff2'),
            url('../fonts/faune/ttf/Faune-Text_Bold.ttf') format('truetype'),
            url('../fonts/faune/svg/Faune-Text_Bold.svg#svgFontName') format('svg');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Faune';
    src:    url('../fonts/faune/eot/Faune-Text_Italic.eot');
    src:    url('../fonts/faune/eot/Faune-Text_Italic.eot?#iefix') format('embedded-opentype'),
            url('../fonts/faune/woff/Faune-Text_Italic.woff') format('woff'),
            url('../fonts/faune/woff2/Faune-Text_Italic.woff2') format('woff2'),
            url('../fonts/faune/ttf/Faune-Text_Italic.ttf') format('truetype'),
            url('../fonts/faune/svg/Faune-Text_Italic.svg#svgFontName') format('svg');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Faune';
    src:    url('../fonts/faune/eot/Faune-Text_Regular.eot');
    src:    url('../fonts/faune/eot/Faune-Text_Regular.eot?#iefix') format('embedded-opentype'),
            url('../fonts/faune/woff/Faune-Text_Regular.woff') format('woff'),
            url('../fonts/faune/woff2/Faune-Text_Regular.woff2') format('woff2'),
            url('../fonts/faune/ttf/Faune-Text_Regular.ttf') format('truetype'),
            url('../fonts/faune/svg/Faune-Text_Regular.svg#svgFontName') format('svg');
    font-weight: normal;
    font-style: normal;
}

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

  :root {
    --green-light: #E1F5EE;
    --green-mid: #9FE1CB;
    --green: #398c69;
    --green-dark: hsl(155, 42%, 29%);
    --green-darker: hsl(155, 42%, 19%);
    --text: #1a1a1a;
    --text-muted: #6b6b6b;
    --bg: #f9f7f4;
    --bg-card: #ffffff;
    --border: rgba(0,0,0,0.10);
    --border-light: rgba(0,0,0,0.06);
    --radius-md: 10px;
    --radius-lg: 16px;
  }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
  }


  .badge{
    position: absolute;
    top: 32px;
    left:32px;

  }
  .badge img {max-width: 196px;}
  #filet{
    position:fixed;
    top: calc(100vh - 24px);
    background: url(../img/entete.svg) no-repeat;
    background-size: cover;
    height: 40px; 
    width: 100vw;
  }
  @media (max-width: 992px) {
    #filet{
        display: none;
    }
  }
  .quiz-wrap {
    width: 100%;
    margin: 0 auto;
    max-width: 620px;
  }

  /* ---- HEADER ---- */
  .quiz-header {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
  }

  .quiz-badge {
    display: inline-block;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 99px;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
  }

  .quiz-title {
    font-family: 'Faune', serif;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 0.6rem;
    color: var(--text);
  }

  .quiz-subtitle {
    font-family: "ductusregular_custom";
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.6;
  }

  /* ---- PROGRESS ---- */
  .progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1.5rem 0 0;
  }

  .progress-bar-bg {
    flex: 1;
    height: 6px;
    background: #ddd;
    border-radius: 99px;
    overflow: hidden;
  }

  .progress-bar-fill {
    height: 100%;
    background: var(--green);
    border-radius: 99px;
    transition: width 0.4s ease;
    width: 0%;
  }

  .progress-label {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
  }

  /* ---- QUESTION CARD ---- */
  .question-card {
    margin-top: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }

  .question-num {
    font-size: 12px;
    font-weight: 500;
    color: var(--green);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
  }

  .question-text {
    font-family: 'Faune', serif;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--text);
  }

  .options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .option-btn {
    background: #f5f5f3;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
    transition: all 0.18s ease;
    display: flex;
    gap: 9px;
    align-items: flex-start;
  }

  .option-btn:hover {
    border-color: var(--green);
    background: var(--green-light);
    color: var(--green-darker);
    transform: translateY(-1px);
  }

  .option-btn.selected {
    border-color: var(--green);
    background: var(--green-light);
    color: var(--green-darker);
    font-weight: 500;
  }

  .option-letter {
    font-family: 'Faune', serif;
    font-weight: 900;
    font-size: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green-mid);
    color: var(--green-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .option-btn.selected .option-letter {
    background: var(--green);
    color: #fff;
  }

  /* ---- NAV ---- */
  .nav-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
  }

  .btn-next {
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 11px 26px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s;
  }

  .btn-next:hover { background: var(--green-dark); }

  .btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    color: #888;
  }

  /* ---- RESULT ---- */
  #result-screen { display: none; }
  #result-screen.visible { display: block; }

  .result-image-wrap {
    width: 100%;
    max-width: 248px;
    margin: 1.5rem auto 1.5rem;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* box-shadow: 0 4px 24px rgba(0,0,0,0.10); */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .result-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Placeholder affiché si l'image est absente */
  .result-image-placeholder {
    font-size: 80px;
    line-height: 1;
    text-align: center;
  }

  .result-title {
    font-family: 'Faune', serif;
    font-size: 27px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.4rem;
    color: var(--text);
  }
  .result-subtitle{
    font-family: 'Faune', serif;
    font-size: 20px;
    font-weight: normal;
    font-style: italic;
    text-align: center;
    margin-bottom: 0.4rem;
    color: var(--text);
  }
  .result-tagline {
    text-align: center;
    font-size: 15px;
    color: var(--green);
    font-weight: 500;
    margin-bottom: 1.5rem;
  }

  .result-body {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }

  .result-desc {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 1.25rem;
  }

  .result-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.5rem;
  }

  .trait-pill {
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 13px;
    border-radius: 99px;
  }

  .btn-retry {
    width: 100%;
    background: transparent;
    border: 1.5px solid var(--green);
    color: var(--green);
    border-radius: var(--radius-md);
    padding: 11px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
  }

  .btn-retry:hover { background: var(--green-light); }

  /* ---- FOOTER ---- */
  .arcadie-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.03em;
  }

  /* ---- ANIMATION ---- */
  .fade-in {
    animation: fadeSlide 0.35s ease both;
  }

  @keyframes fadeSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ---- RESPONSIVE BREAKPOINTS ---- */
  
 
  /* Tablette et petit desktop */
  @media (max-width: 600px) {
    .quiz-header { padding: 1rem 0 0.5rem; }
  }
 
  /* Mobile */
  @media (max-width: 576px) {
    .options-grid { grid-template-columns: 1fr; }
    .nav-row { justify-content: stretch; }
    .btn-next { width: 100%; text-align: center; }
  }
 
  /* Très petit mobile */
  @media (max-width: 400px) {
    .question-card { padding: 0.875rem; }
    .result-body { padding: 0.875rem; }
  }
  
  @media (max-width: 992px) {
	  body{
		  min-height: auto;
	  }
	 .quiz-wrap{
		 padding: 1rem;
	 } 
	 .badge{
		position: relative;
		left: auto;
		text-align: center;
	 }
	 .badge img{
		margin: 30px auto;
	 }  
  }