/* Styles généraux */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    min-height: auto;
    height: auto;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background-color: #00bcd4; /* Bleu clair */
    color: #fff;
    padding: 0.5px 0; /* Réduction du padding vertical */
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.contact-info, .location-info {
    display: flex;
    align-items: center;
}

.contact-info i, .location-info i {
    margin-right: 5px;
}

.social-links a {
    color: #fff;
    margin-left: 10px;
}

nav {
    padding: 10px 0; /* Réduction du padding vertical de la barre de navigation */
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo img {
    max-height: 50px; /* Réduction de la taille du logo */
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    line-height: 1; /* Réduction de l'espacement des liens */
}

.nav-links li {
    margin-left: 20px;
}

.nav-links li a {
    color: #333;
    text-decoration: none;
}

.nav-links li a:hover {
    color: #00bcd4;
}
.nav-links li a i {
    margin-left: 5px;
}

/* Hero Section */
.hero {
    background-image: url(Esgis-img/slide-esgis-1.jpg); /* Remplacez par le chemin de votre image */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Overlay sombre */
}

.hero-content {
    position: relative;
    z-index: 1;
    
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366; /* Vert WhatsApp */
    color: #fff;
    padding: 10px 15px; /* Ajustez la taille du bouton */
    font-size: 16px; /* Ajustez la taille de la police */
    border-radius: 5px; /* Ajoutez des coins arrondis si nécessaire */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 2;
}

/* Ajout du bouton hamburger */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .container {
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .contact-info, .location-info {
        margin-bottom: 10px;
    }

    .social-links {
        margin-top: 10px;
    }

    nav .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 20px;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
    }

    .nav-links li {
        margin: 10px 0;
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    nav .container {
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 95%;
        padding: 10px;
    }

    .hero {
        padding: 50px 0;
    }

    .whatsapp-button {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
    align-items: center;
    justify-content: center;
}

/* Colonne de l'image */
.image-column {
    width: 40%; /* Ajustez la largeur de la colonne */
    position: relative;
}

.yellow-box {
    position: absolute;
    top: -20px;
    left: -50px;
    width: 150px;
    height: 150px;
    background-color: #ffcc00; /* Jaune */
    z-index: 1;
}

.top-image, .bottom-image {
    position: relative;
    z-index: 2;
}

.top-image img {
    width: 100%;
    display: block;
}

.bottom-image img {
    width: 100%;
    display: block;
    margin-top: 20px;
}

/* Colonne du texte */
.text-column {
    width: 50%; /* Ajustez la largeur de la colonne */
    padding-left: 50px;
}

.text-column h2 {
    color: #ffcc00; /* Jaune */
    font-size: 1.2em;
    margin-bottom: 10px;
}

.text-column h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-column p {
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Bouton */
.button {
    display: inline-block;
    background-color: #ffcc00; /* Jaune */
    color: #333;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Styles responsives */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 20px;
        align-items: center;
    }

    .image-column {
        width: 100%;
        margin-bottom: 20px;
    }

    .text-column {
        width: 100%;
        padding-left: 0;
        text-align: center;
    }

    .yellow-box {
        width: 80px;
        height: 80px;
        top: -10px;
        left: -20px;
    }

    .text-column h1 {
        font-size: 2em;
    }
    

}

/* Section des statistiques */
.stats {
    background-color: #b71c1c; /* Rouge foncé */
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.stats .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-item {
    width: 30%;
    text-align: center;
}

.stat-item img {
    height: 50px; /* Ajustez la taille des icônes */
    margin-bottom: 10px;
    filter: brightness(0) invert(1); /* Inverser la couleur des images pour qu'elles soient blanches */
}

.stat-item h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.2em;
}

/* Media queries pour responsivité */
@media (max-width: 768px) {
    .stats .container {
        flex-direction: column;
    }

    .stat-item {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* Section des parcours de formation */
.formation-paths {
    padding: 50px 0;
    text-align: center;
}

.formation-paths h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.formation-paths h3 {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.formation-paths .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.paths {
    display: flex;
    justify-content: space-between;
    gap: 20px;  /* espace entre les éléments */
}

.path-item {
    flex: 1;  /* distribution égale de l'espace */
    min-width: 0;  /* évite le débordement */
    padding: 20px;
    text-align: center;
}

.path-item img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.path-item h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.path-item p {
    font-size: 1em;
    line-height: 1.4;
    margin-bottom: 20px;
}

.join-us-button {
    background-color: #ffcc00; /* Jaune */
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

/* Media queries pour responsivité */
@media (max-width: 768px) {
    .paths {
        flex-direction: column;
    }
    
    .path-item {
        margin-bottom: 20px;
    }
}


/* Section Informations de l'institution */
.institution-info {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.institution-info .left-column {
    width: 45%;
}

.institution-info .right-column {
    width: 45%;
}

.info-box, .qualifications-box, .fees-box, .location-box, .formations-box {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-box i, .qualifications-box i, .fees-box i, .location-box i, .formations-box i {
    color: #00bcd4;
    margin-right: 5px;
}

.info-box h3, .qualifications-box h3, .fees-box h3, .location-box h3, .formations-box h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.qualifications-box p {
    margin-left: 20px;
}

.qualifications-box p i {
    margin-right: 5px;
}

.fees-box p {
    margin-bottom: 5px;
}

.fees-box p span {
    font-weight: bold;
}

/* Carte Google Maps */
.map-container {
    overflow: hidden;
    border-radius: 5px;
}

/* Formations */
.formations-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.formations-box li {
    margin-bottom: 5px;
}

/* Media queries pour responsivité */
@media (max-width: 768px) {
    .institution-info {
        flex-direction: column;
    }

    .institution-info .left-column, .institution-info .right-column {
        width: 100%;
    }
}

/* Footer */
footer {
    background-color: #1a233a; /* Bleu très foncé */
    color: #fff;
}

/* Newsletter */
.newsletter {
    background-color: #b71c1c; /* Rouge foncé */
    padding: 30px 0;
}

.newsletter .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newsletter-content {
    display: flex;
    align-items: center;
}

.newsletter-content i {
    font-size: 2em;
    margin-right: 15px;
}

.newsletter-content h2 {
    font-size: 1.5em;
}

.newsletter-form input {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    width: 250px;
}

.newsletter-form button {
    background-color: #00bcd4; /* Bleu clair */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer Content */


/* Media queries pour responsivité */
@media (max-width: 768px) {
    .newsletter .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-content {
        margin-bottom: 20px;
    }

    .footer-content .container {
        flex-direction: column;
    }

    .footer-left, .footer-middle, .footer-right {
        width: 100%;
        margin-bottom: 30px;
        text-align: left;
    }

    .bottom-footer .container {
        flex-direction: column;
    }

    .footer-links {
        margin-top: 10px;
    }

    .footer-links a {
        margin-left: 0;
        margin-right: 15px;
    }
}

.footer-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-row {
    flex: 1;
    min-width: 250px;
}

.footer-col {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
    }
    
    .footer-row {
        width: 100%;
    }
}
/* style.css */

/* ... (previous styles) ... */

/* Ensure the main container allows content flow */
main.container {
    display: block; /* Override potential flex settings from other .container rules if needed */
    /* Keep width and margin auto settings from general .container rules */
    width: 80%;
    max-width: 1200px;
    margin: 50px auto; /* Add some top/bottom margin */
    padding: 0 15px; /* Keep padding */
}


/* Section Informations de l'institution */
.institution-info {
    display: flex;
    justify-content: space-between;
    gap: 30px; /* Add gap between columns */
    margin-top: 50px; /* Keep margin */
    flex-wrap: wrap; /* Allow wrapping just in case */
}

.institution-info .left-column {
    width: 45%;
    min-width: 280px; /* Prevent columns from becoming too narrow */
    flex-grow: 1; /* Allow columns to grow if space available */
}

.institution-info .right-column {
    width: 45%;
    min-width: 280px; /* Prevent columns from becoming too narrow */
    flex-grow: 1; /* Allow columns to grow */
}

.info-box, .qualifications-box, .fees-box, .location-box, .formations-box {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Consistent Icon styling */
.info-box i, .qualifications-box > i, .fees-box > i, .location-box > i, .formations-box > i {
    color: #00bcd4; /* Use the main icon color */
    font-size: 1.2em; /* Slightly larger icons */
    margin-right: 8px; /* Space after icon */
    width: 20px; /* Fixed width for alignment */
    text-align: center; /* Center icon within its space */
    vertical-align: middle; /* Align icon better with text */
}

.info-box h3, .qualifications-box h3, .fees-box h3, .location-box h3, .formations-box h3 {
    font-size: 1.3em; /* Adjusted font size */
    margin-bottom: 15px; /* More space below heading */
    display: inline-block; /* Allow icon to be beside */
    vertical-align: middle; /* Align heading with icon */
}


.qualifications-box p {
    margin-left: 28px; /* Indent text relative to the main icon's width+margin */
    margin-bottom: 8px;
}

.qualifications-box p i {
    color: #555; /* Different color for inner icons */
    font-size: 1em;
    margin-right: 5px;
    width: auto; /* Reset width for inner icons */
}

.fees-box p {
    margin-bottom: 8px;
    margin-left: 28px; /* Indent text */
}

.fees-box p span {
    font-weight: bold;
}

/* Carte Google Maps - Responsive */
.map-container {
    overflow: hidden;
    border-radius: 5px;
    position: relative; /* Needed for potential aspect ratio techniques, good practice */
    width: 100%;
    margin-top: 15px; /* Space above map */
}

.map-container iframe {
    display: block; /* Remove potential extra space below */
    width: 100%;   /* Make iframe fill container width */
    height: 350px;  /* Set a responsive height */
    border: 0;      /* Ensure no border */
}

/* Formations List styling */
.formations-box h4, .formations-box h5 {
    margin-top: 15px;
    margin-bottom: 10px;
    margin-left: 28px; /* Indent subheadings */
    font-size: 1.1em;
    color: #333;
}
.formations-box h5 {
    font-size: 1em;
    font-weight: bold;
    color: #555;
}

.formations-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 40px; /* Indent list items further */
}

.formations-box li {
    margin-bottom: 5px;
    font-size: 0.95em; /* Slightly smaller list item text */
    line-height: 1.4;
}

/* Media queries pour responsivité de la section main */

/* Tablet breakpoint */
@media (max-width: 768px) {
    main.container {
        width: 90%; /* Adjust container width */
    }

    .institution-info {
        flex-direction: column; /* Stack columns */
        gap: 0; /* Remove gap when stacked */
    }

    .institution-info .left-column,
    .institution-info .right-column {
        width: 100%; /* Make columns full width */
        min-width: unset; /* Remove min-width */
        margin-bottom: 30px; /* Add space between stacked columns */
    }

    .institution-info .right-column {
        margin-bottom: 0; /* No margin on the last item */
    }

    .map-container iframe {
        height: 300px; /* Adjust map height for tablets */
    }

    .info-box h3, .qualifications-box h3, .fees-box h3, .location-box h3, .formations-box h3 {
        font-size: 1.2em; /* Slightly smaller headings on tablets */
    }
}

/* Mobile breakpoint */
@media (max-width: 480px) {
    main.container {
        width: 95%; /* Adjust container width */
        padding: 0 10px; /* Reduce padding */
        margin-top: 30px; /* Reduce top margin */
    }

     .info-box, .qualifications-box, .fees-box, .location-box, .formations-box {
        padding: 15px; /* Reduce padding inside boxes */
    }

    .info-box h3, .qualifications-box h3, .fees-box h3, .location-box h3, .formations-box h3 {
        font-size: 1.1em; /* Smaller headings on mobile */
    }

    .qualifications-box p, .fees-box p, .formations-box li {
        font-size: 0.9em; /* Smaller text */
        margin-left: 10px; /* Adjust indentation */
    }
     .formations-box ul {
        margin-left: 25px; /* Adjust list indentation */
    }
     .formations-box h4, .formations-box h5 {
         margin-left: 10px; /* Adjust subheading indentation */
     }


    .map-container iframe {
        height: 250px; /* Further adjust map height for mobile */
    }
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  .whatsapp-button a {
    display: inline-block;
    padding: 0.3rem 0.3rem;
    background-color: #25D366;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
  }
  
  .whatsapp-button a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
  }


/* ... (Rest of your existing styles including footer styles) ... */
