:root{
    --CouleurP:rgb(123, 98, 236);
    --CouleurS:#fff5a8;
    --CouleurT:#D62CB6; 
    --CouleurF: rgba(94, 75, 179, 0.7) ; 
    --glass-border: rgba(224, 224, 224, 0.08);
}

@font-face {
  font-family: 'Blue Winter';
  src: url('fonts/Blue Winter.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

a{
    font-family: 'jua', sans-serif;
}

.main {
    position: relative;
    padding: 20px;
    z-index: 1;
    top: 0; 
    margin: 0;
}
.Allignement{
   position: relative;
  padding: 20px;
  z-index: 1;
  top: 0; 
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
body{
    background: var(--CouleurP);
    
}

body, h1, h2, h3, p, li {
    font-size: clamp(1rem, 2.5vw, 2rem);
}

.bg-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;

}

.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;        
  z-index: -1;

}



.loader{
    top: 0;
    left: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: var(--CouleurP);
    flex-direction: column;
    gap: 30px;
    z-index: 1000;
}

h1{ 
    font-family: 'Blue Winter', sans-serif;
    color: white;
}
.loader.fade-out {
    animation: fadeout 0.8s ease forwards }

@keyframes fadeout{
    from{opacity: 1;}
    to { opacity: 0}
}

nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: 25px 50px;
    display: flex;
    font-family: 'Blue Winter', sans-serif;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: var(--CouleurF);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--CouleurS);
    transform: translateY(-100%);
    animation: slideDown 0.8s ease 2.5s forwards;
    color: white;
    opacity: 100%;
    
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}


@keyframes slideDown {
    to { transform: translateY(0); }
}

h2{
    font-family: 'Blue Winter', sans-serif;
    color: white;
}

.Cart_Wrap{
    
  display: flex;
  flex-direction: column;
  gap: 20VH;
  width: 100%;
  align-items: center;
}
.container,
.Grosse_carte-wrapper,
.Grosse_Parte-wrapper {
  max-width: 1200px;
  width: 100%;
}

.Titre{

  display: flex;
  align-items: center;
  justify-content: center; 
  
}

.Titre_contenu{
    max-width: 1200px;
    position: relative;
    z-index: 2;
    
}

.Texte_Grosse{
    color: white;
}

h2{
    background: linear-gradient(135deg, var(--CouleurT), var(--CouleurS), var(--CouleurT));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    line-height: 1;
    animation: gradientShift 8s ease infinite;
   
    
}

.Titre_texte {
    color: white;
    font-family: 'Jua', sans-serif;
    font-size: 1rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: block;
    opacity: 0;
    animation: fadeInUp 1s ease 2.8s forwards;
    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.35),
       -2px -2px 0 rgba(0, 0, 0, 0.25),
        0 0 12px rgba(0, 0, 0, 0.4);
}

.Titre_paragraphe{
    color: var(--CouleurS);
    display: flex;
    font-family: 'Jua', sans-serif;
    animation: fadeInUp 1s ease 2.8s forwards;
    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.35),
       -2px -2px 0 rgba(0, 0, 0, 0.25),
        0 0 12px rgba(0, 0, 0, 0.4);
}

.Titre h1 {
    font-size: clamp(5rem, 5vw, 7rem);
    font-weight: 500;
    line-height: 20px;

    background: linear-gradient(135deg, var(--CouleurT), var(--CouleurS), var(--CouleurT));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    line-height: 1;
    opacity: 0;
    animation: fadeInUp 1s ease 3s forwards, gradientShift 8s ease infinite;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 3.4s forwards;
}

.hub-btn {
    padding: 15px 40px;
    border: 2px solid var(--CouleurF);
    background: var(--CouleurF);
    border-radius: 50px;
    color: var(--CouleurS);
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.hub-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--CouleurS);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.hub-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hub-btn:hover {
    color: var(--CouleurF);
    border-color: var(--CouleurF);
    box-shadow: 0 0 30px var(--CouleurS);
    transform: translateY(-3px);
}

.hub-btn.primary {
    background: linear-gradient(135deg, var(--CouleurS), var(--CouleurT));
    border: none;
    color: white;
}

.hub-btn.primary:hover {
    box-shadow: 0 0 40px var(--CouleurS);
    transform: translateY(-5px) scale(1.05);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
    to {
    opacity: 1;
    transform: translateY(0);}
}


.Grosse_carte-wrapper{
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center; 
  align-items: center;     
  min-height: calc(100vh - 25px);
}

.Grosse_carte::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        color-mix(in srgb, var(--CouleurS) 20%, transparent),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}


.Grosse_carte:hover::before {
  opacity: 1;
}

