/* =============================================
   HOME.CSS — V3 Stitch — Page d'accueil
   ============================================= */

/* -----------------------------------------
   HERO — Image de fond + overlay bleu
   ----------------------------------------- */

.lbe-hero-v3 {
    background: var(--lbe-bleu) center / cover no-repeat;
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.lbe-hero-v3__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 90, 130, 0.6);
    z-index: 0;
}

.lbe-hero-v3 .lbe-container {
    position: relative;
    z-index: 1;
}

/* Logo centré au-dessus du titre */
.lbe-hero-v3__logo {
    display: block;
    max-height: 120px;
    margin: 0 auto 4rem;
   filter: brightness(0) invert(1);
}

/* Décoration courbe en bas du hero */
.lbe-hero-v3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--lbe-gris-clair);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 1;
}

.lbe-hero-v3__titre {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.lbe-hero-v3__soustitre {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-top: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.lbe-hero-v3 .btn-lbe {
    margin-top: 2rem;
}

/* -----------------------------------------
   BLOCS V3 — Colonnes Gutenberg avec cercle CSS
   ----------------------------------------- */

.lbe-blocs-v3 {
    background: var(--lbe-gris-clair);
    padding: 4rem 0 3rem;
}

.lbe-blocs-v3 > .wp-block-columns {
    gap: 1.5rem;
}

.lbe-blocs-v3 > .wp-block-columns > .wp-block-column {
    flex: 1 1 0 !important;
}

.lbe-bloc-v3 {
    background: #fff;
    border-radius: var(--lbe-radius-lg, 1rem);
    padding: 3.5rem 1.75rem 2rem;
    box-shadow: 0 4px 16px rgba(6, 90, 130, 0.08);
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 2rem;
}

.lbe-bloc-v3:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(6, 90, 130, 0.14);
}

/* Cercle icône en CSS pur via ::before */
.lbe-bloc-v3::before {
    content: '';
    width: 64px;
    height: 64px;
    border-radius: 50%;
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    background-size: 28px 28px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Coeur — Notre Vision */
.lbe-bloc-v3--bleu::before {
    background-color: var(--lbe-bleu);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.42 4.58a5.4 5.4 0 0 0-7.65 0l-.77.78-.77-.78a5.4 5.4 0 0 0-7.65 0C1.46 6.7 1.33 10.28 4 13l8 8 8-8c2.67-2.72 2.54-6.3.42-8.42z'/%3E%3C/svg%3E");
}

/* Calendrier — Événements */
.lbe-bloc-v3--turquoise::before {
    background-color: var(--lbe-turquoise);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='4' rx='2' ry='2'/%3E%3Cline x1='16' x2='16' y1='2' y2='6'/%3E%3Cline x1='8' x2='8' y1='2' y2='6'/%3E%3Cline x1='3' x2='21' y1='10' y2='10'/%3E%3C/svg%3E");
}

/* User+ — Rejoignez-nous */
.lbe-bloc-v3--dore::before {
    background-color: var(--lbe-dore);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cline x1='19' x2='19' y1='8' y2='14'/%3E%3Cline x1='22' x2='16' y1='11' y2='11'/%3E%3C/svg%3E");
}

/* Titres et textes dans les blocs */
.lbe-bloc-v3 h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lbe-bleu);
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.lbe-bloc-v3 p {
    font-size: 0.9rem;
    color: var(--lbe-gris);
    line-height: 1.6;
}

/* -----------------------------------------
   CARDS ACTUALITÉS V3
   ----------------------------------------- */

.lbe-card-v3 {
    background: #fff;
    border-radius: var(--lbe-radius-lg, 1rem);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lbe-card-v3:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(6, 90, 130, 0.12);
}

.lbe-card-v3__image {
    display: block;
    overflow: hidden;
}

.lbe-card-v3 .lbe-card-v3__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.lbe-card-v3__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.lbe-card-v3:hover .lbe-card-v3__image img {
    transform: scale(1.03);
}

.lbe-card-v3__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

h2.lbe-card-v3__titre,
h3.lbe-card-v3__titre,
.lbe-card-v3__titre {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
}

.lbe-card-v3 .lbe-card-v3__titre a {
    color: var(--lbe-noir);
    text-decoration: none;
}

.lbe-card-v3 .lbe-card-v3__titre a:hover {
    color: var(--lbe-turquoise);
}

.lbe-card-v3__date {
    font-size: 0.8rem;
    color: var(--lbe-gris);
    margin-bottom: 0.75rem;
}

.lbe-card-v3__excerpt {
    font-size: 0.875rem;
    color: var(--lbe-gris);
    line-height: 1.5;
    margin-top: auto;
}

/* -----------------------------------------
   RESPONSIVE
   ----------------------------------------- */

@media (max-width: 768px) {
    .lbe-hero-v3 {
        padding: 3.5rem 0 3rem;
        min-height: 280px;
    }

    .lbe-hero-v3__titre {
        font-size: 1.85rem;
    }

    .lbe-hero-v3::after {
        height: 30px;
    }

    .lbe-bloc-v3 {
        padding: 2.5rem 1.25rem 1.5rem;
    }
}

/* Accessibilité — min 44px */
.btn-lbe,
.lbe-card-v3__titre a {
    min-height: 44px;
}
