/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/


/* =Theme customization starts here
------------------------------------------------------- */
button.wpcf7-form-control.wpcf7-submit {
    right: 0;
    position: absolute;
}
p.width100 {
    display: block !important;
    width: 100% !important;
}

p.width100 label {
    width: 100% !important;
}
.et_pb_button {
    padding: 15px 30px !important;
}
header#main-header {
/*     display: none !important; */
}
#page-container {
    padding-top: 0px !important;
}
.jobform input[type='tel'], .jobform input[type='text'], .jobform input[type='email'], .jobform textarea {
    width: 100%;
    padding: 16px;
    border-width: 0;
    border-radius: 0;
    color: #999;
    background-color: #f8f8f8;
    font-size: 14px;
    -webkit-appearance: none;
    border-color: #FFFFFF;
}
@media screen and (min-width: 782px) {
.jobform label {
    width: 49%;
    margin-bottom: 30px;
	display: block;
}

.jobform div p {
    display: flex;
    justify-content: space-between;
}
}
@media screen and (max-width: 782px) {
.jobform div p {
    padding-bottom: 0px;
}
.jobform label {
    margin-bottom: 20px;
}
}






#registerform .acf-user-register-fields.acf-fields , #registerform h2{
    display: none !important;
}


/**/




.entry-title.main_title {
  text-align: center;
  margin-bottom: 1rem;
}

.entry-content .tml {
  max-width: 520px;
  margin: 32px auto;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 28px;
  color: #16334d;
}

/* Formulaires */
.tml form {
  margin: 0;
}

/* Groupes de champs */
.tml .tml-field-wrap {
  margin-bottom: 16px;
}

/* Labels */
.tml .tml-label {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--tml-text);
}

/* Inputs / selects */
.tml .tml-field,
.tml input[type="text"],
.tml input[type="email"],
.tml input[type="password"],
.tml input[type="url"],
.tml input[type="number"],
.tml select,
.tml textarea {
  width: 100%;
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e2e2;
  background: #fff;
  color: #16334d;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease, transform .02s ease;
}

/* Focus States accessibles */
.tml .tml-field:focus,
.tml input:focus,
.tml select:focus,
.tml textarea:focus {
  outline: none;
  border-color: var(--tml-ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tml-ring) 25%, transparent);
}

/* Messages d’aide (ex: "La confirmation…") */
.tml #reg_passmail,
.tml .description,
.tml .tml-message {
  font-size: 0.95rem;
  color: var(--tml-muted);
  margin: 6px 0 0;
}

/* Bouton principal */
.tml .tml-submit-wrap .tml-button,
.tml .tml-button,
.tml input[type="submit"] {
  width: 100%;
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 10px;
  background: #16334d;
  color: #fff;
  font-weight: 600;
  transition: transform .02s ease, background-color .2s ease, box-shadow .2s ease;
}

.tml .tml-button:hover,
.tml input[type="submit"]:hover {
  background: #229cd9;
}

.tml .tml-button:active,
.tml input[type="submit"]:active {
  transform: translateY(1px);
}

/* Liens secondaires (connexion / mot de passe) */
.tml .tml-links {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
 /* grid-template-columns: 1fr 1fr;*/
  gap: 6px 12px;
}

.tml .tml-links a {
  color: var(--tml-primary);
  text-decoration: none;
  font-weight: 600;
}

.tml .tml-links a:hover {
  text-decoration: underline;
}

/* Alertes (erreurs, succès)  */
.tml .tml-alerts,
.tml .tml-errors,
.tml .tml-messages {
  margin-bottom: 14px;
}

.tml .tml-errors,
.tml .tml-error {
  background: color-mix(in srgb, var(--tml-danger) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--tml-danger) 35%, #fff);
  color: #991b1b;
  padding: 10px 12px;
  border-radius: var(--tml-radius-sm);
}

.tml .tml-messages,
.tml .tml-message.success {
  background: color-mix(in srgb, var(--tml-success) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--tml-success) 35%, #fff);
  color: #065f46;
  padding: 10px 12px;
  border-radius: var(--tml-radius-sm);
}

