/* ========================================
   JPWEB — PAGES DE DÉMONSTRATION
   ======================================== */


/* ========================================
   FONDS PERSONNALISÉS DES 4 DÉMONSTRATIONS
   ======================================== */

/* Coiffeur / Coiffeuse */
body:has(.demo-header-image[src*="coiffeur.png"]) {
    background: #f5eee8;
}

/* Boucherie / Boulangerie */
body:has(.demo-header-image[src*="boucherie-boulangerie.png"]) {
    background: #f7f1e4;
}

/* Garage automobile */
body:has(.demo-header-image[src*="Garage.png"]) {
    background: #eef1f4;
}

/* Infirmier / Infirmière */
body:has(.demo-header-image[src*="infirmier.png"]) {
    background: #edf5f7;
}


/* ========================================
   VIGNETTES DE LA PAGE DÉMO
   ======================================== */

.demo-vignettes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 35px 0;
}

.demo-vignette {
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.demo-vignette-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    margin-bottom: 18px;
}

.demo-vignette h2 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #333333;
}

.demo-vignette p {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: #555555;
}

.demo-bouton {
    display: inline-block;
    padding: 10px 22px;
    background: #ff0000;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
}

.demo-bouton:hover {
    background: #cc0000;
}


/* ========================================
   PAGES HTML DE DÉMONSTRATION
   ======================================== */

.demo-header {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.demo-header-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.demo-header-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 25px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
}

.demo-header-content h1 {
    margin: 0 0 8px 0;
    font-size: 34px;
}

.demo-header-content p {
    margin: 0;
    font-size: 19px;
}


/* ========================================
   MENU DE LA DÉMONSTRATION
   ======================================== */

.demo-navigation {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.demo-navigation a {
    display: inline-block;
    padding: 10px 18px;
    background: #333333;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.demo-navigation a:hover {
    background: #ff0000;
}


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

.demo-contenu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 40px 20px;
}

.demo-contenu section {
    margin: 0 0 45px 0;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.demo-contenu h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    color: #333333;
    border-bottom: 2px solid #ff0000;
    padding-bottom: 10px;
}

.demo-contenu p {
    line-height: 1.7;
    color: #555555;
}


/* ========================================
   BLOCS PRESTATIONS
   ======================================== */

.demo-blocs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.demo-bloc {
    padding: 20px;
    background: #f7f7f7;
    border: 1px solid #dddddd;
    border-radius: 6px;
}

/* Images des blocs produits */
.demo-bloc img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    margin-bottom: 15px;
}

.demo-bloc h3 {
    margin: 0 0 10px 0;
    color: #333333;
    font-size: 21px;
}

.demo-bloc p {
    margin: 0;
}


/* ========================================
   TARIFS
   ======================================== */

.demo-tarifs {
    max-width: 650px;
    margin: 0 auto;
}

.demo-tarifs p {
    margin: 0;
    padding: 12px 15px;
    border-bottom: 1px solid #dddddd;
}

.demo-tarifs p:last-child {
    border-bottom: none;
}


/* ========================================
   HORAIRES
   ======================================== */

.demo-horaires {
    max-width: 500px;
    margin: 0 auto;
}

.demo-horaires p {
    margin: 0;
    padding: 10px 15px;
    border-bottom: 1px solid #dddddd;
}

.demo-horaires p:last-child {
    border-bottom: none;
}


/* ========================================
   LIENS
   ======================================== */

.demo-contenu a {
    color: #cc0000;
    overflow-wrap: anywhere;
}

.demo-contenu a:hover {
    color: #ff0000;
}

.demo-contenu .demo-bouton {
    color: #ffffff;
}

.demo-contenu .demo-bouton:hover {
    color: #ffffff;
}


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

.demo-footer {
    max-width: 1200px;
    margin: 0 auto 30px auto;
    padding: 25px;
    text-align: center;
    background: #333333;
    color: #ffffff;
    border-radius: 8px;
}

.demo-footer p {
    margin: 8px 0;
}

.demo-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.demo-footer a:hover {
    color: #ff0000;
}


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

@media (max-width: 700px) {

    .demo-vignettes {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .demo-vignette-image {
        height: 200px;
    }

    .demo-header-image {
        height: 240px;
    }

    .demo-header-content {
        padding: 18px;
    }

    .demo-header-content h1 {
        font-size: 27px;
    }

    .demo-header-content p {
        font-size: 16px;
    }

    .demo-navigation {
        padding: 0 10px;
    }

    .demo-navigation a {
        padding: 9px 13px;
        font-size: 14px;
    }

    .demo-blocs {
        grid-template-columns: 1fr;
        gap: 15px;
    }

}
