/* Groupe de liste (ul) WordPress et du thème Electro */
ul.is-style-bootstrap-list-group {
  list-style: none;
  padding-left: 0;
}
ul.is-style-bootstrap-list-group li:first-child {
  border-top: 0;
  padding-top: 0;
}
ul.is-style-bootstrap-list-group li {
  border-top: solid 1px rgba(210, 215, 217, 0.75);
  padding: 0.5em 0;
    padding-top: 0.5em;
}
/* Icons (ul class="icons") du thème Electro */
ul.icons {
  cursor: default;
  list-style: none;
  padding-left: 0;
}
ul.icons li {
  display: inline-block;
  padding: 0 1em 0 0;
}
ul.icons li .icon::before {
  font-size: 1.25em;
  transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
}

hr {
  margin: 2rem 0;
  opacity: .10;
}

.grecaptcha-badge{
  bottom: 100px !important;
}

.icon::before {
  line-height: inherit;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  text-transform: none !important;
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
}

/* Code en ligne (<code>...</code>) du thème Electro */
code {
  background: rgba(230, 235, 237, 0.25);
  border-radius: 0.375em;
  border: solid 1px rgba(210, 215, 217, 0.75);
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  margin: 0 0.25em;
  padding: 0.25em 0.65em;
}
/* Code en ligne (<blockquote>...</blockquote>) du thème Electro */
.blockquote::before, .blockquote::after, q::before, q::after {
  content: "";
  content: none;
}
.blockquote {
  border-left: solid 3px rgba(210, 215, 217, 0.75);
  font-style: italic;
  margin: 0 0 2em 0;
  padding: 0.5em 0 0.5em 2em;
}
.blockquote, q {
  quotes: none;
}
/* (<div class="box">...</div>) du thème Electro */
.box {
  border-radius: 0.375em;
  border: solid 1px rgba(210, 215, 217, 0.75);
  margin-bottom: 2em;
  padding: 1.5em;
}
/* Preformatted du thème Electro */
.wp-block-preformatted {
  display: block;
  line-height: 1.75;
  overflow-x: auto;
  background: rgba(230, 235, 237, 0.25);
  border-radius: 0.375em;
  border: solid 1px rgba(210, 215, 217, 0.75);
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  margin: 0 0.25em;
  padding: 0.90em 1em;
}

/* Annule les bridages de largeur de WordPress et du thème Electro */
.is-style-bootstrap-thumbnail, 
.is-style-bootstrap-thumbnail figure {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

.is-style-bootstrap-thumbnail img {
    width: 100% !important;
    height: auto !important; /* Préserve le ratio */
    display: block;
}

/* Si l'image est dans une colonne Bootstrap */
.col-md .is-style-bootstrap-thumbnail {
    margin-bottom: 1rem;
}

/** 
* cab-pagination
*/
.woocommerce nav.cab-pagination {
  text-align: center;
}

/* Conteneur principal */
.cab-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.cab-pagination .page-numbers {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    margin: 0 5px !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    
    /* DESIGN REVISITÉ */
    background-color: #ffffff !important;   /* Fond blanc */
    border: 1px solid var(--bs-secondary) !important;    /* Cadre rouge fin (secondary) */
    color: #6c757d !important;              /* Numéros en GRIS (Bootstrap text-muted/secondary) */
    
    border-radius: 8px !important;           /* Coins arrondis */
    font-weight: 500;
}

/* État : SÉLECTIONNÉ (.current) */
.cab-pagination .page-numbers.current {
    background-color: var(--bs-primary) !important;    /* Fond Orange (primary) */
    border-color: var(--bs-primary) !important;        /* Bordure Orange */
    color: #ffffff !important;               /* Texte Blanc */
}

/* État : SURVOL (Hover) */
.cab-pagination .page-numbers:hover:not(.current) {
    background-color: var(--bs-primary) !important;    /* Fond Orange (primary) */
    border-color: var(--bs-primary) !important;        /* Bordure Orange */
    color: #ffffff !important;               /* Texte Blanc */
}


/* On force la police FontAwesome sur les classes fas */
.icon.solid::before{
    font-family: "Font Awesome 5 Free" ;
    font-weight: 900 ;
    margin-right: 0.5em;
}

/*** Footer Start ***/
.footer {
    background: var(--bs-dark);
}

.footer .footer-item span, footer .footer-item a, .footer .footer-item .cab-line-clamp {
  color: #c1c1c1;
}
.footer .footer-item a {
    /* line-height: 30px; */
    transition: 0.5s;
}
.footer .footer-item span {
  font-size: 0.7rem;
}
.footer .footer-item .cab-line-clamp {
  font-size: 0.75rem; 
  line-height: 1.2;
}

.footer .footer-item p {
    line-height: 30px;
}
.footer .footer-item a:hover {
    letter-spacing: 2px;
    color: var(--bs-secondary);
}

.footer-item ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-item ul li {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important; /* Réduit l'espace excessif entre les lignes */
}

/* Style des liens avec la flèche */
.footer-item ul li a {
    color: rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    padding: 6px 0; /* Espacement vertical entre les liens */
    text-decoration: none;
    /* transition: 0.5s; */
}

/* La flèche (Angle Right) respectant la couleur du thème */
.footer-item ul li a::before {
    content: "\f105"; /* Code FontAwesome angle-right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--bs-secondary);
    transition: 0.5s;
}

/* Effet au survol */
.footer-item ul li a:hover {
    /* color: #f28b00 !important; */
    letter-spacing: 1px;
}

/* .footer-item ul li a:hover::before {
    color: #fff;
} */

/* Style du widget Liste de Produits dans le Footer */
/* Nettoyage du widget Liste de Produits dans le Footer */
.footer-item .product_list_widget li {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 1. L'image miniature */
.footer-item .product_list_widget li img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 12px;
    float: none !important;
}

/* 2. Le Titre uniquement */
.footer-item .product_list_widget li a:not(.reviewer) {
    display: block;
    color: #fff !important;
    font-weight: 500;
    flex: 1;
    text-decoration: none;
    line-height: 1.2;
}
/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-primary) !important;
}
/*** copyright end ***/

