@font-face {
font-family: 'Raleway';
    src: url('../fonts/Raleway-Regular.eot');
    src: url('../fonts/Raleway-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Raleway-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
font-display: swap;
}

/* Ecraser style */

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
}

a,p,h1,h2,h3,h4,h5,h6,strong,li,em{
	font-family: 'Raleway', sans-serif;
}

/* Bg partie paire */
.bg-beige{
	background-color: #AE8964;
}

.bg-brun{
	background-color: #89725B;
}

/* Titres qui s'adaptent à la résolution de l'écran */

.title{
	font-size: 3rem;
}

/* put margin top 60 */
.margin-top70{
	margin-top: 70px;
}

section{
	padding : 4rem 0;
}

section.paire hr{
	max-width: 50px;
	border-width: 3px;
	border-color: #7E5835;
}

section.impaire hr{
	max-width: 50px;
	border-width: 3px;
	border-color: #7E5835;
}

/* Part menu */

.menu {
	background-color: rgba(126, 88, 53, 0.85);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	transition: background-color 0.3s ease;
}

.menu .navbar-brand {
	font-weight: bold;
	font-size: 1.8em;
	letter-spacing: 1px;
	color: #FFEBCD;
	transition: color 0.3s ease;
}

.menu div a.navbar-brand:hover {
	color: #DEB887;
}

.menu div a.nav-link {
	position: relative;
	font-size: 1.15em;
	color: white;
	padding: 0.5rem 1rem;
	transition: color 0.3s ease;
}

.menu div a.nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background-color: #DEB887;
	transition: width 0.3s ease, left 0.3s ease;
}

.menu div a.nav-link:hover {
	color: #DEB887;
}

.menu div a.nav-link:hover::after {
	width: 60%;
	left: 20%;
}

/*End of menu */

/* partie présentation */

header.presentation{
	position: relative;
	background: url("../images/bg.jpg");
	background-size: cover;
	background-position: center center;
	overflow: hidden;
}

header.presentation::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(126, 88, 53, 0.4) 0%, rgba(174, 137, 100, 0.25) 100%);
	z-index: 1;
}

header.presentation .container {
	position: relative;
	z-index: 2;
}

header hr{
	max-width: 50px;
	border-width: 3px;
	border-color: #FFEBCD;
}

header.presentation .intro img {
	width: 160px;
	height: 160px;
	object-fit: cover;
	object-position: center;
	background-color: #FFEBCD;
	border-radius: 50%;
	border: 4px solid #FFEBCD;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	margin-bottom: 1.5rem;
}

header.presentation .intro{
	font-size: 3.2rem;
}

header.presentation #name{
	display: block;
	font-size: 3.2rem;
	color: #FFEBCD;
}

header.presentation .intro strong:not(#name) {
	font-size: 0.55em;
	font-weight: 500;
	color: #fff;
}

header.presentation .text-faded {
	font-size: 1.1rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.9);
}

/* End of partie présentation */

/* formations */

#formations .row.my-5 {
	position: relative;
	background-color: rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 1.5rem;
	margin-left: 0;
	margin-right: 0;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

#formations .row.my-5:hover {
	background-color: rgba(255, 255, 255, 0.15);
	transform: translateX(6px);
}

#formations img{
	width: 140px;
	height: 140px;
	object-fit: contain;
	background-color: #FFEBCD;
	border-radius: 50%;
	padding: 15px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

#formations h3 {
	color: #FFEBCD;
	font-weight: bold;
	margin-bottom: 0.3rem;
}

#formations .text-experience p em {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.95em;
	font-style: normal;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

#formations ul.task-experience {
	margin-top: 0.8rem;
	color: rgba(255, 255, 255, 0.95);
	font-size: 1.05em;
}

/* End of formations */

/*Part experiences */

#experiences .row.my-5 {
	position: relative;
	background-color: rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	padding: 1.5rem;
	margin-left: 0;
	margin-right: 0;
	border-left: 4px solid #7E5835;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

#experiences .row.my-5:hover {
	background-color: rgba(255, 255, 255, 0.25);
	transform: translateX(6px);
}

#experiences img{
	width: 100px;
	height: 100px;
	object-fit: contain;
	background-color: #fff;
	border-radius: 50%;
	padding: 20px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#experiences img.big-image{
	width: 130px;
	height: 130px;
	object-fit: contain;
	background-color: #fff;
	border-radius: 50%;
	padding: 24px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#experiences img.no-circle {
	background-color: transparent;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

