@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(208, 206, 206, 0.2); /* léger voile sombre */
  backdrop-filter: blur(6px);      /* floute la page en arrière-plan */
  z-index: 5;                      /* en dessous du menu */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}
:root {
    --primari-color: #38a82d;
    --secondary-color: #2c51a1;
}

h1 {
    font-family: "Oswald", sans-serif;
}

.titre {
     font-size: 40px;
    color: #2c51a1;
    position: relative;
    cursor: pointer;
}

.titre:before {
       position: absolute;
        content: "";
        background-color: #2c51a1;
        height: 5px;
        width: 50%;
        top: 45px;
        left: 25%;
        border-radius: 10px;
}

.t1 {
    font-family: "Oswald", sans-serif;
}



nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #a3a9b5;
    padding: 10px 15px;
    border-radius: 80px;
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 9999;
    position: fixed;
}

nav .logo img {
    width: 100px;
}


nav .links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

nav .links li a {
    color: #4ef93f;
    font-weight: 800;
    font-size: 18px;
    position: relative;
}

nav .links li a:before {
    position: absolute;
    content: "";
    top: 25px;
    left: 10px;
    width: 0%;
    height: 3px;
    border-radius: 10px;
    background-color: #4ef93f;
    transition: width 0.3s ease-in-out;
}

nav .links li a:hover:before {
    width: 80%;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    background-image: url("../img/hero.jpg");
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    color: #fff;
}

.hero h1 {
    font-size: 50px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.hero h1 .ent{
    color: var(--primari-color);
}

.hero h1 .ent .sarl {
    color: var(--secondary-color);
    font-size: 20px;
}

.hero .btn {
    color: #fff;
    background-color: #38a82d;
    padding: 10px 15px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.hero .btn:hover {
    background-color: #135e0c;
    transform: scale(1.1);
}

.about {
    margin-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 15px;
    margin-left: 20px;
    margin-right: 20px;
    padding: 20px;
    box-shadow: 10px 15px 10px 20px rgba(0, 0, 0, 0.1);
    height: 50vh;
}

.about h1 {
    margin-left: 20px;
    font-size: 40px;
    color: #2c51a1;
    position: relative;
}

.about h1:before {
    position: absolute;
    top: 55px;
    left: 55px;
    content: "";
    background-color: #2c51a1;
    height: 5px;
    border-radius: 10px;
    width: 50%;
}

.about .container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 20px;
}


.projet {
    margin-top: 100px;
}

.projet h1 {
    font-size: 40px;
    color: #2c51a1;
    text-align: center;
    position: relative;
}

.projet h1:before {
    position: absolute;
    content: "";
    background-color: #2c51a1;
    height: 5px;
    width: 10%;
    top: 55px;
    left: 45%;
    border-radius: 10px;
}

.projet .container {
    text-align: center;
    margin-top: 30px;
}

.projet .about-cards {
    margin-top: 20px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.projet .about-cards .cards {
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 8px 10px 8px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.projet .about-cards .cards img {
    border-radius: 10px;
}

.projet .about-cards .cards .img {
    height: 200px;
}

.projet .about-cards .cards button {
    border: 1px solid #38a82d;
    border-radius: 10px;
    padding: 10px 15px;
    color: #fff;
    background-color: #38a82d;
    transition: all 0.3s ease-in-out;
    margin-top: 20px;
    width: 100%;
    cursor: pointer;
}

.projet .about-cards .cards .btn {
    margin-top: 40px;
}

.projet .about-cards .cards button a {
    color: #fff;
    margin-right: 10px;
}

.projet .about-cards .cards button:hover {
    transform: scale(1.05);
}
.partenaires {
    margin-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.partenaires h1 {
    font-size: 40px;
    color: #2c51a1;
    text-align: center;
    position: relative
}

.partenaires h1:before {
    position: absolute;
    content: "";
    background-color: #2c51a1;
    height: 5px;
    width: 50%;
    top: 55px;
    right: 25%;
    border-radius: 10px;
}

.partenaires .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
}

.partenaires .container .edis {
    width: 200px;
    margin: 10px;
}

.partenaires .container .sodi {
    margin-top: 20px;
}

.partenaires .container img {
    width: 300px;
}

footer {
    margin-top: 100px;
    background-color: #4678e3;
    display: flex;
    align-items: center;
    padding: 20px;
    flex-direction: column;
    color: #fff;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

footer .container .footer-logo {
    width: 150px;
}

footer .footer-bottom {
    margin-top: 50px;
    color: #fff;
}

footer .social {
    text-align: center;
}

footer .social .icon {
    margin-top: 20px;
}

footer .social a {
    color: #4ef93f;
    border: 1px solid #fff;
    border-radius: 50%;
    padding: 20px;
    margin-left: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block; 
}


footer .social h3 {
    color: #4ef93f;
}

footer .social a:hover {
    background-color: #fff;
    transform: translateY(-10px);
}

.vente {
    margin-top: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    cursor: pointer;
}

.vente h3 {
    font-size: 30px;
    font-family: "Oswald", sans-serif;
}

.vente .card .mez {
    height: 210px;
    border-radius: 5px;
}

.vente .card .hang {
    height: 200px;
}



.cards-indu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    padding: 25px;
}

.cards-indu .card {
    border: 1px solid #52c647;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 8px 8px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.cards-indu .card #esc {
    height: 230px;
}

.cards-indu .card #esc1 {
    height: 245px;
} 

.cards-indu .card #esc2 {
    height: 253px;
}

.cards-indu .card:hover {
    background-color: #52c647;
    color: #fff;
    transform: scale(1.05);
}

.cards-indu .card:hover .t1{
    color: #2c51a1;
}

.cards-indu .card img {
    width: 100%;
    border-radius: 5px;
}

.cards-indu .card button {
    margin-top: 10px;
    background-color: #52c647;
    border: none;
    color: black;
    border-radius: 10px;
    padding: 10px 15px;
}

.cards-indu .card button .tel {
    color: white;
    font-size: 18px;
}


.cards-indu .card:hover button {
    background-color: #2c51a1;
}

.cards-indu .card .re {
    margin-top: 10px;
}


.prime-h1 {
  text-align: center;
  position: relative;
  margin-bottom: 30px;
  color: #2c51a1;
  font-size: 40px;
}

.prime-h1::after {
  content: "";
  position:absolute;
  bottom: -10px;
  left: 50%;
  width: 80px;
  height: 5px;
  background:#2c51a1;
  transform: translateX(-50%);
  border-radius: 2px;
}

.prime {
    display: flex;
    flex-direction: row ;
    margin-top: 100px;
}

.prime-img {
    margin: 0px 30px 30px 30px;
    width:120%;
}

.prime-img img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 8px 10px 8px 10px rgba(0, 0, 0, 0.1);
}

