
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}


body {
    font-family: Arial, sans-serif;
    background-color: white !important;
    color: #0056b3;
    flex: 1;
}

.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

footer {
    background-color: #2E2E2E;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: auto; 
}
.footer-link {
    color: #AADDFF;
    text-decoration: none; 
    margin-left: 10px;
}

.footer-link:hover {
    text-decoration: underline;
    color: #FFFFFF;
}



#main-header {
    background-color: white !important;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #228b22 !important;
}

#main-header .logo {
    height: 120px !important;
    margin-right: 20px;
    margin-left: 100px;
}


.hero-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.flags-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0; 
}

.hero-wrapper img {
    max-width: 100px;
    margin: 0 10px; 
    vertical-align: bottom;
}

.hero h1 {
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    margin: 0;
    display: inline-block;
    border-radius: 50px;
    text-align: center;
}


.cta-images {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    gap: 40px;
}


.cta-text {
    color: #0056b3; 
    font-weight: bold; 
    text-align: center;
    margin-top: 10px;
    display: block;
    white-space: nowrap;
    font-size: 1.5em;
}

.cta-description {
    background-color: #0056b3;
    color: white;
    font-weight: bold;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
    border-radius: 30px;
}
.service-description {
    background-color:white;
    color: #0056b3;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1000px;
    font-family: 'Comic Sans MS', 'Lucida Handwriting', cursive;
    font-size: 1.9em;
}

.image-container {
    flex: 1;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    position: relative;
}


.image-container img {
    max-width: 300px;
    height: auto;
    margin-bottom: 5px;
}

.features {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    margin: 40px auto;
    max-width: 1200px;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex: 1;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.feature-title {
    color: #0056b3;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.feature-card p {
    color: #333;
    font-size: 1em;
    line-height: 1.5;
}


.steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px auto;
    max-width: 800px;
    padding: 20px;
}

.step {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.step-number {
    background-color: #0056b3;
    color: white;
    font-size: 2em;
    font-weight: bold;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
}

.step-content {
    flex: 1;
}

.step-title {
    color: #0056b3;
    font-weight: bold;
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.step-content p {
    color: #333;
    font-size: 1em;
    line-height: 1.5;
    margin-top: 10px;
}

.linktech-info {
    background-color: #0056b3; 
    color: white; 
    padding: 15px; 
    margin-top: 30px; 
    border-radius: 10px;
    text-align: center; 
    font-weight: bold; 
    font-size: 1.1em; 
}

.user-icon {
    margin-right: 100px;
    font-size: 3em;
    color: #0056b3;
    cursor: pointer;
    position: relative;
}


.user-menu {
    display: none; 
    position: absolute;
    top: calc(100% + 10px); 
    right: 10px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    z-index: 1000;
    overflow: hidden;
    min-width: 120px;
    width: fit-content;
    box-sizing: border-box;
}

.user-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu li {
    border-bottom: 1px solid #ddd;
}

.user-menu li:last-child {
    border-bottom: none;
}

.user-menu a {
    display: block;
    padding: 5px 8px;
    color: #0056b3;
    text-decoration: none;
    font-weight: 500; 
    font-size: 0.5em; 
    text-align: left;
    transition: background-color 0.3s, color 0.3s;
}

.user-menu a:hover {
    background-color: #f0f0f0; 
    color: #003366; 
}

.signup-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh; 
    padding: 20px;
    margin-top: 20px;
}


.signup-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px; 
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #0056b3; 
    animation: floating 12s ease-in-out infinite;
}

/* Style des éléments du formulaire */
.signup-wrapper h1 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 20px;
}

.signup-wrapper label,
.signup-wrapper input,
.signup-wrapper button {
    width: 100%;
    margin-bottom: 15px;
}

.signup-wrapper label {
    font-weight: bold; 
    color: #0056b3;
    margin-bottom: 5px;
}

.signup-wrapper input {
    padding: 10px;
    border: 2px solid #0056b3;
    border-radius: 5px;
    box-sizing: border-box;
}

