/* ==========================
   Styles globaux
   ========================== */
body {
    font-family: Verdana, sans-serif;
    /* (garde ta dernière version) */
    background-color: white;
    background-size: auto;
    line-height: 1.5;
    text-align: center !important;
    margin: 0;
    padding: 0;

    /* Scrollbar Firefox */
    scrollbar-width: auto;
    scrollbar-color: yellow beige;
}

html,
body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ==========================
   Container
   ========================== */
.container {
    background-color: lightyellow;
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

    /* tu l’avais en bas */
    margin-left: 10px;
    margin-right: 10px;
}

/* ==========================
   Boutons / réponses (si tu les utilises)
   ========================== */
.question-btn {
    width: 100%;
    height: 40px;
    background-color: lightyellow;
    color: black;
    font-size: 18px;
    border: 2px solid black;
    cursor: pointer;
    margin: 5px 0;
    border-radius: 5px;
}

.question-btn:hover {
    background-color: #e0e0e0;
}

.response {
    margin: 10px 0;
    font-size: 18px;
    color: #333;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Fond jaune clair */
.background-lightyellow {
    background-color: lightyellow;
    font-size: 16px;
    width: 100%;
    text-align: center !important;
    padding: 10px;
    border: none;
    display: inline-block;
    margin: 10px 0;
    border-radius: 5px;
    line-height: 1.5;
}

/* ==========================
   Typo / contenus
   ========================== */
.text-large {
    font-size: 4vw;
}

.text-container {
    text-align: center !important;
}

.text-container h4 {
    margin-bottom: 20px;
    font-size: 24px;
}

.text-container p {
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.5;
}

#citation {
    font-size: 35px;
    text-align: center !important;
    color: #000;

    max-width: 800px;   /* largeur maximale */
    margin: 20px auto;  /* centre horizontalement */

    line-height: 1.4;




}
#citation {
    padding-top: -240px;
    margin-bottom: 10px;
}

#boutons {
    margin-bottom: 40px;
}

#new1 {
    margin-bottom: 30px;
}

.nb-delires{
  margin-top: -70px !important;
}


#boutons {
    margin-bottom: 40px;
}

#new1 {
    margin-bottom: 30px;
}

.textes {
    font-size: 30px;
     padding-top: -240px;
    margin-bottom: 50px

}


/* Cache le rond (radio) mais garde le clic via le label */
.nb-delires input[type="radio"]{
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}


.spaces {
    font-size: 20px;
}

h2 {
    margin: 0;
    padding: 0;
    height: 60px;
    line-height: 60px;
    text-align: center !important;
    font-size: 24px;
}

/* ==========================
   Liens / menus
   ========================== */
.menu-link {
    font-size: 1.8rem;
}

.menu-blink {
    text-decoration: none;
    color: red;
    font-weight: bold;
    font-size: 1.8rem;
}

.menu-lien {
    color: white;
    font-size: 24px;
}

.menu {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* ==========================
   Layout helpers
   ========================== */
.centered {
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column;
    margin-top: 50px;
}

.center-table {
    width: 45%;
    margin: 0 auto;
}

.centered-table {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.image-container {
    text-align: center !important;
    width: 60%;
}

.centered-content {
    width: 60%;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Note: tu avais aussi .centered-content { width: 950px } plus bas.
   Je ne le garde pas car ça contredit width:60%. Si tu veux 950px fixe, dis-moi. */

/* ==========================
   Images / canvas
   ========================== */
.gallery-image {
    width: 80%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

#canvas {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* ==========================
   Questions (ta police spécifique)
   ========================== */
#mon_texte_questionUn,
#mon_texte_questionDeux,
#mon_texte_questionTrois,
#mon_texte_questionQuatre,
#mon_texte_questionCinq,
#mon_texte_questionSix,
#mon_texte_questionSept,
#mon_texte_questionHuit,
#mon_texte_questionNeuf {
    font-size: 40px;
}

#mon_texte_questionDix {
    font-size: 34px;
}

/* ==========================
   Scrollbar (WebKit)
   ========================== */
::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-thumb {
    background-color: yellow;
    border-radius: 10px;
    border: 5px solid black;
}

::-webkit-scrollbar-track {
    background-color: white;
    border-radius: 10px;
}

/* ==========================
   Description / texte justifié
   ========================== */
.titre-theme3b,
#description {
    text-align: justify;
    max-width: 950px;
    margin: 0 auto;
}

.image-description {
    max-width: 950px;
    text-align: justify !important;
}

.titre-noir5 {
    text-align: center !important;
    font-size: 30px;
    width: 850px;
    max-width: 1200px;
}

.left {
    text-align: left;
    font-size: 30px;
}

.lift {
    text-align: justify;
}

.label,
.nums {
    font-size: 30px;
}

/* Centrage de la description */
#image-description {
    direction: ltr !important;
    text-align: center !important;
    display: block !important;
    max-width: 900px !important;
    margin: 15px auto 0 !important;
    float: none !important;
    white-space: normal !important;
}

