/*
 Theme Name: storfront-socko
 Theme URI: https://example.com
 Description: Thème enfant de Storefront pour Socko
 Author: Socko Sàrl
 Template: storefront
 Version: 1.0.150
 Text Domain: storfront-socko
*/
.radin-search{
    padding-top: 10px;
}
.search-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;             /* optionnel */
    white-space: nowrap;  /* évite tout retour ligne */
}

.search-form input,
.search-form button {
    white-space: nowrap;
}

.search-form input {
    flex: 1;              /* input s’adapte */
    min-width: 0;         /* empêche l'éclatement */
    max-width: 200px;

}

.search-form button {
    flex-shrink: 0;       /* le bouton ne rapetisse pas */
}

.msg_fin_today{
    background-color: #be0000;
    color: white;
    font-size: 80%;
    padding:2px 10px;
    line-height: 1rem;
}
.msg_fin_tomorrow{
    background-color: #e37700;
    color: white;
    font-size: 80%;
    line-height: 1rem;
    padding:2px 10px;
}
.share-box {
    padding-top: 1em;
    border-top: 1px solid rgba(0, 0, 0, .05);
    display: flex;
    align-items: flex-start; /* tout aligne en haut */
    gap: 10px; /* espace entre les éléments */
}
.share-box span {
    padding: 10px 0; /* ajuste si besoin */
}

/* Classe utilitaire pour masquer */
.hidden {
    display: none !important;
}

.posts-list .post.je_participe .post-thumbnail  img{
    filter: grayscale(100%);
}
.posts-list article.je_participe{
    border-color: #4caf50;
    background-color: #fafffa;
}

.posts-list article.sticky_bonplans.je_participe,
.posts-list article.sticky_cat.je_participe{
    border-color: #0f5411 !important;
    background-color: #187c3f;
}

a:focus,
a:active {
    outline: none;
    border: none;
}
a{
    text-decoration: none !important;
}
#billing_state_field, #billing_address_2{
    display:none !important;
}

.chapo {
    text-align: justify;
    font-weight: 600;
}

article.type-post .entry-content aside {
    background-color: #ebe2fb;
    padding: 20px;
    margin: 30px 0;
}

article.type-post .entry-content aside h3 {
    font-weight: bold;
    margin: 0;
    color:black;
}
article.type-post .entry-content aside p {
    margin: 0 2px;
    color:black;
}

.overlay-link {
    position: relative;     /* permet de positionner l’overlay */
    display: inline-block;  /* garde la taille de l’image principale */
}
.texte-apres-archive{
    margin:15px 0;
}

.overlay-link .corner-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 66px !important;
    /* aucune largeur ni hauteur définie → conserve la taille native */
}
.overlay-link .right-badge {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 25px !important;
    /* aucune largeur ni hauteur définie → conserve la taille native */
}

.sticky_cat{
    background-color: #8c46a8;
    border: solid 1px #8c46a8 !important;
}
.sticky_bonplans{
    background-color: #d48106;
    border: solid 1px #a1640a !important;
}
.sticky_cat, .sticky_bonplans,
.sticky_cat a, .sticky_bonplans a,
.sticky_cat h2 a, .sticky_bonplans  h2 a{
    color: white;
}

.finConcours{
    font-weight: bold;
}
.finConcoursRed{
    font-weight: bold;
    color: red;
}
.finConcoursEchu{
    font-weight: bold;
    text-align: center;
    background-color: #d8d8d8;
    border: solid 1px black;
    padding: 20px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* par défaut 4 colonnes */
    gap: 16px;
}
.site-footer a{
    text-decoration: none!important;
    font-size: 17px;
}
.site-footer{
    padding-bottom: 30px;
}

.grid-4 .col {

    padding: 20px;

    border-radius: 8px;
}
.grid-4 .col h2{
    font-size: 19px;
    font-weight: bold;
}

