/* ===============================
   LOADER EN OVERLAY (hors flux)
================================ */
/* Overlay loader, en haut du bloc */
.pcof-instance {
    position: relative;
}

.pcof-loader-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    
    display: flex;
    justify-content: center;
    padding-top: 80px;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease-out, visibility 0.35s ease-out;
    z-index: 10;
}





#home-accueil {
	background: var(--rose);
}


.pcof-loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;     /* évite tout blocage après disparition */
}

#home-accueil{
	background(--rose);
}

/* ===============================
   CONTENU
================================ */

.pcof-content {
    opacity: 0;
    transition: opacity 0.45s ease;
   
}

.pcof-content:nth-of-type(1){
 background: var(--rose);
}
.pcof-instance.pcof-loaded .pcof-content {
    opacity: 1;
}


/* ===============================
   ESCALIER
================================ */

/* Base : invisible, légèrement plus bas */
.block-article-pcof {
    opacity: 0;
    transform: translate(0, 20px);/*translateY(12px)*/
    transition: opacity 0.45s ease-out, transform 0.45s ease-out;
    will-change: opacity, transform;
}

/* Apparition */
.block-article-pcof.animate-in {
    opacity: 1;
    transform: translate(0, 0);
	
}



/* ===============================
   SPINNER
================================ */
/* Boîte centrée contenant spinner + % */
.spinner-box {
    position: relative;
    width: 60px;
    height: 60px;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cercle qui tourne */
.pcof-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #fca6a6ff;
    border-top-color: #c30101;
    border-radius: 50%;
    animation: pcof-spin 0.8s linear infinite;
    position: absolute;
}

/* Pourcentage centré, ne tourne PAS */
.pcof-percent {
    position: absolute;
    font-weight: bold;
    font-size: 20px;
    color: #c30101;
}

@keyframes pcof-spin {
    to { transform: rotate(360deg); }
}



/* ===============================
   POURCENTAGE
================================ */

.pcof-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 20px;
    color: #c30101;
    pointer-events: none;
}

 @keyframes pcof-spin {
            to {
                transform: rotate(360deg);
            }
        }


/* --- Styles des Contrôles --- */

/* Le wrapper gère l'espace général entre le dernier article et le bouton */
.pcof-controls-wrapper {
    margin: 0;
    text-align: center;
    padding-bottom: 30px;
}

/* Le bouton lui-même */
.load-more-button-pcof {
    display: inline-block;
    /* Pas de marge sur le bouton lui-même */
    margin: 0; 
    padding: 0 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #0073aa; 
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.load-more-button-pcof:hover {
    background-color: #005177;
}

/* 🚨 CORRECTION FINALE : Le message de fin a ses propres marges 🚨 */
.no-more-articles-pcof {
    text-align: center;
    padding: 0;
    font-style: italic;
    color: #555;
    margin: 0;
    padding-bottom: 10px;
}

/*
 * Style pour le bouton "Voir Plus"
 */
.load-more-button-pcof {
    /* Assurez-vous que le bouton est en position relative si ce n'est pas déjà le cas */
    position: relative;
    /* Ajoutez de l'espace à gauche pour le signe plus */
    padding-left: 20px; 
}

.load-more-button-pcof {
	display: inline-block;
	margin: 0;
	padding: 10px 20px;
	font-size: 16px;
	cursor: pointer;
	background-color: #0073aa;
	color: white;
	border: none;
	border-radius: 5px;
	transition: background-color 0.3s;
	margin-bottom: 20px;
	font-weight: bold;
}