@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Archivo", sans-serif;
}

:root {
    --bg--color: #ffffff;
    --second-bg-color: #9bb1bd;
    --text-color: #122030;
    --text-second-color: #08D4E6;
    --main-color: #2f455c;
}

html {
    font-size: 70%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg--color);
    color: var(--text-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg--color);
    justify-content: space-between;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: .3s;
}

.header .logo {
    width: 22rem;
}

.navbar {
    position: relative;
}

.navbar a {
    font-family: "Archivo black", sans-serif;
    font-size: 3rem;
    color: var(--second-bg-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .4s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    position: relative;
    color: var(--text-color);
    font-size: 3.6rem;
    cursor: pointer;
    display: none;
}

.heading {
    position: relative;
    font-size: 4rem;
    margin-bottom: 6rem;
    text-align: center;
}

#about h1 {
    font-size: 5.8rem;
    font-family: "Archivo Black", sans-serif;
    color: var(--text-color);
    font-weight: 100;
}

span {
    font-family: "Archivo Black", sans-serif;
    color: var(--second-bg-color);
}

.parallax-effet {
    height: 50rem;
    margin-top: 12rem;
    margin-bottom: 8rem;
    background-image: url(../images/Background/IndexParallaxData.jpg);
    background-attachment: fixed;
    background-size: cover;
}

.parallax-effet img {
    padding-top: 5rem;
}

#about {
    min-height: 100vh;
}

#about p {
    font-family: "Archivo", sans-serif;
    text-align: justify;
    hyphens: auto;
    color: var(--text-color);
    text-indent: 3rem;
    font-size: 2rem;
    margin: 5rem 10%;
    animation: reveal linear;
    animation-timeline: view();
    animation-range-start: cover 0;
    animation-range-end: contain 40%;
}

#about img {
    display: flex;
    width: 20rem;
    justify-content: center;
    margin: 0 auto;
    margin-top: 10rem;
}

#citation .parallax-effect {
    align-items: center;
    background-image: url(../images/Background/IndexParallaxData.jpg);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    color: white;
}

#books .parallax-effect {
    align-items: center;
    background-image: url(../images/Background/booksParallax.jpg);
    padding-top: 250px;
    padding-bottom: 50px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    color: white;
}

/* Section Mes Projets */

#portfolio {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

#portfolio .heading h1 {
    font-family: "Archivo Black", sans-serif;
    font-size: 4.8rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5em;
}

.portfolio-container .portfolio-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--text-color);
    overflow: hidden;
    display: flex;
}

.portfolio-box img {
    height: 100%;
    transition: .5s ease;
}

.portfolio-box:hover img {
    height: 100%;
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .8), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4 {
    color: var(--second-bg-color);
    font-size: 3rem;
}

.portfolio-layer p {
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
    color: var(--bg--color);
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--bg--color);
    border-radius: 50%;
    z-index: 1;
}

.portfolio-layer a i {
    font-size: 2rem;
    color: var(--text-color);
    z-index: 2;
}


#about h2 {
    font-family: "Archivo", sans-serif;
    font-size: 2.8rem;
    color: var(--bg--color);
    font-style: normal;
    text-align: center;
    margin-bottom: 2.5rem;
}

#about h1 {
    font-size: 3.5rem;
    color: var(--bg--color);
    padding-left: 20px;
    padding-right: 20px;
    font-style: normal;
    text-align: center;
    margin-bottom: 2.5rem;
}

#citation h1 {
    font-size: 35px;
    color: var(--bg--color);
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 175px;
    text-align: center;
}

#citation h2 {
    letter-spacing: 12px;
    color: var(--bg--color);
    font-size: 24px;
    text-align: center;
}


/* Section Mes Lectures */
#books {
    text-align: center;
    padding: 6rem 0;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

#books h1 {
    font-family: "Archivo Black", sans-serif;
    font-size: 3.5rem;
    margin: 5rem;
}

#books h2 {
    font-size: 2.5rem;
}

#books .content {
    height: 200px;
    padding: 0;
}

.item img {
    width: auto;
    height: 20rem;
    border-radius: 10%;
    margin-top: .3rem;
}

.name {
    font-size: 2.2rem;
    margin-bottom: .8rem;
    color: var(--text-color);
}

.titre {
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: var(--second-bg-color);
}

.avis {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--main-color);
    margin: 0;
}

.carousel-container {
    display: grid;
    grid-template-rows: 60rem 10rem;
    grid-template-columns: repeat(27, 1fr);
    align-items: center;
    justify-items: center;
    margin-top: 2rem;
    position: relative;
}