/*** Widget ***/
.widget .categories-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}
.widget .categories-item a {
  transition: 0.5s;
}
.widget .categories-item a:hover {
  color: var(--bs-primary) !important;
}

/* Si tu veux que cela ne s'applique que lorsque tu as coché "Milieu" dans l'éditeur */
div.row.wp-block-columns.are-vertically-aligned-center {
    align-items: center !important;
}

/* Si tu veux que cela ne s'applique que lorsque tu as coché "Bas" dans l'éditeur */
div.row.wp-block-columns.are-vertically-aligned-bottom {
    align-items: end !important;
}

/*** faire ressortir image sur du texte ***/
.text-img-white {
  text-shadow: #fff 1px 0 10px;
}

/* Cache sur Desktop */
@media (min-width: 992px) {
    .mobile-only-btn {
        display: none !important;
    }
}

/* Affiche sur Mobile */
@media (max-width: 991px) {
    .mobile-only-btn {
        display: block !important;
    }
}

/* ==========================================================================
   Menu mobile : boutons « Connexion / Inscription » et panier
   ==========================================================================
   Le conteneur du menu replié ne fait que 311px sur un écran de 375px. Aux
   dimensions par défaut les deux boutons totalisent 333px et le panier passait
   donc à la ligne. On réduit légèrement le corps du texte pour qu'ils tiennent
   côte à côte, la gouttière « gap-2 » garantissant qu'ils ne se touchent pas.
   ========================================================================== */
