/* Variables CSS pour les couleurs de votre logo */
:root {
    --efs-bg: linear-gradient(to right, #127CB7, #0B6263); /* Dégradé de fond pour les sections 250728 */
    --efs-blue-light: #52a6c2;  /* Bleu clair du dégradé du logo */
    --efs-blue-dark: #2c6e91;   /* Bleu foncé du dégradé du logo */
    --efs-green-light: #72b09a; /* Vert/turquoise clair du dégradé du logo */
    --efs-green-dark: #3a856e;  /* Vert/turquoise foncé du dégradé du logo */
    --text-dark: #333;
    --text-light: #f9f9f9;
    --bg-light: #ffffff;
    --bg-neutral: #f0f4f8; /* Un gris-bleu très clair pour les sections */

}

html, body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

header {
    background: linear-gradient(to right, #127CB7, #70b2d6, silver, #39a5a7, #0B6263);
    top: 0;
    width: 100%;
    color: white;
    text-align: center;
    height: 4.5rem;
    padding: 0.5rem 0 ;
}

.logo {
    position: fixed;
    top : 0.3rem;
    left: 0.3rem;
    width: auto;
    height: 4rem;
    z-index: 999;
}

section {
    text-align: center;
}

/* slider */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 1rem auto;
    max-height: 500px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  }

  .slide {
    position: relative;
    display: flex;
    justify-content: center;
    height: 100%;
    color: white;
  }

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slide h1 {
    position: absolute;
    color: azure;
    background-color: rgba(0, 0, 0, 0.5);
    top: 60%;
    max-width: 80%;

    font-size: 2rem;
    font-weight: bold;

    @media (orientation: portrait) { 
        top: 50%;
        font-size: 1rem;
    }

  }

.slide p {
    position: absolute;
    bottom: 0;
    max-width: 90%;
    background-color: rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;

    @media (orientation: portrait) { 
        font-size: 0.8rem;
    }


}


/* Contact Us Button Styling */
.contact-us {
    position: absolute;
    right: 1rem;
    top: 1rem;
    height: 3rem;
    float: right;
}

.contact-us a {
    color: white;
    text-decoration: none;
}

.wa-button {
    background: #25D366; /* WhatsApp Green */
    padding: 0.5rem 1.5rem;
    font-size: 1.1rem;
    color: white;
    border: white solid 4px;
    border-radius: 8px;

    @media (orientation: portrait) { 
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }

    &:hover {
        font-weight: bold;
    }
}

/* Articles Section */
.articles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    grid-gap: 20px; /* Space between articles */
    padding: 20px;
    max-width: 1024px;
    margin: 1rem auto;

    @media (orientation: portrait) { 
        grid-template-columns: repeat(1, 1fr);
        height: auto;
        padding: 1rem;
    }

}

.article {
    background: linear-gradient(to bottom, #e2e6e8, #b6bfc4);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.article img {
    width: auto;
    height: 160px;
    object-fit: cover;
    border-radius: 5px;
}

.selected {
    border: #0B6263 2px solid;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #187bc7;
}

.formula {
    color: #062418;
}

#services {
    font-weight: bold;
    color: #08293a;
}

.order-btn {
    background:linear-gradient(to right, #127CB7, #0B6263);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 5px;

    border: silver solid 2px;
    &:hover {
        font-weight: bold;
        border-color: white; ;
        background: linear-gradient(to right, #0B6263, #127CB7);
        transform: scale(1.05);
    }

}



/* Contact Section */
.contact {
    background: linear-gradient(to right, #127CB7, #70b2d6, silver, #39a5a7, #0B6263);
    color: white;
    text-align: center;
    height: fit-content;
    padding: 1rem;
}

.contact-container {
    background: linear-gradient(to right, #127CB7, #70b2d6, silver, #39a5a7, #0B6263);
    color: white;
    position: relative;
    height: auto;
    padding: 1rem;
    z-index: 0;
}


.contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact button {
    margin: 2rem auto 1rem;
    height: 4rem;
    width: 12rem;
    float: right;   
}

.contact input {
    margin: 0.5rem;
    height: 2rem;
    font-size: 1rem;
}

.contact .options {
    background-color: white;
    margin: 0.5rem 0;
}

.options option {
    color: darkblue;
    font-size: 1.2rem;
}

.contact-container form {
    max-width: 600px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    height: auto;
}

#order-form {
    padding: auto;
}

.contact-container input, .contact-container textarea {
    width: 90%;
    margin: 0.5rem 0;
    color: darkblue;
    border: silver solid 1px;
    &:hover {
        font-size: 1.1rem;
        border-color: #0B6263;
    }

    @media (orientation: portrait) { 
        font-size: 0.9rem;
    }
}

.contact-container textarea {
    margin: 1rem 0;
    height: 5rem;
}


#address {
    padding: 1rem;

}

.address-container {
    display: grid;
    grid-template-columns: 40% 60%; 
    height: 20rem;
    padding: 0.5rem auto;
}

.address-container iframe {
    height: 100%;
    width: 100%;
    float: right;
    border: none;
    margin: 0 auto;
}

footer {
    background: linear-gradient(to right, #10272b, #5e5b44, #513d12, #648661, #062418);
    color: #111;
    text-align: center;
    height: 2rem;
    font-size: 0.9rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer a {
    color: silver;
    text-decoration: none;
    padding: 0.3rem 1rem;
    width: fit-content;
}

footer img {
    /*  margin-top: 0.5rem; */
    height: 1.3rem;
    vertical-align: middle;
}


#etat-time {
    padding: auto;
    color: goldenrod;
    float: right;
}

#powered-by {
    color: white;
    float: right;

}

#etat-email {
    color: white;
    float: left;
}

#etat-message {
    color: silver;
    width: auto;
    float: left;
}