main#carousel {
    grid-row: 1/ 2;
    grid-column: 1 /11;
    width: 100vw;
    height: 60rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 90rem;
    --items: 9;
    --middle: 5;
    --position: 1;
    pointer-events: none;
    overflow-wrap: break-word;
    white-space: normal;
}

div.item {
    text-align: center;
    overflow-wrap: break-word;
    white-space: normal;
    padding: 4rem;
    box-shadow: 5px 2px 10px #dae8f7;
    border-radius: 10px;
    background-color: #fff;
    position: absolute;
    width: auto;
    max-width: 60rem;
    height: auto;
    --r: calc(var(--position) - var(--offset));
    --abs: max(calc(var(--r) * -1), var(--r));
    transition: all 0.25s linear;
    transform: rotateY(calc(-10deg * var(--r))) translateX(calc(-300px * var(--r)));
    z-index: calc((var(--position) - var(--abs)));
}

/* Styles pour l'input type radio */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    border: 1px solid var(--second-bg-color);
    outline: none;
    transition: background-color 0.2s ease;
}

input[type="radio"]:hover {
    border: 2.5rem solid var(--second-bg-color);
}

/* Couleur par défaut */
input[type="radio"]:not(:checked) {
    background-color: var(--bg--color);
}

/* Couleur lorsqu'il est coché */
input[type="radio"]:checked {
    background-color: var(--text-color);
    border-color: var(--text-color);
}

.item {
    width: 10rem;
    height: 20rem;
}

/* Configuration pour chaque image (1 à 9) */
div.item:nth-of-type(1) {
    --offset: 1;
}

div.item:nth-of-type(2) {
    --offset: 2;
}

div.item:nth-of-type(3) {
    --offset: 3;
}

div.item:nth-of-type(4) {
    --offset: 4;
}

div.item:nth-of-type(5) {
    --offset: 5;
}

div.item:nth-of-type(6) {
    --offset: 6;
}

div.item:nth-of-type(7) {
    --offset: 7;
}

div.item:nth-of-type(8) {
    --offset: 8;
}

div.item:nth-of-type(9) {
    --offset: 9;
}

input:nth-of-type(1) {
    grid-column: 1 / 7;
    grid-row: 2 / 3;
}

input:nth-of-type(1):checked~main#carouselcinema {
    --position: 1;
}


input:nth-of-type(2) {
    grid-column: 1 / 8;
    grid-row: 2 / 3;
}

input:nth-of-type(2):checked~main#carousel {
    --position: 2;
}

input:nth-of-type(3) {
    grid-column: 1 / 9;
    grid-row: 2 / 3;
}

input:nth-of-type(3):checked~main#carousel {
    --position: 3;
}


input:nth-of-type(4) {
    grid-column: 1 / 10;
    grid-row: 2 / 3;
}

input:nth-of-type(4):checked~main#carousel {
    --position: 4;
}


input:nth-of-type(5) {
    grid-column: 1 / 11;
    grid-row: 2 / 3;
}

input:nth-of-type(5):checked~main#carousel {
    --position: 5;
}

input:nth-of-type(6) {
    grid-column: 2 / 12;
    grid-row: 2 / 3;
}

input:nth-of-type(6):checked~main#carousel {
    --position: 6;
}

input:nth-of-type(7) {
    grid-column: 3 / 13;
    grid-row: 2 / 3;
}

input:nth-of-type(7):checked~main#carousel {
    --position: 7;
}

input:nth-of-type(8) {
    grid-column: 4 / 14;
    grid-row: 2 / 3;
}

input:nth-of-type(8):checked~main#carousel {
    --position: 8;
}

input:nth-of-type(9) {
    grid-column: 5 / 15;
    grid-row: 2 / 3;
}

input:nth-of-type(9):checked~main#carousel {
    --position: 9;
}

hr {
    height: 2px;
    border: none;
    width: 100%;
    background-color: #dde6f0;
    margin-top: 5rem;
    margin-bottom: 8rem;
}

/* section méthodologie */
#méthodologie {
    min-height: 100vh;
    padding: 5rem 9% 2rem;
}

#méthodologie .heading {
    animation: reveal linear;
    animation-timeline: view();
    animation-range-start: cover 1%;
    animation-range-end: contain 40%;
}

#méthodologie .heading h1 {
    display: flex;
    justify-content: center;
    font-family: "Archivo Black", sans-serif;
    font-size: 5rem;
}

#méthodologie img {
    width: auto;
    height: 20rem;

}