#experiences h3 {
	color: #7E5835;
	font-weight: bold;
	margin-bottom: 0.3rem;
}

#experiences .text-experience p em {
	color: rgba(0, 0, 0, 0.6);
	font-size: 0.9em;
	font-style: normal;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-bottom: 0.2rem;
	display: inline-block;
}

#experiences .text-experience p em:first-of-type {
	font-weight: bold;
	margin-right: 12px;
}

ul.task-experience{
	padding-left: 0;
	list-style: circle;
	list-style-position: inside;
	margin-top: 0.8rem;
	color: rgba(0, 0, 0, 0.85);
}

/* End of experiences */

/*Part competences */

.each-competence{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: start;
	-ms-flex-align: start;
	align-items: center;
	background-color: rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 1.2rem;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.each-competence:hover {
	background-color: rgba(255, 255, 255, 0.15);
	transform: translateY(-4px);
}

.each-competence img {
	width: 55px;
	height: 55px;
	object-fit: contain;
}

.each-competence-text {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.each-competence-text h5 {
	color: #FFEBCD;
	margin-bottom: 0.6rem;
}

.progress {
	height: 8px;
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	overflow: hidden;
}

.progress-bar {
	background: linear-gradient(90deg, #7E5835, #DEB887);
	border-radius: 4px;
}

.progress-very-high{
	width: 90%;
}

.progress-medium-high{
	width: 60%;
}

.progress-high{
	width: 75%;
}

.progress-medium{
	width: 50%;
}

.progress-low{
	width: 35%;
}

/* End of competences */

/* Part project */

.img-wrapper {
    height: 440px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.each-projet {
    margin-bottom: 30px;
}

.portfolio-box {
    position: relative;
    display: block;
    max-width: 650px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.portfolio-box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
}

.portfolio-box:hover .img-wrapper img {
    transform: scale(1.08);
}

.portfolio-box .project-name {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 8px;
}

.portfolio-box .portfolio-box-caption {
    position: absolute;
    bottom: 0;
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    opacity: 0;
    color: #fff;
    background: linear-gradient(to top, rgba(126, 88, 53, 0.95), rgba(240, 95, 64, 0.85));
    transition: opacity 0.3s ease;
}

.portfolio-box .portfolio-box-caption .portfolio-box-caption-content {
    position: absolute;
    top: 50%;
    width: 100%;
    padding: 0 20px;
    transform: translateY(-50%);
    text-align: center;
}

.portfolio-box .project-category {
    font-size: 0.95em;
    line-height: 1.4;
}

.portfolio-box:hover .portfolio-box-caption {
    opacity: 1;
}

/* End of project */

/* Part valeurs */

.each-valeur {
	background-color: rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 2.5rem 1.5rem;
	margin-bottom: 1.5rem;
	transition: background-color 0.3s ease, transform 0.3s ease;
	height: 100%;
}

.each-valeur:hover {
	background-color: rgba(255, 255, 255, 0.15);
	transform: translateY(-6px);
}

.each-valeur i {
	font-size: 2.8em;
	color: #FFEBCD;
	background-color: rgba(255, 255, 255, 0.1);
	width: 100px;
	height: 100px;
	line-height: 100px;
	border-radius: 50%;
	margin-bottom: 1.2rem;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.each-valeur h4 {
	color: #FFEBCD;
	font-weight: bold;
	margin-bottom: 1rem;
}

.each-valeur .text-faded {
	font-size: 1em;
	line-height: 1.6;
}

/* End of valeurs */

/* Part interest */

.each-interet {
	background-color: rgba(255, 255, 255, 0.3);
	border-radius: 12px;
	padding: 2.5rem 1.5rem;
	margin-bottom: 1.5rem;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.each-interet:hover {
	background-color: rgba(255, 255, 255, 0.5);
	transform: translateY(-6px);
}

#interet i{
	font-size: 3em;
	color: #7E5835;
	background-color: #fff;
	width: 90px;
	height: 90px;
	line-height: 90px;
	border-radius: 50%;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

#interet p{
	color: rgba(0,0,0,1);
	font-size: 1.25em;
	margin-top: 1rem;
}

/* End of interest */

/* Part contact */

.each-contact {
	background-color: rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 2.5rem 1.5rem;
	margin-bottom: 1.5rem;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.each-contact:hover {
	background-color: rgba(255, 255, 255, 0.15);
	transform: translateY(-6px);
}

#contact i{
	font-size: 2.8em;
	color: #FFEBCD;
	background-color: rgba(255, 255, 255, 0.1);
	width: 90px;
	height: 90px;
	line-height: 90px;
	border-radius: 50%;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#contact a,.mobile{
	color: rgba(255, 255, 255, 0.95);
	font-size: 1.15em;
	margin-top: 1rem;
}

#contact a:hover{
	color: #DEB887;
	text-decoration: none;
}

/* End of contact */

/*Media queries */
@media screen and (max-width: 992px) {

	nav.navbar{
		background-color: #AE8964 !important;
	}

	.title{
		font-size : 2rem;
	}

	.text-experience{
		margin: 20px 0;
	}

    .img-wrapper {
        height: 300px;
        border-radius: 6px 6px 0 0;
    }

    .portfolio-box {
        border-radius: 6px;
    }

	.menu div a.nav-link::after {
		left: 1rem;
	}

	.menu div a.nav-link:hover::after {
		left: 1rem;
		width: 40px;
	}

	header.presentation .intro img {
		width: 120px;
		height: 120px;
	}

	header.presentation #name{
		font-size: 2.2rem;
	}

	#formations img{
		width: 100px;
		height: 100px;
	}

	#experiences img,
	#experiences img.big-image{
		width: 80px;
		height: 80px;
	}

}
@media screen and (max-width: 1048px) {
	
	.menu div a.nav-link{
		font-size: 1.15em;
		color: white;
	}
}

/* ---------- Projets : grille "bento" (les 7 visibles, sans trou) ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.bento-item.bento-hero { grid-column: span 2; grid-row: span 2; }
.bento-item.bento-wide { grid-column: span 2; }

.bento .portfolio-box {
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: 12px;
}

.bento .img-wrapper {
    height: 100%;
    border-radius: 12px;
}

/* Nom toujours visible en bas de la tuile, masqué au survol (l'overlay prend le relais) */
.tile-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2.2rem 1.2rem 1rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.1em;
    text-align: left;
    background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
    transition: opacity .3s ease;
    pointer-events: none;
}

