/**
 * fixes-pages.css
 *
 * Page-specific fixes for Salon en Vogue theme.
 * Covers: merci, a-propos, equipe, glossaire, services, footer.
 *
 * Design system:
 *   Cream: #F5F0EB | Gold: #B8956A | Brown: #5C4A3A | Dark brown: #3D2E1E
 *   Heading font: Cormorant Garamond | Body: Plus Jakarta Sans
 *
 * @package salon-en-vogue
 */

/* ==========================================================================
   FIX 3 - /merci/ button overflow
   ========================================================================== */

.merci-confirm__btn {
    padding: 14px 32px;
    white-space: normal;
    word-break: keep-all;
    text-align: center;
    min-width: 0;
}

@media (max-width: 480px) {
    .merci-confirm__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .merci-confirm__btn {
        width: 100%;
        font-size: 0.875rem;
        padding: 14px 20px;
    }
}


/* ==========================================================================
   FIX 5B - /a-propos/ CTA heading too narrow
   ========================================================================== */

.about-cta-v2__title {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================================
   FIX 7B - /equipe/ stylist names not bold
   ========================================================================== */

.team-card__name,
.team-card__name a {
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
}


/* ==========================================================================
   FIX 6 - /glossaire/ horizontal alphabet navigation
   ========================================================================== */

.glossaire-alpha-nav {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: #F5F0EB;
    padding: 12px 0;
    border-bottom: 1px solid rgba(92, 74, 58, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.glossaire-alpha-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.glossaire-alpha-nav__list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.glossaire-alpha-nav__list li {
    flex-shrink: 0;
}

.glossaire-alpha-nav__link,
.glossaire-alpha-nav__link--disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms ease;
}

/* Active letters (have terms) */
.glossaire-alpha-nav__link:not(.glossaire-alpha-nav__link--disabled) {
    color: #5C4A3A;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
}

.glossaire-alpha-nav__link:not(.glossaire-alpha-nav__link--disabled):hover,
.glossaire-alpha-nav__link:not(.glossaire-alpha-nav__link--disabled):focus {
    color: #B8956A;
    background: rgba(184, 149, 106, 0.1);
}

/* Currently selected active letter */
.glossaire-alpha-nav__link--active {
    background: #B8956A !important;
    color: #fff !important;
}

/* Inactive letters (no terms) */
.glossaire-alpha-nav__link--disabled {
    color: #C4B5A6;
    cursor: default;
    pointer-events: none;
    opacity: 1;
    font-weight: 400;
}

/* Mobile: horizontal scroll */
@media (max-width: 768px) {
    .glossaire-alpha-nav__list {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }
    .glossaire-alpha-nav__list::-webkit-scrollbar {
        display: none;
    }
    .glossaire-alpha-nav__link,
    .glossaire-alpha-nav__link--disabled {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}


/* ==========================================================================
   FIX 13 - /services/ gallery hover effects
   ========================================================================== */

.sev-realisations__item {
    position: relative;
}

.sev-realisations__item a.sev-realisations__gallery-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.sev-realisations__item a.sev-realisations__gallery-link .sev-realisations__img-wrap {
    transition: transform 250ms ease;
}

.sev-realisations__item a.sev-realisations__gallery-link:hover .sev-realisations__img-wrap,
.sev-realisations__item a.sev-realisations__gallery-link:focus .sev-realisations__img-wrap {
    transform: scale(1.03);
}

.sev-realisations__item a.sev-realisations__gallery-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(184, 149, 106, 0);
    transition: background 250ms ease;
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

.sev-realisations__item a.sev-realisations__gallery-link:hover::after,
.sev-realisations__item a.sev-realisations__gallery-link:focus::after {
    background: rgba(184, 149, 106, 0.15);
}


/* ==========================================================================
   Address link styling
   ========================================================================== */

.site-footer__contact-item a[href*="maps.google"],
.contact-info__map-link,
a[href*="cid="] {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 200ms ease, opacity 200ms ease;
}

.site-footer__contact-item a[href*="maps.google"]:hover,
.contact-info__map-link:hover,
a[href*="cid="]:hover {
    color: #B8956A;
    opacity: 0.9;
}


/* ==========================================================================
   General clickable element cursor fix
   ========================================================================== */

a,
button,
[role="button"],
input[type="submit"],
input[type="button"],
.btn,
.faq-accordion__trigger,
.glossaire-alpha-nav__link:not(.glossaire-alpha-nav__link--disabled) {
    cursor: pointer;
}


/* ==========================================================================
   FIX - Service card title wrapping (Coloration wrapping to 2 lines)
   ========================================================================== */

.service-card__title {
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    line-height: 1.2;
    min-height: 1.6em;
}

.service-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms ease;
}

.service-card__title a:hover,
.service-card__title a:focus {
    color: #B8956A;
}


/* ==========================================================================
   FIX - "Reserver avec" CTA readability on team pages
   ========================================================================== */

.team-card__cta .btn--primary,
.member-profile__cta .btn--primary {
    background-color: #B8956A;
    color: #fff;
    border-color: #B8956A;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(184, 149, 106, 0.35);
}

.team-card__cta .btn--primary:hover,
.member-profile__cta .btn--primary:hover {
    background-color: #A07D56;
    border-color: #A07D56;
    color: #fff;
    box-shadow: 0 4px 12px rgba(184, 149, 106, 0.5);
}

.team-card__cta .btn--primary:active,
.member-profile__cta .btn--primary:active {
    background-color: #8B6B47;
    border-color: #8B6B47;
}