#etat-phone {
    vertical-align: middle;
    color: #25D366;

    &:hover {
        font-weight: bold;
        text-decoration: underline;
    }

}

.wa-screen {
  display: flex;
  justify-content: center; /* Centre horizontalement */
  align-items: center; /* Centre verticalement */
  height: 100vh; /* Optionnel : prend toute la hauteur de la fenêtre */
}

.wa-screen textarea {
    width: auto;
    padding: 0 1rem;
    font-size: 2rem;
    color: white;
    background-color: #333;
}

#about-us {
    padding: 1rem;
    margin: 0;
    height: 24rem;
    overflow-y: auto  ;
    background-color: #eee;
}

#about-us p {
    max-width: 900px;
    margin: auto;
    font-size: 1.1rem;
    line-height: 1.5;
}

#policies {
    background: rgb(184, 164, 164) ;
    padding: 1rem 2rem;
    text-align: center;
    height: 3rem  ;

    @media (orientation: portrait) { 
        height: 5rem ;
    }
}

#policies h5 {
    margin: auto;
    font-size: 1rem;
    color: brown;
}

html[dir="rtl"] #policies h5 {
    font-size: 1.2rem;
}

#formulas h4 {
    text-align: left;
    margin-bottom: 0.5rem;
    color: darkblue;
    font-size: 1rem;
}

html[dir="rtl"] #formulas h4 {
    text-align: right;
    font-size: 1.2rem;
}

.options {
    position: relative;
    width: 90%;
    color: darkblue;
    font-size: 1.1rem;
    border: azure 1px solid;
    height: 3rem;
}


.error {
    color: red;
    background-color: yellow;
}

/* Styles pour le menu de navigation */
nav {
    /*border: var(--efs-blue-dark) solid 1px; /* Couleur de fond de la barre de navigation */

    border-radius: 8px; /* Bords arrondis pour la barre de nav */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permet le retour à la ligne sur petits écrans */
   	@media (orientation: portrait) { 
        margin: 3rem auto 0 0;
        width: auto;
        text-align: left;
        font-size: 1rem;
        height: auto;
        display: flex;
        flex-direction: column;
        list-style-type: none;
        padding: 0;        
    }    

}

nav ul li {
    position: relative; /* Nécessaire pour le positionnement des sous-menus */
    margin: 0.2rem 0.5rem;
}

nav ul li a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 6px 9px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    text-align: left;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Effet au survol */
}

html[dir="rtl"] nav ul li a {
    font-size: 1.1rem;
    text-align: right;
}

/* Styles pour les sous-menus */
.submenu {  /*MeR */
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.5);
    color: azure ;
}

nav ul li ul {
    position: absolute;
    display: none; /* Masqué par défaut */
    background-color: var(--efs-blue-dark);
    box-shadow: 0 8px 16px rgba(0,0,0,0.7);
    min-width: 180px; /* Largeur minimale du sous-menu */
    z-index: 1000; /* Assure que le sous-menu apparaît au-dessus du reste */
    left: 0;
    flex-direction: column; /* Force les éléments du sous-menu à être en colonne */
    border-radius: 0 0 8px 8px; /* Bords arrondis seulement en bas */
    overflow: hidden; /* Pour que le border-radius s'applique aux éléments */
}

nav ul li:hover > ul {
    display: flex; /* Affiche le sous-menu au survol du parent */
}

nav ul li ul li {
    margin: 0; /* Réinitialise les marges pour les éléments de sous-menu */
}

nav ul li ul li a {
    padding: 10px 20px; /* Padding ajusté pour les sous-menus */
    white-space: nowrap; /* Empêche le texte de se couper */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Séparateur */
}

nav ul li ul li:last-child a {
    border-bottom: none; /* Pas de séparateur pour le dernier élément */
}

nav ul li ul li a:hover {
    background-color: var(--efs-blue-light); /* Couleur différente au survol pour les sous-menus */
    color: var(--text-dark) ;
    max-width: 100%;
}

#meLang {
    border: var(--efs-blue-dark) 1px solid;
}

#submenu0 {
    min-width: 3rem;
    /*  background-color: #062418;  */
}

.parentMenu {
    font-weight: bold;
    border: var(--efs-blue-dark) 0px solid;
    &:hover{
        border-width: 1px;
    }
}

.divider {
    height: 2px !important;
    width: 100%;
    margin: 0 0 0.5rem 0;
    background-color: azure;
}