/* Shared presentation for the four workshop detail pages. */
.service-detail-page {
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #18181b;
    overflow-x: hidden;
}

.service-detail-page #main-header {
    top: 0;
    z-index: 40;
    background: rgb(24 24 27 / 95%);
    border-color: rgb(39 39 42 / 70%);
    box-shadow: 0 2px 10px rgb(0 0 0 / 25%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.service-detail-page #main-header > .container {
    height: auto;
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.service-detail-page #main-header a[aria-label="Accueil Carbo Pneus"] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.service-detail-page #main-header a[aria-label="Accueil Carbo Pneus"]::after {
    content: "CARBO PNEUS\A Expert Mouriès";
    white-space: pre;
    color: #f4f4f5;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.service-detail-page #main-header a[aria-label="Accueil Carbo Pneus"] img {
    width: auto;
    height: 56px;
    padding: 8px 12px;
    background: #f5efe4;
    border: 1px solid rgb(113 113 122 / 30%);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 18%);
    transition: transform .3s ease;
}

.service-detail-page #main-header a[aria-label="Accueil Carbo Pneus"]:hover img {
    transform: scale(1.05);
}

.service-detail-page #main-header a[aria-label="Accueil Carbo Pneus"]:hover {
    transform: none;
}

.service-detail-page #main-header nav.hidden {
    align-items: center;
    gap: 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.service-detail-page #main-header nav.hidden > a {
    color: #f4f4f5;
    transition: color .2s ease;
}

.service-detail-page #main-header nav.hidden > a:hover {
    color: #ef4444;
}

.service-detail-page #main-header nav.hidden > a.text-red-500 {
    color: #dc2626;
    border-bottom: 2px solid #dc2626;
    padding-bottom: 4px;
}

.service-detail-page #main-header nav.hidden > a:last-child {
    color: white;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: #dc2626;
    box-shadow: 0 10px 15px -3px rgb(127 29 29 / 40%);
}

.service-detail-page #mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 24px;
    background: #18181b;
    border-top: 1px solid #27272a;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 35%);
}

.service-detail-page #mobile-menu.hidden-menu {
    display: none;
}

.service-detail-page #mobile-menu a {
    padding: 9px 0;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #27272a;
}

.service-detail-page main > section:first-child {
    min-height: 610px;
    display: flex;
    align-items: center;
    padding-top: 150px;
    padding-bottom: 96px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.service-detail-page main > section:first-child::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgb(24 24 27 / 38%), transparent 58%);
    pointer-events: none;
}

.service-detail-page main > section:first-child > .container {
    position: relative;
    z-index: 1;
}

.service-detail-page main > section:first-child nav {
    font-size: 12px;
}

.service-detail-page main > section:first-child h1 {
    max-width: 900px;
    line-height: .98;
    letter-spacing: -.035em;
}

