/**
 * CSS pour le bloc Bannière Autre Levrard
 * Fichier : assets/css/blocks/banniere-autre.css
 */

/* Variables couleurs */
: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;
    --overlay-opacity: 0.8;
}

/**
 * Structure principale
 */
.levrard-banniere-autre-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    border-radius: 30px;
    max-width:1920px;
    width:96%;
    margin:auto;
}

.levrard-banniere-autre-section__outside{position:relative;margin-bottom:40px;}
.banniere-autre-gfx-desktop{position:absolute;z-index:-1;bottom:-250px;left:0;right:0;color:var(--levrard-red);}
.banniere-autre-gfx-desktop > svg{opacity:0.065}
.banniere-autre-gfx-desktop > svg path,
.banniere-autre-gfx-desktop > svg circle{fill:currentColor}

/* Hauteurs disponibles */
.levrard-banniere-autre-section.height-small {
    height: 510px;
    min-height: 510px;
}

.levrard-banniere-autre-section.height-medium {
    height: 570px;
    min-height: 570px;
}

.levrard-banniere-autre-section.height-large {
    height: 600px;
    min-height: 600px;
}

.levrard-banniere-autre-section.height-xl {
    height: 650px;
    min-height: 650px;
}
/* ---------------------------- */
@media (max-width:105em){
    .levrard-banniere-autre-section.height-small,
    .levrard-banniere-autre-section.height-medium,
    .levrard-banniere-autre-section.height-large,
    .levrard-banniere-autre-section.height-xl{height:420px;min-height:420px;}
}
/* ---------------------------- */

/**
 * Overlay rouge transparent
 */
.banniere-autre-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--levrard-red);
    opacity: var(--overlay-opacity);
    z-index: 1;
}

/**
 * Container et contenu
 */
.banniere-autre-container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    width:1600px;
}
/* ---------------------------- */
@media (max-width:110em){
    .banniere-autre-container{margin:0 50px}
}
@media (max-width:90em){
    .banniere-autre-container{margin:0 40px}
}
@media (max-width:80em){
    .banniere-autre-container{margin:0 30px}
}
@media (max-width:60em){
    .banniere-autre-container{margin:0 20px}
}
/* ---------------------------- */

.banniere-autre-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 40px 0;
}

/**
 * Texte en bas à gauche
 */

