/***********
1. Fonts
***********/

@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700,800,900');

/*********************************
2. Body and some general stuff
*********************************/

*
{
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
	-webkit-text-shadow: rgba(0,0,0,.01) 0 0 1px;
	text-shadow: rgba(0,0,0,.01) 0 0 1px;
}
body
{
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
	font-weight: 400;
	/* background: #FFFFFF; */
	background: #004b84;
	color: #a5a5a5;
}
div
{
	display: block;
	position: relative;
	-webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
ul
{
	list-style: none;
	margin-bottom: 0px;
}
p
{
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	line-height: 2.14;
	font-weight: 500;
	color: #828282;
	-webkit-font-smoothing: antialiased;
	-webkit-text-shadow: rgba(0,0,0,.01) 0 0 1px;
	text-shadow: rgba(0,0,0,.01) 0 0 1px;
}
p a
{
	display: inline;
	position: relative;
	color: inherit;
	border-bottom: solid 1px #ffa07f;
	-webkit-transition: all 200ms ease;
	-moz-transition: all 200ms ease;
	-ms-transition: all 200ms ease;
	-o-transition: all 200ms ease;
	transition: all 200ms ease;
}
p:last-of-type
{
	margin-bottom: 0;
}
a
{
	-webkit-transition: all 200ms ease;
	-moz-transition: all 200ms ease;
	-ms-transition: all 200ms ease;
	-o-transition: all 200ms ease;
	transition: all 200ms ease;
}
a, a:hover, a:visited, a:active, a:link
{
	text-decoration: none;
	-webkit-font-smoothing: antialiased;
	-webkit-text-shadow: rgba(0,0,0,.01) 0 0 1px;
	text-shadow: rgba(0,0,0,.01) 0 0 1px;
}
p a:active
{
	position: relative;
	color: #FF6347;
}
p a:hover
{
	color: #FFFFFF;
	background: #ffa07f;
}
p a:hover::after
{
	opacity: 0.2;
}
::selection
{
	/* background: rgba(87,204,195,0.75); */
	background: rgba(173, 71, 71, 0.75);
	color: #FFFFFF;
}
p::selection
{
	
}
h1{font-size: 60px;}
h2{font-size: 48px;}
h3{font-size: 36px;}
h4{font-size: 24px;}
h5{font-size: 18px;}
h1, h2, h3, h4, h5, h6
{
	font-family: 'Montserrat', sans-serif;
	-webkit-font-smoothing: antialiased;
	-webkit-text-shadow: rgba(0,0,0,.01) 0 0 1px;
	text-shadow: rgba(0,0,0,.01) 0 0 1px;
	line-height: 1.2;
	color: #404040;
}
h1::selection, 
h2::selection, 
h3::selection, 
h4::selection, 
h5::selection, 
h6::selection
{
	
}
.form-control
{
	color: #db5246;
}
section
{
	display: block;
	position: relative;
	box-sizing: border-box;
}
.clear
{
	clear: both;
}
.clearfix::before, .clearfix::after
{
	content: "";
	display: table;
}
.clearfix::after
{
	clear: both;
}
.clearfix
{
	zoom: 1;
}
.float_left
{
	float: left;
}
.float_right
{
	float: right;
}
.trans_200
{
	-webkit-transition: all 200ms ease;
	-moz-transition: all 200ms ease;
	-ms-transition: all 200ms ease;
	-o-transition: all 200ms ease;
	transition: all 200ms ease;
}
.trans_300
{
	-webkit-transition: all 300ms ease;
	-moz-transition: all 300ms ease;
	-ms-transition: all 300ms ease;
	-o-transition: all 300ms ease;
	transition: all 300ms ease;
}
.trans_400
{
	-webkit-transition: all 400ms ease;
	-moz-transition: all 400ms ease;
	-ms-transition: all 400ms ease;
	-o-transition: all 400ms ease;
	transition: all 400ms ease;
}
.trans_500
{
	-webkit-transition: all 500ms ease;
	-moz-transition: all 500ms ease;
	-ms-transition: all 500ms ease;
	-o-transition: all 500ms ease;
	transition: all 500ms ease;
}
.fill_height
{
	height: 100%;
}
.super_container
{
	width: 100%;
	overflow: hidden;
}
.prlx_parent
{
	overflow: hidden;
}
.prlx
{
	height: 130% !important;
}
.parallax-window
{
    min-height: 400px;
    background: transparent;
}
.parallax_background
{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 90%;
}
.background_image
{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}
.nopadding
{
	padding: 0px !important;
}
.button
{
	height: 46px;
	border-radius: 20px;
}
.button a
{
	display: block;
	padding-left: 40px;
	padding-right: 36px;
	line-height: 42px;
	font-size: 14px;
	text-transform: uppercase;
	font-weight: 600;
}
.button_1
{
	background: #fd556d;
	border: solid 2px transparent;
}
.button_1 a
{
	color: #FFFFFF;
}
.button_1:hover
{
	background: transparent;
	border: solid 2px #fd556d;
}
.button_1:hover a
{
	color: #fd556d;
}
.button_2
{
	background: transparent;
	border: solid 2px #57ccc3;
}
.button_2 a
{
	color: #57ccc3;
}
.button_2:hover
{
	background: #57ccc3;
}
.button_2:hover a
{
	color: #FFFFFF;
}
.section_subtitle
{
	font-size: 18px;
	font-weight: 500;
	color: #a6abb2;
	line-height: 0.75;
}
.section_title
{
	margin-top: 9px;
}
.intro_text
{
	margin-top: 32px;
}

/*********************************
3. Header
*********************************/

/* Header default (transparent) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 100;
    background: transparent;
    transition: all 0.4s ease;
}

/* Header when scrolled */
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Header content adjustments */
.header_content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 117px;
    padding-left: 100px;
    padding-right: 102px;
    transition: all 0.4s ease;
}

