:root {
   --maxW: 900px;
   --minW: 800px;
   --blue: #56739A;
   --txte: #00184D; /*#424242;*/

}

/* ======================================================
   BASE GLOBALE
====================================================== */
* {
  color: var(--txte); 
  box-sizing: border-box;
}
body {
  background-color: #FDFDFD;
  font-family: Calibri, Arial, sans-serif;
  font-size: 0.9em;
  max-width:  var(--maxW);
  min-width:  var(--minW);
  margin: auto;
}

/* ======================================================
   PRINT
====================================================== */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .cadre {
    border: 2px solid #FF4500 !important;
    overflow: visible;
    margin: 0 auto;
  }
}
/* ======================================================
   TITRES & SEPARATEURS
====================================================== */
h1, h2 {
  margin: 15px;
  padding: 0;
  text-align: center;
}
h1 { color: #006300; }

h4 {
  margin: 1px 5px;
  padding: 0;
  text-align: left;
}

hr {
  border: none;
  border-top: 1px solid #848484;
}
.special-hr {
  border-top-style: dashed;
}
#version {
  font-style: italic;
  font-size: 0.8rem;
  margin-top: 0;
padding:0;
}

.section-title {
 align-self: flex-start;   /* CLÉ */
 display: inline-block;   
 position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -8px;
  bottom: 0;
  height: 1px;
  background-color: var(--txte); 
  border-radius: 2px;
}
/* ======================================================
   TABLEAUX
====================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th, td {
  padding: 2px;
  border-bottom: 1px solid black;
  text-align: left;
  word-break: break-word;
}

thead th {
  background-color: #D6D6D6;
  border-top: 1px solid black;
}

/* Colonnes centrées */
:is(th, td):nth-child(4),
:is(th, td):nth-child(5),
:is(th, td):nth-child(6),
:is(th, td):nth-child(8) {
  text-align: center;
}

/* Colonne 2 en valeur */
:is(th, td):nth-child(3),
:is(th, td):nth-child(2) {
  font-weight: bold;
  font-style: italic;
}

/* ======================================================
   BOUTONS
====================================================== */
.no-bold { font-weight: normal; }

.btn, button {
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.20);       
}

.btn-disabled {
  background: repeating-linear-gradient(
    45deg,
    #C4C4C4,
    #FFFFFF 5px,
    #C4C4C4 10px
  );
  color: #969696;
  border-color: #fff;  
}

/* ======================================================
   CONTENEURS PRINCIPAUX
====================================================== */
#main {
  margin-left: auto;
  margin-right: auto;  
  width: 100%;
  max-width:  var(--maxW);
  min-width:  var(--minW);
}

/* ======================================================
   CADRES
====================================================== */
.cadre,
.cadre_p1,
.cadre_p2,
.cadre_p3,
.infosq_p2 {
  background-color: #F2F2F2;
  border: 1px solid #848484;
  border-radius: 10px;
  margin: 12px auto 10px;
  padding: 6px 10px;
}

.cadre,
.cadre_p2,
.infosq_p2 {
  max-width:  var(--maxW);
  min-width:  var(--minW);
  height: 100%;
}

.cadre,
.cadre_p3 {
  text-align: left;
  font-weight: normal;
}

/* Spécifique infos page 2 */
.infosq_p2 {
  background-color: #EDEDED;
  color: #002F2F;
}

/* ======================================================
   PAGE 1 – DEUX CADRES
====================================================== */
.selth,
.selnbqt {
  float: left;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 15px;
  box-shadow: 
    0 -2px 6px rgba(0,0,0,0.15),
    0 10px 20px rgba(0,0,0,0.20);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.selth   { width: 55%; }
.selnbqt { width: 44%; margin-left: 1%; }

.opt-nbqt {
  display: block;
  line-height: 1;
  margin: 2px 0;
}

input[type="radio"] {
   margin: 2px 6px 0 0;
}             

/* ======================================================
   LISTE DE QUESTIONS
====================================================== */
#introTxt {
  margin: 10px auto;
  padding: 10px;
  width: 650px;
  text-align: left;
}

.listqtv { text-align: left; }

.printQt {
  width: 650px;
  margin: 6px auto;
  padding: 0 10px;
  border: 1px solid #848484;
  border-radius: 10px;
  font-family: monospace;
  font-size: 14px;
  overflow: auto;
}
.printQt.vt {
    border-color: green;
    background-color: #f2fbf2;
}

.printQt.rg {
    border-color: red;
    background-color: #fdf2f2;
}
/* ======================================================
  IMAGE DES QUESTIONS
====================================================== */

.image {  max-width: 100%;}
.img-right {  float: right;}
.img-center {
  display: block;
  margin: 0 auto;
}

/* ======================================================
   ZONES D’ACTIONS
====================================================== */
#actions,
#tactions,
#actionslst {
  background-color: #F2F2F2;
  color: #17672a;
  margin: 10px auto;
  text-align: left;
  
}

#actions,#btactions,
#tactions {
  border-bottom: 1px solid #848484;
}

#actions,#btactions {
  padding: 5px;
  max-width:  var(--maxW);
  min-width: 750px;
  margin-top:20px;
}

#btactions { 
  border-top: 1px solid #848484;
    background-color: #E6E6E6;
 }
 
#tactions {
  padding: 6px 0 10px; 
}

#actionslst {
  padding: 10px;
  max-width: 680px;
  min-width: 680px;
}

