
/* Correction défilement horizontal global */
* {
    box-sizing: border-box;
}

.announcement-box {
    position: relative;
    width: 66.666%;
    margin: 0 auto;
    background: linear-gradient(124deg, #204297, #1e3a8a, #146485, #3b82f6, #1d4ed8, #0284c7, #204297);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 10px 40px rgba(32, 66, 151, 0.3);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}


.container-fluid {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.container {

    overflow-x: hidden !important;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
}

/* Corrections spécifiques pour éviter le débordement */
.d-flex {
    overflow: hidden !important;
}

/* Correction newsletter */
.form-control {

    flex-shrink: 1;
}

.btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* CSS pour ajouter espacement après les phrases */

.smart-spacing p {
    margin-bottom: 0;
    line-height: 1.6;
}

.smart-spacing .sentence {
    display: inline-block;
    margin-bottom: 1rem;
    width: 100%;
}

/* Configuration des colonnes journal */

.journal-columns {
    column-count: 2;
    column-gap: 2rem;
    column-rule: 1px solid #e5e7eb;
    text-align: justify;
    padding-bottom: 30px;
    padding-top: 20px;
}

@media (max-width: 768px) {
    .journal-columns {
        column-count: 1;
        column-rule: none;
    }
}


/* VIMEO Version responsive 16:9 */
.video-container-responsive {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    background: #000;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* SOCIAL ICON */

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(237, 221, 195, 0.62) 0%, #edddc3 100%);
    color: #204297;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    margin: 0 auto;
    box-shadow:
            0 2px 8px rgba(32, 66, 151, 0.08),
            0 1px 2px rgba(32, 66, 151, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 0.5px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(180deg, #204297 0%, #1a3575 100%);
    color: #ffffff;
    box-shadow:
            0 8px 24px rgba(32, 66, 151, 0.25),
            0 4px 8px rgba(32, 66, 151, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.social-icon:active {
    transform: translateY(-1px) scale(1.02);
}

/* SOCIAL ICON COMPACT */

.social-compact-container {
    display: inline-flex;
    gap: 0;
    background: #f2f5ff;
    padding: 8px;
    border-radius: 50px;
}

.social-compact-wrapper {
    display: flex;
    justify-content: center;
}

.social-compact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: #204297;
    font-size: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
    margin: 0 2px;
}

.social-compact-icon:hover {
    background: white;
    color: #204297;
    transform: scale(1.05);
}

.social-compact-icon:active {
    transform: scale(0.98);
}

/* CAROUSEL TICKER - Page Creator sans number */

/* Style global pour tous les carrousels sans éléments .number */
.carouselTicker__item .tag-item:not(:has(.number)) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: auto !important;
    width: auto !important;
    white-space: nowrap !important;
    padding: 8px 16px !important;
    border: 1px solid var(--tc-neutral-300) !important;
    background-color: var(--tc-system-white) !important;
    color: var(--tc-neutral-900) !important;
    text-decoration: none !important;
    transition: all 0.3s ease-in-out !important;
}

/* Ajustements pour le texte sans number */
.carouselTicker__item .tag-item:not(:has(.number)) .text {
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

/* Forcer l'affichage en ligne horizontale pour les carrousels sans number */
.carouselTicker__list:has(.tag-item:not(:has(.number))) {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    white-space: nowrap !important;
}

.carouselTicker__list:has(.tag-item:not(:has(.number))) .carouselTicker__item {
    flex-shrink: 0 !important;
    display: inline-block !important;
    float: none !important;
    margin: 0 7.5px !important;
}

/* Hover effects pour les éléments sans number */
.carouselTicker__item .tag-item:not(:has(.number)):hover {
    border-color: var(--tc-neutral-500) !important;
    background-color: var(--tc-neutral-50) !important;
}

/* CARD */

.article.card-coming .card-body {
    border: 1px solid var(--tc-neutral-200);
    border-radius: 20px;
    display: flex;
    padding: 25px;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.6);
    margin: -40px 8px 0;
    gap: 10px;
    backdrop-filter: blur(15px);
}

/* STAR ANIMATIONS */

/* Animation de base pour toutes les étoiles */
.star-animation {
    transition: all 0.4s ease;
    transform-origin: center;
    opacity: 0;
    transform: translateY(15px) scale(0.9);
}

/* Animation au scroll avec classe CSS simple */
.star-animation.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animation de scintillement discret */
@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Animation de rotation très lente */
@keyframes starRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations spécifiques pour chaque étoile - plus subtiles */
.star-1.visible {
    animation: starTwinkle 4s linear infinite;
    animation-delay: 0.5s;
    transition-delay: 0.1s;
}

.star-2.visible {
    animation: starTwinkle 15s linear infinite;
    animation-delay: 0.5s;
    transition-delay: 0.3s;
}

.star-3.visible {
    animation: starTwinkle 6s linear infinite;
    animation-delay: 0.5s;
    transition-delay: 0.5s;
}

/* Animations au hover très subtiles */
.star-animation:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}