/* Adjust header content height when scrolled */
/* .header.scrolled .header_content {
    height: 85px;
    padding-top: 0;
    padding-bottom: 0;
} */
.header.scrolled .header_content {
    height: 90px; /* Increased from 85px to accommodate full-size logo */
}

/* Logo container */
.logo {
    padding-top: 0;
    height: auto;
    width: auto;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}

/* Logo image */
.logo img {
    width: 80px;
    height: 75px;
    object-fit: contain;
    transition: all 0.4s ease;
}

/* Shrink logo when scrolled */
.header.scrolled .logo img {
    width: 60px;
    height: 56px;
}

/* Navigation links color change on scroll */
.header.scrolled .main_nav ul li a {
    color: #004b84;
}

.header.scrolled .main_nav ul li a:hover,
.header.scrolled .main_nav ul li.active a {
    color: #c40000;
}

/* Main navigation positioning */
.main_nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.main_nav ul li a
{
	font-family: "popins", sans-serif;
	font-size: 20px;
	font-weight: 600;
	/* color: #404040; */
	color: #d6e7f7;
	white-space: nowrap;
}
.main_nav ul li a:hover,
.main_nav ul li.active a
{
	/* color: #d40808; */
}
.main_nav ul li:not(:last-child)
{
	margin-right: 33px;
}
.work_hours
{
	font-size: 15px;
	font-weight: 600;
	color: #404040;
	margin-right: 26px;
	white-space: nowrap;
}
.header_phone
{
	height: 46px;
	border-radius: 20px;
	background: #57ccc3;
	padding-left: 40px;
	padding-right: 36px;
	line-height: 46px;
	font-size: 14px;
	font-weight: 600;
	color: #FFFFFF;
	margin-right: 12px;
}
.header_phone::selection
{
	background: rgba(64,64,64,0.75);
}
.header_button
{
	margin-right: 16px;
}
.social ul li
{
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #e6ebf1;
	-webkit-transition: all 200ms ease;
	-moz-transition: all 200ms ease;
	-ms-transition: all 200ms ease;
	-o-transition: all 200ms ease;
	transition: all 200ms ease;
}
.social ul li:hover
{
	background: #57ccc3;
}
.social ul li:hover a i
{
	color: #FFFFFF;
}
.social ul li:not(:last-of-type)
{
	margin-right: 15px;
}
.social ul li a
{
	display: block;
	width: 100%;
	height: 100%;
	line-height: 34px;
	text-align: center;
}
.social ul li a i
{
	font-size: 16px;
	color: #404040;
	-webkit-transition: all 200ms ease;
	-moz-transition: all 200ms ease;
	-ms-transition: all 200ms ease;
	-o-transition: all 200ms ease;
	transition: all 200ms ease;
}
.hamburger
{
	display: none;
	cursor: pointer;
	border: solid 1px transparent;
	border-radius: 7px;
	-webkit-transition: all 200ms ease;
	-moz-transition: all 200ms ease;
	-ms-transition: all 200ms ease;
	-o-transition: all 200ms ease;
	transition: all 200ms ease;
}
.hamburger:hover
{
	border: solid 1px rgba(0,0,0,0.05);
}
.hamburger i
{
	font-size: 20px;
	color: #404040;
	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 7px;
	padding-right: 7px;
}

