html {
	--accentuation: #64b5e5;
	--accentuation_sombre: #2392d3;
	--accentuation_clair: #c1e1f5;
	--texte_accentuation: #000;
	--bleu_nuit: #0a0082;
	--anthracite: #25303b;
}

@font-face {
    font-family: 'parisine-std';
    src: url('/assets/fonts/parisine-regular.woff2') format('woff2'),
         url('/assets/fonts/parisine-regular.woff') format('woff');
    font-weight: normal;
}
@font-face {
    font-family: 'parisine-std';
    src: url('/assets/fonts/parisine-bold.woff2') format('woff2'),
         url('/assets/fonts/parisine-bold.woff') format('woff');
    font-weight: bold;
}
@font-face {
    font-family: 'parisine-std';
    src: url('/assets/fonts/parisine-italic.woff2') format('woff2'),
         url('/assets/fonts/parisine-italic.woff') format('woff');
	font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'parisine-std';
    src: url('/assets/fonts/parisine-bolditalic.woff2') format('woff2'),
         url('/assets/fonts/parisine-bolditalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

html, body{
	margin: 0;
	padding: 0 5px;
	font-family: "parisine-std", sans-serif;
	background-image: url('/assets/icons/motif.jpg');
	background-repeat: repeat;
	background-size: 150px;
	padding-top: 37px;
}

.centered{
	text-align: center;
}

.header {
	background-color: var(--accentuation);
	color: var(--texte_accentuation);
	text-align: center;
	text-decoration: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.header h1 {
    font-size: 2em;
    margin: 10px;
}

.header p {
    position: absolute;
    right: 10px;
    font-size: 1.2em;
	cursor: pointer;
}

.header p:hover {
    text-decoration: underline;
}

.header a, a:hover, a:focus, a:active {
	text-decoration: none;
	color: inherit;
}

a {
	text-decoration: none;
}

#footer-container {
	background-color: var(--anthracite);
	color: white;
	padding: 10px !important;
	text-align: center;
	bottom: 0;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	margin-bottom: 0px;
	margin-top: 10px;
}

#footer-container a {
	color: #dc9600;
	text-decoration: underline;
}

.svg-container {
	overflow: auto;
	align-content: center;
	padding: 5px;
}

.svg-container img {
	height: 60px;
	margin: 8px 8px 0px 0px;
}

.container {
	display: grid;
	grid-template-columns: auto 1fr; /* Deux colonnes : icônes (auto) + texte (1fr) */
	align-items: center; /* Alignement vertical au centre */
	gap: 0.5em; /* Espacement entre les colonnes */
}

.container .integrated {
	display: flex;
	gap: 0.3em; /* Espacement entre les icônes */
	height: 1.75em; /* Hauteur de 2 lignes pour les icônes */
	align-items: stretch; /* Etire les icônes à la hauteur spécifiée */
}

.container .integrated img {
	height: 100%; /* Les icônes prendront 100% de la hauteur du conteneur */
	width: auto; /* Ajuste la largeur en fonction de la hauteur */
}

.integrated img {
	height: 1em;
	vertical-align: middle;
	position: relative;
	top: -0.1em;
}

/* #search-results .integrated {
	margin-right: 0.2em;
} */

#search-results .integrated:last-of-type {
	margin-right: 0px;
}

.inseparable {
	white-space: nowrap;
}

/* #search-results .inseparable {
	margin-right: 0.2em;
} */

.inseparable:last-of-type {
	margin-right: 0px;
}

.inseparable:first-of-type {
	margin-left: 0px;
}

.box object {
	display: block;
	width: 100%;
}

.box h2 {
	margin-bottom: 10px;
}

.box p {
	margin-top: -5px;
}

.box iframe {
	display: block;
	width: 100%; /* S'adapte à la largeur de la boîte */
	height: auto; /* Garde les proportions */
	aspect-ratio: 58/27;
	border-radius: 10px;
	margin-bottom: 5px !important;
	border: none;
}

.box:empty {
	display: none;
}

.sncf {
	aspect-ratio: 16/9 !important;
	pointer-events: none;
	overflow-y: hidden !important;
}

.tram {
	width: 100%;  /* Largeur de l'iframe */
	border: none;
	display: block;
}

@media (max-width: 568px) {
	.tram {
		height: 130px !important;
	}
}
@media (min-width: 568px) {
	.tram {
		height: 160px !important;
	}
}

.license {
	font-size: 11px;
	text-align: center;
	color: #888888;
	margin-top: 5px;
}

.image-center {
	display: block;
	margin-left: auto;
	margin-right: auto;
	align-self: center;
}

.box table {
	width: 100%;
	border-collapse: collapse;
	border-radius: 10px;
	overflow: hidden;
	word-break: break-word;
}

