* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #c8c8c8;
    color: #333;
    line-height: 1.6;
}


/* =========================
   EN-TÊTE
   ========================= */

header {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #111;
    line-height: 0;
    overflow: hidden;
}

header a {
    display: block;
    line-height: 0;
}

header img {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}


/* =========================
   MENU
   ========================= */

.jpweb-menu {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 15px;
    background: #222;
}

.jpweb-menu a {
    display: inline-block;
    padding: 8px 16px;
    color: #fff;
    background: transparent;
    text-decoration: none;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 15px;
    line-height: 1.3;
    transition: background-color 0.2s, border-color 0.2s;
}

.jpweb-menu a:hover,
.jpweb-menu a:focus {
    background: #444;
    border-color: #777;
    text-decoration: none;
}


/* =========================
   CONTENU PRINCIPAL
   ========================= */

main {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 35px auto 10px;
    padding: 30px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

main h1 {
    margin: 0 0 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e5e5;
    font-size: 32px;
    line-height: 1.2;
}

.contenu-public {
    margin: 0;
    font-size: 16px;
}

.contenu-public p {
    margin: 0 0 18px;
}

.contenu-public p:last-child {
    margin-bottom: 0;
}

.contenu-public h2,
.contenu-public h3,
.contenu-public h4 {
    margin-top: 25px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.contenu-public ul,
.contenu-public ol {
    margin-top: 10px;
    margin-bottom: 18px;
}

.contenu-public a {
    color: #333;
    text-decoration: underline;
}

.contenu-public a:hover {
    opacity: 0.75;
}


/* =========================
   BOUTON MODIFIER
   ========================= */

.edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    margin-left: 8px;
    background: transparent;
    color: #666;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.edit-button:hover {
    opacity: 1;
    transform: scale(1.1);
}


/* =========================
   ACCUEIL JPWEB
   ========================= */

.jpweb-accueil {
    width: 100%;
}


/* =========================
   BLOC PRINCIPAL
   ========================= */

.jpweb-hero {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-bottom: 35px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f9ff, #ffffff);
    border: 1px solid #dce7f5;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 70, 140, 0.08);
}

.jpweb-hero-text {
    flex: 1 1 52%;
    min-width: 0;
}

.jpweb-hero-text h2 {
    margin: 0 0 20px;
    font-size: 40px;
    line-height: 1.15;
    color: #111;
}

.jpweb-hero-text h2 span {
    color: #1769c2;
}

.jpweb-hero-text p {
    margin: 0 0 18px;
    font-size: 17px;
}

.jpweb-intro {
    font-size: 21px !important;
    line-height: 1.45;
}

.jpweb-message {
    margin: 22px 0;
    padding: 18px 22px;
    background: #e6f3ff;
    border-left: 5px solid #1976d2;
    border-radius: 8px;
    font-size: 18px;
}

.jpweb-message strong {
    display: inline-block;
    margin-top: 4px;
    color: #125da8;
    font-size: 21px;
}

.jpweb-main-button {
    display: inline-block;
    margin: 8px 0 12px;
    padding: 14px 28px;
    background: #18a83b;
    color: #fff !important;
    border: 2px solid #148b31;
    border-radius: 30px;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.jpweb-main-button:hover {
    background: #148b31;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.jpweb-avis {
    font-size: 14px !important;
    margin-top: 4px !important;
}

.jpweb-avis a {
    color: #1769c2;
    font-weight: bold;
}


/* =========================
   VISUEL PC / TABLETTE / SMARTPHONE
   ========================= */

.jpweb-hero-visual {
    position: relative;
    flex: 1 1 48%;
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jpweb-screen {
    position: absolute;
    background: #fff;
    border: 5px solid #222;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.jpweb-screen.pc {
    width: 280px;
    height: 190px;
    top: 25px;
    left: 50%;
    transform: translateX(-42%);
    border-radius: 9px;
}

.jpweb-screen.tablette {
    width: 135px;
    height: 190px;
    left: 15%;
    bottom: 38px;
    border-radius: 10px;
    z-index: 2;
}

.jpweb-screen.smartphone {
    width: 75px;
    height: 145px;
    right: 7%;
    bottom: 42px;
    border-radius: 12px;
    z-index: 3;
}

.screen-bar {
    height: 16px;
    background: #1769c2;
}

.screen-title {
    padding: 10px 12px 5px;
    color: #1769c2;
    font-weight: bold;
    font-size: 15px;
}

.screen-line {
    height: 7px;
    margin: 0 12px 10px;
    background: #ddd;
    border-radius: 4px;
}

.screen-box {
    height: 55px;
    margin: 8px 12px;
    background: linear-gradient(135deg, #d8ecff, #8fc5f5);
    border-radius: 5px;
}

.screen-box.small {
    width: 55%;
    height: 25px;
    background: #e7e7e7;
}

.jpweb-visual-text {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    color: #1769c2;
    font-size: 17px;
    font-weight: bold;
}


/* =========================
   TYPES DE SITES
   ========================= */

.jpweb-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.jpweb-type {
    padding: 10px 18px;
    min-height: 120px;
    border-radius: 12px;
    border: 1px solid #ddd;
    transition: transform 0.2s, box-shadow 0.2s;
}

.jpweb-type:hover {
    transform: translateY(-4px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12);
}

.jpweb-type h3 {
    margin: 8px 0 10px;
    font-size: 20px;
}

.jpweb-type p {
    margin: 0;
    font-size: 15px;
}

.type-icon {
    font-size: 30px;
    line-height: 1;
}

.jpweb-type.personnel {
    background: #eef7ff;
    border-color: #cfe7ff;
}

.jpweb-type.personnel h3 {
    color: #1769c2;
}

.jpweb-type.association {
    background: #effbef;
    border-color: #d2efd2;
}

.jpweb-type.association h3 {
    color: #25852d;
}

.jpweb-type.entreprise {
    background: #fff5e9;
    border-color: #f3dfc5;
}

.jpweb-type.entreprise h3 {
    color: #d56b00;
}

.jpweb-type.passion {
    background: #f5f0ff;
    border-color: #e2d7fa;
}

.jpweb-type.passion h3 {
    color: #5830a6;
}


/* =========================
   OFFRE
   ========================= */

.jpweb-offre {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 10px;
    padding: 22px;
    background: #edf7ff;
    border: 1px solid #d4e9f8;
    border-radius: 12px;
}

.jpweb-offre > div {
    padding: 5px 22px;
    text-align: center;
    border-right: 1px solid #cbddea;
}

.jpweb-offre > div:last-child {
    border-right: none;
}

.jpweb-offre strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.jpweb-offre span {
    display: block;
    color: #1769c2;
    font-size: 18px;
    font-weight: bold;
}

.jpweb-signature {
    margin-top: 25px !important;
    text-align: center;
    color: #1769c2;
    font-size: 17px;
}


/* =========================
   ÉDITEUR
   ========================= */

.edit-panel {
    display: none;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.edit-panel h2 {
    margin-top: 0;
}

.edit-panel label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: bold;
}

.edit-panel input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

.image-field {
    margin-top: 10px;
    padding: 15px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.image-preview {
    display: block;
    max-width: 250px;
    max-height: 100px;
    margin-bottom: 12px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px;
}

.favicon-preview {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #ddd;
    padding: 5px;
    margin-bottom: 12px;
}

.edit-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.edit-actions button,
.edit-actions a {
    min-width: 110px;
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
}

.save-button {
    background: #333;
    color: #fff;
}

.save-button:hover {
    background: #555;
}

.cancel-button {
    background: #ddd;
    color: #333;
}

.cancel-button:hover {
    background: #ccc;
}


/* =========================
   PIED DE PAGE
   ========================= */

footer {
    width: 100%;
    margin-top: 50px;
    padding: 20px;
    background: #222;
    color: #fff;
    text-align: center;
    font-size: 14px;
}


/* =========================
   BOUTONS QUESTIONNAIRES
   ========================= */

.questionnaire-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px 0 15px 0;
    background: #333;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s ease;
}

.questionnaire-btn:hover {
    background: #555;
    color: #fff !important;
}


/* ==============================
   RESPONSIVE TABLETTE
   ============================== */

@media (max-width: 900px) {

    .jpweb-hero {
        flex-direction: column;
    }

    .jpweb-hero-text {
        width: 100%;
    }

    .jpweb-hero-visual {
        width: 100%;
        max-width: 600px;
    }

    .jpweb-types {
        grid-template-columns: repeat(2, 1fr);
    }

    .jpweb-offre {
        grid-template-columns: 1fr;
    }

    .jpweb-offre > div {
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid #cbddea;
    }

    .jpweb-offre > div:last-child {
        border-bottom: none;
    }
}


/* ==============================
   RESPONSIVE MOBILE
   ============================== */

@media (max-width: 700px) {

    .jpweb-menu {
        padding: 10px;
        gap: 6px;
    }

    .jpweb-menu a {
        padding: 7px 11px;
        font-size: 14px;
    }

    main {
        width: calc(100% - 20px);
        margin: 20px auto;
        padding: 20px;
        border-radius: 6px;
    }

    main h1 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .contenu-public {
        font-size: 15px;
    }

    .edit-panel {
        padding: 18px;
    }

    .jpweb-hero {
        padding: 20px;
        gap: 20px;
    }

    .jpweb-hero-text h2 {
        font-size: 31px;
    }

    .jpweb-intro {
        font-size: 18px !important;
    }

    .jpweb-message {
        font-size: 16px;
    }

    .jpweb-message strong {
        font-size: 18px;
    }

    .jpweb-main-button {
        display: block;
        text-align: center;
        font-size: 17px;
        padding: 13px 18px;
    }

    .jpweb-hero-visual {
        min-height: 280px;
        transform: scale(0.9);
    }

    .jpweb-types {
        grid-template-columns: 1fr;
    }

    .jpweb-type {
        min-height: auto;
    }
}


@media (max-width: 450px) {

    .jpweb-menu {
        justify-content: stretch;
    }

    .jpweb-menu a {
        flex: 1 1 calc(50% - 6px);
        text-align: center;
    }

    main {
        width: calc(100% - 12px);
        margin: 12px auto;
        padding: 15px;
    }

    main h1 {
        font-size: 23px;
    }

    .edit-actions {
        flex-direction: column;
    }

    .edit-actions button,
    .edit-actions a {
        width: 100%;
    }

    .jpweb-hero {
        padding: 15px;
    }

    .jpweb-hero-text h2 {
        font-size: 27px;
    }

    .jpweb-hero-visual {
        min-height: 245px;
        transform: scale(0.75);
        transform-origin: top center;
        margin-bottom: -55px;
    }

    .jpweb-offre {
        padding: 12px;
    }

    .jpweb-offre span {
        font-size: 16px;
    }
}


/* ==============================
   ANIMATION DES BLOCS JPWEB
   ============================== */

.jpweb-type {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jpweb-type:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}


/* ==============================
   BLOC OFFRE JPWEB
   ============================== */

.jpweb-offre {
    margin-top: 20px;
    padding: 20px;
    background: #eef7ff;
    border: 1px solid #cfe6f8;
    border-radius: 8px;
}

.jpweb-offre p {
    margin: 0;
}

.jpweb-offre strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.jpweb-offre p + p {
    margin-top: 0px;
}


/* ==============================
   BOUTON DEMARRER MON PROJET
   ============================== */

.jpweb-accueil a[href="/questionnaires/"] {
    display: inline-block;
    padding: 11px 22px;
    background: #333;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.jpweb-accueil a[href="/questionnaires/"]:hover {
    background: #555;
    color: #fff !important;
    transform: translateY(-2px);
}


/* ==============================
   TITRE PRINCIPAL JPWEB
   ============================== */

main h1 {
    font-size: 34px;
    letter-spacing: 0.2px;
}


/* =========================================
   PAGE SERVICES JPWEB
   ========================================= */

/* =========================================
   PAGE SERVICES JPWEB
   STYLE "C'EST DU BELGE"
   ========================================= */

.jpweb-services {
    width: 100%;
}


/* INTRODUCTION */

.jpweb-services > p:first-child {
    margin-top: 0;
}

.jpweb-services > p:nth-child(2),
.jpweb-services > p:nth-child(3) {
    line-height: 1.6;
}


/* =========================================
   LES 4 SERVICES
   ========================================= */

.jpweb-services > h3:nth-of-type(-n+4) {
    position: relative;
    margin-top: 18px;
    margin-bottom: 0;
    padding: 18px 18px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    font-size: 21px;
}


/* Petite touche belge */

.jpweb-services > h3:nth-of-type(-n+4)::before {
    content: "";
    display: block;
    width: 65px;
    height: 5px;
    margin-bottom: 12px;
    background: linear-gradient(
        to right,
        #111 0%,
        #111 33%,
        #f4c400 33%,
        #f4c400 66%,
        #e30613 66%,
        #e30613 100%
    );
    border-radius: 3px;
}


/* DESCRIPTION */

.jpweb-services > h3:nth-of-type(-n+4) + p {
    margin: 0;
    padding: 5px 18px 12px;
    background: #fff;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    line-height: 1.6;
}


/* BOUTON QUESTIONNAIRE */

.jpweb-services > h3:nth-of-type(-n+4) + p + p {
    margin: 0;
    padding: 0 18px 18px;
    background: #fff;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
}

.jpweb-services > h3:nth-of-type(-n+4) + p + p a {
    display: inline-block;
    padding: 9px 16px;
    background: #222;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: transform .2s ease, background-color .2s ease;
}

.jpweb-services > h3:nth-of-type(-n+4) + p + p a:hover {
    background: #e30613;
    transform: translateY(-2px);
}


/* =========================================
   COMMENT ÇA FONCTIONNE
   ========================================= */

.jpweb-services > h3:nth-of-type(5) {
    margin-top: 35px;
    padding-bottom: 9px;
    border-bottom: 3px solid #f4c400;
}


/* =========================================
   HÉBERGEMENT ET DOMAINE
   ========================================= */

.jpweb-services > h3:nth-of-type(6) {
    margin-top: 35px;
    padding-bottom: 9px;
    border-bottom: 3px solid #e30613;
}


/* =========================================
   SIGNATURE
   ========================================= */

.jpweb-services > p:last-child {
    margin-top: 30px;
    text-align: center;
    font-size: 17px;
    color: #222;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .jpweb-services > h3:nth-of-type(-n+4) {
        font-size: 19px;
        padding: 15px 15px 10px;
    }

    .jpweb-services > h3:nth-of-type(-n+4) + p {
        padding: 5px 15px 12px;
    }

    .jpweb-services > h3:nth-of-type(-n+4) + p + p {
        padding: 0 15px 15px;
    }

}


/* BLOCS COMMENT ÇA FONCTIONNE */

.jpweb-services > h3:nth-of-type(5) {
    margin-top: 35px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ddd;
}


/* HÉBERGEMENT */

.jpweb-services > h3:nth-of-type(6) {
    margin-top: 35px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ddd;
}


/* SIGNATURE */

.jpweb-services > p:last-child {
    margin-top: 30px;
    text-align: center;
    color: #1769c2;
    font-size: 17px;
}


/* MOBILE */

@media (max-width: 700px) {

    .jpweb-services > h3:nth-of-type(-n+4) {
        font-size: 19px;
        padding: 15px;
    }

    .jpweb-services > h3:nth-of-type(-n+4) + p {
        padding: 14px 15px;
    }

    .jpweb-services > h3:nth-of-type(-n+4) + p + p {
        padding: 0 15px 15px;
    }

}


/* =========================================
   FOOTER JPWEB
   ========================================= */

.jpweb-footer {
    width: 100%;
    margin-top: 20px;
    padding: 1px 0;
    text-align: center;
    background: #222;
    border-radius: 8px;
    
}

.jpweb-footer img {
    display: block;
    width: 150px;
    max-width: 50%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}


/* =========================================
   SUPPRESSION DU FOND BLEU - OFFRE JPWEB
   ========================================= */

.jpweb-offre {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}


/* Bandeau belge */

.jpweb-offre::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    margin: 0;
    background: linear-gradient(
        to right,
        #111 0%,
        #111 33%,
        #f4c400 33%,
        #f4c400 66%,
        #e30613 66%,
        #e30613 100%
    );
}


/* JPWEB - OFFRE : 3 COLONNES */

.jpweb-offre {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0 !important;
    position: relative;
}

.jpweb-offre > p {
    margin: 0 !important;
    padding: 0 20px !important;
}


/* ==================================================
   JPWEB - OFFRE : AJUSTEMENT VISUEL
   ================================================== */

/* ==================================================
   JPWEB - OFFRE : CORRECTION
   ================================================== */

.jpweb-offre {
    padding: 28px 20px !important;
    min-height: 155px;
}

.jpweb-offre-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 25px !important;
    text-align: left !important;
}

.jpweb-offre-icon {
    flex: 0 0 58px !important;
    width: 58px !important;
    height: 58px !important;
    margin: 0 18px 0 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    border-radius: 50% !important;
    background: #222 !important;
    font-size: 28px !important;
    box-shadow:
        0 0 0 4px #f4c400,
        0 0 0 6px #e30613 !important;
}

.jpweb-offre-texte {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    text-align: left !important;
}

.jpweb-offre-texte strong {
    color: #111 !important;
    font-size: 19px !important;
    line-height: 1.2 !important;
}

.jpweb-offre-texte span {
    color: #222 !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
}


/* ==================================================
   JPWEB - MENU PRINCIPAL
   ================================================== */

.jpweb-menu {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.jpweb-menu .menu-page-item {
    display: block;
    margin: 0;
}

.jpweb-menu .menu-page-item a {
    display: block;
    padding: 14px 25px 17px;
    color: #fff !important;
    background: #222;
    text-decoration: none;
    border: none;
    border-right: 1px solid #444;
    border-radius: 0;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.3;
    transition: background-color .2s ease, color .2s ease;
}

.jpweb-menu .menu-page-item:last-child a {
    border-right: none;
}

.jpweb-menu .menu-page-item a:hover,
.jpweb-menu .menu-page-item a:focus {
    background: #333;
    color: #f4c400 !important;
    text-decoration: none;
}


/* Petite touche belge */

.jpweb-menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(
        to right,
        #111 0%,
        #111 33.33%,
        #f4c400 33.33%,
        #f4c400 66.66%,
        #e30613 66.66%,
        #e30613 100%
    );
}


/* ==================================================
   MENU MOBILE
   ================================================== */

@media (max-width: 700px) {

    .jpweb-menu {
        flex-wrap: wrap;
    }

    .jpweb-menu .menu-page-item {
        flex: 1 1 auto;
    }

    .jpweb-menu .menu-page-item a {
        padding: 12px 15px 14px;
        font-size: 16px;
        text-align: center;
    }
}

/* ==================================================
   JPWEB 1.6 — ACCUEIL EN DEUX COLONNES
   Ajouts visuels uniquement : le CSS 1.5 est conservé.
   ================================================== */

.jpweb-accueil-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 24px;
    align-items: start;
}

