html{
    scroll-behavior: smooth;
}
body{
    padding-top: 80px;
    background-color: #160E46;
    color: #f5f8de;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

p{
    margin-left: 20%;
    margin-right: 10%;
}

#Profil p{
    text-align: center;
    margin-left: 0;
    margin-right: 0;
}

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 48px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
    border-bottom: 1px solid rgba(255,255,255,0.03);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
#navbar{
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    z-index: 1000;
}
.nav-hidden {
    transform: translateY(-100%);
}
#Logo{
    width:110px;
    height:auto;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45));
}
#Navigation{
    display: flex;
    gap: 20px;
    align-items: center;
}
#Navigation a{
    color: #f5f8de;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background-color 0.18s ease, transform 0.12s ease;
}
#Navigation a:hover{
    background-color: rgba(255,255,255,0.04);
    transform: translateY(-2px);
}
#Profil {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px; 
    margin: 40px auto 80px auto; 
    max-width: 800px;
    background: radial-gradient(circle at top, rgba(131, 82, 177, 0.15) 0%, rgba(22, 14, 70, 0) 70%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#Profil h1 {
    font-family: "cooper-black-std", serif;
    font-style: italic;
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    margin-bottom: 10px;
    margin-top: 0;
    text-align: center;
    background: linear-gradient(90deg, #f5f8de, #35a8e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 15px rgba(53, 168, 224, 0.2);
}
#Profil p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #d8cfe9; 
    margin-bottom: 35px; 
    letter-spacing: 1px;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
}
.btn-telecharger {
    display: inline-flex; 
    align-items: center;
    gap: 10px; 
    background: linear-gradient(135deg, #8352b1, #4a3671); 
    color: #ffffff;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 30px; 
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease; 
    box-shadow: 0 5px 15px rgba(131, 82, 177, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-telecharger:hover {
    transform: translateY(-4px); 
    box-shadow: 0 8px 25px rgba(131, 82, 177, 0.7); 
    background: linear-gradient(135deg, #9b65d3, #5c428d); 
}
h2.accordion-header {
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
h2.accordion-header:hover,
h2.accordion-header:focus-visible {
    background-color: #3d2d6a;
    transform: scale(1.01);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.08);
}
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    width: 100%;
    max-width: 2000PX;
    margin: 0 auto 30px;
}
.accordion-panel.open {
    max-height: 9999px;
    opacity: 1;
}
h2{
    background-color: #2D1B4B; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 60%; 
    margin: 30px auto; 
    padding: 25px 40px; 
    border-radius: 20px; 
    color: #FDF5E6; 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 500; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    box-shadow: 
     1px 1px #ffffff66, 
     15px 3px #35a8e080;  
}
h2.titre_page {
    
    background-color: transparent; 
    box-shadow: none; 
    width: fit-content; 
    
    
    color: #f5f8de; 
    font-size: 2.2rem;
    padding: 10px 20px;
    margin: 40px auto 25px auto; 
    border-bottom: 4px solid #8352b1; 
    border-radius: 0; 
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); 
}

h2, #Projets p, #Projets li, h3{
    margin-left: 20%;
}
#Projets ul{
    margin-top: 20px;
    margin-bottom: 20px;
}
img{
    max-width: 100%;
    height: auto;
}
video{
    display: block;
    margin: 20px auto;
    max-width: 50%;
    width: 100%;
    height: auto;
}
.carousel-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.carousel-slide {
  min-width: 100%;
  object-fit: contain;
  width: 100%;
  height: auto;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  cursor: pointer;
  z-index: 10;
}
.carousel-btn.prev { 
    left: 10px; 
}
.carousel-btn.next { 
    right: 10px; 
}
.carousel {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative; 
    overflow: hidden;   
}
.slide {
    max-width: 100%;   
    width: auto;       
    max-height: 600px; 
    object-fit: contain; 
    display: none;     
    margin: 0 auto;    
}
#Uv{
    width: 100%;
    max-width: 900px;
    height: auto;
}
#img_photoshop{
    width: 900px;
    max-width: 100%;
    height: auto;
}
.img_illustrator{
    width: auto;
    max-width: 520px;
    height: 500px;
    max-height: 500px;
    object-fit: contain;
}
.centrer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}
.centrer img {
    width: auto;
    max-width: 520px;
    height: auto;
}
.centrer img.IA,
.centrer img.img_illustrator {
    height: 500px;
    width: auto;
    max-width: 520px;
}
#figures {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}
#figures figure {
    margin: 0;
    
}
#figures img {
    width: auto;
    height: 350px;
    border-radius: 8px;
}
#figures figcaption {
    margin-top: 10px;          
    text-align: center;
    font-size: 0.9em;
}