.méthodologie-container {
    display: flex;
    justify-content: center;
    margin: 2rem 20%;
    margin-bottom: 10rem;
    animation: reveal linear;
    animation-timeline: view();
    animation-range-start: cover 1%;
    animation-range-end: contain 40%;
}


.méthodologie-container h1 {
    font-family: "Archivo Black", sans-serif;
    margin: 1rem;
    font-size: 3.8rem;
}

.méthodologie-box p {
    font-size: 1.8rem;
    text-align: justify;
    text-indent: 3rem;
    margin: 1rem 5%;
}

.méthodologie-box h2 {
    font-size: 2.2rem;
    margin: 1rem 9%;
}

.méthodologie-box span {
    font-family: "Archivo", sans-serif;
}

/* design footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background-color: var(--second-bg-color);
}

.footer-text,
.footer-iconTop {
    position: relative;

}

.footer-text p {
    font-size: 1.2rem;
}

.footer-iconTop a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    z-index: 1;
    overflow: hidden;
}

.footer-iconTop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.footer-iconTop a:hover::before {
    width: 100%;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg--color);
    transition: .5s;
}

.footer-iconTop a:hover i {
    color: var(--main-color);
}

/*responsive*/
/*point stop responsive*/
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }

    .home {
        padding: 0 4%;
    }

    .footer {
        padding: 2rem 4%;
    }
}

@media (max-width: 768px) {
    .header {
        background: var(--bg--color);
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--second-bg-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        z-index: 1;
        transition: .25s ease;
        transition-delay: .25s;
    }

    .navbar.active {
        left: 0;
        transition-delay: 0s;
    }

    .navbar .active-nav {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--text-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        z-index: -1;
        transition: .25s ease;
        transition-delay: 0s;
    }

    .navbar.active .active-nav {
        transition-delay: .25s;
        left: 0;
    }

    .navbar a {
        color: var(--bg--color);
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        transform: translateX(-20rem);
        transition: .25s ease;
        transition-delay: 0s;
    }

    .navbar.active a {
        transform: translateX(0);
        transition-delay: .25s;
    }
}

@media (max-width: 520px) {
    html {
        font-size: 48%;
    }
}

@media (max-width: 462px) {
    html {
        font-size: 45%;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        margin-top: 2rem;
    }
}

@media (max-width: 371px) {
    html {
        font-size: 40%;
    }
}

/*Animation scroll*/
@keyframes reveal {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/*Transition de page*/
@keyframes transitionIn {
    from {
        opacity: 0;
        transform: translateY(-10px);

    }

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

    }
}

/* animation rotation icone pie chart*/
@keyframes autoRotateAnimation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.box-animation {
    display: flex;
    justify-content: center;
}

.autoRotate {
    font-size: 15rem;
    margin-top: 0 auto;
    animation: autoRotateAnimation 8s ease-in;
    animation-timeline: view();
}

/* Définition de l'animation de tremblement icone dashboard */
@keyframes shakeZoom {

    /* Position initiale */
    0% {
        transform: scale(1) translateX(0);
    }

    /* Tremble vers la gauche */
    25% {
        transform: scale(1.3) translateX(-2px);
    }

    /* Tremble vers la droite */
    50% {
        transform: scale(1.3) translateX(2px);
    }

    /* Tremble à nouveau vers la gauche */
    75% {
        transform: scale(1.3) translateX(-2px);
    }

    /* Retour à la position initiale */
    100% {
        transform: scale(1.3) translateX(0);
    }
}

/* Zoom et tremblement lors du hover */
.content .icone:hover {
    /* Animation de tremblement */
    animation: shakeZoom 1.2s infinite;
}

/* scroll infini des logos compétences et cinema*/
@keyframes Scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Conteneur pour les logo défilment infini */
/*carroussel des logos compétences*/
.inner-wrapper {
    overflow: hidden;
    margin: 0 auto;
    max-width: 1400px;
    display: flex;
    mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 1) 20%,
            rgba(0, 0, 0, 1) 80%,
            rgba(0, 0, 0, 0));

}

.inner-wrapper:hover .wrapper {
    animation-play-state: paused;
}

/*groupe des logos*/
.wrapper {
    display: flex;
    gap: 20px;
    flex-shrink: 2rem;
    width: 100%;
    height: auto;
    animation: Scroll 40s linear infinite;
}

/*parametre des logos*/
.wrapper img {
    height: 8rem;
    width: auto;
    flex-shrink: 0;
}

/* Conteneur pour les images */
.card {
    width: 100%;
    height: 150px;
    border-radius: 24px;
    padding: 20px;
    justify-content: center;
    align-items: center;
}