@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dynalight&family=Luxurious+Script&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

html,body {
    margin: 0;
    scroll-behavior: smooth;
    height: 100%;
    background-color: #07251f;
}

#header {
    display: flex;
    justify-content: space-between;  /* Met le logo à gauche et le menu à droite */
    align-items: center;  /* Centre le contenu verticalement */
    width: 100%;
    background-color: #07251f;
    height: 5em;
    color: #eaf9e1;   
}

#logo_header {
    width: 5em;
    padding-left: 10em;
}

/* Menu burger */
#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transform: translateY(+80%);
    width: 2rem;
    height: 2rem;
    z-index: 1000;
}

.menu-icon span,
.menu-icon span::before,
.menu-icon span::after {
    display: block;
    background-color: white;
    height: 3px;
    width: 2rem;
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.menu-icon span::before {
    content: '';
    top: -0.6rem;
}

.menu-icon span::after {
    content: '';
    top: 0.6rem;
}

#menu-toggle:checked + .menu-icon span {
    background-color: transparent;
}

#menu-toggle:checked + .menu-icon span::before {
    transform: rotate(45deg);
    top: 0;
}

#menu-toggle:checked + .menu-icon span::after {
    transform: rotate(-45deg);
    top: 0;
}

#menu {     
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #07251f;
    position: absolute;
    font-family: "Roboto", sans-serif;
    font-style: normal;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    margin-right: 8em;
}

#menu-toggle:checked ~ #menu {
    transform: translateY(0);
}

#liste {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

#liste li {
    margin: 1rem 0;
}

#liste a {
    text-decoration: none;
    color: #eaf9e1;
    font-size: 1.5rem;
}

#liste a:hover {
    color: #dda15e;
}


/* Style pour #presentation */
#content-presentation {
    padding: 0;
    padding-bottom: 2em;
    margin: 0;
    height: 100vh; /* Prendre toute la hauteur de l'écran */
    width: 100%;   /* Prendre toute la largeur de l'écran */
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column; /* Alignement vertical */
    justify-content: center; /* Centrer verticalement */
    align-items: center; /* Centrer horizontalement */
    background-size: cover;
    background-image: url(IMG/background.jpg);
    background-position: center;
}

#content-presentation a{
    text-decoration: none;
}

#content-presentation img{
    width: 1.8em;
    border-radius: 100%;
    vertical-align: middle;
    transition: transform .5s ease;
    margin-right: 3rem;
}

#content-presentation img:hover{
    transform: scale(120%);
}       

/* Style pour le titre */
#content-presentation h1 {
    font-size: 4rem;
    color: #eaf9e1;
    margin-bottom: 1rem; /* Ajouter un espace sous le titre */
    z-index: 1; /* S'assurer qu'il est au-dessus de l'image */
    font-family: "Playfair Display";
}

/* Style pour le paragraphe */
#content-presentation p {
    width: 70%;
    font-family: "Roboto", sans-serif;
    white-space: pre-line;
    font-weight: 300;
    font-size: 1.4rem;
    color: #eaf9e1;
    z-index: 1; /* S'assurer qu'il est au-dessus de l'image */
}

/* Image d'arrière-plan */
.illustration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Laisser l'image en arrière-plan */
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.8; /* Ajouter une légère opacité pour le style */
}

#work {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 300px;
    padding: 1em;
}
  
.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #353535;
    font-size: 3rem;
    color: #fff;
    /*box-shadow: rgba(219, 219, 219, 0.1) 0px 0.15rem 0.5rem, rgba(215, 215, 215, 0.1) 0px 0.075rem 0.175rem;*/
    height: 100%;
    width: 100%;
    border-radius: 4px;
    transition: all 500ms;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    padding: 0;
    margin: 0;
    transition: transform .5s ease;
}

.card:hover{
    transform: scale(1.05);
}

.menu > li {
  margin: 0 1rem;
  overflow: hidden;
}

.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: '';
  margin-top: -8px;
}

.menu-button::after {
  content: '';
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}

/* Styles pour la modale */
#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

#modal.hidden {
    display: none;
}

#close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}


/* --- Commission ---  */


#disclaimer {
    background-color: #07251f;
    color: #eaf9e1;
    padding: 1rem;
    margin: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    text-align: justify;
}

#disclaimer button {
    background-color: #375346;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

#disclaimer button:hover {
    background-color: #324e40;
}

#size {
    margin-bottom: 1em;
    appearance: none;
    width: 100%;
    padding: 0.675em 6em 0.675em 1em;
    border-radius: 0.25rem;
    cursor: pointer;
}

/* Conteneur principal */
.form-container {
    display: flex;
    height: 100vh;
    font-family: "Playfair Display";
    font-weight: 400;
}

/* Section gauche (image) */
.form-image {
    flex: 1;
    background: url('/IMG/IMG_1011.png') no-repeat center center;
    background-size: cover;
}

