@font-face {
    font-family: 'Montserrat Thin';
    src: url('fonts/Montserrat-VariableFont_wght.ttf'); 
}

@font-face {
    font-family: 'Montserrat Black';
    src: url('fonts/Montserrat\ Black.otf'); 
}

@font-face {
    font-family: 'Brittany';
    src: url('fonts/BrittanySignature.ttf'); 
}

body {
    margin:0;
    font-family: 'Montserrat Thin', sans-serif;
    cursor: none;
}

.neon-cursor {
    position: fixed;
    width: 15px;
    height: 15px;
    background: #000;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;

    box-shadow:
        0 0 5px #a086e2,
        0 0 15px #a086e2,
        0 0 30px #a086e2,
        0 0 60px #a086e2;

    transition: transform 0.15s ease;
}

.neon-cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
}

header {    
    background-image: url("img/Pagedegarde.jpg");
    background-size: cover;      
    background-repeat: no-repeat;  
    background-position: center;
    width: 100%;
    height: 700px;
    position: relative;
}

header nav {
    display:flex;
    justify-content: space-around;
    padding:30px 0;
}

header nav .nav a {
    position: relative;
    text-decoration: none;
    font-size: 20px;
    color: #000000;
    padding: 30px;
}

header nav .nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.3s ease;
}

header nav .nav a:hover::after {
    width: 60%;
}

header nav .liens img {
    width:35px;
    padding:0 15px;
}

 
header button {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

header button.learn-more {
    width: 12rem;
    height: auto;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
}

header button.learn-more .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: #000000;
    border-radius: 1.625rem;
}

header button.learn-more .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
}

header button.learn-more .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    left: 0.625rem;
    width: 1.125rem;
    height: 0.125rem;
    background: none;
}

header button.learn-more .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: -0.29rem;
    right: 0.0625rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #fff;
    border-right: 0.125rem solid #fff;
    transform: rotate(45deg);
}

header button.learn-more .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0;
    margin: 0 0 0 1.85rem;
    color: #000000;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
}

header button:hover .circle {
    width: 100%;
}

header button:hover .circle .icon.arrow {
    background: #fff;
    transform: translate(1rem, 0);
    transform:rotate(90deg)
}

header button:hover .button-text {
    color: #fff;
}

h2 {
    font-family: 'Montserrat Black', sans-serif;
    font-size:45px;
}

#a-propos {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    margin:80px 20px;
}

#a-propos img {
    width:350px;
    height:100%;
    margin:0 40px;
}

#a-propos div {
    width:700px;
    text-align: justify;
    font-size:17px;
}

#a-propos .gras {
    color:#a086e2;
    font-weight: bold;

}

hr {
    width:800px;
}

#skills {
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:30px 0;
}

#skills img {
    width:80px;
    margin:50px 10px;
}

#projets {
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:50px 0 200px 0;
}

#projets-grille {
    display:flex;
    flex-direction:row;
}

/* Carte projet */
.projet {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width:450px;
    height:250px;
    margin:10px;
}

/* Image */
.projet img {
    width: 100%;
    display: block;
    transition: 0.4s ease;
    object-fit: cover;      /* l’image remplit tout */
}

/* Overlay (caché au départ) */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    opacity: 0;
    transition: 0.4s ease;
    padding: 20px;
}

/* Hover effects */
.projet:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.projet:hover img {
    filter: brightness(50%);
}

.projet:hover .overlay {
    opacity: 1;
}

/* Bouton */
.btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: 0.3s ease;
}

.btn:hover {
    background: #ddd;
}

footer {
    color:#ffffff;
    background-color:#000000;
    height:150px;
    display:flex;
    align-items:center;
    justify-content:center;
}