.prime-img img:hover {
    border:#4ef93f solid;
}

.prime-p {
    line-height: 2.5;
}

main {
    line-height: 1.8;
    padding: 20px;
    margin-top: 140px;
}

main strong {
    color: #2c51a1;
}

.secoundo-h1 {
  text-align: center;
  position: relative;
  margin-bottom: 30px;
  color: #2c51a1;
  margin-top: 30px;
}

.secoundo-h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 80px;
  height: 5px;
  background:#2c51a1;
  transform: translateX(-50%);
  border-radius: 2px;
}

.secoundo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px;
}

.secoundo-img {
    display: flex;
    justify-content: end;
    width: 30%;
}

.secoundo-img img {
    width: 100%;
    border-radius: 8%;
    box-shadow: 8px 10px 8px 10px rgba(0, 0, 0, 0.1);
}

.secoundo-img img:hover {
    border:#4ef93f solid;
}

.secoundo-p p {
    line-height: 2.5;
}

.tiers-h1 {
  text-align: center;
  position: relative;
  margin-bottom: 30px;
  color: #2c51a1;
  margin-top: 30px;
}

.tiers-h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 80px;
  height: 5px;
  background:#2c51a1;
  transform: translateX(-50%);
  border-radius: 2px;
}

.tiers {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px;
}

.tiers-img {
    margin: 0 30px 0 30px;
}

.tiers-img img {
    display: flex;
    width: 100%;
    border-radius: 8%;
    box-shadow: 8px 10px 8px 10px rgba(0, 0, 0, 0.1);
}

