:root{

body.dark .alert-frame-body,
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  padding: 10px 20px;
}

.navbar .logo {
  color: #fff;
  font-size: 22px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

.navbar ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.navbar ul li a.active {
  border-bottom: 2px solid yellow;
}

.profile-container {
  display: flex;
  padding: 20px;
  gap: 20px;
}

.profile-left {
  flex: 1;
  max-width: 300px;
}

.profile-card {
  background: var(--card);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.profile-img {
  width: 150px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin-bottom: 10px;
}

.profile-title {
  font-size: 20px;
  margin: 10px 0;
}

.profile-info p {
  margin: 8px 0;
}

.profile-right {
  flex: 3;
  background: var(--card);
  padding: 20px;
  border-radius: 10px;
}

.form-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 20px auto;
}

.form-box input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Import font Thuast */
@font-face {
  font-family: 'Thuast';
  src: url('../assets/fonts/Thuast.otf') format('opentype');
}

.alert-frame-top {
  background: var(--card);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.alert-title {
  font-family: 'Thuast', Arial, sans-serif;
  font-size: 28px;
  color: #222;
}

.alert-frame-body {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
}

.alert-subframes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 15px;
}

.alert-box {
  background: var(--card);
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-weight: bold;
}

.alert-box.small {
  grid-column: span 1;
}

.alert-box.large {
  grid-column: span 2;
}


/* Footer */
.site-footer {
  background: #f2f2f2; /* ou votre couleur */
  text-align: center;
  padding: 10px 0;
  margin-top: 30px;
  border-radius: 8px 8px 0 0;
}

body.dark .profile-card,
body.dark .profile-right,
body.dark .alert-frame-top,
body.dark .alert-frame-body,
body.dark .alert-box {
  background: #2b2b2b !important;  /* gris foncé uniforme */
  color: #d9d9d9 !important;       /* gris pâle */
}

body.dark .profile-title,
body.dark .profile-right h3,
body.dark .alert-title {
  font-family: 'BNdemo', Arial, sans-serif !important;
  color: #ffb84d !important; /* orange-jaune pâle */
}

/* Pour s'assurer que tous les paragraphes/info soient lisibles */
body.dark .profile-info p,
body.dark .alert-frame-body p {
  color: #d9d9d9 !important;
}

body.dark .site-footer {
  background: #181818 !important;
  color: #d9d9d9 !important;
}

/* Logo accueil */
.home-logo {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.home-logo img {
  max-width: 200px;
  height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .profile-container {
    flex-direction: column;
  }

  .alert-subframes {
    grid-template-columns: 1fr;
  }

  .home-logo img {
    max-width: 120px;
  }
}


/* Utilisation de Thuast pour titres et copyright */
.logo {
  font-family: 'Thuast', Arial, sans-serif;
}

.site-footer p {
  font-family: 'Thuast', Arial, sans-serif;
}

.profile-title {
  font-family: 'Thuast', Arial, sans-serif;
}

.profile-right h3 {
  font-family: 'Thuast', Arial, sans-serif;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.logo {
  font-size: 28px;
}
/***********************************************/
/* 2col_leftNav.css                            */
/* Use with template 2col_leftNav.html          */
/***********************************************/

/***********************************************/
/* HTML tag styles                             */
/***********************************************/ 

body{
	font-family: Arial,sans-serif;
	color: #333333;
	line-height: 1.166;	
	margin: 0px;
	padding: 0px;
}

a:link, a:visited, a:hover {
	color: #006699;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}
/* overrides decoration from previous rule for hovered links */

h1, h2, h3, h4, h5, h6 {
	font-family: Arial,sans-serif;
	margin: 0px;
	padding: 0px;
}

h1{
 font-family: Verdana,Arial,sans-serif;
 font-size: 120%;
 color: #334d55;
}

h2{
 font-size: 114%;
 color: #006699;
}

h3{
 font-size: 100%;
 color: #334d55;
}

h4{
 font-size: 100%;
 font-weight: normal;
 color: #333333;
}

h5{
 font-size: 100%;
 color: #334d55;
}

ul{
 list-style-type: square;
}

ul ul{
 list-style-type: disc;
}

ul ul ul{
 list-style-type: none;
}

label{
 font: bold 100% Arial,sans-serif;
 color: #334d55;
}
				

/***********************************************/
/* Layout Divs                                 */
/***********************************************/

#masthead{
	margin: 0;
	padding: 10px 0px;
	border-bottom: 1px solid #cccccc;
	width: 100%;
}


/* Nouveau layout pour alertes.php et pages flex */
#navBar2 {
 background-color: #eeeeee !important;
  border-right: 1px solid #ccc !important;
  border-bottom: 1px solid #ccc !important;
  width: 280px !important;
  min-width: 220px !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}

.iframe-container {
  flex: 1;
  height: 100vh;
  margin: 0;
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
}
.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  overflow: auto;
  display: block;
}

/* Responsive pour mobile */
@media (max-width: 900px) {
  .navbar ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
  #navBar {
    width: 100%;
    min-width: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #ccc;
  }
  .iframe-container {
    width: 100%;
    height: 60vh;
    border-radius: 0;
  }
}