.service-detail-page main > section:first-child h1 span {
    color: #dc2626;
    background: linear-gradient(90deg, #ef4444, #b91c1c);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-detail-page main > section:first-child h1 + p {
    line-height: 1.55;
}

.service-detail-page main > section:first-child a[href^="tel:"] {
    border-radius: 8px;
    box-shadow: 0 10px 24px rgb(127 29 29 / 38%);
    transition: transform .2s ease, background-color .2s ease;
}

.service-detail-page main > section:first-child > .container > .mt-8 > a {
    flex: 0 0 auto;
    min-height: 60px;
    white-space: nowrap;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.service-detail-page main > section:first-child a[href^="tel:"]:hover,
.service-detail-page main > section:first-child a[href="contact.html"]:hover {
    transform: translateY(-2px);
}

.service-detail-page main > section:first-child a[href="contact.html"]:hover {
    color: #18181b;
    -webkit-text-fill-color: #18181b;
}

.service-detail-page main > section:not(:first-child):not(.summer-promo):not(:last-child) {
    position: relative;
}

.service-detail-page main > section:not(:first-child):not(.summer-promo):not(:last-child) h2 {
    letter-spacing: -.025em;
    font-style: italic;
}

.service-detail-page main > section:not(:first-child):not(.summer-promo):not(:last-child) h2::after {
    content: "";
    display: block;
    width: 96px;
    height: 4px;
    margin-top: 16px;
    background: #dc2626;
}

.service-detail-page main > section:not(:first-child):not(.summer-promo):not(:last-child) h2.text-center::after {
    margin-right: auto;
    margin-left: auto;
}

.service-detail-page main article {
    position: relative;
    overflow: hidden;
    background: #27272a;
    border: 0;
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.service-detail-page main article::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at top right, rgb(220 38 38 / 12%), transparent 68%);
    pointer-events: none;
}

.service-detail-page main article:hover {
    background: #3f3f46;
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgb(0 0 0 / 22%);
}

.service-detail-page main article h3 {
    color: white;
    font-weight: 800;
}

.service-detail-page main article i {
    color: #ef4444;
}

.service-detail-page main > section:nth-last-child(2) article {
    min-height: 100%;
}

.service-detail-page main > section:last-child {
    background: linear-gradient(115deg, #991b1b, #dc2626 58%, #7f1d1d);
}

.service-detail-page main > section:last-child a {
    align-items: center;
    justify-content: center;
    min-height: 56px;
    color: #b91c1c;
    -webkit-text-fill-color: #b91c1c;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgb(0 0 0 / 20%);
    transition: transform .2s ease;
    white-space: nowrap;
}

.service-detail-page main > section:last-child a:hover {
    transform: translateY(-2px);
}

.service-detail-page footer {
    padding-top: 40px;
    padding-bottom: 40px;
    color: #71717a;
}

.service-detail-page footer > img {
    height: 84px;
    padding: 16px;
    background: #f2e8d5;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 35%);
}

.service-detail-page footer p:nth-of-type(1) {
    color: #d4d4d8;
    font-size: 14px;
}

.service-detail-page footer p:nth-of-type(2) {
    color: #a1a1aa;
    font-size: 14px;
}

.service-detail-page footer p:nth-of-type(3) {
    color: #d4d4d8;
}

.service-detail-page footer p:nth-of-type(3) a {
    margin: 0 5px;
}

.service-detail-page .detail-sticky-call {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    color: white;
    font-size: 16px;
    font-weight: 800;
    background: #dc2626;
    border: 2px solid white;
    border-radius: 999px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 45%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(120%);
    transition: opacity .35s ease, transform .35s ease, background-color .2s ease;
}

.service-detail-page .detail-sticky-call.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.service-detail-page .detail-sticky-call:hover {
    background: #b91c1c;
}

.service-detail-page .detail-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.25, .46, .45, .94);
}

.service-detail-page .detail-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .service-detail-page #main-header > .container {
        position: relative;
        width: 100%;
        min-height: 52px;
    }

    .service-detail-page #main-header a[aria-label="Accueil Carbo Pneus"]::after {
        display: none;
    }

    .service-detail-page #main-header a[aria-label="Accueil Carbo Pneus"] img {
        height: 36px;
        padding: 4px 8px;
    }

    .service-detail-page #mobile-menu-btn {
        position: absolute;
        top: 50%;
        right: 16px;
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        color: white;
        transform: translateY(-50%);
    }

    .service-detail-page #mobile-menu-btn::before {
        content: "☰";
        font-size: 27px;
        line-height: 1;
    }

    .service-detail-page #mobile-menu-btn[aria-expanded="true"]::before {
        content: "×";
        font-size: 34px;
    }

    .service-detail-page #mobile-menu-btn > * {
        display: none;
    }

    .service-detail-page main > section:first-child {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 72px;
        background-position: 62% center;
    }

    .service-detail-page main > section:first-child h1 {
        max-width: 100%;
        font-size: clamp(2.1rem, 10.2vw, 2.6rem);
        overflow-wrap: break-word;
    }

    .service-detail-page main > section:first-child nav,
    .service-detail-page main > section:first-child p {
        max-width: 100%;
    }

    .service-detail-page main > section:first-child > .container > p:first-of-type {
        font-size: 11px;
        line-height: 1.65;
        letter-spacing: .13em;
    }

    .service-detail-page main > section:first-child > .container > .mt-8 > a {
        width: 100%;
        min-width: 0;
    }

    .service-detail-page .detail-sticky-call {
        right: 12px;
        bottom: 12px;
        left: 12px;
        justify-content: center;
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-detail-page *,
    .service-detail-page *::before,
    .service-detail-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
