/* Répar’Soulatgé – Atelier 3D : styles strictement limités aux éléments de l'extension. */
.rs3d-page, .rs3d-page *, .rs3d-home-link, .rs3d-home-link *, .rs3d-hub-promo, .rs3d-hub-promo * { box-sizing: border-box; }
.rs3d-page { --rs3d-ink: #17324d; --rs3d-green: #267153; --rs3d-orange: #df7a25; --rs3d-soft: #f1f7f3; --rs3d-line: #dbe7df; width: min(1180px, calc(100% - 32px)); margin: 0 auto 55px; color: var(--rs3d-ink); font-family: inherit; line-height: 1.55; }
.rs3d-page h1, .rs3d-page h2, .rs3d-page h3 { line-height: 1.18; letter-spacing: -.02em; margin: 0; color: inherit; }
.rs3d-page p { margin: 0; }
.rs3d-page a { text-decoration: none; }
.rs3d-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 8px 0 19px; font-size: .83rem; color: #57716a; }
.rs3d-breadcrumb a { color: #285944; text-decoration: underline; text-underline-offset: 3px; }
.rs3d-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(230px, .9fr); gap: clamp(10px, 3vw, 34px); min-height: 290px; padding: clamp(25px, 4vw, 52px); border-radius: 20px; background: linear-gradient(115deg, #17324d 1%, #244d55 65%, #307258 100%); color: white; overflow: hidden; }
.rs3d-hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 13px; }
.rs3d-kicker { color: #bee1cf; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rs3d-hero h1 { color: white; font-size: clamp(1.7rem, 3.5vw, 2.8rem); max-width: 640px; }
.rs3d-hero__subtitle { font-size: clamp(1rem, 1.6vw, 1.23rem); color: #edf6f3; }
.rs3d-state { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 48px; padding: 11px 20px; border: 2px solid rgba(255,255,255,.22); border-radius: 999px; font-size: .98rem; font-weight: 850; letter-spacing: -.01em; background: linear-gradient(135deg, #ffcc73 0%, #ef8e22 100%); color: #17324d; box-shadow: 0 12px 26px rgba(0,0,0,.18); }
.rs3d-state--open { background: linear-gradient(135deg, #55d69a 0%, #2aa86a 100%); color: #ffffff; }
.rs3d-hero__visual { min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(255,255,255,.07); border-radius: 16px; padding: 10px; }
.rs3d-hero-image { display: block; width: min(100%, 360px); max-height: 250px; height: auto; object-fit: contain; border-radius: 14px; }
.rs3d-visual-caption { color: #e1f7ec; font-size: .75rem; font-weight: 700; text-align: center; margin-top: 8px; }
.rs3d-intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(210px, .75fr); gap: 22px; margin-top: 24px; }
.rs3d-intro > div:first-child { padding: clamp(19px, 3vw, 31px); background: var(--rs3d-soft); border: 1px solid var(--rs3d-line); border-radius: 15px; }
.rs3d-eyebrow { color: var(--rs3d-green); font-size: .78rem; letter-spacing: .075em; font-weight: 800; text-transform: uppercase; margin-bottom: 8px !important; }
.rs3d-intro h2 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); margin-bottom: 13px; }
.rs3d-intro p + p { margin-top: 10px; }
.rs3d-small-panel { display: flex; flex-direction: column; justify-content: center; gap: 12px; border-radius: 15px; padding: 26px; background: #fff3e6; border: 1px solid #f2dec3; }
.rs3d-small-panel > span { font-size: 1.9rem; color: #a85917; }
.rs3d-small-panel strong { font-size: clamp(1.2rem, 1.8vw, 1.55rem); line-height: 1.25; color: #75420e; }
.rs3d-small-panel p { color: #6a5138; }
.rs3d-activities { margin: 30px 0 0; }
.rs3d-activities h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 14px; }
.rs3d-activities__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.rs3d-activities__grid article { padding: 20px 18px; border-radius: 15px; background: #f9fbfb; border: 1px solid #dce6e8; box-shadow: 0 4px 16px rgba(19, 43, 57, .035); }
.rs3d-activities__grid article > span { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: #e5f4ed; border-radius: 12px; color: #1a7952; font-size: 1.5rem; margin-bottom: 13px; font-weight: 800; }
.rs3d-activities__grid h3 { font-size: 1.08rem; margin-bottom: 8px; }
.rs3d-activities__grid p { font-size: .91rem; color: #3f5464; }
/* Accès discret à la Bibliothèque 3D depuis la page Atelier 3D uniquement. */
.rs3d-library { display: flex; align-items: center; gap: 20px; margin-top: 24px; padding: 22px 24px; border: 1px solid #cfe2d7; border-radius: 15px; background: #edf7f0; }
.rs3d-library__icon { display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; border-radius: 13px; background: #236c49; color: #fff; font-size: 1.5rem; font-weight: 850; }
.rs3d-library__copy { flex: 1 1 auto; min-width: 0; }
.rs3d-library__copy h2 { font-size: clamp(1.23rem, 2vw, 1.6rem); margin-bottom: 6px; }
.rs3d-library__copy p:last-child { font-size: .95rem; color: #416052; }
@media (max-width: 680px) { .rs3d-library { flex-wrap: wrap; padding: 18px; gap: 12px; } .rs3d-library__icon { flex-basis: 48px; width: 48px; height: 48px; font-size: 1.05rem; } .rs3d-library__copy { flex-basis: calc(100% - 65px); } .rs3d-library > .rs3d-button { width: 100%; } }
.rs3d-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.rs3d-note { padding: 22px 24px; border-radius: 14px; }
.rs3d-note h2 { font-size: 1.14rem; margin-bottom: 9px; }
.rs3d-note p { font-size: .91rem; }
.rs3d-note--info { background: #eaf5ff; border: 1px solid #cbdeef; }
.rs3d-note--safe { background: #fff5e7; border: 1px solid #f4dfbf; }
.rs3d-visit { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 25px; padding: 26px 28px; background: #f4f8f5; border: 1px solid var(--rs3d-line); border-radius: 15px; }
.rs3d-visit > div { max-width: 760px; }
.rs3d-visit h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin-bottom: 8px; }
.rs3d-visit__caution { margin-top: 9px !important; font-size: .82rem; color: #526258; }
.rs3d-button, .rs3d-hub-promo > a { display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex: 0 0 auto; background: #226b48; color: white !important; padding: 13px 17px; border-radius: 10px; font-weight: 760; text-align: center; border: 2px solid transparent; }
.rs3d-button:hover, .rs3d-button:focus-visible, .rs3d-hub-promo > a:hover, .rs3d-hub-promo > a:focus-visible { background: #174e36; text-decoration: none; }
/* Carte compacte insérée AVANT les quatre accès existants de l'accueil. */
#rs-home-generated .rs3d-home-link { display: flex; align-items: center; gap: 15px; margin: 0 auto 12px; border: 1px solid #c9ddd2; background: #edf7f0; border-radius: 13px; padding: 15px 19px; text-decoration: none; color: #193f33; box-shadow: 0 3px 9px rgba(22,45,67,.03); }
#rs-home-generated .rs3d-home-link:hover, #rs-home-generated .rs3d-home-link:focus-visible { border-color: #25784c; outline-offset: 3px; }
#rs-home-generated .rs3d-home-link__icon { flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: #216543; color: white; font-size: 1.17rem; font-weight: 850; }
#rs-home-generated .rs3d-home-link__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#rs-home-generated .rs3d-home-link__copy strong { font-size: 1.05rem; line-height: 1.3; }
#rs-home-generated .rs3d-home-link__copy small { color: #426251; font-size: .84rem; line-height: 1.35; }
#rs-home-generated .rs3d-home-link__more { flex: 0 0 auto; margin-left: auto; font-weight: 750; color: #1e6d46; font-size: .9rem; }
/* Encadré APRÈS les 7 cartes d'origine sur « Nos réparations ». */
.rs-repairs-hub .rs3d-hub-promo { display: flex; align-items: center; gap: 23px; margin-top: 24px; padding: 24px; border-radius: 15px; border: 1px solid #cfe2d7; background: #edf7f0; color: #183c30; }
.rs-repairs-hub .rs3d-hub-promo__icon { flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; width: 70px; height: 70px; color: #fff; background: #236c49; font-weight: 850; font-size: 1.6rem; }
.rs-repairs-hub .rs3d-hub-promo > div:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.rs-repairs-hub .rs3d-hub-promo__kicker { text-transform: uppercase; font-size: .76rem; letter-spacing: .055em; font-weight: 800; color: #28704c; margin: 0 0 5px; }
.rs-repairs-hub .rs3d-hub-promo h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); margin: 0 0 5px; color: #173f32; }
.rs-repairs-hub .rs3d-hub-promo p:last-child { margin: 0; font-size: .9rem; color: #466558; }
.rs-repairs-hub .rs3d-hub-promo > a { font-size: .9rem; }
@media (max-width: 820px) { .rs3d-activities__grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .rs3d-hero { grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr); } .rs3d-visit, .rs-repairs-hub .rs3d-hub-promo { flex-wrap: wrap; } }
@media (max-width: 600px) { .rs3d-page { width: min(100% - 22px,1180px); } .rs3d-hero, .rs3d-intro, .rs3d-notes { grid-template-columns: 1fr; } .rs3d-hero__visual { max-height: 190px; } .rs3d-hero-image { max-height: 155px; } .rs3d-intro { gap: 12px; } .rs3d-hero { padding: 23px 19px; } .rs3d-state { font-size: .92rem; padding: 10px 16px; min-height: 44px; } .rs3d-activities__grid { grid-template-columns: 1fr; } .rs3d-visit { padding: 20px; } .rs3d-button { width: 100%; } #rs-home-generated .rs3d-home-link { gap: 11px; padding: 12px; flex-wrap: wrap; } #rs-home-generated .rs3d-home-link__more { margin-left: 61px; } .rs-repairs-hub .rs3d-hub-promo { padding: 16px; gap: 12px; } .rs-repairs-hub .rs3d-hub-promo__icon { width: 48px; height: 48px; font-size: 1.15rem; } .rs-repairs-hub .rs3d-hub-promo > a { width: 100%; } }
/* Le titre propre à la page suffit : masque le titre ajouté en double par le thème bloc. */
body.rs3d-atelier-page .wp-block-post-title, body.rs3d-atelier-page .entry-title { display: none !important; }
body.rs3d-atelier-page .wp-block-post-content, body.rs3d-atelier-page .entry-content { margin-top: 0 !important; max-width: none !important; }
body.rs3d-atelier-page .wp-block-post-content > .rs3d-page { max-width: 1180px !important; }
