﻿body {
	margin: 70px 0 110px 0;
	padding: 0;
	overflow: auto;  /* Empêche le défilement par défaut du body */
	font-family: 'Roboto', sans-serif;
	text-align: justify;
}

#background-image {
	background-image: url('img/background.jpg');
	background-size: cover;
	background-position: top;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;  /* Place l'image en arrière-plan */
}

header {
	background-color: rgba(44, 62, 80, 0.8);  /* Utilisez une couleur semi-transparente pour le fond */
	color: #fff;
	padding: 1em;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1;  /* Place le header au-dessus de l'image de fond */
}

nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	text-align: right;
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	justify-content: flex-end;
}

nav ul li {
	display: inline;
	list-style-type: none;
	margin: 0;
	margin-right: 20px;
	padding: 0;
	text-align: right;
}

.menu-item {	
	border-right: 1px solid #fff; /* Séparateur vertical */
	padding-right: 20px; /* Espacement entre les éléments de menu */
	text-decoration: none; /* Supprime les soulignements par défaut */
}

.menu-item:last-child {
	border-right: none; /* Aucune bordure à droite pour le dernier élément */
}

nav ul li a {
	text-decoration: none;
	color: #fff;
	font-size: 16px;
	transition: color 0.3s ease;
	position: relative;
}

nav ul li a:hover {
	color: #D0B000;
	cursor: pointer;
}

nav ul li a.selectedMenu {
	color: #D0B000;
	font-weight: bold;
}

.content-section {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
	background-color: #fff;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	margin-top: 20px;
}

section h2 {
	color: #2c3e50;
	font-size: 24px;
	position: relative;
	margin-bottom: 30px;
}

section h2:after {
	content: ''; /* Ajoute un contenu pseudo-élément */
	position: absolute; /* Positionne le pseudo-élément de façon absolue */
	left: 0; /* Le pseudo-élément commence à partir de la gauche */
	bottom: -10px; /* Ajuste la position verticale de la ligne */
	width: 100%;
	height: 3px; /* Hauteur de la ligne */
	background-color: rgba(200, 200, 200, 0.6); /* Couleur de la ligne */
}

section p {
	font-size: 16px;
	line-height: 1.6;
	color: #555;
}

h3 {
	text-align: left;	
}

.image {
	width: 350px;
	height: auto;
}

.float-left {
	margin-right: 20px;
	float: left;
}

.float-right {
	margin-left: 20px;
float: right;
}

.margin-top-30 {
	margin-top: 30px;	
}

#competenceMenu {
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	position: relative;
	margin-bottom: 30px;
}

#competenceMenu:after {
	content: ''; /* Ajoute un contenu pseudo-élément */
	position: absolute; /* Positionne le pseudo-élément de façon absolue */
	left: 15%; /* Le pseudo-élément commence à partir de la gauche */
	bottom: -25px; /* Ajuste la position verticale de la ligne */
	width: 70%; /* Largeur de la ligne */
	height: 2px; /* Hauteur de la ligne */
	background-color: rgba(200, 200, 200, 0.6); /* Couleur de la ligne */
}

.competenceMenuItem {
	position: relative;
	display: inline-block; /* Pour que le conteneur s'adapte à la taille de l'image */
	flex: 1;
}

.img-border {
	border: 3px solid #525252;
	display: block;
}

.img-border:hover {
	opacity: 1;
}

.voile {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(208, 176, 0, 0.2); /* Couleur du voile semi-transparent */
	opacity: 0; /* Initialement transparent */
	transition: opacity 0.3s ease; /* Transition douce pour l'effet de fondu */
}

.competenceMenuItem::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 30px;
	background-color: rgba(0, 0, 0, 0.6); /* Couleur de fond semi-transparente */
	z-index: 0; /* Pour placer le voile en arrière-plan */
}

.competenceMenuItem:hover .voile {
	opacity: 1; /* Au survol, rendre le voile opaque */
	cursor: pointer;
}

.titre-competence {
	position: absolute;
	top: 2%;
	left: 3%;
	color: #fff;
	font-size: 20px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Ombre du texte */
}

#competenceContentHome {
	margin-top: 50px;	
}

.center {
	text-align: center;	
}

.no-spaces {
	margin: 0;
	padding: 0;
}

.list-no-style {
	list-style: none;
}

.list-no-style-li {
	margin: 45px 0 0 0;
	padding: 0;
}

.victims {
	list-style: none;
	margin: 20px 0 0 0;
}

