/*
Theme Name: g-storefront
Template:   storefront
*/

:root {
    --color-primary: #dacdef73;
}
body {
    font-family: 'Roboto', sans-serif;
    background-color: #FAF9F6;
    color:#383838;
}
.stone2-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


button:focus,
button:active,
a:focus,
a:active {
    outline: none;
}
.stone2-row {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
    background-color: #fff;
}

/* Zone gauche (signe) */
.stone2-left {
    flex: 0 0 130px;
    max-width: 130px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 0.5rem;
}
.imgBloc {
    padding:10px 0 15px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 1rem;
    justify-items: center;
    text-align: center;
}

.imgBloc div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.imgBloc img {
    width: 135px;
    height: auto;
}

.imgBloc h3 {
    margin: 0.5rem 0 0 0;
    font-size: 14px;
}
a{
    text-decoration:none !important;
}
/* Zone droite (texte) */
.stone2-right {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}
@media (max-width: 600px) {
    .stone2-row {
        flex-direction: column;
    }

    .stone2-left,
    .stone2-right {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .stone2-left {
        margin-left: auto;
        margin-right: auto;
    }
}
.stone-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stone-row {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
    background-color: #fff;
}

.stone-cell {
    flex: 1 1 33%;
    padding: 0.5rem;
    box-sizing: border-box;
}

.stone-label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
}
.entry-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom:15px !important;
    gap: 10px;
    align-items: center !important; /* Centrage vertical */
}

.title-img {
    width: 180px;
    max-width: 100%;
}

.text-block {
    max-width: 600px;
}
.hentry .entry-header{
    border-bottom: none;
    margin-bottom: 25px;
}
.hentry .featured-image img {
    max-height: 300px !important;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    margin-bottom: 0;
}

.citation {
    font-style: italic;
    position: relative;
}

.citation::before {
    content: "« "; /* espace insécable après le guillemet ouvrant */
}

.citation::after {
    content: " »"; /* espace insécable avant le guillemet fermant */
}
.entry-content .intro {
    text-align: justify;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #e2eaf9;
}
.entry-content .intro p:last-child{
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .entry-header {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }

    .text-block {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .title-img {
        width: 120px;
        flex-shrink: 0;
    }
}
h1 {
    font-size: 26px;
    font-weight: 600;
}
h2 {
    font-size: 24px;
    font-weight: 600;

}
h2:not(.faq-accordion h2) {
    margin-top:12px !important;
    margin-bottom: 12px !important;
}
.posts-list h2{
    margin-top:10px !important;
}
h3 {
    font-size: 20px;
    font-weight: 600;
    margin:20px 0 8px !important
}
.infoTbl-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #eee;
}

.infoTbl-row {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #eee;
    padding: 6px;
}

.infoTbl-title {
    font-weight: bold;
    color: #444;
    margin-bottom: 2px;
}

.infoTbl-content {
    color: #333;
}
@media (min-width: 600px) {
    .infoTbl-row {
        flex-direction: row;
        align-items: baseline;
    }

    .infoTbl-title {
        width: 150px;
        margin-bottom: 0;
    }

    .infoTbl-content {
        flex: 1;
    }
}
@media (max-width: 768px) {
    .stone-cell {
        flex: 1 1 100%;
    }
    .menu ul.children {
        display: none !important;
    }
}

.posts-list article{
    border-radius: 5px;
    width: 100%;
    padding: 15px 0;
    margin:10px 0

}
.hentry .entry-content  .posts-list a {
    text-decoration:none;
}
@media(max-width: 568px) {
    .col-full {
        margin-left: 12px;
        margin-right: 12px;
        padding: 0
    }
}

.posts-list .post {
    display: flex;
    flex-direction: column; /* Mobile : image au-dessus */
    align-items: flex-start;
    gap: 1rem; /* espace entre image et contenu */

}

.posts-list .post .post-thumbnail {
    flex-shrink: 0;

}
.hentry .posts-list .wp-post-image {
    margin-bottom:0;
}
.home.blog .site-header,.home.page:not(.page-template-template-homepage) .site-header,.home.post-type-archive-product .site-header {
    margin-bottom: 20px
}

.read-more {
    margin-top: 10px;
    display: block;
    text-align: right;
}

.read-more::after {
    content: " >";
    transition: margin-left 0.2s;
}
.read-more:hover::after {
    margin-left: 5px;
}
a.read-more:focus {
    outline: none; /* Supprime le contour dans tous les cas */
}

a.read-more:focus-visible {
    outline: 2px solid #666; /* Réactive un contour visible pour la navigation clavier uniquement */
}
.acf-pierres{
    border: solid 1px #e7e7e7;
    padding: 12px;
}
.acf-pierres > div {
    border-bottom: 1px solid #e7e7e7; /* trait gris */
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.acf-pierres > div:last-child {
    border-bottom: none; /* pas de trait pour le dernier */
}
@media(max-width: 568px) {
    .col-full {
        margin-left: 18px;
        margin-right: 18px;
        padding: 0
    }
}
.posts-list .post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.posts-list .post .post-thumbnail
{
    width:100%;
}
@media (min-width: 550px) {
    .col-full {
        max-width:850px;
    }
    .posts-list .post {
        flex-direction: row; /* Desktop : image à gauche */
        align-items: flex-start;
    }
    .posts-list .post .post-thumbnail
    {
        width:initial;
    }
    .posts-list .post img {
        width: 150px;
        height: 150px;
        object-fit: cover;
    }
}
.no-wc-breadcrumb .site-header{
    margin-bottom: 2em;
}
.handheld-navigation .menu{
    background-color: var(--color-primary);
    padding:15px;
}
.handheld-navigation ul li a{
    padding:6px;
    font-size:18px;
}
.handheld-navigation ul.menu li.current-menu-item > a{
    font-weight:bold;
    color:initial;
}

.site-header .site-branding img {
    height: auto;
    max-width: 400px;
    max-height: none
}





.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
    font-family: 'Segoe UI', sans-serif;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 2px !important;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    background-color: #fff;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pagination .page-numbers:hover {
    background-color: #fff6ea;
    border-color: #bbb;
    color: #000;
}

