html {
    scroll-behavior: smooth !important;
    zoom: 0.75; /*Pourra être enlevé éventuellement*/
}

main > section {
    padding: 7rem;
    background-image: url(/assets/images/arrière-plan.png);
    background-size: cover;
}

p {
    font-size: 1.2rem;
    color: darkslategray;
    text-align: left;
}

.custom-souligner {
    border-bottom: 4px solid darkslategray;
    display: flex;
    justify-content: center;
    color: #3c3c3c;
    font-size: 3.3rem;
    font-family: sans-serif;
    font-weight: 900;
    text-align: center;
}

h1 {
    padding-bottom: 1rem;
}

h2 {
    padding-top: 2rem;
    padding-bottom: 1rem;
}


/*************************************BACK TO TOP BUTTON*****************************
************************************************************************************/
#TopButton {
    position: fixed;
    bottom : 66px;
    right: 10px;
    opacity: 0.5;
    margin: 15px;
}

/*************************************HEADER****************************************
************************************************************************************/
#header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: darkslategrey;
    opacity: 0.8;
    display: flex;
    text-align: left;
    justify-content: center;
    color: white;
    height: 12%;
    z-index: 10; 
}

#header img {
    height: 90%;
    padding-left: 30px;
    padding-top: 5px;
}

#header h1 {
    font-size: 2.2rem;
}

#header .container {
    display: flex;
    justify-content: space-between;
    font-family: 'Times New Roman', Times, serif;
    padding-top: 10px;
    padding-left: 20px;
}

#header nav ul {
    display: flex;
    list-style-type: none;
    text-decoration: none;
    gap: 1.3rem;
    align-items: center;
}

#header nav ul li {
    text-align: left;
    align-items: center;
}

#header nav ul li a {
    color: white;
    text-decoration: none;
    font-style: italic;
    background-color: black;
    border: 1px solid white;
    border-radius: 5px;
    transition: 0.7s;
    display: flex;
    padding: 1rem;
    margin-top: 0.3rem;
    padding-right: 2rem;
    line-height: 19px;
}

#header nav ul li a:hover {
    background-color: white;
    color: black;
}

/*************************************HOME*******************************************
************************************************************************************/
#home {
    height: 42rem;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    padding-bottom: 2rem;
    padding-top: 4rem;
}

#home {
    height: 150vh;
    background-image: url("/assets/images/fond1er.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/*************************************APROPOS****************************************
************************************************************************************/
#a-propos {
    padding-top: 10rem;
    color: darkslategray;
}

#a-propos .container {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

/*Presentation*/ 

#a-propos #presentation {
    color: darkslategrey;
    padding-bottom: 2rem;
    width: 60rem;
}

#a-propos #presentation img {
    height: 200px;
    padding: 1rem
}

#a-propos #experience {
    padding-bottom: 3rem;
    width: 60rem;
}

#a-propos #experience p {
    text-align: center;
}

/**TIMELINE**/

#a-propos #experience .timeline {
    width: 70%;
    margin: 3rem auto;
    position: relative;
}

#a-propos #experience .timeline::before {
    content: '';
    position: absolute;
    left: 0rem;
    top: 0;
    bottom: 0;
    width: 0.3rem;
    background: #007bff;
}

#a-propos #experience .timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

#a-propos #experience .timeline-item::before {
    content: '';
    position: absolute;
    left: 0.7rem;
    top: 1rem;
    width: 1rem;
    height: 1rem;
    background: white;
    border-radius: 100%;
    border: 3px solid #007bff;
    box-shadow: 0 0 0 2px #007bff;
}

#a-propos #experience .timeline-date {
    font-weight: bold;
    margin-bottom: 1rem;
    margin-left: 1.5rem;
    color: #007bff;
}

#a-propos #experience .timeline-content {
    margin-left: 3rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.4rem;
    border: 2px solid darkslategray
}

#a-propos #experience .timeline-content h3 {
    margin: 0 0 5px;
    font-size: 1rem;
}

#a-propos #experience .timeline-content p {
    margin: 5px 0;
    font-size: 1rem;
    line-height: 1.5;
}

#a-propos #experience .bouton {
    padding: 2rem;  
}

#a-propos #experience .bouton a {
    color: white;
    padding: 15px;
    background-color: midnightblue;
    border: 0.2rem solid white;
    border-radius: 8px;
    transition: 0.7s;
    text-decoration: none;
    width: 20%;
}

#a-propos #experience .bouton a:hover {
    background-color: white;
    color: black;
    border: solid black
}

/*Certifications*/

#a-propos #certifs .carte-container {
    perspective: 2000px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

#a-propos #certifs .carte {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

#a-propos #certifs .carte:hover {
    transform: rotateY(180deg);
}

#a-propos #certifs .face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 10px;
    flex-direction: column;
}

#a-propos #certifs .face-avant {
    background-color: #ffffff;
    color: black;
    font-weight: bolder;
}

#a-propos #certifs .face-arriere {
    background-color: darkslategray;
    transform: rotateY(180deg);
}

#a-propos #certifs .face-arriere p {
    color: white;
}


#a-propos #certifs .bouton {
    padding: 2rem;
}

#a-propos #certifs .bouton a {
    color: white;
    padding: 15px;
    background-color: black;
    border: 0.2rem solid white;
    border-radius: 8px;
    transition: 0.7s;
    text-decoration: none;
    width: 20%;
}

#a-propos #certifs .bouton a:hover {
    background-color: white;
    color: black;
    border: solid black
}

/*Alternance*/

