
:root{
    --secondary-color:#112e42;
    --bg2-color:#fff;
    --bg-color:#ededed;
    --main-color:#00abf0;
    --font-family: 'Poppins', sans-serif;
}
.darkmode{
    --secondary-color: #0A1A28;   /* Plus sombre, idéal pour headers */
    --bg2-color: #E6F7FF;       /* Blanc légèrement bleuté = lisibilité */
    --bg-color: #0F2433;         /* Background global sombre */
    --main-color: #00abf0;       /* On garde ton bleu vif */
    --kitoko-color: #1E90FF;     /* Accent, liens / boutons */
    --font-family: 'Poppins', sans-serif;
}
/*Darkmode à venir*/
body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-color);
}
main {
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/*All elements*/
*{
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style-type: none;
    scroll-behavior: smooth;
    outline: none;
    box-sizing: border-box;
    color:var(--secondary-color);
    font-family: 'Poppins', sans-serif;
}
header{
    width: 100%;
    z-index: 999;
}

/*Loading Animation*/
.preloader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--secondary-color);
    z-index: 9999;
    transition: opacity .6s ease, visibility .6s ease;
    animation: preloaderFallback .6s 5s forwards;
}
.preloader.remove{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
@keyframes preloaderFallback{
    to{ opacity:0; visibility:hidden; pointer-events:none; }
}
#logo-img-box1{
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 16px solid;
    border-left-color: var(--bg-color);
    border-bottom-color: transparent;
    border-top-color: transparent;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-right-color:transparent;
    background: var(--secondary-color);
    box-shadow: 3px 3px 9px var(--bg-color);
    overflow: hidden;
    position: relative;
    z-index: 10;
    animation: loadingAnimation 5s linear infinite;
    -webkit-animation: loadingAnimation 5s linear infinite;
    position: relative;
}
.logo-img-box2{
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    position: absolute;
    animation: logoAnimate 1s linear infinite;
    -webkit-animation: logoAnimate 3s ease-out infinite;z-index: 10;
}

/*LOADING ANIMATION KEYFRAME*/
    @keyframes loadingAnimation {
        from{
            transform: rotate(0);
            -webkit-transform: rotate(0);
            -moz-transform: rotate(0);
            -ms-transform: rotate(0);
            -o-transform: rotate(0);
        }
        to{
            transform: rotate(1turn);
            -webkit-transform: rotate(1turn);
            -moz-transform: rotate(1turn);
            -ms-transform: rotate(1turn);
            -o-transform: rotate(1turn);
    }
}
@keyframes logoAnimate {
    from{
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
    }
    to{
        transform: scale(1.3);
        -webkit-transform: scale(1.3);
        -moz-transform: scale(1.3);
        -ms-transform: scale(1.3);
        -o-transform: scale(1.3);
}
}
.header{
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--secondary-color);
    width: 100%;
    height: 90px;
    position: fixed;
    top: 0;
    z-index: 9999;
    margin: 0;
    padding: 0;
}
/* Nav */
nav{
    display: flex;
    gap: 1rem;
   
}
.Active{
    position: relative;
}
.Active::before{
    content:'';
    position:absolute;
    top: 100%;
    left:0;
    width:100%;
    height:3px;
    background:var(--main-color);
}
nav ul{
    display: flex;
    justify-content: center;
    gap:1rem;
}
nav ul li{
      color: var(--bg-color);
      position: relative;
}
nav ul li a{
    position: relative;
    color: var(--bg-color);
}
nav ul li a::before{
    content: '';
    border-radius: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--main-color);
    z-index: 100;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    transition: .7s ease-out;
    -webkit-transition: .7s ease-out;
    -moz-transition: .7s ease-out;
    -ms-transition: .7s ease-out;
    -o-transition: .7s ease-out;
}
nav ul li a:hover::before{
    width: 100%;
}
#close{
    display: none;
}
#bar{
    display: none;
}
i{
    font-size: 1.2rem;
    color: var(--bg-color);
}

