body {
    background: white;
    margin: 0;
    padding: 0;
    color: #003366;
}

#bloc {
    text-align: center;
    padding: 0px 20px;
    max-width: 1200px;
    margin: auto;
}

h1 {
    font-size: 2em;
    color: #444;
    margin-bottom: 40px;
}

h2 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.ligne {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

#section1, #section2, #section3, #section4 {
    flex: 1 1 300px;
    max-width: 340px;
    min-height: 220px;
    border: 1px solid #ffecd6;
    border-radius: 12px;
    background-color: #fff5d6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#section1 h2,
#section2 h2,
#section3 h2,
#section4 h2 {
    min-height: 60px; /* Ajuste selon la taille typique de tes titres */
    margin-bottom: 20px; /* Espace fixe sous le titre */
}

#section1:hover, #section2:hover, #section3:hover, #section4:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.titre1
{
    color: #e971ab;
    font-size: 1.4em;
    font-weight: bold;
}

#create {
    margin: 60px auto;
    text-align: center;
}

#create input[type=text],
#create input[type=submit] {
    font-size: 1em;
    height: 3.2em;
    padding: 0 15px;
    border: 1px solid #ccc;
    outline: none;
}

#create input[type=text] {
    width: 320px;
    border-radius: 8px 0 0 8px;
    border-right: none;
}

#create input[type=submit] {
    background-color: #e971ab;
    color: white;
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

#create input[type=submit]:hover {
    background-color: #d25c94;
}

.faq {
    margin: 12px;
    display: inline-block;
}

.faq a {
    color: #066b91;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.faq a:hover {
    color: #044f6e;
}

a {
    color: slategrey;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#addon {
    margin-bottom: 40px;
}

#line {
    border-top: 1px dotted dimgrey;
    width: 80%;
    margin: 40px auto;
}

#plus {
    font-size: 14px;
    width: 70%;
    margin: 20px auto 50px auto;
    color: #666;
}



/* -------- Format mobile : ≤ 767px -------- */
@media screen and (max-width: 767px) {
    #bloc {
        text-align: center;
        padding: 20px 10px;
    }

    #img1, #img2 {
        width: 100%;
        max-width: 220px;
        height: auto;
        margin: 15px auto;
    }

    #img3, #img4 {
        width: 100%;
        max-width: 320px;
        height: auto;
        margin: 15px auto;
    }

    .ligne {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    #create {
        margin: 30px auto;
    }

    #create input {
        display: block;
        margin: 0 auto 15px auto;
        height: 3em;
    }

    #create input[type=text],
    #create input[type=submit] {
        width: 90%;
        border-radius: 10px;
        font-size: 1em;
    }

    #bloc_cadenas {
        font-size: 14px;
        text-align: center;
        width: 90%;
    }
}

/* -------- Petit format : 768px à 979px -------- */
@media screen and (min-width: 768px) and (max-width: 979px) {
    h1 {
        font-size: 1.2em;
    }

    h2 {
        font-size: 1.1em;
    }

    #img1, #img2 {
        width: 180px;
        height: auto;
    }

    #img3, #img4 {
        width: 260px;
        height: auto;
    }

    #section1, #section2, #section3, #section4 {
        width: 90%;
        margin: 10px auto;
    }
}

/* -------- Moyen format : 980px à 1199px -------- */
@media screen and (min-width: 980px) and (max-width: 1199px) {
    h1 {
        font-size: 1.4em;
    }

    h2 {
        font-size: 1.2em;
    }

    #img1, #img2 {
        width: 220px;
        height: auto;
    }

    #img3, #img4 {
        width: 320px;
        height: auto;
    }

    #section1, #section2, #section3, #section4 {
        width: 320px;
    }
}

/* -------- Grand écran : ≥ 1600px -------- */
@media screen and (min-width: 1600px) {
    #img1, #img2 {
        width: 300px;
        margin: 30px auto 50px auto;
    }

    #img3, #img4 {
        width: 440px;
        margin: 30px auto 50px auto;
    }

    #section1, #section2, #section3, #section4 {
        width: 360px;
    }

    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.6em;
    }
}