/* Champs avec erreurs (si TML/WordPress ajoute .error) */
.tml .error .tml-field,
.tml .error input,
.tml .error select,
.tml .error textarea {
  border-color: var(--tml-danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tml-danger) 20%, transparent);
}

/* Texte du bouton/loader désactivé */
.tml .tml-button[disabled],
.tml input[type="submit"][disabled] {
  opacity: .7;
  cursor: not-allowed;
}

/* Petites améliorations typographiques */
.tml p { margin: 0 0 8px; }
/* .tml a { text-underline-offset: 2px; } */

/* Responsive */
@media (max-width: 480px) {
  .entry-content .tml {
    padding: 22px;
    margin: 20px auto;
  }
  .tml .tml-links {

  }
}

/* Optionnel : harmoniser le titre de page */
.page .entry-title.main_title {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}


.tml.tml-login input#jetpack_protect_answer {
 width: 18% !important;
    display: inline-block;
    border-radius: 0;
}

.tml.tml-login label {
    vertical-align: middle !important;
}








/*Quiz*/



.qsm-quiz-container.qsm-quiz-container-2.qmn_quiz_container.mlw_qmn_quiz.quiz_theme_qsm-theme-companion-master{
    background-image: 
        url(https://academiefiscale.ca/wp-content/uploads/2025/10/theme-bg-1.png);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
    background-color: #ebf6fc;
    border-radius:20px;
    padding: 45px;
}

.qsm-quiz-container.qsm-quiz-container-2.qmn_quiz_container.mlw_qmn_quiz.quiz_theme_qsm-theme-companion-master {}

.qsm-pagination.qmn_pagination.border.margin-bottom {}

form#quizForm2 {
    background: #ffffffad !important;    padding: 15px;
    background: var(--fortune-background-color);
    color: var(--fortune-font-color);
    box-shadow: 0px 10px 40px 5px rgba(32, 68, 60, 0.05);
}


.base-timer svg {
    display: none;
}





/*************************************************************
 ✅ Ultra Modern Tabs menu – Scoped to .modernmenu
*************************************************************/
.modernmenu .et_pb_menu__wrap {
    background: transparent !important;
}

/* Container UL */
.modernmenu .et-menu-nav ul.et-menu {
    display: flex;
    justify-content: center;
    gap: 14px;
    background: #ffffff;
    border-radius: 50px;
    padding: 12px 28px !important;
    width: fit-content;
    margin: 0 auto;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}

/* Liens */
.modernmenu .et-menu-nav ul.et-menu > li > a {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    padding: 10px 22px;
    border-radius: 40px;
    transition: all .35s ease;
}

/* Hover */
.modernmenu .et-menu-nav ul.et-menu > li > a:hover {
    background: #EAF5FF;
    color: #007ACC;
}

/* ✅ Onglet actif */
.modernmenu .et-menu-nav ul.et-menu > li.current-menu-item > a {
    background: #007ACC;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0,122,204,.35);
}

/* ✅ Chevron animé */


/*************************************************************
 ✅ Mobile version
*************************************************************/
.modernmenu .et_mobile_nav_menu {
    background: #ffffff !important;
    border-radius: 14px;
    padding: 8px 0;
}

.modernmenu .et_mobile_menu li a {
    padding: 14px 18px !important;
    border-radius: 40px;
    margin: 4px 14px;
    background: #F4F4F4;
    font-weight: 600;
    color: #555 !important;
    display: block;
}

.modernmenu .et_mobile_menu li.current-menu-item a {
    background: #007ACC !important;
    color: #ffffff !important;
}

/* Chevron mobile */
.modernmenu .et_mobile_menu li a::after {
    content: "›";
    float: right;
    opacity: .5;
}

.modernmenu {
    background: #ffffff00 !important;
}

li#menu-item-489 {}

ul#menu-menu2 li {
    margin-top: 0;
}



   

/* .page-id-214 .modernmenu {
	
	display:none !important;
	
}
 */



form.qsm-quiz-form.qmn_quiz_form.mlw_quiz_form {
    text-align: center;
}




/* ===== Variables style Fortune (modifiable) ===== */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master {
  --fortune-theme-color: #3498db;
  --fortune-theme-color-bg: #EB575730;
  --fortune-background-color: #FFFFFF;
  --fortune-option-text-color: #282760;
  --fortune-option-background-color: #3498db;
  --fortune-option-color: #FFFFFF;
  --fortune-font-color: #282760;
  --fortune-border: #e6e8ef;
}

