/* 
Theme Name: Insuffle v2 - Radical (Legacy Support)
Description: Styles extracted from the previous theme to support existing content blocks and custom animations.
*/

/* --- BUTTONS --- */
.wp-block-button__link,
button,
.button,
input[type="button"],
input[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #000;
    background-color: #ffeb00;
    /* Fond jaune */
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 5px 5px 0px #000;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1.5;
}

.wp-block-button__link:hover,
button:hover,
.button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background-color: #fff;
    color: #ffeb00;
    border: 2px solid #ffeb00;
    box-shadow: 5px 5px 0px #ffeb00;
}

.wp-block-button__link:active,
button:active,
.button:active,
input[type="button"]:active,
input[type="submit"]:active {
    background-color: #ffde00;
    box-shadow: none;
    transform: translateY(4px);
}

/* Ajustements pour WordPress */
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(:hover) {
    color: #000;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid #ffeb00;
    color: #ffeb00;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #ffeb00;
    color: #000;
}

/* --- TEXT ALIGNMENT --- */
p.has-text-align-center.has-large-font-size strong {
    display: block;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Pour s'assurer que le paragraphe lui-même est bien centré */
p.has-text-align-center.has-large-font-size {
    text-align: center;
    width: 100%;
}

/* --- HEADER TITLES & MARK --- */
.header-titles .site-description,
.header-titles .screen-reader-text {
    font-weight: bold;
}

.header-titles mark {
    background-color: yellow;
    color: black;
}

mark {
    display: inline-block;
    transform: rotate(-2deg);
    /* Inclinaison de 3 degrés */
    padding: 0 2px;
    background-color: transparent;
}

mark::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0.5em;
    z-index: -1;
    transform: skew(-10deg);
}

/* --- GALLERY --- */
.wp-block-gallery.has-nested-images {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 20px 0;
}

.wp-block-gallery.has-nested-images figure.wp-block-image {
    margin: 0;
    width: auto !important;
}

.wp-block-gallery.has-nested-images img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* --- BLOC CHIFFRES (Stats) --- */
.wp-block-group .bloc-chiffres {
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 10px;
}

.wp-block-group .bloc-chiffres:nth-child(even) {
    transform: rotate(2deg);
}

.wp-block-group .bloc-chiffres:hover {
    transform: rotate(0deg) scale(1.12);
    box-shadow: 0 0 25px rgba(100, 132, 174, 0.6);
    z-index: 1;
}

.wp-block-group .bloc-chiffres h3 {
    margin-top: 0;
}

.wp-block-group .bloc-chiffres p[style*="font-size:85px"] {
    margin: 20px 0;
    transition: color 0.3s ease;
}

.wp-block-group .bloc-chiffres:hover p[style*="font-size:85px"] {
    color: #6484ae;
}

/* --- ANIMATIONS (From JS injections) --- */
.animated-line {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.animated-line.visible {
    opacity: 1;
}

mark {
    background-color: yellow;
    transition: background-color 0.5s ease-in-out;
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-down-text {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.rotating-text-container {
    display: block;
    height: 1.2em;
    overflow: hidden;
}

/* --- TWENTIG / GUTENBERG COMPATIBILITY HELPERS --- */
/* Basic resets for some specific classes found in the HTML */
.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.has-accent-background-color {
    background-color: #ffffff;
    /* Fallback based on provided CSS */
    color: #1f3a8b;
}

.has-subtle-background-color {
    background-color: #254abb;
    color: #ffffff;
}

.has-text-align-center {
    text-align: center;
}

.has-large-font-size {
    font-size: 1.5em;
}

/* Fix for columns stacking */
@media (max-width: 782px) {
    .wp-block-columns {
        flex-direction: column;
    }

    .wp-block-column {
        flex-basis: 100% !important;
        margin-bottom: 1em;
    }
}