/* ====== BASE ====== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #cc0000;
  overflow: hidden;
}

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ====== TITRE (10%) ====== */
.titre_section {
  color: white;
  display: none; /* Masqué par défaut */
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-top:3vh;
  padding: 0 5%;
  font-weight: bold;
  text-align: center;
}

/* ====== MENU DÉROULANT ====== */

/* Conteneur global */
.menu_deroulant_region_div {
  max-width: 420px;
  margin: 30px auto;
  padding: 24px 20px 28px;
  display: none; /* Masqué par défaut */
  flex-direction: column;
  align-items: stretch;
  /*background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);*/
}

/* Ligne label + select */
.menu_deroulant_region_row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Label */
.menu_deroulant_region-label {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

/* Select (style custom, compatible iOS) */
.menu_deroulant_region {
  width: 100%;
  padding: 14px 44px 14px 14px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  cursor: pointer;

  /* Suppression du style natif (important iOS) */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Flèche custom */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='gray'><polygon points='5,7 15,7 10,13'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

/* Focus accessible */
.menu_deroulant_region:focus {
  outline: none;
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.2);
}

/* Option placeholder */
.menu_deroulant_region option[value=""] {
  color: #999;
}

/* Bouton (ton style, légèrement intégré visuellement) */
.menu_deroulant_region-button {
  align-self: center;
  width: min(200px, 60%);
  background-color: #fff;
  color: #cc0000;
  font-size: 18px;
  font-weight: bold;
  border: none;
  padding: 12px 20px;
  margin: 22px auto 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

/* Hover */
.menu_deroulant_region-button:hover:not(.disabled) {
  background-color: #8f0707;
}

.menu_deroulant_region-button.disabled {
  background-color: #5c5c5c;
  color: #fff;
  cursor: not-allowed;
}

/* ====== ZONE DE CHOIX ====== */

.choices_div {
  display: none; /* Masqué par défaut */
}

#choices {
  flex: 1;
  position: relative;
  background-color: #cc0000;
  overflow: hidden;
}

/* ====== BLOC REVENDICATION ====== */
.choice {
  position: absolute;
  left: 5%;
  width: 90vw;
  height: 35vh;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #bbb;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: pan-y; /* allow vertical scrolling, prevent browser from hijacking horizontal swipes */
}


.choice.top {
  top: 3vh;
}

.choice.bottom {
  top: 40vh;
}

/* ====== BLOC ROUND 2 ====== */
.choice_round_2 {
  left: 5vw;
  width: 90vw;
  height: 12vh;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #bbb;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: pan-y; /* allow vertical scrolling, prevent browser from hijacking horizontal swipes */
}

.choice_round_2 .text {
  position: relative;
  color:#cc0000;
  z-index: 2;
  display: block; /* don't occupy full card height so it sits just below the arrow */
  margin: 0;
  padding: 0 5px 0;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
}

.choice_round_2 .fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(0, 170, 0, 0.85);
  z-index: 1;
  transition: height 0.1s linear;
}



/* ====== TEXTE ====== */
.choice .text {
  position: relative;
  color:#cc0000;
  z-index: 2;
  display: block; /* don't occupy full card height so it sits just below the arrow */
  margin: 0;
  padding: 0 5px 0;
  text-align: center;
  font-size: 26px;
  font-weight: bold;
}

/* ====== ARROW ABOVE TEXT ====== */
.choice .arrow {
  display: block;
  width: 36px;
  height: auto;
  margin: 0 auto 2px; /* arrow sits just above the text */
  z-index: 3;
  position: relative;
  pointer-events: none;
}

/* Group the arrow and its instruction so both move together */
.arrow-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  z-index: 3;
  pointer-events: none;
  animation: arrowShift 3.5s ease-in-out infinite; /* entire group translates horizontally */
}

.arrow-text {
  font-size: 14px;
  color: #333;
  opacity: 0.8;
  white-space: nowrap;
}



@keyframes arrowShift {
  0%   { transform: translateX(-10px); }
  50%  { transform: translateX(10px); }
  100% { transform: translateX(-10px); }
}

@keyframes arrowShiftRot {
  0%   { transform: rotate(180deg) translateX(-10px); }
  50%  { transform: rotate(180deg) translateX(10px); }
  100% { transform: rotate(180deg) translateX(-10px); }
}

/* ====== REMPLISSAGE VERT ====== */
.choice .fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(0, 170, 0, 0.85);
  z-index: 1;
  transition: height 0.1s linear;
}

/* ====== SIX CHOICES (small selectable blocks) ====== */
.six_choices {
  position: absolute;
  left: 5%;
  top: 6%;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
}

.choice_round_2 {
  width: 100%;
  height: 10vh;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #bbb;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  font-size: 18px;
  user-select: none;
  touch-action: pan-y; /* allow vertical scroll, enable horizontal swipes */
}

/* Overlay */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #cc0000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 5px;
  box-sizing: border-box;

  color: white;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.intro-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.intro-overlay h1,
.intro-overlay h2 {
  margin: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.intro-overlay.visible h1,
.intro-overlay.visible h2 {
  opacity: 1;
  transform: translateY(0);
}

mark {
  background: white!important;
  color: #b00000;
}


/*===========================================================
BULLE CONTACTER SYNDICAT CGT DE PROXIMITE
============================================================*/

/* Bouton "i" */
#info-button {
  position: fixed;
  bottom: 12px;
  right: 16px;
  width: 22px;
  height: 22px;
  background-color: #ffffff;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 1000;
  user-select: none;
}

/* Bulle type SMS */
#info-bubble {
  position: fixed;
  right: 16px;

  /* 👇 Toujours au-dessus du bouton */
  bottom: calc(50px + env(safe-area-inset-bottom));

  max-width: 260px;
  background-color: #ffffff;
  color: #000;
  padding: 12px 14px;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  font-size: 14px;
  line-height: 1.4;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

/* Visible */
#info-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Petite flèche façon bulle */
#info-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: rotate(45deg);
}