/* ===== Container base (léger) ===== */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master {
  color: var(--fortune-font-color);
  background: var(--fortune-background-color);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(32,68,60,.06);
  padding: 18px 16px;
}

/* ===== Champs texte / email / tel / number / textarea / select ===== */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master input[type="text"],
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master input[type="email"],
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master input[type="tel"],
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master input[type="number"],
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master textarea,
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master select {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--fortune-border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--fortune-font-color);
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
}

.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master input:focus,
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master textarea:focus,
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master select:focus {
  border-color: var(--fortune-option-background-color);
  box-shadow: 0 0 0 4px var(--fortune-theme-color-bg);
}

.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master ::placeholder {
  color: #9aa1b2;
}

/* ===== Layout des options (radios/checkbox) en cartes ===== */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_radio_answers,
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_check_answers,
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_radio_horizontal_answers {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colonnes desktop */
  gap: 10px 12px;
}

@media (max-width: 640px) {
  .qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_radio_answers,
  .qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_check_answers,
  .qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_radio_horizontal_answers {
    grid-template-columns: 1fr; /* 1 colonne mobile */
  }
}

/* Masquer les inputs natifs (on clique sur le label) */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_radio_answers input[type="radio"],
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_check_answers input[type="checkbox"] {
  position: absolute !important;
  opacity: 0;
  pointer-events: none;
}

/* Carte option (label) façon Fortune */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-input-label,
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_check_answers label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f6f7fb;
  border: 1.5px solid var(--fortune-border);
  border-radius: 30px; /* arrondi large comme Fortune */
  padding: 13px 16px;
  font-size: 16px;
  color: var(--fortune-font-color);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
  user-select: none;
}

/* Petit indicateur à gauche (dot/carré) */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-input-label::before,
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_check_answers label::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;        /* rond = radio */
  border: 2px solid var(--fortune-option-text-color);
  background: #fff;
  flex: 0 0 18px;
  transition: all .2s ease;
}

/* Hover doux */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-input-label:hover,
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_check_answers label:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  border-color: #d8dce8;
}

/* Focus clavier (accessibilité) */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_radio_answers input[type="radio"]:focus + .qsm-input-label,
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_check_answers input[type="checkbox"]:focus + label {
  box-shadow: 0 0 0 4px var(--fortune-theme-color-bg);
  border-color: var(--fortune-option-background-color);
}

/* État sélectionné */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_radio_answers input[type="radio"]:checked + .qsm-input-label,
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_check_answers input[type="checkbox"]:checked + label {
  background: var(--fortune-option-background-color);
  border-color: var(--fortune-option-background-color);
  color: var(--fortune-option-color);
  box-shadow: 0 8px 18px rgba(235,87,87,.15);
}

/* Dot rempli (radio) */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_radio_answers input[type="radio"]:checked + .qsm-input-label::before {
  border-color: var(--fortune-option-color);
  box-shadow: inset 0 0 0 6px var(--fortune-option-color);
}