/* Section droite (formulaire) */
.form-content {
    flex: 1;
    background-color: #f9f4f1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Titres */
.form-content h1 {
    font-size: 2.5rem;
    color: #375346;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Labels */
.form-content label {
    font-size: 1rem;
    color: #6b6b6b;
    margin-bottom: 0.5rem;
    display: block;
}

/* Champs d'entrée */
.form-content input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: none;
    border-bottom: 2px solid;
    font-size: 0.9rem;
    background-color: #f9f4f1;
    color: #333;
}

.form-content textarea{
    margin-bottom: 1.5rem;
    background-color: #f9f4f1;
    border-bottom: 1px solid #283f34;
}

/* Bouton */
.form-button {
    background-color: #375346;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Playfair Display";
}

.form-button:hover {
    background-color: #283f34;
}

hr {
    width: 5em;
    margin-bottom: 2em;
}

textarea {
    resize: none;
}

#label_checkbox {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacement entre la checkbox et le texte */
    font-size: 16px; /* Ajustez la taille si nécessaire */
  }
  
  #label_checkbox input[type="checkbox"] {
    margin: 0; /* Supprime tout espace par défaut */
    width: 16px;
    height: 16px; /* Ajustez la taille pour correspondre au design */
    float: left;
  }


/* --- Footer --- */


footer{
    width: 100%;
    height: 4em;
    padding-top: 4em;
    text-align: center;
    color: white;
    vertical-align: middle;
    font-family: "Roboto", sans-serif;
    font-style: normal;   
    font-size: 0.6em;
    margin: auto 0;
    text-decoration: none;
}


/* --- Responsive --- */


@media screen and (min-width: 600px) {
    .card-tall {
      grid-row: span 2 / auto;
    }
  
    .card-wide {
        grid-column: span 2 / auto;
        }
}

/* Responsive pour les téléphones (>= 320px et < 768px) */
@media screen and (max-width: 767px) {
    #header {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 1em 0;
        position: relative;
    }

    .menu-button-container {
        display: flex;
      }
      .menu {
        position: absolute;
        top: 0;
        margin-top: 50px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
      }
      #menu-toggle ~ .menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
      }
      #menu-toggle:checked ~ .menu li {
        border: 1px solid #333;
        height: 2.5em;
        padding: 0.5em;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
      }
      .menu > li {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: white;
        background-color: #222;
      }
      .menu > li:not(:last-child) {
        border-bottom: 1px solid #444;
      }

    .menu-icon {
        display: block;
    }
    #menu {
        padding: 0;
        display: flex;
    }

    #liste {
        flex-direction: column;
        display: block;
    }

    #logo_header{
        width: 4rem;
        transform: translate(-30%, 0%);
    }

    #liste li {
        margin: 0.5em 0;
    }

    #content-presentation {
        height: auto;
        padding-bottom: 2em;
    }

    #content-presentation img{
        margin-right: 0.5em;
    }

    #content-presentation h1 {
        font-size: 2.5rem;
    }

    #content-presentation p {
        width: 90%;
        font-size: 1rem;
    }

    #disclaimer {
        font-size: 0.9rem;
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }

    .form-image{
        display: none;
    }

    .form-container {
        flex-direction: column;
        padding: 1em;
        margin: 0 auto;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-content {
        width: 100%;
        padding: 1em;
        box-shadow: none;
        box-sizing: border-box;
    }

    .form-content input,
    .form-content textarea,
    .form-content select {
        width: 100%;
        font-size: 1rem;
        margin-bottom: 1rem;
        box-sizing: border-box;
    }

    .form-content h1 {
        font-size: 1.8rem;
    }

    .form-content label {
        font-size: 1rem;
    }

    .form-button {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        box-sizing: border-box;
    }
}

/* Responsive pour les tablettes (>= 768px et < 1024px) */
@media screen and (min-width: 768px) and (max-width: 1146px) {
    #logo_header {
        width: 4rem;
    }

    #menu {
        font-size: 1rem;
    }

    #content-presentation {
        height: auto;
        padding-bottom: 2em;
    }

    #content-presentation p {
        width: 90%;
        font-size: 1rem;
    }

    .form-container {
        flex-direction: row;
        gap: 1em;
    }

    .form-image {
        flex: 1;
        display: none;
    }

    .form-content {
        flex: 1;
        padding: 2em;
        height: auto;
    }

    .form-content h1 {
        font-size: 2rem;
    }

    .form-content input,
    .form-content textarea,
    .form-content select {
        font-size: 1rem;
    }

    .form-button {
        padding: 0.8rem 1.5rem;
        width: 100%;
    }

}

@media screen and (max-width: 1146px) and (orientation: landscape) {
    .form-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 1em;
        padding: 2em;
        box-sizing: border-box;
    }

    .form-image {
        flex: 0;
        display: none;
    }

    .form-content {
        flex: 1;
    }

    .form-content input,
    .form-content textarea,
    .form-content select {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        box-sizing: border-box;
    }

    .form-content h1 {
        font-size: 2rem;
    }

    #disclaimer {
        font-size: 0.85rem;
        text-align: center;
        margin-bottom: 2em;
    }

}

/* Styles pour les écrans plus larges (ordinateurs) */
@media screen and (min-width: 769px) {
    #menu {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        background-color: transparent;
        position: static;
        transform: none;
        height: auto;
        width: auto;
    }

    .menu-icon {
        display: none; /* Caché sur les écrans plus larges */
    }

    #liste {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    #liste li {
        margin: 0 2em;
    }

    #liste a {
        font-size: 1rem;
        color: #eaf9e1;
    }
    
}