/***********************************************/
/*Component Divs                               */
/***********************************************/

#siteName{
	margin: 0px;
	padding: 0px 0px 10px 10px;
}


/*************** #pageName styles **************/

#pageName{
	padding: 0px 0px 10px 10px;
}


/************* #globalNav styles **************/

#globalNav{
color: #cccccc;
padding: 0px 0px 0px 10px;
white-space: nowrap;
}

#globalNav img{
 display: block;
}

#globalNav a {
	font-size: 90%;
	padding: 0px 4px 0px 0px; 
}


/************* #breadCrumb styles *************/

#breadCrumb{
	font-size: 80%;
	padding: 5px 0px 5px 10px;
}


/************** .feature styles ***************/

.feature{
	padding: 0px 0px 10px 10px;
	font-size: 80%;
}

.feature h3{
	padding: 30px 0px 5px 0px;
	text-align: center;
}

.feature img{
	float: left;
	padding: 0px 10px 0px 0px;
	margin: 0 5px 5px 0;
}


/************** .story styles *****************/

.story{
	clear: both;
	padding: 10px 0px 0px 10px;
	font-size: 80%;
}

.story p{
	padding: 0px 0px 10px 0px;
}


/************* #siteInfo styles ***************/

#siteInfo{
	clear: both;
	border: 1px solid #cccccc;
	font-size: 75%;
	color: #cccccc;
	padding: 10px 10px 10px 10px;
	margin-top: -1px;
}


#siteInfo img{
	padding: 4px 4px 4px 0px;
	vertical-align: middle;
}


/************* #search styles ***************/

#search{
	padding: 5px 0px 5px 10px;
	border-bottom: 1px solid #cccccc;
	font-size: 90%;
}

#search form{
 margin: 0px;
 padding: 0px;
}

#search label{
	display: block;
	margin: 0px;
	padding: 0px;
}


/*********** #navBar link styles ***********/

#navBar ul a:link, #navBar ul a:visited {display: block;}
#navBar ul {list-style: none; margin: 0; padding: 0;}

/* hack to fix IE/Win's broken rendering of block-level anchors in lists */
#navBar li {border-bottom: 1px solid #EEE;}

/* fix for browsers that don't need the hack */
html>body #navBar li {border-bottom: none;}


/*********** #sectionLinks styles ***********/

#sectionLinks{
	position: relative;
	margin: 0px;
	padding: 0px;
	border-bottom: 1px solid #cccccc;
	font-size: 90%;
}

#sectionLinks h3{
	padding: 10px 0px 2px 10px;
}

#sectionLinks a:link{
	padding: 2px 0px 2px 10px;
	border-top: 1px solid #cccccc;
	width: 100%;
  voice-family: "\"}\""; 
  voice-family:inherit;
	width: auto;
}

#sectionLinks a:visited{
	border-top: 1px solid #cccccc;
	padding: 2px 0px 2px 10px;
}

#sectionLinks a:hover{
	border-top: 1px solid #cccccc;
	background-color: #dddddd;
	padding: 2px 0px 2px 10px;
}


/*********** .relatedLinks styles ***********/

.relatedLinks{
	margin: 0px;
	padding: 0px 0px 10px 10px;
	font-size: 90%;
}

.relatedLinks h3{
	padding: 10px 0px 2px 0px;
}


/************** #advert styles **************/

#advert{
	padding: 10px 0px 0px 10px;
	font-size: 80%;
	border-top: 1px solid #cccccc;
}

#advert img{
	display: block;
}


/************** #headlines styles **************/

#headlines{
	margin: 0px;
	padding: 10px 0px 20px 10px;
	font-size: 80%;
}

#headlines p{
	padding: 5px 0px 5px 0px;
}


.chat-header {
    background-color: #cc5500 !important; /* orange foncé */
}

#msg-popup-content {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px #0003;
  z-index: 9999;
  padding: 0;
}

#chat-messages {
  height: 220px;
  overflow-y: scroll;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  background: #fff;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: bold;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
  transition: background 0.2s;
}
.btn:hover {
  background: #1d4ed8;
}
.btn-secondary {
  background: #6a0dad;
}
.btn-secondary:hover {
  background: #4b0082;
}

#map {
    height: 400px;
    width: 600px;
    border-radius: 16px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
