/* style.css */

@font-face {
    font-family: 'Guildford Pro';
    src: url('fonts/GuildfordPro-Bold.woff2') format('woff2'),
        url('fonts/GuildfordPro-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rooney Sans';
    src: url('fonts/RooneySans-Regular.woff2') format('woff2'),
        url('fonts/RooneySans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rooney Sans';
    src: url('fonts/RooneySans-Bold.woff2') format('woff2'),
        url('fonts/RooneySans-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base */
body {
	margin: 0;
	padding: 0;
	background-color: #f9f9f9;
	color: #333;
	font-family: 'Rooney Sans', sans-serif;
}

/* Layout */
header, footer {
	background-color: #2c3e50;
	color: white;
	text-align: center;
	padding: 1em;
}

main {
	padding: 1em;
	overflow-x: auto;
}

header h1{
	font-size:44px;
	font-family: 'Guildford Pro', sans-serif;
}


.content{
	max-width: 1000px;
	margin: 0 auto;
}

/* Footer links */
footer a {
	color: white;
	text-decoration: underline;
}

footer a:hover,
footer a:focus {
	text-decoration-style: dashed;
}


/* Hero section */
.hero {
	background-image: url('images/camion-bourse-de-fret.avif');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	height: 40vh;
	position: relative;
	display: flex;
	align-items: flex-start;
	padding: 1em;
	z-index: 1;
}

.logo-hero {
	max-width: 250px;
	height: auto;
	z-index: 2;
	border-radius: 15px;
}

/* Table styles */
table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1em;
	background-color: white;
	box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

thead {
	background-color: #2c3e50;
	color: white;
}

td, th {
	padding: 0.75em;
	border: 1px solid #ddd;
	text-align: center;
	font-size: 0.95em;
}

th{
	font-size:20px;
	font-weight: bold;
}

td a {
	white-space: nowrap;
}

/* Links */
a {
	color: #2980b9;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Media Queries */
@media (min-width: 768px) {
	.hero {
		/* background-attachment: fixed; */
	}
}

@media (max-width: 768px) {
	th, td {
		font-size: 0.85em;
		padding: 0.5em;
	}
}

@media (max-width: 600px) {
	.hero {
		height: 25vh;
		padding: 0.5em;
	}

	.logo-hero {
		max-width: 200px;
	}

	header h1 {
		font-size: 24px;
	}

	/* Table responsive */
	table, thead, tbody, th, td, tr {
		display: block;
		width: 100%;
	}

	thead {
		display: none;
	}

	tr {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		margin-bottom: 1em;
		background-color: #fff;
		border: 1px solid #ccc;
		padding: 0.5em;
		box-shadow: 0 2px 5px rgba(0,0,0,0.1);
		border-radius: 6px;
	}

	td {
		flex-basis: 50%;
		padding: 0.5em;
		border: none;
		position: relative;
	}

	td::before {
		content: attr(data-label);
		font-weight: bold;
		display: block;
		margin-bottom: 0.3em;
		color: #444;
		font-size: 0.9em;
	}

	th{
		font-size:18px;
	}
}

@media (max-width: 480px) {
	table {
		font-size: 1em;
	}
	
}

.error-page {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-page h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.error-page p {
    color: #666;
    margin-bottom: 1.5rem;
}

.error-page a {
    color: #0066cc;
    text-decoration: none;
}

.error-page a:hover {
    text-decoration: underline;
}