/* Réinitialisation */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.button {
    cursor: pointer;
    appearance: button;
    outline: none;
    padding: 0.5em 1em;
    border: none;
    border-radius: 0.25em;
    background-color: #007bff;
    color: #fff;
    transition: all 0.2s ease-out;
}

button:hover {
    background-color: #0056b3;
}

/* Layout */
header {
    /*position: fixed;*/
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    z-index: 100;
}

nav ul {
    display: flex;
    align-items: center;
}

nav li {
    margin-left: 1em;
}

#hero {
    height: calc(50vh - 6em);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 1em;
    text-align: center;
    padding: 0 2em;
    background-color: rgb(194, 241, 242, 0.5);
    border-radius: 1em;
    margin-left: 20%;
    margin-right: 20%;
}

#fonctionalites, #securite, #tarif{
    background-color: rgb(194, 241, 242, 0.5);
    border-radius: 1em;
    margin-top: 1em;
    margin-left: 20%;
    margin-right: 20%;
    padding: 2em;
}


footer {
    background-color: rgb(194, 241, 242, 0.5);
    margin-top: 1em;
    padding: 1em;
    text-align: center;
}

.menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgb(194, 241, 242, 0.5);
    border-radius: 1em;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu a {
    color: black;
    letter-spacing: 0.1rem;
    padding: 0.5rem 1rem;
}

.menu a:hover {
    color: #3342e8;
    border-bottom: 1px solid #3342e8;
}

.menu .separator {
    flex-grow: 1;
    height: 1px;
    background-color: darkgray;
}

body {
    background-image: url('./images/background.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.logo{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: rgb(194, 241, 242, 0.5);
    border-radius: 1em;
    padding: 1rem;
}

.logo h1{
    margin-left: 1em;
}

.logo img{
    border-radius: 50%;
}

.fonctionnalites_principales{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;    
}

.fonctionnalites_principales div{
    background-color: rgb(194, 241, 242, 0.6);
    /*max-width: 200px;*/
    width: 22%;
    margin-bottom: 1em;
    border-top-right-radius: 1em;
    border-top-left-radius: 1em;
    border: 1px solid #3342e8;
}

.fonctionnalites_principales div:hover p {
    animation: vibrateText 1s infinite;
}

.fonctionnalites_principales p{
    margin-left: 5%;
    margin-right: 5%;
}
.fonctionnalites_principales img{
    border-top-right-radius: 1em;
    border-top-left-radius: 1em;
    object-fit: cover;
    width: 100%;
}

.contact-link {
  background: none;
  text-decoration: none !important;
  border: none;
  color: #1976d2;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

/* Modale */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: #fff;
  max-width: 400px;
  margin: 10vh auto;
  padding: 1.5rem;
  border-radius: 8px;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

input,
textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button[type="submit"] {
  background: #1976d2;
  color: #fff;
  border: none;
  padding: 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

.hidden {
  display: none;
}




@keyframes rainbow {
    0% {
        background-position: 0% 80%;
    }
    50% {
        background-position: 100% 20%;
    }
    100% {
        background-position: 0% 80%;
    }
}

@media (max-width: 1080px) {
    .menu {
        display: none;
    }
    #hero{
        height: auto;
    }

    header{
        justify-content: center;
    }

    #fonctionalites, #securite, #tarif, #hero{
        margin-top: 1em;
        margin-left: 5%;
        margin-right: 5%;
        padding: 2em;
    }    
}

@keyframes vibrateText {
    20% {
      transform: translateX(-1px) rotate(-1deg);
    }
    40% {
      transform: translateX(1px) rotate(1deg);
    }
    60% {
      transform: translateX(-1px) rotate(-1deg);
    }
    80% {
      transform: translateX(1px) rotate(2deg);
    }
  }