/* Entre 451px et 768px → 2 colonnes */
@media (max-width: 768px) and (min-width: 451px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* En dessous de 450px → 1 colonne */
@media (max-width: 450px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}
a{
    text-decoration: none;
}
.reponse-item{
    max-width: 400px;   /* largeur max */
    margin: 15px 0 15px auto;
    display: flex;
    align-items: stretch;          /* mêmes hauteurs pour image | texte */
    gap: 16px;
    border-radius: 12px;
    padding:15px;
    border: solid 4px black;
    overflow: hidden;
    background: #e0e0e0;
}

.reponse-item.clock{
    border: solid 1px #8c46a8;
    background: #fbf1ff;
    margin: 20px 0;
    padding:10px;
    max-width: 100%;
}
.reponse-item.clock .response-body{
    font-size: 26px;
    color: #8c46a8;
    line-height: 1.7rem;
    padding: 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reponse-item.clock.finish{
    border: solid 1px #ababab;
    background: #e0e0e0;
    margin: 20px 0;
    padding:10px;
    max-width: 100%;
}
.reponse-item.clock.finish .response-body{
    color: #5d5d5d;
}

.reponse-item h3{
    font-size: 18px !important;
    font-weight: bold;
    font-size: 20px;
    margin: 8px 0;
}
.reponse-item.clock h3{
    color: #8c46a8;
}
.reponse-item p{
    padding-left: 12px;
    margin: 0;
}
.reponse-item .response-thumb{
    min-width: 80px;
}






.exclusif-item{
    margin: 15px 0 15px auto;
    display: flex;
    align-items: stretch;          /* mêmes hauteurs pour image | texte */
    gap: 16px;
    border-radius: 12px;
    padding:15px;
    border: solid 4px #ff6a6a;
    overflow: hidden;
    background: #ffe2e2;
}
.exclusif-item.clock.finish .response-body{
    color: #5d5d5d;
}
.exclusif-item h3{
    font-size: 18px !important;
    font-weight: bold;
    font-size: 20px;
    margin: 8px 0;
    color: #570000;
}
.exclusif-item p{
    padding-left: 0;
    margin: 0;
}
.exclusif-item .response-thumb{
    min-width: 80px;
}



.participe-item{
    margin: 15px 0 15px auto;
    display: flex;
    align-items: stretch;          /* mêmes hauteurs pour image | texte */
    gap: 16px;
    border-radius: 12px;
    padding:15px;
    border: solid 4px #04b204;
    overflow: hidden;
    background: #f0fdf0;
}


.participe-item h3{
    font-size: 18px !important;
    font-weight: bold;
    font-size: 20px;
    margin: 8px 0;
    color: #00a607;
}
.participe-item.clock h3{
    color: #8c46a8;
}
.participe-item p{
    padding-left: 0;
    margin: 0;
}
.participe-item .response-thumb{
    min-width: 80px;
}




/* Colonne image */

.reponse-thumb {
    flex: 0 0 220px;               /* largeur fixe de la colonne image */
    display: grid;                 /* permet d'étirer l'image */
    place-items: center;
    background: #f8fafc;
}
#picdark, #picstop, #pichappy {
    width: 100px !important;
    max-width: 100% !important;
}
#picclock, #picclock_finish {
    width: 55px !important;
    max-width: 100% !important;
}



/* Colonne texte */
.reponse-body,
.clock-body{
    flex: 1 1 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;       /* centre verticalement le texte */
}


