body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#notification-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 9999;
}

#notification-container img {
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
}

nav {
    position: sticky;
    top: 0;
    background: #ffffff;
    color: #386c2f;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav a {
    color: #386c2f;
    text-decoration: none;
}

nav a:hover
{
    color:#ba9206;
}

nav select {
    background: white;
    color: black;
    padding: 5px;
    border: none;
    border-radius: 5px;
}
nav select:hover {
    color:#e18705;
    background-color:#ffffff;
}
.section {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    padding:10px 20px 20px 20px;
}

.xsection {
    height: 3vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    padding:20px 0px 0px 0px;
    
}
.hero {
    background: rgba(0, 0, 0, 0.5); /* Ajouter une superposition sombre */
    padding: 20px;
    border-radius: 10px; /* Arrondir les coins */
    color: white;
    text-align: center;
    padding: 100px 0; /* Augmenter l'espace dans le hero */
    height: 20vh; /* Remplir l'écran */
    position: relative; /* Nécessaire pour le positionnement des cartes */
}

.hero h1 {
    font-size: 2.5em;
    margin: 0;
    padding:0px;
}

.hero p {
    font-size: 1.2em;
}
.cards {
    display: flex;
    justify-content: space-around;
    margin: -90px 20px 20px 20px; /* Marges négatives pour faire dépasser les cartes du hero */
}


.card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 28%;
    margin:0px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative; /* Pour le positionnement */
    z-index: 1; /* Pour s'assurer que les cartes sont au-dessus du hero */
}
.tcards {
    display: flex;
    justify-content: space-around;
    margin: 10px 20px 20px 20px; /* Marges négatives pour faire dépasser les cartes du hero */
}
.tcard {
    font-size: 16px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 26%;
    margin:0px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative; /* Pour le positionnement */
    z-index: 1; /* Pour s'assurer que les cartes sont au-dessus du hero */
}


.card h2 {
    text-align: center;
}

.card p {
    text-align: justify;
}



#home { 
    background-image: url('images/famx.jpg');
    background-size: cover; /* Pour couvrir toute la section */
    background-position: center; /* Centrer l'image */
    height: 70vh; /* Hauteur de la section héros */
    display: flex; /* Pour centrer le contenu */
    justify-content: center; /* Centrer horizontalement */
    align-items: center; /* Centrer verticalement */
    color: white; /* Couleur du texte */
    text-align: center; /* Aligner le texte au centre */
}
#about { background: #ffffff; }
#team { background: #ddd4ac; }
#products { background: lightgoldenrodyellow; }
#contact { background: lightgray; }

/* Media Queries pour les différentes tailles d'écran */

@media (max-width: 768px) {
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Empêcher le débordement horizontal */
}

nav {
    position: sticky;
    top: 0;
    background: #ffffff;
    color: #386c2f;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin: 5px 10px;
}

nav a {
    color:#40632a;
    text-decoration: none;
    font-size: 14px;
}

nav select {
    background: white;
    color: black;
    padding: 5px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
}

