/* Regular */
@font-face {
	font-family: 'Elegant Typewriter';
	src: url('/fonts/ELEGANTTYPEWRITERRegular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

/* Bold */
@font-face {
	font-family: 'Elegant Typewriter';
	src: url('/fonts/ELEGANTTYPEWRITERBold.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
}

/* Light */
@font-face {
	font-family: 'Elegant Typewriter';
	src: url('/fonts/ELEGANTTYPEWRITERLight.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
}

/* Italic */
@font-face {
	font-family: 'Elegant Typewriter';
	src: url('/fonts/ELEGANTTYPEWRITERItalic.ttf') format('truetype');
	font-weight: normal;
	font-style: italic;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Elegant Typewriter', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #e67e22;
	background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
	min-height: 100vh;
}

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

/* Header */
header {
	background: rgba(20, 20, 20, 0.95);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
	transition: all 0.3s ease;
}
/* Main */
main.container {
	margin-top: 100px;
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

.logo {
	font-size: 1.8rem;
	font-weight: bold;
	color: #e67e22;
	text-decoration: none;
	transition: color 0.3s ease;
}

.logo:hover {
	color: #d35400;
}

/* MENU Classqiue */
.nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	list-style: none;
	gap: 2rem;
	padding: 0.5rem 0;
	background-color: rgba(255, 255, 255, 0.03);
	border-bottom: 2px solid #e67e22;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nav-links li {
	position: relative;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	transition: background 0.3s ease, transform 0.2s ease;
	text-align: center;
}

.nav-links a {
	align-items: center;
	width: 100%;
	height: 100%;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	gap: 0.5rem;
	padding: 0.4rem;
	text-decoration: none;
	color: #e67e22;
	font-weight: 600;
	letter-spacing: 0.5px;
	transition: color 0.3s ease;
}

.nav-links li:hover {
	background-color: rgba(255, 255, 255, 0.08);
	transform: translateY(-2px);
}

.nav-links a:hover, .nav-links a.active {
	color: #f39c12;
	font-weight: bold;
}

/* ICÔNES */
.nav-links i {
	margin-right: 8px;
	color: #f39c12;
}

/* Main Content */
main {
	margin-top: 80px;
	min-height: calc(100vh - 160px);
}

.page {
	display: none;
	background: rgba(30, 30, 30, 0.95);
	backdrop-filter: blur(10px);
	margin: 2rem auto;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	animation: fadeIn 0.5s ease-in;
	border: 1px solid rgba(230, 126, 34, 0.2);
}

.page.active {
	display: block;
}

@keyframes fadeIn {
	from { 
		opacity:0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.page-content {
	padding: 3rem;
}

.hero {
	font-size: 2rem;
	position: relative;
	text-align: center;
	padding: 4rem 0;
	background: linear-gradient(135deg, #e67e22, #d35400);
	color: white;
	margin: -3rem -3rem 3rem -3rem;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 200%;
	height: 100%;
	background-image: url('../images/bg6.jpg');
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0.2;
	animation: scrollImage 40s linear infinite;
	z-index: 0;
}
@keyframes scrollImage {
	from { 
		transform:translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}
.hero h1, .hero p {
	position: relative;
	z-index: 1;
}

.social-links {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin: 3rem 0;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #e67e22, #d35400);
	color: white;
	text-decoration: none;
	border-radius: 50%;
	font-size: 1.5rem;
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.social-link:hover {
	transform: translateY(-5px) scale(1.1);
	box-shadow: 0 10px 25px rgba(230, 126, 34, 0.6);
}

.section-title {
	font-size: 2.5rem;
	color: #e67e22;
	margin-bottom: 2rem;
	text-align: center;
	position: relative;
}

.section-title::after {
	content: '';
	display: block;
	width: 100px;
	height: 4px;
	background: linear-gradient(135deg, #e67e22, #d35400);
	margin: 1rem auto;
	border-radius: 2px;
}

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin: 3rem 0;
}

.portfolio-item {
	background: rgba(40, 40, 40, 0.9);
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	border: 1px solid rgba(230, 126, 34, 0.2);
}

.portfolio-item:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.portfolio-item-content {
	padding: 0.8rem;
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: auto;
}

.portfolio-item h3 {
	color: #e67e22;
	margin-bottom: 0.5rem;
}

.portfolio-item p {
	color: #c0c0c0;
	font-size: 0.9rem;
}

.contact-form {
	max-width: 600px;
	margin: 0 auto;
}

.list-form {
	max-width: 800px;
	margin: 0 auto;
}

.form-error {
	color: #ff5555;
	text-align: justify;
}

.form-info {
	color: #8888cc;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: #e67e22;
}

.form-group input, .form-group textarea {
	width: 100%;
	padding: 1rem;
	border: 2px solid rgba(230, 126, 34, 0.3);
	background: rgba(40, 40, 40, 0.8);
	color: #e67e22;
	border-radius: 10px;
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.form-group input[readonly] {
	color: rgba(230, 126, 34, 0.3);;
}

.form-group input:focus, .form-group textarea:focus {
	outline: none;
	border-color: #e67e22;
}

.form-group input::placeholder, .form-group textarea::placeholder {
	color: #888;
}

.btn {
	background: linear-gradient(135deg, #e67e22, #d35400);
	color: white;
	padding: 1rem 2rem;
	border: none;
	border-radius: 50px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(230, 126, 34, 0.6);
}

.account-form {
	max-width: 600px;
	margin: 0 auto;
	background: rgba(40, 40, 40, 0.9);
	padding: 2rem;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(230, 126, 34, 0.2);
}

.login-form {
	max-width: 400px;
	margin: 0 auto;
	background: rgba(40, 40, 40, 0.9);
	padding: 2rem;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(230, 126, 34, 0.2);
}

.user-type-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
}

.user-type-btn {
	flex: 0 0 calc(50% - 0.5rem);
	padding: 1rem;
	background: rgba(60, 60, 60, 0.8);
	border: 2px solid rgba(230, 126, 34, 0.3);
	color: #c0c0c0;
	border-radius: 10px;
	cursor: pointer;
	text-align: center;
	transition: all 0.3s ease;
	text-decoration: none;
}

.user-type-btn.active {
	background: linear-gradient(135deg, #e67e22, #d35400);
	color: white;
	border-color: #e67e22;
}

.grid-table {
	display: grid;
	grid-template-columns: repeat(var(--cols), auto);
	border: 1px solid #ccc;
}

.grid-header, .grid-cell {
	padding: 10px;
	border-bottom: 1px solid #ccc;
	border-right: 1px solid #ccc;
	display: flex;
	gap: 10px;
	align-items: center;
}

.grid-header:last-child, .grid-cell:last-child {
	border-right: none;
}

.grid-header {
	background-color: #D2691E;
	color: #fff;
}

/* Footer */
footer {
	background: rgba(0, 0, 0, 0.8);
	color: white;
	text-align: center;
	padding: 2rem 0;
	margin-top: 4rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.modal-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: space-around;
}

/* Container pour les publicités latérales */
.sidebar-ads {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 100;
    display: none; /* Masqué par défaut */
}
.sidebar-ads.left {
    left: 20px;
}
.sidebar-ads.right {
    right: 20px;
}
.sidebar-ad {
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(230, 126, 34, 0.3);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
/* CSS pour publicité intégrée dans le contenu */
.content-ad {
    margin: 3rem 0;
    text-align: center;
}
.content-ad-container {
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid rgba(230, 126, 34, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 728px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
.content-ad-container::before {
    content: "Publicité";
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* CSS pour publicité en bas de page */
.footer-ad {
    background: rgba(25, 25, 25, 0.95);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(230, 126, 34, 0.2);
}
.footer-ad-container {
    text-align: center;
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid rgba(230, 126, 34, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
.footer-ad-container::before {
    content: "Publicité";
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media ( max-width : 768px) {
	.hamburger {
		cursor: pointer;
		flex-direction: column;
		justify-content: space-around;
		width: 30px;
		height: 25px;
		z-index: 1000;
	}
	.hamburger span {
		display: block;
		height: 3px;
		background: #f39c12;
		margin: 3px 0;
		transition: all 0.4s ease-in-out;
	}
	.hamburger.active span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}
	.hamburger.active span:nth-child(2) {
		opacity: 0;
	}
	.hamburger.active span:nth-child(3) {
		transform: rotate(-45deg) translate(6px, -6px);
	}
	.hamburger {
		display: flex;
	}
	.nav-links {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		height: 100vh;
		background: rgba(20, 20, 20, 0.95);
		backdrop-filter: blur(10px);
		box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
		padding-top: 5rem;
		align-items: center;
		gap: 1rem;
		transition: right 0.4s ease;
		z-index: 999;
	}
	.nav-links.active {
		right: 0;
	}
	.nav-links li {
		width: 100%;
		text-align: center;
		padding: 1rem 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		opacity: 0;
		transform: translateX(20px);
		animation: slideIn 0.5s forwards;
	}
    .nav-links li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links li:nth-child(4) { animation-delay: 0.4s; }
    .nav-links li:nth-child(5) { animation-delay: 0.5s; }
    .nav-links li:nth-child(6) { animation-delay: 0.6s; }
    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

	.hero {
		font-size: 1.5rem;
		padding: 2rem 1rem;
	}
	
	.hero h1 {
		font-size: 2.5rem;
	}
	
	.social-links {
		gap: 1rem;
		flex-wrap: wrap;
		justify-content: center;
	}
	
	.page-content {
		padding: 2rem 1rem;
	}
	
	.section-title {
		font-size: 2rem;
	}
	
	.portfolio-item-content {
		padding: 3rem;
	}
	
	.portfolio-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.contact-form {
		padding: 0;
	}
	
	.login-form {
		margin: 0 1rem;
		padding: 1.5rem;
	}
	
	.user-type-selector {
		flex-direction: column;
		gap: 0.5rem;
	}
	
	.social-link {
		width: 50px;
		height: 50px;
		font-size: 1.2rem;
	}
	
	/* Affichage spécifique en mode portrait sur SmartPhone */
	.grid-table {
		display: block;
	}
	
	.grid-header {
		display: none;
	}
	
	.grid-cell {
		display: flex;
		justify-content: space-between;
		padding: 10px;
		font-size: 14px;
		border: 0;
	}
	
	.grid-cols-2 .grid-cell:nth-child(2n+1) {
		border-top: 1px solid white;
		margin-top: 0px;
	}
	
	.grid-cols-3 .grid-cell:nth-child(3n+1) {
		border-top: 1px solid white;
		margin-top: 0px;
	}
	
	.grid-cols-4 .grid-cell:nth-child(4n+1) {
		border-top: 1px solid white;
		margin-top: 0px;
	}
	
	.grid-cols-5 .grid-cell:nth-child(5n+1) {
		border-top: 1px solid white;
		margin-top: 0px;
	}
	
	.grid-cols-6 .grid-cell:nth-child(6n+1) {
		border-top: 1px solid white;
		margin-top: 0px;
	}
	
	.grid-cell::before {
		content: attr(data-label);
		font-weight: bold;
		color: #fff;
		background-color: #D2691E;
		padding: 6px 8px;
		margin-right: 10px;
		border-radius: 4px;
	}    .sidebar-ads {
        display: block;
    }
    
    /* Ajuster le container principal pour laisser de l'espace */
    .sidebar-ads {
        display: block;
    }
    .container {
        max-width: 1000px;
    }
    .content-ad-container {
        margin: 0 1rem;
        padding: 1rem;
    }    
    .footer-ad {
        padding: 1.5rem 0;
    }    
    .footer-ad-container {
        margin: 0 1rem;
        padding: 1rem;
    }
}