body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header img {
    display: block;
    margin: 0 auto 0 0;
    width: 12.8rem;
    height: 5.6rem;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

main #travaux {
    justify-content: center;
    align-items: center;
    text-align: center;
}


main .questions {
    margin: 50px 30px 0px 30px;
    padding: 20px;
    justify-content: left;
    align-items: left;
    text-align: left;
    border: gray;
    border-radius: 5px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

main article h2 {
    font-size: 1.5rem;
    font-weight: bold;

}

main article hr {
    width: 10rem;
    height: 0.2rem;
    margin-left: 0;
    margin-top: 15px;
    margin-bottom: 15px;
    background-color: #d0b008;
}

main article p {
    font-size: 1.3rem;
    text-align: justify;
}

footer {
    background-color: #1a1a1a;
    padding: 10px;
    text-align: left;
    color: white;
}

#contact {
    font-size: 1rem;
}

#copyright {
    font-size: 1rem;
}

#mentions {
    font-size: 1rem;
}

#mentions a {
    color: white;
    text-decoration: none;
}


body main img {
    padding-top: 90px;
    padding-bottom: 30px;
    width: 10rem;
    height: auto;
}


body main #titre_travaux {
    font-size: 40px;
    padding-bottom: 100px;
}

#home {
    width: auto;
    height: 75vh;
    background-image: url("https://images.pexels.com/photos/29335266/pexels-photo-29335266/free-photo-of-golden-gate-bridge-in-black-and-white-atmosphere.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1");
    background-size: cover;
    background-position: bottom;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 100px;

}

#home img {
    width: auto;
    height: 350px;
    padding-bottom: 50px;
    user-select: none;
}

#home h1 {
    font-size: 50px;
    color: white;
    font-weight: bold;
}

#presentation {
    display: flex;
    justify-content: space-between;
    padding-bottom: 60px;
    margin: auto;

}

#presentation article {
    width: 440px;
}

header {
    display: flex;
    align-items: center;
    padding: 10px;
    height: 55px;
    background-color: #1a1a1a;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 1000;
    justify-content: space-between;
    /* Ensures the navbar stays on top of other content */
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

.navbar li {
    display: inline;
}

.navbar a {
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    color: white;
    text-align: center;
    vertical-align: middle;
    padding: 14px 20px;
    text-decoration: none;
    transition: all 0.4s;
}

.navbar a:hover {
    color: #d0b008;
    transition: all 0.4s;
}

#titre {
    user-select: none;
}

#drapeau {
    width: 25px;
    height: auto;
    padding-left: 6px;
    margin-top: -1.7px;
}

#portfolio {
    width: auto;
    height: 50vh;
    background-image: url("https://images.pexels.com/photos/15847201/pexels-photo-15847201/free-photo-of-black-and-white-photograph-of-an-illuminated-bridge-at-night.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1");
    background-size: cover;
    display: flex;
    background-position: 75% 40%;
    justify-content: left;
    align-items: center;
    box-shadow: inset 0em 0.7em 0.7em rgba(0, 0, 0, 0.3), inset 0em -0.7em 0.7em rgba(0, 0, 0, 0.3);

}

#article_portfolio {
    display: flex;
    flex-direction: column;
    background-color: white;
    width: 40vw;
    padding: 20px;
    border-radius: 0px 10px 10px 0px;
}


#lien_portfolio {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: bold;
    background-color: #d0b008;
    padding: 5px 10px 5px 10px;
    border-radius: 24px;
    transition: all 0.4s;
}

#p_lien_portfolio {
    margin-top: 20px;
    text-align: right;
    margin-bottom: 5px;
}


#lien_portfolio:hover {
    color: #d0b008;
    background-color: #1a1a1a;
    transition: all 0.4s;
}

#about_me {
    width: auto;
    height: 50vh;
    display: flex;
    background-position: center;
    justify-content: right;
    align-items: center;
    background-size: cover;
    background-image: url("https://images.pexels.com/photos/27297411/pexels-photo-27297411/free-photo-of-a-black-and-white-photo-of-the-new-york-city-skyline.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1");
    box-shadow: inset 0em 0.7em 0.7em rgba(0, 0, 0, 0.3), inset 0em -0.7em 0.7em rgba(0, 0, 0, 0.3);

}

#article_about_me {
    display: flex;
    flex-direction: column;
    background-color: white;
    width: 40vw;
    padding: 20px;
    border-radius: 10px 0px 0px 10px;
}


#lien_about_me {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: bold;
    background-color: #d0b008;
    padding: 5px 10px 5px 10px;
    border-radius: 24px;
    transition: all 0.4s;
}

#p_lien_about_me {
    margin-top: 20px;
    text-align: left;
    margin-bottom: 5px;
}


#lien_about_me:hover {
    color: #d0b008;
    background-color: #1a1a1a;
    transition: all 0.4s;
}

.break {
    background-color: white;
    height: 30px;
}