#a-propos #alternance {
    width: 60rem;
    margin-bottom: 3rem;
    padding-top: 3.5rem;
}

/*Alternance - dgfip */

#a-propos #alternance #dgfip img {
    margin-right: 3rem;
    margin-left: 3rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

#a-propos #alternance #dgfip nav ul li {
    text-align: left;
    font-size: 1.2rem;
}

/*Alternance - Missions */

#a-propos #alternance #missions {
    width: 100%;
    margin-bottom: 8rem;
    margin-top: 2rem;
}

#a-propos #alternance #missions h3 {
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
    font-size: medium;
}

#a-propos #alternance #missions .nav {
    align-items: center;
    justify-content: center;
    line-height: 2;
    gap: 8px
}

#a-propos #alternance #missions .nav-link {
    color: darkslategray;
}

#a-propos #alternance #missions p {
    font-size: medium;
}

/*Alternance - Outils */

#carouselExampleCaptions {
    background-color: white;
    margin-left: 4rem;
    margin-right: 4rem;
    text-align: center;
    align-items: center;
    justify-content: center;
}


#carouselExampleCaptions .carousel-caption {
    text-align: center;
    color: darkslategray;
    margin-bottom: -4rem;
    z-index: 4;
    position: static;
}

#carouselExampleCaptions .carousel-item {
    padding: 3rem;
}


#carouselExampleCaptions p {
    text-align: center;
}

/*************************************COMPETENCES************************************
************************************************************************************/

#competences .container {
    margin-top: 2rem;
}

#competences .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    text-align: center;
    justify-content: left;
    width: auto;
    padding-top: 2rem;
}

#competences .card {
    justify-content: start;
    line-height: 2;
    display: flex;
    border: 1px solid black;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    padding: 10px;
    background-color: white;
}


#competences p {
    text-align: center;
}

#competences h2 {
    font-family: Oswald, sans-serif;
    font-size: 1.4rem;
    margin-top: -2rem;
}

#competences .card h3 {
  font-size: 1em;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: left;
}


/*************************************REALISATIONS**********************************
************************************************************************************/

#docs .container h2 {
    padding: 3rem;
    background-color: rgba(169, 169, 169, 0.8);
    font-family: Oswald, sans-serif;
    display: flex;
    margin-top: 2rem;
}

#docs .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
    padding-block: 3rem;
}


#docs .card {
    display: flex;
    flex-direction: column;
    border: 1px solid black;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    padding: 10px;
    text-align: center;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding-top: 15%;
}

#docs .card img {
    width: 20rem;
    margin-bottom: 30px;
    height: 10rem;
}


#docs .card h3 {
    font-size: 1.3em;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}


#docs .card a {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 3rem;
    transition: background-color 0.3s ease;
}

#docs .card a:hover {
    background-color: #0056b3;
}

#docs p {
    margin-top: 2rem;
}

/*************************************ANNEXE*****************************************
************************************************************************************/
#annexe .container {
    text-align: center;
    margin-top: 5rem;
}


#annexe iframe {
    width: 90%;
    height: 95rem;
}

/*************************************VEILLE*****************************************
************************************************************************************/
#veille .custom-souligner {
    margin-bottom: 3rem; 
}

#carouselExampleCaptions2 {
    background-color: white;
    margin-left: 4rem;
    margin-right: 4rem;
    width: 30%;
    height: 20%;
    margin: 0 auto;
}


#carouselExampleCaptions2 .carousel-caption {
    color: darkslategray;
    margin-bottom: -4rem;
    z-index: 4;
    position: static;
}

#carouselExampleCaptions2 .carousel-item {
    padding: 4rem;
}

#carouselExampleCaptions2 p {
    text-align: center;
}

/*************************************CONTACT****************************************
************************************************************************************/

#contact {
    margin-top: -6rem;
}


#contact .container {
    display: grid;
    place-items: center ; 
    background-color: whitesmoke;
    border: 1.5px solid black;
    padding: 6rem;
    width: 60%;
    border-radius: 1.5rem;
    font-family:sans-serif;
    margin-top: 4rem;
}

#contact h2 {
    font-size: 2.8rem;
    padding-bottom: 2rem;
}

#contact .input input {
    padding-inline: 5rem;
    padding-block: 1rem;
    margin-top: -0.8rem;
    border-radius: 1rem;
    border: 2px solid black
}

#contact #message {
    padding-block: 1rem;
}

#contact textarea {
    border: 2px solid black;
    border-radius: 1rem;
    padding-inline: 5.7rem;
    padding-block: 3rem;
}

#contact button {
    color: white;
    padding: 20px;
    background-color: #007BFF;
    border: 0.15rem solid black;
    border-radius: 1rem;
    text-decoration: none;
}

/*************************************FOOTER*****************************************
************************************************************************************/
#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: darkslategrey;
    display: inline;
    z-index: 3;
}

#footer .container {
    justify-content: space-around;
    margin-top: 1.5rem;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    display: flex;
}

.icons_reseaux {
  justify-content: space-around;
  font-size: 1rem;
  padding-bottom: 0.8rem;
}

.icons_reseaux .icon {
  text-decoration: none;
  background-color: #007bff;
  border-radius: 50%;
  transition: background-color 0.8s ease;
  padding: 0.6rem;
}

.icons_reseaux .icon:hover {
  background-color: black; /* Change color on hover */
}

#footer #copyright h1 {
    font-size: 1.2rem;
}

#footer #xml a {
    list-style-type: none;
    list-style: none;
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

#footer #xml {
    padding-bottom: 5px;
}