/* =============================================================================
   ALKANTARA — Feuille de styles principale
   Version : 2.0
   Auteur   : Optimisé par lead dev
   Stack    : WordPress / Gutenberg / Blocksy / Stackable
   ============================================================================

   TABLE DES MATIÈRES
   ──────────────────
   1. BASE
   2. HEADER
   3. HERO — PAGE D'ACCUEIL
   4. ANIMATIONS D'ENTRÉE
   5. SECTION RÉALISATIONS
   6. CARTES STACKABLE
   7. FOOTER
   8. RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================================ */


/* =============================================================================
   1. BASE
   ============================================================================ */

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* =============================================================================
   2. Header
============================================================================= */

/* =============================================================================
   Header — Fix flash transparence Blocksy (pages hors Home)
   Cible la transition de data-sticky pendant le scroll
============================================================================= */

body.is-not-home [data-sticky],
body.is-not-home [data-header],
body.is-not-home [data-sticky="fixed:shrink"],
body.is-not-home [data-sticky="fixed"] {
    background-color: var(--theme-palette-color-4) !important;
    --rowBackground: var(--theme-palette-color-4) !important;
}


/* =============================================================================
   3. HERO — PAGE D'ACCUEIL
   ============================================================================ */

.hero-home {
    overflow: hidden;
}

.hero-home video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.hero-home .wp-block-image img {
    max-width: 100%;
    height: auto;
}

.hero-home h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-home h2 {
    font-size: 24px;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
}

.wp-block-stackable-column.column-push-bottom {
    margin-top: auto;
}


/* =============================================================================
   4. ANIMATIONS D'ENTRÉE
   ============================================================================ */

.animate-left,
.animate-right {
    opacity: 0;
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.animate-left {
    transform: translateX(-60px);
}

.animate-right {
    transform: translateX(60px);
    transition-delay: 0.2s;
}

.animate-left.is-visible,
.animate-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-left.delay-2 { transition-delay: 0.4s; }
.animate-left.delay-3 { transition-delay: 0.6s; }

.fx-section {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s ease, transform 1s ease;
}

.fx-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =============================================================================
   5. SECTION RÉALISATIONS — titre au survol
   ============================================================================ */

/* ─── Portfolio Gallery : typo des filtres ─── */
.pfg-filter,
.pfg-filter a,
.pfg-filter button,
.pfg-filter li {
  font-family: "Poppins", sans-serif !important;
  font-size: 16px;
}

/* =============================================================================
   7. FOOTER
   ============================================================================ */

.ct-footer .wp-block-image img {
    width: auto;
    max-width: 100px;
    height: auto;
}

.ct-footer p a {
	text-decoration: underline !important;
	text-underline-offset: 6px !important;
    text-decoration-thickness: 1px;
}

.ct-footer p a:hover {
	text-decoration-thickness: 2px !important;
}

.blocksy-footer-credits {
	display:flex;
    flex-wrap:wrap;
    gap: 12px;
    align-items: center;
    justify-content: end;
}

.blocksy-footer-credits p a {
	text-decoration: none;
    transition: color 0.3s ease;
    }

.blocksy-footer-credits a:hover {
	text-decoration: underline;
    text-underline-offset: 4px;

}

/* =============================================================================
   8. RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================================ */

@media only screen and (max-width: 768px) {

    .hero-home {
        min-height: 90vh;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-home h1,
    .hero-expertises h1 {
        display: none;
    }

    .hero-home h2 {
        font-size: 18px;
        line-height: 1.2;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .hero-home .wp-block-buttons {
        gap: 20px;
        margin-top: 40px;
    }

    .hero-home .wp-block-button {
        width: 45%;
        max-width: 320px;
    }

    .hero-home .wp-block-button__link {
        width: 100%;
        text-align: center;
    }

    .hero-home .wp-block-image img {
        width: 260px;
    }

    .animate-left,
    .animate-right {
        transform: translateY(40px);
        transition-delay: 0s;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .animate-left.is-visible,
    .animate-right.is-visible {
        transform: translateY(0);
    }

    .wp-block-group-is-layout-grid {
        grid-template-columns: 1fr;
    }


    .cards-wrapper {
        flex-wrap: wrap;
    }

    .cards-wrapper > * {
        width: 100%;
    }

}