/*********************************
4. Menu
*********************************/

/* .menu
{
	position: fixed;
	top: 0;
	right: -350px;
	width: 350px;
	height: 100vh;
	background: #57ccc3;
	z-index: 102;
	padding-left: 30px;
	padding-right: 30px;
	padding-top: 50px;
} */
.menu.active
{
	right: 0;
}
.menu_overlay
{
	position: fixed;
	top: 0;
	right: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(255,255,255,0.75);
	z-index: 101;
	visibility: hidden;
	opacity: 0;
}
.menu_overlay.active
{
	visibility: visible;
	opacity: 1;
}
.menu_close_container
{
	position: absolute;
    top: 41px;
    left: 28px;
    width: 18px;
    height: 18px;
    transform-origin: center center;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    cursor: pointer;
    z-index: 1;
}
.menu_close
{
    width: 100%;
    height: 100%;
    transform-style: preserve-3D;
}
.menu_close div
{
    width: 100%;
    height: 2px;
    background: #FFFFFF;
    top: 8px;
    -webkit-transition: all 200ms ease;
    -moz-transition: all 200ms ease;
    -ms-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
}
.menu_close div:last-of-type
{
    -webkit-transform: rotate(90deg) translateX(-2px);
    -moz-transform: rotate(90deg) translateX(-2px);
    -ms-transform: rotate(90deg) translateX(-2px);
    -o-transform: rotate(90deg) translateX(-2px);
    transform: rotate(90deg) translateX(-2px);
    transform-origin: center;
}
.menu_close:hover div
{
    background: #1befc5;
}
.menu_nav
{
	margin-top: 75px;
}
.menu_nav ul li:not(:last-child)
{
	margin-bottom: 1px;
}
.menu_nav ul li a
{
	font-size: 24px;
	font-weight: 500;
	color: rgba(255,255,255,0.75);
}
.menu_nav ul li a:hover
{
	color: #1befc5;
}
.menu_social
{
	position: absolute;
	bottom: 30px;
	left: 30px;
}
.menu_social ul li:hover
{
	background: #404040;
}
.menu_social ul li:hover a i
{
	color: #FFFFFF;
}
.menu_extra
{
	margin-top: 50px;
}
.menu_extra > div:not(:last-child)
{
	margin-bottom: 5px;
}
.menu_link,
.menu_link a
{
	font-size: 13px;
	font-weight: 500;
	color: rgba(255,255,255,0.75);
}
.menu_link a:hover
{
	color: #FFFFFF;
}

body {
	font-family: Arial, sans-serif;
	background: #f8f8f8;
  }

