@font-face {
	font-family:"LibreBodoni";
	src:url("fonts/LibreBodoni.ttf");
}

@font-face {
	font-family:"Poppins";
	src:url("fonts/Poppins.ttf");
}

html {
	scroll-behavior:smooth;
}

body {
	margin:20px;
	background-color:#f4f1ef;
	font-family:"Poppins","Lato",sans-serif;
	font-size:1.2rem;
}

header {
	margin:0;
	text-align:center;
	align-items:center;
	height:600px;
}

nav {
    display:flex;
    justify-content:center;
    gap:70px;
    padding:20px 0;
}

nav a {
    text-decoration:none;
	font-family:"LibreBodoni","Lato",sans-serif;
	color:#c38187;
    font-weight:500;
}

header nav a:hover, header nav a:active {
	text-decoration:underline;
}

h1, h2 {
	font-family:"LibreBodoni","Lato",sans-serif;
	color:#c38187;
}

h1 {
    font-size:6rem;
}

.accueil_texte{
    width:260px;
    height:30px;
    margin:20px auto;
    border:2px solid #c38187;
    border-radius:12px;
    overflow:hidden;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
}

.accueil_texte p{
    position:absolute;
    margin:0;
    width:100%;
    text-align:center;
    color:#c38187;
    font-weight:500;

    opacity:0;
    transform:translateY(-10px);
    animation: fadeSlide 6s infinite;
}

/* décalage pour chaque texte */
.accueil_texte p:nth-child(1){ animation-delay:0s; }
.accueil_texte p:nth-child(2){ animation-delay:2s; }
.accueil_texte p:nth-child(3){ animation-delay:4s; }

/* animation : apparait + descend + disparait */
@keyframes fadeSlide{
    0%{
        opacity:0;
        transform:translateY(-10px);
    }
    10%{
        opacity:1;
        transform:translateY(0);
    }
    30%{
        opacity:1;
        transform:translateY(0);
    }
    40%{
        opacity:0;
        transform:translateY(10px);
    }
    100%{
        opacity:0;
        transform:translateY(10px);
    }
}

#accueil a {
	text-decoration:none;
    background-color:#c38187;
	color:#f4f1ef;
	padding:15px;
    padding-top:5px;
    padding-bottom:5px;
	border-radius:15px;
}

#accueil a:hover, #accueil a:active {
    background-color:#000000;
}

#apropos_content {
    display:grid;
    grid-template-columns: 1fr 2fr;
    align-items:center;
    gap:50px;
    max-width:1000px;
    margin:auto;
}

#may {
    height:500px;
}

#apropos_content {
    text-align:justify;
}

#competences h2{
    text-align:center;
    margin-top:150px;
}

.competences_content {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:2px;
    margin-top:50px;
}

.skill {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:100px;
}

.icon {
    position:relative;
    width:60px;
    height:60px;
    margin-bottom:10px;
}

.icon img {
    position: absolute;
    width: 100%;
    transition: opacity 0.3s ease;
}
.icon .color { opacity: 0; }
.skill:hover .color { opacity: 1; }
.skill:hover .rose { opacity: 0; }

.skill p {
    margin:0;
    text-align:center;
    font-size:0.6em;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.skill:hover p {
    opacity: 1;
}

#projets img {
	width:100%;
    height:auto;
}

.gallery {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:20px;
}

.gallery img{
	transition:transform .2s ease, box-shadow .2s ease;
}

.gallery img:hover{
	transform:scale(1.03);
	box-shadow:0 10px 25px rgba(0,0,0,0.25);
}

.overlay{
	position:absolute;
	inset:0;
}

.cadre {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.8);
    display:none;
    justify-content:center;
    align-items:center;
    padding:40px;
}
.cadre_content {
    background:white;
    padding:30px;
    max-width:500px;
    width:100%;
    position:relative;
}
.cadre img {
    width:100%;
    height:auto;
}
.close {
    position:absolute;
    top:15px;
    right:20px;
    text-decoration:none;
    font-size:30px;
    color:black;
}
.cadre:target {
    display:flex;
}

.behance_button {
    display:inline-block;
    margin-top:20px;
    padding:12px 20px;
    background:#c38187;
    color:white;
    text-decoration:none;
    border-radius:10px;
}
.behance_button:hover, .behance_button:active {
    color:#c38187;
    background:#f4f1ef;
    border:2px solid #c38187;
}

.back_to_top {
    text-decoration:none;
    position:fixed;
    bottom:30px;
    right:30px;
    width:60px;
    height:60px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    transition:transform .2s ease, background .2s ease;
}
.back_to_top img {
    width:60px;
    height:auto;
}
.back_to_top:hover {
    transform:scale(1.2);
}

footer {
	margin:50px;
}

footer p {
    font-family:"LibreBodoni","Lato",sans-serif;
    color:#c38187;
}

#socials a{
    position: relative;
    display:inline-block;
    width:50px; /* largeur du lien */
    height:50px; /* hauteur du lien */
    margin:0 10px;
}

#socials a img{
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    transition: opacity 0.3s ease;
}

#socials a img.color{
    opacity:0;
}

#socials a:hover img.color{
    opacity:1;
}
#socials a:hover img.rose{
    opacity:0;
}
