/* =============================
   Page Pourquoi Consulter
============================= */

.page-pourquoi-consulter {
    max-width: 1381px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    color: #40745B;
    margin-bottom: 150px;
    width: 100%;
    box-sizing: border-box;
}

/* -----------------------------
   Titres principaux
----------------------------- */
.page-pourquoi-consulter h1 {
    font-size: 70px;
    font-weight: bold;
    color: #40745B;
    margin-bottom: 40px;
    text-align: center;
}

.page-pourquoi-consulter h2,
.page-pourquoi-consulter h3 {
    font-size: 70px;
    font-weight: bold;
    color: #40745B;
    margin-bottom: 30px;
    text-align: center;
}

/* -----------------------------
   Section 1
----------------------------- */
.rectangle.section-1 {
    background-color: #40745B;
    padding: 30px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    width: 100%;
    box-sizing: border-box;
}

.rectangle.section-1 .rectangle-text {
    max-width: 900px;
    font-size: 18px;
    color: #fff;
    line-height: 1.6;
    text-align: center;
}

.rectangle.section-1 .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;          
    background-color: #fff;
    color: #40745B;
    font-weight: bold;
    font-size: 15px;             
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.rectangle.section-1 .btn:hover {
    background-color: #40745B;
    color: #fff;
}

/* -----------------------------
   Trait de séparation
----------------------------- */
.trait {
    width: 100%;
    height: 8px;
    background-color: #40745B;
    margin: 50px auto;
    border-radius: 4px;
}

/* -----------------------------
   Section 2 et 3
----------------------------- */
.section-2,
.section-3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 30px 20px;
    border-radius: 12px;
    background-color: #40745B;
    margin-bottom: 50px;
    width: 100%;
    box-sizing: border-box;
}

.section-2-text,
.section-3-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
}

.section-2-image img,
.section-3-image img {
    width: 100%;
    max-width: 528px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* =============================
   Responsive amélioré
============================= */

/* Tablettes ≤ 1024px */
@media (max-width: 1024px) {
    .section-2,
    .section-3 {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
        gap: 20px;
    }

    .page-pourquoi-consulter h1 {
        font-size: 55px;
    }

    .page-pourquoi-consulter h2,
    .page-pourquoi-consulter h3 {
        font-size: 50px;
    }

    .trait {
        height: 6px;
    }
}

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

    .page-pourquoi-consulter h1 {
        font-size: 40px;
    }

    .page-pourquoi-consulter h2,
    .page-pourquoi-consulter h3 {
        font-size: 36px;
    }

    .rectangle.section-1,
    .section-2,
    .section-3 {
        padding: 20px 15px;
    }

    .rectangle.section-1 .rectangle-text,
    .section-2-text,
    .section-3-text {
        font-size: 16px;
    }

    /* Bouton mobile */
    .rectangle.section-1 .btn {
        width: 100%;
        max-width: 260px;    
        padding: 10px 18px;  
        font-size: 15px;
        border-radius: 8px;
    }
}

/* Petits écrans ≤ 480px */
@media (max-width: 480px) {

    .page-pourquoi-consulter h1 {
        font-size: 32px;
    }

    .page-pourquoi-consulter h2,
    .page-pourquoi-consulter h3 {
        font-size: 28px;
    }

    .rectangle.section-1 {
        padding: 20px 15px;
    }

    .rectangle.section-1 .btn {
        width: 100%;
        max-width: 240px;   
        padding: 10px 16px;   
        font-size: 15px;
        min-height: 42px;
    }

    .rectangle.section-1 .btn:active {
        transform: scale(0.97);
    }

    .trait {
        height: 5px;
    }

    .section-2,
    .section-3 {
        padding: 15px 10px;
    }
}
/* -----------------------------
   Listes à puces dans les textes
----------------------------- */
.rectangle-text ul,
.section-2-text ul,
.section-3-text ul {
    list-style-type: disc !important;
    padding-left: 20px !important;
    margin: 10px 0 !important;
    text-align: left !important;
}

.rectangle-text ul li,
.section-2-text ul li,
.section-3-text ul li {
    display: list-item !important;
    list-style-type: disc !important;
    margin-bottom: 8px !important;
}