.jpweb-accueil-principal,
.jpweb-accueil-widgets {
    min-width: 0;
}

.jpweb-accueil-principal {
    padding: 22px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 10px;
}

.jpweb-accueil-widgets {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.jpweb-widget {
    padding: 20px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 10px;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.05);
}

.jpweb-widget::before {
    content: "";
    display: block;
    width: 54px;
    height: 4px;
    margin: -20px 0 16px;
    background: linear-gradient(to right, #111 0 33.33%, #f4c400 33.33% 66.66%, #e30613 66.66% 100%);
    border-radius: 0 0 3px 3px;
}

.jpweb-widget h2 {
    margin: 0 0 12px;
    color: #222;
    font-size: 21px;
    line-height: 1.25;
}

.jpweb-widget p {
    margin: 0 0 12px;
    font-size: 15px;
}

.jpweb-widget p:last-child {
    margin-bottom: 0;
}

.jpweb-widget-demo {
    border-color: #e2c94f;
    background: #fffdf3;
}

.jpweb-widget-demo strong {
    color: #9a7600;
}

.jpweb-widget-formules ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.jpweb-widget-formules li {
    margin: 7px 0;
}

.jpweb-widget-formules .jpweb-formule-vedette {
    font-weight: bold;
    color: #b00018;
}

.jpweb-widget-button {
    display: block;
    margin-top: 14px;
    padding: 11px 14px;
    background: #222;
    color: #fff !important;
    border: 1px solid #222;
    border-radius: 6px;
    text-align: center;
    text-decoration: none !important;
    font-weight: bold;
    transition: background-color .2s ease, transform .2s ease;
}

.jpweb-widget-button:hover,
.jpweb-widget-button:focus {
    background: #e30613;
    border-color: #e30613;
    color: #fff !important;
    transform: translateY(-2px);
}

.jpweb-widget-note {
    color: #666;
    font-size: 13px !important;
}

@media (max-width: 850px) {
    .jpweb-accueil-layout {
        grid-template-columns: 1fr;
    }

    .jpweb-accueil-widgets {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
}

@media (max-width: 600px) {
    .jpweb-accueil-layout {
        gap: 16px;
    }

    .jpweb-accueil-principal {
        padding: 16px;
    }

    .jpweb-accueil-widgets {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .jpweb-widget {
        padding: 18px;
    }

    .jpweb-widget::before {
        margin-top: -18px;
    }
}


/* ==================================================
   JPWEB 1.6 — CORRECTION DU BLOC OFFRE
   Conserve la mise en page 2/3 + 1/3 et ses widgets.
   ================================================== */

.jpweb-offre {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100%;
    min-width: 0;
}

.jpweb-offre > p,
.jpweb-offre > div {
    min-width: 0;
    max-width: 100%;
}

.jpweb-offre-item {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 8px 10px !important;
    text-align: center !important;
    min-width: 0;
}

.jpweb-offre-icon {
    flex: 0 0 58px !important;
    margin: 0 0 12px 0 !important;
}

.jpweb-offre-texte {
    align-items: center !important;
    width: 100%;
    min-width: 0;
    text-align: center !important;
    overflow-wrap: anywhere;
}

.jpweb-offre-texte strong,
.jpweb-offre-texte span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.jpweb-offre > p:not(.jpweb-offre-item) {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .jpweb-offre {
        grid-template-columns: 1fr !important;
        padding: 18px 12px !important;
    }

    .jpweb-offre-item {
        flex-direction: row !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 12px 8px !important;
        border-bottom: 1px solid #e5e5e5;
    }

    .jpweb-offre-item:last-child {
        border-bottom: none;
    }

    .jpweb-offre-icon {
        margin: 0 14px 0 0 !important;
    }

    .jpweb-offre-texte {
        align-items: flex-start !important;
        text-align: left !important;
    }
}