@media (max-width: 991px) {
    .cab-actions-mobile .btn {
        font-size: 0.9rem;
    }
    .cab-actions-mobile .cab-panier-mobile .cart-count-menu {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   Alignements large et pleine largeur (1.12.0)
   ========================================================================== */

/*
 * Pages (page.php) : le contenu est dans un .container de Bootstrap, sans
 * colonne latérale. Un bloc « Pleine largeur » en sort jusqu'aux bords de
 * l'écran ; un bloc « Large » déborde de 6rem de chaque côté, sans jamais
 * approcher les bords à moins de 1,5rem.
 *
 * Les calculs partent de la largeur du .container-fluid (100cqw) et non de
 * l'écran (100vw), qui compte la barre de défilement : le bloc tomberait
 * 7 à 8 pixels sous chaque bord et créerait un défilement horizontal.
 * --cab-fluid-pad est la marge intérieure de ce .container-fluid.
 */
.container-fluid:has(> .cab-page-content) {
    container-type: inline-size;
    --cab-fluid-pad: calc(var(--bs-gutter-x, 1.5rem) * .5);
}

.cab-page-content > .alignfull {
    width: auto;
    max-width: none;
    margin-left: calc(50% - 50cqw - var(--cab-fluid-pad)) !important;
    margin-right: calc(50% - 50cqw - var(--cab-fluid-pad)) !important;
}

.cab-page-content > .alignwide {
    width: auto;
    max-width: none;
    margin-left: calc(50% - min(50cqw + var(--cab-fluid-pad) - 1.5rem, 50% + 6rem)) !important;
    margin-right: calc(50% - min(50cqw + var(--cab-fluid-pad) - 1.5rem, 50% + 6rem)) !important;
}

/*
 * Articles (single.php) : le contenu est dans une colonne, à côté de la barre
 * latérale. Large et pleine largeur restent à la largeur de la colonne.
 */
.single .alignfull,
.single .alignwide {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* ==========================================================================
   Carrousel vitrine de Cabrio Carousel (1.13.0)
   ========================================================================== */

/*
 * L'accueil affiche le bloc « Carrousel vitrine » de l'extension
 * (template-parts/content-hero-carousel.php). L'extension dessine le bloc
 * avec la typographie de Bootstrap ; le thème lui redonne la sienne, celle de
 * l'ancien gabarit : accroche en .h4, titre en .h1.display-3 (Roboto gras,
 * #484848), texte en .text-dark. Les boutons sont ceux des autres carrousels
 * (.btn-lg, depuis la 1.13.1). Valable aussi pour un carrousel vitrine posé
 * dans une page.
 */
.cab-hero-carousel .cab-hero__tagline,
.cab-hero-carousel .cab-hero__title {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #484848;
}

.cab-hero-carousel .cab-hero__title {
    font-size: calc(1.525rem + 3.3vw);
}

@media (min-width: 1200px) {
    .cab-hero-carousel .cab-hero__title {
        font-size: 4rem;
    }
}

.cab-hero-carousel .cab-hero__text {
    color: #484848;
}

/*
 * Espacements de l'ancien gabarit : 1rem sous le texte, les boutons suivent.
 * Sur le conteneur et non sur le dernier paragraphe : un texte écrit en blocs
 * a des paragraphes en .mb-0 (!important), que l'ancien gabarit n'avait pas.
 */
.cab-hero-carousel .cab-hero__text:not(:empty) {
    margin-bottom: 1rem;
}

.cab-hero-carousel .cab-hero__buttons {
    margin-top: 0;
}

/*
 * L'encart à côté du carrousel, comme l'ancien bandeau du thème
 * (last-sale-product.php, last-post.php) : coins de l'étiquette en .rounded
 * (10px), « Offre spéciale » sur la même ligne, en .fs-6 (« Dernier article »
 * en .fs-5), titre en interligne courant, et l'icône Font Awesome du bouton
 * (panier pour un produit, œil pour un article).
 */
.cab-carousel-panel .cab-carousel-panel__badge {
    border-radius: 10px;
}

/* Sous le carrousel (tablette, téléphone), l'encart est carré comme les photos de la boutique. */
@media (max-width: 991.98px) {
    .cab-carousel-panel {
        aspect-ratio: 1 / 1;
    }
}

.cab-carousel-panel .cab-carousel-panel__label {
    right: auto;
}

.cab-carousel-panel .cab-carousel-panel__label > span:last-child {
    font-size: 1.25rem;
    text-shadow: none;
}

.cab-carousel-panel .cab-carousel-panel__label:has(.cab-carousel-panel__badge) > span:last-child {
    font-size: 1rem;
}

.cab-carousel .cab-carousel-panel .cab-carousel-panel__title {
    line-height: 1.5;
}

.cab-carousel-panel .cab-carousel-panel__prices {
    margin-top: 0;
}

.cab-carousel-panel .cab-carousel-panel__excerpt {
    margin-bottom: 1rem;
}

.cab-carousel-panel .cab-carousel-panel__button::before {
    content: "\f06e";
    margin-right: .7rem; /* .me-2 et l'espace qui suivait l'icône */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.cab-carousel-panel:has(.cab-carousel-panel__prices) .cab-carousel-panel__button::before {
    content: "\f07a";
}

/**
 * Carrousel des catégories de l'accueil : une galerie de produits pas encore
 * montée par Owl (1.18.0). Les galeries se montent une à une après le
 * carrousel qui les contient, et les copies qu'Owl fait pour boucler ne sont
 * jamais montées : sans ceci, la feuille d'Owl les cache (display: none) et la
 * carte reste vide. Elles montrent leur premier produit, comme une galerie
 * montée à son départ.
 */
.productList-carousel .productImg-carousel:not(.owl-loaded) {
    display: block;
    padding-bottom: 4.8rem; /* celle que style.css donne à .owl-stage-outer, pour l'animation « Ajouter au panier » */
}
.productList-carousel .productImg-carousel:not(.owl-loaded) > .productImg-item ~ .productImg-item {
    display: none;
}

/* =========================================================================
 * Pages légales (1.20.0) : politique de confidentialité, mentions légales,
 * conditions de vente... Une même mise en page, dans l'esprit de Cabrio
 * Informatique : la date de mise à jour en pastille, l'essentiel en trois
 * cartes, le détail en colonne de lecture, les questions en accordéon.
 * Tout tient dans des blocs du cœur habillés par ces classes (cab-legal-*).
 * Le lavande (--bs-primary) ne sert qu'au décor : sur du blanc, il n'a pas
 * le contraste d'un texte. Les accents lisibles sont en corail
 * (--bs-secondary), en grand corps seulement.
 * ========================================================================= */
.cab-legal {
    --cab-legal-teinte: color-mix(in srgb, var(--bs-primary) 18%, #fff);
    --cab-legal-teinte-forte: color-mix(in srgb, var(--bs-primary) 35%, #fff);
    color: #5b5b5b;
}

/* La pastille « Mise à jour le » et le chapeau */
.cab-legal .cab-legal-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}
.cab-legal .cab-legal-maj {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    margin: 0 auto 1.25rem;
    padding: .45rem 1.1rem;
    border-radius: 999px;
    background: var(--cab-legal-teinte);
    color: var(--bs-dark);
    font-weight: 600;
    font-size: .95rem;
}
.cab-legal .cab-legal-maj::before {
    content: "\f073";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--bs-secondary);
}
.cab-legal .cab-legal-maj p,
.cab-legal .cab-legal-maj .wp-block-post-date {
    margin: 0;
}
.cab-legal .cab-legal-chapeau {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--bs-dark);
    margin-bottom: 0;
}

/* Titres de section */
.cab-legal h2 {
    color: var(--bs-dark);
    font-weight: 700;
}
.cab-legal h2 em {
    font-style: normal;
    color: var(--bs-secondary);
}
.cab-legal .cab-legal-titre-section {
    text-align: center;
    margin: 0 0 2rem;
}

/* L'essentiel : les trois cartes */
.cab-legal .cab-legal-cartes {
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.cab-legal .cab-legal-carte {
    position: relative;
    background: var(--cab-legal-teinte);
    border-radius: 1.25rem;
    padding: 2.75rem 1.75rem 1.75rem;
    margin-top: 1.75rem;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.cab-legal .cab-legal-carte:hover {
    transform: translateY(-4px) rotate(-.5deg);
    box-shadow: 0 .75rem 1.75rem rgba(72, 72, 72, .12);
}
.cab-legal .cab-legal-carte::before {
    position: absolute;
    top: -1.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--bs-secondary);
    color: #fff;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.35rem;
    line-height: 3.5rem;
    text-align: center;
    box-shadow: 0 0 0 .4rem #fff;
}
.cab-legal .cab-legal-chiffre {
    font-family: "Roboto", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--bs-secondary);
    margin: 0 0 .5rem;
}
.cab-legal .cab-legal-carte h3 {
    font-size: 1.2rem;
    color: var(--bs-dark);
    margin: 0 0 .75rem;
}
.cab-legal .cab-legal-carte p:last-child {
    margin-bottom: 0;
}

/* Le détail : une colonne de lecture */
.cab-legal .cab-legal-texte {
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.75;
}
/* 1.20.1 : le thème ôte la marge des paragraphes (css/blocks/core-paragraph.css) ;
   dans une colonne de lecture, deux paragraphes qui se suivent la retrouvent.
   Pas ceux d'un bloc Détails, qui a ses propres espacements (core-details.css). */
.cab-legal .cab-legal-texte p:not(.wp-block-details p) {
    margin-bottom: 1rem;
}
/* 1.21.0 : sauf le dernier d'un groupe (l'encadré des garanties des CGV),
   dont la marge s'ajoutait au rembourrage du bas. */
.cab-legal .cab-legal-texte .wp-block-group p:not(.wp-block-details p):last-child {
    margin-bottom: 0;
}
.cab-legal .cab-legal-texte h2 {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 3.5rem 0 1.25rem;
    font-size: 1.6rem;
}
.cab-legal .cab-legal-texte h2::before {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .85rem;
    background: var(--cab-legal-teinte-forte);
    color: var(--bs-dark);
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 2.75rem;
    text-align: center;
    transform: rotate(-6deg);
}
.cab-legal .cab-legal-texte h3 {
    font-size: 1.15rem;
    color: var(--bs-dark);
    margin: 2rem 0 .6rem;
    padding-left: .9rem;
    border-left: 4px solid var(--bs-primary);
}
.cab-legal .cab-legal-texte a,
.cab-legal .cab-legal-intro a,
.cab-legal .cab-legal-carte a {
    color: var(--bs-dark);
    text-decoration: underline;
    text-decoration-color: var(--bs-secondary);
    text-underline-offset: .2em;
}
.cab-legal .cab-legal-texte ul {
    padding-left: 1.25rem;
}
.cab-legal .cab-legal-texte li::marker {
    color: var(--bs-secondary);
}

/* Les icônes des titres et des cartes (Font Awesome 5, déjà chargé par le thème) */
.cab-legal .cab-legal-icone--coeur::before { content: "\f4be"; }
.cab-legal .cab-legal-icone--carte::before { content: "\f09d"; }
.cab-legal .cab-legal-icone--cookie::before { content: "\f564"; }
.cab-legal .cab-legal-icone--bouclier::before { content: "\f505"; }
.cab-legal .cab-legal-icone--colis::before { content: "\f49e"; }
.cab-legal .cab-legal-icone--partage::before { content: "\f0c0"; }
.cab-legal .cab-legal-icone--monde::before { content: "\f7a2"; }
.cab-legal .cab-legal-icone--sablier::before { content: "\f252"; }
.cab-legal .cab-legal-icone--balance::before { content: "\f24e"; }
.cab-legal .cab-legal-icone--cadenas::before { content: "\f023"; }
.cab-legal .cab-legal-icone--question::before { content: "\f059"; }
.cab-legal .cab-legal-icone--boutique::before { content: "\f54e"; }
.cab-legal .cab-legal-icone--plume::before { content: "\f303"; }
/* 1.20.1 : celles des mentions légales, des conditions de vente et des retours */
.cab-legal .cab-legal-icone--serveur::before { content: "\f233"; }
.cab-legal .cab-legal-icone--lien::before { content: "\f0c1"; }
.cab-legal .cab-legal-icone--tribunal::before { content: "\f0e3"; }
.cab-legal .cab-legal-icone--camion::before { content: "\f0d1"; }
.cab-legal .cab-legal-icone--retour::before { content: "\f0e2"; }
.cab-legal .cab-legal-icone--euro::before { content: "\f153"; }
.cab-legal .cab-legal-icone--contrat::before { content: "\f56c"; }
.cab-legal .cab-legal-icone--enveloppe::before { content: "\f0e0"; }
.cab-legal .cab-legal-icone--copyright::before { content: "\f1f9"; }

/* Tableaux et questions : depuis la 1.21.0, l'allure est celle de tout bloc
   Tableau et Détails du site (css/blocks/core-table.css, core-details.css). */

/* La main tendue de la fin */
.cab-legal .cab-legal-contact {
    max-width: 820px;
    margin: 3.5rem auto 0;
    padding: 2rem;
    border-radius: 1.25rem;
    background: var(--cab-legal-teinte);
    text-align: center;
}
.cab-legal .cab-legal-contact h2 {
    font-size: 1.5rem;
    margin: 0 0 .5rem;
}
.cab-legal .cab-legal-contact .wp-block-buttons {
    justify-content: center;
    margin-top: 1.25rem;
}
/* 1.20.1 : blanc sur lavande ne fait que 2:1 ; texte foncé au repos (4,6:1),
   blanc sur foncé au survol (9:1). Le corail ne passe ni avec l'un ni avec l'autre. */
.cab-legal .cab-legal-contact .wp-block-button__link {
    color: var(--bs-dark);
    font-weight: 600;
}
.cab-legal .cab-legal-contact .wp-block-button__link:hover,
.cab-legal .cab-legal-contact .wp-block-button__link:focus-visible {
    border-color: var(--bs-dark);
    background: var(--bs-dark);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .cab-legal .cab-legal-carte {
        transition: none;
    }
    .cab-legal .cab-legal-carte:hover {
        transform: none;
    }
}