/* Checkbox : look carré */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_check_answers label::before {
  border-radius: 6px;
}
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qmn_check_answers input[type="checkbox"]:checked + label::before {
  background: var(--fortune-option-color);
  border-color: var(--fortune-option-color);
  /* petit check “négatif” simple */
  mask: radial-gradient(8px at 50% 50%, #000 98%, transparent 100%);
}

/* Petits ajustements d’espacement */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master fieldset { border: 0; padding: 0; margin: 0; }
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .mlw_qmn_new_question { margin-bottom: 12px !important; }
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .mlw_qmn_question { margin-bottom: 8px !important; }






.qsm-featured-image {
    width: 19%;
    margin: 0 auto;
}





/* ==== Variables (change facilement les couleurs) ==== */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master {
  --quiz-accent: #3498db;            /* couleur principale */
  --quiz-accent-text: #282760;       /* texte/badge */
  --quiz-btn: #282760;               /* couleur boutons */
  --quiz-btn-hover: #1f1e52;         /* hover boutons */
  --quiz-border: #E6E8EF;            /* bordures douces */
}

/* ==== Pagination container ==== */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-pagination.qmn_pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none !important;           /* supprime la bordure existante */
  /* background: #fff; */
  padding: 12px 10px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

/* Aligner la barre au centre et prendre l'espace */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-pagination .qsm-progress-bar {
  position: relative;
  flex: 1 1 auto;
  height: 14px;                      /* hauteur + épaisseur */
  display: flex;
  align-items: center;
}

/* Badge pourcentage */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-pagination .qsm-progress-bar .progressbar-text {
  position: absolute;
  right: 0;
  top: -26px;
  background: #fff;
  color: var(--quiz-accent-text);
  border: 1px solid rgba(40,39,96,0.08);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* SVG plus “progress bar” : arrondi + animé */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-pagination .qsm-progress-bar svg {
  width: 100% !important;
  height: 100% !important;
  border-radius: 12px;
}

/* Fond de la barre */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-pagination .qsm-progress-bar svg path:first-child {
  stroke: #EEE !important;
  stroke-width: 12 !important;
  stroke-linecap: round !important;
}

/* Remplissage de progression */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-pagination .qsm-progress-bar svg path:last-child {
  stroke: var(--quiz-accent) !important;
  stroke-width: 12 !important;
  stroke-linecap: round !important;
  transition: stroke-dashoffset .4s ease; /* animation fluide */
}

/* ==== Boutons (Précédent / Suivant / Submit) ==== */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-pagination .qsm-btn {
  background: var(--quiz-btn);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  text-transform: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}

.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-pagination .qsm-btn:hover {
  background: var(--quiz-btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

/* Icônes (facultatif) via dashicons */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-pagination .qsm-previous::before {
  content: "\f341";
  font-family: dashicons;
  margin-right: 6px;
  vertical-align: middle;
}
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-pagination .qsm-next::after,
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-pagination .qsm-submit-btn::after {
  content: "\f344";
  font-family: dashicons;
  margin-left: 6px;
  vertical-align: middle;
}

/* Nettoyage */
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-pagination .qmn_page_message,
.qsm-quiz-container-2.quiz_theme_qsm-theme-companion-master .qsm-pagination .qmn_page_counter_message {
  display: none !important;
}




input#qsm_retake_button {
    display: none;
}




/* 2 colonnes : image gauche / formulaire droite */
.qsm-quiz-container.quiz_theme_default{
  display: grid;
  grid-template-columns: 40% 1fr;   /* 40% image – ajuste si besoin (ex: 30% / 50%) */
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,0,0,.08);
background: #fafafa;}

/* L'image fournie par QSM (placée AVANT le form) devient la colonne gauche */
.qsm-quiz-container.quiz_theme_default > .qsm-quiz-default-feature-image{
  grid-column: 1 / 2;
  width: 100%;
  height: 100%;           /* prend la même hauteur que le form */
  object-fit: cover;      /* couvre sans déformer */
  display: block !important;         /* supprime les espaces inline */
  background: #e9f5fa;    /* couleur de fond au cas où l'image charge lentement */
}

/* Le formulaire occupe la colonne de droite */
.qsm-quiz-container.quiz_theme_default > .qsm-quiz-form{
  grid-column: 2 / 3;
  background: #f5f5f573;
  padding: 32px;
}


/* Colonne formulaire */
.quiz_theme_default form#quizForm3 {
    flex: 1;                      /* prend tout l’espace restant */
    background: #fafafa;
    padding: 20px;
    border-radius: 0 12px 12px 0; /* optionnel */
	    place-self: center;
}


.quiz_theme_default {
    box-shadow: 1px 1px 8px #00000036;
    border-radius: 25px;
}








/***/

/* =============================== */
/* Modern Radio Pills — quiz_theme_default */
/* =============================== */

/* Cacher l’input radio natif mais garder l’accessibilité */
.quiz_theme_default .qsm-question-wrapper input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

/* Conteneur de réponses */
.quiz_theme_default .qmn_radio_answers,
.quiz_theme_default .qmn_radio_horizontal_answers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
}

/* Style des boutons (labels) */
.quiz_theme_default .quiz_section .qsm-input-label {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
/*   min-width: 54px; */
  border-radius: 9999px;
  background: #f7f8fb;
  color: #211435;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
  border: 2px solid rgba(33,20,53,0.10);
  cursor: pointer;
  user-select: none;
  text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

/* Survol */
.quiz_theme_default .quiz_section .qsm-input-label:hover {
  background: #3498db38;
  border-color: #3498db;
  transform: translateY(-1px);
}

/* Sélectionné */
.quiz_theme_default .quiz_section input[type="radio"]:checked + .qsm-input-label {
  background: #1f3a53;
  color: #ffffff;
  border-color: #1f3a53;
  box-shadow: 0 6px 18px rgba(108,99,255,0.28);
  transform: translateY(-2px);
}

/* Focus clavier */
.quiz_theme_default .quiz_section input[type="radio"]:focus-visible + .qsm-input-label {
  outline: 3px solid rgba(108,99,255,0.45);
  outline-offset: 3px;
}

/* Désactivé */
.quiz_theme_default .quiz_section input[type="radio"]:disabled + .qsm-input-label {
  opacity: .55;
  cursor: not-allowed;
}

/* Responsive mobile */
@media (max-width: 600px) {
  .quiz_theme_default .qmn_radio_answers .qsm-input-label {
/*     width: 100%; */
  }
}


/* =============================== */
/* QSM Pagination Modern Buttons - quiz_theme_default */
/* =============================== */

.quiz_theme_default .qsm-pagination.qmn_pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    width: 100%;
    border: none !important;
    margin-top: 20px;
}

/* Boutons Précédent / Suivant / Envoyer */
.quiz_theme_default .qsm-btn.qmn_btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 14px 26px !important;
    font-size: 15px !important;
    font-weight: 600;
    border-radius: 50px !important;
    background: #1f3a53 !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease-in-out, box-shadow .25s ease-in-out;
}

