/* Variables communes — les pages de catégories restent inchangées. */
:root {
    --rs-navy: #17324d;
    --rs-orange: #ef7d22;
    --rs-cream: #fff8ee;
    --rs-aqua: #eef8f7;
    --rs-border: rgba(23, 50, 77, 0.14);
    --rs-shadow: 0 10px 30px rgba(20, 38, 58, 0.08);
    --rs-radius: 14px;
    --rs-transition: 180ms ease;
}

/* =========================================================
   0.3.5 — PAGE D'ENTRÉE « NOS RÉPARATIONS » : COMPACTE
   Aucun style des pages de catégories n'est modifié.
   ========================================================= */
.reparsoulatge-reparations-active.rs-generated-repairs-hub-active .wp-site-blocks main,
.reparsoulatge-reparations-active.rs-generated-repairs-hub-active .wp-site-blocks .wp-block-post-content,
.reparsoulatge-reparations-active.rs-generated-repairs-hub-active .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.reparsoulatge-reparations-active.rs-generated-repairs-hub-active .wp-block-post-title,
.reparsoulatge-reparations-active.rs-generated-repairs-hub-active .entry-title {
    display: none !important;
}

.reparsoulatge-reparations-active .rs-repairs-hub,
.reparsoulatge-reparations-active .rs-repairs-hub *,
.reparsoulatge-reparations-active .rs-repairs-hub *::before,
.reparsoulatge-reparations-active .rs-repairs-hub *::after {
    box-sizing: border-box;
}

.reparsoulatge-reparations-active .rs-repairs-hub {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 30px;
    color: #1f1f1f;
}

.reparsoulatge-reparations-active .rs-repairs-hub__hero {
    padding: 27px clamp(20px, 4vw, 50px);
    border: 1px solid rgba(239, 125, 34, .18);
    border-radius: var(--rs-radius);
    background: var(--rs-cream);
    text-align: center;
}

.reparsoulatge-reparations-active .rs-repairs-hub__eyebrow {
    margin: 0 0 6px;
    color: var(--rs-orange);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.reparsoulatge-reparations-active .rs-repairs-hub__hero h1 {
    margin: 0;
    color: var(--rs-navy);
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 550;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.reparsoulatge-reparations-active .rs-repairs-hub__hero > p:last-child {
    max-width: 710px;
    margin: 10px auto 0;
    color: #55708e;
    font-size: clamp(.93rem, 1.4vw, 1.08rem);
    line-height: 1.42;
}

.reparsoulatge-reparations-active .rs-repairs-hub__domains {
    margin-top: 25px;
}

.reparsoulatge-reparations-active .rs-repairs-hub__heading {
    max-width: 800px;
    margin: 0 auto 16px;
    text-align: center;
}

.reparsoulatge-reparations-active .rs-repairs-hub__heading h2 {
    margin: 0;
    color: var(--rs-navy);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 600;
    line-height: 1.17;
    letter-spacing: -.02em;
}

.reparsoulatge-reparations-active .rs-repairs-hub__heading p {
    margin: 7px 0 0;
    color: #55708e;
    font-size: .93rem;
    line-height: 1.4;
}

.reparsoulatge-reparations-active .rs-repairs-hub__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.reparsoulatge-reparations-active .rs-repairs-hub__card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    background: var(--rs-aqua);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(20, 38, 58, .04);
    transition: transform var(--rs-transition), box-shadow var(--rs-transition), border-color var(--rs-transition);
}

.reparsoulatge-reparations-active .rs-repairs-hub__card:nth-child(even) {
    background: var(--rs-cream);
}

.reparsoulatge-reparations-active .rs-repairs-hub__card:hover,
.reparsoulatge-reparations-active .rs-repairs-hub__card:focus-visible {
    border-color: rgba(239, 125, 34, .5);
    box-shadow: var(--rs-shadow);
    transform: translateY(-3px);
}

.reparsoulatge-reparations-active .rs-repairs-hub__card:focus-visible {
    outline: 3px solid rgba(239, 125, 34, .24);
    outline-offset: 3px;
}

.reparsoulatge-reparations-active .rs-repairs-hub__card-visual {
    display: grid;
    min-height: 112px;
    place-items: center;
    padding: 10px 12px 2px;
}

.reparsoulatge-reparations-active .rs-repairs-hub__card-visual img {
    display: block;
    width: 100%;
    height: 100px;
    object-fit: contain;
}

/* Image 3D choisie par l'utilisateur pour la carte Atelier 3D. */
.reparsoulatge-reparations-active .rs-repairs-hub__3d-image {
    display: block;
    width: 100%;
    height: 100px;
    object-fit: contain;
}

.reparsoulatge-reparations-active .rs-repairs-hub__card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px 13px;
    text-align: center;
}

