:root {
    --levrard-red: #E73331;
    --levrard-dark-red: #E73331;
    --levrard-white: #ffffff;
    --levrard-gray: #f5f5f5;
    --levrard-light-gray: #f8f8f8;
    --levrard-dark-gray: #333333;
    --levrard-text: #363636;
    --levrard-border: #e0e0e0;
}
.levrard-prestations-section {
    padding: 100px 0;
    background-color: var(--levrard-white);
    z-index: 1;
    position: relative;
    border-radius: 50px;
}
.levrard-prestations-container {
    max-width: 1600px;
    margin: 0 auto;
}
/* ---------------------------- */
@media (max-width:100em){
    .levrard-prestations-section {padding:80px 40px}
}
/* ---------------------------- */

/**
 * Partie haute
 */
.levrard-prestations-top{margin-bottom:60px;}
/* ---------------------------- */
@media (max-width:105em){ .levrard-prestations-top {margin-bottom:40px} }
@media (max-width:80em){ .levrard-prestations-top {margin-bottom:30px} }
@media (max-width:60em){ .levrard-prestations-top {margin-bottom:20px} }
/* ---------------------------- */

.levrard-prestations-top .levrard-prestations-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
    align-items: start;
}

/**
 * Partie gauche
 */
.levrard-prestations-left {
    padding-right: 20px;
}

.levrard-prestations-title {
    font-weight: 400;
    color: var(--levrard-red);
    margin-bottom: 10px;
    line-height: 1.2;
}

.levrard-prestations-title span {
    color: var(--levrard-red);
    font-style: italic;
    font-weight: bolder;
    font-family:var(--font-alternate);
}

.levrard-prestations-subtitle {
    color: var(--levrard-text);
    margin-bottom: 40px;
    line-height: 1.4;
}

.levrard-prestations-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

.levrard-prestations-image img {
    width: 100%;
    height: auto;
    display: block;
}

.levrard-prestations-main-text {
    font-family:var(--font-alternate);
    font-weight: 700;
    color: var(--levrard-text);
    margin-bottom: 15px;
    font-style: italic;
}

.levrard-prestations-main-subtext {
    font-size: 21px;
    color: var(--levrard-text);
    line-height: 1.6;
    margin-bottom: 25px;
}

.levrard-prestations-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.levrard-prestations-tags .tag {
    background-color: var(--levrard-dark-gray);
    color: var(--levrard-white);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 21px;
    font-weight: 400;
}

/**
 * Séparateur vertical
 */
.levrard-prestations-separator {
    width: 1px;
    /* background-color: var(--levrard-border);
    align-self: stretch; */
}

/**
 * Partie droite
 */
.levrard-prestations-right {
    padding-left: 20px;
}

.levrard-prestations-right-text {
    color: var(--levrard-text);
    line-height: 1.6;
    margin-bottom: 40px;
    padding-top: 20px;
}

.levrard-prestations-right-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}
.levrard-prestations-right .separator-line {
    display: flex;
    width: 100%;
    height: 1px;
    background-color: var(--levrard-red);
    border-radius: 2px;
}

.levrard-prestations-right-header .separator-line {
    flex:1;
    height: 1px;
    background-color: var(--levrard-red);
    border-radius: 2px;
}
.levrard-prestations-bottom-intro .separator-line {
    display: flex;
    flex: 1;
    height: 1px;
    background-color: var(--levrard-red);
    border-radius: 2px;
    margin-left: 2%;
}

.right-subtitle {
    font-size: 16px;
    font-family:var(--font-alternate);
    color: var(--levrard-red);
    font-style: italic;
    margin: 0;
}

/**
 * Services
 */