/* ==========================
   Décalage mobile
   ========================== */
@media (max-width: 768px) {
    .shift-left {
        margin-left: -30px;
    }

    .container {
        padding: 10px;
    }
}

/* ==========================
   Responsive (tu avais des doublons)
   ========================== */
@media (max-width: 767px) {
    .question-btn {
        font-size: 16px;
    }

    .response {
        font-size: 16px;
    }

    .text-container h4 {
        font-size: 20px;
    }

    .text-container p {
        font-size: 14px;
    }

    .menu-link {
        font-size: 1.5rem;
    }

    .gallery-image {
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .question-btn {
        font-size: 18px;
    }

    .response {
        font-size: 18px;
    }

    .text-container h4 {
        font-size: 24px;
    }

    .text-container p {
        font-size: 16px;
    }

    .menu-link {
        font-size: 1.8rem;
    }

    .gallery-image {
        max-width: 90%;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1000px;
    }

    .question-btn {
        font-size: 20px;
    }

    .response {
        font-size: 50px;
    }

    .text-container h4 {
        font-size: 28px;
    }

    .text-container p {
        font-size: 18px;
    }

    .menu-link {
        font-size: 2rem;
    }

    .gallery-image {
        max-width: 100%;
    }
}

/* ==========================
   Ton fix (bandes jaunes plus étroites)
   ========================== */
input[type="button"][name^="question"] {
    width: min(80%, 1000px) !important;
    display: block !important;
    margin: 12px auto !important;
}

div[id^="mon_texte_question"] {
    width: min(80%, 1000px);
    margin: 8px auto 18px;
    text-align: center;
}

/* ==========================
   Exemple (corrigé)
   ========================== */
.example {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}


/* --- SYMPOP : image 40% (desktop) + responsive --- */
#image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* L’image affichée */
#canvas {
    width: clamp(320px, 40vw, 1600px);
    /* ~40% écran, max 1600px */
    height: auto;
    display: block;
    cursor: pointer;
    /* indique qu’on peut cliquer */
    user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-y;
    /* autorise le scroll vertical, mais on gère le swipe horizontal */
}

/* Sur mobile : plus large (sinon trop petite) */
@media (max-width: 768px) {
    #canvas {
        width: 92vw;
    }
}


/* =========================
   SYMPOP - ZONES CLIC + ZOOM
   ========================= */

#image {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y; /* autorise le scroll vertical, mais on gère le swipe horizontal */
}

#canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  cursor: pointer;
  -webkit-user-drag: none;
  user-select: none;
}

/* état zoom */
#canvas.is-zoomed {
  cursor: grab;
}
#canvas.is-zoomed:active {
  cursor: grabbing;
}

/* petites aides visuelles optionnelles (tu peux enlever si tu veux) */
#image::before,
#image::after {
  content: "";
  position: absolute;
  top: 0;
  width: 22%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
}
#image::before { left: 0; }
#image::after  { right: 0; }
#image:hover::before,
#image:hover::after {
  opacity: 0.10; /* juste un hint */
}