/* ======================================= */
/* Global Styles                           */
/* ======================================= */
:root {
    --color-bg: #013c2e;
    --color-primary: #fff;
    --color-secondary: #ee0000;
    --color-accent: #212121;
    --card-size: 200px;
    --card-w: 300px;
    --card-h: 400px;
    --accent: #FFD700;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "PokerFont";
    src: url("fonts/tt_modernoir/TT_Modernoir_Trial_Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "BodyFont";
    src: url("fonts/Montserrat/Montserrat-VariableFont_wght.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'BodyFont', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-primary);
    line-height: 1.6;
    min-height: 100vh;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 10px 10px;
    background-attachment: fixed;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-primary);
}

h1,
h2,
h3 {
    font-family: 'Monserrat', sans-serif, monospace;
    letter-spacing: 1px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ======================================= */
/* Page d'Accueil                          */
/* ======================================= */
.hero {
    text-align: center;
    padding: 50px 20px;
}

.hero h1 {
    font-family: 'PokerFont';
    font-weight: 200;
    font-size: 5rem;
    margin-bottom: 5px;
}

.hero h2 {
    font-family: 'BodyFont', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.card-back h3 {
    font-family: 'PokerFont';
    font-weight: 200;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.hero p {
    max-width: 700px;
    margin: 10px auto 40px;
    font-size: 1rem;
}

.card-back p {
    font-family: 'BodyFont', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 5px;
}


.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    perspective: 1000px;
    flex-wrap: wrap;
    padding-top: 15px;
}

.card {
    width: var(--card-size);
    height: calc(var(--card-size) * 1.4);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.card:hover {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    border: 5px solid var(--color-primary);
}

.card-front {
    background-color: var(--color-primary);
    color: var(--color-accent);
}

.card-back {
    background-color: var(--color-primary);
    color: var(--color-accent);
    transform: rotateY(180deg);
}

.card-symbol {
    font-size: 4rem;
    line-height: 1;
}

.card-title {
    font-family: 'PokerFont', sans-serif;
    font-size: 1.5rem;
    margin-top: 10px;
}

.heart .card-symbol,
.diamond .card-symbol {
    color: var(--color-secondary);
}

.spade .card-symbol,
.club .card-symbol {
    color: var(--color-accent);
}

/* ======================================= */
/* Contenu Général                         */
/* ======================================= */
.content-page {
    max-width: 1300px;
    margin: 0px auto;
    padding: 30px;
    /* background: rgba(0, 0, 0, 0.4); */
    border-radius: 15px;
    /* box-shadow: 0 0 30px rgba(0, 0, 0, 0.6); */
}

.content-page h1 {
    font-family: 'PokerFont', sans-serif;
    font-size: 2.4rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
}

.content-page p {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}


.card-symbol-index {
    position: absolute;
    font-size: 1.2em;
    font-weight: bold;
    color: inherit;
}

.card-top-left {
    position: absolute;
    top: 5px;
    left: 10px;
}

.index {
    font-size: 1.6rem;
}

.apropos {
    font-size: 1.8rem;
}

.card-bottom-right {
    position: absolute;
    bottom: 5px;
    right: 10px;
    transform: rotate(180deg);
}

.red {
    color: var(--color-secondary);
}

.back {
    color: var(--color-accent);
}

/* ======================================= */
/* Scrool Bar                              */
/* ======================================= */

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #eeeeee00;
}

::-webkit-scrollbar-thumb {
    background: #acacac;
    border-radius: 10px;
}

/* ======================================= */
/* Responsivité                            */
/* ======================================= */
@media (max-width: 768px) {
    .logo {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .card {
        width: 80%;
        height: 150px;
    }

    .card-symbol {
        font-size: 3rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .content-page {
        margin: 0px 10px;
        padding: 15px;
    }

    .back-link {
        font-size: 0.9rem;
    }

    
}

/* ======================================= */
/* Section a propos des cartes    */
/* ======================================= */

.apropos-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
}

.atouts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    perspective: 1200px;
}

.atout-card {
    width: 300px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    border-radius: 15px;
}

.atout-card.flipped {
    transform: rotateY(180deg);
}

.atout-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.atout-front {
    background: linear-gradient(145deg, var(--color-primary), #eee);
    color: var(--color-accent);
}

.atout-back {
    background: var(--color-primary);
    color: var(--color-accent);
    transform: rotateY(180deg);
    padding: 25px;
    justify-content: flex-start;
    overflow-y: auto;
    font-size: 0.95em;
    line-height: 1.5;
}

.atout-front h2 {
    font-family: "PokerFont", sans-serif;
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.atout-back h2 {
    font-family: "PokerFont", sans-serif;
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--color-secondary);
}

.atout-back p {
    font-size: 0.85rem;
}

.atout-front .icon-symbol {
    font-size: 4em;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.atout-back ul {
    list-style: none;
    padding: 0;
    text-align: left;
    font-size: 0.85rem;
}

.atout-back li {
    margin-bottom: 7px;
    padding-left: 15px;
    position: relative;
}

.atout-back li::before {
    content: '♥';
    color: var(--color-secondary);
    position: absolute;
    left: 0;
}

.atout-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.atout-gallery img {
    width: 90px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .atout-card {
        width: 90%;
        height: 350px;
    }

    .atout-front h2 {
        font-size: 1.8em;
    }

    .atout-front .icon-symbol {
        font-size: 3em;
    }
}

/* ======================================= */
/* Section projets                         */
/* ======================================= */

activities-widget {
    margin-top: 60px;
    margin-bottom: 50px;
    display: grid;
    gap: 3rem;
    align-items: center;
    position: relative;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.activity {
    grid-area: 1 / 1 / 1 / 1;
    display: contents;
}

.activity .img {
    grid-column: 1;
    grid-row: 1;
    width: var(--card-w);
    height: var(--card-h);
    border-radius: 12px;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.activity .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity:nth-child(1) .img {
    transform: rotate(-3deg);
    z-index: 5;
}

.activity:nth-child(2) .img {
    transform: rotate(2deg);
    z-index: 4;
}

.activity:nth-child(3) .img {
    transform: rotate(-6deg);
    z-index: 3;
}

.activity:nth-child(4) .img {
    transform: rotate(4deg);
    z-index: 2;
}

.activity .text {
    grid-column: 2;
    grid-row: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

.activity.active .text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.activity .text h2 {
    font-family: 'PokerFont', sans-serif;
    font-size: 2rem;
    color: var(--accent);
}

.activity .date {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.6;
}

.activity .meta {
    margin-top: 5px;
    padding-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.activities-navigation {
    position: absolute;
    bottom: -60px;
    right: 0;
    display: flex;
    gap: 1rem;
}

.activities-navigation button {
    background: none;
    border: 1px solid white;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.activities-navigation button:hover {
    background: white;
    color: black;
}

.activities-count {
    position: absolute;
    top: -40px;
    right: 0;
    font-weight: bold;
    letter-spacing: 2px;
}

.activity.active .img {
    animation: cardSwap 0.7s forwards;
}


.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

.project-link-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 10px;
}

.project-link i {
    font-size: 1.1rem;
    padding-left: 8px;
    padding-right: 8px;
}

.project-link:hover {
    color: var(--accent);
}

.project-header {
    display: flex;
}

.meta-item {
    margin-bottom: 1rem;
}

.software-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    font-size: 1.5rem;
    align-items: center;
}


.software-icons i {
    color: #ccc;
    transition: transform 0.3s, color 0.3s;
}

.adobe-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    cursor: default;
    transition: transform 0.3s;
}

/* Couleurs officielles Adobe */
.adobe-icon.pr {
    background-color: #00005b;
    border: 2px solid #9999ff;
    color: #9999ff;
}

.adobe-icon.id {
    background-color: #49021f;
    border: 2px solid #ff3366;
    color: #ff3366;
}

.adobe-icon.ae {
    background-color: #00005b;
    border: 2px solid #d1a1ff;
    color: #d1a1ff;
}

.adobe-icon.ps {
    background-color: #001e36;
    border: 2px solid #31a8ff;
    color: #31a8ff;
}


@keyframes cardSwap {
    0% {
        transform: translateX(0) rotate(0);
        z-index: 10;
    }

    50% {
        transform: translateX(-120%) rotate(-15deg);
        z-index: 10;
    }

    100% {
        transform: translateX(0) rotate(var(--original-rotate, 0deg));
        z-index: 1;
    }
}



/* --- RESPONSIVE DESIGN --- */

@media (max-width: 992px) {
    activities-widget {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 20px;
        margin-top: 20px;
    }

    .activity .img {
        grid-column: 1;
        grid-row: 1;
        margin: 0 auto;
        width: 250px;
        height: 350px;
    }

    .activity .text {
        grid-column: 1;
        grid-row: 2;
        transform: translateY(20px);
    }

    .activity.active .text {
        transform: translateY(0);
    }

    .activities-navigation {
        position: relative;
        bottom: 0;
        justify-content: center;
        margin-top: 20px;
    }

    .activities-count {
        position: relative;
        top: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .activity .img {
        width: 200px;
        height: 280px;
    }

    .activity .text h2 {
        font-size: 1.5rem;
    }

    .description-projet {
        font-size: 0.9rem;
        
    }


    @keyframes cardSwap {
        0% { transform: translateX(0) rotate(0); z-index: 10; }
        50% { transform: translateX(-60%) rotate(-10deg); z-index: 10; }
        100% { transform: translateX(0) rotate(0); z-index: 1; }
    }
}



/* ======================================= */
/* Section Parcours                        */
/* ======================================= */
/* --- Timeline Verticale --- */
.vertical-timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px 0;
}

.subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* La ligne blanche centrale */
.v-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
}

/* Conteneur d'un item */
.v-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

/* Alternance Gauche / Droite */
.v-item:nth-child(even) {
    left: 0;
    text-align: right;
}

.v-item:nth-child(odd) {
    left: 50%;
    text-align: left;
}

.v-dot {
    position: absolute;
    top: 30px;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg);
    font-weight: bold;
    z-index: 10;
}

.v-item:nth-child(even) .v-dot {
    right: -15px;
}

.v-item:nth-child(odd) .v-dot {
    left: -15px;
}

/* La carte */
.v-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    color: var(--color-accent);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: inline-block;
    width: 100%;
    text-align: left; /* On garde le texte lisible à gauche */
}

.title-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.v-card time {
    display: block;
    color: var(--color-secondary);
}

.v-card h2 {
    font-family: 'PokerFont', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0px;
}

.v-location {
    font-weight: 600;
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.v-desc {
    font-size: 0.9rem;
    padding-top: 10px;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .v-line {
        left: 30px; /* On pousse la ligne à gauche */
    }
    
    .v-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left !important;
    }
    
    .v-dot {
        left: 15px !important;
    }
}



/* ======================================= */
/* Page contact                            */
/* ======================================= */

.atout-card-contact {
    width: var(--card-size);
    height: calc(var(--card-size) * 1.4);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    border-radius: 15px;
}


.wrapper {
    width: 260px;
    height: 360px;
    background: #FDFEFF;
    transition: background .6s ease;
    border-radius: 10px;
    padding: 20px 10px 20px 10px;
    box-shadow: 0 8px 40px rgba(#000000, .2);
    position: relative;
}

.wrapper-empty {
    width: 350px;
    height: 350px;
    background: transparent;
    border-radius: 10px;
    padding: 20px 20px 20px 20px;
    position: relative;
}

.email-contact {
    margin-top: 15px;
    box-sizing: border-box;
}

.email-contact a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-links h2 {
    font-family: 'PokerFont', sans-serif;
    font-size: 1.8rem;
    margin: 0.5rem 0;
    color: var(--accent);
}

.contact-btns {
    margin-bottom: 15px;
}

.contact-item span {
    color: var(--color-primary);
    font-size: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--color-primary);
}

.thumbnail {
    width: 70px;
    height: 70px;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    border-radius: 100%;
}

.name {
    font-family: "PokerFont", sans-serif;
    color: #2D354A;
    font-size: 1.2rem !important;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0px !important;
}

.title {
    color: #5a5a5a;
    font-size: 0.8rem !important;
    text-align: center;
    margin-bottom: 6px !important;
}

.description {
    color: #080911;
    font-size: 0.8rem !important;
    text-align: center;
}

.pdf-link {
    position: absolute;
    bottom: 15px;
    right: 15px;
    transform: none;
    font-size: 0.8rem;
    text-decoration: none;
    color: #ed0000;
}

.pdf-link:hover {
    color: #ed0000;
}




/* ======================================= */
/* Logo fixe                             */
/* ======================================= */

.logo-fixe {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

.logo-fixe img {
    width: 30px;
    margin: 10px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-fixe {
        bottom: 10px;
        left: 10px;
    }

    .logo-fixe img {
        width: 25px;
        margin: 5px;
    }
    
}