/* Add your css code here */
/*
Variable Definitions:
  --r-bg: Region background color. Sets the overall background color of the region wrapper.
  --r-tx: Region text color. Sets the default text color for all paragraph and inline text within the region.
  --r-h1: Region heading color. Specifically sets the color for headings (h1, h2, h3) within the region, allowing heading color control independently from body text.
  --r-lk: Region link color. Sets the color for anchor (<a>) links within the region in their normal (non-hover) state.
  --r-lk-h: Region link hover color. Sets the color of links within the region when hovered or focused, providing clear interactive feedback.
  --r-br: Region border color. Sets the border color for the region, useful for visual separation of sections.
  --r-bg-fr: Form background color within the region. Sets the background color specifically for input forms (e.g., login forms, search bars) within the region, enabling clear visual separation of form areas.
  --r-tx-lk: Menu link text color within the region. Sets the text color for menu links in navigation blocks or region-based menus, ensuring consistency with your theme’s navigation design.
  --r-tx-lk-h: Menu link hover text color within the region. Sets the hover or focus color for menu link text, aiding in clear navigation feedback for users.
  --r-bg-lk: Menu link background color within the region. Sets the background color of menu links in their normal state within the region for better menu styling control.
  --r-bg-lk-h: Menu link background hover color within the region. Sets the background color for menu links on hover/focus, ensuring clear user interaction indication.
  --r-tx-bt:  Button text color within the region. Sets the text color for buttons within the region (e.g., call-to-action buttons, form submit buttons).
  --r-tx-bt-h: Button text hover color within the region. Sets the text color for buttons when hovered/focused, providing interactive feedback.
  --r-bg-bt: Button background color within the region. Sets the background color for buttons in their normal state, aligning them visually with your design system.
  --r-bg-bt-h:  Button background hover color within the region. Sets the background color for buttons on hover/focus, improving interactivity and user experience.
*/

/*
Regions Names, each region has an ID and a Class with the same name.
You can use .page-wrapper or #page-wrapper
#page-wrapper {}
#primary-sidebar-menu {}
#fixed-search-block {}
#popup-login-block {}
#header {}
#primary-menu {}
#welcome-text {}

#top-container {}
#top-box-first {}
#top-box-second {}
#top-box-third {}

#system-messages {}
#breadcrumb {}
#page-title {}

#main-container {}
#sidebar-box-first {}
#sidebar-box-main {}
#sidebar-box-second {}

#bottom-container {}
#bottom-box-first {}
#bottom-box-second {}
#bottom-box-third {}
#bottom-box-fourth {}

#footer-container {}
#footer-box-first {}
#footer-box-second {}
#footer-box-third {}

#footer-menu {}
#copyright {}

Examples:

#page-wrapper {
  background-color: var(--r-bg);
  color: var(--r-tx);
  border-color: var(--r-br);
}

h1, h2, h3 {
  color: var(--r-h1);
}

a:not(li.nav__menu-item a) {
  color: var(--r-lk);
  color: var(--r-lk-h);
}

input:not(.button) {
  background-color: var(--r-bg-fr);
}

li.nav__menu-item a {
  color: var(--r-tx-lk);
  background-color: var(--r-bg-lk);
}

li.nav__menu-item a:hover {
  color: var(--r-tx-lk-h);
  background-color: var(--r-bg-lk-h);
}

button:not(li.nav__menu-item button) {
  color: var(--r-tx-bt);
  background-color: var(--r-bg-bt);
}

button:not(li.nav__menu-item button):hover {
  color: var(--r-tx-bt-h);
  background-color: var(--r-bg-bt-h);
}
https://www.drupal.org/docs/extending-drupal/themes/contributed-themes/solo/instructions-for-developers-on-using-colors-in-solo-theme
*/

/* =========================
   QR VIDEO (YouTube oEmbed)
   Pleine largeur + ratio 16:9
   ========================= */

.media-oembed-content {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  display: block;
}

/* Certains wrappers Drupal peuvent contraindre l’embed */
.media,
.field--type-oembed,
.media-oembed-content {
  max-width: 100%;
}

/* =========================
   QR Video – Bord à bord mobile
   ========================= */

@media (max-width: 768px) {

  .media-oembed-content {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw !important;
    max-width: 100vw !important;
    aspect-ratio: 16 / 9;
    display: block;
  }

}
/* =========================
   Coller la vidéo au fil d’Ariane (mobile)
   ========================= */
@media (max-width: 768px) {

  /* enlève l’espace sous le breadcrumb (selon le thème, l’un des 2 matchera) */
  #breadcrumb { margin-bottom: 0 !important; padding-bottom: 0 !important; }
  #main-container, .main-container { padding-top: 0 !important; }
  .region-breadcrumb { margin-bottom: 0 !important; padding-bottom: 0 !important; }

  /* enlève l’espace au-dessus de l’embed */
  .media-oembed-content { margin-top: 0 !important; }

}
/* =========================
   QR Quiz (questions)
   ========================= */

.qr-question {
  margin: 1.75rem 0;
}

.qr-question-title {
  margin: 0 0 0.75rem 0;
}

.qr-answers {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.75rem 0 0.75rem 0;
}

.qr-answer {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.qr-answer.is-active {
  border-color: rgba(0,0,0,0.35);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

.qr-results {
  margin-top: 0.75rem;
}

.qr-result {
  padding: 0.9rem 1rem;
  border-left: 3px solid rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.03);
  border-radius: 10px;
}

/* ===== QR Quiz — Questions encadrées ===== */

/* Conteneur de chaque question */
.qr-question {
  background-color: #F2F4F7; /* fond légèrement gris */
  border: 2px solid #CDD5E0; /* bordure plus épaisse, contraste doux */
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin: 1.75rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Titre de la question */
.qr-question-title {
  margin-bottom: .85rem;
  font-weight: 600;
  color: #1F2933; /* texte principal */
}

/* Réponses */
.qr-answers {
  display: grid;
  gap: 10px;
}

/* Boutons réponses */
.qr-answer {
  background-color: #EBEFF5; /* un peu plus foncé que le conteneur */
  border: 1px solid #C8D0DA;
  color: #1F2933;
  padding: .85rem 1rem;
  border-radius: 8px;
  transition: background-color .15s ease, border-color .15s ease;
  cursor: pointer;
}

/* Au survol */
.qr-answer:hover {
  background-color: #D9E1EE;
  border-color: #AFC1D4;
}

/* Etat sélectionné */
.qr-answer.is-active {
  background-color: #C5CEE4;
  border-color: #6E7CAA;
}

/* Résultats / orientation */
.qr-result {
  margin-top: .9rem;
  padding: 1rem 1.1rem;
  background-color: #E6EBFA;
  border-left: 5px solid #4F46E5; /* accent violet */
  color: #1F2933;
  border-radius: 8px;
}

.qr-recommended-cta a {
  display: inline-block;
  padding: .85rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;

  /* Couleurs Solo (si définies) + fallback */
  background: var(--r-bg-bt, #4F46E5);
  color: var(--r-tx-bt, #FFFFFF);
}

.qr-recommended-cta a:hover,
.qr-recommended-cta a:focus {
  background: var(--r-bg-bt-h, #3730A3);
  color: var(--r-tx-bt-h, #FFFFFF);
}