@font-face {
    font-family: 'Tritopani';
    src: local('Tritopani'),
         url('../fonts/Tritopani.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Cubani Pop';
    src: local('Cubani Pop'),
         url('../fonts/CubaniPop_PERSONAL_USE_ONLY.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Creato';
    src: local('Creato'),
         url('../fonts/CreatoDisplay-Black.otf') format('opentype');
    font-display: swap;
}



.fond-fixe picture {
    display: block;
    width: 100%;
    height: 100%;
}


.hero {
    min-height: 100dvh;
}

.logo {
    height: 50px;
    width: auto;
    display: block;
}

/* Barre centrée, de la largeur des mains */
.barre {
    width: min(60%, 1150px);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Le titre descend pour ne pas passer sous la barre */
.titre {
    font-family: 'Tritopani', sans-serif;
    line-height: 1;
    font-size: min(16vh, 16vw);
    padding-top: 5.5rem;
}

.sous-titre {
    font-family: 'Cubani Pop', sans-serif;
    line-height: 1;
    font-size: min(8vh, 8vw);
    padding-top: 5.5rem;
    color: #f9b234;
}
p{
    font-family: 'Creato', sans-serif;
    line-height: 1;
    font-size: min(3vh, 3vw);
    padding-top: 5.5rem;
    color: #fafafa;
}

/* Sur téléphone, la barre prend presque toute la largeur */
@media (max-width: 991.98px) {
    .barre {
        width: calc(100% - 2rem);
    }
}

@media (max-width: 575.98px) {
    .logo {
        height: 40px;
    }
}

@media (max-width: 575.98px) {
    .logo {
        height: 40px;
    }
}

.navbar .nav-link {
    color: #fff;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Téléphone en portrait */
@media (max-width: 575.98px) {
    .titre {
        padding-top: 35dvh;
    }
}

/* Téléphone en paysage */
@media (max-height: 500px) and (orientation: landscape) {
    .titre {
        padding-top: 15vh;
        font-size: min(30vh, 15vw);
    }
}






/* POLAROID*/
.polaroid {
    position: relative;
    width: min(100%, 300px);
    background: #fff;
    padding: 12px 12px 55px;         
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.polaroid:hover {
    transform: rotate(-2deg) scale(1.03);
}

.polaroid img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;              
    object-fit: cover;
}

.polaroid::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 50%;
    width: 110px;
    height: 34px;
    transform: translateX(-50%) rotate(6deg);
    background: rgba(235, 225, 195, 0.75);
    /* bords déchirés à gauche et à droite */
    clip-path: polygon(
        2% 0, 98% 0,
        100% 20%, 97% 40%, 100% 60%, 97% 80%, 99% 100%,
        1% 100%,
        3% 80%, 0 60%, 3% 40%, 0 20%
    );
    z-index: 1;
}



/* COMPETENCES */
.competence {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1rem 1.25rem;
    text-align: left;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.competence:hover {
    transform: translateY(-3px);
    border-color: #f7b034;
}

.competence-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 10px;
}

.competence-texte {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.competence-nom,
.competence-desc,
.competence-niveau {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.competence-nom {
    font-size: 1.1rem;
    font-weight: 700;
}

.competence-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.competence-niveau {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.etoiles {
    color: #f7b034;
    letter-spacing: 2px;
}

/* PROJETS BLOCS */
.projet {
    height: 100%;
    padding: 1.75rem 2rem;
    text-align: left;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.projet .projet-desc {
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.projet .projet-desc:last-child {
    margin-bottom: 0;
}

.projet .projet-nom {
    margin: 0;
    padding: 0;
}

.projet:hover {
    transform: translateY(-3px);
    border-color: #f7b034;
}

.projet-entete {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.projet-nom {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.projet-info {
    font-size: 0.85rem;
    color: #f7b034;
}

.projet-desc:last-child {
    margin-bottom: 0;
}

/* Sur téléphone, un peu moins d'espace intérieur */
@media (max-width: 575.98px) {
    .projet {
        padding: 1.25rem;
    }
}




/* MON PARCOURS */
.frise {
    --jaune: #f7b034;

    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 80px auto;
    text-align: center;
}

/* Ligne ondulée, sur la rangée des points */
.frise-ligne {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.frise-ligne path {
    fill: none;
    stroke: var(--jaune);
    stroke-width: 3;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;  /* épaisseur constante */
}

/* Chaque étape occupe sa colonne sur les 3 rangées */
.etape {
    position: relative;
    z-index: 1;
    display: grid;
    grid-row: 1 / span 3;
    grid-template-rows: subgrid;
    justify-items: center;
    padding: 0 1rem;
}

.etape:nth-of-type(1) { grid-column: 1; }
.etape:nth-of-type(2) { grid-column: 2; }
.etape:nth-of-type(3) { grid-column: 3; }

.etape-haut {
    align-self: end;
    padding-bottom: 0.5rem;
}

.frise .etape-date {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.frise .etape-titre {
    margin: 0;
    padding: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

/* Point sur la ligne */
.etape-point {
    align-self: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--jaune);
    box-shadow: 0 0 0 4px #000, 0 0 12px var(--jaune);
}

.frise .etablissement {
    align-self: start;
    margin: 0;
    padding: 0.5rem 0 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}


/* VERSION TEL */
@media (max-width: 767.98px) {
    .frise {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        row-gap: 2rem;
        margin-left: 0.75rem;
        padding-left: 2rem;
        border-left: 3px solid var(--jaune);
        text-align: left;
    }

    .frise-ligne {
        display: none;
    }

    .frise .etape:nth-of-type(n) {
        grid-column: 1;
        grid-row: auto;
        display: block;
        padding: 0;
    }

    .etape-haut {
        padding-bottom: 0.25rem;
    }

    .etape-point {
        position: absolute;
        top: 0.35rem;
        left: calc(-2rem - 9.5px);   /* centré sur la ligne */
    }

    .frise .etape-detail {
        padding-top: 0.25rem;
    }
}






/* CV BOUTON */
.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.75rem;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    border: 3px solid #fff;
    border-radius: 20px;

    background-color:#f9b234;
}

/* CONTACTS */

.btn-cv:hover {
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(247, 176, 52, 0.55);
}

.btn-cv i {
    display: inline-block;
}


.contact-lien {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-lien:hover {
    color: #f7b034;
}


section[id] {
    scroll-margin-top: 7rem;
}

/* BOUTON POUR REVENIR AU TOP DE LA PAGE */
.retour-haut {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1000;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 1.5rem;
    color: #000;
    background: #f7b034;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, box-shadow 0.2s ease;
}

.retour-haut.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.retour-haut:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(247, 176, 52, 0.5);
}

.retour-haut:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .retour-haut {
        right: 1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom));
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}