/* Styles de base pour les blocs Gutenberg */
.main-content {
    max-width: 80vw;
    margin: 0 auto;
    padding: 20px; /* Un peu de padding pour le confort */
}

.wp-block {
    margin-bottom: 20px; /* Espacement entre les blocs */
}

.wp-block[data-align="wide"] {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.wp-block[data-align="full"] {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.wp-block-gallery .blocks-gallery-item {
    flex: 1 1 calc(33.33% - 10px); /* Diviser les images de la galerie en 3 */
}

/* Citations */
.wp-block-quote, .wp-block-pullquote { 
    font-style: italic;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #00aaff;
    color: white;
}

/* Tableaux */
.wp-block-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.wp-block-table th, .wp-block-table td {
    padding: 10px;
    border: 1px solid white;
}

/* Assurer que les blocs large et plein s'alignent correctement */
.wp-block[data-align="wide"] {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.wp-block[data-align="full"] {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Appliquer des styles généraux aux blocs de texte */
/*, p, span, li, td, th */
.wp-block-paragraph {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: white;
}

/* Titres */
.wp-block-heading{
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

/* Boutons */
.wp-block-button, .wp-block-button__link {
    background-color: blue;
    padding: 1rem 2rem;
    color: white;
    display: block;
    text-align: center;
    text-decoration: none;
    margin: 0 auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: fit-content;
    font-family: 'Gobold Light';
    letter-spacing: .4px;
}

.wp-block-button:hover, .wp-block-button__link:hover{
    background-color: blue;
    transform: scale(1.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: rgba(blue, 0.7);
}

/*.wp-block-button__link {
    background-color: #00aaff;
    color: black !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
}

.wp-block-button__link:hover {
    background-color: #66ccff;
    color: black !important;
}*/

/* Code et préformaté */
pre, code {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px;
    border-radius: 5px;
}

/* Listes */
ul, ol {
    color: white;
}

/* Galerie */
.wp-block-gallery .blocks-gallery-item {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Formulaires */
input, textarea {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid white;
    padding: 10px;
}

/* Pour les écrans plus petits, rendre les blocs responsives */
@media (max-width: 992px) {
    .wp-block {
        margin-bottom: 15px;
    }

    .wp-block-image img {
        max-width: 100%;
        height: auto;
    }

    .wp-block-gallery .blocks-gallery-item {
        flex: 1 1 100%;
    }

    .wp-block-table {
        width: 100%;
    }
}