/* Suppression des bordures */
.box th, .box td {
	padding: 8px;
	font-weight: bold;
	border: none;
}

/* Lignes alternées pour les deux colonnes */
.box tr:nth-child(odd) .title {
	background-color: var(--accentuation_sombre);
}

.box tr:nth-child(even) .title {
	background-color: var(--accentuation);
}

.box tr:nth-child(odd) td:not(.title) {
	background-color: #f2f2f2; /* Gris clair */
}

.box tr:nth-child(even) td:not(.title) {
	background-color: #ffffff; /* Blanc */
}

/* Texte en blanc pour la colonne "title" */
.box td.title {
	color: black;
	text-align: right;
	font-weight: bold;
	word-break: keep-all;
}

/* Coins arrondis */
.box table tr:first-child td:first-child {
	border-top-left-radius: 10px;
}

.box table tr:first-child td:last-child {
	border-top-right-radius: 10px;
}

.box table tr:last-child td:first-child {
	border-bottom-left-radius: 10px;
}

.box table tr:last-child td:last-child {
	border-bottom-right-radius: 10px;
}

.gallery {
	text-align: center;
	width: 100%;
}

.gallery img {
	width: 100%;
	height: auto;
	max-width: 300px;
	max-height: 200px;
	aspect-ratio: 1 / 1; /* Les images seront carrées */
	object-fit: cover; /* Remplissage sans déformation */
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	margin: 5px;
}

.gallery img:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.blue-box {
	background-color: var(--bleu_nuit);
	color: white !important;
	border-radius: 5px;
	font-weight: bold;
	padding: 6px;
	display: inline-block;
	word-break: break-word;
	margin-bottom: 10px;
	width: fit-content;
}

.repere {
	border: 2px solid white;
	font-style: italic;
	display: inline-block;
	padding: 3px;
}

.ptinteret {
	background-color: #6e4823 !important;
	border-radius: 5px;
	font-style: italic;
	font-weight: bold;
	color: white !important;
	padding: 6px;
	display: inline-block;
}
.num-sortie {
	border: 1px solid white;
	padding: 3px;
	display: inline-block;
}

.blue-box .ptinteret {
	padding: 4px !important;
	border-radius: 0px;
}

.hovereffect {
	transition: transform 0.2s, box-shadow 0.2s;
}

.hovereffect:hover {
	transform: scale(0.85);
}

.footer-buttons {
	background-color: var(--accentuation);
	padding: 10px;
	border-top-right-radius: 10px;
	border-top-left-radius: 10px;
	text-align: center;
	color: white;
}
.footer-buttons h2 {
	margin-bottom: 20px;
	text-align: left;
}

.footer-buttons p a {
	color: #ffce00;
}

.buttons {
	display: flex;
	justify-content: center;
	gap: 20px;
}
.button {
	display: inline-block;
	text-decoration: none;
	font-size: 16px;
	font-weight: bold;
	color: white;
	padding: 10px 20px;
	border-radius: 5px;
	transition: background-color 0.3s ease, transform 0.3s ease;
}
.discord {
	background-color: #5865F2;
}
.discord:hover {
	background-color: #4752c4;
	transform: scale(1.1);
}
.metropolitor {
	background-color: var(--bleu_nuit);
	padding: 7px;
	margin-top: 5px;
	margin-bottom: 5px;
	border-radius: 10px;
	display: inline-block;
	color: white;
}
.metropolitor:hover {
	background-color: #05003e;
	color: white;
}
.metropolitor .integrated img {
	height: 1.5em;
	width: auto !important;
}
.metropolitor a {
	text-decoration: none;
	color: white;
}
.journal {
	background-color: #ff5a00;
}
.journal:hover {
	background-color: #b43f00;
	transform: scale(1.1);
}

