* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero__img {
    position: absolute;
    inset: 0;                   /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100%;
    object-fit: cover;          /* couvre le conteneur sans déformer */
    object-position: center;
    z-index: 0;
    pointer-events: none;       /* laisse le clic sur le contenu si besoin */
}

/* overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 1rem;
}

/* responsive adjustments */
@media (max-width: 768px) {
    .hero { min-height: 40vh; }
    .hero__content { padding: 0.8rem; }
}



.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* TABLETTE */
@media (max-width: 1024px) {
    .hero {
        min-height: 50vh;
        background-attachment: scroll; /* évite les bugs sur iOS */
    }
    .overlay h1 {
        font-size: 2rem;
    }
    .overlay p {
        font-size: 1rem;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .hero {
        min-height: 40vh;
        background-position: center top;
    }

    .overlay {
        padding: 15px;
    }

    .overlay h1 {
        font-size: 1.6rem;
    }

    .overlay p {
        font-size: 0.95rem;
    }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    position: absolute;
    top: 80%; /* descend le texte */
    left: 20%;
    transform: translate(-40%, -40%);
}
.hero-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    position: absolute;
    top: 90%; /* descend le texte */
    left: 17%;
    transform: translate(-40%, -40%);
}
.btn-primary {
    background: #8fed8f;
    color: white;

    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-primary:hover {
    background:#8fed8f;
}

/* INTRO */
.intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 10%;
    gap: 45px;
}
.intro-text h2 {
    color: #0073e6;
    margin-bottom: 20px;
}
.intro-text p {
    color: #333;
    line-height: 1.7;
    margin-bottom: 15px;
}
.intro-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* MISSION */
.mission {
    background: #f8f9fb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 10%;
    gap: 50px;
}
.mission-content h2 {
    color: #0073e6;
    margin-bottom: 15px;
}
.mission-content ul {
    margin-top: 15px;
    list-style: none;
}
.mission-content li {
    margin: 8px 0;
    color: #444;
}
.mission-content i {
    color: #8fed8f;
    margin-right: 10px;
}

/* TYPES */
.types {
    text-align: center;
    padding: 80px 10%;
    background: white;
}
.types h2 {
    color: #0073e6;
    margin-bottom: 40px;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.card {
    background: #f8f9fb;
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-10px);
}
.card i {
    font-size: 2rem;
    color: #8fed8f;
    margin-bottom: 10px;
}

/* SECTION AVANTAGES */
.avantages {
    background: linear-gradient(120deg, rgba(20, 67, 251, 0.89), #080625);
    color: white;
    padding: 80px 10%;
}

.avantages-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

/* COLONNE GAUCHE */
.avantages-gauche {
    flex: 1;
    min-width: 300px;
}

.avantages-gauche h2 {
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 700;
}

.avantage {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.avantage i {
    font-size: 2rem;
    color: #8fed8f;
    margin-top: 5px;
}

.card h3 {
    font-size: 1rem;
    color: #0073e6;
    margin-top: 2px;
}

.avantage h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: #ffffff;
}

.avantage p {
    font-size: 1rem;
    opacity: 0.9;
}

/* COLONNE DROITE : FORMULAIRE */
.formulaire-avantage {
    flex: 1;
    min-width: 350px;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.formulaire-avantage h3 {
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.formulaire-avantage p {
    margin-bottom: 20px;
    font-size: 1rem;
    opacity: 0.9;
}

.formulaire-avantage form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formulaire-avantage input,
.formulaire-avantage select,
.formulaire-avantage textarea {
    padding: 12px;
    border: none;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
}

.formulaire-avantage textarea {
    resize: none;
}

.btn-form {
    background: #8fed8f;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-form:hover {
    background: #8fed8f;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .avantages-container {
        flex-direction: column;
        gap: 40px;
    }

    .formulaire-avantage {
        width: 100%;
    }
}