.levrard-prestations-services {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.levrard-prestations-section .service-item {
    display: flex;
    gap: 40px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-items: flex-start;
    color: var(--levrard-text);
}
/* ---------------------------- */
@media (max-width:105em){ .levrard-prestations-section .service-item {gap:30px} }
@media (max-width:80em){ .levrard-prestations-section .service-item {gap:20px} }
@media (max-width:60em){ .levrard-prestations-section .service-item {gap:10px} }
/* ---------------------------- */

.levrard-prestations-section .service-item:hover {
    transform: translateX(5px);
}

.levrard-prestations-services .service-icon {
    flex-shrink: 0;
    width: 40%;
    height: 100%;
}

.levrard-prestations-services .service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.levrard-prestations-services .service-content {
    flex: 1;text-align:left;
}

.levrard-prestations-section .service-content h4 p{
    font-size: 26px;
    font-weight: 700;
    color: var(--levrard-text);
    margin-bottom: 10px;
    line-height: 1.3;
    font-style: italic;
    font-family:var(--font-alternate);
}

.levrard-prestations-section .service-content p {
    font-size: 16px;
    color: var(--levrard-text);
    line-height: 1.5;
    margin: 0;
}


/**
 * Partie basse
 */
.levrard-prestations-bottom {
    /* background-color: var(--levrard-light-gray); */
    padding: 40px 0;
    border-radius: 15px;
}
/* ---------------------------- */
@media (max-width:105em){ .levrard-prestations-bottom {padding:30px 0} }
@media (max-width:80em){ .levrard-prestations-bottom {padding:20px 0} }
@media (max-width:60em){ .levrard-prestations-bottom {padding:10px 0 } }
/* ---------------------------- */

.levrard-prestations-bottom-intro {
    font-size: 16px;
    color: var(--levrard-red);
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;

}

.levrard-prestations-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 50px;
}


.prestation-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 50px 26px 40px;
    background-color: var(--levrard-white);
    border-radius: 20px;
    text-decoration: none;
    color: var(--levrard-text);
    transition: all 0.3s ease;
    font-family: var(--font-alternate);
    border:1px var(--levrard-gray) solid;
    gap:15px;
    font-style:italic;
}


.prestation-link:hover {
    background-color: var(--levrard-red);
    color: var(--levrard-white);
}

.prestation-link strong {
    font-weight: 700;font-style:italic
    text-transform: lowercase;
}

.prestation-link i {
    color: var(--levrard-red);
    transition: all 0.3s ease;
}

.prestation-link:hover i {
    color: var(--levrard-white);
    transform: translateX(5px);
}

/**
 * Preview dans l'éditeur
 */
.levrard-prestations-preview {
    background: #f5f5f5;
    border: 2px dashed #ddd;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
}

.levrard-prestations-preview h3 {
    margin-bottom: 10px;
    color: var(--levrard-text);
}

.levrard-prestations-preview p {
    color: #666;
    margin: 0;
}

/**
 * Responsive
 */
@media screen and (max-width: 1200px) {
    .levrard-prestations-top .levrard-prestations-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .levrard-prestations-separator {
        display: none;
    }

    .levrard-prestations-left,
    .levrard-prestations-right {
        padding: 0;
        margin: 0 auto;
    }
}

@media screen and (max-width: 992px) {
    .levrard-prestations-tags .tag {
        padding: 6px 15px;
        font-size: 12px;
    }

    .prestation-link {
        padding: 12px 15px;
    }
}

/**
 * STYLES SPÉCIFIQUES À L'ÉDITEUR GUTENBERG
 */

/* Améliorer la sélectabilité dans l'éditeur */
.block-editor-block-list__block .levrard-prestations-section {
    position: relative;
    z-index: 1;
}

.block-editor-block-list__block .levrard-prestations-section * {
    position: relative;
}

/* Forcer certains styles si Gutenberg les écrase */
.block-editor-block-list__block .levrard-prestations-title {
    font-size: 48px !important;
    font-weight: 300 !important;
    color: var(--levrard-text) !important;
}

/* Bordure pour identifier le bloc dans l'éditeur */
.block-editor-block-list__block .levrard-prestations-section {
    border: 2px dashed rgba(233, 57, 52, 0.3);
}



@media screen and (max-width: 60em) {
    .levrard-prestations-services .service-icon {
        width: 100%;
    }
    .levrard-prestations-section {
        padding: 40px 25px;
    }

    .levrard-prestations-title {
        font-size: 32px;
    }

    .levrard-prestations-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .levrard-prestations-main-subtext {
        font-size: 14px;
    }

    .levrard-prestations-section .service-item {
        flex-direction: column;
        text-align: center;
    }

    .levrard-prestations-section .service-title {
        font-size: 16px;
    }

    .levrard-prestations-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