.shadowed {
	filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.invert-colors {
	-webkit-filter: invert(1);
	filter: invert(1);
}

.terminus-box {
	background-color: var(--anthracite);
	color: white;
	font-weight: bold;
	padding: 10px;
	border-radius: 10px;
	margin-top: 10px;
	margin-bottom: 10px;
	width: 100%;
	max-width: 700px;
	display: inline-block;
	word-break: break-word;
	margin-bottom: 10px;
	width: fit-content
}

.train {
	font-size: 30px !important;
}

@media (max-width: 500px) {
	.terminus-box {
		font-size: 30px;
	}
	.train {
		font-size: 20px !important;
	}
}
@media (min-width: 400px) {
	.terminus-box {
		font-size: 5vw;
	}
	.train {
		font-size: 4vw !important;
	}
}
@media (min-width: 800px) {
	.terminus-box {
		font-size: 50px;
	}	
	.train {
		font-size: 30px !important;
	}
}

/* Pour le slideshow */
.slideshow-container {
	position: relative;
	max-width: 100%;
	height: 50vh;
	overflow: hidden;
	border-radius: 10px;
}

.slide {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity 0.75s ease-in-out;
	pointer-events: none;
}

.slide.active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fade {
	animation: fadeEffect 0.75s ease-in-out;
}

@keyframes fadeEffect {
	from { opacity: 0.4; }
	to { opacity: 1; }
}

.caption {
	position: absolute;
	bottom: 20px;
	left: 20px;
	background-color: rgba(0,0,0,0.5);
	color: white;
	padding: 8px 12px;
	font-size: 14px;
	border-radius: 4px;
}

.justified {
	text-align: justify;
}

.stationinput {
	border-radius: 10px;
	font-size: 1em;
	padding: 10px;
	font-family: "parisine-std", sans-serif;
	width: 100%;
	font-weight: bold;
	background-color: white;
	border: 2px solid black;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.stationinput::placeholder {
	font-weight: normal !important;
	font-style: italic;
}

.stationinput.active {
	opacity: 1;
	pointer-events: auto;
}

.searchbox {
	display: flex;
	flex-direction: row-reverse;
	gap: 5px;
}

.searchbtn {
	/* Create a button class */
	background-color: var(--accentuation);
	border: 2px solid var(--accentuation);
	padding: 10px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	margin: 4px 2px;
	cursor: pointer;
	border-radius: 10px;
	font-weight: bold;
	font-family: "parisine-std", sans-serif;
	min-width: 30px;
	height: auto;
	align-self: flex-end;
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
  justify-content: center;      /* Center horizontally */
  align-items: flex-start;      /* Prevent vertical stretching */
  max-width: 1500px;
  margin: 0 auto;
}

.row-home {
    column-count: 2;
    column-gap: 8px;
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 4px;
}

.column {
  flex: 50%;
  max-width: 50%;
  padding: 0 4px;
  box-sizing: border-box;
}

@media (max-width: 800px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
  .row-home {
	column-count: 1;
  }
}

.item {
    margin-bottom: 8px;
    width: 100%;
	break-inside: avoid;
}

.box {
	border: 4px solid black;
	padding: 10px;
	border-radius: 10px;
	margin-top: 10px;
	margin-bottom: 10px;
	width: 100%;
	max-width: 700px;
	background-color: white !important;
	box-sizing: border-box;
	max-width: none;
	word-break: break-word;
}

.box.sticky-left {
  break-after: column !important;
}

@keyframes blink {
	0%,50% {
		opacity: 0;
	}
	51%,100% {
		opacity: 1;
	}
}
.perturbation {
	animation: blink 1s;
	animation-iteration-count: infinite;
}

.info-trafic {
	max-height: 33.333vh;
	overflow-y: auto;
}

@media (max-height: 600px) {
	.info-trafic {
		max-height: 50vh;
	}
}

.no-margin {
	margin: 0 0;
}

.self-center {
	align-self: center;
}

.published-articles {
	font-family: 'Source Serif 4', serif;
}
.container {
	width: 85%;
	margin: 20px auto;
	background: white;
	padding: 30px;
	border-radius: 10px;
	box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.article {
	font-family: 'Source Serif 4', serif;
}
.article-img {
	max-height: 400px;
	max-width: 600px;
	max-width: 100%;
	border-radius: 10px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	margin-bottom: 10px !important;
	margin: 0 auto;
	display: block;
}
.date, .author, .sources {
	font-size: 16px;
	font-style: italic;
	color: #666;
}
.menu-déroulant {
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 5px;
    background-color: #fff;
}

.menu-déroulant a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
}

.menu-déroulant a:hover {
    background-color: #eee;
}
.gallery div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery .image-container {
    display: flex;
    flex-wrap: wrap;
	flex-direction: row;
    justify-content: center;
    gap: 8px; /* Espacement entre les images */
    width: 100%;
}

.gallery .license {
	/* margin-top: 7px; */
    /* margin-bottom: 10px !important; */
    text-align: center;
}
.error-message {
    background: #ffe0e0;
    color: #900;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 20px;
    font-family: sans-serif;
}
.ticket-container {
    background-color: #fff;
    border-radius: 10px;
    border: #000 5px solid;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
	overflow: hidden;
	margin: 0.5em;
	height: calc(100vh - 100px);
	border-width: 3px;
}

.ticket-container .messages {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 1em;
    overflow-y: auto;
    flex: 1;
    scroll-behavior: smooth;
	margin-top: 0.5em;
}

.ticket-container .message {
    margin: 0;
    background-color: #f0f0f0;
    padding: 0.8em 1em;
    border-radius: 10px;
    text-align: left;
    max-width: 80%;
    align-self: flex-start;
    word-wrap: break-word;
}

.ticket-container .message.me {
    text-align: right;
    align-self: flex-end;
    background-color: #e3f2fd;
}

.ticket-container .message-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0.3em;
    flex-wrap: wrap;
    gap: 0.5em;
}

.ticket-container .message.me .message-header {
    justify-content: flex-start;
}

.ticket-container .utilisateur {
    font-size: 1.1em;
    font-weight: bold;
    display: inline;
}

.ticket-container .date {
    font-size: 0.8em;
    color: #666;
    display: inline;
    margin-left: 0.5em;
}

.ticket-container .role {
    background-color: #0a0082;
    border-radius: 0.3em;
    color: #fff;
    padding: 0.2em 0.4em;
    font-size: 0.9em;
    font-weight: normal;
    display: inline-block;
    vertical-align: middle;
	margin-left: 0.3em;
	top: -0.1em;
	font-weight: bold;
}

.ticket-container .message p {
    font-size: 1em;
    margin: 0;
    line-height: 1.4;
}

.ticket-container .envoi {
    padding: 1em;
    border-top: 2px solid #f0f0f0;
	display: flex;
    gap: 1em;
    align-items: center;
	position: relative;
}

.ticket-container .envoi form {
    display: flex;
    gap: 1em;
    width: 100%;
    align-items: center;
}

.ticket-container .envoi input {
    flex: 1;
    height: 2.5em;
    font-size: 1em;
    background-color: #f8f9fa;
    color: #000;
    border: #ccc 2px solid;
    border-radius: 0.8em;
    padding: 0 1em;
    transition: border-color 0.3s ease;
}

.ticket-container .envoi input:focus {
    outline: none;
    border-color: #0a0082;
    background-color: #fff;
}

.ticket-container .envoi button {
    background-color: #0a0082;
    color: white;
    border: none;
    border-radius: 0.8em;
    padding: 0.7em 1.5em;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ticket-container .envoi .admin {
    background-color: #0a0082;
    color: white;
    border: none;
    border-radius: 2em;
    padding: 0.7em 0.5em;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ticket-container .envoi button:hover {
    background-color: #06004b;
}

/* Responsive design */
@media (max-width: 768px) {
	.ticket-container .message {
        max-width: 90%;
    }
    
    .ticket-container .messages {
        padding: 0.5em;
        gap: 0.8em;
    }
    
    .ticket-container .envoi {
        padding: 0.8em;
    }
    
    .ticket-container .envoi form {
        gap: 0.8em;
    }
    
    .ticket-container .message-header {
        gap: 0.3em;
    }
    
    .ticket-container .utilisateur,
    .ticket-container .date,
    .ticket-container .role {
        font-size: 0.9em;
    }
}

/* Scrollbar personnalisée */
.ticket-container .messages::-webkit-scrollbar {
    width: 6px;
}

.ticket-container .messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ticket-container .messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.ticket-container .messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
.ticket-container .nom {
	text-align: center;
	background-color: #e4e4e4;
	padding-bottom: 10px;
	padding-left: 10px;
	padding-right: 10px;
}
.ticket-container .nom .n {
	font-size: 1.7em;
}
.ticket-container .nom .etat {
	font-size: 1.2em !important;
}
.ticket-container .actionstaff {
	position: absolute;
	width: 10vw;
	background-color: #fff;
	border-radius: 10px;
	top: -7vh;
	border: #000 2px solid;
	padding: 0.4em;
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-start;
	align-items: center;
}
.svg-container .travaux:hover {
	background-color: rgba(0, 0, 0, 0.3);
}
strike {
	text-decoration-thickness: 0.15em;
}
.fermeture-ligne {
	background-color: #ff0000;
	color: #fff;
	font-size: 2em;
	text-align: center;
	margin: 10px 0;
	font-weight: bold;
	border-radius: 10px;
	padding: 10px;
}

.tab {
	overflow: hidden;
	border: none;
}

/* Style the buttons inside the tab */
.tab button {
	background-color: inherit;
	float: left;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 14px 16px;
	transition: 0.3s;
	font-size: large;
	font-family: 'parisine-std', sans-serif;
	color: black !important;
	text-decoration: none;
}

/* Change background color of buttons on hover */
.tab button:hover {
	background-color: var(--accentuation_clair);
}

/* Create an active/current tablink class */
.tab button.active {
	background-color: var(--accentuation);
	color: black !important;
}

/* Style the tab content */
.tabcontent {
	display: none;
	padding: 6px 12px;
	border: none;
	border-top: none;
}