.banniere-autre-title {
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.banniere-autre-subtitle {
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
    color: var(--levrard-dark-gray) !important;
    margin: 0;
    opacity: 0.9;
    font-family:var(--font-alternate);
}

/**
 * Couleurs de texte
 */
.levrard-banniere-autre-section.text-white .banniere-autre-title,
.levrard-banniere-autre-section.text-white .banniere-autre-subtitle {
    color: var(--levrard-white);
}

.levrard-banniere-autre-section.text-dark .banniere-autre-title,
.levrard-banniere-autre-section.text-dark .banniere-autre-subtitle {
    color: var(--levrard-dark-gray);
}

.levrard-banniere-autre-section.text-red .banniere-autre-title,
.levrard-banniere-autre-section.text-red .banniere-autre-subtitle {
    color: var(--levrard-red);
}

/**
 * Tailles de titre
 */


/*.levrard-banniere-autre-section.title-large .banniere-autre-title {*/
/*    font-size: 48px;*/
/*}*/

/*.levrard-banniere-autre-section.title-xl .banniere-autre-title {*/
/*    font-size: 64px;*/
/*}*/

/**
 * Effet parallaxe
 */
.levrard-banniere-autre-section.parallax-enabled {
    background-attachment: fixed;
}

/**
 * Preview dans l'éditeur
 */
.levrard-banniere-autre-preview {
    background: linear-gradient(135deg, var(--levrard-red), var(--levrard-dark-red));
    border: 2px dashed #ddd;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    color: white;
}

.levrard-banniere-autre-preview h3 {
    margin-bottom: 15px;
    color: white;
}

.levrard-banniere-autre-preview p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.banniere-preview-demo {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
    position: relative;
    height: 200px;
    display: flex;
    align-items: flex-end;
}

.preview-content {
    text-align: left;
}

.preview-content h4 {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 8px 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preview-content p {
    font-size: 18px;
    font-style: italic;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/**
 * Responsive Design
 */
@media screen and (max-width: 992px) {
    .levrard-banniere-autre-section.height-small {
        height: 250px;
        min-height: 250px;
    }

    .levrard-banniere-autre-section.height-medium {
        height: 320px;
        min-height: 320px;
    }

    .levrard-banniere-autre-section.height-large {
        height: 400px;
        min-height: 400px;
    }

    .levrard-banniere-autre-section.height-xl {
        height: 480px;
        min-height: 480px;
    }

    .levrard-banniere-autre-section.title-normal .banniere-autre-title {
        font-size: 28px !important;
    }

    .levrard-banniere-autre-section.title-xl .banniere-autre-title {
        font-size: 52px !important;
    }

}

@media screen and (max-width: 768px) {
    .levrard-banniere-autre-section {
        background-attachment: scroll; /* Désactiver parallaxe sur mobile */
    }

    .levrard-banniere-autre-section.height-small {
        height: 200px;
        min-height: 200px;
    }

    .levrard-banniere-autre-section.height-medium {
        height: 250px;
        min-height: 250px;
    }

    .levrard-banniere-autre-section.height-large {
        height: 300px;
        min-height: 300px;
    }

    .levrard-banniere-autre-section.height-xl {
        height: 350px;
        min-height: 350px;
    }

    .banniere-autre-content {
        padding: 30px 0;
    }


    .levrard-banniere-autre-section.title-normal .banniere-autre-title {
        font-size: 24px !important;
    }

    .levrard-banniere-autre-section.title-xl .banniere-autre-title {
        font-size: 40px !important;
    }

}

@media screen and (max-width: 576px) {
    .levrard-banniere-autre-section.height-small {
        height: 180px;
        min-height: 180px;
    }

    .levrard-banniere-autre-section.height-medium {
        height: 220px;
        min-height: 220px;
    }

    .levrard-banniere-autre-section.height-large {
        height: 260px;
        min-height: 260px;
    }

    .levrard-banniere-autre-section.height-xl {
        height: 300px;
        min-height: 300px;
    }

    .banniere-autre-content {
        padding: 20px 0;
    }

    .banniere-autre-title {
        font-size: 28px !important;
        letter-spacing: 0.5px;
    }

    .levrard-banniere-autre-section.title-normal .banniere-autre-title {
        font-size: 22px !important;
    }

    .levrard-banniere-autre-section.title-xl .banniere-autre-title {
        font-size: 36px !important;
    }

    .banniere-autre-subtitle {
        font-size: 16px;
    }
}

/**
 * STYLES SPÉCIFIQUES À L'ÉDITEUR GUTENBERG
 */
.block-editor-block-list__block .levrard-banniere-autre-section {
    border: 2px dashed rgba(233, 57, 52, 0.3);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.block-editor-block-list__block .banniere-autre-title {
    font-weight: 900 !important;
}

.block-editor-block-list__block .banniere-autre-subtitle {
    font-style: italic !important;
}

/* Améliorer la visibilité dans l'éditeur */
.block-editor-block-list__block .levrard-banniere-autre-section .banniere-autre-overlay {
    opacity: 0.7;
}

/**
 * Animations (optionnelles)
 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.banniere-autre-text {
    animation: slideInLeft 0.8s ease-out;
}

/**
 * Mode d'impression
 */
@media print {
    .levrard-banniere-autre-section {
        background: none !important;
        height: auto !important;
        min-height: auto !important;
    }

    .banniere-autre-overlay {
        display: none;
    }

    .banniere-autre-title,
    .banniere-autre-subtitle {
        color: #000 !important;
        text-shadow: none !important;
    }
}
/* Single prestation uniquement */
/* .single-prestation-banner .banniere-autre-content {
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0 40px 0;
} */
.single-prestation-banner .banniere-autre-text{
    display: flex;
    flex-direction: column-reverse;

}
.single-prestation-banner .banniere-autre-title {
    text-transform: inherit;
}
.single-prestation-banner .banniere-autre-title span {
    font-size: 16px;
    top: -20px;
    position: relative;
}
/**
 * CSS pour le breadcrumb dans la bannière autre
 * À ajouter à la fin de banniere-autre.css
 */

/* Ajustement du layout pour single prestation */
.levrard-banniere-autre-section.single-prestation-banner .banniere-autre-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 0 40px 0;
    height: 100%;
}

/**
 * Styles du breadcrumb - positionné en haut
 */
.banniere-breadcrumb {
    width: 100%;
    margin-bottom: 1%; /* Pousse le contenu vers le bas */
    padding: 0;
    order: 1;
    display:flex;align-items:center;
}

.banniere-breadcrumb a {
    color: var(--levrard-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    text-underline-position: under;
}

.banniere-breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.banniere-breadcrumb .separator {
    display:block;width:10px;height:2px;background:var(--levrard-current);margin:0 10px;
}

.banniere-breadcrumb .current {
    color: var(--levrard-white);
    font-size: 14px;
    font-weight: 700;
    font-style:italic;
    opacity: 1;
    font-family:var(--font-alternate);
    text-decoration:underline;
    text-underline-position: under;
}

/**
 * Texte principal - reste en bas
 */
.levrard-banniere-autre-section.single-prestation-banner .banniere-autre-text {
    width: 100%;
    max-width: 100%;
    margin-top: auto; /* Pousse vers le bas */
    order: 2; /* S'assure qu'il est en second */
}

/**
 * Couleurs adaptatives du breadcrumb
 */
.levrard-banniere-autre-section.text-dark .banniere-breadcrumb a,
.levrard-banniere-autre-section.text-dark .banniere-breadcrumb .separator,
.levrard-banniere-autre-section.text-dark .banniere-breadcrumb .current {
    color: var(--levrard-dark-gray);
}

.levrard-banniere-autre-section.text-red .banniere-breadcrumb a,
.levrard-banniere-autre-section.text-red .banniere-breadcrumb .separator,
.levrard-banniere-autre-section.text-red .banniere-breadcrumb .current {
    color: var(--levrard-red);
}

/**
 * Style pour le span dans le titre (24/24, 7j/7)
 */
.levrard-banniere-autre-section.single-prestation-banner .banniere-autre-title span {
    font-weight: 400;
    opacity: 0.9;
    font-style: normal;
}

/**
 * Responsive pour single prestation
 */
@media screen and (max-width: 768px) {
    .banniere-breadcrumb {
        margin-bottom: 5%;
    }
    .single-prestation-banner .banniere-autre-title span {
        top: 0px;
    }
    .levrard-banniere-autre-section.single-prestation-banner .banniere-autre-content {
        padding: 15px 0 30px 0;
    }

    .banniere-breadcrumb a,
    .banniere-breadcrumb .current {
        font-size: 12px;
    }

    .banniere-breadcrumb .separator {
        margin: 0 6px;
        font-size: 10px;
    }
}

@media screen and (max-width: 576px) {
    .levrard-banniere-autre-section.single-prestation-banner .banniere-autre-content {
        padding: 12px 0 25px 0;
    }

    .banniere-breadcrumb a,
    .banniere-breadcrumb .current {
        font-size: 11px;
    }

    .banniere-breadcrumb .separator {
        margin: 0 4px;
    }

    /* Gérer le texte long sur mobile */
    .banniere-breadcrumb .current {
        /* display: inline-block; */
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/**
 * Styles pour l'éditeur Gutenberg
 */
.block-editor-block-list__block .levrard-banniere-autre-section.single-prestation-banner {
    position: relative;
    min-height: 300px;
}

.block-editor-block-list__block .banniere-breadcrumb {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: inline-block;
}
