/*
Theme Name: Syrpa
Theme URI: https://rn20.digital
Description: Thème Syrpa créé par l'agence RN20 - Agence digitale spécialisée dans la création de sites web
Author: Agence RN20
Template: hello-biz
Author URI: https://rn20.digital
Version: 1.0.0
Stable tag: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: syrpa
Tags: flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready, style-variations
*/

/* Add your custom styles here */

/* Masque l'en-tête "Sous-total" */
th.product-total {
	display: none !important;
}

/* Masque la colonne "Sous-total" dans les lignes de produit */
.woocommerce-checkout-review-order-table td.product-total {
	display: none !important;
}

/* Masque les lignes de "Sous-total" dans le tfoot */
.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal,
.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal.recurring-total {
	display: none !important;
}

.woocommerce-message{
	display:none;
}

/* Member Profile Card */
.member-profile-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin: 20px auto;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Test pour s'assurer que la carte est visible */
    background-color: #ff0000 !important;
    border: 3px solid #000000 !important;
}

.member-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
     /* Test fallback color */
    background-color: #007cba;
}

.member-profile-card:hover .card-background {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.1) 30%,
        rgba(0,0,0,0.4) 60%,
        rgba(0,0,0,0.8) 100%
    );
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: white;
    z-index: 10;
}

.member-name-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.member-name {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.member-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-badge-active {
    background-color: #10b981;
    color: white;
}

.member-badge-pending {
    background-color: #f59e0b;
    color: white;
}

.member-badge-expired {
    background-color: #ef4444;
    color: white;
}

.member-description {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.member-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.info-tag {
    background-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.95);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.member-expiry-info {
    margin-bottom: 16px;
    padding: 12px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.member-expiry-info p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}

.member-renewal-btn {
    background-color: #10b981;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s ease;
}

.member-renewal-btn:hover {
    background-color: #059669;
    color: white;
    transform: translateY(-1px);
}

.profile-action-btn {
    width: 100%;
    background-color: white;
    color: #1f2937;
    padding: 14px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profile-action-btn:hover {
    background-color: #f9fafb;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

@media (max-width: 600px) {
    .member-profile-card {
        max-width: 100%;
        height: 450px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .member-name {
        font-size: 24px;
    }
    
    .member-name-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Élargir le contenu de Mon compte WooCommerce quand le menu est supprimé */
.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    max-width: 900px; /* largeur max au choix */
    margin: 0 auto !important;
}

.e-coupon-box{
	padding:10px !important;
}

/* Conteneur du texte d'accroche */
.wcm-teaser-blur {
    position: relative;
    /* Optionnel : Ajoute un vrai flou léger sur le texte lui-même */
    /* filter: blur(0.5px); */ 
}

/* L'effet de dégradé par-dessus le texte */
.wcm-teaser-blur::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%; /* Hauteur du dégradé (couvre 80% du texte) */

    /* Le dégradé : du transparent vers la couleur de fond de votre site */
    /* IMPORTANT : Si votre fond de site n'est pas BLANC, changez #ffffff par votre couleur */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);

    pointer-events: none; /* Permet de cliquer à travers si besoin */
}

/* ─────────────────────────────────────────────────────────────
   Menu principal : bordure brutaliste du sous-menu déroulant
   Le dropdown (.ehp-header__dropdown) a un fond blanc sur fond
   de page blanc → ses limites sont invisibles. On lui donne une
   bordure noire épaisse + ombre portée nette, dans l'esprit
   brutaliste du site (cf. border: 3px solid #000 ailleurs).
   ───────────────────────────────────────────────────────────── */
/* IMPORTANT : on cible uniquement le desktop (min-width 1025px).
   En dessous (≤1024px), Hello Plus replie le menu en hamburger et
   le sous-menu s'intègre au flux → pas de bordure. NB : l'attribut
   data-responsive-breakpoint="tablet-portrait" est posé sur le
   header à TOUTES les tailles, donc on ne peut pas l'utiliser pour
   distinguer desktop/mobile — il faut une media query. */
@media screen and (min-width: 1025px) {
    .ehp-header__dropdown {
        border: 3px solid #000000 !important;
        border-radius: 0 !important;                /* coins carrés = brutalisme */
        box-shadow: 6px 6px 0 0 #000000 !important; /* ombre dure, sans flou */
        margin-top: 32px !important;                /* abaisse le sous-menu sous le menu principal */
    }
}


/* ─────────────────────────────────────────────────────────────
   Fix header sticky Hello Plus (1.7.8) : espace blanc doublé
   sous le header après le premier scroll.
   Mécanisme du bug : au premier scroll, Hello Plus ajoute la
   classe ehp-body-after-scroll au body, passe le .ehp-header en
   position:fixed et compense en posant padding-top:110px sur le
   body. Mais le wrapper de template [data-elementor-type=ehp-header]
   garde sa hauteur (~110px) dans le flux → le contenu est poussé
   2 fois (padding + wrapper), d où ~110px de blanc entre le
   header et le hero. Hello Plus ne fait ce collapse (height:0)
   que pour les headers « float », pas pour le sticky classique.
   On applique donc le même collapse, avec la même garde que la
   règle de compensation du plugin.
   ───────────────────────────────────────────────────────────── */
body.ehp-body-after-scroll:not(:has(.has-behavior-onscroll-none)) [data-elementor-type="ehp-header"] {
    height: 0 !important;
}