.signup-wrapper button {
    background-color: #0056b3;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 900;
    font-size: 1.1em;
}

.signup-wrapper button:hover {
    background-color: #003366;
}
.signup-wrapper input:focus {
    outline: none; 
    border-color: #003366;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.5);
}
.signup-image-container {
    text-align: center;
    margin-bottom: 20px;
}

.signup-banner {
    max-width: 250px;
    height: auto;
    border-radius: 30px;
}
.text-bold {
    font-weight: bold;
}
.text-black {
    color: #000000; 
    font-weight: bold; 
    text-align: center;
}
/* position du formulaire de connexion sur PC et smartphone */
.login-page .signup-wrapper {
    margin-top: -180px !important;
}
.about-section h1 {
    text-align: center;
}
.center-content {
    text-align: center;
}


.highlight {
    font-weight: bold;
    color: #000000;
}
.text-left {
    text-align: left;
}
.message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.message.error {
    color: #ff0000;
    background-color: #ffe6e6;
}

.message.success {
    color: #00cc00;
    background-color: #e6ffe6;
}
/* Styles pour la page d'inscription réussie */
.success-title {
    text-align: center;
    font-size: 2em;
    margin-top: 20px;
    color: #0056b3;
}

.success-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.success-image {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 15px;
}
.success-message {
    text-align: center;
    color: #000000;
    font-weight: bold;
    margin: 20px 0;
}

.login-link {
    text-align: center;
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}

.login-link:hover {
    text-decoration: underline;
    color: #003366;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
    padding-right: 30px; /* Pour laisser de la place pour l'icône */
}

.password-wrapper i {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #0056b3;
}


.password-wrapper .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #0056b3;
}

/* Styles pour la page de contact */
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Occupe au moins 80% de la hauteur de la vue */
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 200px;
}

.contact-wrapper {
    display: flex;
    z-index: 2; /* formulaire est au-dessus de l'image */
    margin-top: -20px; /* superposition du formulaire */
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px; 
    background-color: #f8f8f8; /* Ajouter la couleur  */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #0056b3;
    animation: floating 12s ease-in-out infinite;
}

.contact-wrapper h1 {
    text-align: center; 
    color: #0056b3;
    margin-bottom: 20px;
}

.contact-wrapper label,
.contact-wrapper input,
.contact-wrapper textarea,
.contact-wrapper button {
    width: 100%; 
    margin-bottom: 15px;
}

.contact-wrapper label {
    font-weight: bold; 
    color: #0056b3; 
    margin-bottom: 5px;
}

.contact-wrapper input,
.contact-wrapper textarea {
    padding: 10px;
    border: 2px solid #0056b3;
    border-radius: 5px;
    box-sizing: border-box;
}

.contact-wrapper button {
    background-color: #0056b3;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.contact-wrapper button:hover {
    background-color: #003366;
}

.contact-wrapper input:focus,
.contact-wrapper textarea:focus {
    outline: none;
    border-color: #003366; 
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.5);
}
.contact-description {
    font-weight: bold;
    color: #000000; 
    text-align: center; 
    margin-bottom: 20px; 
}
.contact-info {
    text-align: center; 
    color: #000000; 
    font-weight: bold; 
    margin-top: 20px; 
}

.contact-email {
    color: #0056b3; 
    font-weight: bold; 
}

.centered-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh; 
    text-align: center;
}

.centered-content h1 {
    font-size: 2.5em;
    color: #0056b3;
    margin-bottom: 20px;
}

.centered-content p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 30px;
}

