

/* CORPS */
*, ::before,::after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    background-color: #C6B3B7;
    margin: 0;
    font-size: 18px;
    font-family: 'policeTexte';
    color: #3D4D5D;
}

main{
    padding-top: 90px;
}


/* TITRES*/

h1{
    font-size: 80px;
    font-family: 'policeH1';
    color: white;
    padding-top: 150px;
}

h2{
    font-family: 'policeTitre';
    font-size: 55px;
}

h3{
    font-family: 'policeTitre';
    font-size: 45px;
    margin: 30px;
}

h4{
    font-family: 'policeTitre';
    font-size: 35px;
    padding: 10px;
}

.grosTitre{
    text-shadow: 2px 4px 3px rgba(0,0,0,0.3);
    letter-spacing: 3px;
    padding: 30px;
}

.titre {
    position: relative;       /* Permet au span positionné absolument d'être aligné par rapport à .titre */
    font-weight: 300;
    margin: 40px;
    color: #3D4D5D;
    text-align: center;
    letter-spacing: 3px;
}

.titre span {
    position: absolute;       /* Positionnement absolu par rapport à .titre */
    left: 0;
    right: 0;
    top: -90%;               /* Ajustez cette valeur selon vos besoins de design */
    text-align: center;
    opacity: 0.2;            /* Assurez-vous que l'opacité fonctionne visuellement comme prévu */
    font-weight: 700;
    z-index: 0;              /* Assurez-vous qu'il n'y a pas de conflits de z-index */
    font-size: 120px;        /* Taille de police pour le span */
    padding: 5px;
}

/* EN TETE */

/* #loader-wrapper {
    background-color: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader{
    width: 100px;
    height: 100px;
    position: relative;
}

.loader div{
    width: 100%;
    height: 100%;
    position: absolute;
    animation: rotation 1.2s linear infinite;
}

.loader div::after{
    content:"";
    position: absolute;
    top: 0;
    left: 50%;
    width: 5px;
    height: 20px;
    background-color: #30dc0e;
    transform: translate(-50%,-50%);
}

.loader div:nth-child(2){
    transform: rotate(30deg);
    animation-delay: 0.1s;
}

.loader div:nth-child(3){
    transform: rotate(60deg);
    animation-delay: 0.2s;
}

.loader div:nth-child(4){
    transform: rotate(90deg);
    animation-delay: 0.3s;
}

.loader div:nth-child(5){
    transform: rotate(120deg);
    animation-delay: 0.4s;
}

.loader div:nth-child(6){
    transform: rotate(150deg);
    animation-delay: 0.5s;
}

.loader div:nth-child(7){
    transform: rotate(180deg);
    animation-delay: 0.6s;
}

.loader div:nth-child(8){
    transform: rotate(210deg);
    animation-delay: 0.7s;
}

.loader div:nth-child(9){
    transform: rotate(240deg);
    animation-delay: 0.8s;
}

.loader div:nth-child(10){
    transform: rotate(270deg);
    animation-delay: 0.9s;
}

.loader div:nth-child(11){
    transform: rotate(300deg);
    animation-delay: 1.1s;
}
.loader div:nth-child(12){
    transform: rotate(330deg);
    animation-delay: 1s;
}

@keyframes rotation {
    from{
        opacity: 1;
    }
    to{
        opacity: 0;
    }
} */

/* EN-TÊTE */

/* MENU */

header>div{
    display: flex;
    justify-content: center;
    text-align: center;
}

header{
    background-image: url(/image/image.jpg);
    border-bottom: 10px solid #3D4D5D;
    left: 0; 
    width: 100%;
    height: 100vh;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}

/* MENU */
nav{
    position: fixed;
    z-index: 50;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background-color: #d7c9cc;
    box-shadow: inset 0 -1px 0 #3D4D5D;
}

.nav-icon{
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 20px;
}

.nav-icon span {
    font-size: 25px;
    margin-left: 10px;
    font-weight: 400;
    color: #3D4D5D;
    
}

.nav-icon img {
    width: 40px;
    transform: rotate(-17deg) translateX(5px);
}

.hamburger{
    display: none;
}

.navlinks-container a{
    margin: 0 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color:#414141;
    display: inline-block;
    position: relative;
}

.navlinks-container a::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -3px;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: #3D4D5D;
    transition: transform 0.3s ease-out;
}