footer{
    background: linear-gradient(180deg, #4a3671 0%, #2c184e 100%);
    color: #f5f8de;
    padding: 50px 40px;
    margin-top: 15px;
}
.footer-content{
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-intro{
    flex: 1 1 320px;
    min-width: 260px;
}
.footer-intro h3{
    font-size: 2.2rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.footer-intro p{
    max-width: 520px;
    line-height: 1.8;
    color: #e8dfeb;
}
.footer-cards{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    flex: 1 1 420px;
}
.footer-card{
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.footer-card:hover{
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.24);
}
.footer-card-title{
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
}
.footer-card p,
.footer-card a{
    color: #f5f8de;
    margin: 0;
    line-height: 1.8;
}
.footer-card a{
    text-decoration: none;
    border-bottom: 1px dashed rgba(245, 248, 222, 0.6);
}
.footer-card a:hover{
    opacity: 0.9;
}
.footer-bottom{
    max-width: 1200px;
    margin: 35px auto 0;
    padding-top: 22px;
    text-align: center;
    font-size: 0.95rem;
    color: #d8cfe9;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
    header{
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
        padding:15px;
        gap:15px;
    }

    #Logo{
        width:100px;
    }

    #Navigation{
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:10px;
        width:100%;
    }

    #Navigation a{
        width:80%;
        text-align:center;
        font-size: 0.95rem;
        padding: 20px 10px;
    }

    body{
        padding-top:220px;
    }
    }
    #Logo{
        width: 90px;
    }

    h2 {
        font-size: 1.2rem;
        width: 50%;
        max-width: 100%;
        margin: 30px auto;
        padding: 20px 24px;
    }

    h3{
        margin-left: 10%;
    }
    
    .accordion-panel {
        max-width: 100%;
    }

    #Projets li{
        margin-left: 10%;
        margin-right: 10%;
    }

    .carousel-container {
        width:90%;
        max-width: 800px;

    }

    .carousel {
        width: 90%;
        max-width: 100%;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
    .centrer {
        flex-wrap: wrap;
    }
    .centrer img {
        width: 90%;
        max-width: 100%;
    }

    video{
        max-width: 60%;
    }
        #img_photoshop{
        width:70%;
        max-width:100%;
        height:auto;
        display:block;
        margin:0 auto;
    }

   footer{
    display: flex;
    flex-direction: column;
    align-items: center;
   }

   .footer-card p,
    .footer-card a{
    color: #f5f8de;
    margin: 0;
    line-height: 1.8;
    
    overflow-wrap: break-word; 
    word-wrap: break-word;     
    word-break: break-word;    
}

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-intro, .footer-cards {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .footer-card {
        max-width: 100%;
    }

@media (max-width: 600px){

    
    #img_photoshop{
        width:90%;
        max-width:100%;
        height:auto;
        display:block;
        margin:0 auto;
    }

    
    .IA,
    .img_illustrator,
    .centrer img.IA,
    .centrer img.img_illustrator{
        width:90%;
        max-width:100%;
        height:auto;
        max-height:none;
        object-fit:contain;
        display:block;
        margin:0 auto;
    }

    
    .centrer{
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:20px;
    }
    #figures {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #figures figure {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto 20px auto; 
    }

    #figures img {
        width: 90%;
        max-height: none; 
        height: auto;
        display: block;
        margin: 0 auto;
    }

    #figures figcaption {
        text-align: center;
    }
}

@media (max-width: 400px){
      #figures{
        display:flex;
        flex-direction:column;
        align-items:center;
    }

    #figures figure{
        width:100%;
        display:flex;
        flex-direction:column;
        align-items:center;
        margin:0 auto;
    }

    #figures img{
        width:90%;
        height:auto;
        display:block;
        margin:0 auto;
    }

    #figures figcaption{
        text-align:center;
    }
}