/* Effet hover */
.quiz_theme_default .qsm-btn.qmn_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(108, 99, 255, 0.25);
}

/* Désactivé */
.quiz_theme_default .qsm-btn.qmn_btn[style*="display: none"] {
    display: none !important;
}

/* Icône flèche Suivant */
.quiz_theme_default .mlw_next::after {
    content: "→";
    margin-left: 8px;
    font-size: 16px;
}

/* Icône flèche Précédent */
.quiz_theme_default .mlw_previous::before {
    content: "←";
    margin-right: 8px;
    font-size: 16px;
}

/* Texte compteur */
.quiz_theme_default .qmn_page_counter_message,
.quiz_theme_default .qmn_page_message {
    flex: 1;
    text-align: center;
    color: #444;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile ✅ */
@media (max-width: 600px) {
    .quiz_theme_default .qsm-pagination.qmn_pagination {
        flex-direction: column;
        justify-content: center;
    }

    .quiz_theme_default .qsm-btn.qmn_btn {
        width: 100%;
        font-size: 16px;
    }

    .quiz_theme_default .qmn_page_counter_message {
        order: -1;
        margin-bottom: 10px;
    }
}



/* Modern Page Counter – quiz_theme_default */
.quiz_theme_default .pages_count {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #e9f5fa;
    color: #1f3a53;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 40px;
    border: 2px solid #e9f5fa;
    box-shadow: 0 2px 6px rgba(108, 99, 255, 0.12);
    margin: 0 auto 10px;
    width: auto;
    text-align: center;
    transition: all .25s ease-in-out;
}

/* Light hover effect */
.quiz_theme_default .pages_count:hover {
    background: #1f3a53;
    color: #fff;
    border-color: #1f3a53;
    box-shadow: 0 4px 14px rgba(108, 99, 255, 0.28);
    transform: translateY(-2px);
}

/* Mobile optimization */
@media (max-width:600px) {
    .quiz_theme_default .pages_count {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }
}


		
		
		/* ========== Results page: full width inside quiz container ========== */

/* Make the results block span across both grid columns */
.qsm-quiz-container.quiz_theme_default .qmn_results_page{
  grid-column: 1 / -1;
  width: 100%;
  padding: 0;        /* your inner HTML already has its own padding */
}

/* The small “retake” form under results should also span full width */
.qsm-quiz-container.quiz_theme_default > form[action*="qsm_retake"] ,
.qsm-quiz-container.quiz_theme_default > form[action=""]{
  grid-column: 1 / -1;
  width: 100%;
}

/* When results are shown, you can safely turn off the left feature image */
.qsm-quiz-container.quiz_theme_default:has(.qmn_results_page) > .qsm-quiz-default-feature-image{
  display: none !important;
}

/* If you prefer to collapse the grid entirely on results: */
.qsm-quiz-container.quiz_theme_default:has(.qmn_results_page){
  display: block;      /* override the 2-column grid only on results */
}

/* Your inline HTML sets a max-width*


*/

.qmn_results_page form {
    text-align: center;
    padding-bottom: 14px;
	
	    background: #f3f9ff;
}





/**/





/* ====== QuickImpôts – Style CF7 (palette #229cd9 → #16334d) ====== */
:root {
  --qi-primary: #229cd9; /* bleu clair */
  --qi-dark:    #16334d; /* bleu foncé */
  --qi-bg:      #f6fbfe; /* fond doux */
  --qi-border:  #d7e6f1; /* bordures light */
  --qi-text:    #0f2536;
  --qi-error:   #d9534f;
}

/* Scope au bloc CF7 courant (évite d'impacter d'autres formulaires) */
#wpcf7-f663-p655-o1 .wpcf7-form {
  background: linear-gradient(180deg, #ffffff 0%, var(--qi-bg) 100%);
  border: 1px solid var(--qi-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(22, 51, 77, 0.08);
  color: var(--qi-text);
}

/* Labels */
#wpcf7-f663-p655-o1 .wpcf7-form p > label {
  display: inline-block;
  font-weight: 700;
  color: var(--qi-dark);
  margin-bottom: 6px;
}

/* Champs texte, email, tel, textarea, file */
#wpcf7-f663-p655-o1 .wpcf7-form input[type="text"],
#wpcf7-f663-p655-o1 .wpcf7-form input[type="email"],
#wpcf7-f663-p655-o1 .wpcf7-form input[type="tel"],
#wpcf7-f663-p655-o1 .wpcf7-form textarea,
#wpcf7-f663-p655-o1 .wpcf7-form input[type="file"] {
  width: 100%;
  background: #fff;
  border: 1px solid var(--qi-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--qi-dark);
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* Placeholders */
#wpcf7-f663-p655-o1 .wpcf7-form ::placeholder {
  color: #7a9bb2;
  opacity: .95;
}