.Grosse_carte:hover {
    box-shadow: 0 20px 60px var(--CouleurS);
    border-color: var(--CouleurS);
}
.Grosse_carte {
    background: var(--CouleurF);
    gap: 5vh;
    display: flex;
    border: 1px solid white;
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    isolation: isolate; 
    z-index: 0;
    width: 100%;
    
}

.Grosse_Parte-wrapper{
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.Grosse_Parte::before{
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        color-mix(in srgb, var(--CouleurS) 20%, transparent),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}


.Grosse_Parte:hover::before{
  opacity: 1;
}

.Grosse_Parte:hover{
    box-shadow: 0 20px 60px var(--CouleurS);
    border-color: var(--CouleurS);
}
.Grosse_Parte{
    background: var(--CouleurF);
    gap: 5vh;
    display: flex;
    border: 1px solid white;
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    isolation: isolate; 
    z-index: 0;
    
}

.skills-marquee {
    background: var(--CouleurF);
    border-top: 1px solid var(--CouleurS);
    border-bottom: 1px solid var(--CouleurS);
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    margin: 50px 0;
    backdrop-filter: blur(5px);
}

.marquee-content {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.skill-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 40px;
    font-family: 'Jua', sans-serif;
    font-size: 1.2rem;
    color: white;
    
    
}
.skill-item i { color: var(--CouleurT); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.lb-desc a {
    color: var(--CouleurT);
    text-decoration: none;
    border-bottom: 1px solid var(--CouleurS);
    transition: all 0.3s ease;
    font-weight: 700;
}

.lb-desc a:hover {
    background: rgba(241, 54, 54, 0.1);
    padding: 0 5px;
    border-radius: 4px;
}

        .filter-container {
            display: flex;
            gap: 20px;
            margin-bottom: 50px;
            flex-wrap: wrap;
        }

        .filter-btn {
            background: var(--CouleurF);
            border: 1px solid var(--CouleurF);
            color: white;
            padding: 10px 25px;
            border-radius: 30px;
            font-family: 'Jua', sans-serif;
            font-size: 0.9rem;
            transition: 0.3s;
        }

        .filter-btn:hover, .filter-btn.active {
            background: white;
            color: black;
            border-color: white;
        }

        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 40px;
        }

        .project-card {
            height: 500px;
            position: relative;
            overflow: hidden;
            border-radius: 24px;
            background: var(--CouleurF);
            transition: opacity 0.3s, transform 0.3s;
            cursor: none;
        }

        .project-bg {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.5;
            transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s;
            filter: grayscale(50%);
        }

        .project-info {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 40px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
            transform: translateY(50px);
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--CouleurS), var(--CouleurT));
    opacity: 0;
    mix-blend-mode: overlay;
    transition: opacity 0.4s;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 0.3;
}

.project-card:hover .project-bg {
    transform: scale(1.15) rotate(2deg);
    opacity: 0.8;
    filter: grayscale(0%);
}

    .project-card:hover .project-info {
    transform: translateY(0);
}

.project-tag {
    
    font-size: 0.75rem;
    color: var(--CouleurS);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
    padding: 5px 15px;
    background: var(--CouleurT);
    border-radius: 20px;
    border: 1px solid var(--CouleurS);
     background: linear-gradient(135deg, var(--CouleurT), var(--CouleurS), var(--CouleurT));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    line-height: 1;
    animation: gradientShift 8s ease infinite;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: 'Jua', sans-serif;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--CouleurF);
    z-index: 10000; 
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    font-family: 'jua', 'sans-serif';
    background: var(--CouleurP);
    width: 95vw;
    height: 90vh;
    max-width: 1600px;
    border-radius: 20px;
    border: 1px solid var(--CouleurS);
    box-shadow: 0 20px 80px var(--CouleurS);
    display: flex;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

        .lightbox.active .lightbox-content {
    transform: scale(1);
}

.lb-visual {
    flex: 3.5; /* Priorité à l'image/PDF */
    background: var(--CouleurF);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid var(--CouleurS);
}

.lb-visual iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.lb-visual img, 
.lb-visual video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
        
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lb-details {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: rgba(23, 11, 22, 0.5);
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(224,224,224,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
    cursor: none;
    z-index: 50;
}

.lb-close:hover {
    background: white;
    color: black;
    transform: rotate(90deg);
}

.lb-category {
    color: var(--CouleurS);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.lb-title {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--CouleurS), var(--CouleurT));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lb-desc {
    font-size: 1rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 30px;
    border-top: 1px solid var(--CouleurT);
    padding-top: 20px;
}

.reveal{
    font-size: 3rem; 
    margin-bottom: 40px;
    font-family: 'Blue Winter', sans-serif;
    color: white;
   
       
}

p{
    font-family: 'Jua', sans-serif;
}

.project-tag{
    font-family: 'Blue Winter', sans-serif;
}

#projets.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lb-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 10;
}
.lb-control-btn {
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--CouleurS);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 1.2rem;
}
.lb-control-btn:hover {
    background: var(--CouleurS);
    color: black;
    transform: scale(1.1);
}
.gallery-indicator {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0,0,0,0.8);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1rem;
    color: white;
    border: 1px solid var(--CouleurS);
    backdrop-filter: blur(5px);
} 


