/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/


@font-face {
    font-family: "Avalon";
    src: url("/wp-content/themes/astra-child/Fonts/Avalon%20Regular.ttf") format("truetype");
  }
  


/* .Red h1, .Red h2, .Red h3, .Red h4,.Red h5, .Red h6, .Red{
    font-family: "Red" !important;
} */

p, span, div, a, .avalon H2 {
    font-family: "Avalon" !important;
}

.element-selector:focus {
    outline: none;
}
button:focus {
    outline: none;
}
*:focus {
    outline: none !important;
}

.element-selector, a, button {
    -webkit-tap-highlight-color: transparent;
}

.btn{
    font-size: 20px;
    color: #00373C !important;
    text-decoration: underline;
}

.hfe-cart-count:empty,
.hfe-cart-count:contains("0") {
  display: none;
}


#site-header, #site-footer {
  display: none;
}


/* Supprimer les puces du footer */
footer ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}


/* Filtres */

.wc-cat-filter-btn{
    font-size: 20px;
    background-color: #f1cfa4 !important;
    color: #00373C !important;
}

.wc-cat-filter-btn:hover{
    background-color: #f1cfa4 !important;
    color: #00373C !important;
}

.wc-cat-filter-level-1 .active{
    background-color: #00373C !important;
    color: #f1cfa4 !important;
}



/* actu */
.media-attachments-filter-heading{
    display: none;
}

#password-rules .valid { color: green; }
#password-rules .invalid { color: red; }


#ga-wrapper h2{
    text-align: center;
    color: #00373C;
    
}

.ga-select-media, #ga-add-form{
margin-bottom: 20px;
}

#ga-add-form{
    padding: 20px;
}

.actualites-cards{
    padding-top: 20px;
}

#ga-add-form p label{

    text-align: center;
    font-size: 20px;
    color: #00373C;
    
}


    .actualites-cards {
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-width: 900px;
        margin: auto;
    }
    .actualite-card {
        display: flex;
        border: 2px solid #004a46;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        background: #fff;
        padding: 10px;
    }
    .actualite-image {
        flex: 1;
        max-width: 250px;
    }
    .actualite-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .actualite-content {
        flex: 2;
        padding: 20px;
    }
    .actualite-content h3 {
        color: #004a46;
        font-size: 30px;
        margin-bottom: 5px;
    }
    .date-evenement {
        font-size: 20px;
        font-weight: bold;
        color: #004a46;
        margin-bottom: 10px;
        text-transform: capitalize;
    }
    .actualite-content p {
        color: #004a46;
        margin-bottom: 15px;
        font-size: 18px;
    }
    .media-menu-item {
        background-color: #004a46 !important;
        color: #e6d2b5 !important;
        border: 1px solid #004a46 !important;
        padding: 5px 15px;
        border-radius: 20px;
        cursor: pointer;
    }
    .media-menu-item:hover {
        background-color: #e6d2b5 !important;
        color: #004a46 !important;
        border: 1px solid #004a46 !important;
    }


/* Cache barre PWA */
html {
margin-top: 0 !important;
}


/* Mon compte */
.custom-account-box {
    text-align: center;
    font-family: 'Arial', sans-serif;
}



.account-card {
    background-color: #003f42;
    color: #fff;
    padding: 20px;
    margin: 10px auto;
    border-radius: 15px;
    max-width: 300px;
}

.account-card p {
    margin: 10px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-card .icon {
    margin-right: 8px;
    font-size: 20px;
}

.account-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.account-buttons .btn {
    background-color: #f1cfa4;
    border: 2px solid #003f42;
    border-radius: 25px;
    padding: 10px;
    color: #003f42;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.account-buttons .btn:hover {
    background-color: #003f42;
    color: #fff;
}




/* connecxion form */

.password-wrapper {
    position: relative;
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}
.rule {
    color: #888;
}
.rule.valid {
    color: green;
}
.rule.invalid {
    color: red;
}

#ep-auth-container p {
    text-align: center;
    margin-top: 15px;
}

#password-rules li {
    list-style: none;
    margin-bottom: 4px;
    color: #b94a48;
}
#password-rules li.valid {
    color: #468847;
}
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}

/* Filtre affichage produit */
.wc-cat-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.wc-cat-card-horizontal {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 500px;
    background: #fff;
    border: 2px solid #00373C;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.wc-cat-card-img {
    flex: 0 0 150px;
    overflow: hidden;
}

.wc-cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wc-cat-card-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.wc-cat-category {
    font-size: 0.9rem;
    color: #777;
    margin: 0 0 2px;
}

.wc-cat-title, .wc-cat-price {
	font-family: 'Avalon' !important;
	font-size:25px !important;
}



.wc-cat-price {
    font-weight: bold;
    margin-bottom: 10px;
}

.wc-cat-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wc-cat-buttons .button,
.wc-cat-btn-view {
    padding: 6px 10px;
    border-radius: 5px;
    background-color: #004e4e;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    align-content: center;
}

.wc-cat-btn-view {
    background-color: white;
    color: #004e4e;
    border: 1px solid #004e4e;
}

@media (max-width: 600px) {
    .wc-cat-products-grid .product img {
        max-height: 150px;
    }
}



@media (max-width: 768px) {
    .wc-cat-products-grid .product {
        width: calc(50% - 20px); /* 2 par ligne sur tablette */
    }
}

@media (max-width: 480px) {
    .wc-cat-products-grid .product {
        width: 100%; /* 1 par ligne sur mobile */
    }
}



/* Stock produit */


.stock-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-bottom: 1em;
}

.stock-toolbar label {
    font-weight: bold;
}

.produit-card {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1em;
    margin-bottom: 1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.produit-nom {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.produit-statut {
    font-weight: bold;
    margin-top: 0.5em;
}

.produit-statut.green {
    color: green;
}

.produit-statut.orange {
    color: orange;
}

.produit-statut.red {
    color: red;
}

.stock-action {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-top: 0.5em;
}

.stock-action input[type="number"] {
    width: 70px;
    padding: 5px;
}



  /* Style minimaliste modal */
.rr-stock-barre {
    margin-bottom: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    align-items: center;
}

#produits-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1em;
}

.produit-card {
    background: #fff;
    border: 1px solid #ccc;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.produit-card img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 0.5em;
}

.produit-info h3 {
    margin: 0.3em 0;
    font-size: 1.1em;
}

.produit-info .stock,
.produit-info .prix {
    font-weight: bold;
    margin-bottom: 0.3em;
}

.produit-info .desc {
    font-size: 0.9em;
    color: #555;
}



/* Modal */
#rr-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

#rr-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

#rr-modal-content {
  background: #fff;
  padding: 2em;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
}

.rr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.rr-popup-content {
    position: relative;
    background: #fff;
    max-width: 500px;
    width: 100%;
    max-height: 90vh; /* Limite la hauteur */
    display: flex;
    flex-direction: column;
    border-radius: 10px;
}


.rr-popup-inner {
    padding: 20px;
    overflow-y: auto; /* Scroll uniquement ici */
    flex: 1;
    margin-top: 40px; /* espace pour le bouton close */
}
