/* 
    file:  style.css
    author: Nicolas VANNSON (hello@memau.eu)
    author: Paul APTEL (hello@memau.eu)
    version: 1.0
    date: 25-06-2025
    Licence: EUPL v1.2
    détails: Fichier style.css pour l'ensemble des questionnaires .html qui sont présent sur 
    MEMAUDATA.
*/

/* Body */
body {
    /*font-family: Rethink Regular, sans-serif; Wordpress divi font */
    color: black;
}

h1,h2,h3,h4,p {
    text-align: center;
}

/* table*/
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #eeeeee;
}

th, td {
    padding: 5px;
    text-align: center;
    border: 1px solid #eeeeee;
    color:black !important;
}

th {
    background-color: #eeeeee;
    color: black;
  }

tr:hover {
    background-color: #e0f2f1; /* Light hover effect */
}

.Error_message_not_all_answered {
    color: #2B176C; 
    text-align: center;
    align-items: center; 
  }


/* Inputs */
input[type="radio"],
input[type='range'],
input[type='checkbox'] {
    accent-color: #2B176C;
}

input[type="radio"] {
    margin: 5px;
}


/* Sliders options */
.slider {
    width: 100%;
    height: 10px;
    border-radius:5px; 
    outline: 0;
    background : #eeeeee; 

}

.slider:hover {
    opacity: 2;
}

.slider-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    margin-bottom: 20px;
    font-size: 6px;
}

/* NaN question for SSQ...*/
.na-checkbox {
    text-align: center;
    width: 110px;

  }


/* buttons */
.buttons-container {
    text-align: center;
    margin-top: 30px;
    
}
.buttons-container button {
    padding: 12px 25px;
    margin: 0 10px;
    font-size: 17px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #eeeeee;

}

.buttons-container button:hover {
    background-color: #2B176C; /* MEMAUDATA color theme*/
    color : white;
}

@media (max-width: 834px) {
    .buttons-container button {
      margin: 8px 14px; /* un peu plus d'air qu'en desktop (10px) */
    }
  }

@media (max-width: 480px) {
    .buttons-container button {
      display: block;      
      width: 100%;
      max-width: 280px;
      margin: 8px auto;  
    }
  }
  

/* results section */
#results { 
    text-align: center;
    font-size: 17px;
    margin-top: 40px;
    border: 1px solid #eeeeee;
    background-color: #eeeeee;
    display: none;
    border-radius: 5px;
    padding: 15px;
}

ul.myList {
    display: inline-block;
    text-align: left;
}

/* Buttons within the results section */
#savePdfButton, 
#saveXLSbutton {
    padding: 12px 25px;
    margin-top: 15px; 
    font-size: 17px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #2B176C; 
    color: white; /* White text */
    display: none; /* Hidden by default */
  }
  
  /* To choose a green or a color */
  #savePdfButton:hover, #saveXLSbutton:hover {
    background-color: #02884d ; /*#055033; /*#10471c;/* /* Darker blue on hover */
  }

/* Name ID within the results section */

.Subject_name {
    margin-top: 20px; 
    font-size: 17px;
}


/* -- Combine/Compare -- */
.drag_n_drop {
    box-sizing: border-box; 
    background-color: #2B176C;
    border-radius: 20px;
    width: 600px;
    max-width: 90%;         
    height: 300px;
    text-align: center;
    padding: 50px;
    margin: 20px auto;
    color: white;
  }
  .drag_n_drop.highlight {
    border-color: purple;
  }
  
  /* Tablette (≈481–834px */
  @media (max-width: 834px) {
    .drag_n_drop {
      width: 500px;
      padding: 36px;
    }
  }
  
  /* Mobile (≤480px) */
  @media (max-width: 480px) {
    .drag_n_drop {
      height: auto;         
      min-height: 180px;
      padding: 24px;
      font-size: 12px;
    }
  }


/* Specific style for each questionnaires */
/* --- ACOUPHENES --- */

.Question_Bahia,
.Question_Khalfa,
.Question_miniHQ9,
.Question_Nelting,
.Question_THI,
.Question_MASH{
    text-align: left; 
}