footer {
    margin-top: 150px;
    padding: 80px 0 40px;
    border-top: 1px solid var(--CouleurS);
    background: var(--CouleurF);
    width: 100%;
    height: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-cta {
    display: flex;
    gap: 20px;
    font-family: 'Blue Winter';
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 20px;
    color: white;
   
}

.footer-col h4 {
    font-family: 'jua', 'sans-serif';
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-link {
    display: block;
    color: white;
    margin-bottom: 10px;
    transition: 0.3s;
    width: fit-content;
}

.footer-link:hover { 
    color: var(--CouleurS); 
    transform: translateX(5px); 
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: white;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.678);
}

a[href="#"] {
    color: white;
    text-decoration: none;
    font-size: 2rem;
}

/* --- Global adjustments --- */
@media (max-width: 1400px) {
    .Grosse_carte, .Grosse_Parte {
        padding: 30px;
    }

    .hero-buttons {
        gap: 15px;
    }

    .hub-btn {
        padding: 12px 30px;
        font-size: 0.8rem;
    }

    .Titre h1 {
        font-size: clamp(3rem, 6vw, 5rem);
    }

    .Titre_paragraphe {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }

    .project-grid {
        gap: 30px;
    }

    .project-card {
        height: 400px;
    }
}

/* --- Medium screens (tablets) --- */
@media (max-width: 1024px) {
    nav {
        padding: 20px 30px;
    }

    .Grosse_carte-wrapper, .Grosse_Parte-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }

    .project-card {
        height: 350px;
    }

    .lb-details {
        padding: 20px;
    }

    .lb-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .lb-desc {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-cta {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

.Img_carte {
  display: flex;
  align-items: center;
}

.profile-img {
  width: 500px;
  height: auto;
  border-radius: 16px;
}

/* --- Small screens (mobiles) --- */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .Grosse_carte-wrapper, .Grosse_Parte-wrapper {
        padding: 15px;
    }

    .Titre h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        text-align: center;
        line-height: 1.2;
    }

    .Titre_paragraphe, .Titre_texte {
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        height: auto;
    }

    .lb-visual, .lb-details {
        flex: 1 1 100%;
        min-width: 0;
    }

    .lb-details {
        padding: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-cta {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        text-align: center;
    }
}

/* --- Extra small (very small phones) --- */
@media (max-width: 480px) {
    .hub-btn {
        padding: 10px 20px;
        font-size: 0.75rem;
    }

    .Titre h1 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .project-card {
        height: auto;
        padding-bottom: 20px;
    }

    .skill-item {
        margin: 0 15px;
        font-size: 1rem;
    }

    .lb-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .lb-desc {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }
}


/* Wrapper : déjà centré, ok */
.Grosse_Parte-wrapper {
  width: 100%;
  padding: 0 20px; /* espace sur petits écrans */
}

/* Grosse_Parte responsive */
@media screen and (max-width: 1024px) {
  .Grosse_Parte {
    flex-direction: column; /* passe en colonne sur tablette / mobile */
    gap: 2rem;             /* réduit l’espace */
    padding: 20px;         /* moins de padding */
  }

  .Texteescription, .Img_carte {
    width: 100%;           /* chaque bloc prend toute la largeur */
    text-align: center;    /* texte centré sur mobile */
  }

  .profile-img {
    max-width: 200px;      /* limite la taille de l’image */
    margin: 0 auto 20px;
  }
}

@media screen and (max-width: 480px) {
  .Grosse_Parte {
    padding: 15px;
    gap: 1.5rem;
  }

  .Texte_Grosse {
    font-size: clamp(0.8rem, 2.5vw, 1rem); /* texte plus petit */
  }
}

/* Footer centré uniquement sur petits écrans */
@media (max-width: 768px) {
    footer .footer-content {
        display: flex;
        flex-direction: column; /* empile les colonnes */
        align-items: center;    /* centre horizontalement */
        text-align: center;     /* texte centré */
        gap: 30px;              /* espace entre sections */
    }

    footer .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer .footer-cta {
        text-align: center;
        font-size: clamp(2rem, 5vw, 3.5rem); /* garde responsive */
    }

    footer .footer-bottom {
        text-align: center;
    }
}