/* Pas d'effet sur la page active */
.pagination .current {
    background-color: #eb8d10;
    color: #fff;
    font-weight: bold;
    border: 1px solid #eb8d10;
    cursor: default;
    pointer-events: none;
    transition: none;
}







/* Masquer le menu desktop sur tous les écrans */
.main-navigation .primary-navigation {
    display: none !important;
}

/* Afficher le bouton hamburger partout */
.menu-toggle {
    display: block !important;
    position: relative;
    z-index: 10001;
}

/* Menu mobile en plein écran quand ouvert */
.main-navigation.toggled .primary-navigation {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 10000;
    overflow-y: auto;
    padding: 100px 40px 40px;
}

/* Centrer les liens du menu */
.main-navigation.toggled .primary-navigation ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation.toggled .primary-navigation li {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.main-navigation.toggled .primary-navigation a {
    display: block;
    padding: 6px 5px 12px;
    font-size: 22px;
    color: #333333;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.main-navigation.toggled .primary-navigation a:hover {
    background: #f5f5f5;
    color: #7f54b3;
}

/* Bouton hamburger reste visible en haut à droite */
.main-navigation.toggled .menu-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
}
/* Bloquer le scroll de la page quand le menu est ouvert */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* Menu en plein écran scrollable */
.main-navigation.toggled .primary-navigation {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 10000;
    overflow-y: auto;
    padding: 100px 40px 40px;
}
.site-header .site-branding img{
    max-width: 80px !important;
}

/* Header fixe avec logo et hamburger sur la même ligne */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #FAF9F6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    padding: 8px 0;
}

/* Masquer au scroll bas */
.site-header.header-hidden {
    transform: translateY(-100%);
}

/* Container du header */

body.menu-open .site-header .logo-sidebar {
    display: initial;
}
.site-header .logo-normal {   max-height: 50px;}
.site-header .logo-sidebar { display: none;  max-height: 50px;}
body.menu-open .site-header .logo-sidebar { display: block;  }
body.menu-open .site-header .logo-normal { display: none;  }



.sidebar-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    background: #FAF9F6;
    z-index: 999;
    overflow-y: hidden;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, visibility 0.45s;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    position: relative;
    z-index: 1002;
}
/* Sidebar menu layout */
.sidebar-menu .menu ul{
    display: block;
    width: 250px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}
.sidebar-menu.active {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}
.sidebar-content {
    padding: 4rem 0 4rem 0;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
/* Logo à gauche */
.site-branding {
    flex: 0 0 auto;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

/* Navigation à droite */
.storefront-primary-navigation {
    position: static;
    flex: 0 0 auto;
}

.storefront-primary-navigation .col-full {
    padding: 0;
}

/* Hamburger à droite */
.menu-toggle {
    display: block !important;
    margin: 0;
}

/* Masquer le menu desktop */
.primary-navigation {
    display: none !important;
}

/* Menu ouvert en plein écran */
.main-navigation.toggled .primary-navigation {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 10000;
    overflow-y: auto;
    padding: 100px 40px 40px;
}

/* Contenu de la page avec margin-top pour compenser le header fixe */
#content {
    margin-top: 130px;
}

/* Bloquer le scroll quand menu ouvert */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}


/* Container du header : logo à gauche, hamburger à droite */
.site-header .col-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;

    margin: 0 auto;
}

/* Logo à gauche */
.site-branding {
    flex: 0 0 auto;
}

.site-branding .custom-logo {
    max-height: 60px;
    width: auto;
}

/* Hamburger à droite */
.hamburger {
    margin-left: auto; /* Force le hamburger à droite */

    display: flex;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger:hover  {
    background-color:transparent;
    border-color: transparent;
}
.hamburger.active span{
    background: black;
}
.hamburger span {
    width: 35px;
    height: 4px;
    background: #393939;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.container.link-container{
    width: 100%;
}
.main-navigation ul li, .secondary-navigation ul li{
      display: block;
    text-align: center;
}
.main-navigation ul.menu>li>a, .main-navigation ul.nav-menu>li>a {
    padding: 8px 1em;
    font-size: 18px;
    font-weight: 600;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Bloquer le scroll quand menu ouvert */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}
.menu-item {
    position: relative;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%; /* ou une largeur fixe comme 100px */
    max-width: 330px;
    height: 1px;
    background-color: #e9e9e9;
}

/* Enlever la barre du dernier élément */
.menu-item:last-child::after {
    display: none;
}
h1, h2, h3, h4, h5, h6, .wc-block-grid__product-title {
    color: #4869a7;
}
.posts-list article.post {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 0;
}

.posts-list article.post::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background-color: #ddd; /* Ajustez la couleur selon votre design */
}

/* Enlever la ligne après le dernier article */
.posts-list article.post:last-child::after {
    display: none;
}