@media screen and (max-width: 600px) {
    header img {
        height: 6rem;
        width: 12.8rem;
    }

    body main h1 {
        font-size: 1.5rem;
    }

    body main #titre_travaux {
        font-size: 1.5rem;
    }

    header {
        background-color: #1a1a1a;
    }

    main .questions h2 {
        font-size: 1.5rem;
        font-weight: bold;

    }

    main .questions hr {
        width: 10rem;
        height: 0.2rem;
        margin-left: 0;
        margin-top: 15px;
        margin-bottom: 15px;
        background-color: #d0b008;
    }

    main .questions p {
        font-size: 1rem;
        text-align: justify;
    }

    main #presentation {
        display: flex;
        flex-direction: column;
        width: 300px;
    }

    .menu-icon {
        display: block;
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .navbar ul.active {
        display: flex;
    }

    .navbar li {
        display: block;
        margin: 10px 0;
    }

    .navbar a {
        padding: 10px;
    }

}

:root {
    --primary-color: #d0b008;
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --gray-color: #f3f4f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.hero h1 {
    font-weight: bold;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-desc {
    text-align: justify;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.timeline-item-link {
    text-decoration: none;
    color: #1a1a1a;
}

.timeline-content {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    width: calc(50% - 2rem);
    margin-left: auto;
    transition: transform 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.date {
    color: var(--primary-color);
    font-weight: bold;
    display: block;
    margin-bottom: 1rem;
}


/* Certifications Styles */
.certifications {
    margin-top: 4rem;
    padding: 2rem 0;
}

.certifications h2 {
    text-align: center;
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    display: block;
    text-align: center;
    text-decoration: none;
    color: #1a1a1a;
}

.cert-card h3 {
    font-weight: bold;
    font-size: 1.4rem;
}

.cert-card p {
    font-weight: bold;
    color: #666;
    font-size: 1rem;
}

.cert-card:hover {
    transform: translateY(-5px);
}

.cert-badge-ccna {
    padding-top: 0px;
    padding-bottom: 10px;
    width: 9rem;
    height: auto;
}

.cert-date {
    color: var(--primary-color);
    font-weight: bold;
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.lieu {
    color: #666;
    font-weight: bold;
    display: block;
    margin-bottom: 1rem;
}

/* Portfolio Projects Styles */
.projects {
    max-width: 1200px;
    margin: 0 auto;
}

.projects h2 {
    font-size: 2rem;
    color: var(--dark-color);
    font-weight: bold;
    margin: 3rem 0 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-card-h3 {
    font-weight: bold;
}

.project-card-p {
    font-size: 1.1rem;
    color: #1a1a1a;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-stack span {
    background-color: var(--gray-color);
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
}

#cyber1 {
    background-position-y: 15%;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    display: flex;
    justify-content: space-between;
}

footer a {
    color: var(--light-color);
    text-decoration: none;
}

#copyright {
    font-size: 1rem;
}

/* SAEs general */

.sae-return {
    text-decoration: none;
    font-size: 1.7rem;
    color: #1a1a1a;
    font-weight: bold;
    background-color: #d0b008;
    padding: 5px 10px 5px 10px;
    border-radius: 24px;
    transition: all 0.4s;
}

.sae-return:hover {
    color: #d0b008;
    background-color: #1a1a1a;
    transition: all 0.4s;
}

.sae-div-return {
    text-align: center;

}

#mentions-main {
    margin: 1.2rem;
}

#mentions-main h2 {
    padding-top: 0.7rem;
    padding-bottom: 0.5rem;
}

#mentions-main p {
    line-height: 1.1;
    font-size: 0.9rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

/* Add this to your existing style.css */

.questions {
    margin: 50px 30px 0px 30px;
    padding: 20px;
    justify-content: left;
    align-items: left;
    text-align: left;
    border: gray;
    border-radius: 5px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.questions h2 {
    font-size: 1.5rem;
    font-weight: bold;
}

.questions hr {
    width: 10rem;
    height: 0.2rem;
    margin-left: 0;
    margin-top: 15px;
    margin-bottom: 15px;
    background-color: #d0b008;
}

.questions p {
    font-size: 1.3rem;
    text-align: justify;
    line-height: 1.6;
}

.questions ul li {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f3f4f6;
    margin-bottom: 2rem;
}

.hero h1 {
    font-weight: bold;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.sae-div-return {
    text-align: center;
    margin: 3rem 0;
}

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 12px;
  color: #d0b008;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  color: rgba(0,0,0);
  background-color: #d0af0895;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

main .questions .mySlides {
    text-align: center;
}

main .questions .mySlides img {
    padding: 10px 0 10px 0;
    
}

main .questions .mySlides img:active
{
   transform: scale(1.2);
   transition: 1s;
}

.slideDesc p{
    font-size: 14px;
}

.slideDesc {
    margin-top: 30px;
}

.main-top-banner, .cyb2-top-banner{
    display: table; 
    background-color: #d0b008;
    height: 5vh;
}

.main-top-banner p, .cyb2-top-banner p{
    color: #fff;
    font-weight: bold;
    font-size: 2.5vh;
    text-align:center; 
    vertical-align: middle;
    display: table-cell; 
}

.portfolio-card-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d0b008;
    width: 100%;
    height: 3.1vh;
}

.portfolio-card-banner p{
    color: #fff;
    font-weight: bold;
    text-align:center; 
    vertical-align: middle;
    display: table-cell; 
    font-size: 2vh;
}