/* ============================================================
   MesLapins — Page Hero  |  style.css  v1.0.0
   Variables CSS injectées inline par le shortcode :
     --mph-c1  : couleur principale
     --mph-c2  : couleur dégradé (plus claire)
     --mph-emoji : emoji décoratif en fond
   ============================================================ */

/* ── Wrapper hero ── */
.mph-hero {
    padding: 48px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

/* ── Emoji décoratif principal (vrai HTML, pas CSS content) ── */
.mph-hero-deco {
    position: absolute;
    font-size: 130px;
    line-height: 1;
    right: 4%;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    opacity: .1;
    pointer-events: none;
    user-select: none;
    animation: mph-float 6s ease-in-out infinite;
    z-index: 0;
}

/* ── Floats décoratifs ── */
.mph-hero-floats {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.mph-float {
    position: absolute;
    font-size: 18px;
    opacity: 0;
    user-select: none;
    animation: mph-rise 8s ease-in infinite;
}
.mph-f1 { left: 8%;  bottom: -20px; animation-delay: 0s;   animation-duration: 7s;  font-size: 14px; }
.mph-f2 { left: 20%; bottom: -20px; animation-delay: 2s;   animation-duration: 9s;  font-size: 20px; }
.mph-f3 { left: 75%; bottom: -20px; animation-delay: 1s;   animation-duration: 8s;  font-size: 16px; }
.mph-f4 { left: 88%; bottom: -20px; animation-delay: 3.5s; animation-duration: 10s; font-size: 12px; }

/* ── Inner ── */
.mph-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Titre ── */
.mph-hero-title {
    color: #fff !important;
    font-size: clamp(1.8rem, 4vw, 2.6rem) !important;
    font-weight: 900 !important;
    margin: 0 0 10px !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* ── Badges sous-titre ── */
.mph-hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 0;
}
.mph-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff !important;
    font-size: .88rem !important;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: .01em;
    text-shadow: 0 1px 3px rgba(0,0,0,.15);
    white-space: nowrap;
}

/* ── Contenu optionnel (entre balises shortcode) ── */
.mph-hero-content {
    margin-top: 18px;
    color: rgba(255,255,255,.9);
}

/* ── Fil d'Ariane ── */
.mph-breadcrumb {
    margin-bottom: 14px;
}
.mph-bc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
}
.mph-bc-item {
    color: rgba(255,255,255,.65);
    display: flex;
    align-items: center;
    gap: 4px;
}
.mph-bc-item::after {
    content: '›';
    color: rgba(255,255,255,.4);
}
.mph-bc-item:last-child::after { display: none; }
.mph-bc-item a {
    color: rgba(255,255,255,.75) !important;
    text-decoration: none !important;
    transition: color .15s;
}
.mph-bc-item a:hover { color: #fff !important; }
.mph-bc-current { color: rgba(255,255,255,.9); font-weight: 600; }

/* Compat Yoast breadcrumb */
.mph-breadcrumb .breadcrumb_last { color: rgba(255,255,255,.9); font-weight: 600; }
.mph-breadcrumb a { color: rgba(255,255,255,.75) !important; text-decoration: none !important; }
.mph-breadcrumb a:hover { color: #fff !important; }
.mph-breadcrumb .breadcrumb-separator,
.mph-breadcrumb > span > span { color: rgba(255,255,255,.4); }

/* ── Suppression bloc titre Pxltheme sur les pages utilisant le hero ── */
/* Ajoute la classe "msl-has-hero" sur le body via l'option thème Pxltheme
   OU via le hook ci-dessous — voir doc plugin */
/* Masquer le bloc titre Pxltheme et supprimer le padding dès que la classe est ajoutée
   — pas de JS, la classe est injectée en PHP donc aucun flash */
body.msl-has-hero #pxl-page-title-elementor,
body.msl-has-hero #pxl-page-title { display: none !important; }
body.msl-has-hero #pxl-main { padding-top: 0 !important; min-height: 0 !important; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .mph-hero {
        padding: 32px 16px 28px;
    }
    /* Titre plus petit sur mobile */
    .mph-hero-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
    }
    /* Badges : autoriser le retour à la ligne et réduire la taille */
    .mph-hero-badge {
        white-space: normal;
        font-size: .8rem !important;
        padding: 4px 11px;
        text-align: center;
    }
    /* Emoji déco plus petit pour ne pas empiéter */
    .mph-hero-deco {
        font-size: 80px;
        opacity: .08;
        right: 2%;
    }
    /* Floats désactivés sur mobile (trop de distractions sur petit écran) */
    .mph-hero-floats { display: none; }
}

/* ── Animations hero ── */
@keyframes mph-float {
    0%, 100% { transform: translateY(-50%) rotate(-15deg); }
    50%       { transform: translateY(calc(-50% - 18px)) rotate(-11deg); }
}

@keyframes mph-rise {
    0%   { transform: translateY(0)     rotate(0deg)   scale(1);   opacity: 0; }
    10%  { opacity: .25; }
    80%  { opacity: .15; }
    100% { transform: translateY(-280px) rotate(25deg) scale(.7); opacity: 0; }
}

/* ── Bouton Réserver ── */
.mph-hero-actions {
    margin-top: 16px;
}
.mph-reserve-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--mph-c1, #104B59);
    font-size: .95rem;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    transition: transform .15s, box-shadow .15s;
    white-space: nowrap;
}
.mph-reserve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.2);
}
@media (max-width: 640px) {
    .mph-reserve-btn { font-size: .85rem; padding: 10px 20px; }
}