.reparsoulatge-reparations-active .rs-repairs-hub__card-content strong {
    color: var(--rs-navy);
    font-size: 1.04rem;
    line-height: 1.23;
}

.reparsoulatge-reparations-active .rs-repairs-hub__card-content > span:not(.rs-repairs-hub__card-link) {
    margin-top: 6px;
    color: #55708e;
    font-size: .87rem;
    line-height: 1.36;
}

.reparsoulatge-reparations-active .rs-repairs-hub__card-link {
    margin-top: auto;
    padding-top: 9px;
    color: var(--rs-orange);
    font-size: .87rem;
    font-weight: 800;
}

@media (max-width: 1080px) {
    .reparsoulatge-reparations-active .rs-repairs-hub__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .reparsoulatge-reparations-active .rs-repairs-hub__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .reparsoulatge-reparations-active .rs-repairs-hub {
        width: min(100% - 24px, 1180px);
        padding: 20px 0 25px;
    }

    .reparsoulatge-reparations-active .rs-repairs-hub__hero {
        padding: 22px 16px;
    }

    .reparsoulatge-reparations-active .rs-repairs-hub__domains {
        margin-top: 22px;
    }

    .reparsoulatge-reparations-active .rs-repairs-hub__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Cartes horizontales sur téléphone : moins de défilement. */
    .reparsoulatge-reparations-active .rs-repairs-hub__card {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: center;
    }

    .reparsoulatge-reparations-active .rs-repairs-hub__card-visual {
        min-height: 96px;
        padding: 7px;
    }

    .reparsoulatge-reparations-active .rs-repairs-hub__card-visual img {
        height: 80px;
    }

    .reparsoulatge-reparations-active .rs-repairs-hub__3d-image {
        height: 80px;
    }

    .reparsoulatge-reparations-active .rs-repairs-hub__card-content {
        align-items: flex-start;
        padding: 10px 12px 10px 4px;
        text-align: left;
    }

    .reparsoulatge-reparations-active .rs-repairs-hub__card-link {
        margin-top: 7px;
        padding-top: 0;
    }
}

/* =========================================================
   MODÈLE COMMUN DES PAGES DE RÉPARATION
   Générée par l'extension et réutilisable pour les catégories suivantes.
   ========================================================= */
.reparsoulatge-reparations-active.rs-generated-repair-page-active .wp-site-blocks main,
.reparsoulatge-reparations-active.rs-generated-repair-page-active .wp-site-blocks .wp-block-post-content,
.reparsoulatge-reparations-active.rs-generated-repair-page-active .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.reparsoulatge-reparations-active .rs-repair-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 74px 0 54px;
    color: #1f1f1f;
}

.reparsoulatge-reparations-active .rs-repair-page *,
.reparsoulatge-reparations-active .rs-repair-page *::before,
.reparsoulatge-reparations-active .rs-repair-page *::after {
    box-sizing: border-box;
}

.reparsoulatge-reparations-active .rs-repair-page__hero {
    max-width: 970px;
    margin: 0 auto;
    text-align: center;
}