/* BAHIA */
.Réponses_Bahia {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 25px;
}

.bahia_small_table {
    width: 30%;
    border-collapse: collapse;
    margin: auto;
    border: 1px solid #eeeeee;
}


/* THI */
.Answer_THI{
    display: flex;
    align-items: center;
}

/* M.A.S.H. */
.MASH_scale {
    display:flex; 
    justify-content:space-between;
    flex-wrap: wrap;
    gap: 8px;
}


/* --- AUTRES --- */
.Question_EHI,
.Question_GAI,
.Question_HHIE,
.HADS_question,
.ZARIT_question {
    text-align: left; 
}



/* EHI */
.EHI_menu{
    width:250px;
    padding:5px;
    border: 1px solid #eeeeee;
    background-color: #eeeeee;
    color: black !important;
    font-size: 15px !important;
}

/* HHIE-S */
#HHIE-S tr:nth-child(odd) {
    background-color: #eeeeee;
  }

/* HADS */
.HADS_question_reponses {
    display: flex;
    flex-direction: column;
    text-align: left;
  }

#HADS input[type="radio"] {
    margin-right: 5px;
    margin-left: 40px;
    margin-top:10px;
}
 
/* QSCPGS */
.consignes_QSCPGS {
    text-align: center;
    list-style-position: inside;

  }
ol.my_QSCPGS {
    display: inline-block;
    text-align: left;
  }

#QSCPGS_radio-col {
    width: 15px;
    text-align: center;
    padding: 2px
}  

#QSCPGS td input[type="radio"] {
    margin: 0 auto; /* Center the radio button */
    display: block; /* Make it a block element to allow margin auto */
    width: 16px; /* Standard size, you can make it smaller if needed */
    height: 16px;
  }

/* RSES */
.RSES_answers {
    display: flex;
    justify-content: space-around;
}
#RSES tr:nth-child(odd) {
    background-color:#eeeeee;
  }

/* SADL */
#SADL {
    max-width: 950px;
    margin: 0 auto; 
  }
  
.SADL_question {
    text-align: left;
    margin-bottom: 10px;
    margin-top: 10px;
}
.SADL_scale {
    display:flex; 
    justify-content:space-between;
}

.SADL_words {
    display:flex; 
    justify-content:space-between;
    margin-bottom: 15px;
}

/* Case « non concerné(e) » (items 11 et 14) */
.SADL_na {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.SADL_small_radio_input {
    display: flex;
    flex-direction: column;
    text-align: left;


}

#SADL input[type="radio"] {
    margin-right: 5px;
    margin-left: 40px;
    margin-top:10px;
}


/* --- PREMS --- */
/* For all SSQ versions */ 
.Consignes_SSQ {
    text-align: left;
}
.Question_SSQ {
    text-align: left;
    max-width: 400px;
    width: 400px;
    word-break: break-word;
    vertical-align: top; 
}
.SSQ_answer {
    display:flex; 
    justify-content:space-between;
}

/* GHABP */
.Question_GHABP {
    max-width: 960px;
    text-align: left;
    background-color: #eeeeee;
}

.Small_question_GHABP {
    word-break: break-word;
    vertical-align: top; 
}

.GHABP_answer {
    width: 160px;  
    display: flex;
    flex-direction: column;
    text-align: left;
    word-break: break-word;
    vertical-align: top; 
    font-size: 12px;
}

#GHABP input[type="radio"] {
    margin-left: 5px;
}

/* IOIHA  */
.IIPBAA_question {
    text-align: left;
}

.IIPBAA_answer {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin-left:100px;
}

/* --- PROMS --- */
.Question_GBI {
    text-align: left; 
}

.Question_GHSI {
    text-align: left;
    background-color: #eeeeee;
}

.Answer_GHSI {
    display: flex;
    justify-content:space-between;

}

.Question_SF36 {
    text-align: left;
}
#SF36 th {
    background-color: #eeeeee;
  }




/* --- OUTILS : arbres de décision (Aide au choix prothétique, Aides complémentaires) --- */
.Aide_step {
    font-size: 13px;
}