.centered-content .btn {
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.centered-content .btn:hover {
    background-color: #003366;
}
.logout-image {
    max-width: 270px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.forgot-password {
    text-align: center;
    margin-top: 15px; 
}

.forgot-password-link {
    color: #0056b3; 
    font-weight: bold; 
    text-decoration: none; 
    display: inline-block;
}

.forgot-password-link:hover {
    text-decoration: none; 
    color: #003366; 
}


@keyframes floating {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(5px, -3px) rotate(1deg);
    }
    50% {
        transform: translate(-5px, 3px) rotate(-1deg);
    }
    75% {
        transform: translate(5px, -3px) rotate(1deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}
@keyframes rotate-flag {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-image.maroc-rotate {
    animation: rotate-flag 5s linear infinite;
}

/* Image de l'enveloppe */
.envelope-image-container {
    position: relative;
    text-align: center;
    margin-bottom: -100px;
    margin-top: 150px;
    z-index: 1;
}

.envelope-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 15px; 
}
.messages .alert{
  padding:12px 14px;
  margin:14px 0;
  border-radius:8px;
  font-weight:800;
}

.contact-page .alert-success{
  background:#e6ffe6;
  color:#0f5e24;
  border:1px solid #b7e4c7;
}

.contact-page .alert-error,
.contact-page .alert-danger{
  background:#ffe6e6;
  color:#b00000;
  border:1px solid #f5b5b5;
}

@media (min-width: 992px) {
    .cta-images {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .image-container {
        margin: 20px 0;
    }

    .image-container.left {
        transform: translateX(0); 
    }

    .image-container.right {
        margin-top: 40px;
    }
    .envelope-image-container {
        margin-top: 500px !important;
        margin-bottom: -70px;
    }

    .contact-wrapper {
        margin-top: 0px;
        margin-bottom: 100px;
    }
     .contact-section {
        margin-bottom: 400px;
    }
     .contact-wrapper input,
    .contact-wrapper textarea {
        font-weight: bold; 
        font-size: 1.8em;
    }

    .contact-wrapper label {
        font-weight: bold;
        font-size: 1.2em;
    }
    .login-page .signup-wrapper input,
    .login-page .signup-wrapper label {
        font-weight: bold;
        font-size: 1.2em;
    }
    .signup-page .signup-wrapper input,
    .signup-page .signup-wrapper label {
        font-weight: bold;
        font-size: 1.2em;
    }

    .signup-page .password-wrapper input {
        font-weight: bold; 
        font-size: 1.2em; 
    }
    .btn {
        margin-bottom: 50px;
    }
    .centered-content {
        padding-bottom: 50px;
    }
    .contact-page #name,
  .contact-page #email,
  .contact-page #subject {
    font-size: 1.2rem;   
    font-weight: 700;    
    padding: 12px;       
  }

  
  .contact-page label[for="name"],
  .contact-page label[for="email"],
  .contact-page label[for="subject"] {
    font-size: 1.1rem;   
    font-weight: 700;
  }

  
  .contact-page #name::placeholder,
  .contact-page #email::placeholder,
  .contact-page #subject::placeholder {
    font-size: 1rem;
    opacity: .7;
  }
    .contact-page .contact-wrapper button {
  font-size: 1.1em;
  font-weight: 700;
}

}


@media (max-width: 768px) {
    .cta-images {
        flex-direction: column;
        align-items: center;
    }

    .image-container {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .image-container img {
        max-width: 200px; 
    }
    #main-header {
        padding-top: 0; 
        display: flex;
        align-items: center;
        justify-content: space-between;
        
    }
    #main-header .logo {
        margin-left: 0px; 
        margin-top: 0px;
        height: 75px !important;
        margin-bottom: 80px;
    }
    .user-icon {
        margin-top: 5px; 
        margin-right: 20px;
        align-self: flex-start;
    }
    
     .footer-link {
        white-space: nowrap; 
    }
    .signup-wrapper {
        width: 80%; 
        max-width: 400px; 
        margin: 0 auto; 
        margin-bottom: 20px !important;
        padding-bottom: 10px;
    }
     .signup-wrapper input {
        font-weight: bold; 
        font-size: 1.1em;
    }

    .signup-wrapper label {
        font-weight: bold; 
        font-size: 1.1em; 
    }

    
    .signup-wrapper button {
        padding: 12px;
        font-size: 1.1em;
        font-weight: bold; 
    }

    form {
        padding: 20px; 
    }
    .signup-banner {
        max-width: 150px;
        height: auto;
    }
    .signup-page .signup-wrapper {
        margin-top: 100px; 
    }
    .success-title {
        margin-top: 5px; 
    }

    
    .success-section {
        padding-top: 10px; 
        margin-top: 0px; 
    }
    .signup-section {
        margin-top: 50px; 
        margin-bottom: 200px !important;
    }
    .envelope-image-container {
        margin-top: 200px !important; 
    }

    .envelope-image {
        height: auto;
        max-height: 200px; 
        border-radius: 15px; 
    }
    .contact-section {
        margin-bottom: 250px;
    }
   .contact-wrapper {
        width: 95%; 
        max-width: 600px; 
        margin: 0 auto; 
        box-sizing: border-box;
        padding: 20px; 
        margin-top: 50px; 
        margin-bottom: 30px;
    }
    .contact-wrapper label,
    .contact-wrapper input,
    .contact-wrapper textarea,
    .contact-wrapper button {
        width: 100%;
        margin-bottom: 10px; 
    }
    .contact-wrapper label {
        font-size: 1.1em; 
        white-space: nowrap; 
        font-weight: bold;
    }

    
    .contact-wrapper input,
    .contact-wrapper textarea {
        padding: 8px; 
        font-size: 1.5em;
        font-weight: bold;
    }

    
    .contact-wrapper button {
        padding: 10px;
        font-size: 1em; 
    }
    .centered-content h1 {
        font-size: 2em;
    }

    .centered-content p {
        font-size: 1em;
    }

    .centered-content .btn {
        padding: 8px 15px;
        font-size: 0.9em; 
    }
    .logout-image {
        max-width: 230px;
        margin-top: -150px;
    }
     .login-page .signup-wrapper {
        margin-top: -100px !important; 
        margin-bottom: 0px !important; 
    }

    
    .login-section {
        margin-top: 0px !important; 
        margin-bottom: 0px !important; 
    }

    
    .forgot-password {
        text-align: center;
        margin-top: 20px;
        font-weight: bold;
        color: #0056b3;
        text-decoration: none;
    }
    .forgot-password a {
        color: #0056b3;
        font-weight: bold;
        text-decoration: none;
    }
    .forgot-password a:hover {
        text-decoration: none; 
    }
}
@media (max-width: 768px) {
    .service-description {
        font-family: 'Poppins', sans-serif !important;
    }
    .contact-page #name,
  .contact-page #email,
  .contact-page #subject {
    font-size: 1.2rem;   
    font-weight: 700;    
    padding: 12px;       
  }

  
  .contact-page label[for="name"],
  .contact-page label[for="email"],
  .contact-page label[for="subject"] {
    font-size: 1.1rem;   
    font-weight: 700;
  }

  
  .contact-page #name::placeholder,
  .contact-page #email::placeholder,
  .contact-page #subject::placeholder {
    font-size: 1rem;
    opacity: .7;
  }
  .contact-page.contact-section {
    margin-top: 24px !important;
    padding: 20px 20px 0px !important;
    min-height: auto !important;
  }

  .contact-page .envelope-image-container {
    margin-top: -20px !important;
    margin-bottom: -30px !important;
  }

  .contact-page .contact-wrapper {
    margin-top: 16px !important;
    margin-bottom: -200px !important;
  }

  .contact-page #name,
  .contact-page #email,
  .contact-page #subject {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    padding: 12px !important;
  }

  .contact-page #message {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    padding: 12px !important;
  }
}

@media (min-width: 1024px) and (max-width: 2560px) {
    .signup-section {
        margin-top: 50px; 
        margin-bottom: 200px !important;
    }
      .contact-page.contact-section {
    margin-top: 24px !important;
    padding: 20px 20px 0px !important;
    min-height: auto !important;
  }

  .contact-page .envelope-image-container {
    margin-top: -20px !important;
    margin-bottom: -30px !important;
  }

  .contact-page .contact-wrapper {
    margin-top: 16px !important;
    margin-bottom: -300px !important;
  }

  .contact-page #name,
  .contact-page #email,
  .contact-page #subject {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    padding: 12px !important;
  }

  .contact-page #message {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    padding: 12px !important;
  }
    
  
}
