@font-face {
    font-family: 'MaPolicePerso';
    src: url('/assets/font/CalSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.titre-1 {
    font-family: 'MaPolicePerso', sans-serif;
    font-size: 3rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}
.titre-2 {
    font-family: 'MaPolicePerso', sans-serif;
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}
.titre-3 {
    font-family: 'MaPolicePerso', sans-serif;
    font-size: 2.5rem;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
}
.titre-p1 {
    font-family: 'MaPolicePerso', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}
.texte-1 {
    font-family: 'MaPolicePerso', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}
.texte-2 {
    font-family: 'MaPolicePerso', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 25px;
    margin-top: 5px;
}
.texte-2-1 {
    font-family: 'MaPolicePerso', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 2px;
}
.texte-2-2 {
    font-family: 'MaPolicePerso', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}
.texte-3 {
    font-family: 'MaPolicePerso', sans-serif;
    font-size: 1rem;
    color: #000000;
    text-align: center;
    margin-bottom: 25px;
    margin-top: 5px;
}

body {
    background: url('/assets/media/background.jpg') no-repeat center center fixed;
    background-size: cover;
}

body, html {
    height: 100%;
}

.center-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.navbar {
    transition: background-color 0.7s, box-shadow 0.4s;
}
.navbar.transparent {
    background-color: rgba(255, 255, 255, 0.541) !important;
    box-shadow: none !important;
}
.navbar-nav {
    flex-direction: row;
}
.nav-link {
    font-size: 1.1rem;
    transition: color 0.2s;
}
.nav-link:hover {
    color: #4f919ce5 !important;
    text-decoration: underline;
}
.cv-download-link {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
}
.cv-download-link img {
    transition: transform 0.2s;
    cursor: pointer;
}
.cv-download-link img:hover {
    transform: scale(1.05);
}
.projet-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.projet-btn img {
    display: block;
    border-radius: 20%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.projet-btn:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.img-projet {
    width: 100px;
    max-width: 100%;
    height: auto;
    border-radius: 20%;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 0.3rem;
    margin-top: 20px;
}

.img-competence {
    width: 60px;
    max-width: 100%;
    height: auto;
    border-radius: 18%;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 0.1rem;
}
.competence-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: none;
    cursor: pointer;
}
.competence-btn:hover img {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.btn-cv {
    max-width: 200px;
    height: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (min-width: 576px) {
    .img-projet {
        width: 120px;
    }
    .img-competence {
        width: 70px;
    }
}
@media (min-width: 768px) {
    .img-projet {
        width: 170px;
    }
    #projets .row {
        gap: 0 !important;
    }
    #projets .col-md-4 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .img-competence {
        width: 80px;
    }
}
@media (min-width: 1200px) {
    .img-projet {
        width: 170px;
    }
    .img-competence {
        width: 90px;
    }
}

@media (max-width: 767.98px) {
    .navbar-nav {
        flex-direction: column !important;
        align-items: center;
        gap: 1rem;
    }
}

/* Rapproche les boutons projets sur toutes tailles */
#projets .row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

.contact-content {
    background: rgba(255, 255, 255, 0.644);
    border-radius: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.footer-custom {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.07);
    position: relative;
    width: 100%;
    font-size: 1rem;
    color: #333;
    z-index: 10;
    transition: background 0.3s;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 40px;
}

.footer-custom .texte-3 {
    margin-bottom: 0;
    margin-top: 0;
    color: #222;
}

.footer-link {
    color: #888;
    text-decoration: none;
    font-size: 0.98rem;
    transition: color 0.2s;
    margin-bottom: 2px; /* réduit l'espace */
    display: inline-block;
}
.footer-link:hover {
    color: #555;
    text-decoration: underline;
}

/* Pour que le footer soit visible sans scroller dans #contact */
#contact {
    min-height: calc(100vh - 90px); /* 90px = hauteur du footer + marge de sécurité */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0; /* retire toute marge inutile */
    padding-bottom: 0; /* retire tout padding inutile */
    scroll-margin-bottom: 100px; /* pour l'ancre #contact */
}

/* Optionnel : pour éviter un trop grand espace si le contenu est long */
@media (max-width: 600px) {
    #contact {
        min-height: calc(100vh - 110px);
    }
}