/* ============================================================
   Pa_Capona_Reponse1.css
   FEN_Pa_Capona_Reponse1 — Réponses aux questions 1-8
   ─────────────────────────────────────────────────────────
   Fond     : img/IMG_4633.jpg via screen::before (plein écran)
   Layout flex-colonne (100dvh) :
     • .content-scroll   → flex:1, scrollable
         └ .zone-titre    → fond #73B100, texte blanc centré
         └ .reponse-zone  → fond rouge ou vert, texte blanc
                            margin-bottom laisse voir la photo
     • .bas-zone          → retour | lézard | coffre+score
   Couleurs :
     #E04E4F  rouge (réponses Faux)
     #73B100  vert  (réponses Vrai + titre)
============================================================ */

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #3a5a00;   /* fallback */
}

/* ============================================================
   ECRAN PRINCIPAL
   ::before → img/IMG_4633.jpg (couverture totale)
============================================================ */
.screen {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/IMG_4633.jpg');
  background-size: cover;
  background-position: center center;
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   ZONE DÉFILABLE
============================================================ */
.content-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.content-scroll::-webkit-scrollbar        { width: 4px; }
.content-scroll::-webkit-scrollbar-track  { background: transparent; }
.content-scroll::-webkit-scrollbar-thumb  { background: rgba(255,255,255,0.35); border-radius: 4px; }

/* ============================================================
   ZONE TITRE — fond #73B100, texte blanc centré
============================================================ */
.zone-titre {
  background: #73B100;
  text-align: center;
  padding: 12px 16px;
  margin-bottom: 2%;
  margin-top: 2%;
  margin-left: 3%;
  margin-right: 3%;
}

.titre-text {
  color: #ffffff;
  font-size: clamp(0.88rem, 3.8vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
}

/* ============================================================
   ZONES RÉPONSES — texte blanc, fond rouge ou vert
   margin-bottom laisse voir la photo entre les blocs
============================================================ */
.reponse-zone {
  padding: 10px 14px 10px 12px;
  margin-bottom: 2%;
  margin-left: 3%;
  margin-right: 3%;
}

.bg-rouge { background: #E04E4F; }
.bg-vert  { background: #73B100; }

.reponse-text {
  color: #ffffff;
  font-size: clamp(0.80rem, 3.5vw, 1.12rem);
  font-weight: 500;
  line-height: 1.42;
}

/* Lien externe dans une zone réponse — hérite de la couleur blanche */
.lien-ext {
  color: #0873f9;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255,255,255,0.25);
}

/* ============================================================
   ESPACE BAS du scroll
============================================================ */
.scroll-spacer {
  height: 72px;
}

/* ============================================================
   BARRE BAS : retour | lézard | coffre+score
============================================================ */
.bas-zone {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px 8px;
  background: rgba(0, 0, 0, 0.28);
}

.retour-img {
  height: clamp(36px, 8vh, 64px);
  width: auto;
  display: block;
  cursor: pointer;
  -webkit-user-drag: none;
  transition: transform 0.12s ease;
}
.retour-img:active { transform: scale(0.90); }

.lezard-img {
  height: clamp(46px, 10vh, 90px);
  width: auto;
  display: block;
  cursor: pointer;
  filter: drop-shadow(1px 2px 5px rgba(0, 0, 0, 0.40));
  -webkit-user-drag: none;
  transition: transform 0.12s ease;
}
.lezard-img:active { transform: scale(0.93); }

.score-zone {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.coffre-img {
  height: clamp(28px, 6vh, 48px);
  width: auto;
  display: block;
  -webkit-user-drag: none;
}

.points-box {
  background: #cc0000;
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(0.80rem, 2.8vw, 1.1rem);
  min-width: clamp(32px, 9vw, 58px);
  padding: 3px 6px;
  border-radius: 5px;
  text-align: center;
  line-height: 1.2;
  border: 2px solid #cc0000;
}

/* ============================================================
   OVERLAY DE TRANSITION (fondu noir)
============================================================ */
.transition-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 100;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.4s ease;
}

/* ============================================================
   RESPONSIVE — PORTRAIT ÉTROIT (≤ 360px)
============================================================ */
@media (max-width: 360px) {
  .titre-text,
  .reponse-text  { font-size: 0.8rem; }
  .zone-titre    { padding: 8px 10px; }
  .reponse-zone  { padding: 7px 10px; }
  .coffre-img    { height: 22px; }
  .points-box    { font-size: 0.68rem; min-width: 26px; }
  .lezard-img    { height: 36px; }
  .retour-img    { height: 28px; }
}

/* ============================================================
   RESPONSIVE — SMARTPHONES (375-430px, >= 700px)
============================================================ */
@media (min-width: 375px) and (max-width: 430px) and (min-height: 700px) {
  .titre-text,
  .reponse-text  { font-size: clamp(0.82rem, 3.6vw, 1.14rem); }
  .reponse-zone  { padding: 12px 14px; }
  .lezard-img    { height: clamp(48px, 9vh, 78px); }
}

/* ============================================================
   RESPONSIVE — TABLETTE (>= 600px)
============================================================ */
@media (min-width: 600px) {
  .titre-text,
  .reponse-text  { font-size: clamp(1.05rem, 3vw, 2rem); }
  .reponse-zone  { padding: 14px 18px; }
  .coffre-img    { height: clamp(34px, 6vh, 54px); }
  .lezard-img    { height: clamp(54px, 10vh, 80px); }
  .retour-img    { height: clamp(44px, 8vh, 70px); }
  .scroll-spacer { height: 90px; }
}

/* ============================================================
   RESPONSIVE — iPad 6 seul (768-1023px, 900-1199px)
============================================================ */
@media (min-width: 768px) and (max-width: 1023px) and (min-height: 900px) and (max-height: 1199px) {
  .titre-text,
  .reponse-text  { font-size: clamp(1.0rem, 2.5vw, 1.4rem); }
  .reponse-zone  { padding: 16px 20px; }
  .lezard-img    { height: clamp(54px, 10vh, 80px); }
  .reponse-zone {
  margin-bottom: 1%;
}
}

/* ============================================================
   RESPONSIVE — Galaxy Tab A8 + iPad Pro (>= 768px, >= 1200px)
============================================================ */
@media (min-width: 768px) and (min-height: 1199px) {
  .titre-text,
  .reponse-text  { font-size: clamp(1.05rem, 3vw, 2rem); }
  .reponse-zone  { padding: 18px 22px; margin-bottom: 3%; }
  .zone-titre    { padding: 16px 22px; margin-bottom: 3%; }
}

/* ============================================================
   RESPONSIVE — PAYSAGE MOBILE (hauteur ≤ 430px)
============================================================ */
@media (max-height: 430px) and (orientation: landscape) {
  .titre-text,
  .reponse-text  { font-size: 0.52rem; line-height: 1.3; }
  .zone-titre    { padding: 4px 8px; margin-bottom: 1%; }
  .reponse-zone  { padding: 4px 8px; margin-bottom: 1%; }
  .bas-zone      { padding: 2px 10px 3px; }
  .coffre-img    { height: 18px; }
  .points-box    { font-size: 0.58rem; min-width: 20px; padding: 1px 3px; }
  .lezard-img    { height: 28px; }
  .retour-img    { height: 22px; }
  .scroll-spacer { height: 40px; }
}