.navlinks-container a:hover::after {
    transform: rotateX(1);
}

/* ANIM TITRE */
  
.fade-in {
    opacity: 0; 
    animation: fadeInAnimation 3s ease-in forwards; 
}
  
@keyframes fadeInAnimation {
    from {
      opacity: 0; 
    }
    to {
      opacity: 1; 
    }
}

.grid{
    text-align: center;
    font-weight: bolder;
    padding-top: 80px;
}

.letter-anim, .letter-anim span{
    display: inline-block;
}

.grid span {
    cursor: pointer;
    position: relative;
    font-size: 100px;
    perspective: 450px;
}

.letter-anim span::before,.letter-anim span::after {
    position: absolute;
    content: attr(data-letter);
    inset: 0;
    transform-origin: left;
}

.letter-anim span::before{
    transition: transform 0.4s ease-out;
    color: #3D4D5D;
}

.letter-anim span::after{
    color: white;
    transition: transform 0.4s ease-out, color 0.4s ease-out;
    transform: rotateY(-30deg);
}

.letter-anim:hover span::after{
    transform: rotateY(-40deg);
}

.letter-anim:hover span::before{
    transform : rotateY(-40deg);
}

.letter-anim:nth-child(1):hover span::after{ color:#ff0000}
.letter-anim:nth-child(2):hover span::after{ color:#008b8b}
.letter-anim:nth-child(3):hover span::after{ color:#30dc0e}
.letter-anim:nth-child(4):hover span::after{ color:#800080}
.letter-anim:nth-child(5):hover span::after{ color:brown}
.letter-anim:nth-child(6):hover span::after{ color:#ff4500}
.letter-anim:nth-child(7):hover span::after{ color:#ffff00}
.letter-anim:nth-child(8):hover span::after{ color:#EF27A6}
.letter-anim:nth-child(9):hover span::after{ color:#00ffff}

/* BODY */

main {
    padding: 40px;
}

/* PRÉSENTATION */

.moi img{
    width: 30%;
    height: 30%;
}

/* CARROUSEL */
.marge{
    margin-top: 80px;
    margin-bottom: 200px;
}

.container{
    position: relative;
    top: 50%;
    left: 35%;
    transform: translate(-50%, 0);
    width: 800px;
    height: 400px;
    box-shadow: 0 30px 50px #dbdbdb;
}

.container .slide .item{
    width: 150px;
    height: 250px;
    position: absolute;
    top: 50%;
    /* transform: translate(0, -50%); */
    border-radius: 20px;
    box-shadow: 0 30px 50px #3D4D5D;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}

.slide .item:nth-child(1),
.slide .item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}


.slide .item:nth-child(3){
    left: 70%;
}
.slide .item:nth-child(4){
    left: calc(70% + 200px);
}
.slide .item:nth-child(5){
    left: calc(70% + 400px);
}

/* here n = 0, 1, 2, 3,... */
.slide .item:nth-child(n + 6){
    left: 70%;
    opacity: 0;
}



.item .content{
    position: absolute;
    top: 50%;
    left: 100px;
    width: 300px;
    text-align: left;
    color: white;
    transform: translate(0, -50%);
    display: none;
    background-color: rgba(61,77,93,0.50);
    padding: 10px;
}


.slide .item:nth-child(2) .content{
    display: block;
}


.content .name{
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 1;
    animation: animate 1s ease-in-out 1 forwards;
}

.content .des{
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 1;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content button{
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
}


@keyframes animate {
    from{
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.button img{
    width: 20px;
}

.button{
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
}

.button button{
    width: 40px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #000;
    transition: 0.3s;
}

.button button:hover{
    background: #ababab;
    color: #fff;
}

/* OBJECTIFS*/

.obj {
    margin: 0 auto;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.obj img{
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    float: left;
    shape-outside: margin-box;
    margin: 0 20px 5px 0;
    padding: 15px;
}

.obj::after{
    content: "";
    display: block;
    clear: both;
}


/* FRISE CHRONOLOGIQUE */

.parcours > article{
    padding: 20px 0;
}

/* OUVRIR FERMER */

.wrapper,.wrapper2 {
    width: 100%;
    background-color: #C6B3B7;
    border: 2px solid #3D4D5D;
    border-radius: 25px;
    box-shadow: rgba(100, 100, 100, 0.2) 0px 7px 29px 0px;
    padding: 20px;
}

.details-box,.details-box2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
}

.details-box img,.details-box2 img{
    width: 60px;
}

.details-box h4,.details-box2 h4 {
    letter-spacing: 4px;
    font-size: 50px;
}

#btn,#btn2 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #3D4D5D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btn:hover,#btn2:hover {
    background-color: white;
}

#btn:hover ion-icon,#btn2:hover ion-icon {
    animation: upAndDown 0.3s alternate infinite;
}

@keyframes upAndDown {
    0% {
        transform: translateY(3px);
    }
    100% {
        transform: translateY(-3px);
    }
}

#details,#details2 {
    line-height: 1.6;
    font-weight: bold;
    text-align: center;
    height: 0;
    overflow: hidden;
}

/* FORMATION*/

ul {
    --col-gap: 2rem;
    --row-gap: 2rem;
    --line-w: 0.25rem;
    display: grid;
    grid-template-columns: var(--line-w) 1fr;
    grid-auto-columns: max-content;
    column-gap: var(--col-gap);
    list-style: none;
    width: min(60rem, 90%);
    margin-inline: auto;
  }
  
  /* line */
  ul::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 20;
    background: rgb(225, 225, 225);
    border-radius: calc(var(--line-w) / 2);
  }
  
  /* columns*/
  
  /* row gaps */
  ul li:not(:last-child) {
    margin-bottom: var(--row-gap);
  }
  
  /* card */
  ul li {
    grid-column: 2;
    --inlineP: 1.5rem;
    margin-inline: var(--inlineP);
    grid-row: span 2;
    display: grid;
    grid-template-rows: min-content min-content min-content;
  }
  
  /* date */
  ul li .date {
    --dateH: 3rem;
    height: var(--dateH);
    margin-inline: calc(var(--inlineP) * -1);
  
    text-align: center;
    background-color: var(--accent-color);
  
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
  
    display: grid;
    place-content: center;
    position: relative;
  
    border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
  }
  
  /* date flap */
  ul li .date::before {
    content: "";
    width: var(--inlineP);
    aspect-ratio: 1;
    background: var(--accent-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
    position: absolute;
    top: 100%;
  
    clip-path: polygon(0 0, 100% 0, 0 100%);
    right: 0;
  }
  
  /* circle */
  ul li .date::after {
    content: "";
    position: absolute;
    width: 2rem;
    aspect-ratio: 1;
    background: var(--bgColor);
    border: 0.3rem solid var(--accent-color);
    border-radius: 50%;
    top: 50%;
  
    transform: translate(50%, -50%);
    right: calc(100% + var(--col-gap) + var(--line-w) / 2);
  }
  
  /* title descr */
  ul li .title,
  ul li .descr {
    background: var(--bgColor);
    position: relative;
    padding-inline: 1.5rem;
  }
  ul li .title {
    overflow: hidden;
    padding-block-start: 1.5rem;
    padding-block-end: 1rem;
    font-weight: 900;
    font-size: 22px;
  }
  ul li .descr {
    padding-block-end: 1.5rem;
    font-weight: 300;
  }
  
  /* shadows */
  ul li .title::before,
  ul li .descr::before {
    content: "";
    position: absolute;
    width: 90%;
    height: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    left: 50%;
    border-radius: 50%;
    filter: blur(4px);
    transform: translate(-50%, 50%);
  }
  ul li .title::before {
    bottom: calc(100% + 0.125rem);
  }
  
  ul li .descr::before {
    z-index: -1;
    bottom: 0.25rem;
  }
  
  @media (min-width: 40rem) {
    ul {
      grid-template-columns: 1fr var(--line-w) 1fr;
    }
    ul::before {
      grid-column: 2;
    }
    ul li:nth-child(odd) {
      grid-column: 1;
    }
    ul li:nth-child(even) {
      grid-column: 3;
    }
  
    /* start second card */
    ul li:nth-child(2) {
      grid-row: 2/4;
    }
  
    ul li:nth-child(odd) .date::before {
      clip-path: polygon(0 0, 100% 0, 100% 100%);
      left: 0;
    }
  
    ul li:nth-child(odd) .date::after {
      transform: translate(-50%, -50%);
      left: calc(100% + var(--col-gap) + var(--line-w) / 2);
    }
    ul li:nth-child(odd) .date {
      border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
    }
  }
  
  .credits {
    margin-top: 1rem;
    text-align: right;
  }
  .credits a {
    color: var(--color);
  }

/*----------FOOTER----------- */

footer{
    border-top: 5px dashed #3D4D5D ;
    color: #3D4D5D;
    padding: 30px 80px;
}

.footer-top{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 50px;
    justify-items: center;
    margin: 0 auto 80px auto;
}

.footer-col {
    width: max-content;
}

.footer-col > * {
    display: block;
    width: max-content;
}

.footer-col > h3{
    margin-bottom: 20px;
}

.footer-col a{
    padding: 5px 0;
}

.footer-col img{
    width: 30px;
    padding-right: 6px;
}
.footer-middle{
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.footer-middle h3{
    margin-bottom: 10px;
}

.footer-middle a{
    width: 300px;
    height: 60px;
    margin: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    color: #3D4D5D;
    z-index: 0;
    border: 2px solid #3D4D5D;
    border-radius: 6px;
    background: #C6B3B7;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-middle a::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3D4D5D;
    border-radius: 50% 50% 0% 0%;
    z-index: -1;
    transition: all .5s;
}

.footer-middle a:hover::before{
    top: 0px;
    border-radius: 0;
}

.footer-middle a:hover {
    background: transparent;
}

a,a:visited,a:active{
    text-decoration: none;
    color:inherit;
    transition: all 0.2s ease;
}

a:hover{
    color: white;
}

.reseau {
    display: flex;
    justify-content: center;
    align-items: center;
    
}


/*-----------------------------------------------------TABLETTE---------------------- */

@media (max-width:920px){
        /* TITRES*/

        h1{
            padding-top: 50px;
            font-size: 50px;
        } 
        
        body{
            font-size: 16px;
            background-color: #00ffff;
        }

        /* CARROUSEL */
        .marge{
            margin-bottom: 150px;
        }

    .container{
        top: 50%;
        left: 45%;
        width: 650px;
        height: 300px;
        box-shadow: 0 30px 50px #dbdbdb; 
        margin-bottom: 200px;
    }

    .container .slide .item{
        width: 130px;
        height: 160px;
        top: 70%;
    }

    .slide .item:nth-child(1),
    .slide .item:nth-child(2){
        top: 0;
        width: 100%;
        height: 100%;
}

    .slide .item:nth-child(3){
        left: 70%;
    }
    .slide .item:nth-child(4){
        left: calc(70% + 180px);
    }
    .slide .item:nth-child(5){
        left: 70%;
        opacity: 0;
    }
    .slide .item:nth-child(n + 6){
        left: 70%;
        opacity: 0;
    }

    .item .content{
        top: 55%;
        left: 60px;
        width: 230px;
    }

    .content .name{
        font-size: 25px;
    }

    .content .des{
        margin-top: 10px;
        font-size: 15px;
    }

    .content button{
        padding: 8px 16px;
    }

    .button img{
        width: 15px;
    }

    .button button{
        width: 35px;
        height: 30px;
    }

    /* OBJECTIFS*/

    .obj{
        padding: 10px;
    }

    .obj img{
        width: 270px;
        height: 280px;
    }
}

@media (max-width:768px) {

    /* CORPS */

    body{
        font-size: 16px;
        background-color: red;
    }


    /* TITRES*/


    h2{
        font-size: 45px;
    }

    h3{
        font-size: 35px;
        margin: 30px;
    }

    h4{
        font-size: 25px;
        padding: 10px;
    }

    .grosTitre{
        text-shadow: 2px 4px 3px rgba(0,0,0,0.3);
        letter-spacing: 2px;
        padding: 15px;
    }

    .titre {
        position: relative;
        font-weight: 300;
        margin-bottom: 40px;
        color: #3D4D5D;
        text-align: center;
        letter-spacing: 3px;
    }

    .titre span {
        position: absolute;
        left: 0;
        right: 0;
        top:-90%;
        text-align: center;
        opacity: 0.2;
        font-weight: 700;
        z-index: 0;
        font-size: 100px;
        padding: 5px;
    }

    /* MENU */

    nav{
        padding: 15px 20px;
        position: relative;
    }

    .nav-icon{
        order: 2;
        margin: 0 auto;
    }

    .main-navlinks{
        order: 1;

    }

    .nav-icon span {
        font-size: 22px;
    }

    /* HAMBURGER */

    .hamburger {
        width: 20px;
        height: 20px;
        cursor: pointer;
        border: none;
        display: flex;
        background: #d7c9cc;
        align-items: center;
        position: relative;
        
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #3D4D5D;
        position: absolute;
        pointer-events: none;
        transition: opacity 0.3s 0.15s ease-out;
        
    }

    .hamburger span:nth-child(1),.hamburger span:nth-child(3){
        transition: transform 0.3s ease-out;
    }

    .hamburger span:nth-child(1){
        transform: translateY(7px);
    }

    .hamburger span:nth-child(2){
        transform: translateY(-7px);   
    }

    .hamburger.open span:nth-child(1){
        transform: translate(0) rotate(135deg);
    }

    .hamburger.open span:nth-child(2){
        opacity: 0;
        transition: opacity 0 ease-out;
    }

    .hamburger.open span:nth-child(3){
        transform: translate(0) rotate(-135deg);
    }

    .navlinks-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        background: #d7c9cc;
        top: 100%;
        left: 0;
        height: 3500px;
        padding: 15PX 50px 15px 20px;
        border-right: 1px solid #3D4D5D;
        transform: translate(-100%); 
        transition: transform 0.3s ease-out;
    }

    .open{
        transform: translate(0%);
    }

    .navlinks-container a{
        font-size: 18px;
        margin: 10px 0;
    }

    /* ANIM TITRE */

    .grid{
       padding-top: 0; 
    }

    .grid span {
        font-size: 60px;
        perspective: 350px;
    }

    /* CARROUSEL */
    .marge{
        margin-bottom: 150px;
    }

.container{
    top: 50%;
    left: 45%;
    width: 650px;
    height: 300px;
    box-shadow: 0 30px 50px #dbdbdb; 
    margin-bottom: 200px;
}

.container .slide .item{
    width: 130px;
    height: 160px;
    top: 70%;
}

.slide .item:nth-child(1),
.slide .item:nth-child(2){
    top: 0;
    width: 100%;
    height: 100%;
}

.slide .item:nth-child(3){
    left: 70%;
}
.slide .item:nth-child(4){
    left: calc(70% + 180px);
}
.slide .item:nth-child(5){
    left: 70%;
    opacity: 0;
}
.slide .item:nth-child(n + 6){
    left: 70%;
    opacity: 0;
}

.item .content{
    top: 55%;
    left: 60px;
    width: 230px;
}

.content .name{
    font-size: 25px;
}

.content .des{
    margin-top: 10px;
    font-size: 15px;
}

.content button{
    padding: 8px 16px;
}

.button img{
    width: 15px;
}

.button button{
    width: 35px;
    height: 30px;
}

/* OBJECTIFS*/

.obj{
    padding: 10px;
}

.obj img{
    width: 240px;
    height: 240px;
    margin: 5px;
}


        /*----------FOOTER----------- */

    footer{
        border-top: 3px dashed #3D4D5D ;
    }

    .footer-top{
        gap: 40px;
        margin: 0 auto 20px auto;
    }

    .footer-middle a{
        width: 200px;
        height: 40px;
        margin: 20px;
        font-size: 16px;
    }

}


/*-----------------------------------------------------TELEPHONE---------------------- */


@media (max-width:480px) {

    /* CORPS */

    body{
        font-size: 14px;
        background-color: #30dc0e;
    }


    /* TITRES*/


    h2{
        font-size: 45px;
    }

    h3{
        font-size: 35px;
        margin: 30px;
    }

    h4{
        font-size: 25px;
        padding: 10px;
    }

    .grosTitre{
        text-shadow: 2px 4px 3px rgba(0,0,0,0.3);
        letter-spacing: 2px;
        padding: 15px;
    }

    .titre {
        position: relative;
        font-weight: 300;
        margin-bottom: 40px;
        color: #3D4D5D;
        text-align: center;
        letter-spacing: 3px;
    }

    .titre span {
        position: absolute;
        left: 0;
        right: 0;
        top:-90%;
        text-align: center;
        opacity: 0.2;
        font-weight: 700;
        z-index: 0;
        font-size: 100px;
        padding: 5px;
    }

     /* MENU */

    .nav-icon img {
        width: 30px;
    }

    .nav-icon span{
        font-size: 20px;
    }
}