/* ============================================
   La Source — Espace Praticiens
   ============================================ */

/* --- Active nav link --- */
.navbar__link--active {
    color: var(--white) !important;
    font-weight: 600;
}

.navbar--scrolled .navbar__link--active {
    color: var(--green-dark) !important;
}

.navbar__link--active::after {
    width: 100% !important;
    background: var(--gold) !important;
}

/* ============================================
   HERO — Split layout
   ============================================ */
.p-hero {
    padding-top: 80px;
    background: var(--cream);
}

.p-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
}

.p-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px 80px 40px;
    max-width: 600px;
    margin-left: auto;
}

.p-hero__title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 20px;
}

.p-hero__subtitle {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 36px;
}

.p-hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.p-hero__image {
    overflow: hidden;
}

.p-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.p-hero__image:hover img {
    transform: scale(1.03);
}

/* ============================================
   SECTION MÉTIERS — Zigzag
   ============================================ */
.p-metiers {
    padding: 80px 0 0;
    background: var(--white);
}

.p-metiers__header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.p-metiers__header .section-label {
    justify-content: center;
}

.p-metiers__header .section-label::before {
    display: none;
}

.p-metiers__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.p-metiers__intro {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.8;
}

/* Zigzag row */
.p-zigzag {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.p-zigzag--reverse {
    direction: rtl;
}

.p-zigzag--reverse > * {
    direction: ltr;
}

.p-zigzag__image {
    overflow: hidden;
    position: relative;
}

.p-zigzag__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.p-zigzag:hover .p-zigzag__image img {
    transform: scale(1.04);
}

.p-zigzag__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 70px;
    background: var(--white);
}

.p-zigzag:nth-child(odd) .p-zigzag__content {
    background: var(--cream);
}

.p-zigzag__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 16px;
}

.p-zigzag__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.p-zigzag__text {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 8px;
}

.p-zigzag__detail {
    font-size: 0.9rem;
    color: var(--text-body);
    font-style: italic;
    line-height: 1.7;
    opacity: 0.8;
}

/* ============================================
   SECTION AVANTAGES — Bandeau vert
   ============================================ */
.p-avantages {
    padding: 70px 0;
    background: var(--green-dark);
    text-align: center;
}

.p-avantages__title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 40px;
}

.p-avantages__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
}

.p-avantages__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

.p-avantages__item svg {
    color: var(--gold);
    flex-shrink: 0;
}

/* ============================================
   SECTION GALERIE — Grille asymétrique
   ============================================ */
.p-galerie {
    padding: 80px 0;
    background: var(--cream);
}

.p-galerie__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.p-galerie__header .section-label {
    justify-content: center;
}

.p-galerie__header .section-label::before {
    display: none;
}

.p-galerie__title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.p-galerie__text {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.8;
}

.p-galerie__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 16px;
}

.p-galerie__item {
    overflow: hidden;
    border-radius: 8px;
}

.p-galerie__item--large {
    grid-column: span 2;
}

.p-galerie__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.p-galerie__item:hover img {
    transform: scale(1.05);
}

/* ============================================
   SECTION FORMULES — Cards sans prix
   ============================================ */
.p-formules {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.p-formules .section-label {
    justify-content: center;
}

.p-formules .section-label::before {
    display: none;
}

.p-formules__title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.p-formules__intro {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 50px;
}

.p-formules__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.p-formules__card {
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.p-formules__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.p-formules__card--highlight {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.p-formules__card--highlight .p-formules__card-icon {
    color: var(--gold);
}

.p-formules__card--highlight .p-formules__card-title {
    color: var(--white);
}

.p-formules__card--highlight .p-formules__card-text {
    color: rgba(255, 255, 255, 0.8);
}

.p-formules__card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    white-space: nowrap;
}

.p-formules__card-icon {
    color: var(--green-dark);
    margin-bottom: 20px;
}

.p-formules__card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.p-formules__card-text {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
}

.p-formules__cta {
    margin-top: 50px;
}

/* ============================================
   CTA FINAL
   ============================================ */
.p-cta-final {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.p-cta-final__bg {
    position: absolute;
    inset: 0;
}

.p-cta-final__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-cta-final__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 77, 58, 0.92), rgba(10, 50, 38, 0.95));
}

.p-cta-final__inner {
    position: relative;
    z-index: 2;
}

.p-cta-final__title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.p-cta-final__text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 40px;
}

.p-cta-final__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.p-cta-final__micro {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .p-hero__grid {
        grid-template-columns: 1fr;
    }

    .p-hero__image {
        order: -1;
        height: 350px;
    }

    .p-hero__content {
        padding: 40px 30px 60px;
        max-width: 100%;
        margin-left: 0;
    }

    .p-zigzag {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .p-zigzag--reverse {
        direction: ltr;
    }

    .p-zigzag__image {
        height: 300px;
    }

    .p-zigzag__content {
        padding: 40px 30px;
    }

    .p-galerie__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

    .p-galerie__item--large {
        grid-column: span 1;
    }

    .p-formules__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .p-hero__title {
        font-size: 2.2rem;
    }

    .p-hero__buttons {
        flex-direction: column;
    }

    .p-hero__image {
        height: 280px;
    }

    .p-zigzag__image {
        height: 250px;
    }

    .p-zigzag__title {
        font-size: 1.5rem;
    }

    .p-zigzag__content {
        padding: 32px 24px;
    }

    .p-metiers__title {
        font-size: 2rem;
    }

    .p-avantages__title {
        font-size: 1.8rem;
    }

    .p-avantages__grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .p-galerie__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .p-galerie__title {
        font-size: 1.8rem;
    }

    .p-formules__title {
        font-size: 1.8rem;
    }

    .p-cta-final__title {
        font-size: 2rem;
    }

    .p-cta-final {
        padding: 60px 0;
    }

    .p-cta-final__buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .p-hero__title {
        font-size: 1.8rem;
    }

    .p-avantages__title {
        font-size: 1.5rem;
    }
}