.victimType {
	font-weight: bold;
	margin: 0 0 20px 0;
	color: #555;
	line-height: 1.5;
}

.victimType ul, .victimType ul li {
	font-weight: normal;
}

.victimType ul li {
	list-style: circle;
}

.list {
	color: #555;
	line-height:1.5;
	list-style: circle;
}

#contact:after {
	content: "";
	display: block;
	clear: both;
}

footer {
	background-color: rgba(44, 62, 80, 0.8);  /* Utilisez une couleur semi-transparente pour le fond */
	color: #fff;
	text-align: center;
	margin-top: 20px;
	width: 100%;
	font-size: 14px;
	position: fixed;
	bottom: 0; /* Positionne le footer au bas de son conteneur parent */
	height: 90px;
}

#footer-content {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
}

.footer-column {
	flex: 1;
}

#contact-info {
	position: relative;
}

#contact-info-content {
	text-align: left;
}

#contact-info h4, h5 {
	font-size: 1em;
	margin-top: 10px;
	margin-bottom: 6px;
}

#contact-info p {
	margin: 5px 0;
}

#contact-info span {
	margin-right: 8px;
}

.contact-link {
	color: #fff;
	text-decoration : none;
}

.contact-link:hover {
	color: #D0B000;
}

#logo {
	transform: translate(0%, 10%);
	text-align: right;
}

#social {
	padding-top: 15px;
	display: flex;
	flex-direction: column;
	gap: 10px; /* pour l’espace entre les liens */
}

#social img:hover {
	transform: scale(1.2) rotate(5deg); /* Zoom et rotation au survol */
	filter: brightness(1.1) saturate(1.1); /* Accentue la luminosité et les couleurs */
}

#mentions-link {
	color: #D0B000;
	text-decoration: none;
	font-size: 0.9em;
}

#mentions-link:hover {
	color: #fff;
}

#hidden-content {
	display: none;
	margin-top: 10px;
}

/* ===== Media Queries pour version mobile ===== */

@media only screen and (max-height: 600px) {
	
    body {
		margin: 70px 0 0 0;
    }
	
    footer {
        position: relative;
        bottom: auto;
    }
    
}

@media only screen and (max-width: 800px) {
	
    body {
		margin: 0;
        width: 100%;
	}
	
	header {
        padding: 0em;
        text-align: center;
        position: fixed;
        width: 100%;
        height: auto;
	}

    nav ul {
        flex-direction: column;
		text-align: center;
		align-items: center; /* Aligne les éléments à gauche */
		justify-content: center; /* Positionne les éléments en haut (axe principal) */
		box-sizing: border-box;
    }
    
    nav ul li {
		display: block;
        margin: 0;
        padding-top: 8px;
        padding-bottom: 8px;
		text-align: center;
		border-bottom: 1px solid #ccc; /* Ligne de séparation */
		width: 100%; /* Permet d'étendre chaque élément sur 100% de la largeur */
		box-sizing: border-box; /* Inclut le padding dans le calcul de la largeur totale */
    }
    
	nav ul li:last-child {
		border-bottom: none; /* Supprime la ligne pour le dernier élément */
        padding-bottom: 10px;
	}
	
	.menu-item {
		border-right: none;
		text-decoration: none;
	}	

    .content-section {
        width: 90%;
        margin-top: 190px;
    }

    #presentationImg {
        width: 50%;
        height: auto;
    }

    #contactImg {
        width: 40%;
        height: auto;
    }

    #competenceMenu {
        flex-direction: column;
		text-align: center;
		align-items: center;
		justify-content: center;
    }

    footer {
        position: relative;
        bottom: auto;
        height: auto;
        padding: 0;
        margin-top: 10px;
    }
    
    #footer-content {
        display: block; /* Empile les colonnes en mode mobile */
        max-width: 100%;
        margin: 0;
    }

    .footer-column {
        padding: 0;
    }
    
    #contact-info {
        text-align: center;
        padding-top: 10px;
    }
    
    #contact-info-content {
        text-align: center;
    }
    
    #social {
		padding-top: 20px;
    }
    
    #logo {
		padding-top: 20px;
		padding-bottom: 15px;
		text-align: center;
		transform: none;
    }
    
    .competenceMenuItemSecondary {
		margin-top: 10px;	
    }
    
}

@media only screen and (max-width: 480px) {
    
    h3 {
        font-size: 15px;
    }
    
	section p, h4, h5, li, .list {
        font-size: 14px;
	}
	
}