/* Focus states */
#wpcf7-f663-p655-o1 .wpcf7-form input:focus,
#wpcf7-f663-p655-o1 .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--qi-primary);
  box-shadow: 0 0 0 4px rgba(34, 156, 217, 0.15);
}

/* Textarea hauteur agréable */
#wpcf7-f663-p655-o1 .wpcf7-form textarea {
  min-height: 160px;
  resize: vertical;
}

/* Inputs file : bouton natif stylé */
#wpcf7-f663-p655-o1 .wpcf7-form input[type="file"] {
  padding: 10px;
}
#wpcf7-f663-p655-o1 .wpcf7-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(90deg, var(--qi-primary), var(--qi-dark));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, filter .2s ease;
}
#wpcf7-f663-p655-o1 .wpcf7-form input[type="file"]::file-selector-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Bouton envoyer (Divi + CF7) */
#wpcf7-f663-p655-o1 .wpcf7-submit.et_pb_button {
  background: linear-gradient(90deg, var(--qi-primary), var(--qi-dark));
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px !important;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 6px 18px rgba(34, 156, 217, .25);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  position: unset;
}
#wpcf7-f663-p655-o1 .wpcf7-submit.et_pb_button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(22, 51, 77, .22);
}
#wpcf7-f663-p655-o1 .wpcf7-submit.et_pb_button:active {
  transform: translateY(0);
}

/* Spinner CF7 */
#wpcf7-f663-p655-o1 .wpcf7-spinner {
  margin-left: 10px;
  width: 20px; height: 20px;
  border: 2px solid rgba(34,156,217,.25);
  border-top-color: var(--qi-primary);
}