.tiers-img img:hover {
    border:#4ef93f solid;   
}

.tiers-p p {
    line-height: 3;
}

.quatro-h2 {
  text-align: center;
  position: relative;
  margin-bottom: 30px;
  color: #2c51a1;
  margin-top: 30px;
}

.quatro-h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 80px;
  height: 5px;
  background:#2c51a1;
  transform: translateX(-50%);
  border-radius: 2px;
}
.quatro-p p{
    text-align: center;
}

.bar {
    display: none;
}

/* ====================== GENERAL ====================== */
img {
    max-width: 100%;
    height: auto;
}

/* ====================== NAVIGATION ====================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

nav .links li {
    margin: 0 15px;
}

nav .logo img {
    max-width: 150px; /* Logo réduit pour mobiles */
    height: auto;
}

/* Burger menu */
.bar {
    display: none;
    font-size: 25px;
    cursor: pointer;
    color: #2c51a1;
}

/* ====================== CARDS ====================== */
.cards-indu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card content */
.card .image img {
    width: 100%;
    height: auto;
}

/* ====================== TEXTES ====================== */
.vente h1.titre {
    font-size: 36px;
}

.vente h3 {
    font-size: 24px;
}

/* ====================== FOOTER ====================== */
.footer-logo {
    max-width: 120px;
}

/* ====================== MEDIA QUERIES ====================== */

/* Tablettes ≤ 1024px */
@media (max-width: 1024px) {
    .cards-indu {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .vente h1.titre {
        font-size: 28px;
    }

    .vente h3 {
        font-size: 20px;
    }

    nav .logo img {
        max-width: 120px;
    }

    .prime {
    display: flex;
    flex-wrap: wrap;
    }

    .secoundo-img {
    width: 100%;
    }

    .tiers {
    display: flex;
    flex-wrap: wrap;
    }

    .tiers-img {
    margin: auto;
    width:60%;
    }
}

/* Mobiles ≤ 768px */
@media (max-width: 768px) {
    .hero {
        padding: 10px;
    }

    .hero h1 {
        font-size: 25px;
    }

    .cards-indu {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 10px;
    }

    .card {
        text-align: center;
    }

    .card .content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card .content p {
        width: 100%;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .card button a {
        font-size: 14px;
        padding: 8px 12px;
    }

    .vente h1.titre {
        font-size: 24px;
    }

    .titre:before{
        top: 35px;
    }

    .vente h3 {
        font-size: 18px;
    }

    nav .links {
        flex-direction: column;
        position: absolute;
        justify-content: center;
        align-items: center;
        top: 200px;
        right: -10px;
        width: 100%;
        height: 50vh;
       background: rgba(163, 169, 181, 0.6);
        border-radius: 10px;
        padding: 15px;
        transform: translateX(100%);
        transition: all 0.3s ease-in-out;
        z-index: 10; 
         backdrop-filter: blur(8px);
    }

    nav .links.active {
        display: flex;
        transform: translateX(0%);
        right: 0;
    }

    .bar {
        display: block;
    }

    .footer-logo {
        max-width: 100px;
    }

    .projet .about-cards {
        display: flex;
        flex-wrap: wrap;
    }

    .about {
        height: 100%;
    }

    .partenaires .container img {
        width:30%;
    }

    .prime {
        display: flex;
        flex-wrap: wrap;
    }

    .secoundo {
        display: flex;
        flex-wrap: wrap;
    }

    .secoundo-img {
        width: 100%;
        margin-top: 20px;
    }

    .tiers {
        display: flex;
        flex-wrap: wrap;
    }

    .tiers-img {
        width: 100%;
        margin-top: 20px;
    }

    .card p {
        width: 150px;
    }
    .about h1 {
        font-size: 30px;
    }

    .projet h1 {
        font-size: 30px;
    }

    main .prime-h1 {
        font-size: 20px;
    }

    footer .container {
        flex-direction: column;
        padding: 20px;
    }

    footer .container .logo-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

     footer .container .logo-contact img {
        margin-bottom: 10px;
     }

    footer .container .logo-contact p {
        width: 100%;
    }
}