/* ======================================================
   BOUTONS ALIGNES
====================================================== */
.bt-ligne {
  display: flex;
  align-items: center;  
}

.zone { flex: 1; }
.zone.gauche  { text-align: left; }
.zone.centre  { text-align: center; }
.zone.droite  { text-align: right; }
.zone.extra1,
.zone.extra2 { text-align: center; }

/* ======================================================
   QUIZ
====================================================== */
.qtTxt {
  margin: 0;
  padding-bottom: 12px;
}

/* Champs */    
.repfield {
  display: inline-block;
  font-family: Verdana, Arial, sans-serif;
  border: 1px solid gray;
  border-radius: 4px;
  text-align: center;
}

.chpsta {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid black;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 0.4em;
}

/* Radios */
.radio-label {
  margin-right: 20px;
  cursor: pointer;
  display: inline-block;
  
}

.r-bt,
.c-bt {
  position: relative;
  vertical-align: middle;
  margin: 1px 0;
  padding: 0;
  line-height: 1.2;
}

/* ======================================================
   HEADER / LOGO
====================================================== */
#header {
  width: 100%;
  height: 110px;
  position: relative;
  background-image: url(../img/banner/banner.png);
  background-repeat: repeat-x;
  background-position: center top;
}

#logo {
  position: absolute;
  left: 20px;
  top: 0;
  width: 300px;
  height: 100%;
  background-image: url(../img/banner/metrie.png);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}
#logo2,#logo3,#logo5 {
  position: absolute;
  right: 20px;
  top: 0;
  width: 300px;
  height: 100%;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
}
#logo2 {
  background-image: url(../img/banner/quiz.png);
}
#logo3 {
  background-image: url(../img/banner/result.png);
}
#logo5 {
  background-image: url(../img/banner/explor.png);
}

/* ======================================================
   INFOS
====================================================== */
#info_note,
#info_bareme {
  float: right;
  padding: 0 7px;
  background: #fff;
  color: #A4A4A4;
  text-align: center;
  line-height: 1.4;
}

#info_note {
  border: 1px solid #848484;
  border-radius: 5px;
}

.info_p2,
.info_p2bis {
  color: #980000;
  font-weight: bold;
}

.infoth_p2 {
  color: #787980;
  font-style: italic;
}

/* ======================================================
   AIDE
====================================================== */
p.aide:first-of-type {
  margin-bottom: 20px;
}

/* ======================================================
   TIMER
====================================================== */
#zone_timer {
  float: left;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
}

#timer {
  font-size: 1em;
  color: #828F75;
  margin-bottom: 20px;
}

#img_timer {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  pointer-events: none;
}

.chrono {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  
  bottom: 8px;
}

.aiguille {
  position: absolute;
  bottom: 50%;
  left: 48%;
  width: 2px;
  height: 12px;
  background: red;
  transform-origin: bottom center;
  transition: transform 1s linear;
}

/* ======================================================
   LISTE CONDUITE
====================================================== */
ul.conduite { overflow-x: hidden; }

ul.conduite li:before {
  float: left;
  width: 0;
  white-space: nowrap;
  content:
    ". . . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . . ";
}

ul.conduite span:first-child {
  padding-right: 0.5em;
  background: white;
}

ul.conduite span:last-child {
  float: right;
  padding-left: 0.5em;
  background: white;
  color: blue;
  text-decoration: underline;
}


/* ======================================================
   COOKIE
====================================================== */
#cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80%;
  max-width:  var(--maxW);
  background: #222;
  color: white;
  padding: 5px;
  font-size: 0.9em;
  z-index: 1000;
}

#cookie-banner button {
  padding: 2px 5px;
  background: #B8AFAE;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 12px;
}

#cookie-banner a {
  color: #ffcc00;
  text-decoration: underline;
}

#cookie-banner a:hover   { color: #fff176; }
#cookie-banner a:visited { color: #ffb300; }

/* ======================================================
   RECORD (defaut valeurs)
====================================================== */
#record {
  text-align: center;
  font-weight: bold;
  margin: 0;
  color: white;
  background: #CF8A7A; /* red*/
}
/* ======================================================
   NAVIGATION
====================================================== */

#main-nav {
  max-width: var(--maxW);
  color: var(--blue); 
  background: var(--white);
  margin: 0 auto;          
  text-align: left;    
  font-size: 1rem;
  padding: 6px 0px 6px 0px;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.15);
}

#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0px;                    /* moins d espace entre liens */
}

#main-nav ul li a {
  color: var(--blue);           /* couleur discr te (bleu personnalis ) */
  text-decoration: none;
 text-align: center;
  font-style: italic;
  padding: 0px 8px;
  border-radius: 5px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}
#main-nav img {
    vertical-align: middle; /* Aligne verticalement l'image avec le texte */
    width: 14px; /* taille petite */
    height: 14px;
    margin: 0 4px; 
  }
#main-nav ul li a:hover {
  background-color: rgba(0, 0, 255, 0.1); /* l ger survol bleu clair */
}

/* ======================================================
   A PROPOS
====================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
#closeAbout {
  background-color: white;
  color: red;           
  font-weight: bold;
  border: 1px solid red; 
  padding: 1px 3px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
}

.modal-content p {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}
.about-table {
  width: 400px;
  border-collapse: collapse;
}

.about-table th,
.about-table td {
  padding: 2px 2px;
  text-align: left;
  font-style: normal;
  font-weight: normal;
}

.about-table th {
  font-weight: bold;
}
.about-table td:nth-child(1) {
  font-weight: bold;
}