/* Messages de réponse */
#wpcf7-f663-p655-o1 .wpcf7-response-output {
  border-radius: 10px;
  border: 1px solid var(--qi-border);
  background: #fff;
  color: var(--qi-dark);
  padding: 12px 14px;
  margin: 12px 0 0;
}
#wpcf7-f663-p655-o1 .wpcf7-response-output.wpcf7-mail-sent-ok {
  border-color: rgba(34,156,217,.35);
  background: linear-gradient(180deg, #e8f6fd, #ffffff);
}

/* États d’erreur champ */
#wpcf7-f663-p655-o1 .wpcf7-not-valid {
  border-color: var(--qi-error) !important;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, .12);
}
#wpcf7-f663-p655-o1 .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  color: var(--qi-error);
  font-size: 13px;
  margin-top: 6px;
}

/* Espacement entre champs */
#wpcf7-f663-p655-o1 .wpcf7-form p {
  margin: 0 0 16px;
}

/* Petites largeurs */
@media (max-width: 600px) {
  #wpcf7-f663-p655-o1 .wpcf7-form {
    padding: 18px;
  }
  #wpcf7-f663-p655-o1 .wpcf7-submit.et_pb_button {
    width: 100%;
    text-align: center;
  }
}


/**/

/* ===== Blog Carousel – Academie Fiscale (palette #229cd9 → #16334d) ===== */
.dsm_blog_carousel_0 {
  --af-primary: #229cd9;
  --af-dark:   #16334d;
  --af-text:   #0f2536;
  --af-muted:  #7a9bb2;
}

/* Carte / conteneur */
.dsm_blog_carousel .dsm-grid-post-holder-inner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22,51,77,.10);
  transition: transform .25s ease, box-shadow .25s ease;
}
.dsm_blog_carousel .dsm-grid-post-holder-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(22,51,77,.16);
}

/* Image : ratio & overlay */
.dsm_blog_carousel .dsm-entry-thumbnail {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.dsm_blog_carousel .dsm-entry-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .35s ease, filter .35s ease;
}
.dsm_blog_carousel .dsm-grid-post-holder-inner:hover .dsm-entry-thumbnail img {
  transform: scale(1.05);
  filter: saturate(1.05);
}
.dsm_blog_carousel .dsm-entry-thumbnail::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,51,77,0) 40%, rgba(22,51,77,.28) 100%);
  pointer-events: none;
}

/* Titre */
.dsm_blog_carousel .dsm-entry-title {
  font-size: 20px;
  line-height: 1.28;
  margin: 14px 16px 6px;
}
.dsm_blog_carousel .dsm-entry-title a {
  color: var(--af-dark);
  text-decoration: none;
  background:
    linear-gradient(90deg, var(--af-primary), var(--af-dark)) 0 100% / 0 2px no-repeat;
  transition: background-size .25s ease, color .25s ease;
}
.dsm_blog_carousel_0 .dsm-grid-post-holder-inner:hover .dsm-entry-title a {
  background-size: 100% 2px;
  color: var(--af-dark);
}

/* Extrait */
.dsm_blog_carousel .dsm-post-excerpt {
  color: var(--af-text);
  opacity: .9;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 16px 18px;
}
.dsm_blog_carousel .dsm-post-excerpt p { margin: 0; }

/* Arrows Swiper */
.dsm_blog_carousel .swiper-arrow-button {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--af-primary), var(--af-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(34,156,217,.25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}



/* Bullets pagination (si activés) */
.dsm_blog_carousel .swiper-container-horizontal .swiper-pagination-bullets,
.dsm_blog_carousel .swiper-pagination-custom, 
.dsm_blog_carousel .swiper-pagination-fraction {
  bottom: -6px;
}
.dsm_blog_carousel .swiper-pagination-bullet {
  width: 8px; height: 8px; margin: 0 6px !important;
  background: #cfe8f6; opacity: 1; border-radius: 999px;
  transition: width .25s ease, background-color .25s ease;
}
.dsm_blog_carousel .swiper-pagination-bullet-active {
  width: 22px; background: var(--af-primary);
}

/* Espacements & responsive */
.dsm_blog_carousel .dsm-entry-wrapper { padding-bottom: 6px; }
@media (max-width: 980px) {
  .dsm_blog_carousel .dsm-entry-title { font-size: 18px; margin: 12px 14px 6px; }
  .dsm_blog_carousel .dsm-post-excerpt { margin: 0 14px 16px; }
}
@media (max-width: 480px) {
  .dsm_blog_carousel .swiper-arrow-button { width: 38px; height: 38px; }
}


.dsm_blog_carousel .swiper-arrow-button:after { color: #16334d !important; }










/**/

/* ===== Style Quiz Links (Chapitre 1 / Chapitre 2...) ===== */
.quizstyl .et_pb_code_inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
}

.quizstyl .et_pb_code_inner a {
    display: block;
    text-align: center;
    padding: 10px 15px;
    background-color: #16334d;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Effet shine */
.quizstyl .et_pb_code_inner a::after {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: 0.5s;
}

.quizstyl .et_pb_code_inner a:hover::after {
    left: 100%;
}

/* Hover */
.quizstyl .et_pb_code_inner a:hover {
    background-color: #229cd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(22,51,77,0.3);
}





.single-qsm_quiz div#sidebar {
    display: none;
}

.single-qsm_quiz div#left-area {
    width: 100%;
}