.bento-hero .tile-label { font-size: 1.5em; padding: 3rem 1.6rem 1.4rem; }

.portfolio-box:hover .tile-label { opacity: 0; }

.tile-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    background: #7E5835;
    color: #fff;
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .75rem;
    border-radius: 20px;
    pointer-events: none;
}

.bento .portfolio-box-caption { z-index: 4; }

@media (max-width: 991px) {
    .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
    .bento-item.bento-hero { grid-column: span 2; grid-row: span 1; }
    .bento-item.bento-wide { grid-column: span 1; }
}

@media (max-width: 575px) {
    .bento { grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 16px; }
    .bento-item.bento-hero, .bento-item.bento-wide { grid-column: span 1; }
}

/* ---------- Projets : grille uniforme 4 x 2 (version finale, remplace les tailles bento) ---------- */
.bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
    gap: 16px;
    max-width: 1500px;
}

.bento-item.bento-hero,
.bento-item.bento-wide {
    grid-column: span 1;
    grid-row: span 1;
}

@media (max-width: 991px) {
    .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
    .bento-item.bento-hero,
    .bento-item.bento-wide { grid-column: span 1; }
}

@media (max-width: 575px) {
    .bento { grid-template-columns: 1fr; grid-auto-rows: 200px; }
}

/* Bouton affiché dans l'overlay (ex. "Voir le GitHub") */
.tile-btn {
    display: inline-block;
    margin-top: 14px;
    padding: .45rem 1.2rem;
    border: 2px solid #fff;
    border-radius: 30px;
    color: #fff;
    font-size: .9em;
    font-weight: 600;
    transition: background .2s, color .2s;
}

.portfolio-box:hover .tile-btn:hover {
    background: #fff;
    color: #7E5835;
}

/* Badges techno dans l'overlay */
.tile-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.tile-tags span {
    padding: .15rem .65rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .6);
    color: #fff;
    font-size: .75em;
    font-weight: 600;
    white-space: nowrap;
}

/* Badges techno sous les expériences */
.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.exp-tags span {
    padding: .2rem .8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .6);
    color: #fff;
    font-size: .85em;
    font-weight: 600;
}