.section {
    height: auto; /* Ajuster la hauteur automatiquement */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.xsection {
    height: auto; /* Ajuster la hauteur automatiquement */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-align: center;
    padding: 20px 0;
    box-sizing: border-box;
}

.hero {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
    padding: 50px 20px;
    height: auto; /* Ajuster la hauteur automatiquement */
    position: relative;
    margin: 20px;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 2em;
    margin: 0;
    padding: 0;
}

.hero p {
    font-size: 1em;
}

.cards, .tcards {
    display: flex;
    flex-direction: column; /* Empiler les cartes verticalement sur mobile */
    align-items: center;
    margin: 20px 10px;
}

.card, .tcard {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    width: 99%; /* Largeur de 99% pour s'adapter à presque toute la largeur de l'écran */
    margin: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.card h2, .tcard h2 {
    font-size: 1.5em;
    text-align: center;
}

.card p, .tcard p {
    font-size: 1em;
    text-align: justify;
}

#home {
    background-image: url('images/famx.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh; /* Ajuster la hauteur pour les mobiles */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

#about { background: #ffffff; }
#team { background: #ddd4ac; }
#products { background: lightgoldenrodyellow; }
#contact { background: lightgray; }

/* Media Queries pour les différentes tailles d'écran */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .card, .tcard {
        width: 99%; /* Largeur de 99% pour les tablettes et petits écrans */
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column; /* Empiler les éléments de navigation verticalement */
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    .hero h1 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 0.8em;
    }

    .card, .tcard {
        width: 99%; /* Largeur de 99% pour les smartphones */
        padding: 10px;
    }
}
}

@media (max-width: 480px) {
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Empêcher le débordement horizontal */
}

nav {
    position: sticky;
    top: 0;
    background: #ffffff;
    color: #386c2f;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin: 5px 10px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

nav select {
    background: white;
    color: black;
    padding: 5px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
}
/* Styles de base pour la navigation */
nav {
    position: sticky;
    top: 0;
    background: #ffffff;
    color: #386c2f;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}
nav img
{
    width:35px;
}

.nav-brand {
    font-size: 1.5em;
    font-weight: bold;
}

.nav-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
     color: #386c2f;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ddd;
}

/* Styles pour le bouton hamburger (mobile) */
.hamburger {
    display: none; /* Caché par défaut */
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    width: 100%;
    height: 3px;
    background: white;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    width: 100%;
    height: 3px;
    background: white;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    top: 8px;
}

/* Animation du bouton hamburger */
.hamburger.active .hamburger-inner {
    background: transparent;
}

.hamburger.active .hamburger-inner::before {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-inner::after {
    transform: translateY(-8px) rotate(-45deg);
}




.section {
    height: auto; /* Ajuster la hauteur automatiquement */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.xsection {
    height: auto; /* Ajuster la hauteur automatiquement */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-align: center;
    padding: 20px 0;
    box-sizing: border-box;
}

.hero {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
    padding: 50px 20px;
    height: auto; /* Ajuster la hauteur automatiquement */
    position: relative;
    margin: 20px;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 2em;
    margin: 0;
    padding: 0;
}

.hero p {
    font-size: 1em;
}

.cards, .tcards {
    display: flex;
    flex-direction: column; /* Empiler les cartes verticalement sur mobile */
    align-items: center;
    margin: 20px 10px;
}

.card, .tcard {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    width: 99%; /* Largeur de 99% pour s'adapter à presque toute la largeur de l'écran */
    margin: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.card h2, .tcard h2 {
    font-size: 1.5em;
    text-align: center;
}

.card p, .tcard p {
    font-size: 1em;
    text-align: justify;
}

#home {
    background-image: url('images/famx.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh; /* Ajuster la hauteur pour les mobiles */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

#about { background: #ffffff; }
#team { background: #ddd4ac; }
#products { background: lightgoldenrodyellow; }
#contact { background: lightgray; }

/* Media Queries pour les différentes tailles d'écran */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .card, .tcard {
        width: 99%; /* Largeur de 99% pour les tablettes et petits écrans */
    }
}

/* Styles pour les écrans mobiles */
@media (max-width: 768px) {
    /* Styles de base pour la navigation */
nav {
    position: sticky;
    top: 0;
    background: #41512c;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

.nav-brand {
    font-size: 1.5em;
    font-weight: bold;
}

.nav-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ddd;
}
}


/* Styles pour les écrans mobiles */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Afficher le bouton hamburger */
    }

    .nav-links {
        display: none; /* Cacher le menu par défaut */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Ajuster en fonction de la hauteur du nav */
        left: 0;
        width: 100%;
        background: #41512c;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex; /* Afficher le menu lorsque le bouton est cliqué */
    }

    .nav-links li {
        margin: 10px 0;
    }
}


@media (max-width: 480px) {
    nav ul {
        flex-direction: column; /* Empiler les éléments de navigation verticalement */
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    .hero h1 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 0.8em;
    }

    .card, .tcard {
        width: 99%; /* Largeur de 99% pour les smartphones */
        padding: 10px;
    }
}
}