/*********************************
5. Home
*********************************/
.home
{
	width: 100%;
	height: 450px;
	margin-bottom: 0; /* Remove bottom margin */
}
.home_overlay
{
	z-index: 1;
}
.home_overlay img
{
	max-width: 100%;
	opacity: 0.5;
}
.home_container
{
	width: 100%;
	/* background-color: linear-gradient(#a30505, #05319c); */
	background: linear-gradient(to top right, #a30505, #05319c);
	position: absolute;
	top: 0;
	/* -webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	transform: translateY(-50%); */
	left: 0;
	height: 100%;
	padding-top: 180px; /* Added to account for header height */
	margin-bottom: 0; /* Remove bottom margin */
}
.home_content
{
	max-width: 700px;
}
.home_title
{
	font-size: 60px;
	line-height: 1.2;
	font-weight: 500;
	/* color: #1d1d1d; */
	color: #d6e7f7;
}
.home_text
{
	font-size: 14px;
	font-weight: 500;
	/* color: #828282; */
	color: white;
	margin-top: 5px;
}
  .quiz_container {
	/* display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	top: 50%; */
	display: flex;
	flex-direction: column; /* Changed from default to column */
	justify-content: center;
	align-items: center;
	padding: 20px;
	min-height: 100vh;
	top: 50%;
	/* background-color: #f8f8f8; */
	background: transparent;
  }
  .quiz_card {
	/* background: white;
	/* background: #c40000; */
	/* border-radius: 12px;
	padding: 30px;
	width: 600px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	text-align: center; */
	background: white; 
	border-radius: 12px;
	padding: 30px;
	width: 600px;
	max-width: 90%; /* Added for responsiveness */
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	text-align: center;
  }

  h2 { margin-bottom: 20px; }
  #answers label {
	display: block;
	background: #f1f1f1;
	margin: 8px 0;
	padding: 10px;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.3s;
	text-align: left;
  }
  #answers {
	color: #a10000;
  }
 
  #answers label:hover {
	background: #e0e0e0;
  }
  .quiz_buttons {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
  }
  .quiz_buttons button {
	background: #c40000;
	/* background-color: white; */
	/* color: #c40000; */
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
  }
  .quiz_buttons button:disabled {
	background: #ccc;
  }
  .score {
	font-size: 1.3em;
	margin-top: 20px;
	color: #333;
  }

  .scenario {
	padding: 60px 0;
    background: linear-gradient(135deg, #004b84 0%, #006ba8 100%);
    margin-top: 0 !important; /* Remove top margin */
    padding-top: 40px; /* Reduce top padding */
  }

  /* .scenario-description {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    top: 80%;
  } */

  .scenario-text {
    flex: 1;
    margin-right: 30px;
  }

  .scenario-text p {
    margin-bottom: 8px;
    line-height: 1.5;
  }

  table {
    border-collapse: collapse;
    width: 320px;
    font-size: 14px;
  }

  th, td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: left;
  }

  th {
    background: #ecf0f1;
  }
  .scenario-images {
	top: 75%;
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: center;
	/* margin-bottom: 5px; */
	background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  .left-images {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	flex: 1;
  }
  
  .left-images img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	object-fit: cover;
  }
  
  .right-image {
	flex: 1;
	display: flex;
	justify-content: center;
  }
  
  .right-image img {
	width: 100%;
	max-height: 400px;
	object-fit: cover;
	border-radius: 8px;
  }

  .score-text {
  font-size: 1.5em;
  margin-bottom: 25px;
  color: #333;
  font-weight: 600;
}

.navigation-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.nav-button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
}

.scenario-button {
  /* background: #c40000;
  color: white;
  border: 2px solid #c40000; */
  background: white;
  color: #c40000;
  border: 2px solid #c40000;
}

.scenario-button:hover {
  /* background: #a10000;
  border-color: #a10000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 0, 0, 0.3); */
  background: #c40000;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 0, 0, 0.3);
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
  .navigation-buttons {
    flex-direction: column;
  }
  
  .nav-button {
    width: 100%;
  }
}

/* Updated Scenario Description Styles */
.scenario-description {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin: 0 auto 40px;
  max-width: 1400px;
  width: 95%;
}

.description-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 25px;
}

/* Left Column Styles */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.cas-clinique h4,
.bilan-biologique h4,
.ecg-section h4,
.ett-section h4 {
  color: #c40000;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 2px solid #c40000;
  padding-bottom: 8px;
}

.cas-clinique p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
  color: #353535;
}

.bilan-biologique table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bilan-biologique table th {
  background: #c40000;
  color: white;
  font-weight: 600;
  padding: 10px 8px;
  text-align: left;
}

.bilan-biologique table td {
  padding: 8px;
  border: 1px solid #ddd;
  color: black;
}

.bilan-biologique table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

/* Right Column Styles */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.ecg-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ecg-section ul li {
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid #f0f0f0;
  color: #353535;
}

.ecg-section ul li:last-child {
  border-bottom: none;
}

.ecg-section .conclusion {
  margin-top: 12px;
  padding: 12px;
  background: #f0f8ff;
  border-left: 4px solid #c40000;
  font-size: 14px;
  line-height: 1.6;
  color: #353535;
}

.ett-section p {
  font-size: 14px;
  line-height: 1.6;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 6px;
  color: #353535;
}

