body {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
}

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

/* Headeur */

.header {
    background: white;
    color: #4e4e4e;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    width: 150px;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger .line {
    width: 25px;
    height: 3px;
    background: #383838;
    margin: 4px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-grow: 1;
    color: #383838;
    font-size: 17px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.nav-links li a {
    text-align: center;
    color: #3b3b3b;
    text-decoration: none;
}

.a_tel {
    color: #2b2b2b;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 17px;
    margin-left: 20px;
}



.sub-menu {
    display: none;
}

.sub-menu.visible {
    display: block;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Acceuil */

.conteneur_principal {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 150px;
}

.conteneur_child {
    padding: 20px;
    max-width: 800px;
    padding-left: 100px;
}

h1, h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: 36px;
}

p {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 17px;
}

.portrait {
    border-radius: 10px;
    width: 500px;
    height: auto;
}

.custom-button {
    background: #8500a7;
    border: 2px solid transparent;
    border-radius: 8px;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100px;
}

.custom-button:hover {
    background-color: #310031;
    color: white;
 }

.custom-button a:hover {
    background-color:  #310031;
    color: white;
}

.conteneur_competences {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.competences_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
    width: 100%;
    max-width: 900px;
    justify-items: center;
}

.conteneur_graphisme,
.conteneur_corseterie,
.conteneur_architecture,
.conteneur_photographie {
    background-size: cover;
    background-position: center;
    width: 100%;
    max-width: 350px;
    height: 350px;
    color: #424242;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    transition: background-color 0.5s ease;
    margin: 10px;
    border-radius: 10px;
}

.conteneur_competences {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.conteneur_graphisme,
.conteneur_corseterie,
.conteneur_architecture,
.conteneur_photographie {
    background-size: cover;
    background-position: center;
    width: 450px;
    height: 450px;
    color: #424242;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    transition: background-color 0.5s ease;
    margin: 50px;
    border-radius: 10px;
}

.conteneur_graphisme {
    background-image: url(https://www.CV.chrysea.fr/media/img/Logo.jpg);
}

.conteneur_corseterie {
    background-image: url(https://www.CV.chrysea.fr/media/img/Chrysea_Corseterie.jpg);
}

.conteneur_architecture {
    background-image: url(https://www.CV.chrysea.fr/media/img/Chrysea_Architecture.jpg);
}

.conteneur_photographie {
    background-image: url(https://www.CV.chrysea.fr/media/img/Chrysea_Photographie.jpg);
}

.conteneur_graphisme:hover,
.conteneur_corseterie:hover,
.conteneur_architecture:hover,
.conteneur_photographie:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.a_competences {
    text-decoration: none;
    font-size: 24px;
    color:white;
}

.conteneur {
    position: relative;
    overflow: hidden;
}

.conteneur .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.conteneur .overlay .title {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.conteneur:hover .overlay {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.conteneur:hover .overlay .title {
    opacity: 1;
}

/* Page CV */
.conteneur_CV,
.conteneur_experience {
    display: flex;
    flex-direction: row;
    align-items: center; 
    margin-top: 100px;
}

.img_ecole,
.img_archi {
    width:100%; 
    height: auto;
}


.img_ecole {
    margin-right: 100px; 

}


.img_archi {
    margin-left: 150px; 
}

.conteneur_CV_child,
.conteneur_experience_child {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    width: 100%;
}


.conteneur_CV {
    margin-left: 260px; 
    margin-right: 260px; 
}

.conteneur_experience {
    margin-right: 260px; 
    margin-left: 260px; 
}


.p_experience {
    padding-bottom: 30px;
}


/* diaporama page corseterie */

.conteneur_a {
    display:flex;
    margin-top : 50px;
    justify-content: center;
    align-items: center;

}

.a_UI {
    background-color: #ffffff!important;
    border: 2px solid #2f2631;
    border-radius: 8px;
    color: rgb(0, 0, 0);
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    
}

.a_UI:hover {
    background-color: #2f2631!important;
    color: white;
 }


.mySlides {display: none}
img {vertical-align: middle}

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

/* Flèches de navigation */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Puces (bullets) */
.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;
}

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

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

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



.formulaire {
    background: linear-gradient(to right, #afb8dd, #bfbafc, #c3a8ee, #fda4f9, #f8b7d0);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 50px 20px;
    box-sizing: border-box;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form h2 {
    margin-bottom: 20px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 17px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #5a0070;
    outline: none;
}

textarea {
    resize: vertical;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #8500a7;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #310031;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: white;
    padding: 20px 0;
    box-sizing: border-box;
    position: relative;
    bottom: 0;
    left: 0;
}

/*Cookie */

.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.cookie-popup a {
    color: #00f;
    text-decoration: underline;
}

.cookie-buttons {
    margin-top: 10px;
}

.cookie-buttons button {
    background-color: #8500a7;
    border: none;
    color: white;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cookie-buttons button:hover {
    background-color: #310031;
}

.a_cookie {
    text-decoration: none;
    color:white;
}


/* Mobile styles */
@media (max-width: 1024px) {
    .burger {
        display: flex;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #ffffff;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px 0;
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }
    .a_tel {
        color: #4e4e4e;
        display: none;
    }

    .conteneur_principal {
        flex-direction: column; 
        margin: 0;
        
    }

    /* Accueil*/
        .competences_grid {
        grid-template-columns: 1fr;
        }
        
        .conteneur_graphisme,
        .conteneur_corseterie,
        .conteneur_architecture,
        .conteneur_photographie {
            width: 100%;
            background-size:cover;
            background-position: center ;
            margin:0;
            padding:0;
           
        }

    .conteneur_child {
        margin:0;
        padding:0;
    }

    /* CV */
    .conteneur_CV,
    .conteneur_experience {
        display: block; 
        margin-left: 0; 
        margin-right: 0; 
    }

    .img_ecole,
    .img_archi {
        width: 100%;
    }

    .conteneur_CV_child,
    .conteneur_experience_child {
        width: 100%; 
    }


}