.technicSupport p{
    display: none;
}
.technicSupport{
    position: relative;
    bottom: .5rem;
    margin-left: 2rem;
}
.technicSupport span i{
    background: var(--main-color);
    width: 100%;
    height: 100%;
    padding: .5rem;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    transition: .5s ease;
    -webkit-transition: .5s ease;
    -moz-transition: .5s ease;
    -ms-transition: .5s ease;
    -o-transition: .5s ease;
}
.technicSupport span i:hover{
    background: var(--bg-color);
    color: var(--secondary-color);
}
.portfolio_pres{
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(300px, 100%),1fr));
    place-items: center;
    padding-top: 8rem;
    background:url('/photos/bg-pres-miradi.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    
}
.roundpres{
    position: relative;
    width: min(450px, 80vw);
    height: min(450px, 80vw);
    background: var(--secondary-color);
    clip-path: polygon(56% 0, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 35% 100%, 17% 78%, 17% 56%, 43% 37%);
    overflow: hidden;
}
.roundpres img{
    position: absolute;
    right:-1rem;
    bottom:0;
    width:100%;
}
.text_pres_portf{
    display:flex;
    gap:1rem;
    flex-direction:column;
    padding:0 1rem;
}
.text_pres_portf .portfolio-intro{
    font-size: clamp(1rem,8vw,1.3rem);
    font-family: 'Poppins', sans-serif;
    width: clamp(90%,min(350px,10%),350px);
}
.text_pres_portf .portfolio-intro span{
    position:relative;
}
.text_pres_portf .portfolio-intro span::before{
    content:'';
    position:absolute;
    bottom:0;
    left:0;
    background:var(--main-color);
    height:3px;
    width:100%;
}
.text_pres_portf h1{
    display:flex;
    flex-direction: column;
    font-size:clamp(2.5rem,4vw,3.5rem);
    width:100%;
}
.text_pres_portf h1 span{
    background: var(--main-color);
    width:fit-content;
    padding:.3rem;
    border-radius:4px;
    -webkit-border-radius:4px;
    -moz-border-radius:4px;
    -ms-border-radius:4px;
    -o-border-radius:4px;
    position:relative;
    left:5rem;
}
.text_pres_portf p{
    font-size:clamp(.9rem,4vw,1.2rem);
    height: 100%;
    flex-wrap: wrap;
    width: clamp(90%,100%,350px);
}
.technologiesUtilisee{
    display:flex;
    gap:1rem;
}
.about{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(min(350px, 100%),1fr));
    place-items:center;
}
.image-Me{
    position:relative;
    clip-path: ellipse(32% 45% at 51% 51%);
    background: #00acf096;
    display:flex;
    justify-content: center;
    align-items: center;
}
.left{
    position:relative;
}
@keyframes turningAnimate {
    from{
        transform: rotate(0turn);
        transform:translate(7px);
}
    to{
        transform:rotate(1turn);
        transform:translate(0);
    }
}
.left .round{
    width:100px;
    height:100px;
    background: #00acf096;
    position:absolute;
    top:0;
    border-radius:50%;
    -webkit-border-radius:50%;
    -moz-border-radius:50%;
    -ms-border-radius:50%;
    -o-border-radius:50%;
    animation: turningAnimate 3s linear infinite;
    -webkit-animation: turningAnimate 10s linear infinite alternate-reverse;
    display:flex; 
    justify-content: center;
    align-items:center;
}
.left .round:nth-child(1){
    position: absolute;
    left:15%;
    animation-delay: .5s;
}
.left .round:nth-child(2){
    position: absolute;
    left:75%;
    animation-delay: .8s;
}
.left .round:nth-child(3){
    position: absolute;
    left:10%;
    top:80%;
    animation-delay: 1s;
}
.left .round:nth-child(4){
    position: absolute;
    left:75%;
    top:80%;
    animation-delay: 1.2s;
}
.AboutMe{
    width:100%;
    padding:4rem 1rem;
    display:flex;
    flex-direction:column;
    gap:1rem;
}
.AboutMe .firsth2{
    font-size: clamp(1.8rem,4vw,2.2rem);
}
.skills{
    display:flex;
    flex-direction:column;
    width:100%;
    gap:2rem;
}
.skill{
    display:flex;
    width:100%;
    flex-direction:column;
}
.bar1{
    width:100%;
    height:25px;
    background: var(--main-color);
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
    position:relative;
}
.bar1::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width: 85%;
    height: 100%;
    background:var(--secondary-color);
    border-radius:1rem;
    -webkit-border-radius:1rem;
    -moz-border-radius:1rem;
    -ms-border-radius:1rem;
    -o-border-radius:1rem;
}
.bar1::after{
    content:'85%';
    position:absolute;
    right:0;
    top:-1rem;
    font-weight: 600;
}
.bar2{
    width:100%;
    height:25px;
    background: var(--main-color);
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
    position:relative;
}
.bar2::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width: 80%;
    height: 100%;
    background:var(--secondary-color);
    border-radius:1rem;
    -webkit-border-radius:1rem;
    -moz-border-radius:1rem;
    -ms-border-radius:1rem;
    -o-border-radius:1rem;
}
.bar2::after{
    content:'80%';
    position:absolute;
    right:0;
    top:-1rem;
    font-weight: 600;
}
.bar3{
    width:100%;
    height:25px;
    background: var(--main-color);
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
    position:relative;
}
.bar3::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width: 70%;
    height: 100%;
    background:var(--secondary-color);
    border-radius:1rem;
    -webkit-border-radius:1rem;
    -moz-border-radius:1rem;
    -ms-border-radius:1rem;
    -o-border-radius:1rem;
}
.bar3::after{
    content:'70%';
    position:absolute;
    right:0;
    top:-1rem;
    font-weight: 600;
}



.section__container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
footer{
    background: var(--secondary-color);
    width: 100%;
}
.footer__bar{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
    color: var(--bg-color);
}
.footer__links{
    padding-top: 1rem;
}
.footer__links i{
    color: var(--bg-color);
    font-weight: 600;
    background: var(--main-color);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    width: fit-content;
    padding: .4rem;
}
.footer__socials{
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    width: 100%;
    height: 100%;
}
.footer__socials i{
    background: var(--main-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition:  background .6s ease;
    -webkit-transition:  background .6s ease;
    -moz-transition:  background .6s ease;
    -ms-transition:  background .6s ease;
    -o-transition:  background .6s ease;
}
.footer__socials i:hover{
    background: var(--bg-color);
    color: var(--secondary-color);
}
.footer__content p, li, a{
    color: var(--bg-color);
}
.footer__content{
    width: min(90%, 600px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .text_pres_portf h1 span {
        left: 0;
    }
    .left .round {
        width: 60px;
        height: 60px;
    }
    .portfolio_pres {
        padding: 1rem;
    }
    .technologiesUtilisee {
        flex-wrap: wrap;
    }
}