/* Risk Assessment Row */
.risk-assessment {
  background: linear-gradient(135deg, #c40000 0%, #a10000 100%);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin-top: 20px;
}

.risk-assessment p {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .description-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .scenario-description {
    width: 90%;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .scenario-description {
    width: 95%;
    padding: 15px;
  }
  
  .bilan-biologique table {
    font-size: 12px;
  }
  
  .bilan-biologique table th,
  .bilan-biologique table td {
    padding: 6px 4px;
  }
  
  .ecg-section ul li {
    font-size: 12px;
  }
  
  .risk-assessment p {
    font-size: 14px;
  }
}
/* Info card specific styling */
#infoCardForQ3 {
  width: 95%; 
  max-width: 1000px; 
  margin-bottom: 30px; 
  order: -1; 
}

#infoCardForQ3 h4 {
  text-align: center;
  margin-bottom: 20px;
  color: #404040;
  font-size: 22px;
}
/*********************************
Scenario 5 - MAPA Results Section - FIXED Scrolling
*********************************/

/* MAPA Values Section */
.mapa-values-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
    width: 100%;
}

.mapa-values-section h5 {
    color: #c40000;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: left;
}

/* CRITICAL FIX: Table wrapper must have overflow and proper width */
.mapa-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    display: block;
}

/* CRITICAL FIX: Table must have min-width larger than container */
.mapa-values-table {
    width: max-content; /* This ensures the table takes its natural width */
    min-width: 600px; /* Force minimum width to trigger scroll */
    border-collapse: collapse;
    font-size: 12px;
    background: white;
    table-layout: auto;
}

.mapa-values-table thead th {
    background: #c40000;
    color: white;
    font-weight: 600;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #a10000;
    white-space: nowrap;
    font-size: 12px;
}

.mapa-values-table tbody td {
    padding: 8px;
    border: 1px solid #ddd;
    color: #353535;
    vertical-align: middle;
    font-size: 12px;
    white-space: nowrap; /* Prevent text wrapping to maintain width */
}

.mapa-values-table .category-cell {
    background: #f5f5f5;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.mapa-values-table .highlight-cell {
    background: #fff3cd;
    font-weight: 700;
    color: #c40000;
    font-size: 13px;
    text-align: center;
}

/* Activity Journal Table - also needs proper scrolling */
.table-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    display: block;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
}

.table-container table th {
    background: #c40000;
    color: white;
    font-weight: 600;
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}

.table-container table td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    color: #353535;
}

/*********************************
Mobile Responsive (max-width: 768px)
*********************************/
@media only screen and (max-width: 768px) {
    
    /* Info Card */
    #infoCardForQ3 {
        width: 100%;
        padding: 12px;
        border-radius: 8px;
    }
    
    #infoCardForQ3 h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    /* Force single column layout */
    #infoCardForQ3 > div:first-of-type {
        display: flex ! important;
        flex-direction: column ! important;
        gap: 15px;
    }
    
    /* MAPA Values Section - Mobile */
    .mapa-values-section {
        width: 100%;
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .mapa-values-section h5 {
        font-size: 14px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* CRITICAL: Wrapper with constrained width for scroll to work */
    .mapa-table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: scroll ! important; /* Force scroll */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        display: block;
        padding-bottom: 10px;
    }
    
    /* CRITICAL: Table must be wider than container */
    .mapa-values-table {
        width: max-content;
        min-width: 580px ! important; /* Larger than mobile screen */
        font-size: 11px;
        table-layout: auto;
    }
    
    .mapa-values-table thead th {
        padding: 8px 6px;
        font-size: 10px;
        white-space: nowrap;
    }
    
    .mapa-values-table tbody td {
        padding: 6px 5px;
        font-size: 10px;
        white-space: nowrap;
    }
    
    .mapa-values-table .category-cell {
        font-size: 10px;
        min-width: 90px;
    }
    
    .mapa-values-table .highlight-cell {
        font-size: 11px;
    }
    
    /* Add visual scroll indicator */
    .mapa-table-wrapper::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 10px;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
        pointer-events: none;
        z-index: 1;
    }
    
    /* Scroll hint text */
    .mapa-table-wrapper::after {
        content: '← Glissez pour voir plus →';
        display: block;
        text-align: center;
        font-size: 11px;
        color: #666;
        padding: 8px 0 0;
        font-style: italic;
    }
    
    /* Activity Journal Table - Mobile */
    .table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-container table {
        width: 100%;
        min-width: 280px;
        font-size: 12px;
    }
    
    .table-container table th,
    .table-container table td {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/*********************************
Small Mobile (max-width: 480px)
*********************************/
@media only screen and (max-width: 480px) {
    
    #infoCardForQ3 {
        padding: 10px;
    }
    
    #infoCardForQ3 h4 {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .mapa-values-section h5 {
        font-size: 13px;
    }
    
    /* Even stricter scroll settings for small screens */
    .mapa-table-wrapper {
        width: 100%;
        max-width: calc(100vw - 44px); /* Account for padding */
        overflow-x: scroll !important;
    }
    
    .mapa-values-table {
        min-width: 550px !important;
        font-size: 10px;
    }
    
    .mapa-values-table thead th {
        padding: 6px 4px;
        font-size: 9px;
    }
    
    .mapa-values-table tbody td {
        padding: 5px 4px;
        font-size: 9px;
    }
    
    .mapa-values-table .ategory-cell {
        min-width: 80px;
        font-size: 9px;
    }
    
    .table-container table {
        font-size: 11px;
    }
    
    .table-container table th,
    .table-container table td {
        padding: 6px 8px;
    }
}

