/*
Theme Name: Voyage Astro
Theme Description: Thème WordPress personnalisé pour le blog de photographie astrologique. Basé sur Tailwind CSS via CDN.
Author: Fabien
Version: 1.7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: voyage-astro
*/

/* 
 * Personnalisation de la pagination WordPress pour Tailwind sans compiler
 */
.template-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.template-pagination .page-numbers {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    color: white;
}

.template-pagination .page-numbers:hover {
    background-color: #292938;
}

.template-pagination .page-numbers.current {
    background-color: rgb(192 132 252 / 0.2);
    font-weight: 700;
    color: rgb(192 132 252);
}

/* Centrage des descriptions d'images */
.prose figcaption,
.wp-caption-text {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Alignements WordPress par défaut */
.aligncenter,
div.aligncenter,
figure.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Pour les figures, display: table permet de restreindre la largeur à celle de l'image
   puis de centrer le bloc via margin: auto */
figure.aligncenter {
    display: table;
}

/* S'assurer que l'image elle-même est centrée si c'est un bloc */
.aligncenter img,
img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}


/* Clearfix pour les flottants dans le contenu */
.prose::after {
    content: "";
    display: table;
    clear: both;
}