/*
Theme Name: Skyblog-theme
Theme URI: 
Author: Van Marty
Description: very cool theme for skyblog nostalgia
*/

/* ===== STYLE GÉNÉRAL ===== */

.site-container {
    display: flex;
    max-width: 1600px;      
    width: 95%;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;

 
}

.main-content {
    flex: 1;
    padding: 10px;
    order: 2;
    height: max-content;
  

  
}

body {
    font-family: "Roboto", sans-serif;

    color: white;
    margin: 0;
    padding: 0;
       background-image: url("img/fondecran.jpg");
}

a {
    text-decoration: 1px !important;
    text-underline-offset: .1em;
}

.left_sidebar {
    width: 200px;
    flex-shrink: 0;
    border: solid 1px deeppink;
    padding: 10px;
    order: 1;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: black;
    display: block;
}

.left_sidebar a {
    color: greenyellow;
}

@media (max-width:768px){
    .left_sidebar,
    .right_sidebar{
        display: none !important;
    }
}

.right_sidebar {
    width: 200px;
    flex-shrink: 0;
    border: solid 1px deeppink;
    padding: 10px;
    order: 3; 
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: black;
}

.logo {
    width: 15px;
}


.main-navigation {
    background-color: #adacacc5;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    flex-wrap: wrap;
}


.main-navigation a {
    padding: 10px 15px;
    color: black;
    font-size: large;
    text-decoration: none;
    display: block;
}

.main-navigation a:hover {
    color:white;
}


.search-container {
    display: flex;
    align-items: center;
}


.search-container form {
    display: flex;
    align-items: center;
    margin: 0;
}

.search-container input[type="search"] {
    padding: 8px 12px;
    background: white;
    color: black;
    border-radius: 10px;
    font-size: 14px;
}

.search-container input[type="submit"] {
    border: none;
    color: black;
    padding: 8px 15px;
    margin-left: 8px;
    border-radius: 4px;
    cursor: pointer;
}



.skyblog-tabs-buttons {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 15px;
}

.skyblog-tab {
    background: transparent !important;
    border: none !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: #ccc !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
}

.skyblog-tab-active {
    color: deeppink !important;
    border-bottom: 2px solid deeppink !important;
    margin-bottom: -1px !important;
    background: transparent !important;
}

.skyblog-tab:hover:not(.skyblog-tab-active) {
    color: #fff !important;
    background: transparent !important;
}

.post {
    border: 2px solid deeppink;
    margin-bottom: 20px;
    padding: 10px;
    background-color: black;
    height: max-content;
    
}
.post{
    height: max-content;
}

.post-title{
    background-color: deeppink;
    margin-top: -10px;
        margin-right: -10px;
            margin-left: -10px;
            padding:5px;
}
.photo-blog{
    margin-top: 0px;
}
.post-footer{

    margin-top: 50px;
}
.post-date{
    color:deeppink;
}
.wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

/*.post-body img */
.post-thumbnail-wrap img
{
    width: auto;
    max-width: 600px;      
    height: auto;
    display: block;
    margin: 0 auto;
}

/*.post-body img[src*="default.jpg"] {
    max-width: 500px;
}*/


.simple-social-icons {
    text-align: left;
    margin-top: 15px;
}

.simple-social-icons ul li {
    margin: 0 5px 0 0 !important;
}

/* Laisser Gutenberg gérer ses blocs */
.post-body .wp-block-media-text {
    color: black;
}

.post-body .wp-block-media-text__content {
    color: black;
}

/* ===== SOLUTION FINALE : Image sans casser l'alignement ===== */

/* 1. On limite l'image DANS le bloc, sans toucher au flottant */
.post-body .wp-block-image img,
.post-body figure.alignleft img,
.post-body .alignleft img {
    max-width: 300px !important;  /* ou mets 100% si tu veux qu'elle s'adapte, mais 300px correspond à ton ancien CSS */
    height: auto !important;
    width: auto !important;       /* CRUCIAL : on NE force PAS 100% pour ne pas casser le flottant */
}

/* 2. On dit au conteneur de ne pas forcer une largeur qui écrase le flottant */
.wp-block-image {
    max-width: fit-content !important; /* Le conteneur prend la taille de son contenu, pas 100% */
}

/* 3. On préserve le flottant "alignleft" que Gutenberg a créé */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

/* 4. Filet de sécurité : si l'image est trop grande, on la coupe, mais elle reste flottante */
.post {
    overflow: hidden;
}

.profil-pic-wrapper,
.profil-pic-wrapper2{
    width:150px;
    height:150px;
    border-radius: 100%;
    overflow: hidden;
    display: flex;
      align-items: center;
    justify-content: center;
    margin: 0 auto;    
}

.profil-pic,
.profil-pic2{
    width: 100%;
    height: auto;
    max-width: auto;
    max-height: auto;
    object-fit:cover;
}