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



/* Reset CSS */
* {
    margin: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
}

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes glow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(117, 13, 177, 0.5);
    }

    50% {
        text-shadow: 0 0 15px rgba(117, 13, 177, 0.8);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.02);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}



/* Balises HTML */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Ubuntu', sans-serif;
}

header {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
    border-radius: 10px;
}

body {
    background-image: url(images/tech_background.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgb(210, 186, 214);
    padding-bottom: 50px;
}




/* Balises personnalisées */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15vh 5vw;
    position: relative;
    animation: fadeIn 1s ease-out;
    font-family: 'Ubuntu', sans-serif;
}


.presentation {
    animation: fadeIn 2s ease-out 0.5s both;
    font-family: 'Ubuntu', sans-serif;
    font-size: 22px;
    color: #f9ffa3;
    text-align: center;
    font-style: normal;
    /* -webkit-text-stroke: 1px rgb(0, 0, 0); */
    margin-top: 50px;
}


.profil {
    width: min(15vw, 250px);
    height: min(15vw, 250px);
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    margin-right: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: bounceIn 1s ease-out 0.2s both;
}

.nom {
    font-size: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
    color: #b74cff;
    /*    -webkit-text-stroke: 1px rgb(255, 255, 255); */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.job {
    font-size: 30px;
    text-align: center;
    color: #672275;
    /*    -webkit-text-stroke: 1px rgb(255, 255, 255); */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.logolinkedin {
    width: 50px;
    height: 50px;
    object-fit: cover;
    animation: pulse 1s infinite;
    border-radius: 10px;
}

.boxlinkedin {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.contact-btn {
    padding: 8px 16px;
    background-color: #750db1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.contact-btn:hover {
    background-color: #6f008b;
}

.print-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #750db1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.print-btn:hover {
    background-color: #6f008b;
}

.main {
    display: flex;
    gap: 5px;
    margin: 0 2vw;
    align-items: stretch;
}


.box-left {
    flex: 1 1 24%;
    background-color: #b88bd3;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(117, 13, 177, 0.3);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.box-right {
    flex: 1 1 44%;
    transition: transform 0.3s ease;
    gap: 5px;
    display: flex;
    flex-direction: column;
}


.info-wrapper {
    font-family: 'Ubuntu', sans-serif;
    padding: 10px;
    margin-right: 20px;
    /*animation: fadeIn 1s ease-out;*/
}


.info-personnelles {
    margin-bottom: 20px;
    border-bottom: 1px solid #750db1;
    padding-bottom: 15px;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.info-personnelles h3 {
    font-size: 25px;
    margin-bottom: 10px;
    color: #6f008b;
}

.info-personnelles p {
    font-size: 14px;
    margin: 5px 0;
    text-align: justify;
}

.competences h3 {
    font-size: 25px;
    color: #6f008b;
    margin-bottom: 10px;
}

.competences ul {
    list-style-type: none;
    padding-left: 0;
}

.competences li {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin: 5px 0;
    text-align: justify;
    animation: glow 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.competences li:hover {
    transform: scale(1.02);
    color: #9c29b6;
}

.competences li::before {
    content: "~ ";
    color: #750db1;
    font-weight: bold;
}

.autres {
    margin-top: 20px;
    border-top: 1px solid #750db1;
    padding-top: 15px;
    transition: transform 0.3s ease;
}

.autres h3 {
    font-size: 25px;
    color: #6f008b;
    margin-bottom: 10px;
}

.autres p {
    font-size: 14px;
    margin: 5px 0;
    text-align: justify;
}

.hobbies {
    margin-top: 20px;
    border-top: 1px solid #750db1;
    padding-top: 15px;
    transition: transform 0.3s ease;
}

.hobbies h3 {
    font-size: 25px;
    color: #6f008b;
    margin-bottom: 10px;
}

.hobbies p {
    font-size: 14px;
    margin: 5px 0;
    text-align: justify;
}

.section {
    margin-left: 5px;
    padding: 15px;
    background-color: rgb(255, 249, 193);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex: 1;
}

.sectionbonus {
    margin-left: 5px;
    padding: 15px;
    background-color: #d1c6e0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.box-left:hover {
    transform: translateY(0) scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.box-left.visible {
    opacity: 1;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.sectionbonus.visible {
    opacity: 1;
    transform: translateY(0);
}

.bonus.visible {
    opacity: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.section h3 {
    font-size: 28px;
    color: #750db1;
    margin-bottom: 15px;
    border-bottom: 2px solid #b85ecc;
    padding-bottom: 5px;
}

.sectionbonus h3 {
    font-size: 28px;
    color: #750db1;
    margin-bottom: 15px;
    border-bottom: 2px solid #b85ecc;
    padding-bottom: 5px;
}

.item {
    margin-bottom: 2px;
    margin-top: 2px;
}

.item h4 {
    font-size: 20px;
    color: #6f008b;
    margin-bottom: 5px;
}

.item p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin: 3px 0;
}

.section ul {
    list-style-type: disc;
    padding-left: 20px;
}

.section li {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin: 5px 0;
    color: #333;
}

.sectionbonus ul {
    list-style-type: disc;
    padding-left: 20px;
}

.sectionbonus li {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin: 5px 0;
    color: #333;
}

.sectionbonus .item2 {
    margin-bottom: 10px;
    margin-top: 10px;
}

.sectionbonus .item2 h4 {
    font-size: 20px;
    color: #6f008b;
    margin-bottom: 5px;
}

.sectionbonus .item2 p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin: 3px 0;
}

.item2 {
    margin-bottom: 10px;
    margin-top: 10px;
    border-bottom: 1px solid #750db1;
    padding-bottom: 15px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.box-left .emoji {
    display: inline-block;
    animation: pulse 1.5s infinite;
    font-size: 20px;
}

.box-right .emoji {
    display: inline-block;
    animation: pulse 1.5s infinite;
    font-size: 30px;
}

.bonus .emoji {
    display: inline-block;
    animation: pulse 1.5s infinite;
    font-size: 30px;
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #750db1;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content label {
    margin-bottom: 5px;
    font-weight: bold;
}

.modal-content input,
.modal-content textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.modal-content textarea {
    height: 100px;
    resize: vertical;
}

.modal-content button {
    padding: 10px;
    background-color: #750db1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.modal-content button:hover {
    background-color: #6f008b;
}

.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}


footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
}

.bonus {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    flex: 1 1 32%;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.sectionbonus:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.03);
}

.section:hover {
    transform: scale(1.03);
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 5vh 5vw;
        flex-direction: column;
        text-align: center;
    }

    .profil {
        width: 150px;
        height: 150px;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .job {
        font-size: 24px;
    }

    .presentation {
        font-size: 18px;
        margin-top: 20px;
    }

    .main {
        flex-direction: column;
        margin: 0 2vw;
        gap: 10px;
    }

    .info-wrapper {
        margin-right: 0;
    }

    .section,
    .sectionbonus {
        margin-left: 0;
    }

    .boxlinkedin {
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 2vh 5vw;
    }

    .nom {
        font-size: 24px;
    }

    .job {
        font-size: 20px;
    }

    .presentation {
        font-size: 16px;
    }

    .profil {
        width: 120px;
        height: 120px;
    }

    .main {
        margin: 0 1vw;
    }
}