.Aide_card,
.Aide_question {
    max-width: 800px;
    margin: 15px auto;
    padding: 15px;
    border: 1px solid #eeeeee;
    border-radius: 5px;
}

.Aide_card {
    background-color: #eeeeee;
}

.Aide_card h3,
.Aide_card h4,
.Aide_card p {
    text-align: left;
}

.Aide_card p {
    white-space: pre-line;
}

.Aide_card a {
    color: #2B176C;
    word-break: break-all;
}

.Aide_question legend {
    font-weight: bold;
    white-space: pre-line;
    text-align: left;
}

.Aide_question label {
    display: flex;
    align-items: flex-start;
    padding: 4px 0;
    text-align: left;
}

.Aide_invalid {
    border-color: #2B176C;
}

.Aide_figure {
    text-align: center;
    margin: 15px auto;
}

.Aide_figure img {
    max-width: 100%;
    height: auto;
}

.Aide_summary section {
    border-top: 1px solid #ffffff;
    padding: 10px 0;
}

.Aide_answer {
    font-size: 15px;
}

/* --- OUTILS : créateur de formulaires (formulaire.html) --- */
.Fc {--ink:#1d2433; --muted:#6b7385; --line:#d9dde6; --accent:#2B176C; --bg:#f3f4f7; --danger:#c0392b;}
.Fc, .Fc * {box-sizing:border-box;}
.Fc {margin:0; background:var(--bg); color:var(--ink); font:15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;}
.Fc .toolbar {position:sticky; top:0; z-index:10; display:flex; flex-wrap:wrap; gap:6px; align-items:center; padding:8px 12px; background:#fff; border-bottom:1px solid var(--line);}
.Fc .toolbar button,
.Fc .tab {font:inherit; font-size:14px; padding:6px 10px; border:1px solid var(--line); background:#fff; border-radius:6px; cursor:pointer;}
.Fc .toolbar button:hover {background:#f0edf8; border-color:var(--accent);}
.Fc .toolbar .primary {background:var(--accent); color:#fff; border-color:var(--accent);}
.Fc .toolbar .primary:hover {background:#1d0f4d;}
.Fc .brand {font-weight:600; margin-right:6px;}
.Fc .tabs {display:inline-flex; margin-right:8px;}
.Fc .tab {border-radius:0;}
.Fc .tab:first-child {border-radius:6px 0 0 6px;}
.Fc .tab:last-child {border-radius:0 6px 6px 0; border-left:none;}
.Fc .tab.active {background:var(--ink); color:#fff; border-color:var(--ink);}
.Fc .sep {width:1px; height:22px; background:var(--line); margin:0 4px;}
.Fc .sp {flex:1;}
.Fc.mode-edit .only-fill,
.Fc.mode-fill .only-edit {display:none !important;}
.Fc.mode-edit #fillView,
.Fc.mode-fill #editView {display:none;}
.Fc .page {max-width:820px; margin:18px auto 60px; padding:0 12px;}
.Fc .card {background:#fff; border:1px solid var(--line); border-radius:8px; padding:12px 14px; margin-bottom:10px;}
.Fc .card.q {margin-left:18px; border-left:3px solid var(--accent);}
.Fc .row {display:flex; gap:6px; align-items:center; margin-bottom:8px;}
.Fc .lbl {display:block; font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); margin:6px 0 2px;}
.Fc #editView input[type=text],
.Fc #editView input[type=number],
.Fc #editView textarea,
.Fc #editView select {width:100%; font:inherit; padding:6px 8px; border:1px solid var(--line); border-radius:6px; background:#fff;}
.Fc #editView select {width:auto;}
.Fc #editView textarea {resize:vertical;}
.Fc #editView input:focus,
.Fc #editView textarea:focus,
.Fc #editView select:focus {outline:2px solid rgba(43,23,108,.3); border-color:var(--accent);}
.Fc .stitle {font-size:17px !important; font-weight:600;}
.Fc .grid {display:grid; grid-template-columns:repeat(3,1fr); gap:6px 10px; margin-top:6px;}
.Fc .grid.two {grid-template-columns:1fr 1fr;}
.Fc .chk {display:inline-flex; gap:6px; align-items:center; margin-top:8px; font-size:14px; color:var(--muted); cursor:pointer;}
.Fc .mini {font:inherit; font-size:13px; padding:3px 8px; border:1px solid var(--line); background:#fff; border-radius:5px; cursor:pointer;}
.Fc .mini:hover {background:#f0edf8; border-color:var(--accent);}
.Fc .mini.danger:hover {background:#fdeaea; border-color:var(--danger); color:var(--danger);}
.Fc .addq {margin:0 0 18px 18px;}
.Fc .help {color:var(--muted); font-size:13px; margin:0 0 12px;}
.Fc #fillView {background:#fff; padding:18mm; box-shadow:0 2px 14px rgba(0,0,0,.12); min-height:260mm; font-family:Georgia, "Times New Roman", serif;}
.Fc #fillView h1 {font-size:25px; margin:0 0 6px; line-height:1.25;}
.Fc #fillView h2 {font-size:18px; color:var(--accent); margin:22px 0 8px; padding-bottom:3px; border-bottom:1px solid var(--line);}
.Fc .desc {color:var(--muted); margin:0 0 12px; white-space:pre-wrap;}
.Fc .pat {display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:8px 16px; padding:10px 0 14px; margin-bottom:6px; border-bottom:2px solid var(--ink); font-family:system-ui, sans-serif; font-size:14px;}
.Fc .pat label {display:block; font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted);}
.Fc .pat .hint {grid-column:1/-1; font-size:12px; color:var(--muted); margin:0;}
.Fc #fillView input[type=text],
.Fc #fillView input[type=number],
.Fc #fillView input[type=date],
.Fc #fillView textarea,
.Fc #fillView select {width:100%; font:inherit; font-family:system-ui, sans-serif; padding:6px 8px; border:1px solid var(--line); border-radius:5px; background:#f9fafc;}
.Fc #fillView textarea {resize:none; overflow:hidden; min-height:3.2em;}
.Fc #fillView select {width:auto; min-width:14em;}
.Fc .fq {margin:0 0 16px; break-inside:avoid; font-family:system-ui, sans-serif;}
.Fc .ql {font-weight:600; margin-bottom:5px; font-family:Georgia, "Times New Roman", serif; font-size:16px;}
.Fc .ql .req {color:var(--danger); margin-left:3px;}
.Fc .ql .none {color:var(--muted); font-style:italic; font-weight:normal;}
.Fc .opt {display:flex; gap:8px; align-items:center; padding:2px 0; cursor:pointer;}
.Fc .opt input {width:16px; height:16px; margin:0; accent-color:var(--accent);}
.Fc .rng {display:flex; gap:10px; align-items:center;}
.Fc .rng input {flex:1; accent-color:var(--accent);}
.Fc .rng .e {color:var(--muted); font-size:13px; min-width:3em;}
.Fc .rng .e:last-of-type {text-align:right;}
.Fc .rng output {min-width:2.5em; text-align:center; font-weight:700; color:var(--accent);}
.Fc .rng.untouched input {accent-color:#b5bbc9;}
.Fc .rng.untouched output {color:var(--muted); font-weight:normal;}
.Fc .clr {margin-top:3px; font-size:12px; color:var(--muted); background:none; border:none; padding:0; cursor:pointer; text-decoration:underline;}
@page {size:A4; margin:16mm;}
@media print {
.Fc {background:#fff;}
.Fc .toolbar,
.Fc #editView,
.Fc .clr,
.Fc .pat .hint {display:none !important;}
.Fc #fillView {display:block !important; box-shadow:none; padding:0; min-height:0;}
.Fc #fillView input[type=text],
.Fc #fillView input[type=number],
.Fc #fillView input[type=date],
.Fc #fillView textarea,
.Fc #fillView select {background:#fff;}
.Fc .page {max-width:none; margin:0; padding:0;}
.Fc h2 {break-after:avoid;}
}
.Fc h1, .Fc h2, .Fc h3, .Fc h4, .Fc p { text-align: left; }
.Fc .toolbar .tab.active:hover { background:var(--ink); color:#fff; border-color:var(--ink); }