body{
    font-size: 19px;
}
h1{
    font-size: 26px;
    line-height: 1.4;
}
.highlight {
    background-color: #8c46a8;
    font-size: 23px;
    color: white;
    text-align: center;
    padding: 20px;
    margin: 30px 0;
}
.site-header{
    background:
            url("/wp-content/themes/storefront-socko/assets/images/economiser-tirelire.png") no-repeat right center,
            linear-gradient(90deg, #d3d3d3 0%, #ffffff 50%, #ededed 100%);
    background-size: auto 100%, 100% 100%; /* image: hauteur=div ; gradient: couvre tout */
    /*padding-right: 120px;*/
}
.site-header .site-title a{

    color: #8c46a8;
    text-transform: uppercase;
    font-size: 48px;
    font-family: 'Arial Black', Arial, Helvetica, Sans-Serif;
}
.site-header .site-branding {
    width: 140px !important;
}
a.btn-gradient, a.btn-gradient-green{
    text-decoration: none !important;
}
.btn-gradient, .btn-gradient-green {
    display: inline-block;
    padding: 12px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin: 15px 0 25px 0;
    background: linear-gradient(45deg, #8c46a8, #b76cf5);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}
.btn-gradient-green {
    background: linear-gradient(45deg, #04b204, #065f09);
}
.btn-gradient:hover {
    background: linear-gradient(45deg, #b76cf5, #8c46a8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.btn-gradient-green:hover {
    background: linear-gradient(45deg,  #065f09,#04b204);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}



.site-header .site-description{
    line-height: 20px;
    color: #333;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}
.site-header .custom-logo-link img {
    width: initial;
}

h2, .alpha{
    font-size: 26px;
}
.sticky .entry-title::before{
    content: initial;
}

.site-header a {
    outline: none;
}

.site-header a:focus,
.site-header a:active {
    outline: none;
    box-shadow: none;
}

.posts-list article {
    border: solid 1px #e1e1e1;
    border-radius: 5px;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
}

.hentry .entry-content .posts-list a {
    text-decoration: none;
}
.posts-list .post {
    display: flex;
    flex-direction: column; /* Mobile : image au-dessus */
    align-items: flex-start;
    gap: 1rem; /* espace entre image et contenu */
    margin-bottom: 2rem;


}

.posts-list .post .post-thumbnail {
    flex-shrink: 0;

}

.hentry .posts-list .wp-post-image {
    margin-bottom: 0;
}

.posts-list .post img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.posts-list .post .post-thumbnail {
    width: 100%;
}
.piklastday{
    margin-bottom: 20px !important;
}
.piklastday h2{
    display: flex;
    align-items: center;       /* aligne verticalement */
    gap: 8px;
}
.piklastday li{
    margin: 5px 0 7px 0;
}
#picclockside{
    width: 55px;               /* optionnel : ajuste la taille */
    height: auto;
    display: block;
}
#piccnew{
    width: 55px;               /* optionnel : ajuste la taille */
    height: auto;
    display: block;
}

@media (max-width: 600px) {

    .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;
    }
        .posts-list .post {
            flex-direction: row; /* Desktop : image à gauche */
            align-items: flex-start;
        }

    .site-header .custom-logo-link img{
        width: 100px;
    }
    .site-header .site-branding {
        width: 105px !important;
    }
    .site-header .custom-logo-link img{
        width: 105px;
    }
    .site-header .site-title a{
        font-size: 32px;
    }
}

/* Carte de post */
.posts-list .post {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-direction: row;            /* Desktop : image à gauche */
}

/* Bloc image */
.posts-list .post .post-thumbnail {
    flex: 0 0 200px;                /* largeur fixe de la colonne image */
    width: auto;                    /* ne pas forcer 100% */
}
.posts-list .post .post-thumbnail a,
.posts-list .post .post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;                   /* garder les proportions */
    object-fit: cover;              /* optionnel si tu fixes une hauteur */
}
.posts-list .post .post-thumbnail img {
    max-height: 150px;
    object-position: center;
    margin-bottom: 0;
}

/* Bloc texte */
.posts-list .post .excerpt {
    flex: 1;
    max-width: 100%;
}

#secondary{
        margin-top: 10px;
}

/* Cacher les vignettes vides (si certains posts n'ont pas d'image) */
.posts-list .post .post-thumbnail:empty {
    display: none;
}
.blktop{
    margin-bottom: 20px;background-color: #c20101;
}
.blklastday{

}
.blktop .blktop_title{
    width:100%;color:white;padding:2px;text-align: center;
}

.blktop .blktop_link{
    padding:5px 5px 8px 5px;line-height: normal;text-align: center
}
.blktop img  {
    margin-left: auto;
    margin-right: auto;
}
.wp-block-latest-posts__post-title{
    padding-bottom: 3px;
}
/* Mobile : image au-dessus du texte */
@media (max-width: 600px) {
    .posts-list .post {
        flex-direction: column;
    }
    .posts-list .post .post-thumbnail {
        flex: 0 0 auto;
        width: 100%;
    }
    #picclock, #picclock_finish {
        width: initial !important;
        max-width: 100% !important;
    }
}
@media (max-width: 767px) {
    #site-navigation{
        margin-top: 20px;
    }

    #site-navigation ul{
        padding: 7px 15px;
        background-color: rgba(255, 255, 255, 0.57);
    }

    .main-navigation ul li a{
        padding: 8px!important;
    }
}




