@font-face {
    font-family: 'PolicePrincipale';
    src: url('private/fonts/policeprincipale.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PoliceSecondaire';
    src: url('private/fonts/policesecondaire.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

* {
    margin:0;
    padding:0;
    scroll-behavior: smooth;
}

body {
    font-family: 'PoliceSecondaire', sans-serif;
    line-height: 1.5;
    color: #000;
    background-color: #f4f4f4;
    font-size:14pt;
}

header {
    background-color: #000;
    color: #f4f4f4;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 100;
    animation: slideDown 1s ease-out;
    transition: background-color 0.3s ease;
}

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

.logo {
    display: flex;
    font-size: 1.5rem;
    font-weight: bold;
    animation: fadeIn 2s ease;
    align-items:center;
}

@media (max-width: 768px) {
    .logo img {
    width:100px;
    }
}

@media (min-width: 768px) {
    .logo img {
    width:150px;
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #f4f4f4;
    text-decoration: none;
    font-size: 1rem;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff6347;  /* Couleur de survol du lien */
}

nav ul li:nth-child(1) a {
    animation-delay: 0.5s;
}

nav ul li:nth-child(2) a {
    animation-delay: 0.7s;
}

nav ul li:nth-child(3) a {
    animation-delay: 0.9s;
}

h1,h2,h3,h4,h5 {
    font-family: 'PolicePrincipale', sans-serif;
    font-weight:normal;
    font-size:28pt;
    line-height:1.2;
}

#hero {
    height: 90vh;
    background: url('visuels/dubrovnik_croatie_nathan_maurer.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fadeIn 2s ease-out;
    padding-top:90px;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    color: #f4f4f4;
    padding: 5%;
    text-align: center;
    max-width:80%;
    border-radius: 8px;
    animation: scaleIn 1.5s ease;
}

#about, #contact {
    padding: 100px 20px;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards;
}

#about {
    animation-delay: 0.3s;
}

.about-content {
    display:flex;
    justify-content: center;
    border: 1px solid black;
}

.about-content div {
    margin: auto;
    padding: 5vh 5vw 5vh 5vw;
    text-align:left;
}

@media (max-width: 768px) {
            .about-content {
                flex-direction:column;
                justify-content:center;
            }
            .about-content img {
                width:100%;
                margin:auto;
            }
        }

@media (min-width: 768px) {
            .about-content img {
                width:25vw;
            }
        }
        


#gallery {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards;
    animation-delay: 0.9s;
}

.carousel-border {
    border-top:1px solid rgb(0,0,0);
    border-bottom:1px solid rgb(0,0,0);
}

.carousel-container {
            position: relative;
            width: 100vw;
            height: 80vh;
            display: flex;
            overflow: hidden;
            background-color:rgb(0,0,0);
        }
        .carousel {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.5s ease-in-out;
        }
        .carousel img {
            width: 50vw;
            object-fit: cover;
        }
        @media (max-width: 768px) {
            .carousel img {
                width: 100vw;
            }
        }
        /* Flèches de navigation */
        .arrow {
            position: absolute;
            top: 50%;
            background-color: rgba(0, 0, 0, 0.5);
            transform: translateY(-50%);
            color: #f4f4f4;
            padding: 10px;
            cursor: pointer;
            z-index: 10;
        }
        .arrow:hover {
            background-color: #fff;
            color:rgb(0,0,0);
        }
        .arrow.left {
            left: 10px;
        }
        .arrow.right {
            right: 10px;
        }
        


#contact {
    animation-delay: 0.6s;
    text-align: center;
}

#contact .content-container {
    margin:0 auto;
}

#contact .content-container .contact-paragraphe {
    margin:auto;
}

#contact .content-container form {
    display:flex;
    flex-direction:column;
    margin-top:10px;
    align-items:center;
    padding-top:10px;
}

#contact .content-container form input, .content-container form textarea {
    border: 1px solid transparent;
    background-color:#fff;
    border-radius:20px;
    padding:10px;
    margin:10px 0;
    font-size:14pt;
}

.content-container form textarea {
    height:1vh;
    min-height:250px;
}

#formMessage {
    padding-top:10px;
}

@media (min-width: 768px) {
            #contact .content-container .contact-paragraphe, #contact .content-container form input, #contact .content-container form textarea, #contact .content-container form button {
                width: 40%;
            }
        }
@media (max-width: 768px) {
            #contact .content-container .contact-paragraphe, #contact .content-container form input, #contact .content-container form textarea, #contact .content-container form button {
                width: 90%;
            }
        }

        

footer {
    background-color: #000;
    color: #f4f4f4;
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 2s ease;
    transition: background-color 0.3s ease;
}

footer .footer-content {
    margin: 0 auto 0 auto;
}

.btn {
    display: inline-block;
    background-color:rgb(255,69,0);
    color: #f4f4f4;
    padding: 10px 20px;
    margin-top: 20px;
    text-decoration: none;
    font-size:14pt;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background-color 0.3s, transform 0.3s ease;
}

.btn:hover {
    background-color: #ffa300;
}



/* Animations */

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}



/* Effet shiny */

.shiny-text {
    background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,0.5) 50%, #fff 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text; /* Compatibilité Safari */
    color: transparent;
    animation: shine 3.5s linear infinite; /* Animation de lumière */
    padding-bottom:10px;
}

/* Animation de la lumière */
@keyframes shine {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: 0% center;
    }
}