/*********************************
Quiz Card Responsive
*********************************/
@media only screen and (max-width: 768px) {
    .quiz_container {
        padding: 15px 10px;
    }
    
    .quiz_card {
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .quiz_card h4 {
        font-size: 16px;
        line-height: 1.5;
    }
    
    #answers label {
        font-size: 13px;
        padding: 12px 10px;
        margin: 6px 0;
    }
    
    .quiz_buttons {
        flex-direction: row;
        gap: 10px;
    }
    
    .quiz_buttons button {
        flex: 1;
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media only screen and (max-width: 480px) {
    .quiz_card {
        padding: 15px 12px;
    }
    
    .quiz_card h4 {
        font-size: 14px;
    }
    
    #answers label {
        font-size: 12px;
        padding: 10px 8px;
    }
    
    .quiz_buttons button {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Lightbox/Modal styles for image expansion */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease;
}

.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.2);
  color: #c40000;
}

@keyframes zoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Add cursor pointer to clickable images */
#infoCardForQ3 img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#infoCardForQ3 img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(196, 0, 0, 0.3);
}

/* Add a zoom icon indicator */
.images-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.image-wrapper {
  position: relative;
}

.image-wrapper::after {
  content: '🔍';
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(196, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 50%;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.image-wrapper:hover::after {
  opacity: 1;
}

/* Score Card Styling */
.score-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0. 1);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.score-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.score-trophy {
  font-size: 50px;
  color: #ffd700;
  margin-bottom: 15px;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.score-title {
  font-size: 28px;
  font-weight: 700;
  color: #404040;
  margin: 0;
}

.score-result {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin: 25px 0;
  gap: 5px;
}

.score-number {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
}

.score-separator {
  font-size: 48px;
  font-weight: 600;
  opacity: 0.6;
}

.score-total {
  font-size: 48px;
  font-weight: 600;
  opacity: 0.8;
}

.score-message {
  font-size: 20px;
  font-weight: 600;
  margin: 20px 0 30px;
}

.score-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.score-actions .navigation-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.score-actions .nav-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
  justify-content: center;
}

.score-actions .scenario-button {
  background: white;
  color: #c40000;
  border: 2px solid #c40000;
}

.score-actions .scenario-button:hover {
  background: #c40000;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 0, 0, 0.3);
}

.score-actions .argumentation-button {
  background: white;
  color: #004b84;
  border: 2px solid #004b84;
}

.score-actions .argumentation-button:hover {
  background: #004b84;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 75, 132, 0.3);
}

.retake-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0. 4);
  margin: 0 auto;
}

.retake-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.retake-button:active {
  transform: translateY(-1px);
}

.retake-button i {
  font-size: 18px;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.retake-button:hover i {
  animation-duration: 0.5s;
}

/* Responsive design for score card */
@media (max-width: 600px) {
  .score-card {
    padding: 30px 20px;
  }
  
  .score-title {
    font-size: 24px;
  }
  
  .score-number {
    font-size: 56px;
  }
  
  .score-separator,
  .score-total {
    font-size: 36px;
  }
  
  .score-actions .navigation-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .score-actions .nav-button {
    width: 100%;
    min-width: auto;
  }
  
  .retake-button {
    width: 100%;
  }
}

/* MAPA Values Table Styling */
.mapa-values-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
}

.mapa-values-section h5 {
  color: #c40000;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: left;
}

.mapa-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mapa-values-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: white;
}

.mapa-values-table thead th {
  background: #c40000;
  color: white;
  font-weight: 600;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid #a10000;
}