.single-qsm_quiz  #main-content .container:before {
    display: none !important;
}

.single-qsm_quiz  p.post-meta {
    display: none;
}

.single-qsm_quiz  .et_post_meta_wrapper h1 {
    text-align: center;
}

.single-qsm_quiz  .et_post_meta_wrapper {
    /* background: red; */
    padding: 14px;
}






#left-area .post-meta {
    display: none;
}







.et_post_meta_wrapper {
    text-align: center;
}

.et_post_meta_wrapper img {
    padding-top: 15px;
    width: 46%;
}







.qsm-before-message.mlw_qmn_message_before h1 {
    font-size: 30px;
}






/* Style général du conteneur du formulaire de login quiz */
.entry-content form#qsm-login-form {
  max-width: 520px;
  margin: 32px auto;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 28px;
  color: #16334d;
  font-family: inherit;
}

/* Champs (input, select, textarea) */
#qsm-login-form input[type="text"],
#qsm-login-form input[type="email"],
#qsm-login-form input[type="password"],
#qsm-login-form input[type="url"],
#qsm-login-form input[type="number"],
#qsm-login-form select,
#qsm-login-form textarea {
  width: 100%;
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e2e2;
  background: #fff;
  color: #16334d;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease, transform .02s ease;
}

/* Focus */
#qsm-login-form input:focus,
#qsm-login-form select:focus,
#qsm-login-form textarea:focus {
  outline: none;
  border-color: #229cd9;
  box-shadow: 0 0 0 3px rgba(34,156,217,0.25);
}

/* Labels */
#qsm-login-form label {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #16334d;
}

/* Checkbox */
#qsm-login-form input[type="checkbox"] {
  width: auto;
  margin-right: 6px;
  transform: scale(1.2);
}

/* Bouton */
#qsm-login-form input[type="submit"],
#qsm-login-form .button {
  width: 100%;
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 10px;
  background: #16334d;
  color: #fff;
  font-weight: 600;
  transition: transform .02s ease, background-color .2s ease, box-shadow .2s ease;
}

#qsm-login-form input[type="submit"]:hover {
  background: #229cd9;
}

#qsm-login-form input[type="submit"]:active {
  transform: translateY(1px);
}

/* Texte du haut (message d'accès restreint) */
.entry-content > p:first-of-type {
  text-align: center;
  font-size: 1rem;
  color: #16334d;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 480px) {
  .entry-content form#qsm-login-form {
    padding: 22px;
    margin: 20px auto;
  }
}




.entry-content > p:first-of-type {
  color: transparent; /* Cache le texte d’origine */
  font-size: 0  !important;
}

.entry-content > p:first-of-type::before {
  content: "Ce quiz est réservé aux utilisateurs connectés.";
  color: #16334d;

  font-size: 1rem;
}




a.qmn_certificate_link {
  display: inline-block;
  background-color: #16334d; /* doré */
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  text-transform: uppercase;
  /* letter-spacing: 1px; */
  text-align: center;
  /* align-items: center; */
  margin: auto !important;
}

a.qmn_certificate_link:hover {
  background-color: #229cd9; /* doré foncé au survol */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

a.qmn_certificate_link:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