.reparsoulatge-reparations-active .rs-repair-page__hero h1 {
    margin: 0;
    color: #202020;
    font-size: clamp(2.45rem, 4.3vw, 3.55rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.reparsoulatge-reparations-active .rs-repair-page__hero p {
    max-width: 930px;
    margin: 24px auto 0;
    color: #55708e;
    font-size: 1.22rem;
    line-height: 1.5;
}

.reparsoulatge-reparations-active .rs-repair-page__section {
    margin-top: 64px;
}

.reparsoulatge-reparations-active .rs-repair-page__section > h2,
.reparsoulatge-reparations-active .rs-repair-page__section-heading h2,
.reparsoulatge-reparations-active .rs-repair-page__contact h2 {
    margin: 0;
    color: #202020;
    text-align: center;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: -.02em;
}

.reparsoulatge-reparations-active .rs-repair-page__three-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
    margin-top: 28px;
}

.reparsoulatge-reparations-active .rs-repair-page__info-column {
    text-align: center;
}

.reparsoulatge-reparations-active .rs-repair-page__info-column h3 {
    margin: 0 0 18px;
    color: #132d4c;
    font-size: 1.2rem;
    font-weight: 750;
    line-height: 1.3;
}

.reparsoulatge-reparations-active .rs-repair-page__info-column p,
.reparsoulatge-reparations-active .rs-repair-page__faults p {
    margin: 0;
    color: #55708e;
    font-size: 1.06rem;
    line-height: 1.48;
}

.reparsoulatge-reparations-active .rs-repair-page__faults {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.reparsoulatge-reparations-active .rs-repair-page__faults h2 {
    color: #132d4c;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
}

.reparsoulatge-reparations-active .rs-repair-page__faults p {
    margin-top: 20px;
}

.reparsoulatge-reparations-active .rs-repair-page__before {
    margin-top: 70px;
}

.reparsoulatge-reparations-active .rs-repair-page__section-heading {
    text-align: center;
}

.reparsoulatge-reparations-active .rs-repair-page__section-heading p {
    margin: 22px 0 0;
    color: #222;
    font-size: 1.05rem;
    line-height: 1.45;
}

.reparsoulatge-reparations-active .rs-repair-page__before-grid {
    gap: 62px;
    margin-top: 34px;
}

.reparsoulatge-reparations-active .rs-repair-page__before-column h3 {
    margin: 0 0 22px;
    color: #242424;
    text-align: center;
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.23;
}

.reparsoulatge-reparations-active .rs-repair-page__before-column p {
    margin: 0;
    color: #252525;
    font-size: 1.02rem;
    line-height: 1.5;
}

.reparsoulatge-reparations-active .rs-repair-page__contact {
    margin-top: 36px;
    text-align: center;
}

.reparsoulatge-reparations-active .rs-repair-page__contact h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 600;
}

.reparsoulatge-reparations-active .rs-repair-page__contact p {
    margin: 18px 0 0;
    color: #252525;
    font-size: 1.02rem;
}

.reparsoulatge-reparations-active .rs-repair-page__contact a {
    display: inline-block;
    margin-top: 4px;
    color: #1976d2;
    font-size: 1.08rem;
    text-underline-offset: 3px;
    transition: color var(--rs-transition), transform var(--rs-transition);
}

.reparsoulatge-reparations-active .rs-repair-page__contact a:hover,
.reparsoulatge-reparations-active .rs-repair-page__contact a:focus-visible {
    color: var(--rs-orange);
    transform: translateX(3px);
}

@media (max-width: 820px) {
    .reparsoulatge-reparations-active .rs-repair-page {
        width: min(100% - 30px, 1180px);
        padding-top: 48px;
    }

    .reparsoulatge-reparations-active .rs-repair-page__three-cols {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .reparsoulatge-reparations-active .rs-repair-page__before-grid {
        gap: 34px;
    }

    .reparsoulatge-reparations-active .rs-repair-page__before-column,
    .reparsoulatge-reparations-active .rs-repair-page__before-column p {
        text-align: center;
    }
}

@media (max-width: 520px) {
    .reparsoulatge-reparations-active .rs-repair-page {
        width: min(100% - 24px, 1180px);
        padding: 34px 0 42px;
    }

    .reparsoulatge-reparations-active .rs-repair-page__hero p {
        font-size: 1rem;
    }

    .reparsoulatge-reparations-active .rs-repair-page__section {
        margin-top: 48px;
    }

    .reparsoulatge-reparations-active .rs-repair-page__info-column p,
    .reparsoulatge-reparations-active .rs-repair-page__faults p,
    .reparsoulatge-reparations-active .rs-repair-page__before-column p {
        font-size: .98rem;
    }
}