.mapa-values-table tbody td {
  padding: 10px 8px;
  border: 1px solid #ddd;
  color: #353535;
  vertical-align: middle;
}

.mapa-values-table .category-cell {
  background: #f5f5f5;
  font-weight: 600;
  text-align: left;
}

.mapa-values-table .highlight-cell {
  background: #fff3cd;
  font-weight: 700;
  color: #c40000;
  font-size: 14px;
  text-align: center;
}

.mapa-values-table tbody tr:hover {
  background: #f9f9f9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mapa-values-table {
    font-size: 10px;
  }
  
  .mapa-values-table thead th,
  .mapa-values-table tbody td {
    padding: 6px 4px;
  }
}
/*********************************
Mobile Responsive Styles
*********************************/

 /* Change Menu Background to match home gradient */
.menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: linear-gradient(to top right, #a30505, #05319c);
    z-index: 102;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 50px;
}

/* Tablet and below */
@media only screen and (max-width: 991px) {
    
    .header_content {
        padding-left: 30px;
        padding-right: 30px;
        height: 80px;
    }
    
    .main_nav {
        display: none;
    }
    
    .logo img {
        width: 60px;
        height: 56px;
    }
    
    /* FIX: Home section visibility */
    .home {
        height: auto;
        min-height: 550px;
    }
    
    .home_slider_container {
        height: auto;
        min-height: 550px;
    }
    
    .owl-carousel,
    .owl-stage-outer,
    .owl-stage,
    .owl-item {
        height: auto ! important;
        min-height: 550px;
    }
    
    .home_container {
        position: relative;
        padding-top: 100px;
        padding-bottom: 40px;
        min-height: 550px;
    }
    
    .home_content {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 40px;
        padding-bottom: 40px;
        text-align: center;
    }
    
    .home_subtitle {
        font-size: 50px;
    }
    
    .home_title {
        font-size: 22px;
        white-space: normal;
        line-height: 1.4;
    }
    
    .home_text {
        margin-top: 20px;
        max-width: 100%;
    }
    
    .home_text p {
        font-size: 14px;
    }
    
    /* FIX: Center the button */
    .home_buttons {
        margin-top: 25px;
        justify-content: center;
    }

    /* FIX: Hamburger - Always visible with WHITE icon */
    .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        cursor: pointer;
        z-index: 99;
    }
    
    .hamburger i {
        font-size: 28px;
        color: #FFFFFF ! important;
    }
    
    .header.scrolled .hamburger i {
        color: #004b84 !important;
    }
    
    /* Menu adjustments */
    .menu {
        width: 300px;
        right: -300px;
    }
    
    /* FIX: Footer responsive */
    .footer_content {
        padding-top: 50px;
        padding-bottom: 40px;
    }
    
    .footer_col {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer_col img {
        max-width: 200px;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    
    .footer_about {
        padding-left: 0;
        padding-top: 10px;
    }
    
    .footer_contact {
        padding-left: 0;
        padding-top: 10px;
    }
    
    .footer_title {
        font-size: 24px;
    }
}

/* Mobile devices */
@media only screen and (max-width: 767px) {
    
    .header_content {
        padding-left: 20px;
        padding-right: 20px;
        height: 70px;
    }
    
    .header.scrolled .header_content {
        height: 60px;
    }
    
    .logo img {
        width: 50px;
        height: 47px;
    }
    
    .header.scrolled .logo img {
        width: 45px;
        height: 42px;
    }
    
    /* FIX: Home section for mobile */
    .home {
        height: auto;
        min-height: 500px;
    }
    
    .home_slider_container {
        min-height: 500px;
    }
    
    .owl-carousel,
    .owl-stage-outer,
    .owl-stage,
    .owl-item {
        min-height: 500px;
    }
    
    .home_container {
        padding-top: 80px;
        padding-bottom: 30px;
        min-height: 500px;
    }
    
    .home_content {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 30px;
        padding-bottom: 30px;
        text-align: center;
    }
    
    .home_subtitle {
        font-size: 36px;
        margin-bottom: 8px;
    }
    
    .home_title {
        font-size: 18px;
        white-space: normal;
        line-height: 1.5;
    }
    
    .home_text {
        margin-top: 15px;
        max-width: 100%;
    }
    
    .home_text p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    /* FIX: Center button on mobile */
    .home_buttons {
        margin-top: 20px;
        justify-content: center;
    }
    
    .button_1 a {
        padding-left: 25px;
        padding-right: 25px;
        font-size: 12px;
    }
    
    .button {
        height: 42px;
    }
    
    .button a {
        line-height: 38px;
    }

    /* Hamburger for mobile */
    .hamburger {
        display: flex !important;
        width: 40px;
        height: 40px;
    }
    
    .hamburger i {
        font-size: 26px;
        color: #FFFFFF ! important;
    }
    
    /* Mobile menu */
    .menu {
        width: 280px;
        right: -280px;
    }
    
    .menu_nav ul li a {
        font-size: 20px;
    }
    
    /* FIX: Footer for mobile */
    .footer_content {
        padding-top: 40px;
        padding-bottom: 30px;
    }
    
    .footer_col {
        text-align: center;
        margin-bottom: 25px;
    }
    
    .footer_col:last-child {
        margin-bottom: 0;
    }
    
    .footer_col img {
        max-width: 180px;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    
    .footer_about {
        padding-left: 0;
        padding-top: 0;
    }
    
    .footer_logo {
        text-align: center;
    }
    
    .footer_about_text {
        margin-top: 20px;
    }
    
    .footer_contact {
        padding-left: 0;
        padding-top: 0;
    }
    
    .footer_title {
        font-size: 22px;
    }
    
    .contact_list {
        margin-top: 15px;
    }
    
    .contact_list li {
        font-size: 14px;
    }
    
    /* Intro section for mobile */
    .intro {
        padding-top: 30px;
        padding-bottom: 50px;
    }
    
    .intro_form_container {
        padding-top: 20px;
        padding-left: 0;
    }
    
    .intro_form_container img {
        max-width: 200px;
        height: auto;
    }
    
    .section_title h2 {
        font-size: 28px;
    }
}

/* Small mobile devices */
@media only screen and (max-width: 480px) {
    
    .header_content {
        padding-left: 15px;
        padding-right: 15px;
        height: 60px;
    }
    
    .header.scrolled .header_content {
        height: 55px;
    }
    
    .logo img {
        width: 45px;
        height: 42px;
    }
    
    .header.scrolled .logo img {
        width: 40px;
        height: 37px;
    }
    
    /* FIX: Home section for small mobile */
    .home {
        min-height: 450px;
    }
    
    .home_slider_container {
        min-height: 450px;
    }
    
    .owl-carousel,
    .owl-stage-outer,
    .owl-stage,
    .owl-item {
        min-height: 450px;
    }
    
    .home_container {
        padding-top: 70px;
        min-height: 450px;
    }
    
    .home_content {
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 25px;
        padding-bottom: 25px;
        text-align: center;
    }
    
    .home_subtitle {
        font-size: 28px;
    }
    
    .home_title {
        font-size: 16px;
    }
    
    .home_text p {
        font-size: 12px;
    }
    
    /* FIX: Center button on small mobile */
    .home_buttons {
        justify-content: center;
    }
    
    .button_1 a {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 11px;
    }
    
    .button {
        height: 38px;
    }
    
    .button a {
        line-height: 34px;
    }

    /* Hamburger for small mobile */
    .hamburger {
        display: flex !important;
        width: 35px;
        height: 35px;
    }
    
    .hamburger i {
        font-size: 24px;
        color: #FFFFFF !important;
    }
    
    /* Full width menu on small screens */
    .menu {
        width: 100%;
        right: -100%;
    }
    
    /* FIX: Footer for small mobile */
    .footer_content {
        padding-top: 30px;
        padding-bottom: 25px;
    }
    
    .footer_col {
        margin-bottom: 20px;
    }
    
    .footer_col img {
        max-width: 150px;
    }
    
    .footer_logo a > div:first-child {
        font-size: 24px;
    }
    
    .footer_logo a > div:last-child {
        font-size: 13px;
    }
    
    .footer_title {
        font-size: 20px;
    }
    
    .footer_about_text p {
        font-size: 13px;
    }
    
    .contact_list li {
        font-size: 13px;
        word-break: break-all;
    }
    
    /* Intro for small mobile */
    .intro {
        padding-top: 20px;
        padding-bottom: 40px;
    }
    
    .section_title h2 {
        font-size: 24px;
    }
    
    .intro_text p {
        font-size: 13px;
        line-height: 1.8;
    }
    
    .intro_form_container {
        padding-top: 15px;
    }
    
    .intro_form_container img {
        max-width: 150px;
    }
}